+++ /dev/null
-.X_usr_local_etc-up-to-date
-.deps
-.fixups
-.pathconfig.h.pathsubst.stamp
-FEATURES.txt
-Makefile
-autom4te.cache
-config.cache
-config.h
-config.log
-config.status
-libtool
-pathconfig.h
-stamp-h1
+++ /dev/null
-Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-Daniel Hokka Zakrisson <daniel@hozac.com>
+++ /dev/null
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-\f
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-\f
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-\f
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-\f
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-\f
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- 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, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
+++ /dev/null
-2007-09-02 20:03 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * NEWS, configure.ac: Version 0.30.214.
-
-2007-09-02 19:51 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_getccaps-v13.hc: Use the correct syscall.
-
-2007-08-27 10:53 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.stop: Fix thinko.
-
-2007-08-27 10:19 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/Makefile.am: Remove vserver-config.sh from the Makefile.
-
-2007-08-27 10:16 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/debian/initpost, distrib/debian/vserver-config.sh: Be
- more like the redhat initpost script, don't start the guest for
- real.
-
-2007-08-26 21:30 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, scripts/chbind, scripts/chcontext,
- scripts/pkgmgmt, scripts/vserver-build.fai,
- scripts/vserver.functions, scripts/vserver.start,
- scripts/vserver.stop, scripts/vserver.suexec, scripts/vsomething,
- src/vtag.c: Add support for the lback address in the
- configuration.
- Add --silent to vtag so it'll complain if run manually on a
- kernel without the necessary support.
-
-2007-08-26 17:50 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: Document the tag and ncontext files.
-
-2007-08-26 17:48 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/nflags-net.c: Add remap_lback as an alias to lback_remap.
-
-2007-08-25 16:56 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/getvserverbyctx-compat.hc, lib/getvserverctx.c: Fallback to
- context if ncontext/tag don't exist.
- Fix remanining vc_getVserverCtx caller.
-
-2007-08-25 16:50 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/misc/debootstrap.uri: debootstrap 1.0.3
-
-2007-08-21 23:00 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: Clarify that specifying dev will
- add/remove the IP address.
-
-2007-08-21 18:39 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Add a static context sanity check.
-
-2007-08-16 20:33 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/setattr.c: Add --immutable.
-
-2007-08-16 19:53 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.stop: Migrate to the tag on stop too.
-
-2007-08-16 19:36 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/chcontext: Fix for vtag invocations.
-
-2007-08-16 03:06 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * compat.h, configure.ac, contrib/manifest.dat.pathsubst,
- ensc_wrappers/wrappers-vserver.hc, kernel/switch.h,
- kernel/tag_cmd.h, lib/Makefile-files,
- lib/getvserverbyctx-compat.hc, lib/getvserverbyctx-v13.hc,
- lib/getvserverctx.c, lib/issupported.c, lib/issupportedstring.c,
- lib/nidopt2nid.c, lib/syscall_getvci-v21.hc,
- lib/syscall_getvci.c, lib/syscall_tagcreate.c,
- lib/syscall_tagmigrate-v23.hc, lib/syscall_tagmigrate.c,
- lib/syscall_tasktag-v23.hc, lib/syscall_tasktag.c,
- lib/tagopt2tag.c, lib/virtual.h, lib/vserver-internal.h,
- lib/vserver.h, lib/xidopt2xid.c, scripts/chcontext,
- scripts/util-vserver-vars.pathsubst, scripts/vserver.functions,
- scripts/vserver.start, scripts/vserver.suexec,
- src/Makefile-files, src/vserver-info.c, src/vtag.c,
- vserver-start/main.c: Add support for a separate filesystem tag,
- and in the process improve the support for network contexts.
-
-2007-08-16 02:31 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/chbind.c: The nid isn't used anymore, legacy APIs don't
- support it.
-
-2007-08-16 02:00 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib_internal/sys_unshare.h: Add fallback syscall numbers, if it's
- not defined in the headers.
-
-2007-08-13 18:10 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions: Add some hints for this common problem.
-
-2007-08-12 00:13 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/ncaps-net.c, lib/vserver.h, src/nattribute.c: Add network
- capability RAW_ICMP.
-
-2007-08-10 15:28 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_netadd-net.hc, src/naddress.c: Fix setting the
- broadcast address.
-
-2007-08-09 02:39 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/nflags-net.c, lib/vserver.h: Add all the network flags.
-
-2007-08-08 23:10 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_ctxcreate-v21.hc: Don't hardcode the spaces to
- create/unshare.
-
-2007-08-08 21:32 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_ctxcreate-v21.hc: Set the namespaces we've unshared.
-
-2007-08-08 21:03 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * gentoo/Makefile-files: Add the bash-wrapper to the Makefile.
-
-2007-08-08 20:47 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib_internal/Makefile-files: Add sys_unshare to the Makefile.
-
-2007-08-08 20:05 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * AUTHORS, configure.ac, ensc_wrappers/wrappers-vserver.hc,
- kernel/inode_cmd.h, kernel/network.h, kernel/network_cmd.h,
- lib/Makefile-files, lib/syscall_ctxcreate-v13.hc,
- lib/syscall_ctxcreate-v21.hc, lib/syscall_ctxcreate.c,
- lib/syscall_fgetiattr-v22.hc, lib/syscall_fgetiattr.c,
- lib/syscall_fsetiattr-v22.hc, lib/syscall_fsetiattr.c,
- lib/syscall_netadd-net.hc, lib/syscall_netadd-netv2.hc,
- lib/syscall_netadd.c, lib/syscall_netremove-net.hc,
- lib/syscall_netremove-netv2.hc, lib/syscall_netremove.c,
- lib/syscall_setsched-v22.hc, lib/syscall_setsched.c,
- lib/vserver-internal.h, lib/vserver.h,
- lib_internal/sys_unshare.h, src/chbind.c, src/naddress.c,
- src/rpm-fake.c, src/vcontext.c, vserver-start/main.c: Add support
- for the various new APIs in 2.2 and 2.3, in particular, netv2.
-
-2007-08-05 18:36 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.delete: Remove the cache so disk limit caches
- have no chance of being reused if the same guest is recreated at
- a later point in time.
-
-2007-08-05 18:36 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.yum: It's just yum, not yum-rpm.
-
-2007-08-05 18:35 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * util-vserver.spec.in: Remove e2fsprogs requirement, no longer
- needed.
-
-2007-07-31 19:43 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.debootstrap: Use findFile consistently.
- Don't fail if a file doesn't exist, these are all optional.
-
-2007-07-30 09:36 Benedikt Böhm <hollow@gentoo.org>
-
- * gentoo/util-vserver, gentoo/vprocunhide: some more POSIX fixes
-
-2007-07-29 17:14 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * gentoo/Makefile-files, gentoo/bash-wrapper, gentoo/util-vserver:
- Only POSIX-sh in Gentoo initscripts.
-
-2007-07-29 16:55 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/Makefile.am, distrib/breezy,
- distrib/breezy/debootstrap.script, distrib/dapper,
- distrib/dapper/debootstrap.script, distrib/debian,
- distrib/debian/debootstrap.script, distrib/debian/initpost,
- distrib/edgy, distrib/edgy/debootstrap.script, distrib/etch,
- distrib/feisty, distrib/feisty/debootstrap.script, distrib/gutsy,
- distrib/gutsy/debootstrap.script, distrib/hoary,
- distrib/hoary/debootstrap.script, distrib/warty,
- distrib/warty/debootstrap.script,
- scripts/vserver-build.debootstrap,
- scripts/vserver-build.functions: Various debootstrap
- improvements.
-
-2007-07-29 16:32 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/naddress.c: Prettier output on error.
-
-2007-07-22 17:24 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib_internal/Makefile-files, lib_internal/matchlist-compare.c,
- lib_internal/mkdir.c, lib_internal/testsuite,
- lib_internal/testsuite/Makefile-files,
- lib_internal/testsuite/matchlist.c, lib_internal/util.h,
- src/vclone.c, src/vhashify.c: Add exclude list support for
- vclone.
-
-2007-07-19 20:56 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/Makefile-files, lib/syscall_getsched-v21.hc,
- lib/syscall_getsched.c, lib/vserver.h: Add vc_get_sched.
-
-2007-07-18 17:32 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * configure.ac, scripts/util-vserver-vars.pathsubst: ... and add
- _STRACE.
-
-2007-07-18 17:24 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver, scripts/vserver.functions,
- scripts/vserver.start: Add --strace and --debug-sysv options to
- further debug problems with starting a guest.
-
-2007-07-16 15:52 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/Makefile-files: Add it to the Makefile.
-
-2007-07-16 15:10 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_getccaps-v21.hc, lib/syscall_getccaps.c: Make
- vc_get_ccaps do the right thing.
-
-2007-07-13 14:35 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.stop: Enter the network context to stop the
- guest.
-
-2007-07-12 21:59 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/fakerunlevel.c: Support runlevels up to 9, as per init(1).
-
-2007-07-11 14:34 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/h2ext.c: Add some sanity checking.
-
-2007-07-11 14:27 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/f7/yum.repos.d/fedora.repo: Add forgotten file.
-
-2007-07-10 20:35 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vclone.c: Add an option to specify the xid the non-shared
- files should belong to.
-
-2007-07-10 20:34 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst, distrib/Makefile.am,
- distrib/misc/h2ext.desc, pathconfig.h.pathsubst,
- scripts/Makefile-files, scripts/h2ext-worker, scripts/magic.mime,
- scripts/util-vserver-vars.pathsubst,
- scripts/vserver-build.template, src/Makefile-files, src/h2ext.c:
- Replace file with h2ext for the template build method.
-
-2007-07-08 18:29 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/chbind.c: It's network isolation, not virtualization.
-
-2007-07-07 15:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * contrib/Makefile-files, contrib/yum-3.2.1-chroot.patch: added
- patch for yum-3.2.1; this one should retain API
- compatibility by using a dummy argument for the *Lock()
- methods
-
-2007-06-25 15:24 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * util-vserver.spec.in: Update URLs.
-
-2007-06-24 22:04 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, scripts/vserver-build.template: Add a way
- to associate a distribution with a default template.
-
-2007-06-24 21:28 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/Makefile.am, distrib/f7,
- distrib/f7/yum.repos.d/fedora-core.repo,
- distrib/f7/yum.repos.d/fedora-development.repo,
- distrib/f7/yum.repos.d/fedora-extras-development.repo,
- distrib/f7/yum.repos.d/fedora-extras.repo,
- distrib/f7/yum.repos.d/fedora-legacy.repo,
- distrib/f7/yum.repos.d/fedora-updates-testing.repo,
- distrib/f7/yum.repos.d/fedora-updates.repo: Add Fedora 7.
-
-2007-06-24 00:07 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src: Ignore vsysctl and vclone too.
-
-2007-06-21 12:56 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vyum-worker: Support 3.1.x and 3.2.x as well.
-
-2007-06-21 12:55 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/yum-3.2.0-chroot.patch: Use the correct path to the
- configuration file.
-
-2007-06-21 12:55 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * mkrelease: Make it do everything needed.
-
-2007-06-16 20:42 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Define PREVLEVEL and RUNLEVEL so
- SuSE's rc script works correctly.
-
-2007-06-11 12:09 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: fstab.remote uses the guest's network
- context.
-
-2007-06-01 16:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * contrib/Makefile-files, contrib/yum-3.0.5-chroot.patch,
- contrib/yum-3.2.0-chroot.patch: added updated patches for yum.
- The yum-3.2.0 one is untested.
-
-2007-06-01 16:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * lib_internal/testsuite/Makefile-files: Fixed problems when
- building both a dietlibc and a GNU version of a
- testsuite program. Previously, the same object file (which was
- generated
- by 'diet') was used for both variants and only linking differed
- for
- them. This caused problems at least in F7 on PPC platforms.
-
-2007-06-01 16:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * lib_internal/unify-copy.c: deallocate resources symmetrically
-
-2007-05-31 17:58 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/gentoo/init-vserver.sh, scripts/vserver.functions: fix
- TERM for colored output
-
-2007-05-26 11:50 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/gentoo/init-vserver.sh: TERM=linux is needed for color
- with baselayout-2.
-
-2007-05-03 12:20 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * NEWS: Version 0.30.213.
-
-2007-05-03 12:13 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst: Add missing file.
-
-2007-05-02 20:11 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * configure.ac: Version 0.30.213.
-
-2007-04-27 09:08 Benedikt Böhm <hollow@gentoo.org>
-
- * scripts/vserver.functions: fake init environment during shutdown,
- otherwise rc just calls shutdown/halt which does not work without
- init
-
-2007-04-27 09:02 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/gentoo/initpost, distrib/gentoo/initpre: add dummy net
- dependency to default runlevel; dmesg/syslog is now handled in
- baselayout
-
-2007-04-27 09:01 Benedikt Böhm <hollow@gentoo.org>
-
- * src/chroot-sh.c: add link command to chroot-sh
-
-2007-04-27 08:42 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/gentoo/reboot.sh, distrib/gentoo/shutdown.sh: don't call
- /halt/reboot -f for gentoo init style, but rather just exit,
- since we would be killed by vshelper, does not matter for reboot
- from inside: simple reboot wonÄt work with gentoo init style,
- must use reboot -f inside
-
-2007-04-27 08:40 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/gentoo/initpre: fix distdir handling if prefix is not
-
-2007-04-21 14:06 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/cflags-v13.c, scripts/vshelper: Use the state change helper
- to stop the guest when the last process exits.
-
-2007-04-21 14:05 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.template: Recognize the --nodevsanity
- option.
-
-2007-04-21 14:04 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions: Don't do namespace cleanup if we're not in a
- new namespace.
-
-2007-04-21 14:03 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/Makefile.am, distrib/centos5, distrib/centos5/pkgs,
- distrib/centos5/yum, distrib/centos5/yum.repos.d,
- distrib/centos5/yum.repos.d/CentOS-Base.repo,
- distrib/centos5/yum/yum.conf: Add CentOS 5.
-
-2007-04-13 10:46 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/etch/vserver-config.sh: remove interactive setup steps
-
-2007-04-13 09:02 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/Makefile.am, distrib/etch, distrib/etch/initpost,
- distrib/etch/vserver-config.sh, distrib/misc/debootstrap.mirror,
- scripts/vserver-build.debootstrap: add build scripts for debian
- etch
-
-2007-04-11 18:14 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vyum-worker: Fix typo.
-
-2007-04-11 17:55 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/misc/debootstrap.uri: New debootstrap.
-
-2007-04-08 00:40 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vlogin.c: terminal_copy doesn't return void anymore.
-
-2007-04-08 00:39 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/Makefile.am: Add shutdown.sh and reboot.sh to the
- Makefile.
-
-2007-03-27 18:00 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/gentoo/initpost, distrib/gentoo/initpre,
- distrib/gentoo/reboot.sh, distrib/gentoo/shutdown.sh: force
- halt/reboot if using gentoo init style, enable syslog stub by
- default for gentoo guests
-
-2007-03-24 12:54 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.debootstrap: Get rid of the work directory
- on success.
-
-2007-03-21 04:46 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver: Fix help message.
-
-2007-03-20 20:38 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.debootstrap: Fix problems with debootstrap
- on Ubuntu.
-
-2007-03-20 17:47 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.debootstrap: Remove the guest in case of
- failure.
-
-2007-03-18 22:15 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/pkgmgmt: Supply the required argument.
-
-2007-03-18 22:02 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-setup.functions: nodev: shouldn't be in the ip
- file.
-
-2007-03-18 17:51 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * gentoo/util-vserver: Verbosify initscript.
-
-2007-03-18 15:32 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions, scripts/pkgmgmt, scripts/vserver,
- scripts/vserver-build.functions, scripts/vsomething: Rename
- _setVserverDir to _setVserverDirName.
- Rename _getVserverDir to _setVserverDir.
- Add _setVserverName to set VSERVER_NAME.
- pkgmgmt.initVariables cannot run before _setVserverDirName, and
- the initialization must happen once per guest.
-
-2007-03-18 15:04 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vlogin.c: Attempt to fix the endless loop of select() read().
-
-2007-03-18 11:51 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * sysv/util-vserver: Create the directories here for strange
- distros (e.g. Ubuntu).
-
-2007-03-11 21:25 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Fix IPv6 address assignment.
-
-2007-03-09 21:07 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/misc/debootstrap.uri: Update the debootstrap URI.
-
-2007-03-07 20:33 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vsched.c: Fix idle-time.
-
-2007-02-26 20:18 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/gentoo/init-vserver.sh, scripts/vserver.functions: Make
- the gentoo initstyle work with baselayout-vserver.
-
-2007-02-25 14:06 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions, scripts/vserver.stop, scripts/vshelper: Don't
- tell init to shutdown if we're called from vshelper, that
- should've already happened.
- Kill init and other remaining processes from vshelper once the
- stop sync signal has arrived.
-
-2007-02-25 01:44 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Add $__LOCKDIR and /tmp to the
- excluded paths.
-
-2007-02-24 23:43 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * configure.ac: Fix help message for --with-initscripts.
-
-2007-02-24 20:03 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/Makefile.am: Move the Gentoo in-guest scripts to *_DATA,
- so rpm doesn't process them for deps.
-
-2007-02-24 20:03 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * m4/ensc_pathprog.m4: Fix the symlink problems.
-
-2007-02-22 05:18 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall-alternative.h: Update to latest shiny.
-
-2007-02-21 20:07 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-setup.functions: Update help message to
- correspond better with reality.
-
-2007-02-20 17:33 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * ensc_wrappers/wrappers-vserver.hc, lib/syscall_ctxmigrate-v21.hc,
- lib/syscall_ctxmigrate.c, lib/vserver.h,
- lib_internal/switchtowatchxid.c, src/rpm-fake-resolver.c,
- src/rpm-fake.c, src/vcontext.c: Add support for the migration
- flags.
-
-2007-02-17 19:10 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-setup.functions: Make nodev: silence the warning.
-
-2007-02-17 19:01 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall-alternative.h: Update to latest shiny.
-
-2007-02-14 19:32 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions: &>> doesn't exist.
-
-2007-02-14 19:24 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall-alternative.h: Update to latest shiny.
-
-2007-02-11 20:21 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions: Work better if the default tty is a file by
- using /dev/null for input and appending the output.
-
-2007-02-11 20:16 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall-alternative.h: Update to shiny15.
-
-2007-02-11 00:45 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.clone, src/vclone.c: Remove the --source
- and --dest "options" from vclone, both are required.
- Catch error conditions about the arguments in vclone.
- Attempt to figure out where the source if it's not a directory,
- and make sure it is one before running vclone.
-
-2007-02-10 15:06 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/getxidtype.c: Xid 65535 is a static one when dynamic ones are
- disabled.
-
-2007-02-09 06:17 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Add /usr/bin to exception list, to
- make sure we keep the /usr mount around.
-
-2007-02-05 20:59 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/Makefile-files, src/vkill.c: Fix the last, horribly broken
- commit.
-
-2007-02-05 20:45 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vdevmap.c: Really silence the warning.
-
-2007-02-05 20:40 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vkill.c: Try to figure out the xid if not specified.
-
-2007-02-05 20:39 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vdevmap.c: Silence warning.
-
-2007-02-05 20:39 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/gentoo/net.vserver: Make distrib/gentoo/net.vserver
- non-executable so RPM doesn't pick up a dependency on
- /sbin/runscript.
-
-2007-02-05 18:08 Benedikt Böhm <hollow@gentoo.org>
-
- * scripts/vdispatch-conf, scripts/vesync, scripts/vupdateworld: fix
- vsomething arguments in gentoo wrappers
-
-2007-02-04 17:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * lib_internal/unify-copy.c: - documented parts of the code were I
- needed to think >1min about its
- sense
- - use ftruncate(2) instead of a lseek(2)+write(2) sequence to
- create a
- sparse file
- - set O_NOCTTY flag for temp file
-
-2007-02-04 17:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * lib_internal/testsuite/sigbus.c: - reworked the large pagesize
- patch; it seems to be always PAGESIZE*2+1
- bytes required to trigger a SIGBUS. Since PAGESIZE is not
- available
- directly, use sysconf(3) to get this value and memset(3) to
- initialize
- buffer
- - removed byte crap
-
-2007-02-01 12:56 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * sysv/Makefile-files: Add missing hunk from the Gentoo initscripts
- commit.
-
-2007-01-29 23:37 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * Makefile.am, configure.ac, gentoo, gentoo/Makefile-files,
- gentoo/util-vserver, gentoo/vprocunhide, gentoo/vservers.default,
- util-vserver.spec.in: Add Gentoo initscripts.
- Force sysv initscripts for the RPMs.
-
-2007-01-29 02:06 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.stop, scripts/vserver.suexec: There's no need to
- enter the filesystem namespaces twice.
-
-2007-01-28 11:35 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/secure-mount.c: When we call the external mount, we need to
- preserve all of the options so it can parse them on its own.
- The option defaults should set nodev in the flags.
-
-2007-01-27 23:16 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst: vserver-copy is legacy, put the
- man page in the same package.
-
-2007-01-27 11:10 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst, distrib/Makefile.am,
- distrib/misc/context.start, doc/configuration.xml,
- scripts/vserver-setup.functions: Move dynamic context generation
- to userspace.
-
-2007-01-27 10:20 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-setup.functions: Set nodev rather than just
- warning about it.
-
-2007-01-27 10:05 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib_internal/unify.h: Actually check the mtime when it's not
- optional.
-
-2007-01-27 09:38 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib_internal/unify.h, src/vhashify.c, src/vhashify.h: Add an
- option (--ignore-mtime) to vhashify to hashify files with
- differing mtimes.
-
-2007-01-25 13:14 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: Add entries that were missing from
- .defaults.
-
-2007-01-25 09:51 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/chxid.c, src/fstool.c, src/fstool.h: Add option to chxid to
- skip unified files.
-
-2007-01-23 16:43 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vclone.c: Don't overwrite files that already exist.
-
-2007-01-23 16:41 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/Makefile.am, distrib/gentoo/initpost,
- distrib/gentoo/initpre, distrib/gentoo/net.vserver: cleanup
- gentoo/initpost; add fixes for syslog-ng.conf and net dependency
- in baselayout >= 1.13
-
-2007-01-21 20:17 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/Makefile-files: ... and the Makefile.
-
-2007-01-21 20:06 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst: Add the build method to the
- manifest too.
-
-2007-01-21 20:05 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst,
- scripts/util-vserver-vars.pathsubst, scripts/vserver-build,
- scripts/vserver-build.clone: Add the clone build method.
-
-2007-01-21 18:26 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * ensc_wrappers/wrappers-unistd.hc, lib_internal/pathinfo.h,
- src/Makefile-files, src/vclone.c: Add vclone, to help with
- cloning guests.
-
-2007-01-21 08:02 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.start, src/vsysctl.c: If it doesn't exist, only
- error if requested.
-
-2007-01-20 17:31 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/gentoo/initpost: fix runlevel scripts for older
- baselayouts too; set hostname inside the guest
-
-2007-01-20 13:55 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/checkconfig.c: Return 0 on any error, older kernels will
- return -EPERM for unknown syscalls.
-
-2007-01-20 09:36 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: Document the configuration for vdevmap.
-
-2007-01-20 09:25 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: Place-holder documentation for now, until
- some better descriptions comes along.
-
-2007-01-20 07:43 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib_internal/testsuite/sigbus.c: Add patch from David Woodhouse
- to work with 64 KiB pages.
-
-2007-01-18 16:35 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/util-vserver-vars.pathsubst, scripts/vserver.functions,
- sysv/util-vserver: Add support for vdevmap in the configuration.
-
-2007-01-18 16:33 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vsysctl.c: Fix logic error.
-
-2007-01-18 13:38 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst,
- scripts/util-vserver-vars.pathsubst, scripts/vserver.start,
- src/Makefile-files, src/vsysctl.c: Add support for setting sysctl
- values in the configuration.
-
-2007-01-18 07:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * contrib/Makefile-files, contrib/yum-3.0.3-chroot.patch: added
- patch for yum-3.0.3
-
-2007-01-18 04:38 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Remove the disk limits after saving
- them.
-
-2007-01-17 09:56 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/vserver.h: Add VC_VXSM_MSEC.
-
-2007-01-17 09:56 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_setsched-v21.hc: Use VCMD_set_sched_v4 as intended.
-
-2007-01-17 09:54 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * configure.ac, m4/ensc_dietlibc.m4: Remove the dietlibc sanity
- check function, as what it's doing is already done elsewhere.
-
-2007-01-14 12:30 Benedikt Böhm <hollow@gentoo.org>
-
- * scripts/vupdateworld: fix missing world target in vupdateworld
-
-2007-01-10 22:23 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * util-vserver.spec.in: Teach the spec how to build prereleases and
- release candidates.
-
-2007-01-10 19:27 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vserver-stat.c: The new method doesn't need to be a
- spectator, and /proc/virtual isn't available there by default.
-
-2007-01-10 18:53 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * kernel/sched_cmd.h, lib/Makefile-files, lib/issupported.c,
- lib/issupportedstring.c, lib/syscall_schedinfo-v21.hc,
- lib/syscall_schedinfo.c, lib/vserver.h, src/vserver-stat.c: Add
- vc_sched_info API.
- Make vserver-stat use the various APIs instead of parsing
- per-process /proc entries.
-
- vc_virt_stat.uptime is a uint64_t.
- vc_get_dlimit can handle a NULL limits argument.
-
-2007-01-10 18:49 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall.c, src/rpm-fake.c, src/vcontext.c: There is no
- vc_create_context. Stop referencing it.
-
-2007-01-10 11:52 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.stop: Remove persistent on stop.
-
-2007-01-09 13:22 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall-wrap.h, lib/vserver-internal.h,
- lib_internal/sys_clone.h, lib_internal/sys_personality.h,
- m4/ensc_dietlibc.m4: Check if dietlibc declares syscall
- incompatibly, to avoid errors.
- Move the syscall declaration to lib/syscall-wrap.h.
-
-2007-01-07 22:27 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * sysv/util-vserver: Fix output.
-
-2007-01-03 11:55 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/getvserverbyctx.c: Support legacy guests on 2.6 kernels as
- well.
-
-2007-01-02 20:54 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.start: The CHBIND_OPTS need to be cleaned before
- handing them to $_CHBIND_COMPAT, let $_CHBIND do that.
-
-2007-01-01 19:37 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * configure.ac: Let glibc use the alternative syscalls as well.
-
-2006-12-30 00:52 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/vserver.h: Organize things. Structures and functions dealing
- with similar things are now grouped together.
-
-2006-12-30 00:40 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions: Use status for the process count instead since
- persistent adds a task there.
-
-2006-12-30 00:37 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src: Add vdevmap to ignore.
-
-2006-12-29 20:34 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * sysv/util-vserver: Return a sane value from kill_contexts.
-
-2006-12-29 20:33 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/vserver-internal.h: Use the correct type for the
- configuration bitfield.
-
-2006-12-29 20:32 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * util-vserver.spec.in: Add util-vserver initscript handling.
- Add %changelog comment.
-
-2006-12-29 20:30 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst: Add vdevmap.
-
-2006-12-28 00:07 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst, scripts/Makefile-files,
- scripts/util-vserver-vars.pathsubst,
- scripts/vserver-init.functions, scripts/vserver-wrapper,
- sysv/Makefile-files, sysv/util-vserver, sysv/vprocunhide: Move
- initscript functions to vserver-init.functions.
- Make vprocunhide use said functions.
- Add an initscript to set the helper and kill guest processes.
-
-2006-12-28 00:05 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * util-vserver.spec.in: Add --without doc and --with legacy
- options.
-
-2006-12-20 13:39 Benedikt Böhm <hollow@gentoo.org>
-
- * scripts/vserver-wrapper: cosmetic fixes for vserver-wrapper
-
-2006-12-19 19:18 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/fstool.c, src/fstool.h, src/setattr.c: Add --immutable,
- --~immutable and --!immutable.
-
-2006-12-18 11:26 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Don't check the VLAN stuff if
- novlandev was specified.
-
-2006-12-12 13:18 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vdevmap.c: Error on too many arguments.
-
-2006-12-12 13:18 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/misc/debootstrap.uri: Update debootstrap URL.
-
-2006-12-12 01:39 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * kernel/device_cmd.h, kernel/switch.h, lib/Makefile-files,
- lib/syscall_setmapping-v21.hc, lib/syscall_setmapping.c,
- lib/virtual.h, lib/vserver.h, src/Makefile-files, src/vdevmap.c:
- Add vdevmap and required functionality.
-
-2006-12-10 17:45 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions: Improve the vshelper warning (common sign of
- multiple installs).
-
-2006-12-10 12:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * contrib/yum-2.6.0-chroot.patch, contrib/yum-2.9.6-chroot.patch:
- fixed location of the lockfile; formerly, the chroot path was
- prepended
- twice
-
-2006-12-10 00:57 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * sysv/vservers-legacy: Don't enable the legacy initscript by
- default.
-
-2006-12-09 16:13 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * NEWS, THANKS, configure.ac: Version 0.30.212.
-
-2006-12-09 16:12 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib_internal/sys_clone.h, src/rpm-fake.c, src/vdlimit.c:
- vserver.h defines CLONE_NEW*.
- Remove unused include of sys_clone.h from vdlimit.
-
-2006-12-09 16:02 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions: Make getFileArray handle multiple files as
- well.
-
-2006-12-08 15:35 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_ctxmigrate-v21.hc: Only enter the namespaces for
- static and dynamic xids (i.e. not the spectator).
-
-2006-12-08 13:28 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions, scripts/vserver, scripts/vserver.functions:
- Rather than keeping an unnecessary mount around just because it
- was the cwd, cd to the root at the beginning while storing the
- original cwd (so it can be used later).
-
-2006-12-08 13:25 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration-xhtml.xsl: Change the default stylesheet.
-
-2006-12-08 13:25 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * ensc_wrappers/wrappers-vserver.hc: Add missing hunks from last
- commit.
-
-2006-12-08 13:24 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/Makefile-files, lib/checkconfig.c, lib/getxidtype.c,
- lib/internal.h, lib/isdynamicxid.c,
- lib/syscall_ctxmigrate-v21.hc, lib/syscall_ctxmigrate.c,
- lib/syscall_enternamespace-v13.hc,
- lib/syscall_enternamespace-v21.hc, lib/syscall_enternamespace.c,
- lib/syscall_getspacemask-v21.hc, lib/syscall_getspacemask.c,
- lib/syscall_getvci-v21.hc, lib/syscall_getvci.c,
- lib/syscall_setnamespace-v13.hc, lib/syscall_setnamespace-v21.hc,
- lib/syscall_setnamespace.c, lib/virtual.h,
- lib/vserver-internal.h, lib/vserver.h, src/vcontext.c,
- src/vnamespace.c: Work better on 2.6.19.
- This includes adding a new kind of API that depends on the
- VCI-bits, to detect the presence of spaces.
- vnamespace now only enters the filesystem related namespaces
- (CLONE_NEWNS|CLONE_FS).
- vc_ctx_migrate_spaces enters the others.
- Fix dynamic context detection by using the VCI-bits.
-
-2006-12-08 13:20 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/ncontext.c: Remove unused argument.
-
-2006-12-08 13:05 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * kernel/cacct.h, kernel/cacct_cmd.h, kernel/cacct_def.h,
- kernel/cacct_int.h, kernel/context.h, kernel/context_cmd.h,
- kernel/cvirt.h, kernel/cvirt_cmd.h, kernel/cvirt_def.h,
- kernel/debug.h, kernel/debug_cmd.h, kernel/dlimit.h,
- kernel/dlimit_cmd.h, kernel/global.h, kernel/history.h,
- kernel/inode.h, kernel/inode_cmd.h, kernel/legacy.h,
- kernel/limit.h, kernel/limit_cmd.h, kernel/limit_def.h,
- kernel/limit_int.h, kernel/namespace.h, kernel/namespace_cmd.h,
- kernel/network.h, kernel/network_cmd.h, kernel/sched.h,
- kernel/sched_cmd.h, kernel/sched_def.h, kernel/signal.h,
- kernel/signal_cmd.h, kernel/space_cmd.h, kernel/switch.h,
- kernel/tag.h: Update kernel headers to 2.6.19-vs2.1.x-t7.
- Use the headers from make headers_install to cut down on
- unnecessary files/content.
-
-2006-12-01 21:10 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Add cwd to the list of paths to
- exclude from namespace cleanup.
-
-2006-12-01 18:41 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * m4/ensc_e2fscheck.m4: Correct package and distribution name.
-
-2006-11-28 17:42 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Make non-sysv initstyles work again.
-
-2006-11-27 14:18 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/vserver.h: Add VLIMIT_MAPPED, for mapped files that are in
- RAM.
-
-2006-11-27 14:06 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vsched.c: Don't process unknown files.
-
-2006-11-25 19:18 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/chroot-sh.c: Add missing quote.
-
-2006-11-25 19:17 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/redhat/initpost: Use chroot-sh chmod to remove the
- symlink attack vector.
-
-2006-11-25 02:04 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vsched.c: Add missing #include <stddef.h> needed for offsetof
- when using glibc.
-
-2006-11-25 00:38 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/nflags-net.c, lib/vserver.h: Add NXF_SINGLE_IP.
-
-2006-11-24 23:06 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/capchroot.c, src/chbind.c, src/chcontext.c, src/fstool.c,
- src/keep-ctx-alive.c, src/nattribute.c, src/ncontext.c,
- src/rpm-fake-resolver.c, src/secure-mount.c, src/secure-umount.c,
- src/vattribute.c, src/vcontext.c, src/vcopy.c, src/vhashify.c,
- src/vkill.c, src/vlimit.c, src/vnamespace.c, src/vrsetup.c,
- src/vserver-info.c, src/vserver-stat.c, src/vuname.c,
- src/vunify.c, src/vwait.c: Make quoting consistent.
-
-2006-11-24 22:03 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/legacy/vserver-copy: Use the same flags for legacy as the
- rsync build method's default.
-
-2006-11-24 20:34 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions, src/nattribute.c: Use --secure by
- default.
- Add VC_NXF_HIDE_NETIF to the secure default.
-
-2006-11-24 15:23 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver: Add forgotten backslash.
-
-2006-11-24 15:20 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver: Call vserver-build with --debug too, if it was
- specified.
-
-2006-11-24 15:20 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * configure.ac, contrib/manifest.dat.pathsubst,
- scripts/Makefile-files, scripts/util-vserver-vars.pathsubst,
- scripts/vserver-build, scripts/vserver-build.rsync: Add an rsync
- build method.
-
-2006-11-24 14:12 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: Add since.
-
-2006-11-23 23:56 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions, src/vps.c, src/vserver-stat.c: Update
- URL to the proc security page.
-
-2006-11-23 21:30 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vnamespace.c: Use CLONE_NEWUTS|CLONE_NEWIPC so it works with
- 2.6.19.
-
-2006-11-23 21:12 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, scripts/chbind, scripts/vserver.functions:
- Add support for the network flags and capabilities in the
- configuration.
-
-2006-11-23 18:30 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/ccaps-v13.c, lib/cflags-v13.c, lib/ncaps-net.c,
- lib/nflags-net.c, lib/vserver.h: Support the prefixes for all
- types of flags and capabilities.
- Add NXF_INFO_PRIVATE.
- Add NXF_HIDE_NETIF.
- Add aliases for the legacy flags/caps so using the kernel's names
- will work.
- Add alias for VXC_SET_RLIMIT.
-
-2006-11-20 21:12 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/ccaps-v13.c: Recognize set_utsname as a ccap too.
-
-2006-11-20 15:15 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver: Add --rescue-init to the --help message.
-
-2006-11-20 15:15 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/redhat/initpost: Use --rescue-init.
-
-2006-11-20 15:10 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions, scripts/vserver.start: Don't set
- _IS_FAKEINIT on rescue, let the caller decide with --rescue-init.
-
-2006-11-20 15:09 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/legacy/vserver, scripts/vserver.start: Use
- $_CHBIND_COMPAT directly for legacy.
-
-2006-11-20 15:01 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/naddress.c: Cosmetic fixes.
- Make sure args.do_set is set to false initially.
-
-2006-11-20 12:46 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Make vserver <guest> start --rescue
- ... work again.
-
-2006-11-20 00:23 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/Makefile-files, src/naddress.c: Make the prefix-to-netmask
- conversion work on big-endian too.
- Check for invalid prefixes.
- Improve help message.
- Add --set operation that removes all the old IP addresses first.
-
-2006-11-19 17:25 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst,
- ensc_wrappers/wrappers-vserver.hc, lib/Makefile-files,
- lib/nidopt2nid.c, lib/vserver.h, scripts/Makefile-files,
- scripts/chbind, scripts/util-vserver-vars.pathsubst, src,
- src/Makefile-files, src/chbind.c, src/naddress.c,
- src/nattribute.c, src/ncontext.c: Break up the old chbind into
- ncontext, nattribute, and naddress.
- This is done mostly to add support for network flags and caps,
- but also to get the same level of flexibility that the security
- contexts have.
- In addition, a vc_nidopt2nid was created to correctly map --nid
- self to the current process's nid.
-
-2006-11-17 18:48 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/chcontext: Fix chcontext --help and --version.
-
-2006-11-17 18:42 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: soft-limit and hard-limit.
-
-2006-11-15 21:38 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/fc5/yum.repos.d/fedora-core.repo,
- distrib/fc5/yum.repos.d/fedora-extras-development.repo,
- distrib/fc5/yum.repos.d/fedora-extras.repo,
- distrib/fc5/yum.repos.d/fedora-legacy.repo,
- distrib/fc5/yum.repos.d/fedora-updates-testing.repo,
- distrib/fc5/yum.repos.d/fedora-updates.repo,
- distrib/fc6/yum.repos.d/fedora-core.repo,
- distrib/fc6/yum.repos.d/fedora-extras-development.repo,
- distrib/fc6/yum.repos.d/fedora-extras.repo,
- distrib/fc6/yum.repos.d/fedora-legacy.repo,
- distrib/fc6/yum.repos.d/fedora-updates-testing.repo,
- distrib/fc6/yum.repos.d/fedora-updates.repo: Use HTTP URLs for
- the keys (insecure, I know), so it'll work on non-Fedora systems
- as well.
-
-2006-11-15 20:14 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/Makefile-files, lib/syscall_ctxstat-v21.hc,
- lib/syscall_ctxstat.c, lib/syscall_getvci-v21.hc,
- lib/syscall_getvci.c, lib/syscall_resetminmax-v21.hc,
- lib/syscall_resetminmax.c, lib/syscall_rlimitstat-v21.hc,
- lib/syscall_rlimitstat.c, lib/syscall_virtstat-v21.hc,
- lib/syscall_virtstat.c, lib/vserver.h: Add the new syscalls from
- 2.1.
-
-2006-11-14 23:06 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, scripts/functions: Enable namespace
- cleanup by default.
- Various cleanups in the documentation, make sure references work.
-
-2006-11-14 22:09 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vlimit.c: strcpy copies \0, use memcpy instead.
-
-2006-11-13 21:53 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, lib/vserver.h, src/vlimit.c: Add the
- VLIMITs.
- Add RLIMIT_MSGQUEUE, define it ourselves if not present (like on
- 2.4).
-
-2006-11-13 18:35 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, src/vsched.c: Cosmetic fixes for vsched.
- Document the configuration format.
-
-2006-11-11 02:05 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.start: Force update when starting the guest.
-
-2006-11-11 00:53 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vsched.c: Only bother with the first line of the files.
- Add required cast.
-
-2006-11-11 00:29 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions, src/Makefile-files, src/vsched.c: Make
- vsched capable of configuring the new scheduler using a new
- configuration format (one value per file).
-
-2006-11-05 17:48 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_setccaps-v21.hc, lib/syscall_setsched-v21.hc,
- lib/vserver.h: Set svn:keywords.
- Fix the vc_set_sched API to make more sense, and handle the logic
- in the wrapper.
-
-2006-11-05 17:46 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/exec-ulimit.c: Reset the limits unconditionally.
- Treat RLIMIT_NOFILE specially, since the kernel does.
- Fix dietlibc'isms, and handle sys_old_getrlimit's values.
-
-2006-11-04 19:36 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/exec-ulimit.c: Reset all limits that aren't configured.
-
-2006-11-04 13:59 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_setsched-v21.hc, lib/vserver.h: Fix typos from last
- commit.
-
-2006-11-03 22:37 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, scripts/functions, scripts/vserver: Make
- vlogin optional.
-
-2006-11-03 19:59 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * Makefile.am, configure.ac, kernel/cacct.h, kernel/cacct_cmd.h,
- kernel/cacct_def.h, kernel/cacct_int.h, kernel/context.h,
- kernel/context_cmd.h, kernel/cvirt.h, kernel/cvirt_cmd.h,
- kernel/cvirt_def.h, kernel/debug.h, kernel/debug_cmd.h,
- kernel/dlimit.h, kernel/dlimit_cmd.h, kernel/global.h,
- kernel/history.h, kernel/inode.h, kernel/inode_cmd.h,
- kernel/limit.h, kernel/limit_cmd.h, kernel/limit_def.h,
- kernel/limit_int.h, kernel/monitor.h, kernel/namespace_cmd.h,
- kernel/network.h, kernel/network_cmd.h, kernel/sched.h,
- kernel/sched_cmd.h, kernel/sched_def.h, kernel/signal_cmd.h,
- kernel/switch.h, kernel/tag.h, kernel/xid.h, lib/Makefile-files,
- lib/ccaps-v13.c, lib/cflags-v13.c, lib/nflags-net.c,
- lib/syscall_setccaps-v13.hc, lib/syscall_setccaps-v21.hc,
- lib/syscall_setccaps.c, lib/syscall_setsched-v13.hc,
- lib/syscall_setsched-v21.hc, lib/syscall_setsched.c,
- lib/vserver-internal.h, lib/vserver.h: This commit adds support
- for the 2.1 vserver API.
- Update the kernel headers to 2.1.1-rc47.
- Add the new ccapabilities, context flags, and network flags.
- Use the correct VCMDs for the older calls.
- Add vc_set_sched_v21, to configure the new scheduler.
- Add vc_set_ccaps_v21, which sets the ccaps and bcaps using the
- new interfaces for that.
-
-2006-11-03 16:20 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/gentoo/initpost: init style gentoo will also work with
- older baselayout-vserver
-
-2006-11-03 15:02 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst: Add vemerge, vesync, vupdateworld
- and vdispatch-conf.
- Fix the sort order a bit.
-
-2006-11-03 14:56 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: bcapabilities and ccapabilities won't be
- changing names any time soon, remove experimental marker.
- ulimits are honored for 2.6 kernels as well.
- Whitespace cleanup.
-
-2006-11-03 14:36 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/gentoo/init-vserver.sh, scripts/Makefile-files,
- scripts/vdispatch-conf, scripts/vemerge, scripts/vesync,
- scripts/vserver.functions, scripts/vupdateworld: add gentoo
- specific wrappers: vemerge, vesync, vupdateworld and
- vdispatch-conf; add RUNLEVEL_START to gentoo init style
-
-2006-11-02 19:32 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/gentoo/initpost: fix fstab fixing for gentoo/initpost
-
-2006-11-01 19:46 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vyum-worker: Add missing space.
-
-2006-11-01 19:23 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/Makefile.am, distrib/gentoo/init-vserver.sh,
- distrib/gentoo/initpost, distrib/gentoo/initpre,
- scripts/vserver.functions: reimplement gentoo init style +
- prepare distrib/gentoo for baselayout-1.13
-
-2006-11-01 15:34 Benedikt Böhm <hollow@gentoo.org>
-
- * src/Makefile-files, src/chroot-sh.c: add mkdir and chmod
- functions to chroot-sh
-
-2006-10-31 14:33 Benedikt Böhm <hollow@gentoo.org>
-
- * scripts/vserver-build.template: fix no_dev_sanity logic
-
-2006-10-19 15:09 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, scripts/vserver.functions: Improve
- namespace cleanup to make sure some required directories stick
- around, and add some configuration options to exclude further
- paths.
-
-2006-10-12 14:39 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vyum-worker: Handle version 3.0 as well.
-
-2006-10-07 18:03 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * NEWS, configure.ac, mkrelease: Version 0.30.211.
-
-2006-10-07 12:14 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: Fix typoed URL.
-
-2006-10-07 12:13 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.fai: Point to the FAI wiki for information
- about how to use it.
- Make AUTO the default.
- Move the prompt to after the trap has been setup.
- Run base.__cleanup as the last step of killprocs, so the files
- needed are still around for the rest of the cleanup.
- Use isVserverRunning so the runfile is cleaned up too.
- Mount the NFS-root and the target with -o dev, to allow the
- device nodes.
-
-2006-10-04 16:35 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst: Add vserver-build.fai.
-
-2006-10-04 16:35 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.template: We can't remove dev/* if we're
- not in the guest's root.
-
-2006-10-04 13:22 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.fai: Have vuname set the context as well,
- so we can find it with vserver-info <name> CONTEXT.
-
-2006-10-04 13:20 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/secure-mount.c: Remove options that we parse ourselves, so
- the kernel doesn't see them (and fail).
- Reenable MS_NODEV default.
-
-2006-10-04 12:33 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: If creation is failing, we want to see
- the errors so it's debuggable.
-
-2006-10-03 18:37 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.fai: Make sure we're running on a
- sufficiently capable kernel.
- Indent killprocs correctly.
- Don't require a static xid by using save_ctxinfo.
- Use secure-mount instead of mount.
- Set a default hostname if none was specified.
-
-2006-10-03 15:48 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/secure-mount.c: Revert NODEV default, as it makes it
- impossible to mount (e.g.) a tmpfs that allows devices.
-
-2006-10-03 13:14 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: Add since=... where appropriate.
-
-2006-10-03 12:47 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/Makefile.am, distrib/fc6,
- distrib/fc6/yum.repos.d/fedora-core.repo,
- distrib/fc6/yum.repos.d/fedora-development.repo,
- distrib/fc6/yum.repos.d/fedora-extras-development.repo,
- distrib/fc6/yum.repos.d/fedora-extras.repo,
- distrib/fc6/yum.repos.d/fedora-legacy.repo,
- distrib/fc6/yum.repos.d/fedora-updates-testing.repo,
- distrib/fc6/yum.repos.d/fedora-updates.repo: Add FC6 distribution
- (doesn't work yet, but should once it's released).
-
-2006-10-03 11:15 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration-wiki.xsl: Move auto-generated notice to the
- top.
-
-2006-10-01 17:27 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/Makefile-files, scripts/vserver-build,
- scripts/vserver-build.fai: Add the fai build method based on Sam
- Vilain's patch.
- (https://savannah.nongnu.org/patch/?5058)
-
-2006-10-01 15:55 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: Fix some spelling errors and update the
- parameter lists to be correct.
-
-2006-09-29 22:15 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_ctxmigrate-v13.hc, lib/syscall_setnamespace-v13.hc:
- Use the older versions of these syscalls, so the utils will work
- on older kernels.
-
-2006-09-28 22:39 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/Makefile-files, doc/configuration-wiki.xsl: Add Tim Mecking's
- XSL stylesheet for wiki exports.
-
-2006-09-28 15:15 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build: Cosmetic fixes to the help message.
-
-2006-09-28 15:13 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver: Use a new namespace for the build process, so
- any mounts performed during the build will vanish when it's done.
-
-2006-09-28 15:10 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vapt-get, scripts/vserver: Make vserver ...
- rpm/apt-get/apt-cache/apt-config work again.
-
-2006-09-28 15:08 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * Makefile.am, contrib/Makefile-files: Add more forgotten files.
-
-2006-09-28 15:06 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * Makefile.am, m4/changelog.am: Move flags to the same place they
- were when cvs2cl was used.
-
-2006-09-28 15:05 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml: Fix URLs pointing to the source code.
-
-2006-09-26 17:15 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/yum-2.9.6-chroot.patch, scripts/vyum-worker: Add a patch
- for yum 2.9.6 (for FC6).
- Make vyum-worker use the hack configuration if the yum version is
- unknown (-> unsupported), rather than silently creating really
- strange directories.
-
-2006-09-26 17:12 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build: Fix help message to correspond with
- reality.
-
-2006-09-24 17:44 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver: This check was correct the first time,
- (cond)restart just calls stop and start, so we need not handle
- them specifically.
-
-2006-09-24 00:48 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/chroot-sh.c: Fix wrapper prefix so error messages say
- chroot-sh: x.
-
-2006-09-21 19:44 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * m4/changelog.am, svnusers.map: Make ChangeLog prettier.
-
-2006-09-21 19:43 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/secure-mount.c: Make nodev the default, but don't enforce it
- for all mounts.
-
-2006-09-21 19:42 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/vlogin.c: Add the reset atexit handler right after setting
- the terminal to raw mode, so we don't end up with a raw terminal
- if (e.g.) openpty fails.
-
-2006-09-19 17:29 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * m4/ensc_pathprog.m4: Put /bin first in the searchpath when
- looking for env, so we work around the /usr/bin/env-is-a-symlink
- issue.
-
-2006-09-19 15:20 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst, distrib/Makefile.am,
- ensc_wrappers/Makefile-files: Fix Makefiles and the manifest to
- include all the files needed.
-
-2006-09-18 15:20 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/centos4, distrib/centos4/yum.repos.d/CentOS-Base.repo,
- distrib/centos4/yum/yum.conf, distrib/centos42: Rename centos42
- to the more generic centos4, and change the URLs appropriately.
-
-2006-09-18 14:57 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver: Enter the namespace earlier so testing for files
- (like /bin/bash, /etc/init.d/rc) works when the guest's root
- filesystem is mounted from its fstab.
-
-2006-09-16 17:26 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * src/secure-mount.c: Fix logic errors in secure-mount.
-
-2006-09-16 14:21 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, scripts/vserver.functions: Make novlandev
- the default, but easily overridable for all guests.
-
-2006-09-16 12:28 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * kernel/limit_int.h, kernel/signal.h: Add forgotten kernel headers
- (not important, but makes it easier to keep track).
-
-2006-09-15 21:18 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * kernel/context.h, kernel/context_cmd.h, kernel/cvirt.h,
- kernel/cvirt_cmd.h, kernel/debug.h, kernel/dlimit_cmd.h,
- kernel/inode.h, kernel/inode_cmd.h, kernel/legacy.h,
- kernel/limit.h, kernel/limit_cmd.h, kernel/limit_def.h,
- kernel/namespace.h, kernel/namespace_cmd.h, kernel/network.h,
- kernel/sched.h, kernel/sched_cmd.h, kernel/signal_cmd.h,
- kernel/switch.h, kernel/xid.h, lib/cflags-v13.c,
- lib/syscall_ctxmigrate-v13.hc, lib/syscall_setnamespace-v13.hc,
- lib/syscall_waitexit-v13.hc, lib/vserver.h: - Update the kernel
- headers to 2.0.2.1.
- - Add missing flags.
- - Fix the calls that got updated so they work as expected.
-
-2006-09-15 20:15 Benedikt Böhm <hollow@gentoo.org>
-
- * scripts/vserver-wrapper: make vserver-wrapper gentoo compliant
-
-2006-09-15 19:16 Benedikt Böhm <hollow@gentoo.org>
-
- * distrib/Makefile.am, distrib/gentoo, distrib/gentoo/initpost,
- scripts/vserver-build.functions, scripts/vserver-build.template:
- add gentoo distribution target; force sane /dev by default for
- template build method
-
-2006-09-15 15:41 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.start: env doesn't grok --.
-
-2006-09-15 08:31 Benedikt Böhm <hollow@gentoo.org>
-
- * ., ChangeLog.sed, Makefile.svn, configure.ac, contrib/.cvsignore,
- cvsusers.map, distrib/.cvsignore, doc/.cvsignore,
- ensc_fmt/.cvsignore, ensc_vector/.cvsignore,
- ensc_vector/testsuite/.cvsignore, lib/.cvsignore,
- lib/apidoc/.cvsignore, lib/testsuite/.cvsignore,
- lib_internal/.cvsignore, lib_internal/testsuite/.cvsignore,
- m4/changelog.am, m4/ensc_changelog.m4, mkrelease,
- scripts/.cvsignore, scripts/legacy/.cvsignore, src/.cvsignore,
- src/testsuite/.cvsignore, sysv/.cvsignore, tests/.cvsignore,
- vserver-start/.cvsignore: cleanup old cvs cruft; add mkrelease
- script; use svn2cl instead of cvs2cl
-
-2006-09-15 04:32 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions, scripts/vserver.stop, scripts/vshelper: Make
- vshelper reboot/halt work correctly when CONFIG_VSERVER_LEGACY is
- disabled and the helper is run synchronously.
-
-2006-09-13 22:18 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.functions.rpm: Fix RPM-based builds on
- RHEL/CentOS 4.4.
-
-2006-09-12 18:35 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst, distrib/Makefile.am,
- distrib/misc/environment, doc/configuration.xml,
- scripts/vserver.functions, scripts/vserver.start: Add initial
- environment support. Lets users work around their broken
- initscripts inside guests when using the sysv initstyle.
-
-2006-09-12 17:19 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * configure.ac: Add ugly hack to workaround yum's problems with
- file:////.
- (https://savannah.nongnu.org/bugs/?15517)
-
-2006-09-12 17:17 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, scripts/vserver.start: Add Herbert Pötzl's
- patch to support initialization scriptlets.
-
-2006-09-12 17:09 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * ensc_wrappers/wrappers-unistd.hc, scripts/vserver,
- src/capchroot.c, src/vcontext.c: - Teach vcontext about usernames
- (if dietlibc is used).
- - Teach capchroot about uid 0.
- - Add Einitgroups.
- - Specify uid 0 by default, so username lookups are avoided.
-
-2006-09-12 16:55 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * configure.ac, ensc_wrappers/wrappers-termios.hc,
- ensc_wrappers/wrappers.h, scripts/vserver, src/Makefile-files,
- src/vcontext.c, src/vlogin.c: Add vlogin, a terminal proxy for
- vserver ... enter.
- (https://savannah.nongnu.org/patch/?4969)
-
-2006-09-12 16:54 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.template, scripts/vserver.delete: Add
- forgotten svn:keywords.
-
-2006-09-12 16:33 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * configure.ac, contrib/manifest.dat.pathsubst,
- scripts/Makefile-files, scripts/magic.mime,
- scripts/util-vserver-vars.pathsubst, scripts/vserver-build,
- scripts/vserver-build.template: Add support for vserver-build -m
- template, which extracts tarballs.
-
-2006-09-12 12:39 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/functions, scripts/vapt-get, scripts/vrpm,
- scripts/vsomething: Make vrpm and vapt-get use vsomething.
- Fix external package management so that the process is executed
- in
- the guest's network context, in case scriptlets restart daemons.
-
-2006-09-12 12:29 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * contrib/manifest.dat.pathsubst, scripts/Makefile-files,
- scripts/vserver, scripts/vserver.delete: Add a delete method to
- remove guests, based on Thomas Champagne's
- patch.
- (https://savannah.nongnu.org/patch/?4899)
-
-2006-09-12 12:21 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, scripts/functions,
- scripts/vserver.functions: Apply Bastian Blank's userspace
- namespace cleanup patch.
-
-2006-09-12 12:16 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * doc/configuration.xml, scripts/vserver-setup.functions,
- scripts/vserver.functions, scripts/vserver.start,
- scripts/vserver.stop, scripts/vserver.suexec: Apply Jan
- Rekorajski's CPUSET patch.
- (http://www.paul.sladen.org/vserver/archives/200511/0245.html)
-
-2006-09-12 11:29 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * distrib/Makefile.am, distrib/fc5, distrib/fc5/apt,
- distrib/fc5/apt/rpmpriorities, distrib/fc5/apt/sources.list,
- distrib/fc5/pkgs, distrib/fc5/pkgs/01, distrib/fc5/pkgs/02,
- distrib/fc5/pkgs/03, distrib/fc5/rpmlist.d,
- distrib/fc5/rpmlist.d/00.lst, distrib/fc5/yum,
- distrib/fc5/yum.repos.d,
- distrib/fc5/yum.repos.d/fedora-core.repo,
- distrib/fc5/yum.repos.d/fedora-development.repo,
- distrib/fc5/yum.repos.d/fedora-extras-development.repo,
- distrib/fc5/yum.repos.d/fedora-extras.repo,
- distrib/fc5/yum.repos.d/fedora-legacy.repo,
- distrib/fc5/yum.repos.d/fedora-updates-testing.repo,
- distrib/fc5/yum.repos.d/fedora-updates.repo,
- distrib/fc5/yum/yum.conf, distrib/redhat/initpost,
- scripts/vyum-worker: Add support for Fedora Core 5 and yum 2.6.
-
-2006-09-12 11:21 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build, scripts/vserver-build.debootstrap: Add
- support for specifying a debootstrap script.
-
-2006-09-12 11:14 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall-alternative.h: Update to the latest version of
- Herbert's alternative syscall
- implementation.
-
-2006-09-12 11:11 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib_internal/sys_clone.h: Fix sys_clone usage on sparc and s390,
- sparc returns parent pid in
- the child and s390 has the arguments reversed.
-
-2006-09-12 11:09 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/legacy/vserver, scripts/vserver.functions: - Fix obsolete
- nice usage.
- - Make sure the correct nice value is used, even if the parent
- process has a different one.
-
-2006-09-12 11:04 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * configure.ac: Fix API option parsing so oldproc and olduts are
- valid options
- (allowing for cut'n'paste from vserver-info to ./configure)
-
-2006-09-12 10:54 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/start-vservers: Fixes start-vservers to work on _all_
- guests when --all is specified,
- as well as fixing the cleanup.
- (https://savannah.nongnu.org/bugs/index.php?14525)
- (https://savannah.nongnu.org/bugs/index.php?15632)
-
-2006-09-12 10:50 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver.functions: Apply Christian Heim's patch to
- deprecate the Gentoo initstyle
-
-2006-09-12 10:47 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/pkgmgmt, scripts/vserver.functions: Make fstab usage
- consistent, fstab gets mounted first, then
- fstab.local and then fstab.remote, unmounting in the reverse
- order.
-
-2006-09-12 10:39 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver: Fix condrestart to actually do a conditional
- restart
- (https://savannah.nongnu.org/bugs/index.php?15678)
-
-2006-09-12 10:34 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver: Fix Usage: message for the main script.
- (https://savannah.nongnu.org/bugs/index.php?15551)
-
-2006-09-12 10:32 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/vserver-build.functions: Use $_SETATTR instead of chattr
- to remove the barrier.
-
-2006-09-12 10:30 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * scripts/chcontext: Fix chcontext so it passes --secure as the
- first argument to
- vattribute so it doesn't override the passed caps.
- (https://savannah.nongnu.org/patch/?4993)
-
-2006-09-12 10:26 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * lib/syscall_setccaps-v13.hc: Fix vc_set_ccaps to work the way the
- kernel expects it to
- (https://savannah.nongnu.org/patch/?4968)
-
-2006-09-12 10:22 Daniel Hokka Zakrisson <daniel@hozac.com>
-
- * man/chcontext.8: Apply Micah Anderson's patch fixing chcontext's
- man page section
- (https://savannah.nongnu.org/bugs/index.php?16083)
-
-2006-09-10 17:26 Benedikt Böhm <hollow@gentoo.org>
-
- * util-vserver: remove util-vserver dir
-
-2006-09-10 17:07 Benedikt Böhm <hollow@gentoo.org>
-
- * AUTHORS, ChangeLog.sed, Makefile.am, NEWS, README, REQUIREMENTS,
- THANKS, build-all, compat-c99.h, compat.h, configure.ac, contrib,
- cvsusers.map, distrib, doc, ensc_fmt, ensc_vector, ensc_wrappers,
- kernel, lib, lib_internal, m4, man, pathconfig.h.pathsubst,
- scripts, src, sysv, tests, update-doc, util-vserver.spec.in,
- util-vserver/AUTHORS, util-vserver/ChangeLog.sed,
- util-vserver/Makefile.am, util-vserver/NEWS, util-vserver/README,
- util-vserver/REQUIREMENTS, util-vserver/THANKS,
- util-vserver/build-all, util-vserver/compat-c99.h,
- util-vserver/compat.h, util-vserver/configure.ac,
- util-vserver/contrib, util-vserver/cvsusers.map,
- util-vserver/distrib, util-vserver/doc, util-vserver/ensc_fmt,
- util-vserver/ensc_vector, util-vserver/ensc_wrappers,
- util-vserver/kernel, util-vserver/lib, util-vserver/lib_internal,
- util-vserver/m4, util-vserver/man,
- util-vserver/pathconfig.h.pathsubst, util-vserver/scripts,
- util-vserver/src, util-vserver/sysv, util-vserver/tests,
- util-vserver/update-doc, util-vserver/util-vserver.spec.in,
- util-vserver/vserver-start, vserver-start: skip duplicate
- util-vserver dir
-
-2006-03-26 11:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/Makefile-files,
- util-vserver/contrib/yum-2.6.0-chroot.patch: added
- yum-2.6.0-chroot.patch
-
-2006-01-22 19:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac,
- util-vserver/util-vserver.spec.in: version 0.30.210
-
-2006-01-22 19:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/capchroot.c, util-vserver/src/chcontext.c,
- util-vserver/src/reducecap.c: use stdout instead of stderr for
- the no-compat API warnings on '--help';
- else, 'make distcheck' will fail
-
-2006-01-22 19:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite,
- util-vserver/lib_internal/testsuite/.cvsignore: updated
-
-2006-01-22 18:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all: added testcases for the
- '--enable-apis=NOLEGACY' configure switch
-
-2006-01-22 18:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/Makefile-files: added
- dietlibc + glibc versions of the isnumber and sigbus tests
-
-2006-01-22 18:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: - declare the VC_ENABLE_API_* macros
- through AH_TEMPLATE()
- - provide only the v13,net APIs by default
- - added support for v13obs API
-
-2006-01-22 18:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc: do not provide
- Evc_new_s_context() wrapper without the required API
-
-2006-01-22 18:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: use the new
- VC_ENABLE_API_V13OBS define
-
-2006-01-22 18:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall.c: added linktime warning for
- vc_set_ipv4root()
-
-2006-01-22 18:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files,
- util-vserver/lib/syscall_setsched-v13.hc,
- util-vserver/lib/syscall_setsched-v13obs.hc,
- util-vserver/lib/syscall_setsched.c: split vc_set_sched_v13obs()
- into an own file
-
-2006-01-22 18:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chbind.c, util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/vserver-info.c: fixed compilation for disabled
- compat/legacy API
-
-2006-01-22 18:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/capchroot.c, util-vserver/src/chcontext.c,
- util-vserver/src/reducecap.c: added some workarounds so that it
- build without compat/legacy API
- resp. give out warnings explaining the situation
-
-2006-01-22 13:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added support for $(pkgcachedir)
-
-2006-01-22 13:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: - documented
- /etc/vservers/.defaults/cachebase + /etc/vservers/.../cache
- - documented default value of /etc/vservers/.../vdir
-
-2006-01-22 13:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: - do not require 'xalan'
- anymore by default
- - removed 'Requires: apt'; apt-rpm is not maintained upstream
- anymore
- - removed 'chattr' leftovers
- - create the '/etc/vservers/.defaults/cachebase' symlink
- - added /var/cache/vservers and the needed support
- - set barrier attribute on /vservers/.pkg and /vservers/.hash
- - added 'centos-release' to the list of packages in the
- copy-the-keys
- trigger script
- - create '/vservers/.hash' and add initial configuration for it
-
-2006-01-22 13:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/THANKS: - fixed ngnet -> non-legacy network
- confusion
- - mentioned improved dlimit support
-
-2006-01-22 12:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.debootstrap: - changed the way
- how temporary files/directories will be created:
-
- * mktemp will now be called with the '-t' parameter and sometimes
- with
- '-p'
- * absolutes paths (e.g. '/tmp') were removed from the templates
- * with this changes, it is now possible to override the location
- of
- the temporary files by setting $TMPDIR. This should add a way to
- solve problems like debootstrap on non-executable tmp-directories
- (http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15447)
-
- These changes require that 'mktemp' understands the following
- switches:
-
- * '-t' ... Generate a path rooted in a temporary directory.
- * '-d' ... Make a directory instead of a file.
- * '-p' ... Use the specified directory as a prefix when
- generating
- the temporary filename.
-
- Because 'mktemp' from Debian Woody's 'debianutils_1.16.2woody1'
- supports these features every recent Linux distribution should do
- it
- also.
-
- - allow to override path of the debootstrap binary with the
- $DEBOOTSTRAP
- environment variable
-
-2006-01-22 12:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions, util-vserver/scripts/pkgmgmt,
- util-vserver/scripts/start-vservers,
- util-vserver/scripts/util-vserver-vars.pathsubst,
- util-vserver/scripts/vserver-build.rpm,
- util-vserver/scripts/vserver.functions,
- util-vserver/scripts/vserver.start: changed the way how temporary
- files/directories will be created:
-
- * mktemp will now be called with the '-t' parameter and sometimes
- with
- '-p'
- * absolutes paths (e.g. '/tmp') were removed from the templates
- * with this changes, it is now possible to override the location
- of
- the temporary files by setting $TMPDIR. This should add a way to
- solve problems like debootstrap on non-executable tmp-directories
- (http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15447)
-
- These changes require that 'mktemp' understands the following
- switches:
-
- * '-t' ... Generate a path rooted in a temporary directory.
- * '-d' ... Make a directory instead of a file.
- * '-p' ... Use the specified directory as a prefix when
- generating
- the temporary filename.
-
- Because 'mktemp' from Debian Woody's 'debianutils_1.16.2woody1'
- supports these features every recent Linux distribution should do
- it
- also.
-
-2006-01-22 12:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: - the 'dlimit' stuff uses
- now a /etc/vservers/*/cache symlink pointing
- somewhere to /var/cache
- - _setSingleDiskLimit(): use one $_VDU call instead of two
- - give out a warning when dlimit/ stuff is configured but no
- cache
- symlink is existing
-
-2006-01-22 12:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: create the
- /etc/vservers/*/cache symlink
-
-2006-01-22 11:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vdu.c: rearranged some bits so that toplevel
- directory will be counted too
-
-2006-01-22 11:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: link 'vdu' against
- 'libinternal.a'
-
-2006-01-22 11:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vdu.c: - rewrote the directory traversal code to
- use 'EsafeChdir()' and
- friends
- - allow to specify both '--inodes' and '--space'
- - use 'isNumber()'
-
-2006-01-22 11:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: apply new 'isNumber()' API
-
-2006-01-22 11:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- __PKGCACHEDIR
-
-2006-01-22 11:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files,
- util-vserver/lib_internal/util-isnumber.c,
- util-vserver/lib_internal/util-isnumber.hc,
- util-vserver/lib_internal/util-isnumberunsigned.c,
- util-vserver/lib_internal/util.h: enhanced the isNumber() method:
- * now, it accepts units like 'm' or 'K'; 'isNumber()' needs now a
- third parameter telling whether to interprete the number strictly
- or
- whether to accept such units
- * an 'isNumberUnsigned()' method was created for unsigned types;
- an
- 'util-isnumber.hc' template file was created for this purpose
- * proper tests for over/underflow were implemented
-
-2006-01-22 11:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/Makefile-files,
- util-vserver/lib_internal/testsuite/isnumber.c: added isnumber.c
- testcase which checks the isNumber() and
- isNumberUnsigned() methods
-
-2006-01-22 11:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/Makefile-files,
- util-vserver/ensc_wrappers/wrappers-stat.hc,
- util-vserver/ensc_wrappers/wrappers.h: added wrappers-stat.hc
- which implements wrappers for the *stat(2)
- functions
-
-2006-01-21 13:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml,
- util-vserver/scripts/util-vserver-vars.pathsubst,
- util-vserver/scripts/vserver.functions,
- util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop,
- util-vserver/src/Makefile-files, util-vserver/src/vdu.c: applied
- http://savannah.nongnu.org/patch/?func=detailitem&item_id=4814
- (Daniel Hokka Zakrisson):
-
- This patch lets users configure disk limits in
- /etc/vservers/<name>/dlimits/*/, and have them set on the start
- of the
- vserver, as well as saved when stopping the vserver.
-
- For counting the amount of inodes and space used by a certain
- vserver
- on a filesystem, I modified the old and broken vdu program (vdu
- bin
- etc would not find etc, for instance) and made it useful again.
-
- The cache files will probably need some love, I'm a bit uncertain
- as
- to where to put them (or rather, the symlink to their location).
-
- This is the last piece of the disk limits puzzle. A variant of
- this
- would be really nice to have in 0.30.210. (do you have an ETA on
- that,
- btw?)
-
-2006-01-18 23:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h:
- NETTYPE_USER2KERNEL/NETTYPE_KERNEL2USER: handle IPv6 bcast case,
- too
-
-2006-01-18 23:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: adjusted the vc_net_nx_type enum so
- that the NETTYPE_USER2KERNEL() can
- be optimized
-
-2006-01-18 23:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/THANKS, util-vserver/lib/syscall_netadd-net.hc,
- util-vserver/lib/syscall_netadd.c,
- util-vserver/lib/syscall_netremove-net.hc,
- util-vserver/lib/syscall_netremove.c,
- util-vserver/lib/vserver-internal.h,
- util-vserver/scripts/vserver.functions,
- util-vserver/src/chbind.c: applied vnet patch from Daniel Hokka
- Zakrisson
- (http://savannah.nongnu.org/patch/?func=detailitem&item_id=4799)
-
-2006-01-18 23:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: * vcFeatureSet: added vcFEATURE_VNET
- enum
- * applied vnet patch from Daniel Hokka Zakrisson
- (http://savannah.nongnu.org/patch/?func=detailitem&item_id=4799)
-
-2006-01-18 23:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/issupported.c,
- util-vserver/lib/issupportedstring.c: added support for
- vcFEATURE_VNET feature
-
-2006-01-18 23:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/checkversion.c: minor formation fixups
-
-2006-01-04 17:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite,
- util-vserver/src/testsuite/.cvsignore,
- util-vserver/src/testsuite/Makefile-files,
- util-vserver/src/testsuite/hashcalc-plain.c,
- util-vserver/src/testsuite/hashcalc-plain.sh: added
- 'hashcalc-plain' tests to track down broken beecrypt/vhashify on
- some Debians
-
-2006-01-04 13:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/vprocunhide-files: readded
- /proc/version; it is expected by several programs
-
-2006-01-04 12:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore: added csope.out
-
-2006-01-04 12:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_getvhiname-v13.hc:
- vc_get_vhi_name_v13(): added comment near the strncpy(3) call
- which
- tells that an explicit termination with '\0' is not wanted
-
-2006-01-04 12:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-unixsock.h: ENSC_INIT_UNIX_SOCK():
- be more effective in an strncpy(3) call and
- avoid potential copying of an char which gets overridden later
-
-2006-01-03 00:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all: parameterized '-j' flag
-
-2006-01-03 00:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: removed old kernel headers
-
-2006-01-02 23:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/vprocunhide-files: hide /proc/cmdline
- and /proc/version because they can reveal information
- about the host system
-
-2006-01-02 23:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated url
-
-2006-01-02 23:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions,
- util-vserver/scripts/vserver-setup.functions: updated dates in
- the copyright notices
-
-2006-01-02 23:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/context.h, util-vserver/kernel/cvirt_def.h,
- util-vserver/kernel/debug.h, util-vserver/kernel/global.h,
- util-vserver/kernel/inode.h, util-vserver/kernel/limit.h,
- util-vserver/kernel/limit_def.h, util-vserver/kernel/network.h,
- util-vserver/kernel/sched_def.h, util-vserver/kernel/signal.h,
- util-vserver/kernel/xid.h: updated to 2.6.14.3-vs2.01 headers
-
-2006-01-02 18:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions:
- s!/etc/slackware-release!/etc/slackware-version! (reported by
- bubulak)
-
-2005-12-31 10:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: isDirectoryEmpty(): really ignore
- 'lost+found' by checking against the full
- path
- (https://savannah.nongnu.org/patch/?func=detailitem&item_id=4714,
- patched by XeRO)
-
-2005-12-31 10:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: colpanic(): added missing 'error'
- keyword for the colorize call (issue
- 15281, reported and patched by Micah Anderson)
-
-2005-12-31 10:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-fallback.h: added syscall numbers for
- hppa (263) and m32r (273)
-
-2005-12-31 10:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: - mount some more filesystems
- internally instead of calling the
- external 'mount' command
- - fixed MS_NODEV handling
-
-2005-12-31 10:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml,
- util-vserver/scripts/vserver.functions: added 'novlandev'
- interface flag
-
-2005-10-31 09:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vyum-worker: made it work with yum 2.4.0
-
-2005-10-30 16:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/centos42/yum/yum.conf,
- util-vserver/distrib/fc3/yum/yum.conf,
- util-vserver/distrib/fc4/yum/yum.conf: added
- 'installonlypkgs=/exactarch=0' entries
-
-2005-10-30 16:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added
- 'ensc_fmt/lib_libvserver_a-%' to DIETPROGS; this fixes problems
- e.g. with FC5's stack-protector
-
-2005-10-30 10:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.209
-
-2005-10-30 10:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: call 'vattribute' with
- '--flag default'
-
-2005-10-30 10:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/cflags-v13.c: added 'default' and 'secure'
- pseudo flags; they are open for enhancements
- but VC_VXF_VIRT_UPTIME seems to be the only flag for 'default'
- without
- sideeffects
-
-2005-10-29 16:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: added code to execute
- 'killall5 -15' in the halt script; this should
- fix the minilogd issues with CentOS and older RH releases
-
-2005-10-29 16:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/Makefile-files,
- util-vserver/src/testsuite/vwait-test.sh: added 'vwait-test.sh'
-
-2005-10-29 16:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: ok... try #3 of the new
- vwait stuff: it seems to be a good idea to
- read files *after* they are filled with content...
-
-2005-10-29 15:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: execute waitForSync everytime
- and not only when the shutdown succeeded
-
-2005-10-29 15:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: fixed the TIMEOUT case in
- yet another way: now, start 'vkill' and a
- killall command in the same backgrounded subshell. Parameter
- committal
- between the different shell instances is a horror and just a
- question
- of time until it breaks :(
-
-2005-10-29 15:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/start-vservers: add newlines in the makefile
- generated for the 'stop' case; else, there
- will be multiple target-dependency pairs on the same line
- [reported by
- Daniel Kraft]
-
-2005-10-29 15:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vdlimit.c: - revert a previous vc_add_dlimit()
- when vc_set_dlimit() fails
- - added some basic sanity checks for the parameters given on the
- CLI
- [both reported by Kevin Pendleton;
- https://savannah.nongnu.org/bugs/?func=detailitem&item_id=14026]
-
-2005-10-29 14:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: - removed documentation about
- single flags; it was broken and outdated
- - added link to http://linux-vserver.org/Scheduler+Parameters for
- the
- scheduler params
- [both
- https://savannah.nongnu.org/bugs/?func=detailitem&item_id=14331]
-
-2005-10-29 12:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: - initWait(): call
- 'vwait' without --terminate; this is required to
- give out a list of processes in _waitForVWait
- - _waitForVWait(): when 'vwait' returns with 'TIMEOUT', give out
- the
- list of current processes and kill the context manually
-
-2005-10-29 12:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: fillName(): initialize
- 'obj->cfgstyle' to vcCFG_AUTO
-
-2005-10-29 12:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.debootstrap: on non-debian
- machines (resp. those without debootstrap), generate
- '$DEBOOTSTRAP_DIR/arch' with the current architecture [reported
- by
- Nicolas Costes;
- http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14589]
-
-2005-10-29 12:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/start-vservers: - verifyVserver():
- implemented it
- - added some sanity checks to make sure that the 'depends' files
- are
- containing valid vserver names; the verifyVserver() function is
- used
- by these checks
-
-2005-10-29 12:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverctx.c: vc_getVserverCtx(): allow
- vc_get_vx_info() to fail but check for
- errno==ESRCH; for xid!=0, this syscall will return ENOSYS always
-
-2005-10-29 10:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/hashcalc.c: added some stack checks
-
-2005-10-29 10:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vwait.c: do not include "linuxvirtual.h"
- anymore; it's not needed
-
-2005-10-29 10:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getnbipv4root.c,
- util-vserver/lib/getversion-internal.hc,
- util-vserver/lib/isdynamicxid.c,
- util-vserver/lib/syscall_adddlimit.c,
- util-vserver/lib/syscall_cleanupnamespace.c,
- util-vserver/lib/syscall_ctxcreate.c,
- util-vserver/lib/syscall_ctxmigrate.c,
- util-vserver/lib/syscall_enternamespace.c,
- util-vserver/lib/syscall_getccaps.c,
- util-vserver/lib/syscall_getcflags.c,
- util-vserver/lib/syscall_getdlimit.c,
- util-vserver/lib/syscall_getiattr.c,
- util-vserver/lib/syscall_getncaps.c,
- util-vserver/lib/syscall_getnflags.c,
- util-vserver/lib/syscall_getnxinfo.c,
- util-vserver/lib/syscall_gettasknid.c,
- util-vserver/lib/syscall_gettaskxid.c,
- util-vserver/lib/syscall_getvhiname.c,
- util-vserver/lib/syscall_getvxinfo.c,
- util-vserver/lib/syscall_kill.c,
- util-vserver/lib/syscall_netadd.c,
- util-vserver/lib/syscall_netcreate.c,
- util-vserver/lib/syscall_netmigrate.c,
- util-vserver/lib/syscall_netremove.c,
- util-vserver/lib/syscall_remdlimit.c,
- util-vserver/lib/syscall_rlimit.c,
- util-vserver/lib/syscall_setccaps.c,
- util-vserver/lib/syscall_setcflags.c,
- util-vserver/lib/syscall_setdlimit.c,
- util-vserver/lib/syscall_setiattr.c,
- util-vserver/lib/syscall_setnamespace.c,
- util-vserver/lib/syscall_setncaps.c,
- util-vserver/lib/syscall_setnflags.c,
- util-vserver/lib/syscall_setsched.c,
- util-vserver/lib/syscall_setvhiname.c,
- util-vserver/lib/syscall_waitexit.c, util-vserver/src/vkill.c:
- include "virtual.h" instead of "linuxvirtual.h"
-
-2005-10-29 09:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/hashcalc.c: use our 'assert' from
- "lib_internal/coreassert.h"
- use Vwrite() instead of write()
-
-2005-10-29 09:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vhashify.c: cleanups; undefine macros after
- their use, set some UNUSED attributes
- and 'return EXIT_SUCCESS' in main to make the testsuite happy
- (where
- main() is not main())
-
-2005-10-29 09:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: start the vserver with the
- '--rescue' option and execute operations
- like 'chkconfig' there
-
-2005-10-29 08:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/THANKS: mentioned Herbert and his alternative
- syscall implementation
-
-2005-10-29 08:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fstool.c: when giving a directory and other
- filesystem objects on the CLI, the
- fstool based applications (showattr, setattr, chxid) changed into
- this
- directory without going back. So the other objects can not be
- found
- anymore (resp. the wrong ones) [reported and patched by Daniel
- Hokka
- Zakrisson;
- http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14313]
-
-2005-10-28 18:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: use new syntax for
- '--rescue-cmd'
-
-2005-10-28 18:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.skeleton: use new
- getDistribution API
-
-2005-10-28 18:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: when building new
- vservers allow empty directories for their roots
- improved error messages a little bit
-
-2005-10-28 18:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: updated help msg for '--rescue'
-
-2005-10-28 17:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: colorize/colpanic(): reset
- attributes after giving out the message
-
-2005-10-28 17:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am, util-vserver/distrib/centos42,
- util-vserver/distrib/centos42/pkgs,
- util-vserver/distrib/centos42/pkgs/01,
- util-vserver/distrib/centos42/pkgs/02,
- util-vserver/distrib/centos42/pkgs/03,
- util-vserver/distrib/centos42/yum,
- util-vserver/distrib/centos42/yum.repos.d,
- util-vserver/distrib/centos42/yum.repos.d/CentOS-Base.repo,
- util-vserver/distrib/centos42/yum/yum.conf,
- util-vserver/util-vserver.spec.in: added centos42 support
-
-2005-10-28 17:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated debootstrap
- url
-
-2005-10-28 17:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscall.m4: do not define
- ENSC_SYSCALL_TRADITIONAL when alternative syscalls are available
-
-2005-10-28 17:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_ctxcreate-v13.hc: use VCMD_ctx_create_v0
- instead of VCMD_ctx_create
-
-2005-10-28 17:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverctx.c: include "internal.h"
-
-2005-10-28 17:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am, util-vserver/kernel/context.h,
- util-vserver/kernel/cvirt_def.h, util-vserver/kernel/debug.h,
- util-vserver/kernel/global.h, util-vserver/kernel/limit.h,
- util-vserver/kernel/limit_def.h, util-vserver/kernel/network.h,
- util-vserver/kernel/sched_def.h, util-vserver/kernel/signal.h,
- util-vserver/kernel/xid.h: updated to 2.6.13.3-vs2.1.0-rc4
- headers
-
-2005-10-28 16:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-alternative.h: updated to
- http://vserver.13thfloor.at/Experimental/SYSCALL/syscall_shiny7.h
-
-2005-10-28 16:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files,
- util-vserver/lib/syscall-fallback.h: added syscall-fallback.h
-
-2005-10-28 16:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/pkgconfig.am: do not use multiline sed
- expressions anymore; instead of, assign and
- use a Makefile variable
-
-2005-10-28 16:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscallnr.m4: - do not use the local
- kernelheaders anymore; this causes problems on
- cross-compiling
- - use a fallback headerfile to determine syscall #
-
-2005-10-28 16:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am, util-vserver/configure.ac,
- util-vserver/lib/syscall.c, util-vserver/m4/ensc_kerneldir.m4,
- util-vserver/m4/ensc_syscall.m4: do not use the local
- kernelheaders anymore; this causes problems on
- cross-compiling
-
-2005-10-25 16:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/fmt.c: improved tests by validating
- that buffer gets not modified before or
- after the indented space
-
-2005-10-25 16:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverctx.c: getCtxFromFile(): fixed
- resource leaks in errorcase
- vc_getVserverCtx(): validate result by calling getvserverbyctx()
-
-2005-10-25 16:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h: vc_getVserverByCtx_Internal(): added
- prototype (with 'validate_result'
- parameter)
-
-2005-10-25 16:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverbyctx-compat.hc,
- util-vserver/lib/getvserverbyctx-v13.hc,
- util-vserver/lib/getvserverbyctx.c: vc_getVserverByCtx_*(): added
- 'validate_result' parameter to avoid
- recursion when called by getvserverctx()
-
-2005-10-25 16:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added vc_compareVserverById()
-
-2005-10-25 16:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files,
- util-vserver/lib/comparevserverbyid.c: added comparevserverbyid.c
-
-2005-10-25 16:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_fmt/fmtx.hc: save some bytes on the stack...
-
-2005-10-25 16:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: disable expensive tests by default
-
-2005-10-25 16:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: improved 'silent.%' target a little bit
- (might be incompatible with
- older grep but it's for developing only...)
-
-2005-10-25 16:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/Makefile-files,
- util-vserver/src/testsuite/hashcalc.sh: added hashcalc.sh
-
-2005-10-25 16:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/hashcalc.c: fixed params in
- calculateHashFromFD() call
-
-2005-10-23 22:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chroot-sh.c: testInternal(): fixed return value
- for non-existing files
-
-2005-10-23 22:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite,
- util-vserver/src/testsuite/.cvsignore,
- util-vserver/src/testsuite/Makefile-files,
- util-vserver/src/testsuite/hashcalc.c: added hashcalc
-
-2005-10-23 22:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vhashify.c: added TESTSUITE mode
-
-2005-10-09 09:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: fixed VLAN setup: set the
- name-type, honor the 'ip' value and use the
- device name on removal (reported by Timothy Arnold,
- https://savannah.nongnu.org/bugs/?func=detailitem&item_id=14148)
-
-2005-08-08 22:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: fixed detection of
- commented lines in config-files; formerly, only a
- single '#' was detected which does not really make sense for
- comments...
-
-2005-07-25 15:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: updated URLs
-
-2005-07-25 15:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vwait.c: - made the alarm() code working with
- glibc also; glibc restarts
- vc_wait_exit() instead of interrupting it so an explicit
- siginterrupt(2) is required
- - call alarm(2) again when EINTR was seen
-
-2005-07-25 15:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.skeleton: execute
- 'base.setSuccess' finally
-
-2005-07-25 15:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.rpm:
- rpm.sanityCheck(): added; it warns about missing initpre scripts
-
-2005-07-25 15:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: -
- getDistribution(): added sanity checks to make sure that there
- exist
- a configuration for the selected distribution
- - base.initFilesystem(): allow empty directories as root
- directories
- for new vservers; this uses the new isDirectoryEmpty() function
- - base.__cleanup(): armed the cleanup code; formerly there was
- still
- the safety 'echo' giving out the resulting command instead of
- executing it
-
-2005-07-25 15:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.debootstrap: use new calling
- convention of getDistribution(); 'debootstrap' does
- not require an explicit configuration of the distribution
-
-2005-07-25 15:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vsysvwrapper: fixed typo
- (s!$CHBIND!$_CHBIND!)
-
-2005-07-25 15:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm,
- util-vserver/scripts/vserver-build.rpm,
- util-vserver/scripts/vserver-build.yum: call rpm.sanityCheck()
-
-2005-07-25 15:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: isDirectoryEmpty(): added
- col*(): added
-
-2005-07-15 20:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.208
-
-2005-07-15 19:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac, util-vserver/lib/personalityflag.c,
- util-vserver/lib/personalitytype.c,
- util-vserver/m4/ensc_personality.m4: check whether enums from
- <linux/personality.h> are available before using
- them
- (https://savannah.nongnu.org/bugs/?func=detailitem&item_id=12921)
-
-2005-07-15 19:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: - require the -lib subpackage
- by -devel
- - copy GPG keys from /etc/pki/rpm-gpg/
-
-2005-07-15 19:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/rpm-fake-test.sh: fixed paths so that
- it works again...
-
-2005-07-15 19:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/vprocunhide: do not run when IATTR feature is
- not supported
-
-2005-07-15 19:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.suexec: readded the
- limit-ulimits-per-vserver stuff due to popular requests
- (http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12840)
-
-2005-07-15 18:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getinsecurebcaps.c: - adjusted insecure caps for
- the added CAP_AUDIT* and removed
- CAP_QUOTACTL stuff
- - assume every unknown capability as insecure
-
-2005-07-15 18:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite,
- util-vserver/lib/testsuite/.cvsignore: added 'personality'
-
-2005-07-15 18:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_netadd-net.hc,
- util-vserver/lib/syscall_netremove-net.hc: changed code so that
- it *compiles* with current kernel headers
-
-2005-07-15 18:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_getiattr-fscompat.hc,
- util-vserver/lib/syscall_setiattr-fscompat.hc: Changed the
- barrier-code so that it sets both the 't' ext2-flag and
- chmod-0 permissions. This is required to work with 1.2.10 patch;
- formerly the chmod-0 sufficed. [reported by Bjoern Steinbrink,
- http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13170]
-
-2005-07-15 16:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/capabilities.c: use a static '29' for QUOTACTL
- capability as VC_CAP_QUOTACTL was removed
-
-2005-07-15 16:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/ccaps-v13.c: added
- VC_VXC_{SYSLOG,BINARY_MOUNT,QUOTA_CTL}
- added/moved some aliases
-
-2005-07-15 16:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/bcaps-v13.c: removed VC_CAP_QUOTACTL
- added VC_CAP_AUDIT*
-
-2005-07-15 16:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: removed VC_CAP_QUOTACTL
- added VC_CAP_AUDIT*
- added VC_VXC_{SYSLOG,BINARY_MOUNT,QUOTA_CTL}
-
-2005-07-15 16:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/Makefile-files,
- util-vserver/contrib/yum-2.3.4-chroot.patch: added
- yum-2.3.4-chroot patch
-
-2005-07-15 16:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/network.h, util-vserver/kernel/network_cmd.h,
- util-vserver/kernel/switch.h, util-vserver/kernel/xid.h: updated
- to patch-2.6.12.2-vs2.0-rc7
-
-2005-07-04 22:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: check whether
- context is already active before starting the build
- (http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12849)
-
-2005-07-04 22:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: allow to pass a numeric xid to
- 'vserver-info ... RUNNING'
-
-2005-07-04 22:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files,
- util-vserver/lib_internal/util-isnumber.c,
- util-vserver/lib_internal/util.h: isNumber(): added
-
-2005-07-04 18:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.debootstrap: give out status
- message before downloading debootstrap
- (http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13472)
-
-2005-07-04 18:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-alternative.h: updated to
- http://vserver.13thfloor.at/Experimental/SYSCALL/syscall.h
- from 2005-05-07
-
-2005-07-03 22:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: oops... set the wrong
- value
-
-2005-07-03 22:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated
-
-2005-07-03 22:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: register fc4 as rh-style
- distribution
-
-2005-07-03 20:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: check for 'nohup'
-
-2005-07-03 17:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: removed chroot_* +
- C++ programs
- added chroot_sh + vwait
-
-2005-07-03 17:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am, util-vserver/lib/virtual.h: updated
- used kernel headers to 2.6.12.2-vs2.0-rc5
-
-2005-07-03 17:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_getvhiname-v13.hc,
- util-vserver/lib/syscall_setvhiname-v13.hc: -
- s!VCMD_vx_.et_vhi_name!VCMD_.et_vhi_name!
- - added workaround for older kernels not having the naming above
-
-2005-07-03 17:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: accept 'async' method
-
-2005-07-03 17:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: pipe 'popd' output to
- /dev/null
-
-2005-07-03 17:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: initSync(): fixed
- parameter naming
- initSync(): set 'async' method when 'vwait' is available
- _waitForVWait(): read pipe after 'wait' returned
-
-2005-07-03 17:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build: do not set OPTION_KEEP
-
-2005-07-03 17:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added vwait
-
-2005-07-03 17:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/pkgmgmt: - cleanups
- - unset %_dbpath at 'internalize' operation
-
-2005-07-03 17:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: vshelper.initSync(): fixed
- parameter naming
-
-2005-07-03 17:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chroot-sh.c: implemented 'testfile' subcommand
-
-2005-07-03 14:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/Makefile-files,
- util-vserver/contrib/yum-2.3.3-chroot.patch: added
- yum-2.3.3-chroot.patch
-
-2005-07-03 14:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: do not quote $_VSHELPER in help
- message (reported by Roman Barczynski,
- https://savannah.nongnu.org/bugs/?func=detailitem&item_id=13162)
-
-2005-07-03 14:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: mentioned the working
- directory for the scripts
-
-2005-07-03 14:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/context.h, util-vserver/kernel/context_cmd.h,
- util-vserver/kernel/cvirt_cmd.h, util-vserver/kernel/debug.h,
- util-vserver/kernel/namespace.h,
- util-vserver/kernel/namespace_cmd.h,
- util-vserver/kernel/network.h, util-vserver/kernel/network_cmd.h,
- util-vserver/kernel/switch.h: updated to 2.6.12.2-vs2.0-rc5
-
-2005-07-03 13:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: execute the prepre script in
- the configuration directory (*not* the
- vdir directory); this should not cause legacy problems as
- formerly the
- directory was not changed overall
-
-2005-07-03 13:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: check whether filesystem
- is mounted readonly; if so, execute
- $_SECURE_MOUNT with the '-n' argument
-
-2005-07-03 13:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm,
- util-vserver/scripts/vserver-build.debootstrap,
- util-vserver/scripts/vserver-build.rpm: execute base.setSuccess()
- at the end
-
-2005-07-03 13:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake-resolver.c: implemented better
- error-handling in the read() and write() functions
-
-2005-07-03 12:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-io.hc,
- util-vserver/ensc_wrappers/wrappers-iosock.hc,
- util-vserver/ensc_wrappers/wrappers-unistd.hc: store result of
- read*(2) and write*(2) fucntions into signed variables;
- error handling is more cleaner in this way
-
-2005-07-03 12:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: - cleanups
- - multiply RSS value with PAGESIZE
- (https://savannah.nongnu.org/bugs/?func=detailitem&item_id=13184)
- - prepare the '-O' option: calculate vserver names earlier and
- use
- some more helper functions
-
-2005-07-03 12:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: - doPwStringRequest(): fixed x86_64
- issue; rpm-fake.so transmitted a
- 'size_t' value, but rpm-fake-resolver expected an uint32_t
- - minor cleanups
-
-2005-07-03 09:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/Makefile-files,
- util-vserver/ensc_vector/vector-foreach.c,
- util-vserver/ensc_vector/vector.h,
- util-vserver/ensc_vector/vector.hc: added Vector_foreach*()
- functions
-
-2005-07-02 09:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files, util-vserver/src/vbuild.cc,
- util-vserver/src/vcheck.cc, util-vserver/src/vfiles.cc,
- util-vserver/src/vserver.cc, util-vserver/src/vserver.hh,
- util-vserver/src/vutil.cc, util-vserver/src/vutil.h,
- util-vserver/src/vutil.p: removed the C++ tools; they do not work
- with recent configuration and
- are adding huge dependencies
-
-2005-06-30 06:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: use vwait infrastructure
-
-2005-06-30 06:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.pkgmgmt,
- util-vserver/scripts/vserver.functions: use CHROOT_SH instead of
- CHROOT_*
- use vwait
-
-2005-06-30 06:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: remove generated
- vserver when build fails and '--keep' was not specified
-
-2005-06-30 06:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm,
- util-vserver/scripts/vserver-build.debootstrap,
- util-vserver/scripts/vserver-build.rpm,
- util-vserver/scripts/vserver-build.skeleton,
- util-vserver/scripts/vserver-build.yum: use 'base.init' instead
- of 'base.initVariables'
-
-2005-06-30 06:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build: added '--keep' option
-
-2005-06-30 06:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/X,
- util-vserver/scripts/util-vserver-vars.pathsubst: removed
- CHROOT_*
- added CHROOT_SH
-
-2005-06-30 06:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/pkgmgmt: use CHROOT_SH instead of CHROOT_*
-
-2005-06-30 06:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: include signal_cmd.h instead of
- signal.h
-
-2005-06-30 06:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added %dist tag
- buildrequire 'which' and 'diffutils'
- require 'apt' on i386 only
-
-2005-06-30 06:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fc4, util-vserver/distrib/fc4/apt,
- util-vserver/distrib/fc4/apt/rpmpriorities,
- util-vserver/distrib/fc4/apt/sources.list,
- util-vserver/distrib/fc4/pkgs, util-vserver/distrib/fc4/pkgs/01,
- util-vserver/distrib/fc4/pkgs/02,
- util-vserver/distrib/fc4/pkgs/03,
- util-vserver/distrib/fc4/rpmlist.d,
- util-vserver/distrib/fc4/rpmlist.d/00.lst,
- util-vserver/distrib/fc4/yum,
- util-vserver/distrib/fc4/yum.repos.d,
- util-vserver/distrib/fc4/yum.repos.d/fedora-devel.repo,
- util-vserver/distrib/fc4/yum.repos.d/fedora-updates-testing.repo,
- util-vserver/distrib/fc4/yum.repos.d/fedora-updates.repo,
- util-vserver/distrib/fc4/yum.repos.d/fedora.repo,
- util-vserver/distrib/fc4/yum/yum.conf: initial checkin
-
-2005-06-30 06:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: use CHROOT_SH instead of
- CHROOT_*
-
-2005-06-30 05:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore,
- util-vserver/src/Makefile-files, util-vserver/src/chroot-cat.c,
- util-vserver/src/chroot-rm.c, util-vserver/src/chroot-sh.c:
- replaced all the small chroot-* programs with a single
- 'chroot-sh'
- program
-
-2005-05-19 18:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added @NOHUP@
-
-2005-05-19 18:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/pkgmgmt: use new chroot-cat CLI
-
-2005-05-19 18:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/context.h, util-vserver/kernel/cvirt.h,
- util-vserver/kernel/dlimit.h, util-vserver/kernel/dlimit_cmd.h,
- util-vserver/kernel/inode_cmd.h, util-vserver/kernel/legacy.h,
- util-vserver/kernel/signal.h, util-vserver/kernel/signal_cmd.h,
- util-vserver/kernel/xid.h: updated
-
-2005-05-19 18:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/issupported.c,
- util-vserver/lib/issupportedstring.c, util-vserver/lib/vserver.h:
- vc_isSupported() et.al: added VWAIT feature
-
-2005-05-19 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscall.m4: s!enable_val!enableval!
-
-2005-05-19 18:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: fixed calculation of hours (%24
- instead of %60); reported in
- http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13048 by
- Roman Barczynski
-
-2005-05-19 18:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chroot-cat.c: added '-i', '-o' and '-a' options
- to cat or override a file, or to
- append something
-
-2005-05-19 17:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: use safe chroot-cat
- commands
-
-2005-05-05 19:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: - give out a more correct
- helpstring for the '--enable/disable-dietlibc'
- option
- - use AS_HELP_STRING instead of AC_HELP_STRING
-
-2005-05-05 18:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: - removed call to ENSC_FPIC_SYSCALL
- - enhanced dietlibc version check to the 64 bit version of hppa
-
-2005-05-05 09:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added vwait
-
-2005-05-05 09:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vwait.c: initial checkin
-
-2005-05-05 09:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vshelper-sync.c: use '__linux__' instead of
- '__linux' (reported by Ola Lundqvist)
-
-2005-05-05 09:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/exec-cd.c: minor cosmetical cleanup
-
-2005-05-05 09:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chroot-cat.c: - added support for '--help' and
- '--version'
- - added '-a' option to append information instead of truncating
- the
- file
-
-2005-05-05 09:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: - 'chroot-cat' supports now the
- '--help' and '--version' options so
- removed it from AM_INSTALLCHECK_STD_OPTIONS_EXEMPT
- - added vwait
-
-2005-05-05 09:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/install-notify.am: s!^# !## !
-
-2005-05-05 09:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files,
- util-vserver/lib/syscall_waitexit-v13.hc,
- util-vserver/lib/syscall_waitexit.c, util-vserver/lib/vserver.h:
- vc_wait_exit(): implemented support for this syscall
-
-2005-05-02 21:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/compat-pivot_root.h: use <syscall-wrap.h>
-
-2005-05-02 21:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscall.m4: minor cosmetical cleanups
-
-2005-05-02 21:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_fpicsyscall.m4: obsoleted
-
-2005-05-02 21:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_fpicsyscall.m4: use ENSC_SYSCALL_ALTERNATIVE
-
-2005-05-02 21:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: cleaned up '#include
- <*syscall.h>' stuff
-
-2005-05-02 21:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-legacy.hc,
- util-vserver/lib/syscall-wrap.h: include <syscall.h> also
-
-2005-05-02 21:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-xhtml.xsl: use class
- 'directoryname' instead of 'directory' for '<directory/>'
- markup
-
-2005-05-02 21:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am, util-vserver/distrib/Makefile.am,
- util-vserver/m4/install-notify.am: give out additional
- information about the 'make install' process
-
-2005-04-28 19:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.207
-
-2005-04-28 18:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: adjusted dietlibc requirements
-
-2005-04-28 18:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: allow to override the execution
- domain (personality); added
- '--personality-type' and '--personality-flags' options
-
-2005-04-28 18:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake-resolver.c: added a TEMP_FAILURE_RETRY
- around a read(2)
-
-2005-04-28 18:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.suexec: added support for a rescue
- mode
-
-2005-04-28 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: *
- _generatePersonalityOptions(): added and use it
- * added support for a rescue mode
-
-2005-04-28 18:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.pkgmgmt:
- YUM_RELEASEPKGS: added
-
-2005-04-28 18:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: fixed docu for 'stop' and 'start'
-
-2005-04-28 18:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/pkgmgmt: * verifyInternalPackages(): added
- * added some sanity checks for a sany environment when
- internalizing
- the package management
-
-2005-04-28 18:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: * isRegularFile(): fixed
- evaluation of params
- * hasSubstring(): added
- * getAllVservers(): fixed typo
-
-2005-04-28 18:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/sys_clone.h: cleanups; do not include
- <sys/syscall.h>
-
-2005-04-28 18:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files,
- util-vserver/lib_internal/sys_personality.h: added
- sys_personality.h
-
-2005-04-28 17:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/legacy/vserver-copy,
- util-vserver/scripts/vserver-copy: moved to legacy
-
-2005-04-28 17:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/Makefile-files,
- util-vserver/lib/testsuite/personality.c: added testcases for the
- vc_*personality*() functions
-
-2005-04-28 17:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added prototypes for vc_*personality*
- support
-
-2005-04-28 17:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: updated to new kernel headers
-
-2005-04-28 17:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/cflags_list-v13.c: do not include <string.h>
- anymore
-
-2005-04-28 17:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h: utilvserver_listparser_uint*():
- removed the 'nonnull' attribute for the 'mask' param
-
-2005-04-28 17:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files,
- util-vserver/lib/personalityflag.c,
- util-vserver/lib/personalityflag_list.c,
- util-vserver/lib/personalitytype.c: added personality* files
-
-2005-04-28 17:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: * added some markup
- * documented 'personality'
-
-2005-04-28 17:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-xhtml.xsl,
- util-vserver/doc/configuration.dtd: added support for <directory>
- and <filename> markup
-
-2005-04-28 17:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fc3/yum/yum.conf:
- s!redhat-release!fedora-release!
-
-2005-04-28 17:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fc3/pkgs/02: removed 'coreutils'
-
-2005-04-28 17:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fc3/rpmlist.d/00.lst: added some more
- packages
-
-2005-04-28 17:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fc1/apt/rpmpriorities,
- util-vserver/distrib/fc2/apt/rpmpriorities,
- util-vserver/distrib/fc3/apt/rpmpriorities,
- util-vserver/distrib/rh9/apt/rpmpriorities: added *-release
- packages
-
-2005-04-28 17:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst,
- util-vserver/scripts/Makefile-files: moved vserver-copy to legacy
-
-2005-04-28 17:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added new kernel headers
-
-2005-04-28 11:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/context.h, util-vserver/kernel/context_cmd.h,
- util-vserver/kernel/cvirt.h, util-vserver/kernel/cvirt_cmd.h,
- util-vserver/kernel/cvirt_def.h, util-vserver/kernel/debug.h,
- util-vserver/kernel/debug_cmd.h, util-vserver/kernel/dlimit.h,
- util-vserver/kernel/dlimit_cmd.h, util-vserver/kernel/inode.h,
- util-vserver/kernel/inode_cmd.h, util-vserver/kernel/legacy.h,
- util-vserver/kernel/limit.h, util-vserver/kernel/limit_cmd.h,
- util-vserver/kernel/limit_def.h, util-vserver/kernel/namespace.h,
- util-vserver/kernel/network.h, util-vserver/kernel/network_cmd.h,
- util-vserver/kernel/sched.h, util-vserver/kernel/sched_cmd.h,
- util-vserver/kernel/sched_def.h, util-vserver/kernel/switch.h,
- util-vserver/kernel/xid.h: updated to headers from
- patch-2.6.11.7-vs2.0-pre2
-
-2005-04-24 20:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: showContexts(): added 'const'
- qualifier
-
-2005-04-24 20:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/start-vservers,
- util-vserver/scripts/vsomething: use the new getAllVservers()
- functionality to specify special kinds of
- vservers
-
-2005-04-24 20:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: * isRegularFile(): allow to
- override the '-f' classifier
- * getAllVservers(): added several types of vservers (marked,
- unmarked,
- running...)
- * getAllVserversByArg()" added
-
-2005-04-24 20:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc_compat.m4: *
- ENSC_DIETLIBC_NEED_COMPAT: use the 'syscall-wrap.h' header and
- the
- results from ENSC_SYSCALL_ALTERNATIVE
-
-2005-04-24 20:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscall.m4: * ENSC_SYSCALL_ALTERNATIVE:
- added
- * ENSC_SYSCALL: use the 'syscall-wrap.h' header and the results
- from
- ENSC_SYSCALL_ALTERNATIVE
-
-2005-04-24 20:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h,
- util-vserver/lib_internal/sys_clone.h: include "syscall-wrap.h"
-
-2005-04-24 20:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/ncaps-net.c, util-vserver/lib/nflags-net.c:
- VALUES: added an empty field to make it compile with gcc4
-
-2005-04-24 20:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/bcaps_list-v13.c,
- util-vserver/lib/ccaps_list-v13.c,
- util-vserver/lib/cflags_list-v13.c,
- util-vserver/lib/ncaps_list-net.c,
- util-vserver/lib/nflags_list-net.c: made it compatible to the new
- utilvserver_listparser_uint*() API and
- added wrappers with a third 'bool *' arg
-
-2005-04-24 20:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/listparser.hc: * parser function has now to set
- a 'bool *' arg to signal errors
- * when 'mask' argument is null, the special modifiers like '~',
- '!' or
- 'any' are not allowed
-
-2005-04-24 20:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h: utilvserver_listparser_uint*():
- added a third 'bool *' arg for the
- parser function so that errors can be better propagated
-
-2005-04-24 20:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files,
- util-vserver/lib/syscall-alternative.h,
- util-vserver/lib/syscall-wrap.h: added syscall-alternative.h and
- syscall-wrap.h
-
-2005-04-24 20:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/update-doc: exclude some static files
-
-2005-04-24 20:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all: remove config.cache when CLEAN is set
- disabled gcc33 build
-
-2005-04-24 11:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-xhtml.xsl,
- util-vserver/doc/configuration.dtd,
- util-vserver/doc/configuration.xml: added new markup
- added new CSS from Nicolas Costes
-
-2005-04-16 21:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: cleanups
- added '--disable-extra-optimizations' option
-
-2005-04-16 21:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions,
- util-vserver/scripts/vserver-build.functions.apt,
- util-vserver/scripts/vserver-build.functions.rpm,
- util-vserver/scripts/vserver-build.functions.yum,
- util-vserver/scripts/vserver.functions: use the common
- isRegularFile() method to filter out backup-files
-
-2005-04-16 21:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: isRegularFile(): added
-
-2005-04-16 21:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: cleanups
- added changelog entry for 0.30.206
-
-2005-04-12 22:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.206
-
-2005-04-12 21:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: implemented VERIFYPROC method
-
-2005-04-12 21:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: added verify-proc sanity
- check
-
-2005-04-12 21:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: killContext(): commented out the
- more correct
- (but not working) kill-sequence
-
-2005-04-12 21:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: ship the yum patches
-
-2005-04-12 21:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added '--no-wrap -S' to the
- CVS2CL_AMFLAGS
-
-2005-04-12 19:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: adjusted min-dietlibc requirements
-
-2005-04-12 19:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: ENSC_ENABLE_DIETLIBC(): allow
- 'min_ver' to be a shell variable
-
-2005-04-12 18:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: vshelper.isDebug(): fixed logic
-
-2005-04-10 12:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: send the signals for endgrent() and
- endpwent()
-
-2005-04-10 12:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/Makefile-files,
- util-vserver/contrib/yum-2.2.1-chroot.patch,
- util-vserver/contrib/yum-2.3.2-chroot.patch: added patches for
- yum
-
-2005-04-10 12:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: include m4/libsel.am
-
-2005-04-10 01:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/context-sync.hc: ignore errors during setsid(2)
- execution (required for vs1.9.5.12+)
-
-2005-04-10 01:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: * kill vserver processes
- explicitly with 'killContext'; userspace
- reboot helper may assume that 'reboot(2)' never returns...
- * added 'async' method
-
-2005-04-10 00:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: implicate '--sync' option; it
- is not possible to stop asynchronously
- send SIGINT to pid 1 instead of trying to determine initpid
-
-2005-04-10 00:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: use 'killContext()'
- instead of invoking 'vkill' manually
- set an initial runlevel for 'minit' style also
- set 'async' vshelper method for non-sync mode
-
-2005-04-10 00:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vprocunhide: fixed missing quoting of '~';
- this may cause very slow booting when
- NIS/LDAP servers are local vservers as bash tries to expand this
- to a
- homedir...
-
-2005-04-10 00:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: spawn(), killContext(): added
-
-2005-04-10 00:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/libsel.am: initial checkin
-
-2005-04-10 00:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: use a more modern version which
- accepts 'DIET' and 'DIETFLAGS' as
- global configure variables
-
-2005-04-10 00:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_cxxcompiler.m4: fixed typo
-
-2005-04-10 00:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: defined ENSC_USE_DIETLIBC +
- ENSC_USE_GLIBC
-
-2005-04-10 00:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: removed 'DIET' and 'DIETFLAGS'
- variables; they are set by configure now
-
-2005-04-08 19:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vyum-worker: added better test for patched
- yum
-
-2005-04-08 19:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: fixed typo
-
-2005-04-08 19:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.suexec: fixed typo (reported by Paul
- S. Gumerman)
-
-2005-04-08 19:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.yum: substitute
- @YUMLOCKDIR@
-
-2005-04-08 19:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: fixed operation when context was
- not specified
-
-2005-04-08 19:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpre: reverted the patch adding
- '/usr/X11'
- create '/sbin/new-kernel-pkg'; 'initpost' would be too late for
- FC4
-
-2005-04-08 19:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: use 'ln -sf' instead of 'ln
- -s'
-
-2005-04-08 19:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fc3/yum/yum.conf: add 'lockfile'
-
-2005-04-08 19:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added 'fc3' to 'redhat_style'
-
-2005-04-08 19:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: use DIETFLAGS instead of DIET_FLAGS
-
-2005-03-29 02:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/Makefile-files: use $(LIBENSCVECTOR)
- instead of libensc_vector.a
-
-2005-03-25 21:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: fixed typo
-
-2005-03-25 17:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: minor cleanups: call
- vkill with '--xid' instead of '-c'
-
-2005-03-25 16:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: address both the context and
- the pid when sending SIGINT to init
-
-2005-03-25 02:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/copy-check: do not use '-s'
- with 'cmp' but display verbose error reason
-
-2005-03-25 02:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/switchtowatchxid.c: simplified it and
- made it work with recent kernels
-
-2005-03-25 02:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-xhtml.xsl: use 'alternate
- stylesheet' instead of 'stylesheet' (reported by Herbert
- Poetzl)
-
-2005-03-25 02:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: fixed quoting of % in
- %description
-
-2005-03-24 14:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am, util-vserver/REQUIREMENTS: added
- REQUIREMENTS
-
-2005-03-24 13:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac,
- util-vserver/util-vserver.spec.in: version 0.30.205
-
-2005-03-24 13:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added some %descriptions
-
-2005-03-24 12:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vhashify.c: s!write()!Vwrite()! at some places
- add 'volatile' qualifier at variables used around 'setjmp'
- use sigsetjmp() instead of setjmp()
- minor code cleanups
-
-2005-03-24 12:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: s!write()!Vwrite()! at some
- places
- use Echdir() instead of chdir()
-
-2005-03-24 12:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/filetime.c, util-vserver/src/lsxid.c,
- util-vserver/src/readlink.c, util-vserver/src/reducecap.c,
- util-vserver/src/showattr.c, util-vserver/src/vattribute.c,
- util-vserver/src/vcontext.c, util-vserver/src/vcopy.c,
- util-vserver/src/vdlimit.c, util-vserver/src/vlimit.c,
- util-vserver/src/vps.c, util-vserver/src/vserver-stat.c,
- util-vserver/src/vuname.c, util-vserver/src/vunify.c,
- util-vserver/vserver-start/interface-read.c: s!write()!Vwrite()!
- at some places
-
-2005-03-24 12:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/sigbus.c: use Etruncate()
- instead of truncate()
-
-2005-03-24 12:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/copy-check: added new tests
- and better diagnostic
-
-2005-03-24 12:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-copy.c: moved 'volatile'
- qualifiers to a better place
- minor code cleanups
-
-2005-03-24 12:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-unistd.hc: E*truncate():
- added
-
-2005-03-24 12:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/testsuite/test2.c: #undef NDEBUG
-
-2005-03-24 01:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/sigbus.c: unlink temporary
- files on exit
-
-2005-03-24 00:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-unify.c: Unify_unify(): block
- signals while executing the non-atomic operations
-
-2005-03-24 00:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vhashify.c: optimized directory creation
-
-2005-03-24 00:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-copy.c: prepared for sigbus
- testcase
- added some 'volatile' modifiers
- use siglongjmp() instead of longjmp()
-
-2005-03-24 00:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/matchvserverinfo-init.c: minor code
- cleanups
-
-2005-03-24 00:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite,
- util-vserver/lib_internal/testsuite/.cvsignore,
- util-vserver/lib_internal/testsuite/Makefile-files,
- util-vserver/lib_internal/testsuite/sigbus.c: added sigbus
- testcase
-
-2005-03-23 02:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/testsuite,
- util-vserver/ensc_vector/testsuite/.cvsignore: updated
-
-2005-03-23 02:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vhashify-init.hc, util-vserver/src/vhashify.c:
- added lots of new code...
-
-2005-03-23 02:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: is_selinux_enabled(): added
-
-2005-03-23 02:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm,
- util-vserver/scripts/vserver-build.rpm,
- util-vserver/scripts/vserver-build.yum: execute '--initdb' before
- importing pubkeys
- import pubkeys from /etc/vservers/.distributions/.common/pubkeys
- also
-
-2005-03-23 02:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: added 'hashify' target
-
-2005-03-23 02:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- $_VHASHIFY
-
-2005-03-23 02:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/matchlist-initrefserverlist.c: fixed
- initialization of 'vserver'
-
-2005-03-23 02:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: create
- /etc/.../.distributions/.common/pubkeys/
- create /etc/.../.defaults/apps/vunify/hash
-
-2005-03-23 02:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: copy GPG keys from the system
- into the confdir
- buildrequire dietlibc-0.25
-
-2005-03-23 02:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all: build with debug settings
-
-2005-03-22 15:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: honor return codes of read(2) and
- write(2) when communication with the rpm-fake-helper
- call read(2) and write(2) through TEMP_FAILURE_RETRY()
- use Vwrite() instead of write(2) at some places
-
-2005-03-22 15:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/command-exec.c: call write(2) through
- TEMP_FAILURE_RETRY()
-
-2005-03-22 15:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: BuildRequire beecrypt-devel
-
-2005-03-22 15:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c, util-vserver/src/vhashify.c:
- workaround warning messages regarding 'warn_unused_return_value'
- when
- using _FORTIFY_SOURCE.
-
-2005-03-22 14:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservervdir.c,
- util-vserver/lib_internal/coreassert.h,
- util-vserver/lib_internal/matchlist-initmanually.c,
- util-vserver/lib_internal/matchlist-printid.c,
- util-vserver/lib_internal/util-exitlikeprocess.c,
- util-vserver/lib_internal/util-io.h: workaround warning messages
- regarding 'warn_unused_return_value' when
- using _FORTIFY_SOURCE.
-
-2005-03-22 14:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added vhashify +
- vdlimit
-
-2005-03-22 14:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: cleanups
- use %global instead of %define
-
-2005-03-22 14:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all: set _FORTIFY_SOURCE
-
-2005-03-19 03:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore: updated
-
-2005-03-19 03:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore: updated
-
-2005-03-19 02:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/update-doc: initial checkin
-
-2005-03-19 02:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: do not use '--create' for dynamic
- contexts
-
-2005-03-19 02:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/apps: removed...
-
-2005-03-19 02:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/apps, util-vserver/distrib/apps/vshelper,
- util-vserver/distrib/apps/vshelper/action: added to be removed...
-
-2005-03-19 02:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initsignal,
- util-vserver/src/testsuite/data/vserver1,
- util-vserver/src/testsuite/data/vserver2,
- util-vserver/src/testsuite/vuname, util-vserver/sysv/vkillall,
- util-vserver/tests/attack.spec, util-vserver/tests/ulimit:
- obsoleted
-
-2005-03-19 02:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/data/vserver1,
- util-vserver/src/testsuite/data/vserver1/apps,
- util-vserver/src/testsuite/data/vserver1/apps/pkgmgmt,
- util-vserver/src/testsuite/data/vserver1/apps/pkgmgmt/style,
- util-vserver/src/testsuite/data/vserver1/apps/vunify,
- util-vserver/src/testsuite/data/vserver1/apps/vunify/exclude,
- util-vserver/src/testsuite/data/vserver2,
- util-vserver/src/testsuite/data/vserver2/apps,
- util-vserver/src/testsuite/data/vserver2/apps/vunify,
- util-vserver/src/testsuite/data/vserver2/apps/vunify/exclude,
- util-vserver/src/testsuite/vuname,
- util-vserver/src/testsuite/vuname/nodename,
- util-vserver/sysv/vkillall, util-vserver/tests/attack.spec,
- util-vserver/tests/ulimit, util-vserver/tests/ulimit/cpu: added
- to be removed...
-
-2005-03-19 02:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initsignal: added to be removed
- soon...
-
-2005-03-19 02:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vnet.c: obsoleted...
-
-2005-03-19 02:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/vunify-verbosity.txt,
- util-vserver/lib/apidoc/list2xxx.descr, util-vserver/scripts/X,
- util-vserver/src/vnet.c: initial checkin
-
-2005-03-19 02:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/interface-add.c,
- util-vserver/vserver-start/interface-print.c,
- util-vserver/vserver-start/interface-remove.c,
- util-vserver/vserver-start/main.c: avoid warnings regarding
- unused params
-
-2005-03-19 02:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: moved vdlimit into the only-C99
- section
- build vhashify only with C99 and beecrypt
- cleanups
-
-2005-03-19 02:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/copy-check: cleanups
- conditionalize expensive tests
-
-2005-03-19 02:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files,
- util-vserver/lib_internal/Makefile-files: moved *dlimit* files
- into the only-C99 section
- clean all potentially built libraries
-
-2005-03-19 02:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/list-free.c: some minor C89
- compatibility changes
-
-2005-03-19 02:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/Makefile-files: use
- 'lib-dietlibc-not-enabled-error.a' consistently
- clean all libraries inclusive those which might not be built
-
-2005-03-19 02:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.dtd: readded
-
-2005-03-19 02:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented the 'vhashify'
- configuration
- moved '<default>' tags before '<description>'
-
-2005-03-19 02:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-xhtml.xsl: applied changes
- regarding the new www-location on savannah
-
-2005-03-19 01:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/Makefile-files: (re)added xsltproc support
-
-2005-03-19 01:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added tests for XSLTPROC
- added '--disable-expensive-tests'
- added beecrypt tests
- cosmetical cleanups + enhancements
-
-2005-03-19 01:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: set some values in TESTS_ENVIRONMENT
- added some hacks for lib-dietlibc-not-enabled-error.a
-
-2005-03-18 03:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite,
- util-vserver/lib_internal/testsuite/.cvsignore: updated
-
-2005-03-18 03:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify.h, util-vserver/src/vunify.h:
- include <sys/stat.h> instead of defining a 'struct stat'; this
- prevents
- problems with the 64bit interface of the filesystem functions
-
-2005-03-18 03:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-copy.c: use a sparse-file
- friendly method for copying files
-
-2005-03-18 03:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/Makefile-files,
- util-vserver/lib_internal/testsuite/copy-check,
- util-vserver/lib_internal/testsuite/copy.c: added testcases for
- Unify_copy()
-
-2005-03-18 00:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/Makefile-files: use $(LIBENSCVECTOR)
- instead of libensc_vector.a
-
-2005-03-18 00:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vhashify-init.hc, util-vserver/src/vhashify.c,
- util-vserver/src/vhashify.h: made it work...
-
-2005-03-18 00:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcopy-init.hc, util-vserver/src/vunify-init.hc:
- applied changes in the MatchList-API
-
-2005-03-18 00:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: use $(LIBENSCVECTOR) instead of
- libensc_vector.a
- use $(LIBVSERVER_GLIBC) instead of lib/libvserver.la
-
-2005-03-18 00:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vpkg: exit with returncode of '2' when
- pkgmgmt can not be determined
-
-2005-03-18 00:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/Makefile-files: use
- $(LIBENSCVECTOR) instead of libensc_vector.a
-
-2005-03-18 00:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-isiunlinkable.c,
- util-vserver/lib_internal/unify.h: Unify_isIUnlinkable(): changed
- return-type
-
-2005-03-18 00:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-copy.c: implemented copyReg()
- with mmap(2) instead of read(2)+write(2) sequences
-
-2005-03-18 00:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/string.hc: String_free(): added
-
-2005-03-18 00:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/string.h: renamed String_destroy() to
- String_free()
-
-2005-03-18 00:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/string-destroy.c: obsoleted;
- String_free() is now inlined
-
-2005-03-18 00:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/matchlist-initbyvserver.c,
- util-vserver/lib_internal/matchlist-initmanually.c,
- util-vserver/lib_internal/matchlist-initrefserverlist.c,
- util-vserver/lib_internal/matchlist.h: applied lot of API changes
-
-2005-03-18 00:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/matchlist-destroy.c: use String_free()
- instead of String_destroy()
-
-2005-03-18 00:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added
- matchvserverinfo-*
- removed string-destroy.c
-
-2005-03-18 00:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/matchvserverinfo-free.c,
- util-vserver/lib_internal/matchvserverinfo-init.c: initial
- checkin
-
-2005-03-18 00:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/Makefile-files,
- util-vserver/lib/Makefile-files: split into a -glibc and a -diet
- part
-
-2005-03-18 00:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/testsuite/Makefile-files,
- util-vserver/lib/testsuite/Makefile-files: use $(LIBENSCVECTOR)
- instead of libensc_vector.a
-
-2005-03-18 00:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: HACK: set 'enable_static=no' for
- dietlibc case and postpone AC_PROG_LIBTOOL execution
-
-2005-03-18 00:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: use $(LIBVSERVER) instead of
- lib/libvserver.la
- use $(LIBENSCVECTOR_DIET) instead of $(ENSC_VECTOR_LIBS)
-
-2005-03-17 14:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all, util-vserver/src,
- util-vserver/src/.cvsignore: updated
-
-2005-03-17 14:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.c: use new Unify_unify() API
- rearranged some code; I do not try to be C89 compliant in C99
- progams anymore...
-
-2005-03-17 14:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcopy.c: use new Unify_unify() API
-
-2005-03-17 14:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vhashify-init.hc, util-vserver/src/vhashify.c,
- util-vserver/src/vhashify.h: initial checkin
-
-2005-03-17 14:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: use $(LIBINTERNAL) instead of
- lib_internal/libinternal.a
- added vhashify*
-
-2005-03-17 14:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/Makefile-files,
- util-vserver/src/testsuite/Makefile-files,
- util-vserver/vserver-start/Makefile-files: use $(LIBINTERNAL)
- instead of lib_internal/libinternal.a
-
-2005-03-17 14:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify.h: * added an 'ignore_zero'
- argument to Unify_unify()
- * Unify_isIUnlinkable(): added
-
-2005-03-17 14:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-unify.c: added an 'ignore_zero'
- argument to Unify_unify()
-
-2005-03-17 14:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/list-add.c,
- util-vserver/ensc_vector/list-at.c,
- util-vserver/ensc_vector/list-free.c,
- util-vserver/ensc_vector/list-init.c,
- util-vserver/ensc_vector/list-insertinternal.c,
- util-vserver/ensc_vector/list-internal.h,
- util-vserver/ensc_vector/list-search.c,
- util-vserver/ensc_vector/list-searchselforg.c,
- util-vserver/ensc_vector/list.h,
- util-vserver/ensc_vector/list.hc,
- util-vserver/ensc_vector/testsuite/test2.c,
- util-vserver/ensc_vector/vector-searchselforg.c,
- util-vserver/lib_internal/unify-isiunlinkable.c: initial checkin
-
-2005-03-17 14:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: * create both
- libinternal-diet.a and libinternal-glibc.a. This is
- needed to avoid segfaults with gcc4 when linking against glibc
- based
- libraries like 'beecrypt'. Perhaps, these segfaults are a problem
- with gcc4 as they do not happen with gcc33...
-
- * added unify-isiunlinkable.c
-
-2005-03-17 14:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/testsuite/test1.c: added tests for
- Vector_searchSelfOrg()
-
-2005-03-17 14:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/testsuite/Makefile-files: added test2
-
-2005-03-17 14:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/vector.h,
- util-vserver/ensc_vector/vector.hc: Vector_searchSelfOrg*():
- added
-
-2005-03-17 14:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/Makefile-files: added list-* files
- added vector-searchselforg.c
-
-2005-03-17 14:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_fmt/fmt.h, util-vserver/ensc_fmt/fmtx-32.c:
- fixed declaration of the *_x*int() methods; they do not take a
- 'base' argument
-
-2005-03-09 14:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: added XIDTYPE support
-
-2005-03-09 14:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/context-sync.hc: use EopenD() instead of Eopen()
-
-2005-03-09 14:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_initrddir.m4: fixed typo
-
-2005-03-09 14:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_getXIDType(): added
-
-2005-03-09 14:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: added some magic to avoid
- warnings with gcc4
-
-2005-03-09 14:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files, util-vserver/lib/getxidtype.c:
- added getxidtype.c
-
-2005-03-09 14:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpre: create /usr/X11 also
-
-2005-03-09 14:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am, util-vserver/distrib/fc3/apt,
- util-vserver/distrib/fc3/apt/rpmpriorities,
- util-vserver/distrib/fc3/apt/sources.list: added apt support for
- FC3
-
-2005-03-02 01:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_adddlimit-v13.hc,
- util-vserver/lib/syscall_adddlimit.c,
- util-vserver/lib/syscall_getdlimit-v13.hc,
- util-vserver/lib/syscall_getdlimit.c,
- util-vserver/lib/syscall_remdlimit-v13.hc,
- util-vserver/lib/syscall_remdlimit.c,
- util-vserver/lib/syscall_setdlimit-v13.hc,
- util-vserver/lib/syscall_setdlimit.c: use CALL_VC_V13B instead of
- CALL_VC_V13
-
-2005-03-02 01:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vyum: allow '--all' param
-
-2005-03-02 01:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/cflags.c: avoid some compiler warnings
-
-2005-03-02 01:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added some VC_ATTR_NONNULL()
- statements
-
-2005-03-02 01:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_adddlimit-v13.hc,
- util-vserver/lib/syscall_remdlimit-v13.hc,
- util-vserver/lib/vserver-internal.h: minor cleanups
-
-2005-03-02 00:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: do not assume 'nodev' on
- 'devpts'
-
-2005-03-02 00:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h:
- CDLIM_USER2KERNEL/CDLIM_KERNEL2USER(): added
-
-2005-03-02 00:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files,
- util-vserver/lib/syscall_adddlimit-v13.hc,
- util-vserver/lib/syscall_adddlimit.c,
- util-vserver/lib/syscall_getdlimit-v13.hc,
- util-vserver/lib/syscall_getdlimit.c,
- util-vserver/lib/syscall_remdlimit-v13.hc,
- util-vserver/lib/syscall_remdlimit.c,
- util-vserver/lib/syscall_setdlimit-v13.hc,
- util-vserver/lib/syscall_setdlimit.c, util-vserver/lib/virtual.h,
- util-vserver/lib/vserver.h, util-vserver/src/Makefile-files,
- util-vserver/src/vdlimit.c: added *vdlimit functions + tools
- (patch provided by Daniel Hokka Zakrisson)
-
-2005-02-25 23:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: added some sanity
- checks
-
-2005-02-25 23:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/Makefile-files,
- util-vserver/ensc_wrappers/wrappers-string.hc,
- util-vserver/ensc_wrappers/wrappers.h: added wrapper around
- string functions
-
-2005-02-25 23:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: /me should learn to differ
- between script-languages and C... strings in C are still marked
- by >"< but not by >'<...
- fixed allocation of the newly generated option string
-
-2005-02-25 21:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get-worker,
- util-vserver/scripts/vyum-worker: deprecate usage of $_YUM and
- $_APT_GET
-
-2005-02-25 21:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost,
- util-vserver/scripts/functions,
- util-vserver/scripts/legacy/distrib-info,
- util-vserver/scripts/legacy/rootshell,
- util-vserver/scripts/legacy/vserver,
- util-vserver/scripts/pkgmgmt,
- util-vserver/scripts/start-vservers,
- util-vserver/scripts/util-vserver-vars.pathsubst,
- util-vserver/scripts/vprocunhide, util-vserver/scripts/vpstree,
- util-vserver/scripts/vserver, util-vserver/scripts/vserver-build,
- util-vserver/scripts/vserver-build.apt-rpm,
- util-vserver/scripts/vserver-build.debootstrap,
- util-vserver/scripts/vserver-build.functions,
- util-vserver/scripts/vserver-build.functions.apt,
- util-vserver/scripts/vserver-build.functions.pkgmgmt,
- util-vserver/scripts/vserver-build.functions.rpm,
- util-vserver/scripts/vserver-build.functions.yum,
- util-vserver/scripts/vserver-build.rpm,
- util-vserver/scripts/vserver-build.yum,
- util-vserver/scripts/vserver-copy,
- util-vserver/scripts/vserver-setup.functions,
- util-vserver/scripts/vserver.functions,
- util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop,
- util-vserver/scripts/vservers.grabinfo.sh,
- util-vserver/scripts/vshelper, util-vserver/scripts/vsysvwrapper,
- util-vserver/scripts/vtop, util-vserver/sysv/rebootmgr,
- util-vserver/sysv/vservers-legacy: LEGACY BREAKAGE FOR 3RD PARTY
- PATCHES: introduced a more common naming
- scheme: global, immutable variables names are now named like
- '$__ABC'
- instead of '$ABC'. This happens at much places and will break a
- lot of
- patches therefore.
-
-2005-02-25 21:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: changed my GPG key
-
-2005-02-25 21:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: assume 'nodev' by default
-
-2005-02-25 20:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.yum,
- util-vserver/scripts/vyum-worker: added preliminary support for
- the patch from
- https://bugzilla.redhat.com/beta/attachment.cgi?id=111435&action=view
-
-2005-02-25 20:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.pkgmgmt: avoid
- ambiguous usage of $PKGDIR, use $PKGINSTALLDIR instead of
- use $SETUP_CONFDIR instead of $confdir
-
-2005-02-25 20:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm,
- util-vserver/scripts/vserver-build.yum: avoid ambiguous usage of
- $PKGDIR, use $PKGINSTALLDIR instead of
-
-2005-02-20 23:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.rpm:
- rpm.initFilesystem(): fixed variable-names; this caused e.g. an
- unset %_dbpath macro formerly
-
-2005-02-15 23:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.204
-
-2005-02-15 22:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added information where the 'ip' and
- 'vconfig' programs can be found
-
-2005-02-15 22:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: adjusted the order of cli options
- evaluation; automake-1.9.5 redirects
- input from /dev/null so the 'tty -s' check gets triggered and
- 'make
- distcheck' fails in the '... --version/--help' tests
-
-2005-02-15 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/save_ctxinfo.c: fixed name of the run.rev
- symlink; there was a '/' missing which
- caused a pollution of the /etc/vservers/.defaults directory with
- 'run.revXXX' entries. (reported and analyzed by Olivier Poitrey).
-
-2005-02-07 18:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions,
- util-vserver/scripts/vserver-build.functions.pkgmgmt,
- util-vserver/src/vunify.c: fixed typos
-
-2005-02-07 18:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented the *namespace
- options
-
-2005-02-04 12:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: SECURITY: fixed detection
- of the mtab-location (Georg Glas)
- https://savannah.nongnu.org/bugs/?func=detailitem&item_id=11844
-
-2005-02-04 02:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: fixed one of the
- previously added 'test -n'
-
-2005-02-02 14:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_pathprog.m4: ENSC_PATHPROG_INIT(): fixed doc
- ENSC_PATHPROG(): added a '<DESCR>' parameter
-
-2005-02-02 13:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/compatibility-xhtml.xsl,
- util-vserver/doc/compatibility.css: applied
- http://vserver.lauft.net/wegen/util-vserver/patches/merge/util-vserver--merge--0.0--patch-2.patch
-
-2005-02-01 17:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.203
-
-2005-02-01 17:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added vyum-worker to
- AM_INSTALLCHECK_STD_OPTIONS_EXEMPT
-
-2005-02-01 17:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vyum-worker: minor cosmetical change
-
-2005-02-01 17:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions, util-vserver/scripts/pkgmgmt:
- fixed 'local VAR=$(ACTION) || ERROR' constructs; the 'local
- VAR=$(ACTION)'
- succeeds everytime so ERROR will be never executed. So, it is
- rewritten to
- 'local VAR; VAR=$(ACTION) || ERROR'.
-
-2005-02-01 17:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.202
-
-2005-02-01 16:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fc3/rpmlist.d,
- util-vserver/distrib/fc3/rpmlist.d/00.lst: initial checkin
-
-2005-02-01 16:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.rpm: moved installPackages
- into vserver-build.functions.rpm
- added support for preconfigured package-lists
-
-2005-02-01 16:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.rpm: rpmlist.*():
- added
-
-2005-02-01 16:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build: documented the '--empty'
- switch for the '-m rpm' method
- allow an increasing debug-level
-
-2005-02-01 16:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: vshelper.isDebug(): fixed it...
-
-2005-02-01 16:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added the fc3 rpmlist.d
- directory + content
-
-2005-02-01 16:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added
- vserver-build.rpm
-
-2005-02-01 02:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/matchlist-initbyvserver.c,
- util-vserver/lib_internal/matchlist-initmanually.c,
- util-vserver/lib_internal/matchlist-initrefserverlist.c,
- util-vserver/src/vcopy-init.hc, util-vserver/src/vunify-init.hc:
- changed matchlist-API to pass additional information about a
- vserver. This allows to turn off pkgmgmt-queries for not-yet
- existent vservers in 'vcopy'
-
-2005-02-01 02:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/matchlist.h: struct MatchVserverInfo:
- added; it allows to pass additional information about the vserver
-
-2005-02-01 02:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-copy.c: copyReg(): open out_fd
- with O_RDWR, fixed resource leak in error-case
-
-2005-02-01 00:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/createskeleton-full.hc: argl... fixed overflow
- when appending the '/'
-
-2005-01-31 23:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml,
- util-vserver/scripts/functions, util-vserver/scripts/vshelper:
- added 'debug' option for vshelper
-
-2005-01-31 23:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: added delegation support (Herbert
- Poetzl)
- http://vserver.13thfloor.at/Experimental/NGNET/delta-vshelper-delegate.diff
-
-2005-01-31 22:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: getDistribution():
- added support for a default distribution
-
-2005-01-31 22:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files,
- util-vserver/scripts/vserver-build,
- util-vserver/scripts/vserver-build.rpm: added the '-m rpm' method
-
-2005-01-31 22:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am, util-vserver/distrib/template,
- util-vserver/distrib/template/initpost,
- util-vserver/distrib/template/initpre: added the 'template'
- distribution
-
-2005-01-31 17:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: fixed environment unsetting: it will
- be now done shortly before execve(2)
- but not on initialization anymore. This solves the problem when
- 'rpm' is
- a wrapper only calling the real 'rpm?'. Then, LD_PRELOAD et.al.
- was unset
- and the wrapper not used.
-
-2005-01-31 17:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: fixed the (currently non-existent)
- child->parent traversal
-
-2005-01-31 17:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/apidoc/Doxyfile.in: added DOT_TRANSPARENT +
- DOT_MULTI_TARGET
-
-2005-01-31 17:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: updated
-
-2005-01-31 17:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am,
- util-vserver/lib/createskeleton-full.hc,
- util-vserver/scripts/vserver-build.functions,
- util-vserver/scripts/vserver-setup.functions,
- util-vserver/src/save_ctxinfo.c,
- util-vserver/util-vserver.spec.in: removed 'run.rev' as a
- vserver-local variable and made it a system-wide setting
-
-2005-01-28 01:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: reindented it
- fixed vshelper documentation
-
-2005-01-27 21:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions, util-vserver/scripts/pkgmgmt,
- util-vserver/scripts/start-vservers,
- util-vserver/scripts/vapt-get, util-vserver/scripts/vpkg,
- util-vserver/scripts/vprocunhide, util-vserver/scripts/vrpm,
- util-vserver/scripts/vrpm-preload, util-vserver/scripts/vserver,
- util-vserver/scripts/vserver-build,
- util-vserver/scripts/vserver-build.debootstrap,
- util-vserver/scripts/vserver-build.functions.rpm,
- util-vserver/scripts/vserver-setup.functions,
- util-vserver/scripts/vserver-wrapper,
- util-vserver/scripts/vserver.functions,
- util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop, util-vserver/scripts/vshelper,
- util-vserver/scripts/vsomething: use 'test -n "..."' instead of
- 'test "..."'; when "..." expands to '-v'
- or a similar string, the expression will be misinterpreted
- (noticed by
- Werner Schalk)
-
-2005-01-27 20:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.201
-
-2005-01-27 20:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/reducecap.c, util-vserver/src/vserver-info.c:
- reworked the capability.h stuff
-
-2005-01-27 20:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files,
- util-vserver/src/capability-compat.h: added capability-compat.h
-
-2005-01-27 20:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added check for <sys/capability.h>
- header
-
-2005-01-27 20:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: removed the linuxcaps.h bits
-
-2005-01-27 19:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: implemented capability-support
- check
-
-2005-01-27 19:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: fixed execution order of chroot(2)
- and context-creation; this caused
- errors on kernel 2.6 when the vserver is not running yet
-
-2005-01-27 19:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore,
- util-vserver/src/Makefile-files: added check-unixfile
-
-2005-01-27 19:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: execute sanityCheck()
-
-2005-01-27 19:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: moved sanity checks which
- were spread in various functions into the sanityCheck() method
- implemented checks for non-newline terminated files and missing
- capability support
-
-2005-01-27 19:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fc3, util-vserver/distrib/fc3/pkgs,
- util-vserver/distrib/fc3/pkgs/01,
- util-vserver/distrib/fc3/pkgs/02,
- util-vserver/distrib/fc3/pkgs/03, util-vserver/distrib/fc3/yum,
- util-vserver/distrib/fc3/yum.repos.d,
- util-vserver/distrib/fc3/yum.repos.d/fedora-devel.repo,
- util-vserver/distrib/fc3/yum.repos.d/fedora-updates-testing.repo,
- util-vserver/distrib/fc3/yum.repos.d/fedora-updates.repo,
- util-vserver/distrib/fc3/yum.repos.d/fedora.repo,
- util-vserver/distrib/fc3/yum/yum.conf,
- util-vserver/scripts/vserver-build.functions.yum,
- util-vserver/scripts/vserver-build.yum,
- util-vserver/scripts/vsomething, util-vserver/scripts/vyum,
- util-vserver/scripts/vyum-worker,
- util-vserver/src/check-unixfile.c: initial checkin
-
-2005-01-27 19:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build: added 'yum' support
-
-2005-01-27 19:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vrpm-preload: reorganized; moved lots of
- code into the 'functions' file
-
-2005-01-27 19:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added yum*
- files + vsomething + check-unixfile
-
-2005-01-27 19:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: added yum* support
- reorganized the rpmFake stuff
-
-2005-01-27 19:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added the yum* files +
- vsomething
-
-2005-01-27 19:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpre: added missing newline
-
-2005-01-27 19:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added the yum* stuff for fc3
-
-2005-01-27 19:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added the yum* files
- + check-unixfile
-
-2005-01-27 19:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/README: mentioned the '-m yum' buildmethod
-
-2005-01-26 23:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservercfgstyle.c: allow dangling symlinks as
- /etc/vservers/.../vdir also
-
-2005-01-26 23:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.199
-
-2005-01-26 21:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: do not ship the /vservers
- directory itself; as it is immutable, the
- extraction will fail else
-
-2005-01-26 20:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite,
- util-vserver/lib_internal/testsuite/.cvsignore: updated
-
-2005-01-26 20:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: rearranged some scriptlets to
- avoid comments after '-p /sbin/ldconfig'
-
-2005-01-26 15:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: added (untested) support for
- '/' in the vserver fstab
-
-2005-01-26 15:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: use unique prefixes for
- variables used in functions with 'eval' statements
- mountRootFS(): added
-
-2005-01-26 15:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: use unique prefixes for variables
- used in functions with 'eval' statements
-
-2005-01-26 15:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/filecfg-ml.c: include
- <string.h> + <ctype.h>
-
-2005-01-26 15:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: moved rootshell to legacy
-
-2005-01-26 15:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/defaulttty.c: include <string.h>
-
-2005-01-26 15:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: added '--rootfs' option
-
-2005-01-26 15:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: moved the v_*
- initscripts to legacy
-
-2005-01-26 14:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: updated BuildRequires:
- use 'setattr --barrier' instead of 'chattr +t' in the %post
- scriptlet
- moved the v_* initscripts to legacy
-
-2005-01-25 16:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst,
- util-vserver/scripts/legacy/rootshell,
- util-vserver/scripts/rootshell: moved rootshell script to legacy
-
-2005-01-21 13:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/legacy/vserver: fixed
- http://savannah.nongnu.org/bugs/?func=detailitem&item_id=11570:
-
- "vserver myvserver start" gives exit code 1 if there is no file
- /etc/vservers/myvserver.sh, since the last statement in vserver
- ("test -x /etc/vservers/$1.sh && ...") evaluates to 1 in this
- case.
-
- [Daniel Hermann]
-
-2005-01-21 13:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: be more verbosely when vserver
- could not be determined and give hints
- about possible solutions (based upon ideas by Thorsten Gunkel)
-
-2005-01-21 13:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions:
- interface-configuration: give out a warning when no device was
- configured
-
-2005-01-21 13:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: *
- interface-configuration: accept 'nodev' without a configured
- 'dev';
- formerly the interface was silently ignored when 'dev' was
- missing
- * added some sanity checks for the behaviour described above
-
-2005-01-21 13:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: added rpm_execcon() wrapper to make
- it work in SELinux environments
- call execve(2) directly instead of execv(3)
-
-2005-01-07 17:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/README: fixed typos
- cleanups + enhancements
-
-2005-01-07 16:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/README: "Notes for distributors" + "Which version
- shall I use?" added
-
-2005-01-07 16:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: Fixed last patch: use '[['
- instead of '[' (found by Hans Ulrich Niedermann)
-
-2005-01-06 23:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: call ENSC_DIETLIBC_SANITYCHECK,
- AC_CANONICAL_HOST + AC_CANONICAL_BUILD
-
-2005-01-06 23:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: ENSC_DIETLIBC_SANITYCHECK():
- added
- made ENSC_VERSION_DIETLIBC uppercase
- ignore extra specifiers in dietlibc's minor version (reported by
- Hans Ulrich Niedermann)
-
-2005-01-06 23:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: fix typo in
- $_MKTEMPDIR: Use $_MKTEMP not $MKTEMP (fixed by Hans Ulrich
- Niedermann)
-
-2004-12-28 19:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: use $_<prog> (which
- expands to absolute paths) instead of trusting into a good $PATH
- a small VLAN fix (do not quote the splitted dev)
- minor cleanups
-
-2004-12-28 19:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions, util-vserver/scripts/pkgmgmt,
- util-vserver/scripts/start-vservers,
- util-vserver/scripts/util-vserver-vars.pathsubst,
- util-vserver/scripts/vpkg, util-vserver/scripts/vrpm-preload,
- util-vserver/scripts/vserver-build.debootstrap,
- util-vserver/scripts/vserver-build.functions.apt,
- util-vserver/scripts/vserver-wrapper,
- util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop: use $_<prog> (which expands to
- absolute paths) instead of trusting into a good $PATH
-
-2004-12-28 19:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: use ENSC_PATHPROG & friends
-
-2004-12-28 19:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_pathprog.m4: initial checkin
-
-2004-12-28 19:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: use ${ENSC_PATHPROG_SED} when
- substituting prognames
-
-2004-12-28 12:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc_compat.m4: check more syscall
- variants
-
-2004-12-28 12:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: s!\params!\param!
- added doc about vc_get_iattr()
-
-2004-12-28 11:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/cfg.txt: removed since obsoleted by
- configuration.xml
-
-2004-12-21 07:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vsched.c: fixed segfault when no arguments are
- given (reported by Adrian Reyer)
-
-2004-12-16 00:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/keep-ctx-alive.c: renamed the 'fd_set' variable
- to 'fdset'. former name causes problems
- with certain FD_* implementations (reported by Adrian Reyer)
-
-2004-12-09 13:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all: added fc-3 host
-
-2004-12-09 13:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: getfilecontext.c: added
-
-2004-12-09 13:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getfilecontext.c, util-vserver/lib/vserver.h:
- vc_getfilecontext(): as noticed by daniel_hozac in IRC, this
- function
- was horribly broken. Fixed and moved it into an own file as it is
- too
- complex for an inline function. Documentation was added also.
-
-2004-12-07 11:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/main.c: include <unistd.h>
-
-2004-12-07 11:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: read enter-shell from the
- defaults-directory also
- use prio-bias instead of cpu-mask
-
-2004-12-07 11:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/filecfg-iteratemultiline.c: include
- <string.h>
-
-2004-12-07 11:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/cflags.c: added some new flags
-
-2004-12-07 11:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: do not mention the /hostname
- + /domainname params anymore
- removed vsched/cpu-mask
- added vsched/priority-bias
-
-2004-10-21 19:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added/updated flags and capabilities
-
-2004-10-21 19:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/islink.c: initial checkin
-
-2004-10-21 19:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h: utilvserver_isLink(): added
- prototype
-
-2004-10-21 19:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/cflags-v13.c: added lots of new flags
-
-2004-10-21 18:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/ccaps-v13.c: added 'remount' + 'icmp' cap;
- 'ping' is kept for compatibility reasons
-
-2004-10-21 18:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added islink.c
-
-2004-10-19 23:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: getFileValue(): modified to
- accept a list of candidates
-
-2004-10-19 23:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: merged from
- UV_NAMESPACE_AFTER_CHROOT branch
-
-2004-10-19 23:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added 'update-doc' target
-
-2004-10-19 23:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc:
- Evc_{new,enter}_namespace(): added
-
-2004-10-19 21:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.196
-
-2004-10-19 21:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/context.h, util-vserver/kernel/cvirt.h:
- updated to vs1.9.3-rc4
-
-2004-10-19 21:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/configuration-init.c,
- util-vserver/vserver-start/configuration.c,
- util-vserver/vserver-start/configuration.h,
- util-vserver/vserver-start/interface.c,
- util-vserver/vserver-start/interface.h,
- util-vserver/vserver-start/main.c,
- util-vserver/vserver-start/scriptlets.c,
- util-vserver/vserver-start/vserver-start.h: added lots of new
- code
-
-2004-10-19 21:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/filecfg-iteratemultiline.c,
- util-vserver/lib_internal/testsuite/filecfg-ml.c,
- util-vserver/vserver-start/defaulttty.c: initial checkin
-
-2004-10-19 21:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/Makefile-files: added defaulttty.c
-
-2004-10-19 21:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/reducecap.c: use some dirty hacks to include
- <linuxcaps.h> cleanly
-
-2004-10-19 21:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: execute 'prepareStop()'
-
-2004-10-19 21:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: made
- runlevel_{start,stop} global variables
- prepareStop(): added
- set PREVLEVEL on 'vserver ... stop' (required by Debian)
-
-2004-10-19 21:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: s!prefix!prefixlen!
-
-2004-10-19 21:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/Makefile-files: added
- filecfg-ml test
-
-2004-10-19 21:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/string.hc: String_c_str(): added
-
-2004-10-19 21:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/string.h: ENSC_STRING_*FIXED(): added
-
-2004-10-19 21:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/filecfg.h:
- FileCfg_iterateOverMultiLine(): added prototypes and related
- declarations
-
-2004-10-19 21:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added
- filecfg-iteratemultiline.c
-
-2004-10-19 21:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_setsched-v13.hc: vc_set_sched_v13obs():
- use VCMD_set_sched_v2 instead of VCMD_set_sched
-
-2004-10-19 21:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-unistd.hc: Enice(): added
-
-2004-10-19 21:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: s!prefix!prefix-length!
-
-2004-10-19 21:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added new kernel headers
- changed substition of linuxcaps.h; oldish 'sed' versions do not
- understand '\<' regexs
-
-2004-10-18 16:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: do not include "linuxcaps.h" anymore
-
-2004-10-18 16:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/context.h, util-vserver/kernel/cvirt.h,
- util-vserver/kernel/inode.h, util-vserver/kernel/legacy.h,
- util-vserver/kernel/limit.h, util-vserver/kernel/namespace.h,
- util-vserver/kernel/network.h, util-vserver/kernel/sched.h,
- util-vserver/kernel/signal.h, util-vserver/kernel/switch.h,
- util-vserver/kernel/xid.h: updated
-
-2004-10-18 16:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/Makefile-files: removed stylesheets and images
- from the main-package; they are now in the web-CVS
-
-2004-10-18 16:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-flower.css,
- util-vserver/doc/configuration-lsd.css,
- util-vserver/doc/configuration-lsd1.css,
- util-vserver/doc/flowers.png, util-vserver/doc/flowers1.png,
- util-vserver/doc/flowers2.png: moved into web-CVS
-
-2004-10-18 15:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/debug.h, util-vserver/kernel/dlimit.h:
- updated
-
-2004-10-06 03:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/README: updated note about 'vserver-stat' and differ
- between 2.4 and 2.6
- kernel
-
-2004-10-06 03:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-unify.c: retain 'errno' on the
- final unlink()
-
-2004-10-06 03:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: link secure-mount against
- libvserver
-
-2004-10-06 03:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: added better diagnostic when
- fstab-parsing fails
- use strsep() instead of strtok_r() in the parser to make the
- line-number counter work
-
-2004-10-01 12:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.195
-
-2004-10-01 12:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: _getProcNumberCount():
- s!$_ctx!$1!
-
-2004-10-01 11:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac, util-vserver/m4/ensc_dietlibc.m4: give
- out information about version of the found dietlibc
-
-2004-10-01 11:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: fixed version-detection when
- additional information are following the
- number
-
-2004-10-01 11:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: use more efficient ways to detect
- number of processes in a context
- (access /proc/virtual/... information instead of executing vps)
-
-2004-10-01 10:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build,
- util-vserver/scripts/vserver-build.debootstrap: allowed to
- specify additional debootstrap options
-
-2004-10-01 10:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vps.c, util-vserver/src/vserver-stat.c: added
- warnings regarding procfs-security
-
-2004-09-24 15:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: removed a __THROW which is not
- needed and causes errors with newer gcc
-
-2004-09-24 15:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_setvhiname-v13.hc: use a better method
- to copy labels; formerly, bad parameters could
- cause undefined behaviour
-
-2004-09-24 15:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/Makefile-files: fixed typo
-
-2004-09-23 23:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: added some comments for
- interfaces/../{name,nodev}
-
-2004-09-23 23:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-flower.css,
- util-vserver/doc/configuration-lsd.css,
- util-vserver/doc/configuration-lsd1.css,
- util-vserver/doc/configuration-xhtml.xsl,
- util-vserver/doc/configuration.css: made it validate as xhtml
-
-2004-09-23 22:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all: fixed CLEAN=1 usecase
- use gcc4 instead of gcc35
-
-2004-09-23 22:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.debootstrap: added better
- diagnostic for failed debootstrap download
-
-2004-09-23 22:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.css: added *.elements templates
-
-2004-09-23 22:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: updated rlimits description
- (reported by Nikola Donev)
- added warning about explicit 'fakeinit' usage
-
-2004-09-23 22:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-xhtml.xsl: added new stylesheets
- implemented <elements>...</elements> support
-
-2004-09-23 22:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/Makefile-files: added new stylesheets and images
-
-2004-09-23 22:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-flower.css,
- util-vserver/doc/configuration-lsd1.css,
- util-vserver/doc/flowers.png, util-vserver/doc/flowers1.png,
- util-vserver/doc/flowers2.png: initial checkin
-
-2004-09-23 22:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated
-
-2004-09-22 20:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: s!commented!documented!
-
-2004-09-22 20:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: commented the possible options
- for 'rpmbuild'
-
-2004-09-22 20:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vsched.c: use new vc_set_sched structure
- generalized CLI options a little bit
-
-2004-09-22 20:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vattribute.c: set the "secure" flags on
- '--secure' manually. This is a crude hack
- and must be solved better.
-
-2004-09-22 20:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: struct vc_set_sched: updated + added
- some flags
- vc_get_insecureflags(): removed again; it is now handled by the
- utilities
-
-2004-09-22 20:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: ENSC_STRUCT_IDX,
- ENSC_SAME_STRUCT_IDX: added
-
-2004-09-22 20:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_setsched.c: added support for the new
- 'struct vcmd_set_sched_v3'
-
-2004-09-22 20:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_setsched-v13.hc: updated to new 'struct
- vcmd_set_sched_v3'
- added some optimizations
-
-2004-09-22 20:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/sched.h: added 'struct vcmd_set_sched_v3'
- plus macros
-
-2004-09-10 11:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: CALL_VC_V13B(),
- CALL_VC_V13OBS(): added
-
-2004-09-10 00:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: fixed missing argument for '--xid'
- switch
-
-2004-09-07 20:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vattribute.c: use vc_get_insecureflags() on
- '--secure' option
-
-2004-09-07 20:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_get_insecureflags(): added (does
- this really make sense??)
-
-2004-09-07 20:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: fixed concatenation of flags +
- caps
-
-2004-09-07 20:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added an explicit requirement for
- version 1.9 of automake
-
-2004-08-27 21:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.193
-
-2004-08-27 21:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver, util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop: follow LSB behavior when
- starting/stopping a vserver (no error, when already
- running/stopped)
- adjusted some exit-codes
-
-2004-08-27 14:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: showHelp(): improved message
-
-2004-08-27 08:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated again...
-
-2004-08-27 08:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/save_ctxinfo.c: append '\0' to the buffer read
- by readlink()
-
-2004-08-27 08:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/keep-ctx-alive.c: include <sys/select.h>
-
-2004-08-27 08:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-unistd.hc: Ereadlink*():
- return the count of written chars
-
-2004-08-25 00:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions, util-vserver/scripts/pkgmgmt,
- util-vserver/scripts/vserver.functions,
- util-vserver/vserver-start/mount.c: use the new 'secure-mount'
- CLI
-
-2004-08-25 00:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: reworked it; '--chroot' does not
- accept an argument now, and '--secure'
- is deprecated. Lots of code was modernized
-
-2004-08-19 16:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/configuration-init.c,
- util-vserver/vserver-start/configuration.c,
- util-vserver/vserver-start/configuration.h,
- util-vserver/vserver-start/interface-add.c,
- util-vserver/vserver-start/interface-read.c,
- util-vserver/vserver-start/interface.c,
- util-vserver/vserver-start/interface.h,
- util-vserver/vserver-start/main.c,
- util-vserver/vserver-start/scriptlets.c,
- util-vserver/vserver-start/vshelper.c: added lots of new code
-
-2004-08-19 15:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/interface-print.c,
- util-vserver/vserver-start/interface-remove.c,
- util-vserver/vserver-start/mount.c,
- util-vserver/vserver-start/mount.h,
- util-vserver/vserver-start/undo.c,
- util-vserver/vserver-start/undo.h: initial checkin
-
-2004-08-19 14:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vnamespace.c: fixed some #includes for the new
- position of sys_clone.h
-
-2004-08-19 14:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vkill.c: define ENSC_WRAPPERS_UNISTD; it is used
- for some legacy code
-
-2004-08-19 14:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: fixed some #includes to reflect
- changed position of sys_clone.h
-
-2004-08-19 14:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fstool.h: checkForRace(), resolveCtx(): removed
- prototypes
-
-2004-08-19 14:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fstool.c: checkForRace(): removed as unused
-
-2004-08-19 14:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chxid.c: use vc_xidopt2xid() instead of
- resolveCtx()
-
-2004-08-19 14:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/sys_clone.h: moved into lib_internal/
-
-2004-08-19 14:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fstool-resolvectx.c: obsoleted; functionality is
- already in libvserver
-
-2004-08-19 14:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite/command.c: applied API
- changes
-
-2004-08-19 14:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/command.h: added support for
- plain-style char** args
-
-2004-08-19 14:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/command-appendparameter.c,
- util-vserver/lib_internal/command-exec.c,
- util-vserver/lib_internal/command-free.c,
- util-vserver/lib_internal/command-init.c: handle plain-style
- char** args also
-
-2004-08-19 14:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/command-setparams.c,
- util-vserver/lib_internal/sys_clone.h: initial checkin
-
-2004-08-19 14:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added
- command-setparams.c and sys_clone.h
-
-2004-08-19 14:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: marked
- vserver.start.bin as C99-only
-
-2004-08-19 14:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/pathconfig.h.pathsubst: added some new paths
-
-2004-08-19 14:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: automake-1.9 fixes:
- s!VSERVER_LDFLAGS!VSERVER_LDFLGS!
- removed some libtool-hacks which are not needed with automake-1.9
- anymore
-
-2004-08-19 14:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/Makefile-files: automake-1.9 fixes:
- s!VSERVER_LDFLAGS!VSERVER_LDFLGS!
- added lots of new files
-
-2004-08-19 14:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: automake-1.9 fixes:
- s!VSERVER_LDFLAGS!VSERVER_LDFLGS!
- removed src/sys_clone.h (now in lib_internal/)
- removed src/fstool-resolvectx.c
-
-2004-08-19 14:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/Makefile-files,
- util-vserver/tests/Makefile-files: automake-1.9 fixes:
- s!VSERVER_LDFLAGS!VSERVER_LDFLGS!
-
-2004-08-19 13:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/xidopt2xid.c: removed code without an effect
-
-2004-08-19 13:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-syscall.c: gcc35 fixes: do not make
- vc_syscall() an alias for vserver() but execute it.
-
-2004-08-19 13:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/isfile.c: initial checkin
-
-2004-08-19 13:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h: utilvserver_isFile(): added
- prototype
-
-2004-08-19 13:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservercfgstyle.c: fixed detection of
- legacy-style (check for file but not directory)
-
-2004-08-19 13:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: addded 'isfile.c'
-
-2004-08-19 13:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-stdlib.hc: Esetenv(): added
-
-2004-08-19 13:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-socket.hc: Esend(),
- Esocketpair(): added
-
-2004-08-19 13:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_fmt/fmt-internal.h: minor optimizations
-
-2004-08-19 13:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-xhtml.xsl: add '<ulink>' tag
-
-2004-07-08 11:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented vdir, run, run.rev
- (provided by Olivier Poitrey)
- added some links about [bc]capabilities and flags
- added more scheduler doc (provided by Olivier Poitrey)
- added some comments about 2.4 vs. 2.6 at rlimits/ulimits
- added doc about rlimit's 'min' setting
-
-2004-07-03 02:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.30.190
-
-2004-07-03 01:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: fixed path of the xsd file
-
-2004-07-03 01:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all: added fc-2
-
-2004-07-03 01:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: prepareInit(): fixed case
- when .autofsck does not exist
-
-2004-07-03 01:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: accept --xid and prefer it
- against --ctx in the doc
- added --silentexist option at --create
-
-2004-07-03 01:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/suse91/apt/rpmpriorities: initial checkin
-
-2004-07-03 01:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/rc.sysinit: call 'true' finally
-
-2004-07-03 01:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: added comment about
- possible races
- fixed /etc/inittab substitution
-
-2004-07-03 01:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added redhat/rc.sysinit
- added suse/apt/rpmpriorities
- moved suse/apt/sources.list into the cfgdir
-
-2004-07-03 01:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added
- vserver.start.bin
-
-2004-07-03 01:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/Makefile-files: use
- AM_INSTALLCHECK_STD_OPTIONS_EXEMPT for now
-
-2004-07-03 00:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added suse91 files
-
-2004-07-03 00:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/rc.sysinit,
- util-vserver/distrib/suse91, util-vserver/distrib/suse91/apt,
- util-vserver/distrib/suse91/apt/sources.list,
- util-vserver/distrib/suse91/initpost,
- util-vserver/distrib/suse91/pkgs,
- util-vserver/distrib/suse91/pkgs/01,
- util-vserver/distrib/suse91/pkgs/02,
- util-vserver/distrib/suse91/rpm,
- util-vserver/distrib/suse91/rpm/macros,
- util-vserver/vserver-start,
- util-vserver/vserver-start/.cvsignore: initial checkin
-
-2004-07-03 00:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: some enhancements for
- 'plain' initstyle
-
-2004-07-03 00:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/testsuite,
- util-vserver/lib_internal/testsuite/.cvsignore: added some files
-
-2004-07-03 00:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/configuration-init.c,
- util-vserver/vserver-start/configuration.c,
- util-vserver/vserver-start/configuration.h,
- util-vserver/vserver-start/interface-add.c,
- util-vserver/vserver-start/interface-free.hc,
- util-vserver/vserver-start/interface-init.hc,
- util-vserver/vserver-start/interface-read.c,
- util-vserver/vserver-start/interface.c,
- util-vserver/vserver-start/interface.h,
- util-vserver/vserver-start/main.c,
- util-vserver/vserver-start/scriptlets.c,
- util-vserver/vserver-start/vserver-start.h,
- util-vserver/vserver-start/vshelper.c,
- util-vserver/vserver-start/vshelper.h: initial checkin
-
-2004-07-03 00:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start/Makefile-files: added lots of files
-
-2004-07-03 00:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: added CANONIFY tag
-
-2004-07-03 00:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: rewrite 'ext*' to 'ufs'
-
-2004-07-02 23:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop: use a canonified lockfile-name
-
-2004-07-02 23:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: function prepareInit():
- do some cleanups in the plain-mode
-
-2004-07-02 23:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: vshelper.initSync(): use $1
- instead of $VSERVER_DIR
-
-2004-07-02 23:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util.h: include util-lockfile.h
- canonifyVserverName(): added prototype
-
-2004-07-02 23:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-mem.h: optimized it a little bit
-
-2004-07-02 23:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/pathinfo.h: ENSC_PI_DECLARE(): added
-
-2004-07-02 23:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/command-wait.c: fixed stupid typo
-
-2004-07-02 23:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added lots of new files
-
-2004-07-02 23:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/errinfo-writeerrno.c,
- util-vserver/lib_internal/errinfo.h,
- util-vserver/lib_internal/filecfg-readentryflag.c,
- util-vserver/lib_internal/filecfg-readentrystr.c,
- util-vserver/lib_internal/filecfg.h,
- util-vserver/lib_internal/util-canonify.c,
- util-vserver/lib_internal/util-lockfile.c,
- util-vserver/lib_internal/util-lockfile.h: initial checkin
-
-2004-07-02 23:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: small cosmetical cleanups
-
-2004-07-02 23:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/mtab: s!ext2!ufs!
-
-2004-07-02 23:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/pathconfig.h.pathsubst: added lots of PATH_* and
- PROG_* macros needed for vserver-start.bin
-
-2004-07-02 23:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all: removed gcc34 target (now default)
- added gcc35 target (not working currently)
-
-2004-07-01 11:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: (re)enabled nice-support for
- 2.6 vservers which was omitted inadvertently
-
-2004-07-01 10:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: fixed misinterpretation of '--xid'
- introduced by rev 1.17
-
-2004-06-29 16:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm: fixed installation at
- non-standard places
-
-2004-06-29 16:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build: fixed doc ('pkgcfgbase' vs.
- 'pkgbase')
-
-2004-06-27 14:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/build-all,
- util-vserver/lib_internal/command-appendparameter.c,
- util-vserver/lib_internal/command-exec.c,
- util-vserver/lib_internal/command-free.c,
- util-vserver/lib_internal/command-init.c,
- util-vserver/lib_internal/command-reset.c,
- util-vserver/lib_internal/command-wait.c,
- util-vserver/lib_internal/command.h,
- util-vserver/lib_internal/testsuite,
- util-vserver/lib_internal/testsuite/.cvsignore,
- util-vserver/lib_internal/testsuite/Makefile-files,
- util-vserver/lib_internal/testsuite/command.c: initial checkin
-
-2004-06-27 14:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added command* files
- and testsuite/
-
-2004-06-27 13:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: enhanced output for old-style
- vservers
-
-2004-06-27 13:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated...
-
-2004-06-27 13:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: assume '- SYSINFO' when no other
- options are given
-
-2004-06-27 13:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcopy.c: made it work...
-
-2004-06-27 13:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.skeleton: do not fail when
- '-d' is not specified and distribution can not be detected
-
-2004-06-27 13:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: getDistribution():
- added detection for slackware and gentoo
-
-2004-06-27 13:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vprocunhide: fixed typos
-
-2004-06-27 13:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-unify.c: Unify_unify(): made it
- work also when destination file does not exist (needed for vcopy)
-
-2004-06-27 13:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-settime.c: Unify_setTime(): skip
- operation on symlinks
-
-2004-06-27 13:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_syscall(): added prototype
- added/updated some doc
-
-2004-06-27 13:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-syscall.c: initial checkin
-
-2004-06-27 13:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverbyctx-compat.hc,
- util-vserver/lib/getvserverctx.c: added legacy support
-
-2004-06-27 13:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added syscall-syscall.c
-
-2004-06-27 13:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_fmt/fmt.h: cleanups; removed unneeded #undef's
-
-2004-06-27 12:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: added comment about
- 'capabilities' file and kernelversion
-
-2004-06-17 21:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/vserver-start,
- util-vserver/vserver-start/Makefile-files: initial checkin
-
-2004-06-17 21:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added silent.% target
- include ensc_fmt/ and vserver-start/ files
- minor cosmetical fixes
-
-2004-06-16 10:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/Makefile-files,
- util-vserver/ensc_vector/vector-zeroend.c,
- util-vserver/ensc_vector/vector.h: added Vector_zeroEnd()
- function
-
-2004-06-16 10:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: moved fmt* functionality into
- the 'ensc_fmt' module
- removed '-D_REENTRANT' as it is defined globally
-
-2004-06-16 10:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_fmt, util-vserver/ensc_fmt/.cvsignore,
- util-vserver/ensc_fmt/Makefile-files,
- util-vserver/ensc_fmt/fmt-32.c, util-vserver/ensc_fmt/fmt-64.c,
- util-vserver/ensc_fmt/fmt-internal.h,
- util-vserver/ensc_fmt/fmt-tai64n.c, util-vserver/ensc_fmt/fmt.h,
- util-vserver/ensc_fmt/fmt.hc, util-vserver/ensc_fmt/fmtx-32.c,
- util-vserver/ensc_fmt/fmtx-64.c, util-vserver/ensc_fmt/fmtx.hc,
- util-vserver/lib/fmt-32.c, util-vserver/lib/fmt-64.c,
- util-vserver/lib/fmt-internal.h, util-vserver/lib/fmt.h,
- util-vserver/lib/fmt.hc, util-vserver/lib/fmtx-32.c,
- util-vserver/lib/fmtx-64.c, util-vserver/lib/fmtx.hc: moved fmt*
- functionality into the 'ensc_fmt' module
-
-2004-05-27 00:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext, util-vserver/src/vcontext.c:
- s!fakeinit!initpid! at some places
-
-2004-05-27 00:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: use '--fakeinit' by
- default; users will have to disable it explicitly
- by putting '~fakeinit' into the 'flags' configuration file
-
-2004-05-27 00:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.debootstrap: cleanups
-
-2004-05-27 00:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/README: fixed typos
-
-2004-05-27 00:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated
-
-2004-05-27 00:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: (re)added the MANIFEST_*
- variables which were lost some time ago; this
- will preserve %%config files...
-
-2004-05-27 00:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: make util-vserver.spec readonly to
- prevent losing of changes
-
-2004-05-27 00:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/README: added content
-
-2004-05-22 00:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/vprocunhide: fixed rc conflict with
- /etc/rc.d/functions; reported by taxcollector
- in https://savannah.nongnu.org/bugs/?func=detailitem&item_id=9052
-
-2004-05-21 15:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac, util-vserver/m4/gpgsig.am: added
- support for the default GPG key
-
-2004-05-21 15:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions, util-vserver/scripts/vapt-get,
- util-vserver/scripts/vrpm: added some color to the life
-
-2004-05-20 00:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/pkgmgmt, util-vserver/scripts/vserver: mount
- filesystems on 'vserver ... pkgmgmt ...' operations
-
-2004-05-18 23:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS: version 0.29.214
-
-2004-05-18 23:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated URL (again...)
-
-2004-05-18 23:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am, util-vserver/distrib/fc2,
- util-vserver/distrib/fc2/apt,
- util-vserver/distrib/fc2/apt/rpmpriorities,
- util-vserver/distrib/fc2/apt/sources.list,
- util-vserver/distrib/fc2/pkgs, util-vserver/distrib/fc2/pkgs/01,
- util-vserver/distrib/fc2/pkgs/02: added fc2 support
-
-2004-05-18 23:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: removed clearenv,
- added sigexec
-
-2004-05-18 23:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: s!@PACAKGE@!%name! at some
- places
-
-2004-05-18 23:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: substitute ENV
-
-2004-05-11 18:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac,
- util-vserver/scripts/util-vserver-vars.pathsubst,
- util-vserver/scripts/vserver.start,
- util-vserver/src/Makefile-files, util-vserver/src/clearenv.c: use
- 'env' instead of 'clearenv'; the '-i' switch is SUSv3 and every
- implementation should have it...
-
-2004-05-11 18:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/sigexec.c: initial checkin
-
-2004-05-11 18:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/context-sync.hc, util-vserver/src/vnamespace.c,
- util-vserver/src/vps.c: set SIGCHLD sigmask to an expected value
- (SIG_DFL)
- use new exitLikeProcess() interface
-
-2004-05-11 18:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c, util-vserver/src/secure-mount.c,
- util-vserver/src/vcontext.c, util-vserver/src/vkill.c: set
- SIGCHLD sigmask to an expected value (SIG_DFL)
-
-2004-05-11 18:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore,
- util-vserver/src/Makefile-files: added sigexec
-
-2004-05-11 18:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: execute vshelper through 'sigexec'
- to set expected sigmask
-
-2004-05-11 18:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-exitlikeprocess.h:
- exitLikeProcess(): readded the 'NORETURN' and added a 'ret'
- parameter
-
-2004-05-11 18:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-exitlikeprocess.c:
- exitLikeProcess(): never return...
-
-2004-05-11 18:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/switchtowatchxid.c: switchToWatchXid():
- modified the new migrate-path to work when there exists a process
- in xid 1 already
-
-2004-05-08 02:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.29.213
-
-2004-05-08 01:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/exec-ulimit.c: added support for 'core'
-
-2004-05-08 01:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vps.c: use new exitLikeProcess() interface
- better error-handling
-
-2004-05-08 01:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/context-sync.hc, util-vserver/src/vnamespace.c:
- use new exitLikeProcess() interface
-
-2004-05-08 01:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop: added locking
- call setDefaultTTY() correctly
-
-2004-05-08 01:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm: call 'vapt-get --
- clean' after building the vserver
-
-2004-05-08 01:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: setDefaultTTY(): redirect every
- descriptors
-
-2004-05-08 01:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-exitlikeprocess.h:
- exitLikeProcess(): removed the 'NORETURN'; this causes strange
- error when the function returns
- exitLikeProcess(): added a second, 'char *' parameter for the
- human readable command
-
-2004-05-08 01:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-exitlikeprocess.c: be more verbose
- when sending a signal
-
-2004-05-08 01:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/cflags.c: some changes to make gcc34
- happy
-
-2004-05-08 01:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/val2text.hc: include <strings.h>
-
-2004-05-08 01:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservername.c: getRecentName(): use
- realpath(3) instead of errorprone 'chdir()' calls
-
-2004-05-08 01:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverbyctx-compat.hc,
- util-vserver/lib/getvserverctx.c: optimized buffersizes
-
-2004-05-08 01:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: fixed apps/vunify/logfile
- documentation; it must be configured on a
- per-system, but not per-vserver base
-
-2004-05-08 01:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated again
-
-2004-05-05 19:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/clearenv.c: fixed case when '--' is used
-
-2004-05-05 19:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: fixed typo
-
-2004-05-05 19:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: use 'clearenv' in the new
- path also
-
-2004-05-05 19:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: sendKillSequence(): be
- silent and succeed everytime
-
-2004-05-05 19:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: removed legacy code
-
-2004-05-05 19:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vrpm-preload,
- util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/rpm-fake.c: added code to preserve capabilities
- and flags
-
-2004-05-05 19:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-unify.c: added some doc
-
-2004-05-05 19:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_setiattr-fscompat.hc: be more carefully
- regarding signed vs. unsigned int...
-
-2004-05-05 19:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/bcaps-v13.c: removePrefix(): fixed another 'len'
- issue
- include <strings.h>
-
-2004-04-30 10:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/bcaps-v13.c: removePrefix(): fixed case when
- len<4
-
-2004-04-28 19:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/changelog.txt: removed since unused
-
-2004-04-28 18:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/apidoc/Makefile-files: added list2xxx.syntax
-
-2004-04-28 18:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/readlink.c: enhanced errormessages
-
-2004-04-28 18:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c, util-vserver/src/vattribute.c: use
- vc_get_insecurebcaps() instead of vc_get_insecurecaps()
- set secure ccapabilities
-
-2004-04-28 18:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c, util-vserver/src/reducecap.c: use
- vc_get_insecurebcaps() instead of vc_get_insecurecaps()
-
-2004-04-28 18:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added coreassert.h
-
-2004-04-28 18:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/apidoc/list2xxx.syntax,
- util-vserver/lib_internal/coreassert.h: initial checkin
-
-2004-04-28 18:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/cflags.c: use
- <lib_internal/coreassert.h>
- added new testcases
-
-2004-04-28 18:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/fmt.c,
- util-vserver/lib/testsuite/parselimit.c: use
- <lib_internal/coreassert.h>
-
-2004-04-28 18:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/Makefile-files: define ENSC_TESTSUITE
-
-2004-04-28 18:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/apidoc/Doxyfile.in: set EXAMPLE_PATH
-
-2004-04-28 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_get_insecureccaps(): added
- cleanups
- added documentation
-
-2004-04-28 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/val2text.hc: use strncasecmp() instead of
- strncmp()
-
-2004-04-28 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/listparser.hc: improved error-detection for the
- '^' prefix
- added support for 'none'
- allow '0'
-
-2004-04-28 17:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/bcaps-v13.c: added bcapability names
- added code to remove a 'CAP_' prefix
-
-2004-04-28 17:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files,
- util-vserver/lib/getinsecurebcaps.c,
- util-vserver/lib/getinsecurecaps.c: renamed getinsecurecaps.c to
- getinsecurebcaps.c
-
-2004-04-23 16:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac,
- util-vserver/doc/configuration-lsd.css: version 0.29.211
-
-2004-04-23 16:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: readjusted Release:
-
-2004-04-23 14:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: cleaned up the %file-lists
- buildrequire 'xalan-j' (can be disabled with '--without xalan')
- removed 'libxslt' buildrequire
-
-2004-04-23 14:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/Makefile-files: remove *.html only, when we can
- recreate them
-
-2004-04-23 11:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: fixed typo
-
-2004-04-23 11:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/Makefile-files: removed FAQ.txt and
- configuration.dtd
- added configuration.xsd
-
-2004-04-23 11:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/FAQ.txt: obsoleted
-
-2004-04-22 20:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added 'net' API
- disable 'legacy' API by default
-
-2004-04-22 20:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: added nid_t
-
-2004-04-22 20:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/reducecap.c: fixed warnings when compiled
- without legacy-mode
-
-2004-04-22 20:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files, util-vserver/lib/ncaps-net.c,
- util-vserver/lib/ncaps_list-net.c, util-vserver/lib/nflags-net.c,
- util-vserver/lib/nflags_list-net.c,
- util-vserver/lib/syscall_getncaps-net.hc,
- util-vserver/lib/syscall_getncaps.c,
- util-vserver/lib/syscall_getnflags-net.hc,
- util-vserver/lib/syscall_getnflags.c,
- util-vserver/lib/syscall_getnxinfo-net.hc,
- util-vserver/lib/syscall_getnxinfo.c,
- util-vserver/lib/syscall_gettasknid-net.hc,
- util-vserver/lib/syscall_gettasknid.c,
- util-vserver/lib/syscall_netadd-net.hc,
- util-vserver/lib/syscall_netadd.c,
- util-vserver/lib/syscall_netcreate-net.hc,
- util-vserver/lib/syscall_netcreate.c,
- util-vserver/lib/syscall_netmigrate-net.hc,
- util-vserver/lib/syscall_netmigrate.c,
- util-vserver/lib/syscall_netremove-net.hc,
- util-vserver/lib/syscall_netremove.c,
- util-vserver/lib/syscall_setncaps-net.hc,
- util-vserver/lib/syscall_setncaps.c,
- util-vserver/lib/syscall_setnflags-net.hc,
- util-vserver/lib/syscall_setnflags.c,
- util-vserver/lib/vserver-internal.h, util-vserver/lib/vserver.h:
- added network layer functions
-
-2004-04-22 20:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_ctxcreate-v13.hc: fixed return value
-
-2004-04-22 19:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.dtd: obsoleted by
- configuration.xsd
-
-2004-04-22 19:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/THANKS: added Olivier Poitrey
-
-2004-04-22 19:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: use xalan instead of xsltproc
-
-2004-04-22 19:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-xhtml.xsl,
- util-vserver/doc/configuration.xml,
- util-vserver/doc/configuration.xsd: use the new, XSD-based format
- which was defined by Olivier Poitrey
-
-2004-04-22 19:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-xhtml.xsl: made it work with xalan
- removed debug message
-
-2004-04-22 19:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/beautify.xsl: obsoleted
-
-2004-04-22 19:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/Makefile-files: use xalan
-
-2004-04-22 18:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/network.h, util-vserver/kernel/sched.h:
- updated to vs1.9.0pre12
-
-2004-04-22 15:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/cflags-v13.c,
- util-vserver/lib/testsuite/cflags.c: use more specific names for
- the flags
-
-2004-04-21 21:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: give correct vserver-name in
- the hints ($VSERVER_DIR instead of $VSERVER_NAME)
-
-2004-04-21 21:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: moved the 'ip_only'
- handling to the right place
-
-2004-04-21 09:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vshelper-sync.c: fixed missing initialization of
- a timeout struct
-
-2004-04-21 09:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: use uint64_t for the uptime
- counter to handle medium+large uptimes
- (>49 days) correctly
-
-2004-04-21 00:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: made 'nodev' work
-
-2004-04-20 18:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added chain-echo
-
-2004-04-20 18:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added chain-echo
-
-2004-04-20 18:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: use '--defaulttty'
-
-2004-04-20 18:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: use setDefaultTTY()
-
-2004-04-20 18:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: use setDefaultTTY()
- added explicit synchronization step for fakeinit with the old
- methods
-
-2004-04-20 18:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: added '--defaulttty' option
-
-2004-04-20 18:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/start-vservers: use --defaulttty options
- instead of setting tty manually
-
-2004-04-20 18:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: setDefaultTTY(): added
-
-2004-04-20 17:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservercfgstyle.c: * vc_getVserverCfgStyle():
- interprete relative ('./') and absolute
- paths ('/...') as vcCFG_RECENT_FULL only
- * vc_getVserverCfgStyle(): use utilvserver_isDirectory (fstat(2))
- instead of access(2) to check for directories
-
-2004-04-20 17:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-unistd.hc: Edup(): added
-
-2004-04-20 17:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-fcntl.hc: Efcntl(): added
-
-2004-04-20 17:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: added some entries
-
-2004-04-20 17:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/vunify-exclude: updated
-
-2004-04-20 17:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst,
- util-vserver/scripts/util-vserver-vars.pathsubst: added
- chain-echo
-
-2004-04-20 17:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chain-echo.c: initial checkin
-
-2004-04-15 02:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.29.209
-
-2004-04-15 02:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: setFlags(): optimized (nearly state
- of 1.10)
-
-2004-04-15 02:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.suexec: call chbind when entering
- vservers
-
-2004-04-15 01:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: call vattribute with
- '--flag fakeinit' additionally to the '--fakeinit' flag of
- vcontext
-
-2004-04-15 01:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: callInNamespace(): do not accept
- non-running vservers
-
-2004-04-15 01:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated
-
-2004-04-14 23:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: applied new kernel API (*flags* ->
- *cflags*, *_context -> ctx_*)
- fixed '--fakeinit' option
-
-2004-04-14 23:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: fixed another brokeness in CLI
- option handling
-
-2004-04-14 23:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: lock(): do not execute the pipe;
- this does not work on 2.6
-
-2004-04-14 23:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite,
- util-vserver/lib/testsuite/.cvsignore: added cflags
-
-2004-04-14 23:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: added some comments about
- uts/context
-
-2004-04-14 23:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-xhtml.xsl: added a new boring
- stylesheet
-
-2004-04-14 23:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.css: initial checkin
-
-2004-04-14 23:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/make-manifest,
- util-vserver/contrib/manifest.dat.pathsubst: added support for
- '%config(...)' (or whatever) annotations
-
-2004-04-14 23:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc,
- util-vserver/lib_internal/switchtowatchxid.c,
- util-vserver/src/chcontext.c, util-vserver/src/reducecap.c,
- util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/rpm-fake.c, util-vserver/src/vattribute.c:
- applied new kernel API (*flags* -> *cflags*, *_context -> ctx_*)
-
-2004-04-14 23:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files,
- util-vserver/lib_internal/util.h: added util-debug.h
-
-2004-04-14 23:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-debug.h: initial checkin
-
-2004-04-14 23:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/context.h, util-vserver/kernel/cvirt.h,
- util-vserver/kernel/inode.h, util-vserver/kernel/legacy.h,
- util-vserver/kernel/limit.h, util-vserver/kernel/namespace.h,
- util-vserver/kernel/network.h, util-vserver/kernel/sched.h,
- util-vserver/kernel/switch.h, util-vserver/kernel/xid.h: updated
- to vs1.90pre9
-
-2004-04-14 23:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-compat.hc,
- util-vserver/lib/testsuite/Makefile-files,
- util-vserver/lib/testsuite/cflags.c,
- util-vserver/lib/testsuite/flags.c, util-vserver/lib/vserver.h:
- applied new kernel API
- renamed functions so that they correspond to the new kernel API
-
-2004-04-14 23:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files,
- util-vserver/lib/cflags-compat.c, util-vserver/lib/cflags-v13.c,
- util-vserver/lib/cflags_list-compat.c,
- util-vserver/lib/cflags_list-v13.c,
- util-vserver/lib/flags-compat.c, util-vserver/lib/flags-v13.c,
- util-vserver/lib/flags_list-compat.c,
- util-vserver/lib/flags_list-v13.c,
- util-vserver/lib/syscall_createcontext-v13.hc,
- util-vserver/lib/syscall_createcontext.c,
- util-vserver/lib/syscall_ctxcreate-v13.hc,
- util-vserver/lib/syscall_ctxcreate.c,
- util-vserver/lib/syscall_ctxmigrate-v13.hc,
- util-vserver/lib/syscall_ctxmigrate.c,
- util-vserver/lib/syscall_getcflags-v13.hc,
- util-vserver/lib/syscall_getcflags.c,
- util-vserver/lib/syscall_getflags-v13.hc,
- util-vserver/lib/syscall_getflags.c,
- util-vserver/lib/syscall_migratecontext-v13.hc,
- util-vserver/lib/syscall_migratecontext.c,
- util-vserver/lib/syscall_setcflags-v13.hc,
- util-vserver/lib/syscall_setcflags.c,
- util-vserver/lib/syscall_setflags-v13.hc,
- util-vserver/lib/syscall_setflags.c: renamed files so that their
- names are corresponding the kernel
- API. Especially, *_context was renamed to ctx_*, and *flags* to
- *cflags*.
-
-2004-04-13 08:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: further locking fixes
-
-2004-04-13 08:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/lockfile.c: propagate errors
-
-2004-04-13 08:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chroot-rm.c: cleanups
-
-2004-04-13 08:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: open FD 0
- evaluate CLI options depending on used kernel API
-
-2004-04-13 08:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: use new locking mechanism
-
-2004-04-13 08:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/issupported.c,
- util-vserver/lib/issupportedstring.c, util-vserver/lib/vserver.h:
- added VSHELPER0 feature
-
-2004-04-08 08:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: execScriptlets(): fixed
- initialization of 'start'
- execScriptlets(): declare some variables as readonly
- _sourceWrap(): added some variables
-
-2004-04-08 06:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: implemented support for
- default-scriptlets (inspired by ideas of
- Olivier Poitrey)
-
-2004-04-08 06:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/rootshell,
- util-vserver/scripts/vapt-get-worker,
- util-vserver/scripts/vprocunhide, util-vserver/scripts/vrpm,
- util-vserver/scripts/vrpm-worker,
- util-vserver/scripts/vserver-build,
- util-vserver/scripts/vshelper: give more verbose error-messages
-
-2004-04-08 06:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall.c: added link-warning for
- vc_new_s_context()
-
-2004-04-08 06:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: added general description for
- the scripts and documented
- $DONT_SKIP_DEFAULTS
-
-2004-04-08 06:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: LINK_WARNING(): added
-
-2004-04-06 23:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext,
- util-vserver/scripts/legacy/distrib-info,
- util-vserver/scripts/legacy/vserver,
- util-vserver/scripts/pkgmgmt,
- util-vserver/scripts/start-vservers,
- util-vserver/scripts/vapt-get, util-vserver/scripts/vpkg,
- util-vserver/scripts/vpstree, util-vserver/scripts/vrpm-preload,
- util-vserver/scripts/vserver, util-vserver/scripts/vserver-copy,
- util-vserver/scripts/vserver-wrapper,
- util-vserver/scripts/vservers.grabinfo.sh,
- util-vserver/scripts/vsysvwrapper, util-vserver/scripts/vtop,
- util-vserver/sysv/rebootmgr, util-vserver/sysv/vprocunhide,
- util-vserver/sysv/vservers-legacy: give more comprehensive
- error-message
-
-2004-04-06 23:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vps.c, util-vserver/src/vserver-info.c,
- util-vserver/src/vserver-stat.c: use switchToWatchXid()
-
-2004-04-06 22:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: link some files against
- libinternal.a
-
-2004-04-06 22:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util.h: switchToWatchXid(): added
- prototype
-
-2004-04-06 22:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/switchtowatchxid.c: initial checkin
-
-2004-04-06 22:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added
- switchtowatchxid.c
-
-2004-04-06 22:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: VC_ATTR_DEPRECATED: added
-
-2004-04-06 22:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-compat.hc: vc_chrootsafe_compat():
- removed
-
-2004-04-06 08:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.c: applied new MatchList_compare()
- interface
-
-2004-04-06 08:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: started support for HZ!=100
- cleanups
-
-2004-04-06 08:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcopy.c: implement support for SKIP files
-
-2004-04-06 08:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/rpm-fake.c: do not call vc_new_s_context() when
- COMPAT API is not available
-
-2004-04-06 08:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: cleanups
- vshelper.doInit(): added another sanity check
-
-2004-04-06 08:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/matchlist-appendfiles.c,
- util-vserver/lib_internal/matchlist-compare.c,
- util-vserver/lib_internal/matchlist.h: implemented support for
- SKIP (~) files
-
-2004-04-06 08:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/flags.c: added tests for new flags
-
-2004-04-06 08:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: updated VC_VXF_* constants
- added VC_VXC_* constants
-
-2004-04-06 08:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/flags-v13.c: added/updated flaglist
-
-2004-04-06 08:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/ccaps-v13.c: added ccap names
-
-2004-04-06 08:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc: cleanups
-
-2004-04-06 08:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/vunify-exclude: exclude keyfiles
- completely
- made some big files in /etc canditates for unify
-
-2004-04-06 08:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/context.h, util-vserver/kernel/inode.h,
- util-vserver/kernel/legacy.h, util-vserver/kernel/limit.h,
- util-vserver/kernel/namespace.h, util-vserver/kernel/sched.h,
- util-vserver/kernel/signal.h, util-vserver/kernel/xid.h: updated
- to 2.6.5-vs1.9.0pre4
-
-2004-03-31 03:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/lockfile.c: optimized some things
- now check, if getppid()==original_parent instead of getppid()!=1
- (might make a difference in vservers)
-
-2004-03-31 03:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: added some doc
- s!_UV_LOCKS!_VS_LOCKS!
-
-2004-03-31 00:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/lockfile.c: fixed '--help' output
-
-2004-03-31 00:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst, util-vserver/src,
- util-vserver/src/.cvsignore: added lockfile
-
-2004-03-31 00:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/lockfile.c: initial checkin
-
-2004-03-31 00:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added lockfile
-
-2004-03-31 00:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: enableInterfaces(),
- disableInterfaces(): added locking
- enableInterfaces(), disableInterfaces(): added IP_ADDR_FLUSH type
-
-2004-03-31 00:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: $_LOCKFILE,
- $LOCKDIR: added
-
-2004-03-31 00:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: lock(),unlock(): added
- isNumber(): added doc
-
-2004-03-30 20:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: made it work...
-
-2004-03-30 20:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: isNumber(): fixed '0' case
-
-2004-03-30 19:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: implemented parts of Liam
- Helmer's dummy-interface method
-
-2004-03-30 19:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am, util-vserver/configure.ac,
- util-vserver/scripts/util-vserver-vars.pathsubst: added
- substitutions/tests for iptables, modprobe, rmmod and nameif
- (required for Liam Helmer's dummy-interfaces)
-
-2004-03-30 19:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: isNumber(): added
-
-2004-03-30 17:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vshelper-sync.c: implemented it with select()
- instead of alarm(); races are much nicer to handle
-
-2004-03-30 16:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vshelper-sync.c: use sigaction() instead of
- signal() to remove SA_RESTART flag explicitly
-
-2004-03-30 16:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/pipe-sync.c: obsoleted by vshelper-sync
-
-2004-03-30 15:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst,
- util-vserver/src/Makefile-files: removed pipe-sync
-
-2004-03-30 15:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel/context.h, util-vserver/kernel/cvirt.h,
- util-vserver/kernel/limit.h, util-vserver/kernel/network.h,
- util-vserver/kernel/sched.h, util-vserver/kernel/switch.h:
- updated from vs0.09.28
-
-2004-03-27 04:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.29.207
-
-2004-03-26 09:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: use 'findObject -e' instead of
- 'findFile' to find /dev/null also
-
-2004-03-26 09:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: fixed call of
- vshelper.isEnabled
-
-2004-03-26 09:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: fixed some typos
-
-2004-03-26 09:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented
- apps/vshelper/logfile symlink
-
-2004-03-26 09:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper: ignore 'restart2' event; this
- seems to be issued at vserver *start*
- added support for a logfile
- enable logfile-logging when invoked from kernel (no tty)
-
-2004-03-26 08:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: fixed order of
- variables
- fixed _VSHELPER path
-
-2004-03-26 08:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: fixed vshelper path
- added vshelper-sync
-
-2004-03-26 08:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added some Requires:
- own %dir /var/run/vshelper
-
-2004-03-26 08:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added substition for @VSHELPERSTATEDIR@
- minor cosmetical cleanups
-
-2004-03-26 07:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added
- vshelper-sync
-
-2004-03-26 07:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vshelper, util-vserver/src/vshelper-sync.c:
- initial checkin
-
-2004-03-26 07:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: - added tgID and tgPXID support
- - accept 'true' as boolean value
- - optimized the code a little bit so that the xid will be looked
- up
- only when really needed
-
-2004-03-26 07:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vps.c: in output, added a ' ' on overlong
- vserver-names
-
-2004-03-26 07:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: rewrote some parts to cope
- better with '-o' options (required for -bme
- patches to work)
-
-2004-03-26 07:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added vshelper-sync
-
-2004-03-26 07:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: added VSHELPER &
- synchronization code
-
-2004-03-26 07:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: added documentation about
- failure reasons
- added VSHELPER code
-
-2004-03-26 07:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: adapted code to new
- getFileArray() behavior
- added VSHELPER support
- added "LEGACY ALERT" messages
- initSync(),waitForSync(): added
-
-2004-03-26 07:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: added a "LEGACY
- ALERT"
-
-2004-03-26 07:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build: fixed code to work with new
- behavior of getFileArray
-
-2004-03-26 07:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added some
- missing variables
- added the vshelper variables
-
-2004-03-26 07:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/pkgmgmt: use pkgmgmt.isAptAvailable()
-
-2004-03-26 07:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions:
- logging(),warning(),panic(),execute(): added
- pkgmgmt.isAptAvailable(): added
- vshelper.*(): added
- getFileArray(): fail, when file does not exist
-
-2004-03-26 07:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst,
- util-vserver/scripts/Makefile-files: added vshelper
-
-2004-03-26 07:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: - minor cleanups
- - added vcFEATURE_VSHELPER
- - vc_isSupported(): annotated it
- - vc_get_insecurecaps(): moved it into an own file; CAP_SYS_BOOT
- requires a special handling so inlining is not really usefully
- anymore
-
-2004-03-26 07:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/issupported.c,
- util-vserver/lib/issupportedstring.c: added VSHELPER
-
-2004-03-26 07:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added getinsecurecaps.c
-
-2004-03-26 07:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getinsecurecaps.c: initial checkin
-
-2004-03-26 07:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented the vshelper stuff
-
-2004-03-26 07:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.dtd: added a type for 'script'
-
-2004-03-26 07:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: cleanups in the directory
- creation rules
-
-2004-03-26 07:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: use 'install-distribution'
- instead of 'install-vserverdir'
- added vshelper stuff
-
-2004-03-26 07:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: cleanups and enhancements in the
- directory installation rules
-
-2004-03-24 05:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS: version 0.29.205
-
-2004-03-24 05:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: fixed LDADD flags for capchroot
-
-2004-03-24 05:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vsched.c: enhanced the in-chain operation; make
- it a noop when called without opts
- enhanced error messages
-
-2004-03-24 05:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst,
- util-vserver/scripts/vserver.functions,
- util-vserver/scripts/vserver.start: added scheduler support
-
-2004-03-24 05:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: added basic documentation for
- bcapabilities, ccapabilities and schedule
-
-2004-03-24 04:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h, util-vserver/src/chcontext.c,
- util-vserver/src/reducecap.c, util-vserver/src/rpm-fake.c,
- util-vserver/src/vattribute.c, util-vserver/src/vps.c: renamed
- vc_get_securecaps() to vc_get_insecurecaps()
-
-2004-03-24 04:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: added missing '\'
-
-2004-03-24 04:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vattribute.c, util-vserver/src/vcontext.c,
- util-vserver/src/vlimit.c, util-vserver/src/vnamespace.c,
- util-vserver/src/vserver-info.c, util-vserver/src/vuname.c: use
- vc_xidopt2xid()
-
-2004-03-24 04:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c, util-vserver/src/vkill.c,
- util-vserver/src/vsched.c: prefer '--xid' instead of '--ctx'
- use vc_xidopt2xid()
-
-2004-03-24 04:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: added support for
- $VSERVER_EXTRA_CMDS[] which can be set in userscripts
-
-2004-03-24 04:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.debootstrap: call 'wget' with
- '-nv' instead of '-q'
-
-2004-03-24 04:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_xidopt2xid(): added prototype
-
-2004-03-24 04:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added xidopt2xid.c
-
-2004-03-24 04:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/xidopt2xid.c: initial checkin
-
-2004-03-24 04:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc: Evc_xidopt2xid():
- added
-
-2004-03-24 04:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: updated to recent
- version
-
-2004-03-24 04:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: fixed Requires()
- fixed some %dir's
-
-2004-03-24 01:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: cleaned up CLI: '--xid' is supported
- now, removed '-h' and '-v' options
- minor cleanups
-
-2004-03-24 01:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/vservers-legacy: initial checkin
-
-2004-03-24 01:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/rebootmgr, util-vserver/sysv/rebootmgr.subst:
- 'rebootmgr' is now a src-script
-
-2004-03-24 01:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/Makefile-files: 'rebootmgr' is now a src-script
- added vservers-legacy
-
-2004-03-24 01:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vattribute.c: initialize 'bmask' member of
- struct vc_ctx_caps
- use negative logic of --bcap (this should be the 'old' behavior
- of '--cap')
-
-2004-03-24 01:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: initialize 'bmask' member of struct
- vc_ctx_caps
-
-2004-03-24 01:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/capchroot.c, util-vserver/src/filetime.c,
- util-vserver/src/readlink.c: rewrote it
-
-2004-03-24 01:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: cleanups; moved some programs
- into $legacydir
-
-2004-03-24 01:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added more
- legacy programs
-
-2004-03-24 01:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/legacy/vserver: use $_XXXX variables instead
- of static commandnames
- use variables for paths
-
-2004-03-24 01:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/legacy/distrib-info: moved parserpmdump to
- legacy
-
-2004-03-24 01:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- $_REBOOTMGR
-
-2004-03-24 01:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: fixed copy&paste error
-
-2004-03-24 01:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ChangeLog.sed, util-vserver/cvsusers.map,
- util-vserver/ensc_vector, util-vserver/ensc_vector/.cvsignore,
- util-vserver/lib_internal, util-vserver/lib_internal/.cvsignore:
- initial checkin
-
-2004-03-24 01:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore, util-vserver/distrib,
- util-vserver/distrib/.cvsignore,
- util-vserver/ensc_vector/testsuite,
- util-vserver/ensc_vector/testsuite/.cvsignore, util-vserver/lib,
- util-vserver/lib/.cvsignore, util-vserver/lib/testsuite,
- util-vserver/lib/testsuite/.cvsignore, util-vserver/src,
- util-vserver/src/.cvsignore, util-vserver/src/testsuite,
- util-vserver/src/testsuite/.cvsignore, util-vserver/tests,
- util-vserver/tests/.cvsignore: added some standardfiles; I do not
- want to wait until Savannah fixes
- its scripts and allows access to CVSROOT/cvsignore again.
-
-2004-03-24 01:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-perror.h: placed a 'do ... while
- (0)' block around the macros
-
-2004-03-24 01:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/bcaps_list-v13.c,
- util-vserver/lib/syscall_getccaps-v13.hc,
- util-vserver/lib/syscall_setccaps-v13.hc: handle the new struct
- vc_ctx_caps::bmask member
-
-2004-03-24 01:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: moved some files
- into legacy
- handle sysv scripts
-
-2004-03-24 01:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added formerly missing
- 'v_gated' registration
- updated -legacy subpackage and moved some initscripts into it
-
-2004-03-24 01:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: do not use PURE before gcc 3.3.3
- use a more effective way to determine gcc revision
- struct vc_ctx_caps: added 'bmask' member
-
-2004-03-24 01:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: do not use PURE before gcc 3.3.3
- use a more effective way to determine gcc revision
-
-2004-03-23 01:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-wrapper: fixed typo (missing 's')
-
-2004-03-22 23:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: added basic support
- for SuSE (patch from Thomas Guettler)
- give more hints in errormessages (patch from Thomas Guettler)
-
-2004-03-22 23:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vpkg: give out errormessage on unknown
- distribution type
-
-2004-03-22 23:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: added basic support for SuSE
-
-2004-03-19 16:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: fixed race when process
- disappeared shortly after reading /proc
-
-2004-03-19 16:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented
- apps/init/{mark,depends}
- mentioned the gentoo initstyle
-
-2004-03-19 16:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-lsd.css: followed Bertl's
- suggestion and added a subliminal message
-
-2004-03-19 16:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: require at least version 0.24 of
- dietlibc
-
-2004-03-19 16:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: allow to specify a
- <min-version>
-
-2004-03-18 06:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.29.204
-
-2004-03-18 06:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-dotfile.h: do not use PURE; it is
- not applicable for inline declarations
-
-2004-03-18 05:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: fixed broken condition for PURE
- define __builtin_expect() when needed
-
-2004-03-18 05:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.c: cleanups in the verbosity code
-
-2004-03-18 05:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/legacy/vps.pathsubst,
- util-vserver/scripts/legacy/vserver: use 'chcontext-compat'
- instead of 'chcontext'
-
-2004-03-18 05:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: call isVserverRunning to
- cleanup rundir
-
-2004-03-18 05:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.pkgmgmt: ignore
- candidates for location of pkgmgmt-dir when $ROOTDIR is empty
-
-2004-03-18 05:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build: cleanups; use full
- parenthesis in case ... esac
-
-2004-03-18 05:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: implemenented 'pkgmgmt' command
-
-2004-03-18 05:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vrpm: allow both internal and external
- packagemanagement
-
-2004-03-18 05:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vpkg: cleanups; generalized some functions
- and moved them into the 'functions' file
-
-2004-03-18 05:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get: support both internal and external
- packagemanagement
-
-2004-03-18 05:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added $_PKGMGMT
- and $_TAR
-
-2004-03-18 05:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/start-vservers: filter out non-matching
- vservers *before* adding them to the makefile
-
-2004-03-18 05:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: getVserverStatus(): fix problems
- with leading whitespaces in numerical values
- pkgmgmt.guessStyle(), pkgmgmt.isInternal(): added
-
-2004-03-18 05:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/pkgmgmt: initial checkin
-
-2004-03-18 05:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added pkgmgmt
-
-2004-03-18 05:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/matchlist-initmanually.c: some cleanups
- in the verbosity code
-
-2004-03-18 05:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservercfgstyle.c: filter out relative and
- absolute paths; when they are not pointing to
- an existing directory, the function fails
-
-2004-03-18 05:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers_handler.hc: use
- __builtin_expect
-
-2004-03-18 05:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/defaults/apt/apt.conf: added
- '@autogenerated@' tag plus small warning
-
-2004-03-18 05:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added pkgmgmt script
-
-2004-03-18 05:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: look for tar
-
-2004-03-18 05:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: substitute @TAR@
-
-2004-03-16 14:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chbind.c: use vc_get_nb_ipv4root() instead of
- hardcoded '16' value
-
-2004-03-16 14:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: CONST: added
-
-2004-03-16 14:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: VC_ATTR_CONST: added
- vc_get_nb_ipv4root(): added
-
-2004-03-16 14:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added getnbipv4root.c
-
-2004-03-16 14:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getnbipv4root.c: initial checkin
-
-2004-03-16 04:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added the sysvwrappers to
- AM_INSTALLCHECK_STD_OPTIONS_EXEMPT
-
-2004-03-16 04:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.29.202
-
-2004-03-16 03:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/Makefile-files: added vservers-default
- removed vservers
-
-2004-03-16 03:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/vservers.subst: obsoleted by new initscript
-
-2004-03-16 03:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpre,
- util-vserver/lib/isdynamicxid.c,
- util-vserver/scripts/vserver-wrapper,
- util-vserver/sysv/vservers-default: initial checkin
-
-2004-03-16 03:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: implemented INITPID for the
- compat API
-
-2004-03-16 03:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: implemented/fixed the non-legacy
- part
- cleanups
-
-2004-03-16 03:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake-resolver.c: implemented/fixed the
- non-legacy part
-
-2004-03-16 03:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.suexec: added internal mode to use
- 'suexec' for stopped vservers also
-
-2004-03-16 03:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: added a more efficient stop
- method for fakeinit vservers
-
-2004-03-16 03:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: finxed incomplete quoting
-
-2004-03-16 03:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: handle fakeinit
- separately
- cleanups and fixes in the flag-generation
-
-2004-03-16 03:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: added support for an internal
- command mode
-
-2004-03-16 03:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- $_INITSYNC_MINIT_* variables
- added $_START_VSERVERS
-
-2004-03-16 03:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/start-vservers: added ok/passed/failed logic
-
-2004-03-16 03:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: ship vsyswrapper again
-
-2004-03-16 03:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_is_dynamic_xid(): added
-
-2004-03-16 03:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added isdynamicxid.c
-
-2004-03-16 03:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc: Evc_set_ccaps():
- added
-
-2004-03-16 03:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: use internal 'chkconfig'
- command
-
-2004-03-16 03:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added initpre to handle rpm's
- misclassification of %_netsharedpath
-
-2004-03-16 03:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/make-manifest,
- util-vserver/contrib/manifest.dat.pathsubst: handle some sysv
- files too
-
-2004-03-16 03:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: updated the -sysv package
-
-2004-03-15 21:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: cleanups; remove unused code
- added '--silentexist'
- use context-sync.hc
-
-2004-03-15 21:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c: use code from context-sync.hc
-
-2004-03-15 21:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/context-sync.hc: initial checkin
-
-2004-03-15 21:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added context-sync.hc
-
-2004-03-15 21:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm: cleanups; full
- parenthesis for case ... esac statements
-
-2004-03-15 21:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: cleanups; full parenthesis for case
- ... esac statements
- give more helpful error messages
-
-2004-03-15 21:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/jail.h,
- util-vserver/lib_internal/jailintotempdir.c: return indication
- about place of error
-
-2004-03-15 20:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: print correct $prefix when '--prefix'
- is not specified
-
-2004-03-13 03:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.29.201
-
-2004-03-13 03:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: added another #warning
-
-2004-03-13 03:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: fixed '--uid' option (it's
- required_argument but not no_argument)
- drop privileges after migrate()
-
-2004-03-13 03:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: call $_SAVE_CTXINFO until we
- have something better
-
-2004-03-13 02:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: updated to new kernel behavior
-
-2004-03-13 02:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vattribute.c: renamed set*() to parse*()
- set the correct secure attributes
- call set_flags/set_ccaps only, when there is something to do
-
-2004-03-13 02:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext,
- util-vserver/scripts/vserver.start: applied new CLI
-
-2004-03-13 02:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added jail* files
-
-2004-03-13 02:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/jail.h,
- util-vserver/lib_internal/jailintotempdir.c: initial checkin
-
-2004-03-13 02:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc: Evc_get_ccaps():
- added declaration
-
-2004-03-12 19:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vuname.c: rewrote it; CLI should be more usable
- now
-
-2004-03-12 19:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext,
- util-vserver/scripts/vserver.start: use new vuname syntax
-
-2004-03-12 06:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vattribute.c: set caps before flags so that caps
- can be changed in the same transaction
- which deletes 'setup'
-
-2004-03-12 04:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.suexec: added some explicit '--'
-
-2004-03-12 04:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: added some doc
- getVserverStatus(): fixed it
-
-2004-03-12 04:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/save_ctxinfo.c: use strncat() instead of
- strcat() to enforce correct length
-
-2004-03-12 03:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.29.200
-
-2004-03-12 03:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext,
- util-vserver/scripts/vserver.start: remove the setup flag
-
-2004-03-12 03:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: cleanups
-
-2004-03-12 03:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: give '--xid' in migrate case
-
-2004-03-12 03:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: fixed migrate vs. migrate-self
-
-2004-03-12 03:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added kernel headers
-
-2004-03-12 03:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/kernel, util-vserver/kernel/context.h,
- util-vserver/kernel/inode.h, util-vserver/kernel/legacy.h,
- util-vserver/kernel/limit.h, util-vserver/kernel/namespace.h,
- util-vserver/kernel/network.h, util-vserver/kernel/sched.h,
- util-vserver/kernel/signal.h, util-vserver/kernel/switch.h:
- initial checkin
-
-2004-03-12 03:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/vprocunhide: do not use /dev/null as lockfile
-
-2004-03-12 03:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vsched.c: updated to new API
-
-2004-03-12 03:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vattribute.c: implemented --secure
-
-2004-03-12 03:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop: allow '--debug' in the
- destructors
-
-2004-03-12 03:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: added gentoo startup
- style
-
-2004-03-12 02:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: fixed params
- do not call vuname/vattribute when not needed
-
-2004-03-12 02:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/flags.c: added testsuite for the flags
-
-2004-03-12 02:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: updated interface
- added flags
-
-2004-03-12 02:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: use kernel headers
-
-2004-03-12 02:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_getiattr-v13.hc,
- util-vserver/lib/syscall_setiattr-v13.hc,
- util-vserver/lib/syscall_setsched-v13.hc: updated interface
-
-2004-03-12 02:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/listparser.hc: added '^' modifier which marks
- bit numbers
-
-2004-03-12 02:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/flags-v13.c: added the flags
-
-2004-03-11 04:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.29.199
-
-2004-03-11 04:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vuname.c: added more documentation
- fixed '--version' conflicts
-
-2004-03-11 04:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/rpm-fake.c: implemented most parts of the new
- migrate method
-
-2004-03-11 04:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: set context-name
-
-2004-03-11 04:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added getvserverbyctx-* files
-
-2004-03-11 04:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverbyctx.c: implemented new
- context-naming method
-
-2004-03-11 04:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverbyctx-compat.hc,
- util-vserver/lib/getvserverbyctx-v13.hc: initial checkin
-
-2004-03-11 04:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc:
- Evc_set_vhi_name(): added
-
-2004-03-10 05:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented 'fstab.local' and
- enhanced 'fstab' doc
-
-2004-03-10 05:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: added support for
- 'fstab.local' files
-
-2004-03-10 05:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/vprocunhide: made it a little bit more portable
- by providing own implementations of
- RH's /etc/init.d/functions when this file can not be found
- (inspired
- by a patch from Olivier Poitrey)
-
-2004-03-10 04:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: callInNamespace(): call 'shift'
- to remove the vserver-name from $@
-
-2004-03-10 02:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc, util-vserver/doc/.cvsignore: added
- configuration.html
-
-2004-03-10 02:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: added an option the 'CONTEXT'
- query so that it can be choosen between
- running/non running
-
-2004-03-10 02:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c, util-vserver/src/vuname.c: prefix
- option string for getopt with '+' to avoid option reordering
-
-2004-03-10 02:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get, util-vserver/scripts/vrpm: use
- callInNamespace
-
-2004-03-10 02:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: isAvoidNamespace(): determine
- full cfgdir path of vserver before checking for 'namespace' file
- callInNamespace(): added
-
-2004-03-10 02:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: minor cosmetical
- cleanups...
-
-2004-03-10 02:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext,
- util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop,
- util-vserver/scripts/vserver.suexec: use '--' delimiter
-
-2004-03-10 02:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: added/updated some
- descriptions
-
-2004-03-10 02:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-lsd.css: flowers... where are all
- the flowers coming from?
-
-2004-03-10 02:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am, util-vserver/contrib/Makefile-files,
- util-vserver/doc/Makefile-files,
- util-vserver/ensc_vector/Makefile-files,
- util-vserver/ensc_vector/testsuite/Makefile-files,
- util-vserver/ensc_wrappers/Makefile-files,
- util-vserver/lib/Makefile-files,
- util-vserver/lib/testsuite/Makefile-files,
- util-vserver/lib_internal/Makefile-files,
- util-vserver/man/Makefile-files,
- util-vserver/scripts/Makefile-files,
- util-vserver/src/Makefile-files,
- util-vserver/src/testsuite/Makefile-files,
- util-vserver/tests/Makefile-files: modernized the Makefiles; use
- '+=' where possible to remove complexity
- from the toplevel Makefile.am
-
-2004-03-09 17:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vprocunhide: remove the correct prefix
-
-2004-03-09 16:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop,
- util-vserver/scripts/vserver.suexec: use $_CHONTEXT_COMPAT
- explicitly
-
-2004-03-09 16:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: use/create 'uts'
- directory
-
-2004-03-09 16:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: updated copyright date
-
-2004-03-09 16:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented the vunify
- configuration
-
-2004-03-09 14:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: rewrote the non-legacy part
-
-2004-03-09 14:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: aded
- _KEEP_CTX_ALIVE
-
-2004-03-09 14:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: added missing ';' in case
- expression
- s!_CTX_KEEP_ALIVE!_KEEP_CTX_ALIVE!
-
-2004-03-09 04:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS: version 0.29.198
-
-2004-03-09 03:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop,
- util-vserver/scripts/vserver.suexec: removed superfluous '--'
-
-2004-03-09 03:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: added explicit cleanup trap
- removed superfluous '--'
-
-2004-03-09 03:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: added some parenthesis
-
-2004-03-09 03:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: made 'status' really silent
-
-2004-03-09 03:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/start-vservers: initial checkin
-
-2004-03-09 03:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: getVserverStatus(): fixed it for
- the non-running & non-cleanup case
-
-2004-03-09 03:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst,
- util-vserver/scripts/Makefile-files: added start-vservers
-
-2004-03-09 03:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers.h: fixed typo
- fixed overflow
-
-2004-03-09 03:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added Requires: make
-
-2004-03-09 02:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: made 'status' silent when
- '--silent' is used
-
-2004-03-09 02:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/apidoc, util-vserver/lib/apidoc/.cvsignore:
- added man
-
-2004-03-09 02:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.html: removed since autogenerated
-
-2004-03-09 02:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration-lsd.css: use official HTML 4
- colornames
-
-2004-03-09 01:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/beautify.xsl,
- util-vserver/doc/compatibility-xhtml.xsl,
- util-vserver/doc/configuration-xhtml.xsl: use official XHTML
- namespace
-
-2004-03-09 01:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/defaults/rpm/macros,
- util-vserver/distrib/redhat/initpost: added hack for
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=117827
-
-2004-03-08 19:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscallnr.m4: stopped to confuse users with
- wrong error messages
-
-2004-03-08 19:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/apidoc/Makefile-files: handle man directory
-
-2004-03-08 19:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/apidoc/Doxyfile.in: updated
-
-2004-03-08 19:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/Makefile-files: filled it with content...
-
-2004-03-08 19:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added documentation
-
-2004-03-08 18:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented tty symlink
- use documentation.dtd instead of cfgdirdoc.dtd
- some small corrections/adjustments
-
-2004-03-08 18:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/beautify.xsl,
- util-vserver/doc/configuration-lsd.css,
- util-vserver/doc/configuration-xhtml.xsl,
- util-vserver/doc/configuration.html: initial checkin
-
-2004-03-08 18:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/compat-xhtml.xsl,
- util-vserver/doc/compatibility-xhtml.xsl: renamed
- compat-xhtml.xsl to compatibility-xhtml.xsl
-
-2004-03-08 18:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/cfgdirdoc.dtd,
- util-vserver/doc/configuration.dtd: renamed cfgdirdoc.dtd to
- configuration.dtd
-
-2004-03-08 08:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added more doc
-
-2004-03-08 01:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/flags.c: fixed uninitialized variable
-
-2004-03-08 00:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/apidoc, util-vserver/lib/apidoc/.cvsignore,
- util-vserver/lib/apidoc/Doxyfile.in,
- util-vserver/lib/apidoc/Makefile-files: initial checkin
-
-2004-03-08 00:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: use '--migrate-self' instead
- of '--migrate'
-
-2004-03-07 23:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: added '--migrate-self' support
-
-2004-03-07 23:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: use different files for
- 'bcap' and 'ccap' for now
-
-2004-03-07 23:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added changelog entry
-
-2004-03-07 22:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.h: fixed NONNULL annotations
-
-2004-03-07 22:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added doxygen annnotations
- added special compiler annotations
-
-2004-03-07 22:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h: added doxygen annnotations
- fixed NONNULL statements
-
-2004-03-07 22:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fmt.h: added doxygen annnotations
-
-2004-03-07 22:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added apidoc directory
-
-2004-03-07 22:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac, util-vserver/util-vserver.spec.in:
- added doxygen support
-
-2004-03-07 22:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: fixed typo in __GNUC_MINOR__
-
-2004-03-07 19:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vattribute.c: use new interface of the list2...
- functions
- implemented --bcaps and --ccaps
-
-2004-03-07 19:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c, util-vserver/src/reducecap.c: use
- new interface of the list2... functions
-
-2004-03-07 19:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: added
- .../interfaces/.../nodev option and deprecated 'only_ip'
-
-2004-03-07 19:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/flags.c: applied new interface
-
-2004-03-07 19:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added some documentation
- added some flag/caps support functions
-
-2004-03-07 19:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: renamed scaps to bcaps
-
-2004-03-07 19:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_setflags.c: added EFAULT check
-
-2004-03-07 19:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_getflags-v13.hc,
- util-vserver/lib/syscall_setflags-v13.hc: minor cosmetical
- cleanups
-
-2004-03-07 19:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/listparser.hc: interpret numbers too
-
-2004-03-07 19:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h: added the text2value functions
-
-2004-03-07 19:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/flags-v13.c,
- util-vserver/lib/flags_list-compat.c,
- util-vserver/lib/flags_list-v13.c: cleanups; use modern
- methods...
-
-2004-03-07 19:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/bcaps-v13.c, util-vserver/lib/bcaps_list-v13.c,
- util-vserver/lib/ccaps-v13.c, util-vserver/lib/ccaps_list-v13.c,
- util-vserver/lib/syscall_getccaps-v13.hc,
- util-vserver/lib/syscall_getccaps.c,
- util-vserver/lib/syscall_setccaps-v13.hc,
- util-vserver/lib/syscall_setccaps.c,
- util-vserver/lib/val2text-t2v-uint32.c,
- util-vserver/lib/val2text-t2v-uint64.c,
- util-vserver/lib/val2text-v2t-uint32.c,
- util-vserver/lib/val2text-v2t-uint64.c,
- util-vserver/lib/val2text.hc: initial checkin
-
-2004-03-07 19:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added the caps-files
- added the val2text-files
-
-2004-03-07 19:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented
- '.../interfaces/.../nodev'
-
-2004-03-06 02:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: s!Require!Requires!
-
-2004-03-06 01:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/vprocunhide: initial checkin
-
-2004-03-06 01:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/Makefile-files: modernized; use '+=' syntax
- added vprocunhide
-
-2004-03-06 01:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vuname.c: made it chainable
- added '--dir' option
-
-2004-03-06 01:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: cleanups
-
-2004-03-06 01:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: call vuname
-
-2004-03-06 01:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vprocunhide: implemented exclude/include
- syntax
- fixed exit codes
-
-2004-03-06 01:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added $_VUNAME
-
-2004-03-06 01:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documents uts/ and rlimit/
- subdirs
-
-2004-03-06 01:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/vprocunhide-files: added some files
-
-2004-03-06 01:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added vprocunhide initscript
-
-2004-03-06 01:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: modernized it a little bit; use '+='
- syntax for sysv/ now
-
-2004-03-05 22:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions,
- util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop,
- util-vserver/scripts/vserver.suexec: added support for new
- migrate feature
-
-2004-03-05 22:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- $_VCONTEXT and $_VLIMIT
-
-2004-03-05 22:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: isAvoidNamespace(): use
- 'vserver-info - FEATURE namespace' inforamtion too
-
-2004-03-05 19:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/vprocunhide-files,
- util-vserver/scripts/vprocunhide: initial checkin
-
-2004-03-05 19:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: try to read limits from dir only, when
- '--dir' was used
-
-2004-03-05 19:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/setattr.c: allow '--!...' syntax too
-
-2004-03-05 19:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.pkgmgmt: added a
- missing '\'
-
-2004-03-05 19:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added setattr
- and vprocunhide
-
-2004-03-05 19:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added vprocunhide
-
-2004-03-05 19:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented vprocunhide
- documentation
-
-2004-03-05 19:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added vprocunhide-files
-
-2004-03-05 19:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added vprocunhide
- files
-
-2004-03-05 17:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext, util-vserver/scripts/functions,
- util-vserver/scripts/rootshell, util-vserver/scripts/vapt-get,
- util-vserver/scripts/vapt-get-worker, util-vserver/scripts/vpkg,
- util-vserver/scripts/vpstree, util-vserver/scripts/vrpm,
- util-vserver/scripts/vrpm-preload,
- util-vserver/scripts/vrpm-worker, util-vserver/scripts/vserver,
- util-vserver/scripts/vserver-build,
- util-vserver/scripts/vserver-build.apt-rpm,
- util-vserver/scripts/vserver-build.debootstrap,
- util-vserver/scripts/vserver-build.functions,
- util-vserver/scripts/vserver-build.functions.pkgmgmt,
- util-vserver/scripts/vserver-build.skeleton,
- util-vserver/scripts/vserver-copy,
- util-vserver/scripts/vserver.functions,
- util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop,
- util-vserver/scripts/vservers.grabinfo.sh,
- util-vserver/scripts/vsysvwrapper, util-vserver/scripts/vtop:
- added some '>&2'
-
-2004-03-05 17:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore: added FEATURES.txt
-
-2004-03-05 17:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite,
- util-vserver/lib/testsuite/.cvsignore,
- util-vserver/lib/testsuite/Makefile-files: added parselimit
-
-2004-03-05 17:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: added '--dir' parameter
- allow command-chaining
- support limits with suffixes
- make '-c' optionally and assume current ctx by default
-
-2004-03-05 17:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/parselimit.c,
- util-vserver/lib/testsuite/parselimit.c: initial checkin
-
-2004-03-05 17:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_parseLimit(): added prototype
-
-2004-03-05 17:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added parselimit.c
-
-2004-03-05 04:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: updated; added
- vattribute and keep-ctx-alive
-
-2004-03-05 04:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: implement the vc_set_flags() part
-
-2004-03-05 04:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vattribute.c: setFlags(): implemented it
-
-2004-03-05 04:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added util-unixsock.hc
-
-2004-03-05 04:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc: fixed
- error-checking
-
-2004-03-05 04:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getprocentry-legacy.c,
- util-vserver/lib/syscall-compat.hc,
- util-vserver/lib/syscall_getflags-v13.hc,
- util-vserver/lib/syscall_getiattr.c,
- util-vserver/lib/syscall_getvxinfo-oldproc.hc,
- util-vserver/lib/syscall_getvxinfo.c,
- util-vserver/lib/syscall_setflags-v13.hc: return better
- errorcodes
-
-2004-03-05 04:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc: fixed copy&paste
- error
-
-2004-03-05 04:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/Makefile-files: added
- wrappers-socket.hc
-
-2004-03-05 04:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added vattribute and
- keep-ctx-alive
-
-2004-03-05 03:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: added 'FEATURE' tag
-
-2004-03-05 03:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: added support for external
- synchronization
-
-2004-03-05 03:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/reducecap.c: use vc_list2flag_compat() instead
- of vc_textlist2flag
-
-2004-03-05 03:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/keep-ctx-alive.c, util-vserver/src/vattribute.c:
- initial checkin
-
-2004-03-05 03:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fstool.c, util-vserver/src/fstool.h,
- util-vserver/src/setattr.c, util-vserver/src/showattr.c: added
- support for VC_IATTR_IMMUTABLE flag
-
-2004-03-05 03:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/enter-namespace.c,
- util-vserver/src/new-namespace.c: obsoleted by vnamespace
-
-2004-03-05 03:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c: use vc_list2flag_compat() instead
- of vc_textlist2flag()
-
-2004-03-05 03:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: removed new-namespace and
- enter-namespace
- added keep-ctx-alive and vattribute
- added src_legacy_* variables
-
-2004-03-05 03:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get, util-vserver/scripts/vrpm,
- util-vserver/scripts/vserver: use $_VNAMESPACE instead of
- $_NEW_NAMESPACE
-
-2004-03-05 03:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- $_VATTRIBUTE and $_VNAMESPACE
- removed $_NEW_NAMESPACE
-
-2004-03-05 03:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/chcontext: began to implement the new
- vcontext part...
-
-2004-03-05 03:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscallnr.m4: use
- $ensc_cv_path_kernelheaders instead of $kernelincludedir
-
-2004-03-05 03:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util.h: include "util-unixsock.h"
-
-2004-03-05 03:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-unify.c: use VC_IATTR_IMMUTABLE
- flag too
-
-2004-03-05 03:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-unixsock.h: initial checkin
-
-2004-03-05 03:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/flags.c: updated to new flag functions
-
-2004-03-05 03:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: use uint_leastX_t instead of uintX_t
- added -compat versions for the flag-parsers
- vc_isSupportedString(): added
-
-2004-03-05 03:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h: added utilvserver_listparser_uint*
- declarations
-
-2004-03-05 03:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fmt-32.c, util-vserver/lib/fmt-64.c,
- util-vserver/lib/fmt.h, util-vserver/lib/fmt.hc,
- util-vserver/lib/fmtx-32.c, util-vserver/lib/fmtx-64.c,
- util-vserver/lib/fmtx.hc: fixed aliased functions; they are now
- in the *.c files and will not be
- used anymore by every file including 'fmt.h'
-
-2004-03-05 03:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/flags.c, util-vserver/lib/flags_list.c: renamed
- to -compat.c
-
-2004-03-05 03:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-socket.hc,
- util-vserver/lib/flags-compat.c, util-vserver/lib/flags-v13.c,
- util-vserver/lib/flags_list-compat.c,
- util-vserver/lib/flags_list-v13.c,
- util-vserver/lib/issupportedstring.c,
- util-vserver/lib/listparser.hc,
- util-vserver/lib/listparser_uint32.c,
- util-vserver/lib/listparser_uint64.c: initial checkin
-
-2004-03-05 03:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: updated to new flags* files
- added listparser* files
- removed unused statements
-
-2004-03-05 03:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers.h: added wrappers-socket.hc
-
-2004-03-05 03:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-iosock.hc: modernized
- declarations (use WRAPPER_DECL)
- WsendAll(),WrecvAll(): added 'int *err' parameter and do not use
- perror() anymore
-
-2004-03-05 03:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: removed
- new-namespace and enter-namespace; they are obsoleted by
- vnamespace
-
-2004-03-05 03:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added $(src_legacy_*)
-
-2004-03-04 04:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscallnr.m4: requires AC_PROG_CPP
-
-2004-03-04 04:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added VC_IATTR_IMMUTABLE
-
-2004-03-04 04:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: added IATTR_IMMUTABLE
-
-2004-03-04 04:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: do not use -I $kernelincludedir
- anymore
-
-2004-03-04 03:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscallnr.m4: rewrote it...
-
-2004-03-04 03:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_cflags.m4, util-vserver/m4/ensc_dietlibc.m4,
- util-vserver/m4/ensc_dietlibc_compat.m4,
- util-vserver/m4/ensc_fpicsyscall.m4,
- util-vserver/m4/ensc_syscall.m4: use unique identifiers
-
-2004-02-27 19:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.29.197
-
-2004-02-27 19:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: fixed kernel-pkg
- installation
- fixed initscript update
-
-2004-02-27 19:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added vsched
-
-2004-02-27 19:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/fmt.c: include <string.h>
-
-2004-02-27 18:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added vsched
-
-2004-02-27 18:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chbind.c: removed unused variable
-
-2004-02-27 18:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/rpm-fake-test.c: include <string.h>
-
-2004-02-27 18:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files, util-vserver/src/vsched.c,
- util-vserver/src/vschedule.c: renamed vschedule to vsched
-
-2004-02-27 18:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added
- chcontext-compat and vschedule
-
-2004-02-27 18:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_setsched-v13.hc,
- util-vserver/lib/syscall_setsched.c,
- util-vserver/src/vschedule.c: initial checkin
-
-2004-02-27 18:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added vschedule
-
-2004-02-27 18:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added vc_set_sched declarations
-
-2004-02-27 18:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: removed 'otpions' field from
- vcmd_set_sched_v1
-
-2004-02-27 18:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added *setsched* files
-
-2004-02-27 18:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c: cleanups; applied name-change from
- 'chcontext' to 'chcontext-compat'
-
-2004-02-27 18:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: renamed 'chcontext' to
- 'chcontext-compat'
-
-2004-02-27 18:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- $_CHCONTEXT_COMPAT
- updated $_CHCONTEXT
-
-2004-02-27 18:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: isKernelAPI(): added
-
-2004-02-27 18:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/issupported.c, util-vserver/scripts/chcontext:
- initial checkin
-
-2004-02-27 18:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added chcontext wrapper
-
-2004-02-27 17:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added vc_isSupported()
- cleanups
-
-2004-02-27 17:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: updated scheduler definitions
-
-2004-02-27 17:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added issupported.c
-
-2004-02-27 17:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added
- chcontext-compat
-
-2004-02-27 04:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vcontext.c: cleanups; restructured code
-
-2004-02-27 04:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/new-namespace.c: cleanups; do not include
- "stack-start.h" anymore
-
-2004-02-27 04:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore,
- util-vserver/src/Makefile-files: added vnamespace
-
-2004-02-27 04:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_cleanupnamespace-v13.hc,
- util-vserver/lib/syscall_cleanupnamespace.c,
- util-vserver/lib/syscall_setnamespace-v13.hc,
- util-vserver/lib/syscall_setnamespace.c,
- util-vserver/src/vnamespace.c: initial checkin
-
-2004-02-27 04:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fakerunlevel.c,
- util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/save_ctxinfo.c, util-vserver/src/vrsetup.c,
- util-vserver/src/vserver-stat.c: use wrappers with detailed
- error-messages
-
-2004-02-27 04:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/fmt.c: made non-C99 compilers happy
-
-2004-02-27 04:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_set_namespace(),
- vc_cleanup_namespace(): added prototypes
-
-2004-02-27 04:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: added VCMD_set_namespace and
- VCMD_cleanup_namespace declarations
-
-2004-02-27 04:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added *setnamespace* and
- *cleanupnamespace* files
-
-2004-02-27 04:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-fcntl.hc,
- util-vserver/ensc_wrappers/wrappers-unistd.hc: added some
- wrappers with detailed error-messages
-
-2004-02-27 04:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers.h: added ENSC_DETAIL macros
-
-2004-02-27 04:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/defaults/rpm/macros: added
- /etc/rc.d/init.d/halt and /sbin/new-kernel-pkg to %_netsharedpath
-
-2004-02-27 04:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added vcontext and
- vnamespace
-
-2004-02-26 13:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util-exitlikeprocess.c: moved to lib_internal/
-
-2004-02-26 13:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util.h: removed everything an include
- <lib_internal/util.h> only
-
-2004-02-26 13:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added vcontext
-
-2004-02-26 13:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c,
- util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/rpm-fake.c: use VC_DYNAMIC_XID instead of
- VC_RANDCTX
-
-2004-02-26 13:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_createcontext-v13.hc,
- util-vserver/lib/syscall_createcontext.c,
- util-vserver/lib/syscall_getflags-v13.hc,
- util-vserver/lib/syscall_getflags.c,
- util-vserver/lib/syscall_migratecontext-v13.hc,
- util-vserver/lib/syscall_migratecontext.c,
- util-vserver/lib/syscall_setflags-v13.hc,
- util-vserver/lib/syscall_setflags.c,
- util-vserver/lib_internal/util-cast.h,
- util-vserver/lib_internal/util-commonstrings.h,
- util-vserver/lib_internal/util-declarecmd.h,
- util-vserver/lib_internal/util-dimof.h,
- util-vserver/lib_internal/util-exitlikeprocess.c,
- util-vserver/lib_internal/util-exitlikeprocess.h,
- util-vserver/lib_internal/util.h, util-vserver/src/vcontext.c:
- initial checkin
-
-2004-02-26 13:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/Makefile-files: removed
- 'util-exitlikeprocess.c'; link against libinternal.a now
-
-2004-02-26 13:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added vcontext
- removed 'util-exitlikeprocess.c'; link against libinternal.a now
-
-2004-02-26 13:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: s!/vservers!$DEFAULT_VSERVERDIR!
- (reported in IRC by broo)
-
-2004-02-26 13:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/util-mem.h: include <stdlib.h>
-
-2004-02-26 13:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added lots of util-*
- headers
- added util-exitlikeprocess
-
-2004-02-26 13:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: * vc_create_context(),
- vc_migrate_context(), vc_[sg]et_flags(): added
- prototypes plus structures
- * use VC_DYNAMIC_XID instead of VC_RANDCTX
-
-2004-02-26 13:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: added CALL_VC_V13A macro
- (for API >= 0x00010012)
- use VC_DYNAMIC_XID instead of VC_RANDCTX
-
-2004-02-26 13:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: added create+migrate+flags+caps
- declarations
-
-2004-02-26 13:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added createcontext +
- migratecontext + [sg]etflags files
-
-2004-02-26 12:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-vserver.hc:
- Evc_create_context(), Evc_migrate_context(): added
- use WRAPPER_DECL instead of UNUSED
-
-2004-02-25 11:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: enhanced output
- added -nd options
- allow literal limits
- assume '-H' by default
-
-2004-02-25 11:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite,
- util-vserver/lib/testsuite/.cvsignore: added 'fmt'
-
-2004-02-25 11:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util.h: include util-perror.h
-
-2004-02-25 11:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c, util-vserver/src/secure-mount.c:
- use more verbose perror()
-
-2004-02-25 11:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/fmt.c,
- util-vserver/lib_internal/util-perror.h: initial checkin
-
-2004-02-25 11:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: added better namespace
- supportc
-
-2004-02-25 11:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/testsuite/Makefile-files: added fmt.c
-
-2004-02-25 11:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fmt.h: fmt_[u]int{32,64}(): added
-
-2004-02-20 23:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/flags.c: cosmetical cleanups
-
-2004-02-20 23:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/flags.c, util-vserver/lib/vserver.h: added
- NAMESPACE flag
-
-2004-02-20 21:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: install enter-namespace into
- $(sbindir) instead of $(pkglibdir)
-
-2004-02-20 21:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/new-namespace.c: added missing '#include
- <errno.h>'
-
-2004-02-20 20:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.29.196
-
-2004-02-20 20:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added
- enter-namespace
-
-2004-02-20 20:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst,
- util-vserver/src/Makefile-files: added enter-namespace
-
-2004-02-20 20:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/enter-namespace.c: initial checkin
-
-2004-02-20 20:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: merged with 0.29.2
-
-2004-02-20 19:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: changed logic to skip entries without
- chance for success
-
-2004-02-20 19:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: cleanups
-
-2004-02-20 19:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_rlimit-v11.hc: vc_get_rlimit_mask_v11():
- use correct datastructure
-
-2004-02-20 17:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files, util-vserver/lib/virtual.h,
- util-vserver/lib/vserver.h: added the enter-namespace stuff
-
-2004-02-20 17:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_enternamespace-v13.hc,
- util-vserver/lib/syscall_enternamespace.c: initial checkin
-
-2004-02-20 17:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers_handler.hc: added support for
- more extensive output
-
-2004-02-20 17:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: moved vserver-info
- into core
-
-2004-02-20 17:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: VC_ENABLE_API_V13():
- incremented needed API-version
-
-2004-02-20 17:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_getvxinfo-v13.hc: vc_get_vx_info_v13():
- handle xid==0 and xid==1 case manually
-
-2004-02-20 17:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: cleanup output in error-case
-
-2004-02-20 17:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/stack-start.h: fixed begin of STACK_START for
- non-growing stacks
-
-2004-02-20 17:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fakerunlevel.c: use more extensive errormessages
- use <wrappers.h>
-
-2004-02-20 17:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_getiattr-v13.hc,
- util-vserver/lib/fscompat_getiattr.c,
- util-vserver/lib/fscompat_setiattr-v13.hc,
- util-vserver/lib/fscompat_setiattr.c: obsoleted
-
-2004-02-20 16:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c, util-vserver/src/clearenv.c,
- util-vserver/src/exec-cd.c, util-vserver/src/exec-ulimit.c,
- util-vserver/src/ifspec.c, util-vserver/src/listdevip.c,
- util-vserver/src/new-namespace.c, util-vserver/src/reducecap.c,
- util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/rpm-fake.c, util-vserver/src/save_ctxinfo.c,
- util-vserver/src/secure-mount.c, util-vserver/src/vkill.c: do not
- do the lo-check anymore
-
-2004-02-20 16:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chbind.c: use more extensive errormessages
- do not do the lo-check anymore
-
-2004-02-20 02:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: fix copy&paste error when giving
- out initpid
-
-2004-02-19 22:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS: version 0.29.195
-
-2004-02-19 22:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: added SYSINFO command
- internal cleanups
-
-2004-02-19 22:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_e2fscheck.m4: tell correct packagename for
- Debian's e2fsprogs-devel
- tell packagename for Mandrake
-
-2004-02-19 22:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chxid.c, util-vserver/src/fstool.c,
- util-vserver/src/fstool.h, util-vserver/src/lsxid.c,
- util-vserver/src/setattr.c, util-vserver/src/showattr.c: applied
- new iattr interface and changed some internal functions
-
-2004-02-19 22:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-unify.c,
- util-vserver/lib_internal/util-safechdir.c: applied new iattr
- interface
-
-2004-02-19 22:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: * changed iattr interface
- * removed *iattr_compat() functions; functionality is covered by
- new
- iattr interface already
-
-2004-02-19 22:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: added new iattr definitions
-
-2004-02-19 22:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_getiattr-v13.hc,
- util-vserver/lib/syscall_getiattr.c,
- util-vserver/lib/syscall_setiattr-v13.hc,
- util-vserver/lib/syscall_setiattr.c: implemented new iattr
- interface
-
-2004-02-19 22:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-compat.hc: vc_set_ipv4root_compat():
- fixed off-by-one error while checking number
- of allowed IPs
-
-2004-02-19 22:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_getiattr-fscompat.hc,
- util-vserver/lib/fscompat_setiattr-fscompat.hc,
- util-vserver/lib/syscall_getiattr-fscompat.hc,
- util-vserver/lib/syscall_setiattr-fscompat.hc: moved fscompat*
- files to *iattr-fscompat* and applied the changed iattr interface
-
-2004-02-19 22:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/createskeleton-full.hc: use new iattr interface
-
-2004-02-19 22:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: removed the fscompat* files
- added *iattr-fscompat files
-
-2004-02-19 22:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added FEATURES.txt
- and vcopy
-
-2004-02-19 22:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: create FEATURES.txt and rearranged
- code a little bit
-
-2004-02-19 22:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added FEATURES.txt
-
-2004-02-18 04:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added vc_createSkeleton() plus
- defines
-
-2004-02-18 04:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_setiattr-fscompat.hc:
- vc_set_iattr_compat_fscompat(): fixed usage of the mode argument
-
-2004-02-18 04:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-unify.c,
- util-vserver/lib_internal/unify.h: Unify_deUnify(): fixed
- parameters
- Unify_copy(), Unify_setTime(): added prototype
-
-2004-02-18 04:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/unify-deunify.c: fixed parameters
-
-2004-02-18 04:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/matchlist.h: MatchList_printId(): added
- prototype
-
-2004-02-18 04:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal/Makefile-files: added unify* and util-*
- files
-
-2004-02-18 04:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.c, util-vserver/src/vunify.h: cleanups;
- outsourced a lot to libinternal.a
-
-2004-02-18 04:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util.h: cleanups; outsourced some macros/inlines
- to libinternal.a
-
-2004-02-18 04:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added vcopy
- link the fstool programs against libinternal.a
- removed vserver-visitdir
-
-2004-02-18 04:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added vcopy
-
-2004-02-18 04:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util-safechdir.c: moved into libinternal.a
-
-2004-02-18 04:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/createskeleton-full.hc,
- util-vserver/lib/createskeleton-short.hc,
- util-vserver/lib/createskeleton.c,
- util-vserver/lib_internal/matchlist-printid.c,
- util-vserver/lib_internal/unify-copy.c,
- util-vserver/lib_internal/unify-settime.c,
- util-vserver/lib_internal/util-dotfile.h,
- util-vserver/lib_internal/util-safechdir.c,
- util-vserver/lib_internal/util-safechdir.h,
- util-vserver/src/vcopy-init.hc, util-vserver/src/vcopy.c,
- util-vserver/src/vserver-visitdir.hc: initial checkin
-
-2004-02-18 04:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-io.hc: rewrote the W*all()
- function to accept an additional argument holding
- the error, instead of giving out the error
-
-2004-02-18 04:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added createskeleton* files
-
-2004-02-18 04:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/pathconfig.h.pathsubst: added DEFAULT_PKGSTATEDIR
-
-2004-02-18 04:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am, util-vserver/configure.ac: do not
- redefine 'LIBTOOL'; the '--tag' causes problems on install
-
-2004-02-18 04:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: added PURE
-
-2004-02-17 19:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: call ENSC_DIETLIBC_NEED_COMPAT to
- determine if '-lcompat' is needed for dietlibc
-
-2004-02-17 19:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: define $(VSERVER_LDADDS)
- generalized some LIBTOOL stuff
- do not install libinternal.a anymore
-
-2004-02-17 19:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests/Makefile-files: use $(VSERVER_LDADDS) instead
- of lib/libvserver.la to use '-lcompat' on purpose
-
-2004-02-17 19:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: _pkgMountRPM(): do not mount
- /proc when it is already mounted
-
-2004-02-17 19:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: rearranged inclusion of
- <sys/socket.h> to fix compilation problems
- with fc1.90
-
-2004-02-17 19:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rebootmgr.c: include <limits.h>
-
-2004-02-17 19:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: use $(VSERVER_LDADDS) instead of
- lib/libvserver.la to use '-lcompat' on purpose
- fixed capchroot compilation
-
-2004-02-17 19:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc_compat.m4: initial checkin
-
-2004-02-17 19:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/testsuite/test1.c,
- util-vserver/src/testsuite/vunify-functest.c: make non-C99
- compilers happy
-
-2004-02-17 02:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS: version 0.29.192
-
-2004-02-17 02:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added missing backslash
-
-2004-02-17 02:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/Makefile-files,
- util-vserver/src/testsuite/vunify-functest.c,
- util-vserver/src/vunify.h: use new lib_internal/
-
-2004-02-17 02:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-init.hc: moved most function into
- lib_internal/
-
-2004-02-17 02:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.c: use new lib_internal
-
-2004-02-17 02:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util.h: moved some functions/macros into
- lib_internal/util-*
-
-2004-02-17 02:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: removed vunify-* files which
- went into lib_internal
-
-2004-02-17 02:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added lib_internal/ files
-
-2004-02-17 02:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-compare.hc,
- util-vserver/src/vunify-debug.c, util-vserver/src/vunify-doit.hc,
- util-vserver/src/vunify-matchlist.c,
- util-vserver/src/vunify-matchlist.h: moved functionality into
- lib_internal library
-
-2004-02-17 02:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib_internal,
- util-vserver/lib_internal/Makefile-files,
- util-vserver/lib_internal/matchlist-appendfiles.c,
- util-vserver/lib_internal/matchlist-compare.c,
- util-vserver/lib_internal/matchlist-destroy.c,
- util-vserver/lib_internal/matchlist-init.c,
- util-vserver/lib_internal/matchlist-initbyvserver.c,
- util-vserver/lib_internal/matchlist-initmanually.c,
- util-vserver/lib_internal/matchlist-initrefserverlist.c,
- util-vserver/lib_internal/matchlist.h,
- util-vserver/lib_internal/pathinfo-append.c,
- util-vserver/lib_internal/pathinfo-test.c,
- util-vserver/lib_internal/pathinfo.h,
- util-vserver/lib_internal/string-destroy.c,
- util-vserver/lib_internal/string.h,
- util-vserver/lib_internal/string.hc,
- util-vserver/lib_internal/unify-deunify.c,
- util-vserver/lib_internal/unify-unify.c,
- util-vserver/lib_internal/unify.h,
- util-vserver/lib_internal/util-io.h,
- util-vserver/lib_internal/util-mem.h: initial checkin
-
-2004-02-17 02:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-unistd.hc,
- util-vserver/ensc_wrappers/wrappers_handler.hc: fixed some
- 'noreturn' warnings for the execv() functions
-
-2004-02-16 19:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/make-manifest: ignore lines beginning with
- '#'
-
-2004-02-16 19:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: set
- @ENSC_HAVE_*_COMPILER_TRUE@ tags
-
-2004-02-16 19:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/testsuite/test1.c: #undef NDEBUG
-
-2004-02-16 19:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: use $_READLINK
- mount /proc when doing pkg-management
-
-2004-02-16 19:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added readlink
-
-2004-02-16 19:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vrpm-preload: made rpm-flavor configurable
- (e.g. 'i' for install (default), 'q' for
- query, 'd' for database)
-
-2004-02-16 19:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: register generated
- files so that they
- can be cleaned up when needed
-
-2004-02-16 19:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm: call rpm.initDB()
-
-2004-02-16 19:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.rpm: rpm.initDB():
- added
-
-2004-02-16 19:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: added --initstyle
- support (-> /etc/vservers/.../apps/init/style)
-
-2004-02-16 19:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chbind.c: refined test-routine to work in
- vservers without 'lo' interface
-
-2004-02-16 19:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: define MS_REC when needed
-
-2004-02-16 19:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac, util-vserver/src/rpm-fake-resolver.c:
- added big, fat warning when not using dietlibc
-
-2004-02-16 18:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added ENSC_HAVE_*_COMPILER_* to
- pathsubst-rules
-
-2004-02-14 01:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: use isAvoidNamespace() from
- main-functions file
-
-2004-02-14 01:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions,
- util-vserver/scripts/vserver.functions: moved isAvoidNamespace()
- into main-functions file
-
-2004-02-14 01:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscallnr.m4: fixed auto-case
- improved message
-
-2004-02-14 01:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_kerneldir.m4: ENSC_KERNEL_HEADERS: made
- argument optionally
-
-2004-02-14 01:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added clearenv
-
-2004-02-14 01:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: use ENSC_SYSCALLNR()
-
-2004-02-13 23:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: use results from
- ENSC_SYSCALLNR
-
-2004-02-13 23:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscallnr.m4: initial checkin
-
-2004-02-11 23:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/clearenv.c: use VSERVER_DECLARE_CMD
-
-2004-02-11 23:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added clearenv
-
-2004-02-11 23:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: use clearenv
-
-2004-02-11 23:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: made namespace stuff
- configurable at a global place
-
-2004-02-11 23:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vrpm-preload: give more rights... (same like
- at --secure)
-
-2004-02-11 23:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst,
- util-vserver/src/Makefile-files: added clearenv
-
-2004-02-11 23:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/clearenv.c: initial checkin
-
-2004-02-10 17:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chxid.c, util-vserver/src/setattr.c: handle
- dot-files by default; it does not make sense to use a special
- '-a' flag for the set-operations
-
-2004-02-10 17:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: version 0.28.200
-
-2004-02-10 17:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: recognize 'rbind' in fstab
- use internal mount(2) on MOVE too
-
-2004-02-10 14:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver,
- util-vserver/scripts/vserver.functions,
- util-vserver/scripts/vserver.start: implemented CLONE_NS and
- --rbind mounting
-
-2004-02-10 14:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: implemented '--rbind'
-
-2004-02-10 12:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/testsuite,
- util-vserver/ensc_vector/testsuite/.cvsignore,
- util-vserver/lib/testsuite,
- util-vserver/lib/testsuite/.cvsignore: initial checkin
-
-2004-02-10 12:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/flags.c, util-vserver/lib/testsuite/flags.c:
- s!init!fakeinit!
-
-2004-02-10 12:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: version 0.28.199
-
-2004-02-10 12:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: moved the 'chattr' into the
- right %post scriptlet
-
-2004-02-10 02:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: version 0.28.198
-
-2004-02-09 23:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/make-manifest,
- util-vserver/contrib/manifest.dat.pathsubst: moved *.so.* files
- from -core to -lib
-
-2004-02-09 23:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added -lib subpackage
- moved *.so.* files from -core to -lib
- removed the '%exclude ...vrpm.8'
- added a 'make check'
-
-2004-02-09 23:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite,
- util-vserver/src/testsuite/.cvsignore: initial checkin
-
-2004-02-09 23:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_wrappers/wrappers-unistd.hc: Eexecvp(): added
- added some 'NORETURN' specifiers
-
-2004-02-09 23:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added lib/testsuite
-
-2004-02-09 23:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/vunify-test.sh: redirect output to
- /dev/null
-
-2004-02-09 23:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/rpm-fake-test.c: fixed compilation
- warnings
-
-2004-02-09 23:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/chcontext-test.c: added explicite
- 'return' for non-C99 compilers
-
-2004-02-09 23:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/Makefile-files: added chbind-test
-
-2004-02-09 23:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/man/Makefile-files: renoved vrpm.8 for now
-
-2004-02-09 23:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_text2cap(): take 'unsigned int'
- instead of 'int' argument
- vc_textlist2flag(), vc_text2flag(), vc_hiflag2text(): added
- prototypes
-
-2004-02-09 23:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/capabilities.c: vc_text2cap(): take 'unsigned
- int' instead of 'int' argument
-
-2004-02-09 23:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added flags* files
- added testsuite + -programs
-
-2004-02-09 23:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c: setFlags(): use vc_textlist2flag()
- function
- rearranged code to avoid unremovable zombie processes
-
-2004-02-09 23:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chbind.c, util-vserver/src/reducecap.c: rewrote
- it
-
-2004-02-09 23:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: made reducecap & chbind native
- dietlibc programs
-
-2004-02-09 23:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/flags.c, util-vserver/lib/flags_list.c,
- util-vserver/lib/testsuite,
- util-vserver/lib/testsuite/Makefile-files,
- util-vserver/lib/testsuite/flags.c,
- util-vserver/src/testsuite/chbind-test.c: initial checkin
-
-2004-02-06 22:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added sys_clone.h
-
-2004-02-06 22:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added 'chattr -t /vservers' +
- needed Requires:
-
-2004-02-06 22:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: call 'chattr -t' on
- newly create vserverdirs
- cleanups; parenthesize case-expressions
-
-2004-02-06 21:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util.h: exitLikeProcess(): added NORETURN
- attribute to prototype
-
-2004-02-06 21:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: cleanups; use sys_clone()
-
-2004-02-06 21:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/new-namespace.c: cleanups; modernized it
-
-2004-02-06 21:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: link new-namespace against
- util-exitlikeprocess
- cleanups
-
-2004-02-06 21:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/sys_clone.h: initial checkin
-
-2004-02-06 18:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/Makefile-files: do not call
- vunify-test when no C99 compiler is available
-
-2004-02-06 17:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/testsuite,
- util-vserver/ensc_vector/testsuite/Makefile-files,
- util-vserver/ensc_vector/testsuite/test1.c: initial checkin
-
-2004-02-06 17:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/vunify-test.sh: use '-n' flag
-
-2004-02-06 17:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vutil.cc: minor cosmetical changes
-
-2004-02-06 17:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-init.hc: initModeManually(): added
- missing strdup()
-
-2004-02-06 17:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am,
- util-vserver/ensc_vector/Makefile-files: added ensc_vector
- testsuite
-
-2004-02-06 16:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector/vector-insert.c: fixed it
-
-2004-02-06 16:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: use ensc_vector
- cleanups
-
-2004-02-06 16:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/lsxid.c: use ensc_vector to cache xid->name
- mappings
-
-2004-02-06 16:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: link vserver-stat against
- libensc_vector.a
-
-2004-02-06 15:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: enumerated possible resources
-
-2004-02-06 15:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chxid.c: fixed do-display-dir behavior
-
-2004-02-06 14:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: _generateFlagOptions():
- fixed a case expression; formerly x"foo" ==
- foo checks which would never succeed
-
-2004-02-06 14:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c, util-vserver/src/chroot-cat.c,
- util-vserver/src/chroot-rm.c, util-vserver/src/exec-cd.c,
- util-vserver/src/exec-ulimit.c, util-vserver/src/fstool.c,
- util-vserver/src/new-namespace.c, util-vserver/src/pipe-sync.c,
- util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/save_ctxinfo.c,
- util-vserver/src/testsuite/rpm-fake-test.c,
- util-vserver/src/vps.c, util-vserver/src/vrsetup.c,
- util-vserver/src/vserver-info.c, util-vserver/src/vserver-stat.c,
- util-vserver/src/vunify-doit.hc, util-vserver/src/vunify-init.hc,
- util-vserver/src/vunify-matchlist.c, util-vserver/src/vunify.c:
- use new ensc_wrappers/ headers
-
-2004-02-06 14:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: removed wrappers-*
- link lsxid against libensc_vector.a
-
-2004-02-06 14:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers-dirent.h,
- util-vserver/src/wrappers-io.h,
- util-vserver/src/wrappers-vserver.h, util-vserver/src/wrappers.h:
- moved and generalized into an own /ensc_wrappers subdir
-
-2004-02-06 14:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/ensc_vector,
- util-vserver/ensc_vector/Makefile-files,
- util-vserver/ensc_vector/vector-clear.c,
- util-vserver/ensc_vector/vector-free.c,
- util-vserver/ensc_vector/vector-init.c,
- util-vserver/ensc_vector/vector-insert.c,
- util-vserver/ensc_vector/vector-internal.h,
- util-vserver/ensc_vector/vector-popback.c,
- util-vserver/ensc_vector/vector-pushback.c,
- util-vserver/ensc_vector/vector-resize.c,
- util-vserver/ensc_vector/vector-resizeinternal.hc,
- util-vserver/ensc_vector/vector-search.c,
- util-vserver/ensc_vector/vector-sort.c,
- util-vserver/ensc_vector/vector-unique.c,
- util-vserver/ensc_vector/vector.h,
- util-vserver/ensc_vector/vector.hc, util-vserver/ensc_wrappers,
- util-vserver/ensc_wrappers/Makefile-files,
- util-vserver/ensc_wrappers/wrappers-clone.hc,
- util-vserver/ensc_wrappers/wrappers-dirent.hc,
- util-vserver/ensc_wrappers/wrappers-fcntl.hc,
- util-vserver/ensc_wrappers/wrappers-io.hc,
- util-vserver/ensc_wrappers/wrappers-ioctl.hc,
- util-vserver/ensc_wrappers/wrappers-iosock.hc,
- util-vserver/ensc_wrappers/wrappers-mount.hc,
- util-vserver/ensc_wrappers/wrappers-pivot.hc,
- util-vserver/ensc_wrappers/wrappers-resource.hc,
- util-vserver/ensc_wrappers/wrappers-stdlib.hc,
- util-vserver/ensc_wrappers/wrappers-unistd.hc,
- util-vserver/ensc_wrappers/wrappers-vserver.hc,
- util-vserver/ensc_wrappers/wrappers-wait.hc,
- util-vserver/ensc_wrappers/wrappers.h,
- util-vserver/ensc_wrappers/wrappers_handler.hc: initial checkin
-
-2004-02-06 14:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added ensc_vector/ & ensc_wrappers/
- subdirs and files
-
-2004-02-05 22:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/setattr.c: documented --barrier
- fixed do-display-dir behavior
-
-2004-02-05 04:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: added another path for
- the template mtab file
-
-2004-02-05 04:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.28.195
-
-2004-02-05 04:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/defaults/apt.conf: initial checkin
-
-2004-02-05 03:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added default apt.conf
-
-2004-02-05 03:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented default apt.conf
-
-2004-02-05 03:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-legacy.hc: minor code cleanups
- added a missing '#ifdef ENSC_SYSCALL_TRADITIONAL'
-
-2004-02-05 03:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscall.m4: enhanced check by using kernel
- headers
-
-2004-02-05 03:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.apt: added default
- apt.conf/vendors.conf files
-
-2004-02-05 03:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c: use sethostname(2)/setdomainname(2)
- again...
-
-2004-02-04 23:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: use ENSC_SYSCALL
- enhanced diagnostic output
-
-2004-02-04 23:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-legacy.hc,
- util-vserver/lib/vserver-internal.h: use ENSC_SYSCALL_TRADITIONAL
-
-2004-02-04 23:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall.c: cleanups; do not include "compat.h"
- anymore explicitly
-
-2004-02-04 23:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added @WGET@ substitution
-
-2004-02-04 21:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_syscall.m4: initial checkin
-
-2004-02-04 21:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vpkg: implemented Debian support
-
-2004-02-04 21:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: cleanups
- added '--silent' option
-
-2004-02-04 21:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-init.hc, util-vserver/src/vunify.c: minor
- cleanups
-
-2004-02-04 03:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_getiattr-v13.hc: fixed 'xid' parameter
- transmission
-
-2004-02-04 03:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS: version 0.28.193
-
-2004-02-04 03:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added check for wget
- version 0.28.193
-
-2004-02-04 03:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added some (Build)Requires:
-
-2004-02-04 03:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib/manifest.dat.pathsubst: added debootstrap
- files
-
-2004-02-04 03:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented debootstrap
- configuration
-
-2004-02-04 03:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.debootstrap: fixed path of
- default-uri file
-
-2004-02-04 02:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/debootstrap.uri: initial checkin
-
-2004-02-04 02:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added debootstrap.uri
-
-2004-02-04 02:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: use
- $PKGLIBDEFAULTDIRc
-
-2004-02-04 02:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm,
- util-vserver/scripts/vserver-build.functions,
- util-vserver/scripts/vserver-build.skeleton: cleanups; use
- 'base.' namespace
-
-2004-02-04 02:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build: added debootstrap
-
-2004-02-04 02:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vpkg: added basic support for Debian
-
-2004-02-04 02:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added $_WGET
-
-2004-02-04 02:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added debootstrap and
- pkgmgmt files
-
-2004-02-04 02:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.debootstrap: initial checkin
-
-2004-02-03 22:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.28.192
-
-2004-02-03 22:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added 'vuname'
-
-2004-02-03 22:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/contrib, util-vserver/contrib/.cvsignore,
- util-vserver/contrib/Makefile-files,
- util-vserver/contrib/make-manifest,
- util-vserver/contrib/manifest.dat.pathsubst: initial checkin
-
-2004-02-03 21:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added more details to the final
- summary
-
-2004-02-03 21:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added misc/fstab
-
-2004-02-03 21:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm,
- util-vserver/scripts/vserver-build.functions,
- util-vserver/scripts/vserver-build.functions.apt,
- util-vserver/scripts/vserver-build.functions.rpm: splitted some
- functions into a separate vserver-build.functions.pkgmgmt file
- use XXX.yyy namespace-style notation
-
-2004-02-03 21:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/fstab,
- util-vserver/scripts/vserver-build.functions.pkgmgmt,
- util-vserver/scripts/vserver-build.skeleton: initial checkin
-
-2004-02-03 21:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: allow to configure
- fstab-file
-
-2004-02-03 21:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build: added skeleton support
- fixed help message
-
-2004-02-03 21:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: added '--debug' option
-
-2004-02-03 21:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- $_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT
-
-2004-02-03 21:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added vserver-build.skeleton
-
-2004-02-03 21:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vkill.c: cleanups; use modern interfaces
-
-2004-02-03 21:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util.h: VSERVER_DECLARE_CMD macro: added
-
-2004-02-03 21:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added vuname
-
-2004-02-03 21:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/Makefile-files: added workaround for
- automake bug
-
-2004-02-03 21:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vuname.c: initial checkin
-
-2004-02-03 12:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: use ENSC_C99COMPILER
- give out summary at end of ./configure
-
-2004-02-03 12:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: * added support for
- ENSC_HAVE_C99_COMPILER and conditionalized build
- of 'vunify'
- * renamed *_CXX_X_* variables to *_CXX_*
-
-2004-02-03 12:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.cc: removed since rewritten in C
-
-2004-02-03 12:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: use 'yes' instead of '1'
-
-2004-02-03 12:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_cxxcompiler.m4: added ENSC_C99COMPILER
- added warning-messages
-
-2004-02-03 12:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_getvhiname-v13.hc,
- util-vserver/lib/syscall_setvhiname-v13.hc: #include <string.h>
-
-2004-02-02 19:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/compatibility.xml: added note about chcontext
- rewrite
-
-2004-02-02 19:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added support for olduts API
-
-2004-02-02 19:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: substitute @PACKAGE@ too
-
-2004-02-02 19:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/Makefile-files: added chcontext-test.c
-
-2004-02-02 19:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/chcontext-test.c: initial checkin
-
-2004-02-02 19:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers.h: added Esetsid()
-
-2004-02-02 19:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers-vserver.h: return xid_t instead of void
-
-2004-02-02 19:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: cleanups
- added missing '\n' in error-msg
-
-2004-02-02 19:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: added UTS tag
-
-2004-02-02 19:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/reducecap.c: cleanups in the vc_new_s_context()
- call
-
-2004-02-02 19:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c: rewrote and enhanced it
-
-2004-02-02 19:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: made chcontext a dietlibc
- program and updated its SOURCES
-
-2004-02-02 19:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: return xid_t on vc_new_s_context()
- added VHOST/vhi functions and types
-
-2004-02-02 18:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: cleanups
- added CALL_VC_OLDUTS()
- added VHI_USER2KERNEL/VHI_KERNEL2USER() wrappers
-
-2004-02-02 18:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: added VHOST support
-
-2004-02-02 18:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_gettaskxid-oldproc.hc,
- util-vserver/lib/syscall_getvxinfo-oldproc.hc: renamed *_X to
- *_oldproc
-
-2004-02-02 18:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-compat.hc,
- util-vserver/lib/syscall-legacy.hc, util-vserver/lib/syscall.c:
- fixed vc_new_s_context() to return the context instead of 0/1
-
-2004-02-02 18:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_getiattr-v13.hc,
- util-vserver/lib/fscompat_setiattr-v13.hc,
- util-vserver/lib/syscall_getiattr-v13.hc,
- util-vserver/lib/syscall_getvxinfo-v13.hc,
- util-vserver/lib/syscall_kill-v11.hc,
- util-vserver/lib/syscall_setiattr-v13.hc: use CTX_USER2KERNEL to
- wrap xid
-
-2004-02-02 18:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/capabilities.c: allow both 'CAP_xxx' and 'xxx'
-
-2004-02-02 18:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added *vhiname* files
-
-2004-02-02 18:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_getvhiname-olduts.hc,
- util-vserver/lib/syscall_getvhiname-v13.hc,
- util-vserver/lib/syscall_getvhiname.c,
- util-vserver/lib/syscall_setvhiname-olduts.hc,
- util-vserver/lib/syscall_setvhiname-v13.hc,
- util-vserver/lib/syscall_setvhiname.c: initial checkin
-
-2004-01-29 11:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc, util-vserver/doc/.cvsignore: initial checkin
-
-2004-01-29 11:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS: version 0.28.190
-
-2004-01-29 11:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: cleanups; use $(SED) instead of sed
- fix $pkglibdir in install-data-hook
- put some hooks into own targets
-
-2004-01-29 11:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added tests for sed and cmp
- outsourced ext2fs test (merged from 0.28)
-
-2004-01-29 11:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: fixed insert-into-list function
- give out warning when vc_get_task_xid() fails
-
-2004-01-29 11:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: use DIM_OF() macro
- added APIVER tag
- fixed help message
-
-2004-01-29 11:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util.h: added DIM_OF() macro
-
-2004-01-29 11:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added vrsetup
-
-2004-01-29 11:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/legacy/distrib-info,
- util-vserver/scripts/legacy/vserver,
- util-vserver/scripts/legacy/vserverkillall,
- util-vserver/scripts/rootshell, util-vserver/scripts/vapt-get,
- util-vserver/scripts/vapt-get-worker, util-vserver/scripts/vpkg,
- util-vserver/scripts/vpstree, util-vserver/scripts/vrpm,
- util-vserver/scripts/vrpm-preload,
- util-vserver/scripts/vrpm-worker, util-vserver/scripts/vserver,
- util-vserver/scripts/vserver-build,
- util-vserver/scripts/vserver-copy,
- util-vserver/scripts/vservers.grabinfo.sh,
- util-vserver/scripts/vsysvwrapper, util-vserver/scripts/vtop:
- fixed/changed path-detection for $UTIL_VSERVER_VARS
-
-2004-01-29 11:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: cleanups
- do not install util-vserver-vars in SBINDIR anymore
-
-2004-01-29 11:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_e2fscheck.m4: initial checkin
-
-2004-01-29 11:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/ext2fs.h, util-vserver/lib/getversion.c,
- util-vserver/lib/vserver.h: merged with 0.28
-
-2004-01-23 21:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/Makefile-files: added some files to doc_DAT
-
-2004-01-23 20:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: version 0.27.199
- added check for xsltproc
-
-2004-01-23 20:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS: version 0.27.199
-
-2004-01-23 20:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: added ENSC_FIX_IOCTL()
-
-2004-01-23 20:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added $(doc_DAT)
-
-2004-01-23 20:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/Makefile-files: added compat-doc
-
-2004-01-23 20:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/compat-xhtml.xsl,
- util-vserver/doc/compatibility.dtd,
- util-vserver/doc/compatibility.xml: initial checkin
-
-2004-01-23 20:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/ioctl-getext2flags.hc,
- util-vserver/lib/ioctl-getfilecontext.hc,
- util-vserver/lib/ioctl-setext2flags.hc,
- util-vserver/lib/ioctl-setfilecontext.hc,
- util-vserver/lib/ioctl-setxflg.hc: use ENSC_FIX_IOCTL() to fix
- dietlibc's ioctl() return values
-
-2004-01-22 21:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getversion-internal.hc,
- util-vserver/lib/syscall-compat.hc,
- util-vserver/lib/syscall_getiattr-v13.hc,
- util-vserver/lib/syscall_gettaskxid-v13.hc,
- util-vserver/lib/syscall_getvxinfo-v13.hc,
- util-vserver/lib/syscall_kill-v11.hc,
- util-vserver/lib/syscall_rlimit-v11.hc,
- util-vserver/lib/syscall_setiattr-v13.hc: use the VCMD_* macros
- instead of the VC_CMD(...) macros
-
-2004-01-22 15:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.27.198
-
-2004-01-22 15:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vrsetup.c: fixed copyright date
-
-2004-01-22 14:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers.h: added Eioctl() wrapper
-
-2004-01-22 14:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added vrsetup
-
-2004-01-22 14:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vrsetup.c: initial checkin
-
-2004-01-22 13:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-doit.hc: * provide st_mode at
- vc_set_iattr_compat() call
-
-2004-01-22 13:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/lsxid.c, util-vserver/src/showattr.c: * provide
- st_mode at vc_set_iattr_compat() call
- * do not stop on non-regular files; vc_set_iattr_compat() handles
- this
- already
-
-2004-01-22 13:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/setattr.c: * removed the race-check; this is
- done by vc_set_iattr_compat() already
- * provide st_mode at vc_set_iattr_compat() call
- * do not stop on non-regular files; vc_set_iattr_compat() handles
- this
- already
- * moved setFlags() code into handleFile()
- * added 'iunlink' option
-
-2004-01-22 13:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chxid.c: * removed the race-check; this is done
- by vc_set_iattr_compat() already
- * provide st_mode at vc_set_iattr_compat() call
- * do not stop on non-regular files; vc_set_iattr_compat() handles
- this
- already
- * moved setFile() code into handleFile()
-
-2004-01-22 13:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: removed 'vunify' from list of
- C++ files
-
-2004-01-22 13:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_gettaskxid-v13.hc: fixed call
-
-2004-01-22 13:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/ioctl-getext2flags.hc,
- util-vserver/lib/ioctl-getfilecontext.hc,
- util-vserver/lib/ioctl-getxflg.hc,
- util-vserver/lib/ioctl-setext2flags.hc,
- util-vserver/lib/ioctl-setfilecontext.hc,
- util-vserver/lib/ioctl-setxflg.hc: when ioctl() returns a value
- <-1, assign errno manually and return -1
-
-2004-01-22 13:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_getiattr-v13.hc,
- util-vserver/lib/syscall_setiattr-v13.hc: updated to changed API;
- removed 'dev' field from 'struct vcmd_ctx_iattr_v0'
-
-2004-01-22 13:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: updated; removed 'dev' field from
- 'struct vcmd_ctx_iattr_v0'
-
-2004-01-22 13:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: CALL_VC(): return ENOSYS in
- errorcase
-
-2004-01-22 13:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: * vc_[sg]et_iattr_compat(): added
- additional 'mode' parameter to avoid
- an additional 'lstat'
-
-2004-01-22 13:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_getiattr.c,
- util-vserver/lib/fscompat_setiattr.c: * added additional 'mode'
- parameter to avoid an additional 'lstat'
-
-2004-01-22 13:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_getiattr-fscompat.hc,
- util-vserver/lib/fscompat_setiattr-fscompat.hc: * added
- additional 'mode' parameter to avoid an additional 'lstat'
- * operate on regular files and directories only
-
-2004-01-21 21:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_gettaskxid-v13.hc: return VC_NOCTX
- instead of -1
-
-2004-01-21 19:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests/getinitpid.c: updated to new API
-
-2004-01-21 19:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: added INITPID* and XID tags
-
-2004-01-21 19:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/save_ctxinfo.c, util-vserver/src/vps.c,
- util-vserver/src/vserver-stat.c,
- util-vserver/src/wrappers-vserver.h, util-vserver/tests/getctx.c:
- use vc_get_task_xid() instead of vc_X_getctx()
-
-2004-01-21 18:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: * vc_get_vx_info(),
- vc_get_task_xid(): added prototypes plus required
- typedefinitions
- * vc_X_getctx(), vc_X_getinitpid(): removed since obsoleted by
- functions
- above
-
-2004-01-21 18:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: * added fscompat & oldproc
- API
- * added support for VC_MULTIVERSION_SYSCALL which chooses the
- optimal
- CALL_VC variant
- * changed CALL_VC() so that it looks for version greater than
- requested
- one now
-
-2004-01-21 18:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: updated; added VINFO commands
-
-2004-01-21 18:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_kill.c,
- util-vserver/lib/syscall_rlimit.c: cleanups; optimize CALL_VC()
- usage
-
-2004-01-21 18:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_getiattr.c,
- util-vserver/lib/fscompat_setiattr.c: cleanups; use CALL_VC()
- macro
-
-2004-01-21 18:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/checkversion.c,
- util-vserver/lib/getversion-internal.hc,
- util-vserver/lib/getversion.c,
- util-vserver/lib/ioctl-getext2flags.hc,
- util-vserver/lib/ioctl-getfilecontext.hc,
- util-vserver/lib/ioctl-getxflg.hc,
- util-vserver/lib/ioctl-setext2flags.hc,
- util-vserver/lib/ioctl-setfilecontext.hc,
- util-vserver/lib/ioctl-setxflg.hc,
- util-vserver/lib/syscall-compat.hc, util-vserver/lib/syscall.c,
- util-vserver/lib/syscall_getiattr-v13.hc,
- util-vserver/lib/syscall_setiattr-v13.hc: cleanups; fixed/changed
- "vserver-internal.h" including
-
-2004-01-21 18:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added get_task_xid & get_vc_info
- files
- removed obsoleted getctx/getinitpid files
- renamed some -v11 files to -fscompat
-
-2004-01-21 18:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getctx-compat.hc,
- util-vserver/lib/getctx-legacy.hc, util-vserver/lib/getctx.c,
- util-vserver/lib/getinitpid-compat.hc,
- util-vserver/lib/getinitpid-legacy.hc,
- util-vserver/lib/getinitpid.c: obsoleted by v13/oldproc functions
-
-2004-01-21 18:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_getiattr-v13.hc,
- util-vserver/lib/fscompat_setiattr-v13.hc,
- util-vserver/lib/syscall_gettaskxid-oldproc.hc,
- util-vserver/lib/syscall_gettaskxid-v13.hc,
- util-vserver/lib/syscall_gettaskxid.c,
- util-vserver/lib/syscall_getvxinfo-oldproc.hc,
- util-vserver/lib/syscall_getvxinfo-v13.hc,
- util-vserver/lib/syscall_getvxinfo.c: initial checkin
-
-2004-01-21 18:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_getiattr-fscompat.hc,
- util-vserver/lib/fscompat_getiattr-v11.hc,
- util-vserver/lib/fscompat_setiattr-fscompat.hc,
- util-vserver/lib/fscompat_setiattr-v11.hc: renamed *-v11 to
- *-fscompat
-
-2004-01-21 18:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore: added 'Build-*'
-
-2004-01-21 18:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added 'oldproc' API
-
-2004-01-21 01:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files,
- util-vserver/src/vunify-compare.hc,
- util-vserver/src/vunify-compare.ic,
- util-vserver/src/vunify-doit.hc, util-vserver/src/vunify-doit.ic,
- util-vserver/src/vunify-init.hc, util-vserver/src/vunify-init.ic,
- util-vserver/src/vunify.c: renamed *.ic to *.hc
-
-2004-01-21 01:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.h: added changes for new API
- added rsSPECIAL reason
-
-2004-01-21 01:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.c: added changes for new API
-
-2004-01-21 01:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-doit.ic: updated to new API
-
-2004-01-21 01:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: fixed help message
-
-2004-01-21 01:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chxid.c, util-vserver/src/fstool.c,
- util-vserver/src/fstool.h, util-vserver/src/lsxid.c,
- util-vserver/src/setattr.c, util-vserver/src/showattr.c:
- updated/enhanced for new API
-
-2004-01-21 01:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: updated
-
-2004-01-21 01:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: added v13 API
-
-2004-01-21 01:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added fscompat and v13 functions
- removed ioctl functions
-
-2004-01-21 01:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added fscompat and v13 functions
-
-2004-01-21 01:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/ioctl-getext2flags.c,
- util-vserver/lib/ioctl-getext2flags.hc,
- util-vserver/lib/ioctl-getfilecontext.c,
- util-vserver/lib/ioctl-getfilecontext.hc,
- util-vserver/lib/ioctl-setext2flags.c,
- util-vserver/lib/ioctl-setext2flags.hc,
- util-vserver/lib/ioctl-setfilecontext.c,
- util-vserver/lib/ioctl-setfilecontext.hc: do not provide the
- ioctl-functions anymore; use them only internally
- and include them directly. Therefore, renamed them from *.c to
- *.hc
-
-2004-01-21 01:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fscompat_getiattr-v11.hc,
- util-vserver/lib/fscompat_getiattr.c,
- util-vserver/lib/fscompat_setiattr-v11.hc,
- util-vserver/lib/fscompat_setiattr.c,
- util-vserver/lib/ioctl-getxflg.hc,
- util-vserver/lib/ioctl-setxflg.hc,
- util-vserver/lib/syscall_getiattr-v13.hc,
- util-vserver/lib/syscall_getiattr.c,
- util-vserver/lib/syscall_setiattr-v13.hc,
- util-vserver/lib/syscall_setiattr.c: initial checkin
-
-2004-01-21 01:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added v13 & fscompat APIs
-
-2004-01-19 18:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/vunify-exclude: added .rpmdb
-
-2004-01-19 18:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chxid.c, util-vserver/src/lsxid.c,
- util-vserver/src/setattr.c, util-vserver/src/showattr.c:
- s/S_ISLNK/!S_ISREG/ -> ignore any non-regular files
-
-2004-01-19 18:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: removed vunify-operations
-
-2004-01-19 18:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.h: cleanups; moved structure declarations
- from vunify.c into this headerfile
-
-2004-01-19 18:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.c: cleanups
- added 'skip_reason' support
- added debug output
-
-2004-01-19 18:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-init.ic: added debug output
- fixed descriptor leak
-
-2004-01-19 18:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-compare.ic,
- util-vserver/src/vunify-doit.ic: initial checkin
-
-2004-01-19 18:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-operations.c,
- util-vserver/src/vunify-operations.h: obsoleted by more
- straight-forward code
-
-2004-01-19 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: fixed copy&paste error
-
-2004-01-17 05:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.27.196
-
-2004-01-17 05:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests/vserver-info.c: updated to new
- vc_getVserverVdir() API
-
-2004-01-17 05:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.c: moved init*() functions to
- vunify-init.c
-
-2004-01-17 05:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-operations.c: compareUnify(): check mtime
- too
-
-2004-01-17 05:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-matchlist.h: made 'buf' constant
-
-2004-01-17 05:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-matchlist.c: allow cmp-pointer to be NULL
-
-2004-01-17 05:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-init.ic: use VPKG_PROG instead of
- PKGMGMT_INFO_PROG
- register 'vdir'
- use default exclude-lists
-
-2004-01-17 05:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-debug.c: added a const_cast
-
-2004-01-17 05:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: updated VDIR tag to new
- interface
-
-2004-01-17 05:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: added 'unify' and 'pkg' commands
-
-2004-01-17 05:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vpkg: initial checkin
-
-2004-01-17 05:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added $_VUNIFY
- and $_VPKG
-
-2004-01-17 05:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/distrib-info,
- util-vserver/scripts/legacy/distrib-info: moved distrib-info to
- legacy/
-
-2004-01-17 05:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: moved distrib-info to
- legacy/
- added vpkg
-
-2004-01-17 05:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservervdir.c, util-vserver/lib/vserver.h:
- added 'physical' parameter to vc_getVserverVdir() which resolves
- the
- complete physical path of the vdir
-
-2004-01-17 05:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/misc/vunify-exclude: initial checkin
-
-2004-01-17 05:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added vunify-exclude
-
-2004-01-17 05:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: use manifest-data for -legacy
-
-2004-01-17 05:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/pathconfig.h.pathsubst: added VPKG_PROG
- minor cleanups
-
-2004-01-16 18:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/vunify-test.sh: applied new calling
- scheme
-
-2004-01-16 18:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/vunify-functest.c: added
- wrapper_exit_code
-
-2004-01-16 18:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers.h: Elseek(), Emkstemp(): added
- Emalloc(), Erealloc(): fixed declarations
-
-2004-01-16 18:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify-matchlist.c,
- util-vserver/src/vunify-matchlist.h,
- util-vserver/src/vunify-operations.c, util-vserver/src/vunify.c:
- added exclude-list support
-
-2004-01-16 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: added APPDIR tag
- made it possible to supply additional paramaters
-
-2004-01-16 18:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/new-namespace.c, util-vserver/src/rpm-fake.c: do
- not use CLONE_VFORK in debug mode; lockups with 'strace' are too
- annoying
-
-2004-01-16 18:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: updated vunify setup
- added files for vunify
-
-2004-01-16 18:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverappdir.c,
- util-vserver/lib/getvservercfgdir.c,
- util-vserver/lib/isdirectory.c, util-vserver/scripts/legacy,
- util-vserver/scripts/legacy/.cvsignore,
- util-vserver/src/vunify-debug.c, util-vserver/src/vunify-init.ic,
- util-vserver/src/vunify.h, util-vserver/src/wrappers-io.h:
- initial checkin
-
-2004-01-16 17:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: accept vservers beginning with
- './'
-
-2004-01-16 17:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added new management functions + doc
-
-2004-01-16 17:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h: added utilvserver_isDirectory()
- prototype
-
-2004-01-16 17:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservervdir.c: use utilvserver_isDirectory()
-
-2004-01-16 17:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added new management sources
-
-2004-01-16 17:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: use filelists from
- contrib/make-manifest
-
-2004-01-16 17:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: fixed CVS tag
-
-2004-01-16 17:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added contrib/ dir
- substitute MANDIR too
-
-2004-01-14 02:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util-exitlikeprocess.c: added missing <signal.h>
-
-2004-01-14 02:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fstool.h: added 'local_fs' struct-member
-
-2004-01-14 02:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fstool.c: added support for '-x' (do not cross
- filesystems)
- fixed invocation with directory-name
- implemented '-a' (show dot)
-
-2004-01-14 02:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vps.c: minor documentation fix
-
-2004-01-14 02:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chxid.c, util-vserver/src/lsxid.c,
- util-vserver/src/setattr.c, util-vserver/src/showattr.c: added
- and documented '-x' switch
-
-2004-01-14 00:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vps.c: makde it compilable with gcc296
-
-2004-01-14 00:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added -legacy subpackage
-
-2004-01-14 00:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: removed timestamps in legacy-dir also
- substitute LEGACYDIR and PS
-
-2004-01-14 00:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vps.c: added native '--version' and '--help'
-
-2004-01-14 00:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added legacy-scripts to
- $(scripts_OPTIONS_EXEMPT)
- added scripts_legacy_gen_SCRPTS to $(scripts_CLEANFILES)
-
-2004-01-14 00:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/validate.am: fixed parallel build
-
-2004-01-13 23:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added check for PS
-
-2004-01-13 23:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/pathconfig.h.pathsubst: added PS_PROG
-
-2004-01-13 23:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added vps
-
-2004-01-13 23:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: made vps a dietprog
-
-2004-01-13 23:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getctx.c: minor code cleanups
-
-2004-01-13 23:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getctx.c: added VC_BE_VALGRIND_FRIENDLY support
-
-2004-01-13 23:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_get_securecaps(): added prototype
-
-2004-01-13 23:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: made CALL_VC-macro a block
-
-2004-01-13 23:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util-exitlikeprocess.c: include <unistd.h>
-
-2004-01-13 23:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: moved legacy scripts into
- legacy/ and updated variables
-
-2004-01-13 23:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: updated legacy
- paths
-
-2004-01-13 23:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added vps
-
-2004-01-13 23:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util.h: exitLikeProcess(): added prototype
-
-2004-01-13 23:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers.h: Emalloc(), Erealloc(): added
-
-2004-01-13 23:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util-exitlikeprocess.c, util-vserver/src/vps.c:
- initial checkin
-
-2004-01-13 23:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/save_s_context,
- util-vserver/scripts/vps.pathsubst,
- util-vserver/scripts/vserver-legacy,
- util-vserver/scripts/vserverkillall: moved into legacy
-
-2004-01-13 23:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/legacy,
- util-vserver/scripts/legacy/save_s_context,
- util-vserver/scripts/legacy/vps.pathsubst,
- util-vserver/scripts/legacy/vserver,
- util-vserver/scripts/legacy/vserverkillall: initial checkin
- (moved from ../)
-
-2004-01-13 20:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-legacy: use 'exec' to call commands
- on 'suexec' (patch by Alec Thomas)
-
-2004-01-13 14:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added missing fstool.h header
-
-2004-01-13 14:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: updated (added scheduler stuff)
-
-2004-01-13 14:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vkill.c: removed warnings about unused
- parameters
-
-2004-01-13 14:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverbyctx.c,
- util-vserver/lib/getvserverctx.c, util-vserver/src/exec-cd.c,
- util-vserver/tests/escaperoot.c, util-vserver/tests/testipc.c,
- util-vserver/tests/testlimit.c, util-vserver/tests/testopenf.c:
- made it compilable with gcc296
-
-2004-01-13 14:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: use $(src_sbin_SCRPTS)
-
-2004-01-13 14:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added declarations for the ext2fs
- functions
-
-2004-01-13 14:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: added EXT2FS macros
-
-2004-01-13 14:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fmt.h: fixed xulong/xlong declarations
-
-2004-01-13 14:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added the ioctl-* files
- added ext2fs.h
-
-2004-01-13 14:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: updated
-
-2004-01-13 14:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: removed ext2fs.h
- added the fstools (lsxid,chxid,showattr,setattr) plus deps
-
-2004-01-13 14:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chxid.c, util-vserver/src/fstool.c,
- util-vserver/src/fstool.h, util-vserver/src/lsxid.c,
- util-vserver/src/setattr.c, util-vserver/src/showattr.c:
- minor/medium cleanups
-
-2004-01-13 14:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fstool-resolvectx.c: initial checkin
-
-2004-01-13 13:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/showattr.c: rewrote completely
-
-2004-01-13 13:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/ext2fs.h, util-vserver/src/ext2fs.h: moved
- ext2fs.h from src/ into lib/ directory; we are providing the
- needed functionality through libvserver now
-
-2004-01-13 13:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/ioctl-getext2flags.c,
- util-vserver/lib/ioctl-getfilecontext.c,
- util-vserver/lib/ioctl-setext2flags.c,
- util-vserver/lib/ioctl-setfilecontext.c,
- util-vserver/src/chxid.c, util-vserver/src/fstool.c,
- util-vserver/src/fstool.h, util-vserver/src/lsxid.c,
- util-vserver/src/setattr.c: initial checkin
-
-2004-01-07 15:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added URL which describes
- context-creation
-
-2004-01-07 15:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c: * removed obsolete and unused
- 'fakeinit' variable
- * fixed ctx-creation with fakeinit and static ctx-id's; fakeinit
- requires a second call for ctx -2 to take effect
-
-2004-01-05 22:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added vserver-info
-
-2004-01-05 22:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: updated
-
-2004-01-05 22:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers.h: Edup2(): added
-
-2004-01-05 22:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: use existing syscall-wrappers
- instead of checking return-codes manually
-
-2004-01-05 22:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-info.c: initial checkin
-
-2004-01-05 22:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: use fd3 for synchronization with
- resolver
- adding some missing '\n' in messages
- ignore empty environment variables too
- exitRPMFake(): conditionalized debug-message
-
-2004-01-05 22:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake-resolver.c: daemonize(): child waits
- for parent to finish now
- use fd3 for synchronisation
- enable fork on default
-
-2004-01-05 22:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added vserver-info
- minor cosmetical fixes
-
-2004-01-05 22:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: fixed error-handling
-
-2004-01-05 22:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: added '--context'
- option
- minor cosmetical cleanups
-
-2004-01-05 22:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions.apt:
- initVariablesApt(): fixed empty function body
-
-2004-01-05 21:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vrpm-preload: major cleanups; use
- 'vserver-info' to retrieve information about vserver
-
-2004-01-05 21:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get-worker: removed old, unused debug
- code
-
-2004-01-05 21:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get, util-vserver/scripts/vrpm: use
- modern '--help' & '--version' output
-
-2004-01-05 21:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- $_VSERVER_INFO
-
-2004-01-05 21:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: getVserverStatus(): fixed usage
- of 2nd parameter
-
-2004-01-05 21:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fmtx.hc, util-vserver/lib/getvserverbyctx.c,
- util-vserver/lib/getvserverctx.c,
- util-vserver/lib/vserver-internal.h, util-vserver/lib/vserver.h:
- small cosmetical fix
-
-2003-12-30 20:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: version 0.27.190
-
-2003-12-30 19:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: - since dynamic libraries will
- be installed now, call /sbin/ldconfig
- - other updates...
-
-2003-12-30 19:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/compat-pivot_root.h: use <asm/unistd.h> instead
- of <linux/unistd.h> to fix problems with
- RH's headers
-
-2003-12-30 18:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/vunify-test.sh: fixed paths
-
-2003-12-30 18:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: use sendKillSequence instead
- of ctx-kill
-
-2003-12-30 18:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: sendKillSequence(): added
-
-2003-12-30 18:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: removed
- _CTX_KILL
- added _VKILL
-
-2003-12-30 18:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: getVserverStatus(): fixed usage
- if ctx
- isCtxRunning(): added
-
-2003-12-30 17:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added missing compat-c99.h header-file
-
-2003-12-30 17:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chroot-rm.c: fixed order of chroot() and
- parameter evaluation so that '--version'
- and '--help' are working as non-root also
-
-2003-12-30 17:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added missing headers
- removed 'ctx-kill'; it is obsoleted through 'vkill'
-
-2003-12-30 17:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/ctx-kill.c: replaced by 'vkill'
-
-2003-12-30 17:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: use results from dietlib's C99
- compatibility-check
-
-2003-12-30 17:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: added check for C99
- compatibility
-
-2003-12-30 17:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_fpicsyscall.m4: fixed AC_LANG_PUSH/POP
- mismatch
-
-2003-12-30 16:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore, util-vserver/lib,
- util-vserver/lib/.cvsignore, util-vserver/scripts,
- util-vserver/scripts/.cvsignore, util-vserver/src,
- util-vserver/src/.cvsignore: updated
-
-2003-12-30 16:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall_kill-v11.hc,
- util-vserver/lib/syscall_kill.c, util-vserver/src/vkill.c: merged
- with 0.26.90
-
-2003-12-30 16:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/testsuite/rpm-fake-test.sh: fixed LD_PRELOAD
- path
-
-2003-12-30 16:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: updated start/stop help-messages
-
-2003-12-30 16:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: getAllVservers(): ignore backup
- vservers
-
-2003-12-30 16:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: fixed multiple 'make install'
- by using '-f' on 'ln'
-
-2003-12-30 16:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: - merged with 0.26.90 (fixed
- --enable-apis, renamed ctx_t to xid_t,
- renamed syscall, use C++ for ext2fs.h test)
- - libtool'ized it
-
-2003-12-30 16:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: * added vkill (merged from
- 0.26.90)
- * libtool'ized it
-
-2003-12-30 16:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: * added vc_kill() syscall
- (merged from 0.26.90)
- * libtool'ized it
-
-2003-12-30 15:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: * added legacy-dir (merged from
- 0.26.90)
- * libtool'ized it
-
-2003-12-30 15:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h, util-vserver/lib/getctx-compat.hc,
- util-vserver/lib/getctx-legacy.hc, util-vserver/lib/getctx.c,
- util-vserver/lib/getversion-internal.hc,
- util-vserver/lib/getversion.c,
- util-vserver/lib/getvserverbyctx.c,
- util-vserver/lib/getvserverctx.c,
- util-vserver/lib/syscall-compat.hc,
- util-vserver/lib/syscall-legacy.hc, util-vserver/lib/syscall.c,
- util-vserver/lib/syscall_rlimit-v11.hc,
- util-vserver/lib/syscall_rlimit.c, util-vserver/lib/virtual.h,
- util-vserver/lib/vserver-internal.h, util-vserver/lib/vserver.h,
- util-vserver/scripts/Makefile-files,
- util-vserver/scripts/vps.pathsubst,
- util-vserver/scripts/vserver-legacy, util-vserver/src,
- util-vserver/src/.cvsignore, util-vserver/src/ctx-kill.c,
- util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/rpm-fake.c, util-vserver/src/save_ctxinfo.c,
- util-vserver/src/vlimit.c, util-vserver/src/vserver-stat.c,
- util-vserver/src/wrappers-vserver.h, util-vserver/tests/getctx.c:
- merged with 0.26.90
-
-2003-12-29 19:02 uid68581
-
- * util-vserver/src/capchroot.c: do not use vc_chrootsafe() anymore
-
-2003-12-29 19:01 uid68581
-
- * util-vserver/tests/Makefile-files: removed chrootsafe
- libtool'ized
-
-2003-12-26 00:50 uid68581
-
- * util-vserver/compat-c99.h, util-vserver/src/testsuite,
- util-vserver/src/testsuite/Makefile-files,
- util-vserver/src/testsuite/data,
- util-vserver/src/testsuite/data/rpm-fake-test.inp,
- util-vserver/src/testsuite/data/rpm-fake-test.out,
- util-vserver/src/testsuite/rpm-fake-test.c,
- util-vserver/src/testsuite/rpm-fake-test.sh,
- util-vserver/src/testsuite/vunify-functest.c,
- util-vserver/src/testsuite/vunify-test.sh: initial checkin
-
-2003-12-26 00:49 uid68581
-
- * util-vserver/pathconfig.h.pathsubst: added RESOLVER_PROG
-
-2003-12-26 00:48 uid68581
-
- * util-vserver/scripts/vprofile: removed since obsoleted
-
-2003-12-26 00:48 uid68581
-
- * util-vserver/tests/escaperoot.c, util-vserver/tests/forkbomb.c,
- util-vserver/tests/testlimit.c, util-vserver/tests/testopenf.c:
- used workarounds to make it compilable with non-C99 compilers
-
-2003-12-26 00:47 uid68581
-
- * util-vserver/src/wrappers.h: added setgid/setuid/setgroups
- wrappers
-
-2003-12-26 00:47 uid68581
-
- * util-vserver/src/util.h: added Xmemcpy()
- added safeChdir() prototype
-
-2003-12-26 00:46 uid68581
-
- * util-vserver/src/rpm-fake.c: rewrote large parts
- added NSS functions (getpwnam(), getgrnam(), ...)
-
-2003-12-26 00:45 uid68581
-
- * util-vserver/src/fakerunlevel.c: use setgroups() also
-
-2003-12-26 00:45 uid68581
-
- * util-vserver/src/chroot-rm.c: added '--help' and '--version'
-
-2003-12-26 00:44 uid68581
-
- * util-vserver/src, util-vserver/src/.cvsignore: added exec-cd and
- rpm-fake-resolver
- removed secure-umount
-
-2003-12-26 00:42 uid68581
-
- * util-vserver/src/exec-cd.c, util-vserver/src/rpm-fake-resolver.c,
- util-vserver/src/util-safechdir.c,
- util-vserver/src/vunify-matchlist.c,
- util-vserver/src/vunify-matchlist.h,
- util-vserver/src/vunify-operations.c,
- util-vserver/src/vunify-operations.h, util-vserver/src/vunify.c,
- util-vserver/src/wrappers-dirent.h: initial checkin
-
-2003-12-26 00:38 uid68581
-
- * util-vserver/src/Makefile-files: removed secure-umount
- added exec-cd
- vunify will be a dietlibc program soonly
-
-2003-12-26 00:34 uid68581
-
- * util-vserver/scripts/rootshell, util-vserver/scripts/vpstree,
- util-vserver/scripts/vsysvwrapper, util-vserver/scripts/vtop:
- fixed quoting
-
-2003-12-26 00:34 uid68581
-
- * util-vserver/scripts/vserver.functions: use 'exec-cd' instead of
- 'secure-umount'
-
-2003-12-26 00:33 uid68581
-
- * util-vserver/scripts/vserver-build.functions.apt: fixed
- initVariablesApt()
- added support for default apt.conf
-
-2003-12-26 00:33 uid68581
-
- * util-vserver/scripts/vserver-build.functions: rename package-cfg
- directory on '--force' also
-
-2003-12-26 00:32 uid68581
-
- * util-vserver/scripts/vserver-build.apt-rpm: added '--debug'
- option
-
-2003-12-26 00:32 uid68581
-
- * util-vserver/scripts/vserver: added package-management options
- (atleast their documention)
-
-2003-12-26 00:30 uid68581
-
- * util-vserver/scripts/vapt-get-worker: set RPM::PM to 'external'
-
-2003-12-26 00:29 uid68581
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added _EXEC_CD
- removed _SECURE_UMOUNT
-
-2003-12-26 00:29 uid68581
-
- * util-vserver/scripts/functions: added support for default
- apt.conf
-
-2003-12-26 00:23 uid68581
-
- * util-vserver/scripts/Makefile-files: removed vprofile
-
-2003-12-26 00:22 uid68581
-
- * util-vserver/m4/ensc_cflags.m4, util-vserver/m4/ensc_dietlibc.m4,
- util-vserver/m4/ensc_kerneldir.m4,
- util-vserver/m4/ensc_release.m4,
- util-vserver/m4/ensc_uv_vrootdir.m4: fixed broken quoting which
- is complained by recent automake
-
-2003-12-26 00:22 uid68581
-
- * util-vserver/lib/getvserverbyctx.c,
- util-vserver/lib/getvserverctx.c: added workarounds for non-C99
- compilers
-
-2003-12-26 00:21 uid68581
-
- * util-vserver/distrib/defaults/apt,
- util-vserver/distrib/defaults/apt/apt.conf: initial checkin
-
-2003-12-26 00:20 uid68581
-
- * util-vserver/distrib/Makefile.am: added default apt.conf
-
-2003-12-26 00:20 uid68581
-
- * util-vserver/compat.h: differ between >=3.3 and below at certain
- options
- added 'restrict' workarounds
-
-2003-12-26 00:19 uid68581
-
- * util-vserver/Makefile.am: - removed m4_FILES; it is handled by
- automake >=2.8 automatically
- - added basic test support
-
-2003-12-02 02:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: evaluate CHBIND_OPTS
- lazily
-
-2003-12-02 02:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservername.c: getRecentName(): return
- basename of directory but not this of the link anymore
-
-2003-11-22 02:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.26.193
-
-2003-11-22 02:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore, util-vserver/Makefile.am,
- util-vserver/configure.ac, util-vserver/src/ifspec.c: merged with
- 0.26
-
-2003-11-22 02:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: generate some .defaults symlinks
-
-2003-11-22 02:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: generate %ghost symlinks in
- %post
- added vlimit
- added some .default directories
-
-2003-11-22 02:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvserverctx.c: added missing includes
-
-2003-11-22 02:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: use
- '$CONFDIR/.defaults/run.rev' instead of '$PKGSTATEREVDIR'
-
-2003-11-20 18:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: use 'vservers.rev' directory
- instead of 'vservers/rev'
-
-2003-11-20 18:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: use PKGSTATEREVDIR
-
-2003-11-20 18:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts, util-vserver/scripts/.cvsignore: added vps
-
-2003-11-20 18:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added separate 'pkgstaterevdir'
- variable
-
-2003-11-20 18:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/pathconfig.h.pathsubst: added DEFAULT_PKGSTATEREVDIR
-
-2003-11-20 18:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added getvserverctx &
- getvserverbyctx files
- added fmtx* files
-
-2003-11-20 18:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-legacy.hc: has_chrootsafe(),
- call_set_ctxlimit(): removed
-
-2003-11-20 18:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: vc_getVserverByCtx(),
- vc_getVserverCtx(): added
-
-2003-11-20 18:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fmt.h, util-vserver/lib/fmt.hc: added/use
- specialized hex-formating functions
-
-2003-11-20 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/fmt-internal.h, util-vserver/lib/fmtx-32.c,
- util-vserver/lib/fmtx-64.c, util-vserver/lib/fmtx.hc,
- util-vserver/lib/getvserverbyctx.c,
- util-vserver/lib/getvserverctx.c: initial checkin
-
-2003-11-20 18:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- PKGSTATEREVDIR
-
-2003-11-20 18:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vserver-stat.c: rewrote it to
- * use the new management function
- * remove all traces of printf()
- * remove stacked functions
-
-2003-11-20 18:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vlimit.c: use the specialized
- utilvserver_fmt_xuint64() function
-
-2003-11-20 18:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: made 'vserver-stat' a
- dietlibc-compiled program
-
-2003-11-20 15:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: define FMT_PREFIX
-
-2003-11-20 15:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files, util-vserver/lib/fmt-32.c,
- util-vserver/lib/fmt-64.c, util-vserver/lib/fmt.h,
- util-vserver/lib/fmt.hc, util-vserver/lib/getprocentry-legacy.c,
- util-vserver/lib/int2str.c, util-vserver/lib/internal.h,
- util-vserver/lib/uint2str.c, util-vserver/src/save_ctxinfo.c,
- util-vserver/src/vlimit.c, util-vserver/tests/getctx.c,
- util-vserver/tests/getinitpid.c: use fmt_*() functions instead of
- *int2str()
-
-2003-11-20 02:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vps: removed since autogenerated from
- vps.pathsubst
-
-2003-11-18 23:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fdr0.95, util-vserver/distrib/rh9.0.93:
- obsoleted by fc1
-
-2003-11-18 23:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fc1, util-vserver/distrib/fc1/apt,
- util-vserver/distrib/fc1/apt/rpmpriorities,
- util-vserver/distrib/fc1/apt/sources.list,
- util-vserver/distrib/fc1/pkgs, util-vserver/distrib/fc1/pkgs/01,
- util-vserver/distrib/fc1/pkgs/02: initial checkin (based on
- fdr0.95)
-
-2003-11-18 23:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added Fedora Core 1
- removed Fedora Beta
-
-2003-11-18 23:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get: do not set $_APT_GET
-
-2003-11-18 23:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: merged/added from 0.25
- added workaround for broken 'long long' handling of dietlibc
-
-2003-11-18 23:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am, util-vserver/THANKS,
- util-vserver/configure.ac, util-vserver/lib/Makefile-files,
- util-vserver/lib/syscall-compat.hc,
- util-vserver/lib/syscall_rlimit-v11.hc,
- util-vserver/lib/syscall_rlimit.c, util-vserver/lib/virtual.h,
- util-vserver/lib/vserver-internal.h, util-vserver/lib/vserver.h,
- util-vserver/scripts/vserver-legacy, util-vserver/src,
- util-vserver/src/.cvsignore, util-vserver/src/Makefile-files,
- util-vserver/src/ext2fs.h, util-vserver/src/setctxlimit.c,
- util-vserver/src/showattr.c, util-vserver/src/vlimit.c,
- util-vserver/src/vutil.cc, util-vserver/util-vserver.spec.in:
- merged/added from 0.25
-
-2003-11-18 23:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/rebootmgr.subst,
- util-vserver/sysv/vservers.subst: merged in changes from 0.25
-
-2003-11-04 23:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.24.191
-
-2003-11-04 23:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: added '--without dietlibc'
- option
-
-2003-11-04 23:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_dietlibc.m4: fixed typos ('withval' instead
- of 'enableval')
-
-2003-11-04 23:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservername.c,
- util-vserver/lib/getvservervdir.c: added '#include <unistd.h>' to
- fix compilation problems with glibc
-
-2003-11-04 13:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.24.190
-
-2003-11-04 13:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore: added linuxcaps.h (merged
- from stable)
-
-2003-11-04 13:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: - separated and completed m4_FILES
- - added '--show-dead' to cvs2cl params
- - fix linuxcaps.h (merged from stable)
-
-2003-11-04 13:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservercfgstyle.c: added some additional
- logic
-
-2003-11-04 13:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/virtual.h: do not include the <linux/types.h>
- kernel-header anymore
-
-2003-11-04 13:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: - getAllVservers: use _tmp
- instead of tmp to avoid clashes when caller
- wants to have results in 'tmp', fixed array assignment
-
-2003-11-04 13:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rebootmgr.c: fixed typo
-
-2003-11-04 13:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests/vserver-info.c: added '--help' and '--version'
-
-2003-11-04 01:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: merged from SYSCALL_SWITCH
-
-2003-11-04 01:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_changelog.m4: merged from SYSCALL_SWITCH
-
-2003-11-04 01:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/distrib-info,
- util-vserver/scripts/vserver-copy,
- util-vserver/scripts/vserver-legacy,
- util-vserver/scripts/vservers.grabinfo.sh,
- util-vserver/src/rebootmgr.c, util-vserver/sysv/Makefile-files,
- util-vserver/sysv/rebootmgr.subst: merged in changes from 0.23.96
- (/vservers -> $DEFAULT_VSERVERDIR)
-
-2003-11-04 00:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/validate.am: updated from vserver-djinni
-
-2003-11-04 00:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver-internal.h: ignore lower 8bit on version
-
-2003-11-03 19:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: removed 'vkill' for now
- call 'install-vserverdir'
-
-2003-11-03 19:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: create
- /etc/sysconfig/network
-
-2003-11-03 19:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: - fixed some statements
- which would fail with 'set -e'
- - made 'disableInterface' smart so that it calculates parameters
- automatically
-
-2003-11-03 19:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-setup.functions: added support for
- '--netbcast'
-
-2003-11-03 19:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservername.c: terminate name with '\0'
-
-2003-10-30 17:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-legacy: merged from 0.23.95:
- - reenabled the copy-all mode; can be disabled by setting the
- $UTIL_VSERVER_AVOID_COPY environment variable
- - use '-HS' ulimit switch for newly created vservers
-
-2003-10-30 17:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: - large cleanup; use changed variables
- from scripts/Makefile
- - try to keep modes of pathsubstituted files
- - create own install-rule for vserver-dir; 'make distcheck' does
- not
- like /vservers...
-
-2003-10-30 17:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/reducecap.c: use QUOTACTL (merged from 0.23.94)
-
-2003-10-30 17:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rebootmgr.c: use configured SBINDIR instead of
- hardcoded /usr/sbin
-
-2003-10-30 17:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chcontext.c: added QUOTACTL to 'secure' caps
- (merged from 0.23.94)
-
-2003-10-30 17:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: create 'setattr' program
-
-2003-10-30 17:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/distrib-info,
- util-vserver/scripts/rootshell, util-vserver/scripts/vpstree,
- util-vserver/scripts/vserver-copy,
- util-vserver/scripts/vsysvwrapper, util-vserver/scripts/vtop:
- merged in changes from 0.24.94 (s!/usr/sbin!$SBINDIR!)
-
-2003-10-30 17:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop: use 'set -e' instead of 'set
- +e'
-
-2003-10-30 17:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: added 'checkComponents()'
- function
-
-2003-10-30 17:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vps.pathsubst: initial check (was: vps)
-
-2003-10-30 17:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vkill: removed; is obsoleted by ctx-kill
-
-2003-10-30 17:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- INITRDDIR, LIBDIR and INCLUDEDIR
-
-2003-10-30 17:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: large cleanup
- removed 'vkill' (obsoleted by ctx-kill)
- vps is now vps.subst
-
-2003-10-30 17:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/capabilities.c, util-vserver/lib/vserver.h,
- util-vserver/man/reducecap.8: use CAP_QUOTACTL instead of
- CAP_OPENDEV
-
-2003-10-30 14:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: use ENSC_UV_VROOTDIR to set
- 'vserverdir'
- added missing path-substitutions
-
-2003-10-30 14:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: use ENSC_UV_VROOTDIR to set
- 'vserverdir'
-
-2003-10-30 14:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_uv_vrootdir.m4: initial checkin
-
-2003-10-23 20:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getvservercfgstyle.c,
- util-vserver/lib/getvservername.c,
- util-vserver/lib/getvservervdir.c,
- util-vserver/tests/vserver-info.c: initial checkin
-
-2003-10-23 20:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests, util-vserver/tests/.cvsignore,
- util-vserver/tests/Makefile-files: added vserver-info
-
-2003-10-23 20:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: define TEMP_FAILURE_RETRY for
- dietlibc-compilation
-
-2003-10-23 20:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/pathconfig.h.pathsubst: define DEFAULT_VSERVERDIR
- and DEFAULT_VSERVERPKGDIR
-
-2003-10-23 20:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added files for higher-level
- management
-
-2003-10-23 20:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added functions for
- vserver-management
-
-2003-10-22 23:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop,
- util-vserver/scripts/vserver.suexec: cleanups; go into
- vserver-dir before *and* after executing scriptlets
-
-2003-10-22 23:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build,
- util-vserver/scripts/vserver-build.functions: used
- $DEFAULT_VSERVERDIR and $DEFAULT_VSERVERPKGDIR instead of the
- hardcoded '/vservers' values
-
-2003-10-22 22:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: rewrote it
- added -build subpackage
-
-2003-10-22 22:18 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: moved ENSC_INITRDDIR, ENSC_RELEASE,
- ENSC_ENABLE_DIETLIBC and
- ENSC_KERNEL_HEADERS checks into own m4/* files
-
-2003-10-22 22:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: renamed sysvdir to initrddir
- use $(RELEASE_CPPFLAGS) (-DNDEBUG)
- substitute $(vserverdir) and $(vserverpkgdir)
- create the $(vserverdir) and $(vserverpkgdir) directories
-
-2003-10-22 22:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added sample 'mtab' file
- create the config-dirs
-
-2003-10-22 22:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat/initpost: $2 is no longer $_VSERVER
- but the 'util-vserver-vars' file
-
-2003-10-22 22:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/rh9/apt/sources.list: added some mirrors
-
-2003-10-22 22:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/fdr0.95, util-vserver/distrib/fdr0.95/apt,
- util-vserver/distrib/fdr0.95/apt/rpmpriorities,
- util-vserver/distrib/fdr0.95/apt/sources.list,
- util-vserver/distrib/fdr0.95/pkgs,
- util-vserver/distrib/fdr0.95/pkgs/01,
- util-vserver/distrib/fdr0.95/pkgs/02, util-vserver/distrib/misc,
- util-vserver/distrib/misc/mtab, util-vserver/m4/ensc_dietlibc.m4,
- util-vserver/m4/ensc_initrddir.m4,
- util-vserver/m4/ensc_kerneldir.m4,
- util-vserver/m4/ensc_release.m4: initial checkin
-
-2003-10-22 22:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- DEFAULT_VSERVERDIR and DEFAULT_VSERVERPKGDIR
-
-2003-10-22 22:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.apt-rpm: call pre/post
- scriplets with "$UTIL_VSERVER_VARS" as second param
- instead of "$_VSERVER"
-
-2003-10-22 22:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: fixed broken quotes
-
-2003-10-22 18:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions,
- util-vserver/scripts/vserver.start: - reorganized
- CHCONTEXT_INIT_OPTS/CHCONTEXT_DISCONNECT: dropped the
- separate CHCONTEXT_DISCONNECT variable completetly and put
- '--flag
- fakeinit --disconnect' into CHCONTEXT_INIT_OPTS, which is used by
- 'vserver ... start' command only
-
-2003-10-22 18:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-umount.c: use real 'umount' program to
- unmount directories
-
-2003-10-22 18:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/exec-ulimit.c: added [mMkK] modifies for limits
-
-2003-10-22 18:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build,
- util-vserver/scripts/vserver-setup.functions: fixed getopt
- long-option string
-
-2003-10-22 18:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build.functions: added support for
- copying some default files (resolv.conf, localtime,
- krb-conf,...)
-
-2003-10-22 18:19 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: implemented findAndCopy
-
-2003-10-21 14:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/NEWS, util-vserver/configure.ac: version 0.23.194
-
-2003-10-21 14:15 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added scripts to
- AM_INSTALLCHECK_STD_OPTIONS_EXEMPT
-
-2003-10-21 14:14 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/exec-ulimit.c: implemented '--help' and
- '--version'
-
-2003-10-21 13:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vbuild.cc: removed warning about unused
- parameters
-
-2003-10-21 13:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests/Makefile-files: renamed to .cc files to .c
-
-2003-10-21 13:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests/chrootsafe.c,
- util-vserver/tests/chrootsafe.cc,
- util-vserver/tests/escaperoot.c,
- util-vserver/tests/escaperoot.cc, util-vserver/tests/forkbomb.c,
- util-vserver/tests/forkbomb.cc, util-vserver/tests/testipc.c,
- util-vserver/tests/testipc.cc, util-vserver/tests/testlimit.c,
- util-vserver/tests/testlimit.cc, util-vserver/tests/testopenf.c,
- util-vserver/tests/testopenf.cc: renamed to .cc files to .c and
- made some little changes to make them
- compilable with C compilers
-
-2003-10-21 13:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added new m4/*.m4 macros
- added conditional build of CXX files
- added support for libtool
-
-2003-10-21 13:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/redhat,
- util-vserver/distrib/redhat/initpost: initial checkin
-
-2003-10-21 13:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added Fedora Core 0.95
- removed Red Hat 9.0.93
- use common redhat/initpost script
-
-2003-10-21 13:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: - use dietlibc compilation only
- for library-built, but not e.g. when
- building object for rpm-fake.so. This is very dark magic...
-
-2003-10-21 13:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: removed vunify.old.sh
-
-2003-10-21 13:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: - conditionalized built of C++
- programs
- - added very dark magic to build everything of rpm-fake.so with
- '-fPIC'
- flag (when possible); on ia32 this will not work/is not
- necessarily
- but x86_64 seems to have problems with current method
-
-2003-10-21 13:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added check for C++ compiler
- added some CXX flags
- use ENSC_FPIC_SYSCALL
-
-2003-10-21 13:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/checkversion.c: fixed stupid thinko (EAGAIN vs.
- EINVAL)
-
-2003-10-21 13:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/ensc_cxxcompiler.m4,
- util-vserver/m4/ensc_fpicsyscall.m4, util-vserver/src/vserver.cc,
- util-vserver/src/vserver.hh: initial checkin
-
-2003-10-21 13:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: made it compilabe with non-C99
- compilers and older kernels
-
-2003-10-21 13:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: made it compilabe with non-C99
- compilers
-
-2003-10-21 13:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vbuild.cc: use 'Vserver' class instead of
- 'string'
- !!BROKE LOTS OF THINGS!! this version does not work yet
-
-2003-10-21 13:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vunify.cc: use 'Vserver' class instead of
- 'string'
- use getopt()
- reindented large parts
-
-2003-10-21 13:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vutil.cc: use 'Vserver' class instead of
- 'string'
- fixed format-string error
-
-2003-10-21 13:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vutil.h, util-vserver/src/vutil.p: use 'Vserver'
- class instead of 'string'
-
-2003-10-21 13:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers.h: make it compilable with non-C99
- compilers
-
-2003-10-20 23:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/configuration.xml: documented 'ulimits'
- directory
-
-2003-10-20 22:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vunify.old.sh: as the name ('*old*') is
- saying already: it is old and obsoleted...
-
-2003-10-20 22:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop,
- util-vserver/scripts/vserver.suexec: added ulimits support
-
-2003-10-20 22:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- _EXEC_ULIMIT
-
-2003-10-20 22:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/exec-ulimit.c: work also, when ulimit-directory
- does not exist
-
-2003-10-20 22:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added exec-ulimit
-
-2003-10-20 22:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/exec-ulimit.c: initial checkin
-
-2003-10-20 22:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added exec-ulimit.c
-
-2003-10-20 22:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers.h: Egetrlimit(),Esetrlimit(): added
-
-2003-10-20 21:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/reducecap.c: use capability support from the
- library as far as possible
-
-2003-10-20 21:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/capchroot.c, util-vserver/src/chcontext.c: use
- capability support from the library instead of including
- kernel-headers
-
-2003-10-20 21:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/capabilities.c: initial checkin
-
-2003-10-20 21:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added capability support
-
-2003-10-20 21:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added support for '-DNDEBUG' in
- the library
- added capability.c
-
-2003-10-20 21:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added support for '-DNDEBUG' in the
- library
-
-2003-10-20 18:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added PKGSTATEDIR substitution
-
-2003-10-20 18:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/cfgdirdoc.dtd,
- util-vserver/doc/configuration.xml,
- util-vserver/scripts/vserver-build.apt-rpm,
- util-vserver/scripts/vserver-build.functions,
- util-vserver/scripts/vserver-build.functions.apt,
- util-vserver/scripts/vserver-build.functions.rpm,
- util-vserver/scripts/vserver-setup.functions: initial checkin
-
-2003-10-20 18:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: - removed vserver-init file
- - added vserver-build* files
-
-2003-10-20 18:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: - added
- PKGSTATEDIR, RUNDIR, LIB_VSERVER_SETUP_FUNCTIONS,
- LIB_VSERVER_BUILD_FUNCTIONS* and _VSERVER variables
- - added WORKAROUND_APT_DBPATH variable
-
-2003-10-20 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build: implemented it...
-
-2003-10-20 18:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: added '--sync' and '--verbose'
- options
- sync the 'stop' stage on restart
- fixed invocation of 'vserver-build'
-
-2003-10-20 18:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get, util-vserver/scripts/vrpm: made it
- more mature by using arrays for the vserver-list
-
-2003-10-20 18:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: - moved
- getFileValue/getFileArray from 'vserver.functions' into
- 'functions'
-
-2003-10-20 18:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: - moved getFileValue/getFileArray
- from 'vserver.functions' into 'functions'
- - implemented '/<path>' style vserver specification
- - made getAllVservers more mature by using arrays
-
-2003-10-20 17:57 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-init: moved 'vserver-init'
- functionality into the more general vserver-build*
- files
-
-2003-10-18 02:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: gnit'ified
-
-2003-10-18 02:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added pipe-sync
-
-2003-10-18 02:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: gnit'ified
- added pipe-sync
-
-2003-10-18 02:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chroot-cat.c: minor cosmetical changes
-
-2003-10-18 02:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chroot-rm.c: use "wrapper.h"
-
-2003-10-18 02:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers.h: Eunlink(): added
-
-2003-10-18 02:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- $_VSERVER_BUILD
-
-2003-10-18 02:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: added help/version
- added 'build' option
- made 'running' silently
-
-2003-10-18 02:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-build, util-vserver/src/pipe-sync.c:
- initial checkin
-
-2003-10-18 02:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: - gnit'ified it
-
-2003-10-18 02:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: - gnit'ified it
- - added vserver-build
-
-2003-10-18 02:22 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/Makefile-files: gnit'ified it
-
-2003-10-18 01:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/checkversion.c: restored compatibility for case
- when old syscall interface uses the
- new syscall-number (merged from SYSCALL_SWITCH branch)
-
-2003-10-17 21:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: add '#include "compat.h'" at bottom of
- config.h
- version 0.23.191
-
-2003-10-17 21:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: cleaned up pathsubst rule
-
-2003-10-17 21:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- _CHROOT_CAT
-
-2003-10-17 21:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-init: create link to reverse
- ctx->vserver mapping
-
-2003-10-17 21:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: - removed '#! /bin/bash'
- header
- - added separate CHCONTEXT_DISCONNECT option
- - use default runlevels only when sysv init-style is used
- - create/empty mtab file before mounting the vserver
-
-2003-10-17 21:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: - removed '#! /bin/bash'
- header
- - added separate CHCONTEXT_DISCONNECT option
-
-2003-10-17 21:03 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: - removed '#! /bin/bash'
- header
- - disable interfaces when vserver is not running
-
-2003-10-17 21:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.suexec: removed '#! /bin/bash'
- header
-
-2003-10-17 21:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added chroot-cat
-
-2003-10-17 21:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/vservers.subst: stop vservers only, when they
- do not have the ONSTOP flag
-
-2003-10-17 21:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/sysv/Makefile-files: removed some noise from the
- substrule
-
-2003-10-17 20:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added chroot-cat
-
-2003-10-17 20:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/chroot-cat.c: initial checkin
-
-2003-10-17 20:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers.h: Ereadlink(), Esymlink(): added
-
-2003-10-17 20:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/wrappers-vserver.h: - added Evc_X_getctx()
- wrapper
-
-2003-10-17 20:30 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: - removed '#include <compat.h>';
- it's now in global <config.h>
- - fixed problems with dietlibc's strtok_r() implementation
- - do not set '-o <...>' mount-flag when 'defaults' is the only
- flag
-
-2003-10-17 20:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/save_ctxinfo.c: - removed '#include <compat.h>';
- it's now in global <config.h>
- - use "wrappers.h" functions
- - implemented reverse-symlink file
-
-2003-10-17 20:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getctx.c, util-vserver/lib/getinitpid.c,
- util-vserver/lib/getprocentry-legacy.c: - moved pid==0 handling
- into getprocentry-legacy.c and access /proc/self
- instead of /proc/<self-pid> there; this solves problems when
- 'fakeinit'
- flag is used
- - removed '#include <compat.h>'; it's now in global <config.h>
-
-2003-10-17 00:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added vserver-legacy and
- vserver.suexec
-
-2003-10-17 00:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/ctx-kill.c: kill init-pid
- more sanity checks
-
-2003-10-17 00:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.stop: added support for kill-signal
- sequence
-
-2003-10-17 00:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.functions: added getEnterShell()
- function
- added support for kill-signal sequence
-
-2003-10-17 00:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: - added legacy support
- - added support for
- suexec,restart,condrestart,exec,chkconfig,enter,running
- and status
-
-2003-10-17 00:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- _CTX_KILL, _FILETIME and _VSERVER_LEGACY
-
-2003-10-17 00:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-legacy,
- util-vserver/scripts/vserver.suexec: initial checkin
-
-2003-10-16 15:10 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests, util-vserver/tests/.cvsignore: added
- getinitpid
-
-2003-10-16 15:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added int2str.c
-
-2003-10-16 15:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h: added utilvserver_int2str()
-
-2003-10-16 15:08 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/int2str.c, util-vserver/tests/getinitpid.c:
- initial checkin
-
-2003-10-16 15:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests/getctx.c: removed all traces of <stdio.h>
-
-2003-10-16 15:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests/Makefile-files: generalized building with
- dietlibc
- added getinitpid
-
-2003-10-16 14:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am, util-vserver/src/Makefile-files:
- generalized building with dietlibc
-
-2003-10-16 14:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added getinitpid* files
- added getprocentry* files
- added utils-legacy.h
-
-2003-10-16 14:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getinitpid-compat.hc,
- util-vserver/lib/getinitpid-legacy.hc,
- util-vserver/lib/getinitpid.c,
- util-vserver/lib/getprocentry-legacy.c,
- util-vserver/lib/utils-legacy.h: initial checkin
-
-2003-10-16 14:02 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/save_ctxinfo.c, util-vserver/tests/getctx.c:
- s!vc_X_getcctx()!vc_X_getctx(0)!
-
-2003-10-16 14:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added vc_X_getinitpid()
- pseudo-syscall
- removed vc_X_getcctx() since it is obsoleted by vc_X_getctx(0)
- now
-
-2003-10-16 14:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-legacy.hc: removed all traces of
- <stdio.h> usage
-
-2003-10-16 13:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getctx.c: cleanups
- recognize pid==0 as current pid
-
-2003-10-16 13:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getctx-legacy.hc: use new
- utilvserver_getProcEntry() function
- recall vc_X_getctx_legacy() automatically when buffersize was too
- small
-
-2003-10-16 02:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added substitution for UMOUNT
-
-2003-10-16 02:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: updated
-
-2003-10-16 02:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: small signed/unsigned fixes for
- pedantic warning setups
- give '--help' message out on fd 1 instead of 2
-
-2003-10-16 02:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/save_ctxinfo.c: small signed/unsigned fixes for
- pedantic warning setups
-
-2003-10-16 02:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/new-namespace.c: use "wrappers.h"
- use STACK_START macro
-
-2003-10-16 02:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/listdevip.c: small fixes for pedantic
- warning-setups
-
-2003-10-16 02:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/compat-pivot_root.h,
- util-vserver/src/ctx-kill.c, util-vserver/src/secure-umount.c,
- util-vserver/src/stack-start.h,
- util-vserver/src/wrappers-vserver.h, util-vserver/src/wrappers.h:
- initial checkin
-
-2003-10-16 02:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added secure-umount + ctx-kill
- programs
- added lots of headers
- generalized dietlibc handling
-
-2003-10-16 02:36 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions, util-vserver/scripts/vserver,
- util-vserver/scripts/vserver.functions,
- util-vserver/scripts/vserver.start,
- util-vserver/scripts/vserver.stop: basic 'vserver ... start|stop'
- function should work now...
-
-2003-10-16 02:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- _SECURE_UMOUNT and _UMOUNT
-
-2003-10-16 02:34 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added
- vservers.{functions,stop}
-
-2003-10-16 02:33 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added lots of S_CTX_INFO_* macros
-
-2003-10-16 02:32 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added missing 'lib/internal.h'
-
-2003-10-16 02:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/pathconfig.h.pathsubst: added UMOUNT_PROG macro
-
-2003-10-16 02:31 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added check for UMOUNT
- added pedantic warn-flags
- added template for HAVE_GROWING_STACK check
-
-2003-10-16 02:29 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h: do '#undef inline' for '--std=c99'
- dietlibc compilations
-
-2003-10-14 18:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: use vc_init_internal_legacy() to
- initialize legacy-lib without parsing
- /proc
-
-2003-10-14 18:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/syscall-legacy.hc: added inofficial
- vc_init_internal_legacy() function
-
-2003-10-14 18:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getctx-legacy.hc, util-vserver/lib/syscall.c:
- include "internal.h"
-
-2003-10-14 18:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/internal.h, util-vserver/lib/vserver-internal.h:
- moved declarations of general functions from vserver-internal.h
- into
- internal.h
-
-2003-10-14 16:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getversion-internal.hc,
- util-vserver/lib/int2str.c, util-vserver/lib/internal.h,
- util-vserver/lib/syscall.c: Merged with SYSCALL_SWITCH branch
- (sswitch_merge tag)
-
-2003-10-14 16:09 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: fixed vc_X_getcctx()
-
-2003-10-14 15:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files, util-vserver/src/rpm-fake.c,
- util-vserver/src/save_ctxinfo.c, util-vserver/tests/getctx.c:
- Merged with SYSCALL_SWITCH branch (sswitch_merge tag)
-
-2003-10-14 15:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore, util-vserver/Makefile.am,
- util-vserver/NEWS, util-vserver/compat.h,
- util-vserver/configure.ac, util-vserver/lib/Makefile-files,
- util-vserver/lib/checkversion.c,
- util-vserver/lib/getctx-compat.hc,
- util-vserver/lib/getctx-legacy.hc, util-vserver/lib/getctx.c,
- util-vserver/lib/getversion-internal.hc,
- util-vserver/lib/getversion.c,
- util-vserver/lib/safechroot-internal.hc,
- util-vserver/lib/syscall-compat.hc,
- util-vserver/lib/syscall-legacy.hc, util-vserver/lib/syscall.c,
- util-vserver/lib/uint2str.c, util-vserver/lib/virtual.h,
- util-vserver/lib/vserver-internal.h, util-vserver/lib/vserver.h,
- util-vserver/scripts, util-vserver/scripts/.cvsignore,
- util-vserver/src/Makefile-files, util-vserver/src/capchroot.c,
- util-vserver/src/chbind.c, util-vserver/src/chcontext.c,
- util-vserver/src/rebootmgr.c, util-vserver/src/reducecap.c,
- util-vserver/src/vserver-stat.c,
- util-vserver/sysv/Makefile-files,
- util-vserver/tests/chrootsafe.cc,
- util-vserver/util-vserver.spec.in: Merged with SYSCALL_SWITCH
- branch (sswitch_merge tag)
-
-2003-10-13 20:21 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added rcs2log support
- added checks for MS_MOVE and ctx_t
- define UTMP_GID as 22 for now
-
-2003-10-13 20:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added $(lib_XHDRS) and compat.h
- create /var/run/vservers on 'make install'
- use m4/pkgconfig.am
-
-2003-10-13 19:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/fakerunlevel.c: made it secure (go into chroot
- before accessing file)
- dietlibc'ized
- other cleanups
-
-2003-10-13 19:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: - added chroot-rm
- - compile fakerunlevel with dietlibc
-
-2003-10-13 19:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: made it working...
-
-2003-10-13 19:53 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-init: - removed unused variables
- - added lockfile-creation
- - create symlink from /var/lib/rpm to $rpmdb_path (until all
- apt-versions
- are having the %_dbpath patch)
-
-2003-10-13 19:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added variables
- for _CHROOT_RM and _FAKE_RUNLEVEL
-
-2003-10-13 19:51 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: use new secure-mount syntax
-
-2003-10-13 19:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added statements to install
- vserver.start
-
-2003-10-13 19:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/pkgconfig.am: initial checkin
-
-2003-10-13 19:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/m4/changelog.am: conditionalize RCS2LOG variant also
-
-2003-10-13 19:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: removed ctx_t typedef; this must be
- now done by each package
- inidividually. For util-vserver, the declaration is in compat.h
- and detection in configure.ac
-
-2003-10-13 19:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib, util-vserver/lib/.cvsignore, util-vserver/src,
- util-vserver/src/.cvsignore: updated
-
-2003-10-13 19:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/util-vserver.pc.subst,
- util-vserver/src/chroot-rm.c: initial checkin
-
-2003-10-13 19:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/compat.h, util-vserver/src/compat.h: moved compat.h
- from src/ to toplevel-dir
-
-2003-10-13 19:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getctx.c, util-vserver/lib/syscall.c,
- util-vserver/src/capchroot.c, util-vserver/src/chbind.c,
- util-vserver/src/chcontext.c, util-vserver/src/reducecap.c,
- util-vserver/src/save_ctxinfo.c, util-vserver/src/secure-mount.c,
- util-vserver/src/setctxlimit.c, util-vserver/tests/chrootsafe.cc,
- util-vserver/tests/getctx.c: include "compat.h"
-
-2003-10-13 19:39 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added PGKCONFIG_FILES
-
-2003-10-09 23:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/compat.h: initial checkin
-
-2003-10-09 23:07 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: use absolute default-path for
- /bin/mount since it is required by
- execv() in secure-mount
-
-2003-10-09 23:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/pathconfig.h.pathsubst: added MOUNT_PROG
-
-2003-10-09 23:06 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests/getctx.c: added '#include <stdlib.h>'
-
-2003-10-09 23:05 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/util.h: - added *_cast macros
- - mark writeStr() as __attribute__((__unused__)) to prevent
- compiler
- warnings
- - fixed off-by-one error in WRITE_MSG
-
-2003-10-09 23:04 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: rewrote it completely; it
- emulates now nearly the usual mount(8)
- functionality but provides the enhanced '--secure', '--chdir
- ...',
- ... options which are needed for vservers
-
-2003-10-09 01:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/cfg.txt: added documentation about <interfaces>
- and basic vserver-variables
-
-2003-10-09 01:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver.start: initial checkin
-
-2003-10-09 01:47 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver: complete rewrite
-
-2003-10-09 01:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added some standard-tools to the
- %.pathsubst rules
-
-2003-10-09 01:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added checks for some standard-tools
-
-2003-10-09 01:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/tests, util-vserver/tests/.cvsignore,
- util-vserver/tests/Makefile-files: added getctx
-
-2003-10-09 01:45 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added save_ctxinfo and
- mask2prefix
-
-2003-10-09 01:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src, util-vserver/src/.cvsignore: added mask2prefix
- and save_ctxinfo
-
-2003-10-09 01:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added CVS tags
-
-2003-10-09 01:41 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/getctx.c, util-vserver/lib/int2str.c,
- util-vserver/lib/internal.h, util-vserver/src/mask2prefix.c,
- util-vserver/src/save_ctxinfo.c, util-vserver/tests/getctx.c:
- initial checkin
-
-2003-10-09 01:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added
- _CAPCHROOT, _CHBIND, _CHCONTEXT, _MASK2PREFIX, _SAVE_S_CONTEXT,
- _SAVE_CTXINFO, _VPS and standard-tool macros
-
-2003-10-09 01:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions: added isVserverRunning function
-
-2003-10-09 01:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/vserver.h: added CTX_NOCTX macro
- added getctx()/getcctx() functions
- added ctx_t datatype
-
-2003-10-09 01:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib/Makefile-files: added getctx and int2str +
- helper headers
-
-2003-10-06 22:38 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile.am: added install-rules for the
- distributions
-
-2003-10-06 22:37 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/rh9/apt,
- util-vserver/distrib/rh9/apt/rpmpriorities,
- util-vserver/distrib/rh9/apt/sources.list: initial checkin
-
-2003-10-06 19:49 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in: - fixed Source0 URL
- - added -sysv and -devel subpackages
- - moved /etc/init.d to %_initrddir
-
-2003-10-06 19:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: - added more pathsubst variables
- - added $(scripts_DTA)
-
-2003-10-06 19:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/defaults/rpm/macros: added notes regarding
- %_install_langs and added some other "main"-languages
-
-2003-10-06 19:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/cfg.txt: added apps/vunify documentation
-
-2003-10-06 19:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-init: - added metadata to track if
- root-/pkgcfgbase-links shall be made
- relative
- - added gpg-key import
- - create dev/pts directory
-
-2003-10-06 19:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get: improved '--help'/'--version'
- messages
-
-2003-10-06 19:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst: added PACKAGE_*
- variables
- made DISTRIBDIR "$PKGLIBDIR/distributions" (instead of
- "$PKGLIBDIR")
- added _VRPM
- reordered the _* variables alphabetically
-
-2003-10-06 19:40 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: installed missing files
- (functions, vapt-get*, vrpm*)
-
-2003-10-02 15:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/secure-mount.c: rewrote it completely
-
-2003-10-02 15:35 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: - set default-signal handler for
- SIGCHLD
- - minor cosmetical cleanups
- - use wait4(2) instead of waitpid(2)
-
-2003-10-02 15:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vserver-init: - renamed 'makeInode' to
- 'makeDevEntry' which is more flexible
- - added workaround for
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=106057
- - content of *all* rpm and apt template directories will be
- copied now
- - use '-y' flag on 'apt-get' invocation
-
-2003-10-02 15:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get, util-vserver/scripts/vrpm,
- util-vserver/scripts/vrpm-worker: minor cosmetical cleanups
-
-2003-10-02 15:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vrpm-preload: minor cosmetical cleanups
- added copyright
-
-2003-10-02 15:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vapt-get-worker: minor cosmetical cleanups
- removed debug code
-
-2003-10-02 15:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/functions,
- util-vserver/scripts/util-vserver-vars.pathsubst: added
- workaround for
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=106057
-
-2003-10-01 10:48 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore: updated to reflect changes
- in CVSROOT/cvsignores
-
-2003-10-01 10:44 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/man/Makefile-files: removed last traces of
- newvserver
-
-2003-10-01 10:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac, util-vserver/m4/changelog.am: added
- cvs2cl support
-
-2003-10-01 10:43 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: - changed pathsubst rules so
- that files will not be updated on every
- 'make' anymore
-
-2003-10-01 10:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: - added cvs2cl support
- - changed pathsubst rules so that files will not be updated on
- every
- 'make' anymore
-
-2003-10-01 00:55 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: explicitly cast result of dlsym() to
- prevent compiler warnings
-
-2003-10-01 00:54 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/new-namespace.c: small fix in error-message
-
-2003-10-01 00:50 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rebootmgr.c: fixed small size_t vs. socklen_t
- type-clash
-
-2003-10-01 00:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore, util-vserver/Makefile.am,
- util-vserver/configure.ac: renamed vserver.spec.in to
- util-vserver.spec.in
-
-2003-10-01 00:20 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/man/newvserver.8, util-vserver/newvserver.defaults:
- removed since linuxconf support was dropped
-
-2003-09-30 23:52 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/util-vserver.spec.in, util-vserver/vserver.spec.in:
- renamed vserver.spec.in to util-vserver.spec.in and updated it
-
-2003-09-30 20:46 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/new-namespace.c,
- util-vserver/src/secure-mount.c: modified showVersion() to show
- current version instead of an hardcoded
- value
-
-2003-09-30 20:28 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore: updated
-
-2003-09-30 20:27 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: added general rule for %.pathsubst
- files
- updated file-lists
-
-2003-09-30 20:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added distrib/Makefile
-
-2003-09-30 20:26 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/pathconfig.h.pathsubst: initial checkin
-
-2003-09-30 20:24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: - renamed
- util-vserver-vars.subst to util-vserver-vars.pathsubst; this
- makes it easier to use general makefile-rules
- - removed the old rules for util-vserver-vars
-
-2003-09-30 20:23 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.pathsubst,
- util-vserver/scripts/util-vserver-vars.subst: renamed
- util-vserver-vars.subst to util-vserver-vars.pathsubst; this
- makes it easier to use general makefile-rules
-
-2003-09-30 20:16 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/capchroot.c, util-vserver/src/chbind.c,
- util-vserver/src/chcontext.c, util-vserver/src/fakerunlevel.c,
- util-vserver/src/filetime.c, util-vserver/src/ifspec.c,
- util-vserver/src/rebootmgr.c, util-vserver/src/reducecap.c,
- util-vserver/src/setctxlimit.c, util-vserver/src/showperm.c,
- util-vserver/src/vdu.c, util-vserver/src/vreboot.c,
- util-vserver/src/vserver-stat.c: include <config.h>
-
-2003-09-30 20:13 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vbuild.cc, util-vserver/src/vcheck.cc,
- util-vserver/src/vfiles.cc, util-vserver/src/vunify.cc,
- util-vserver/src/vutil.cc: - renamed 'PACKAGE' class to 'Package'
- to avoid naming-clashes with
- the standard autoconf macro
- - include <config.h>
-
-2003-09-30 20:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/vutil.h, util-vserver/src/vutil.p: renamed
- 'PACKAGE' class to 'Package' to avoid naming-clashes with the
- standard autoconf macro
-
-2003-09-30 19:25 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/rpm-fake.c: - removed debug-output
- - do not fail on umount() errors; CLONE_NEWNS has
- unexpected/strange
- behavior in combination with chroot() so that mountpoints within
- chroots *can* disappear automatically
-
-2003-09-30 19:12 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: use recursive make for distrib: added
- it to SUBDIRS and remove old
- $(distrib_*) variables
-
-2003-09-30 18:17 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib, util-vserver/distrib/.cvsignore: initial
- checkin
-
-2003-09-30 18:11 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/distrib/Makefile-files,
- util-vserver/distrib/Makefile.am, util-vserver/distrib/defaults,
- util-vserver/distrib/defaults/devs,
- util-vserver/distrib/defaults/rpm,
- util-vserver/distrib/defaults/rpm/macros,
- util-vserver/distrib/install-mdk8.2,
- util-vserver/distrib/install-post.sh,
- util-vserver/distrib/install-pre.sh,
- util-vserver/distrib/install-rh7.2,
- util-vserver/distrib/install-rh7.3,
- util-vserver/distrib/install-rh8.0,
- util-vserver/distrib/install-rh9.0,
- util-vserver/distrib/mdk8.2-minimum,
- util-vserver/distrib/rh7.3-minimum,
- util-vserver/distrib/rh8.0-minimum, util-vserver/distrib/rh9,
- util-vserver/distrib/rh9.0-minimum,
- util-vserver/distrib/rh9.0.93, util-vserver/distrib/rh9.0.93/apt,
- util-vserver/distrib/rh9.0.93/apt/rpmpriorities,
- util-vserver/distrib/rh9.0.93/apt/sources.list,
- util-vserver/distrib/rh9.0.93/pkgs,
- util-vserver/distrib/rh9.0.93/pkgs/01,
- util-vserver/distrib/rh9.0.93/pkgs/02,
- util-vserver/distrib/rh9/pkgs, util-vserver/distrib/rh9/pkgs/01,
- util-vserver/distrib/rh9/pkgs/02,
- util-vserver/distrib/sample.conf, util-vserver/distrib/sample.sh:
- Replaced the install-* and *-minimum files with configuration
- files
- for the new vserver-init tool in the scripts directory. To ease
- the
- 'install:'-make target, it is necessarily to use recursive make
- for
- this directory.
-
-2003-09-30 16:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/configure.ac: added dietlibc support
- version 0.23.89.1
-
-2003-09-30 16:00 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore: added Makefile
-
-2003-09-30 15:59 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/lib, util-vserver/lib/.cvsignore,
- util-vserver/scripts, util-vserver/scripts/.cvsignore,
- util-vserver/scripts/functions, util-vserver/scripts/vapt-get,
- util-vserver/scripts/vapt-get-worker,
- util-vserver/scripts/vrpm-preload,
- util-vserver/scripts/vrpm-worker,
- util-vserver/scripts/vserver-init, util-vserver/src,
- util-vserver/src/.cvsignore, util-vserver/src/new-namespace.c,
- util-vserver/src/rpm-fake.c, util-vserver/src/secure-mount.c,
- util-vserver/src/util.h, util-vserver/sysv,
- util-vserver/sysv/.cvsignore, util-vserver/tests,
- util-vserver/tests/.cvsignore: initial checkin
-
-2003-09-30 15:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/Makefile.am: updated to new -devel branch
- added dietlibc support
-
-2003-09-30 15:58 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/src/Makefile-files: added secure-mount,
- new-namespace and rpm-fake.so rules
-
-2003-09-30 15:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/vrpm: replaced with new version
-
-2003-09-30 15:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/util-vserver-vars.subst: added more
- variables
-
-2003-09-30 15:56 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/scripts/Makefile-files: added more substitutions
-
-2003-09-30 12:42 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver/doc/cfg.txt: initial checkin
-
-2003-09-29 22:01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-
- * util-vserver, util-vserver/.cvsignore, util-vserver/AUTHORS,
- util-vserver/Makefile.am, util-vserver/NEWS, util-vserver/README,
- util-vserver/THANKS, util-vserver/configure.ac,
- util-vserver/distrib, util-vserver/distrib/Makefile-files,
- util-vserver/distrib/install-mdk8.2,
- util-vserver/distrib/install-post.sh,
- util-vserver/distrib/install-pre.sh,
- util-vserver/distrib/install-rh7.2,
- util-vserver/distrib/install-rh7.3,
- util-vserver/distrib/install-rh8.0,
- util-vserver/distrib/install-rh9.0,
- util-vserver/distrib/mdk8.2-minimum,
- util-vserver/distrib/rh7.3-minimum,
- util-vserver/distrib/rh8.0-minimum,
- util-vserver/distrib/rh9.0-minimum,
- util-vserver/distrib/sample.conf, util-vserver/distrib/sample.sh,
- util-vserver/doc, util-vserver/doc/FAQ.txt,
- util-vserver/doc/Makefile-files, util-vserver/doc/changelog.txt,
- util-vserver/doc/intro.txt, util-vserver/lib,
- util-vserver/lib/Makefile-files, util-vserver/lib/syscall.c,
- util-vserver/lib/vserver.h, util-vserver/m4,
- util-vserver/m4/changelog.am, util-vserver/m4/ensc_cflags.m4,
- util-vserver/m4/gpgsig.am, util-vserver/m4/validate.am,
- util-vserver/man, util-vserver/man/Makefile-files,
- util-vserver/man/chbind.8, util-vserver/man/chcontext.8,
- util-vserver/man/distrib-info.8, util-vserver/man/newvserver.8,
- util-vserver/man/rebootmgr.8, util-vserver/man/reducecap.8,
- util-vserver/man/vps.8, util-vserver/man/vpstree.8,
- util-vserver/man/vrpm.8, util-vserver/man/vserver-copy.8,
- util-vserver/man/vserver-stat.8, util-vserver/man/vserver.8,
- util-vserver/man/vtop.8, util-vserver/newvserver.defaults,
- util-vserver/scripts, util-vserver/scripts/Makefile-files,
- util-vserver/scripts/distrib-info,
- util-vserver/scripts/rootshell,
- util-vserver/scripts/save_s_context,
- util-vserver/scripts/util-vserver-vars.subst,
- util-vserver/scripts/vkill, util-vserver/scripts/vprofile,
- util-vserver/scripts/vps, util-vserver/scripts/vpstree,
- util-vserver/scripts/vrpm, util-vserver/scripts/vserver,
- util-vserver/scripts/vserver-copy,
- util-vserver/scripts/vserverkillall,
- util-vserver/scripts/vservers.grabinfo.sh,
- util-vserver/scripts/vsysvwrapper, util-vserver/scripts/vtop,
- util-vserver/scripts/vunify.old.sh, util-vserver/src,
- util-vserver/src/Makefile-files, util-vserver/src/capchroot.c,
- util-vserver/src/chbind.c, util-vserver/src/chcontext.c,
- util-vserver/src/fakerunlevel.c, util-vserver/src/filetime.c,
- util-vserver/src/ifspec.c, util-vserver/src/listdevip.c,
- util-vserver/src/parserpmdump.c, util-vserver/src/readlink.c,
- util-vserver/src/rebootmgr.c, util-vserver/src/reducecap.c,
- util-vserver/src/setctxlimit.c, util-vserver/src/showattr.c,
- util-vserver/src/showperm.c, util-vserver/src/vbuild.cc,
- util-vserver/src/vcheck.cc, util-vserver/src/vdu.c,
- util-vserver/src/vfiles.cc, util-vserver/src/vreboot.c,
- util-vserver/src/vserver-stat.c, util-vserver/src/vunify.cc,
- util-vserver/src/vutil.cc, util-vserver/src/vutil.h,
- util-vserver/src/vutil.p, util-vserver/sysv,
- util-vserver/sysv/Makefile-files,
- util-vserver/sysv/rebootmgr.subst,
- util-vserver/sysv/v_gated.subst, util-vserver/sysv/v_httpd.subst,
- util-vserver/sysv/v_named.subst,
- util-vserver/sysv/v_portmap.subst,
- util-vserver/sysv/v_sendmail.subst,
- util-vserver/sysv/v_smb.subst, util-vserver/sysv/v_sshd.subst,
- util-vserver/sysv/v_xinetd.subst,
- util-vserver/sysv/vservers.conf,
- util-vserver/sysv/vservers.subst, util-vserver/tests,
- util-vserver/tests/Makefile-files,
- util-vserver/tests/chrootsafe.cc,
- util-vserver/tests/escaperoot.cc, util-vserver/tests/forkbomb.cc,
- util-vserver/tests/testipc.cc, util-vserver/tests/testlimit.cc,
- util-vserver/tests/testopenf.cc, util-vserver/vserver.spec.in:
- initial checkin
-
-2003-09-29 22:01
-
- * .: New repository initialized by cvs2svn.
-
+++ /dev/null
-Installation Instructions
-*************************
-
-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
-2006 Free Software Foundation, Inc.
-
-This file is free documentation; the Free Software Foundation gives
-unlimited permission to copy, distribute and modify it.
-
-Basic Installation
-==================
-
-Briefly, the shell commands `./configure; make; make install' should
-configure, build, and install this package. The following
-more-detailed instructions are generic; see the `README' file for
-instructions specific to this package.
-
- The `configure' shell script attempts to guess correct values for
-various system-dependent variables used during compilation. It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions. Finally, it creates a shell script `config.status' that
-you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
-
- It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-file=config.cache' or simply `-C') that saves
-the results of its tests to speed up reconfiguring. Caching is
-disabled by default to prevent problems with accidental use of stale
-cache files.
-
- If you need to do unusual things to compile the package, please try
-to figure out how `configure' could check whether to do them, and mail
-diffs or instructions to the address given in the `README' so they can
-be considered for the next release. If you are using the cache, and at
-some point `config.cache' contains results you don't want to keep, you
-may remove or edit it.
-
- The file `configure.ac' (or `configure.in') is used to create
-`configure' by a program called `autoconf'. You need `configure.ac' if
-you want to change it or regenerate `configure' using a newer version
-of `autoconf'.
-
-The simplest way to compile this package is:
-
- 1. `cd' to the directory containing the package's source code and type
- `./configure' to configure the package for your system.
-
- Running `configure' might take a while. While running, it prints
- some messages telling which features it is checking for.
-
- 2. Type `make' to compile the package.
-
- 3. Optionally, type `make check' to run any self-tests that come with
- the package.
-
- 4. Type `make install' to install the programs and any data files and
- documentation.
-
- 5. You can remove the program binaries and object files from the
- source code directory by typing `make clean'. To also remove the
- files that `configure' created (so you can compile the package for
- a different kind of computer), type `make distclean'. There is
- also a `make maintainer-clean' target, but that is intended mainly
- for the package's developers. If you use it, you may have to get
- all sorts of other programs in order to regenerate files that came
- with the distribution.
-
-Compilers and Options
-=====================
-
-Some systems require unusual options for compilation or linking that the
-`configure' script does not know about. Run `./configure --help' for
-details on some of the pertinent environment variables.
-
- You can give `configure' initial values for configuration parameters
-by setting variables in the command line or in the environment. Here
-is an example:
-
- ./configure CC=c99 CFLAGS=-g LIBS=-lposix
-
- *Note Defining Variables::, for more details.
-
-Compiling For Multiple Architectures
-====================================
-
-You can compile the package for more than one kind of computer at the
-same time, by placing the object files for each architecture in their
-own directory. To do this, you can use GNU `make'. `cd' to the
-directory where you want the object files and executables to go and run
-the `configure' script. `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'.
-
- With a non-GNU `make', it is safer to compile the package for one
-architecture at a time in the source code directory. After you have
-installed the package for one architecture, use `make distclean' before
-reconfiguring for another architecture.
-
-Installation Names
-==================
-
-By default, `make install' installs the package's commands under
-`/usr/local/bin', include files under `/usr/local/include', etc. You
-can specify an installation prefix other than `/usr/local' by giving
-`configure' the option `--prefix=PREFIX'.
-
- You can specify separate installation prefixes for
-architecture-specific files and architecture-independent files. If you
-pass the option `--exec-prefix=PREFIX' to `configure', the package uses
-PREFIX as the prefix for installing programs and libraries.
-Documentation and other data files still use the regular prefix.
-
- In addition, if you use an unusual directory layout you can give
-options like `--bindir=DIR' to specify different values for particular
-kinds of files. Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them.
-
- If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving `configure' the
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
-
-Optional Features
-=================
-
-Some packages pay attention to `--enable-FEATURE' options to
-`configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
-is something like `gnu-as' or `x' (for the X Window System). The
-`README' should mention any `--enable-' and `--with-' options that the
-package recognizes.
-
- For packages that use the X Window System, `configure' can usually
-find the X include and library files automatically, but if it doesn't,
-you can use the `configure' options `--x-includes=DIR' and
-`--x-libraries=DIR' to specify their locations.
-
-Specifying the System Type
-==========================
-
-There may be some features `configure' cannot figure out automatically,
-but needs to determine by the type of machine the package will run on.
-Usually, assuming the package is built to be run on the _same_
-architectures, `configure' can figure that out, but if it prints a
-message saying it cannot guess the machine type, give it the
-`--build=TYPE' option. TYPE can either be a short name for the system
-type, such as `sun4', or a canonical name which has the form:
-
- CPU-COMPANY-SYSTEM
-
-where SYSTEM can have one of these forms:
-
- OS KERNEL-OS
-
- See the file `config.sub' for the possible values of each field. If
-`config.sub' isn't included in this package, then this package doesn't
-need to know the machine type.
-
- If you are _building_ compiler tools for cross-compiling, you should
-use the option `--target=TYPE' to select the type of system they will
-produce code for.
-
- If you want to _use_ a cross compiler, that generates code for a
-platform different from the build platform, you should specify the
-"host" platform (i.e., that on which the generated programs will
-eventually be run) with `--host=TYPE'.
-
-Sharing Defaults
-================
-
-If you want to set default values for `configure' scripts to share, you
-can create a site shell script called `config.site' that gives default
-values for variables like `CC', `cache_file', and `prefix'.
-`configure' looks for `PREFIX/share/config.site' if it exists, then
-`PREFIX/etc/config.site' if it exists. Or, you can set the
-`CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all `configure' scripts look for a site script.
-
-Defining Variables
-==================
-
-Variables not defined in a site shell script can be set in the
-environment passed to `configure'. However, some packages may run
-configure again during the build, and the customized values of these
-variables may be lost. In order to avoid this problem, you should set
-them in the `configure' command line, using `VAR=value'. For example:
-
- ./configure CC=/usr/local2/bin/gcc
-
-causes the specified `gcc' to be used as the C compiler (unless it is
-overridden in the site shell script).
-
-Unfortunately, this technique does not work for `CONFIG_SHELL' due to
-an Autoconf bug. Until the bug is fixed you can use this workaround:
-
- CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
-
-`configure' Invocation
-======================
-
-`configure' recognizes the following options to control how it operates.
-
-`--help'
-`-h'
- Print a summary of the options to `configure', and exit.
-
-`--version'
-`-V'
- Print the version of Autoconf used to generate the `configure'
- script, and exit.
-
-`--cache-file=FILE'
- Enable the cache: use and save the results of the tests in FILE,
- traditionally `config.cache'. FILE defaults to `/dev/null' to
- disable caching.
-
-`--config-cache'
-`-C'
- Alias for `--cache-file=config.cache'.
-
-`--quiet'
-`--silent'
-`-q'
- Do not print messages saying which checks are being made. To
- suppress all normal output, redirect it to `/dev/null' (any error
- messages will still be shown).
-
-`--srcdir=DIR'
- Look for the package's source code in directory DIR. Usually
- `configure' can determine that directory automatically.
-
-`configure' also accepts some other, not widely useful, options. Run
-`configure --help' for more details.
-
--- /dev/null
+# $Id$
+# $URL$
+#
+WEBFETCH := wget
+SHA1SUM := sha1sum
+
+ALL += util-vserver
+util-vserver-URL := http://build.planet-lab.org/third-party/util-vserver-0.30.216-pre2883.tar.bz2
+util-vserver-SHA1SUM := 232282d9093adecb5b365cc8afb669fd2910c5f9
+util-vserver := $(notdir $(util-vserver-URL))
+
+all: $(ALL)
+.PHONY: all
+
+##############################
+define download_target
+$(1): $($(1))
+.PHONY: $($(1))
+$($(1)):
+ @if [ ! -e "$($(1))" ] ; then echo "$(WEBFETCH) $($(1)-URL)" ; $(WEBFETCH) $($(1)-URL) ; fi
+ @if [ ! -e "$($(1))" ] ; then echo "Could not download source file: $($(1)) does not exist" ; exit 1 ; fi
+ @if test "$$$$($(SHA1SUM) $($(1)) | awk '{print $$$$1}')" != "$($(1)-SHA1SUM)" ; then \
+ echo "sha1sum of the downloaded $($(1)) does not match the one from 'Makefile'" ; \
+ echo "Local copy: $$$$($(SHA1SUM) $($(1)))" ; \
+ echo "In Makefile: $($(1)-SHA1SUM)" ; \
+ false ; \
+ else \
+ ls -l $($(1)) ; \
+ fi
+endef
+
+$(eval $(call download_target,util-vserver))
+
+sources: $(ALL)
+.PHONY: sources
+
+####################
+# default - overridden by the build
+SPECFILE = util-vserver.spec
+
+PWD=$(shell pwd)
+PREPARCH ?= noarch
+RPMDIRDEFS = --define "_sourcedir $(PWD)" --define "_builddir $(PWD)" --define "_srcrpmdir $(PWD)" --define "_rpmdir $(PWD)"
+trees: sources
+ rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bp --target $(PREPARCH) $(SPECFILE)
+
+srpm: sources
+ rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bs $(SPECFILE)
+
+TARGET ?= $(shell uname -m)
+rpm: sources
+ rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps --target $(TARGET) -bb $(SPECFILE)
+
+clean:
+ rm -f *.rpm *.tgz *.bz2 *.gz
+
+++%: varname=$(subst +,,$@)
+++%:
+ @echo "$(varname)=$($(varname))"
++%: varname=$(subst +,,$@)
++%:
+ @echo "$($(varname))"
+++ /dev/null
-## $Id: Makefile.am 2482 2007-01-29 23:37:07Z dhozac $
-
-# Copyright (C) 2003,2004,2005,2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-
-ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = . distrib python
-
-SVN2CL_AMFLAGS = $(SVN2CL_TAG) --authors=svnusers.map
-SVN2CL_ALLFLAGS := $(SVN2CL_AMFLAGS) $(SVN2CL_FLAGS)
-
-confdir = $(sysconfdir)/vservers
-confdefaultsdir = $(confdir)/.defaults
-sbincfgdir = $(sbindir)
-legacydir = $(pkglibdir)/legacy
-
-include_HEADERS =
-noinst_HEADERS = $(ENSC_VECTOR_HDRS) \
- compat.h compat-c99.h
-
-noinst_LIBRARIES = $(ENSC_VECTOR_LIBS)
-lib_LIBRARIES =
-lib_LTLIBRARIES =
-pkglib_LTLIBRARIES =
-
-pkglib_SCRIPTS =
-pkglib_DATA = FEATURES.txt
-pkglib_PROGRAMS =
-legacy_SCRIPTS =
-legacy_PROGRAMS =
-
-sbin_SCRIPTS =
-sbin_PROGRAMS =
-noinst_PROGRAMS =
-noinst_DATA =
-
-initrd_SCRIPTS =
-sysconf_DATA =
-
-DIETPROGS = $(LIBENSCVECTOR_DIET)
-
-BUILT_SOURCES = pathconfig.h \
- .fixups
-
-man_MANS =
-
-kernel_HDRS = $(wildcard kernel/*.h)
-
-
-EXTRA_PROGRAMS =
-EXTRA_DIST = pathconfig.h.pathsubst \
- util-vserver.spec \
- THANKS REQUIREMENTS \
- $(kernel_HDRS)
-
-check_PROGRAMS =
-check_SCRIPTS =
-
-TESTS_DEBUG = no
-TESTS =
-TESTS_ENVIRONMENT = ensc_use_expensive_tests="$(ENSC_USE_EXPENSIVE_TESTS)" \
- ensc_test_debug="$(TESTS_DEBUG)"
-
-AM_CPPFLAGS = -I $(top_srcdir)/lib -I $(top_srcdir)/ensc_wrappers \
- -D_GNU_SOURCE -D_REENTRANT $(RELEASE_CPPFLAGS)
-
-CLEANFILES = $(BUILT_SOURCES) \
- .*.pathsubst.stamp */.*.pathsubst.stamp */*/.*.pathsubst.stamp \
- pathconfig.h .fixups
-
-DISTCLEANFILES = FEATURES.txt
-
-
-AM_INSTALLCHECK_STD_OPTIONS_EXEMPT =
-
-if USE_DIETLIBC
-DIET_CC := $(DIET) $(DIETFLAGS) $(CC)
-VSERVER_LDFLGS := -static
-else
-VSERVER_LDFLGS :=
-endif
-
-if USE_DIETLIBC_COMPAT
-DIET_COMPAT_LDADDS = -lcompat
-else
-DIET_COMPAT_LDADDS =
-endif
-
-VSERVER_LDADDS = $(LIBVSERVER) $(DIET_COMPAT_LDADDS)
-
-silent.%: FORCE
- @t=$$($(MKTEMP) -d /tmp/build.XXXXXX) && \
- trap "rm -rf $$t" EXIT && \
- mkfifo $$t/fifo && \
- ( grep --line-buffered -v \
- -e ': In function' \
- -e 'your code still has assertions enabled' \
- -e ' is obsoleted' \
- -e 'warning: #warning' <$$t/fifo & ) && \
- exec 2>$$t/fifo && \
- $(MAKE) '$*' -s >/dev/null
-
-pathsubst_RULES = s!@'PKGLIBDIR'@!$(pkglibdir)!g; \
- s!@'LEGACYDIR'@!$(legacydir)!g; \
- s!@'SBINDIR'@!$(sbindir)!g; \
- s!@'CONFDIR'@!$(confdir)!g; \
- s!@'SYSCONFDIR'@!$(sysconfdir)!g; \
- s!@'PKGSTATEDIR'@!$(pkgstatedir)!g; \
- s!@'PKGCACHEDIR'@!$(pkgcachedir)!g; \
- s!@'PKGSTATEREVDIR'@!$(pkgstaterevdir)!g; \
- s!@'VSERVERDIR'@!$(vserverdir)!g; \
- s!@'VSERVERPKGDIR'@!$(vserverpkgdir)!g; \
- s!@'VSERVERPKGDIR'@!$(vserverpkgdir)!g; \
- s!@'VSHELPERSTATEDIR'@!$(vshelperstatedir)!g; \
- s!@'INITRDDIR'@!$(initrddir)!g; \
- s!@'LIBDIR'@!$(libdir)!g; \
- s!@'MANDIR'@!$(mandir)!g; \
- s!@'INCLUDEDIR'@!$(includedir)!g; \
- s!@'PACKAGE'@!$(PACKAGE)!g; \
- s!@'PACKAGE_BUGREPORT'@!$(PACKAGE_BUGREPORT)!g; \
- s!@'PACKAGE_NAME'@!$(PACKAGE_NAME)!g; \
- s!@'PACKAGE_STRING'@!$(PACKAGE_STRING)!g; \
- s!@'PACKAGE_TARNAME'@!$(PACKAGE_TARNAME)!g; \
- s!@'PACKAGE_VERSION'@!$(PACKAGE_VERSION)!g; \
- s!@'ENSC_HAVE_C99_COMPILER_TRUE'@!\@ENSC_HAVE_C99_COMPILER_TRUE@ !g; \
- s!@'ENSC_HAVE_C99_COMPILER_FALSE'@!\@ENSC_HAVE_C99_COMPILER_FALSE@ !g; \
- s!@'ENSC_HAVE_CXX_COMPILER_TRUE'@!\@ENSC_HAVE_CXX_COMPILER_TRUE@ !g; \
- s!@'ENSC_HAVE_CXX_COMPILER_FALSE'@!\@ENSC_HAVE_CXX_COMPILER_FALSE@ !g; \
- s!@'ENSC_HAVE_LIBNL_TRUE'@!\@ENSC_HAVE_LIBNL_TRUE@ !g; \
- s!@'ENSC_HAVE_LIBNL_FALSE'@!\@ENSC_HAVE_LIBNL_FALSE@ !g; \
- $(ENSC_PATHPROG_SED)
-
-pathconfig.h: .pathconfig.h.pathsubst.stamp
-.%.pathsubst.stamp: %.pathsubst Makefile
- @mkdir -p $$(dirname '$@')
- @echo "$(SED) -e '...' $*.pathsubst >$*"
- @$(SED) -e '$(pathsubst_RULES)' '$<' >'$@.tmp'
- @-chmod --reference='$<' '$@.tmp'
- @if cmp -s '$@.tmp' '$*'; then \
- echo "... no changes, reusing old version"; \
- rm -f '$@.tmp'; \
- else \
- rm -f '$*'; mv '$@.tmp' '$*'; \
- fi
- @chmod a-w '$*'
- @touch '$@'
-
-pkgcachedir = $(localstatedir)/cache/vservers
-pkgstatedir = $(localstatedir)/run/vservers
-pkgstaterevdir = $(confdefaultsdir)/run.rev
-vserverpkgdir = $(vserverdir)/.pkg
-vshelperstatedir = $(localstatedir)/run/vshelper
-
-fix_SCRPTS = $(addprefix $(pkglibdir)/, $(notdir $(pkglib_SCRIPTS))) \
- $(addprefix $(legacydir)/, $(notdir $(legacy_SCRIPTS))) \
- $(addprefix $(sbindir)/, $(notdir $(sbin_SCRIPTS))) \
- $(addprefix $(initrddir)/, $(notdir $(initrd_SCRIPTS)))
-
-update-doc: doc
- $(top_srcdir)/update-doc
-
-install-data-hook: install-fix-script-paths install-create-dirs
-
-install-create-dirs:
- $(mkinstalldirs) -m 0755 $(DESTDIR)$(pkgstatedir) $(DESTDIR)$(pkgstatedir).rev $(DESTDIR)$(vshelperstatedir)
- $(mkinstalldirs) -m 0700 $(DESTDIR)$(pkgcachedir)
- $(mkinstalldirs) -m 0755 $(DESTDIR)$(confdefaultsdir)
- f=$(DESTDIR)$(confdefaultsdir)/vdirbase; test -e "$$f" || ln -sf '$(vserverdir)' "$$f"
- f=$(DESTDIR)$(confdefaultsdir)/cachebase; test -e "$$f" || ln -sf '$(pkgcachedir)' "$$f"
- f=$(DESTDIR)$(pkgstaterevdir); test -e "$$f" || ln -sf '$(pkgstatedir).rev' "$$f"
-
-install-fix-script-paths:
- test "/usr/lib/util-vserver" = "$(pkglibdir)" || \
- for i in $(fix_SCRPTS); do \
- f="$(DESTDIR)$$i"; \
- $(SED) -e 's!/usr/lib/util-vserver!$(pkglibdir)!g' "$$f" >"$$f.tmp"; \
- $(CMP) -s "$$f.tmp" "$$f" || cat "$$f.tmp" >"$$f"; \
- rm -f "$$f.tmp"; \
- done
-
-install-distribution: _install-vserverdir _install-vshelperlink
-
-_install-vshelperlink:
- $(mkinstalldirs) $(DESTDIR)/sbin
- ln -sf ..$(pkglibdir)/vshelper $(DESTDIR)/sbin/vshelper
-
-_install-vserverdir:
- $(mkinstalldirs) $(DESTDIR)$(vserverdir) $(DESTDIR)$(vserverpkgdir)
-
-
-.fixups: config.status util-vserver.spec
- chmod a-w util-vserver.spec
- touch $@
-
-if USE_DIETLIBC
-$(addsuffix $(EXEEXT), $(DIETPROGS)) \
-$(addsuffix $(OBJEXT), $(DIETPROGS)) \
- : CC=$(DIET_CC)
-else !USE_DIETLIBC
-nodist_lib_dietlibc_not_enabled_error_a_SOURCES = \
- lib-dietlibc-not-enabled-error.c
-endif
-
-install-exec-hook:
- cd $(DESTDIR)$(sbindir) && $(LN_S)f vuseradd vadduser
- cd $(DESTDIR)$(sbindir) && $(LN_S)f vuserdel vdeluser
- mkdir -p $(DESTDIR)/bin
- cd $(DESTDIR)/bin && $(LN_S)f ../$(sbindir)/vsh
-
-install-data-hook:
- install -D -m 644 scripts/vcached.logrotate $(DESTDIR)/$(sysconfdir)/logrotate.d/vcached
- install -D -m 644 scripts/vcached.cron $(DESTDIR)/$(sysconfdir)/cron.d/vcached
-
-include $(top_srcdir)/lib/Makefile-files
-include $(top_srcdir)/src/Makefile-files
-include $(top_srcdir)/doc/Makefile-files
-include $(top_srcdir)/man/Makefile-files
-include $(top_srcdir)/scripts/Makefile-files
-include $(top_srcdir)/tests/Makefile-files
-include $(top_srcdir)/sysv/Makefile-files
-include $(top_srcdir)/contrib/Makefile-files
-include $(top_srcdir)/ensc_vector/Makefile-files
-include $(top_srcdir)/ensc_wrappers/Makefile-files
-include $(top_srcdir)/ensc_fmt/Makefile-files
-include $(top_srcdir)/lib_internal/Makefile-files
-include $(top_srcdir)/vserver-start/Makefile-files
-include $(top_srcdir)/gentoo/Makefile-files
-
-include $(top_srcdir)/m4/gpgsig.am
-include $(top_srcdir)/m4/validate.am
-include $(top_srcdir)/m4/changelog.am
-include $(top_srcdir)/m4/pkgconfig.am
-include $(top_srcdir)/m4/libsel.am
-include $(top_srcdir)/m4/install-notify.am
-
-.PHONY: FORCE update-doc
+++ /dev/null
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright (C) 2003,2004,2005,2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-
-
-
-
-
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-pkglib_PROGRAMS = src/capchroot$(EXEEXT) src/chain-echo$(EXEEXT) \
- src/chcontext-compat$(EXEEXT) src/check-unixfile$(EXEEXT) \
- src/chroot-sh$(EXEEXT) src/fakerunlevel$(EXEEXT) \
- src/filetime$(EXEEXT) src/keep-ctx-alive$(EXEEXT) \
- src/lockfile$(EXEEXT) src/readlink$(EXEEXT) \
- src/save_ctxinfo$(EXEEXT) src/secure-mount$(EXEEXT) \
- src/mask2prefix$(EXEEXT) src/exec-ulimit$(EXEEXT) \
- src/rpm-fake-resolver$(EXEEXT) src/vshelper-sync$(EXEEXT) \
- src/sigexec$(EXEEXT) src/chbind-compat$(EXEEXT) \
- src/vsysctl$(EXEEXT) src/h2ext$(EXEEXT) $(am__EXEEXT_8) \
- $(am__EXEEXT_1) $(am__EXEEXT_9) $(am__EXEEXT_10)
-legacy_PROGRAMS = src/ifspec$(EXEEXT) src/listdevip$(EXEEXT) \
- src/parserpmdump$(EXEEXT) src/rebootmgr$(EXEEXT) \
- src/showperm$(EXEEXT) src/vreboot$(EXEEXT)
-sbin_PROGRAMS = src/exec-cd$(EXEEXT) src/lsxid$(EXEEXT) \
- src/chxid$(EXEEXT) src/vps$(EXEEXT) src/showattr$(EXEEXT) \
- src/setattr$(EXEEXT) src/reducecap$(EXEEXT) src/vdu$(EXEEXT) \
- src/vattribute$(EXEEXT) src/vcontext$(EXEEXT) \
- src/vlimit$(EXEEXT) src/vkill$(EXEEXT) src/vnamespace$(EXEEXT) \
- src/vrsetup$(EXEEXT) src/vsched$(EXEEXT) \
- src/vserver-stat$(EXEEXT) src/vserver-info$(EXEEXT) \
- src/vuname$(EXEEXT) src/vsh$(EXEEXT) src/vwait$(EXEEXT) \
- src/ncontext$(EXEEXT) src/nattribute$(EXEEXT) \
- src/naddress$(EXEEXT) src/vdevmap$(EXEEXT) src/vtag$(EXEEXT) \
- $(am__EXEEXT_11) $(am__EXEEXT_12) $(am__EXEEXT_13)
-noinst_PROGRAMS = tests/escaperoot$(EXEEXT) tests/forkbomb$(EXEEXT) \
- tests/testipc$(EXEEXT) tests/testlimit$(EXEEXT) \
- tests/testopenf$(EXEEXT) $(am__EXEEXT_6)
-EXTRA_PROGRAMS = $(am__EXEEXT_1)
-check_PROGRAMS = lib/testsuite/cflags$(EXEEXT) \
- lib/testsuite/personality$(EXEEXT) lib/testsuite/fmt$(EXEEXT) \
- lib/testsuite/parselimit$(EXEEXT) $(am__EXEEXT_3) \
- $(am__EXEEXT_4) ensc_vector/testsuite/test1$(EXEEXT) \
- ensc_vector/testsuite/test2$(EXEEXT) \
- lib_internal/testsuite/command$(EXEEXT) $(am__EXEEXT_5)
-TESTS = lib/testsuite/cflags$(EXEEXT) \
- lib/testsuite/personality$(EXEEXT) lib/testsuite/fmt$(EXEEXT) \
- lib/testsuite/parselimit$(EXEEXT) $(am__EXEEXT_4) \
- $(am__EXEEXT_15) $(am__EXEEXT_1) \
- ensc_vector/testsuite/test1$(EXEEXT) \
- ensc_vector/testsuite/test2$(EXEEXT) $(am__EXEEXT_16)
-DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \
- $(noinst_HEADERS) $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
- $(srcdir)/config.h.in \
- $(srcdir)/ensc_vector/testsuite/Makefile-files \
- $(srcdir)/lib/apidoc/Makefile-files \
- $(srcdir)/lib/testsuite/Makefile-files \
- $(srcdir)/util-vserver.spec.in $(top_srcdir)/configure \
- $(top_srcdir)/contrib/Makefile-files \
- $(top_srcdir)/doc/Makefile-files \
- $(top_srcdir)/ensc_fmt/Makefile-files \
- $(top_srcdir)/ensc_vector/Makefile-files \
- $(top_srcdir)/ensc_wrappers/Makefile-files \
- $(top_srcdir)/gentoo/Makefile-files \
- $(top_srcdir)/lib/Makefile-files \
- $(top_srcdir)/lib/apidoc/Doxyfile.in \
- $(top_srcdir)/lib_internal/Makefile-files \
- $(top_srcdir)/lib_internal/testsuite/Makefile-files \
- $(top_srcdir)/m4/changelog.am $(top_srcdir)/m4/gpgsig.am \
- $(top_srcdir)/m4/install-notify.am $(top_srcdir)/m4/libsel.am \
- $(top_srcdir)/m4/pkgconfig.am $(top_srcdir)/m4/validate.am \
- $(top_srcdir)/man/Makefile-files \
- $(top_srcdir)/scripts/Makefile-files \
- $(top_srcdir)/src/Makefile-files \
- $(top_srcdir)/src/testsuite/Makefile-files \
- $(top_srcdir)/sysv/Makefile-files \
- $(top_srcdir)/tests/Makefile-files \
- $(top_srcdir)/vserver-start/Makefile-files AUTHORS COPYING \
- ChangeLog INSTALL NEWS THANKS compile config.guess config.sub \
- depcomp install-sh ltmain.sh missing
-@ENSC_HAVE_C99_COMPILER_TRUE@am__append_1 = lib/syscall_adddlimit-v13.hc \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/syscall_adddlimit.c \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/syscall_getdlimit-v13.hc \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/syscall_getdlimit.c \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/syscall_remdlimit-v13.hc \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/syscall_remdlimit.c \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/syscall_setdlimit-v13.hc \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/syscall_setdlimit.c
-
-@USE_DIETLIBC_TRUE@am__append_2 = $(LIBVSERVER_DIET)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@am__append_3 = src/vhashify
-@ENSC_HAVE_BEECRYPT_TRUE@@ENSC_HAVE_C99_COMPILER_TRUE@am__append_4 = src/vhashify
-@ENSC_HAVE_C99_COMPILER_TRUE@am__append_5 = src/vdlimit
-@ENSC_HAVE_LIBNL_TRUE@am__append_6 = src/vip6-autod
-@ENSC_HAVE_BEECRYPT_TRUE@@ENSC_HAVE_C99_COMPILER_TRUE@am__append_7 = src/testsuite/hashcalc \
-@ENSC_HAVE_BEECRYPT_TRUE@@ENSC_HAVE_C99_COMPILER_TRUE@ src/testsuite/hashcalc-plain
-
-@ENSC_HAVE_BEECRYPT_TRUE@@ENSC_HAVE_C99_COMPILER_TRUE@am__append_8 = src/testsuite/hashcalc-plain.sh \
-@ENSC_HAVE_BEECRYPT_TRUE@@ENSC_HAVE_C99_COMPILER_TRUE@ src/testsuite/hashcalc.sh
-
-@HAVE_XSLTP_TRUE@am__append_9 = $(doc_gen_DOCS)
-@HAVE_XSLTPROC_TRUE@@HAVE_XSLTP_FALSE@am__append_10 = $(doc_gen_DOCS)
-@HAVE_SYSV_INIT_TRUE@am__append_11 = $(sysv_conf_DTA)
-@HAVE_SYSV_INIT_TRUE@am__append_12 = $(sysv_src_SCRPTS) \
-@HAVE_SYSV_INIT_TRUE@ $(sysv_gen_SCRPTS)
-
-@ENSC_USE_GLIBC_TRUE@am__append_13 = $(LIBENSCVECTOR_GLIBC)
-@ENSC_USE_DIETLIBC_TRUE@am__append_14 = $(LIBENSCVECTOR_DIET)
-@USE_DIETLIBC_TRUE@am__append_15 = $(LIBINTERNAL_DIET)
-@ENSC_HAVE_C99_COMPILER_TRUE@am__append_16 = lib_internal/testsuite/filecfg-ml \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/copy \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/isnumber \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/isnumber-gnu \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/sigbus \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/sigbus-gnu \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/matchlist \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/matchlist-gnu
-
-@ENSC_HAVE_C99_COMPILER_TRUE@am__append_17 = lib_internal/testsuite/filecfg-ml \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/copy-check \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/isnumber \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/isnumber-gnu \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/sigbus \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/sigbus-gnu \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/matchlist \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/matchlist-gnu
-
-@ENSC_HAVE_C99_COMPILER_TRUE@am__append_18 = vserver-start/vserver.start.bin
-@ENSC_HAVE_C99_COMPILER_TRUE@am__append_19 = vserver-start/vserver.start.bin
-@HAVE_GENTOO_INIT_TRUE@am__append_20 = $(gentoo_src_SCRPTS)
-@HAVE_GENTOO_INIT_TRUE@am__append_21 = gentoo/bash-wrapper
-subdir = .
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ensc_cflags.m4 \
- $(top_srcdir)/m4/ensc_changelog.m4 \
- $(top_srcdir)/m4/ensc_cxxcompiler.m4 \
- $(top_srcdir)/m4/ensc_dietlibc.m4 \
- $(top_srcdir)/m4/ensc_dietlibc_compat.m4 \
- $(top_srcdir)/m4/ensc_e2fscheck.m4 \
- $(top_srcdir)/m4/ensc_initrddir.m4 \
- $(top_srcdir)/m4/ensc_pathprog.m4 \
- $(top_srcdir)/m4/ensc_personality.m4 \
- $(top_srcdir)/m4/ensc_release.m4 \
- $(top_srcdir)/m4/ensc_syscall.m4 \
- $(top_srcdir)/m4/ensc_syscallnr.m4 \
- $(top_srcdir)/m4/ensc_uv_vrootdir.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno config.status.lineno
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES = util-vserver.spec lib/apidoc/Doxyfile
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libdir)" \
- "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(legacydir)" \
- "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(sbindir)" \
- "$(DESTDIR)$(initrddir)" "$(DESTDIR)$(legacydir)" \
- "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(sbindir)" \
- "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(pkgconfdir)" \
- "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(sysconfdir)" \
- "$(DESTDIR)$(includedir)"
-libLIBRARIES_INSTALL = $(INSTALL_DATA)
-LIBRARIES = $(lib_LIBRARIES) $(noinst_LIBRARIES)
-ARFLAGS = cru
-lib_dietlibc_not_enabled_error_a_AR = $(AR) $(ARFLAGS)
-lib_dietlibc_not_enabled_error_a_LIBADD =
-@ENSC_USE_DIETLIBC_FALSE@nodist_lib_dietlibc_not_enabled_error_a_OBJECTS = lib-dietlibc-not-enabled-error.$(OBJEXT)
-@ENSC_USE_DIETLIBC_TRUE@@USE_DIETLIBC_FALSE@nodist_lib_dietlibc_not_enabled_error_a_OBJECTS = lib-dietlibc-not-enabled-error.$(OBJEXT)
-lib_dietlibc_not_enabled_error_a_OBJECTS = \
- $(nodist_lib_dietlibc_not_enabled_error_a_OBJECTS)
-lib_glibc_not_enabled_error_a_AR = $(AR) $(ARFLAGS)
-lib_glibc_not_enabled_error_a_LIBADD =
-@ENSC_USE_GLIBC_FALSE@nodist_lib_glibc_not_enabled_error_a_OBJECTS = \
-@ENSC_USE_GLIBC_FALSE@ lib-glibc-not-enabled-error.$(OBJEXT)
-lib_glibc_not_enabled_error_a_OBJECTS = \
- $(nodist_lib_glibc_not_enabled_error_a_OBJECTS)
-lib_libvserver_a_AR = $(AR) $(ARFLAGS)
-lib_libvserver_a_LIBADD =
-am__lib_libvserver_a_SOURCES_DIST = lib/syscall.c lib/checkversion.c \
- lib/checkconfig.c lib/isdirectory.c lib/isfile.c lib/islink.c \
- lib/getnbipv4root.c lib/getversion.c lib/capabilities.c \
- lib/getfilecontext.c lib/getinsecurebcaps.c lib/getxidtype.c \
- lib/isdynamicxid.c lib/issupported.c lib/issupportedstring.c \
- lib/listparser_uint32.c lib/listparser_uint64.c \
- lib/personalityflag.c lib/personalityflag_list.c \
- lib/personalitytype.c lib/syscall-syscall.c \
- lib/val2text-t2v-uint32.c lib/val2text-t2v-uint64.c \
- lib/val2text-v2t-uint32.c lib/val2text-v2t-uint64.c \
- lib/parselimit.c lib/planetlab.c lib/getprocentry-legacy.c \
- lib/cflags-compat.c lib/cflags_list-compat.c \
- lib/comparevserverbyid.c lib/createskeleton.c \
- lib/getvserverbyctx.c lib/getvserverbyctx-compat.hc \
- lib/getvserverbyctx-v13.hc lib/getvservercfgstyle.c \
- lib/getvserverappdir.c lib/getvservercfgdir.c \
- lib/getvserverctx.c lib/getvservername.c lib/getvservervdir.c \
- lib/xidopt2xid.c lib/nidopt2nid.c lib/tagopt2tag.c \
- lib/syscall_rlimit.c lib/syscall_rlimit-v11.hc \
- lib/syscall_kill.c lib/syscall_kill-v11.hc \
- lib/syscall_ctxcreate.c lib/syscall_ctxcreate-v13.hc \
- lib/syscall_ctxmigrate.c lib/syscall_ctxmigrate-v13.hc \
- lib/syscall_cleanupnamespace-v13.hc \
- lib/syscall_cleanupnamespace.c \
- lib/syscall_enternamespace-v13.hc lib/syscall_enternamespace.c \
- lib/syscall_getccaps-v13.hc lib/syscall_getccaps.c \
- lib/syscall_getcflags-v13.hc lib/syscall_getcflags.c \
- lib/syscall_getiattr-fscompat.hc lib/syscall_getiattr-v13.hc \
- lib/syscall_getiattr.c lib/syscall_getncaps-net.hc \
- lib/syscall_getncaps.c lib/syscall_getnflags-net.hc \
- lib/syscall_getnflags.c lib/syscall_getnxinfo-net.hc \
- lib/syscall_getnxinfo.c lib/syscall_gettasknid-net.hc \
- lib/syscall_gettasknid.c lib/syscall_gettaskxid-oldproc.hc \
- lib/syscall_gettaskxid-v13.hc lib/syscall_gettaskxid.c \
- lib/syscall_getvhiname-olduts.hc lib/syscall_getvhiname-v13.hc \
- lib/syscall_getvhiname.c lib/syscall_getvxinfo-oldproc.hc \
- lib/syscall_getvxinfo-v13.hc lib/syscall_getvxinfo.c \
- lib/syscall_netadd-net.hc lib/syscall_netadd.c \
- lib/syscall_netcreate-net.hc lib/syscall_netcreate.c \
- lib/syscall_netmigrate-net.hc lib/syscall_netmigrate.c \
- lib/syscall_netremove-net.hc lib/syscall_netremove.c \
- lib/syscall_setccaps-v13.hc lib/syscall_setccaps.c \
- lib/syscall_setcflags-v13.hc lib/syscall_setcflags.c \
- lib/syscall_setiattr-fscompat.hc lib/syscall_setiattr-v13.hc \
- lib/syscall_setiattr.c lib/syscall_setnamespace-v13.hc \
- lib/syscall_setnamespace.c lib/syscall_setncaps-net.hc \
- lib/syscall_setncaps.c lib/syscall_setnflags-net.hc \
- lib/syscall_setnflags.c lib/syscall_setsched-v13.hc \
- lib/syscall_setsched-v13obs.hc lib/syscall_setsched.c \
- lib/syscall_setvhiname-olduts.hc lib/syscall_setvhiname-v13.hc \
- lib/syscall_setvhiname.c lib/syscall_waitexit.c \
- lib/syscall_waitexit-v13.hc lib/bcaps-v13.c \
- lib/bcaps_list-v13.c lib/ccaps-v13.c lib/ccaps_list-v13.c \
- lib/cflags-v13.c lib/cflags_list-v13.c lib/ncaps-net.c \
- lib/ncaps_list-net.c lib/nflags-net.c lib/nflags_list-net.c \
- lib/syscall_adddlimit-v13.hc lib/syscall_adddlimit.c \
- lib/syscall_getdlimit-v13.hc lib/syscall_getdlimit.c \
- lib/syscall_remdlimit-v13.hc lib/syscall_remdlimit.c \
- lib/syscall_setdlimit-v13.hc lib/syscall_setdlimit.c \
- lib/syscall_setccaps-v21.hc lib/syscall_setsched-v21.hc \
- lib/syscall_rlimitstat.c lib/syscall_rlimitstat-v21.hc \
- lib/syscall_resetminmax.c lib/syscall_resetminmax-v21.hc \
- lib/syscall_getvci.c lib/syscall_getvci-v21.hc \
- lib/syscall_virtstat.c lib/syscall_virtstat-v21.hc \
- lib/syscall_ctxstat.c lib/syscall_ctxstat-v21.hc \
- lib/syscall_getspacemask.c lib/syscall_getspacemask-v21.hc \
- lib/syscall_enternamespace-v21.hc \
- lib/syscall_setnamespace-v21.hc lib/syscall_ctxmigrate-v21.hc \
- lib/syscall_setmapping.c lib/syscall_setmapping-v21.hc \
- lib/syscall_schedinfo.c lib/syscall_schedinfo-v21.hc \
- lib/syscall_getccaps-v21.hc lib/syscall_getsched.c \
- lib/syscall_getsched-v21.hc lib/syscall_ctxcreate-v21.hc \
- lib/syscall_setsched-v22.hc lib/syscall_fsetiattr.c \
- lib/syscall_fsetiattr-v22.hc lib/syscall_fgetiattr.c \
- lib/syscall_fgetiattr-v22.hc lib/syscall_netadd-netv2.hc \
- lib/syscall_netremove-netv2.hc lib/syscall_tagmigrate-v23.hc \
- lib/syscall_tagmigrate.c lib/syscall_tagcreate.c \
- lib/syscall_tasktag-v23.hc lib/syscall_tasktag.c \
- ensc_fmt/fmt-32.c ensc_fmt/fmt-64.c ensc_fmt/fmtx-32.c \
- ensc_fmt/fmtx-64.c ensc_fmt/fmt-tai64n.c ensc_fmt/fmt.h \
- ensc_fmt/fmt.hc ensc_fmt/fmtx.hc ensc_fmt/fmt-internal.h
-am__dirstamp = $(am__leading_dot)dirstamp
-am__objects_1 = lib/lib_libvserver_a-getprocentry-legacy.$(OBJEXT)
-am__objects_2 = lib/lib_libvserver_a-cflags-compat.$(OBJEXT) \
- lib/lib_libvserver_a-cflags_list-compat.$(OBJEXT)
-am__objects_3 = lib/lib_libvserver_a-comparevserverbyid.$(OBJEXT) \
- lib/lib_libvserver_a-createskeleton.$(OBJEXT) \
- lib/lib_libvserver_a-getvserverbyctx.$(OBJEXT) \
- lib/lib_libvserver_a-getvservercfgstyle.$(OBJEXT) \
- lib/lib_libvserver_a-getvserverappdir.$(OBJEXT) \
- lib/lib_libvserver_a-getvservercfgdir.$(OBJEXT) \
- lib/lib_libvserver_a-getvserverctx.$(OBJEXT) \
- lib/lib_libvserver_a-getvservername.$(OBJEXT) \
- lib/lib_libvserver_a-getvservervdir.$(OBJEXT) \
- lib/lib_libvserver_a-xidopt2xid.$(OBJEXT) \
- lib/lib_libvserver_a-nidopt2nid.$(OBJEXT) \
- lib/lib_libvserver_a-tagopt2tag.$(OBJEXT)
-am__objects_4 = lib/lib_libvserver_a-syscall_rlimit.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_kill.$(OBJEXT)
-@ENSC_HAVE_C99_COMPILER_TRUE@am__objects_5 = lib/lib_libvserver_a-syscall_adddlimit.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/lib_libvserver_a-syscall_getdlimit.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/lib_libvserver_a-syscall_remdlimit.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/lib_libvserver_a-syscall_setdlimit.$(OBJEXT)
-am__objects_6 = lib/lib_libvserver_a-syscall_ctxcreate.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_ctxmigrate.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_cleanupnamespace.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_enternamespace.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getccaps.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getcflags.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getiattr.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getncaps.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getnflags.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getnxinfo.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_gettasknid.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_gettaskxid.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getvhiname.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getvxinfo.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_netadd.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_netcreate.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_netmigrate.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_netremove.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_setccaps.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_setcflags.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_setiattr.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_setnamespace.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_setncaps.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_setnflags.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_setsched.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_setvhiname.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_waitexit.$(OBJEXT) \
- lib/lib_libvserver_a-bcaps-v13.$(OBJEXT) \
- lib/lib_libvserver_a-bcaps_list-v13.$(OBJEXT) \
- lib/lib_libvserver_a-ccaps-v13.$(OBJEXT) \
- lib/lib_libvserver_a-ccaps_list-v13.$(OBJEXT) \
- lib/lib_libvserver_a-cflags-v13.$(OBJEXT) \
- lib/lib_libvserver_a-cflags_list-v13.$(OBJEXT) \
- lib/lib_libvserver_a-ncaps-net.$(OBJEXT) \
- lib/lib_libvserver_a-ncaps_list-net.$(OBJEXT) \
- lib/lib_libvserver_a-nflags-net.$(OBJEXT) \
- lib/lib_libvserver_a-nflags_list-net.$(OBJEXT) \
- $(am__objects_5)
-am__objects_7 = lib/lib_libvserver_a-syscall_rlimitstat.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_resetminmax.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getvci.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_virtstat.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_ctxstat.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getspacemask.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_setmapping.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_schedinfo.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_getsched.$(OBJEXT)
-am__objects_8 = lib/lib_libvserver_a-syscall_fsetiattr.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_fgetiattr.$(OBJEXT)
-am__objects_9 =
-am__objects_10 = lib/lib_libvserver_a-syscall_tagmigrate.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_tagcreate.$(OBJEXT) \
- lib/lib_libvserver_a-syscall_tasktag.$(OBJEXT)
-am__objects_11 = ensc_fmt/lib_libvserver_a-fmt-32.$(OBJEXT) \
- ensc_fmt/lib_libvserver_a-fmt-64.$(OBJEXT) \
- ensc_fmt/lib_libvserver_a-fmtx-32.$(OBJEXT) \
- ensc_fmt/lib_libvserver_a-fmtx-64.$(OBJEXT) \
- ensc_fmt/lib_libvserver_a-fmt-tai64n.$(OBJEXT)
-am__objects_12 = lib/lib_libvserver_a-syscall.$(OBJEXT) \
- lib/lib_libvserver_a-checkversion.$(OBJEXT) \
- lib/lib_libvserver_a-checkconfig.$(OBJEXT) \
- lib/lib_libvserver_a-isdirectory.$(OBJEXT) \
- lib/lib_libvserver_a-isfile.$(OBJEXT) \
- lib/lib_libvserver_a-islink.$(OBJEXT) \
- lib/lib_libvserver_a-getnbipv4root.$(OBJEXT) \
- lib/lib_libvserver_a-getversion.$(OBJEXT) \
- lib/lib_libvserver_a-capabilities.$(OBJEXT) \
- lib/lib_libvserver_a-getfilecontext.$(OBJEXT) \
- lib/lib_libvserver_a-getinsecurebcaps.$(OBJEXT) \
- lib/lib_libvserver_a-getxidtype.$(OBJEXT) \
- lib/lib_libvserver_a-isdynamicxid.$(OBJEXT) \
- lib/lib_libvserver_a-issupported.$(OBJEXT) \
- lib/lib_libvserver_a-issupportedstring.$(OBJEXT) \
- lib/lib_libvserver_a-listparser_uint32.$(OBJEXT) \
- lib/lib_libvserver_a-listparser_uint64.$(OBJEXT) \
- lib/lib_libvserver_a-personalityflag.$(OBJEXT) \
- lib/lib_libvserver_a-personalityflag_list.$(OBJEXT) \
- lib/lib_libvserver_a-personalitytype.$(OBJEXT) \
- lib/lib_libvserver_a-syscall-syscall.$(OBJEXT) \
- lib/lib_libvserver_a-val2text-t2v-uint32.$(OBJEXT) \
- lib/lib_libvserver_a-val2text-t2v-uint64.$(OBJEXT) \
- lib/lib_libvserver_a-val2text-v2t-uint32.$(OBJEXT) \
- lib/lib_libvserver_a-val2text-v2t-uint64.$(OBJEXT) \
- lib/lib_libvserver_a-parselimit.$(OBJEXT) \
- lib/lib_libvserver_a-planetlab.$(OBJEXT) $(am__objects_1) \
- $(am__objects_2) $(am__objects_3) $(am__objects_4) \
- $(am__objects_6) $(am__objects_7) $(am__objects_8) \
- $(am__objects_9) $(am__objects_10) $(am__objects_11)
-am_lib_libvserver_a_OBJECTS = $(am__objects_12)
-lib_libvserver_a_OBJECTS = $(am_lib_libvserver_a_OBJECTS)
-lib_internal_libinternal_diet_a_AR = $(AR) $(ARFLAGS)
-lib_internal_libinternal_diet_a_LIBADD =
-am__lib_internal_libinternal_diet_a_SOURCES_DIST = \
- lib_internal/errinfo-writeerrno.c \
- lib_internal/jailintotempdir.c \
- lib_internal/matchlist-appendfiles.c \
- lib_internal/matchlist-compare.c \
- lib_internal/matchlist-destroy.c lib_internal/matchlist-init.c \
- lib_internal/matchlist-initmanually.c \
- lib_internal/matchlist-initrefserverlist.c \
- lib_internal/matchlist-printid.c \
- lib_internal/matchvserverinfo-free.c \
- lib_internal/pathinfo-append.c lib_internal/pathinfo-test.c \
- lib_internal/switchtowatchxid.c lib_internal/unify-deunify.c \
- lib_internal/unify-settime.c lib_internal/unify-unify.c \
- lib_internal/unify-isiunlinkable.c \
- lib_internal/util-canonify.c \
- lib_internal/util-exitlikeprocess.c \
- lib_internal/util-isnumber.hc lib_internal/util-isnumber.c \
- lib_internal/util-isnumberunsigned.c \
- lib_internal/util-lockfile.c lib_internal/util-safechdir.c \
- lib_internal/mkdir.c lib_internal/command-appendparameter.c \
- lib_internal/command-setparams.c lib_internal/command-exec.c \
- lib_internal/command-free.c lib_internal/command-init.c \
- lib_internal/command-reset.c lib_internal/command-wait.c \
- lib_internal/command.h lib_internal/filecfg.h \
- lib_internal/filecfg-iteratemultiline.c \
- lib_internal/filecfg-readentryflag.c \
- lib_internal/filecfg-readentrystr.c \
- lib_internal/matchlist-initbyvserver.c \
- lib_internal/matchvserverinfo-init.c lib_internal/unify-copy.c
-am__objects_13 = lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-command-setparams.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-command-exec.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-command-free.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-command-init.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-command-reset.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-command-wait.$(OBJEXT)
-@ENSC_HAVE_C99_COMPILER_TRUE@am__objects_14 = lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/lib_internal_libinternal_diet_a-unify-copy.$(OBJEXT)
-am__objects_15 = lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-matchlist-init.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-unify-deunify.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-unify-settime.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-unify-unify.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-util-canonify.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-util-isnumber.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-util-lockfile.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-util-safechdir.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_diet_a-mkdir.$(OBJEXT) \
- $(am__objects_13) $(am__objects_14)
-am_lib_internal_libinternal_diet_a_OBJECTS = $(am__objects_15)
-lib_internal_libinternal_diet_a_OBJECTS = \
- $(am_lib_internal_libinternal_diet_a_OBJECTS)
-lib_internal_libinternal_glibc_a_AR = $(AR) $(ARFLAGS)
-lib_internal_libinternal_glibc_a_LIBADD =
-am__lib_internal_libinternal_glibc_a_SOURCES_DIST = \
- lib_internal/errinfo-writeerrno.c \
- lib_internal/jailintotempdir.c \
- lib_internal/matchlist-appendfiles.c \
- lib_internal/matchlist-compare.c \
- lib_internal/matchlist-destroy.c lib_internal/matchlist-init.c \
- lib_internal/matchlist-initmanually.c \
- lib_internal/matchlist-initrefserverlist.c \
- lib_internal/matchlist-printid.c \
- lib_internal/matchvserverinfo-free.c \
- lib_internal/pathinfo-append.c lib_internal/pathinfo-test.c \
- lib_internal/switchtowatchxid.c lib_internal/unify-deunify.c \
- lib_internal/unify-settime.c lib_internal/unify-unify.c \
- lib_internal/unify-isiunlinkable.c \
- lib_internal/util-canonify.c \
- lib_internal/util-exitlikeprocess.c \
- lib_internal/util-isnumber.hc lib_internal/util-isnumber.c \
- lib_internal/util-isnumberunsigned.c \
- lib_internal/util-lockfile.c lib_internal/util-safechdir.c \
- lib_internal/mkdir.c lib_internal/command-appendparameter.c \
- lib_internal/command-setparams.c lib_internal/command-exec.c \
- lib_internal/command-free.c lib_internal/command-init.c \
- lib_internal/command-reset.c lib_internal/command-wait.c \
- lib_internal/command.h lib_internal/filecfg.h \
- lib_internal/filecfg-iteratemultiline.c \
- lib_internal/filecfg-readentryflag.c \
- lib_internal/filecfg-readentrystr.c \
- lib_internal/matchlist-initbyvserver.c \
- lib_internal/matchvserverinfo-init.c lib_internal/unify-copy.c
-am__objects_16 = lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-command-setparams.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-command-exec.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-command-free.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-command-init.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-command-reset.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-command-wait.$(OBJEXT)
-@ENSC_HAVE_C99_COMPILER_TRUE@am__objects_17 = lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.$(OBJEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/lib_internal_libinternal_glibc_a-unify-copy.$(OBJEXT)
-am__objects_18 = lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-unify-settime.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-unify-unify.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-util-canonify.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.$(OBJEXT) \
- lib_internal/lib_internal_libinternal_glibc_a-mkdir.$(OBJEXT) \
- $(am__objects_16) $(am__objects_17)
-am_lib_internal_libinternal_glibc_a_OBJECTS = $(am__objects_18)
-lib_internal_libinternal_glibc_a_OBJECTS = \
- $(am_lib_internal_libinternal_glibc_a_OBJECTS)
-libensc_vector_diet_a_AR = $(AR) $(ARFLAGS)
-libensc_vector_diet_a_LIBADD =
-am__objects_19 = \
- ensc_vector/libensc_vector_diet_a-vector-clear.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-foreach.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-free.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-init.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-insert.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-popback.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-pushback.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-resize.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-search.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-searchselforg.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-sort.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-unique.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-vector-zeroend.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-list-at.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-list-add.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-list-free.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-list-init.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-list-insertinternal.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-list-search.$(OBJEXT) \
- ensc_vector/libensc_vector_diet_a-list-searchselforg.$(OBJEXT)
-am_libensc_vector_diet_a_OBJECTS = $(am__objects_19)
-libensc_vector_diet_a_OBJECTS = $(am_libensc_vector_diet_a_OBJECTS)
-libensc_vector_glibc_a_AR = $(AR) $(ARFLAGS)
-libensc_vector_glibc_a_LIBADD =
-am__objects_20 = \
- ensc_vector/libensc_vector_glibc_a-vector-clear.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-foreach.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-free.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-init.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-insert.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-popback.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-pushback.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-resize.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-search.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-searchselforg.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-sort.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-unique.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-vector-zeroend.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-list-at.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-list-add.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-list-free.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-list-init.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-list-insertinternal.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-list-search.$(OBJEXT) \
- ensc_vector/libensc_vector_glibc_a-list-searchselforg.$(OBJEXT)
-am_libensc_vector_glibc_a_OBJECTS = $(am__objects_20)
-libensc_vector_glibc_a_OBJECTS = $(am_libensc_vector_glibc_a_OBJECTS)
-libLTLIBRARIES_INSTALL = $(INSTALL)
-pkglibLTLIBRARIES_INSTALL = $(INSTALL)
-LTLIBRARIES = $(lib_LTLIBRARIES) $(pkglib_LTLIBRARIES)
-lib_libvserver_la_LIBADD =
-am__lib_libvserver_la_SOURCES_DIST = lib/syscall.c lib/checkversion.c \
- lib/checkconfig.c lib/isdirectory.c lib/isfile.c lib/islink.c \
- lib/getnbipv4root.c lib/getversion.c lib/capabilities.c \
- lib/getfilecontext.c lib/getinsecurebcaps.c lib/getxidtype.c \
- lib/isdynamicxid.c lib/issupported.c lib/issupportedstring.c \
- lib/listparser_uint32.c lib/listparser_uint64.c \
- lib/personalityflag.c lib/personalityflag_list.c \
- lib/personalitytype.c lib/syscall-syscall.c \
- lib/val2text-t2v-uint32.c lib/val2text-t2v-uint64.c \
- lib/val2text-v2t-uint32.c lib/val2text-v2t-uint64.c \
- lib/parselimit.c lib/planetlab.c lib/getprocentry-legacy.c \
- lib/cflags-compat.c lib/cflags_list-compat.c \
- lib/comparevserverbyid.c lib/createskeleton.c \
- lib/getvserverbyctx.c lib/getvserverbyctx-compat.hc \
- lib/getvserverbyctx-v13.hc lib/getvservercfgstyle.c \
- lib/getvserverappdir.c lib/getvservercfgdir.c \
- lib/getvserverctx.c lib/getvservername.c lib/getvservervdir.c \
- lib/xidopt2xid.c lib/nidopt2nid.c lib/tagopt2tag.c \
- lib/syscall_rlimit.c lib/syscall_rlimit-v11.hc \
- lib/syscall_kill.c lib/syscall_kill-v11.hc \
- lib/syscall_ctxcreate.c lib/syscall_ctxcreate-v13.hc \
- lib/syscall_ctxmigrate.c lib/syscall_ctxmigrate-v13.hc \
- lib/syscall_cleanupnamespace-v13.hc \
- lib/syscall_cleanupnamespace.c \
- lib/syscall_enternamespace-v13.hc lib/syscall_enternamespace.c \
- lib/syscall_getccaps-v13.hc lib/syscall_getccaps.c \
- lib/syscall_getcflags-v13.hc lib/syscall_getcflags.c \
- lib/syscall_getiattr-fscompat.hc lib/syscall_getiattr-v13.hc \
- lib/syscall_getiattr.c lib/syscall_getncaps-net.hc \
- lib/syscall_getncaps.c lib/syscall_getnflags-net.hc \
- lib/syscall_getnflags.c lib/syscall_getnxinfo-net.hc \
- lib/syscall_getnxinfo.c lib/syscall_gettasknid-net.hc \
- lib/syscall_gettasknid.c lib/syscall_gettaskxid-oldproc.hc \
- lib/syscall_gettaskxid-v13.hc lib/syscall_gettaskxid.c \
- lib/syscall_getvhiname-olduts.hc lib/syscall_getvhiname-v13.hc \
- lib/syscall_getvhiname.c lib/syscall_getvxinfo-oldproc.hc \
- lib/syscall_getvxinfo-v13.hc lib/syscall_getvxinfo.c \
- lib/syscall_netadd-net.hc lib/syscall_netadd.c \
- lib/syscall_netcreate-net.hc lib/syscall_netcreate.c \
- lib/syscall_netmigrate-net.hc lib/syscall_netmigrate.c \
- lib/syscall_netremove-net.hc lib/syscall_netremove.c \
- lib/syscall_setccaps-v13.hc lib/syscall_setccaps.c \
- lib/syscall_setcflags-v13.hc lib/syscall_setcflags.c \
- lib/syscall_setiattr-fscompat.hc lib/syscall_setiattr-v13.hc \
- lib/syscall_setiattr.c lib/syscall_setnamespace-v13.hc \
- lib/syscall_setnamespace.c lib/syscall_setncaps-net.hc \
- lib/syscall_setncaps.c lib/syscall_setnflags-net.hc \
- lib/syscall_setnflags.c lib/syscall_setsched-v13.hc \
- lib/syscall_setsched-v13obs.hc lib/syscall_setsched.c \
- lib/syscall_setvhiname-olduts.hc lib/syscall_setvhiname-v13.hc \
- lib/syscall_setvhiname.c lib/syscall_waitexit.c \
- lib/syscall_waitexit-v13.hc lib/bcaps-v13.c \
- lib/bcaps_list-v13.c lib/ccaps-v13.c lib/ccaps_list-v13.c \
- lib/cflags-v13.c lib/cflags_list-v13.c lib/ncaps-net.c \
- lib/ncaps_list-net.c lib/nflags-net.c lib/nflags_list-net.c \
- lib/syscall_adddlimit-v13.hc lib/syscall_adddlimit.c \
- lib/syscall_getdlimit-v13.hc lib/syscall_getdlimit.c \
- lib/syscall_remdlimit-v13.hc lib/syscall_remdlimit.c \
- lib/syscall_setdlimit-v13.hc lib/syscall_setdlimit.c \
- lib/syscall_setccaps-v21.hc lib/syscall_setsched-v21.hc \
- lib/syscall_rlimitstat.c lib/syscall_rlimitstat-v21.hc \
- lib/syscall_resetminmax.c lib/syscall_resetminmax-v21.hc \
- lib/syscall_getvci.c lib/syscall_getvci-v21.hc \
- lib/syscall_virtstat.c lib/syscall_virtstat-v21.hc \
- lib/syscall_ctxstat.c lib/syscall_ctxstat-v21.hc \
- lib/syscall_getspacemask.c lib/syscall_getspacemask-v21.hc \
- lib/syscall_enternamespace-v21.hc \
- lib/syscall_setnamespace-v21.hc lib/syscall_ctxmigrate-v21.hc \
- lib/syscall_setmapping.c lib/syscall_setmapping-v21.hc \
- lib/syscall_schedinfo.c lib/syscall_schedinfo-v21.hc \
- lib/syscall_getccaps-v21.hc lib/syscall_getsched.c \
- lib/syscall_getsched-v21.hc lib/syscall_ctxcreate-v21.hc \
- lib/syscall_setsched-v22.hc lib/syscall_fsetiattr.c \
- lib/syscall_fsetiattr-v22.hc lib/syscall_fgetiattr.c \
- lib/syscall_fgetiattr-v22.hc lib/syscall_netadd-netv2.hc \
- lib/syscall_netremove-netv2.hc lib/syscall_tagmigrate-v23.hc \
- lib/syscall_tagmigrate.c lib/syscall_tagcreate.c \
- lib/syscall_tasktag-v23.hc lib/syscall_tasktag.c \
- ensc_fmt/fmt-32.c ensc_fmt/fmt-64.c ensc_fmt/fmtx-32.c \
- ensc_fmt/fmtx-64.c ensc_fmt/fmt-tai64n.c ensc_fmt/fmt.h \
- ensc_fmt/fmt.hc ensc_fmt/fmtx.hc ensc_fmt/fmt-internal.h
-am__objects_21 = lib/lib_libvserver_la-getprocentry-legacy.lo
-am__objects_22 = lib/lib_libvserver_la-cflags-compat.lo \
- lib/lib_libvserver_la-cflags_list-compat.lo
-am__objects_23 = lib/lib_libvserver_la-comparevserverbyid.lo \
- lib/lib_libvserver_la-createskeleton.lo \
- lib/lib_libvserver_la-getvserverbyctx.lo \
- lib/lib_libvserver_la-getvservercfgstyle.lo \
- lib/lib_libvserver_la-getvserverappdir.lo \
- lib/lib_libvserver_la-getvservercfgdir.lo \
- lib/lib_libvserver_la-getvserverctx.lo \
- lib/lib_libvserver_la-getvservername.lo \
- lib/lib_libvserver_la-getvservervdir.lo \
- lib/lib_libvserver_la-xidopt2xid.lo \
- lib/lib_libvserver_la-nidopt2nid.lo \
- lib/lib_libvserver_la-tagopt2tag.lo
-am__objects_24 = lib/lib_libvserver_la-syscall_rlimit.lo \
- lib/lib_libvserver_la-syscall_kill.lo
-@ENSC_HAVE_C99_COMPILER_TRUE@am__objects_25 = lib/lib_libvserver_la-syscall_adddlimit.lo \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/lib_libvserver_la-syscall_getdlimit.lo \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/lib_libvserver_la-syscall_remdlimit.lo \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib/lib_libvserver_la-syscall_setdlimit.lo
-am__objects_26 = lib/lib_libvserver_la-syscall_ctxcreate.lo \
- lib/lib_libvserver_la-syscall_ctxmigrate.lo \
- lib/lib_libvserver_la-syscall_cleanupnamespace.lo \
- lib/lib_libvserver_la-syscall_enternamespace.lo \
- lib/lib_libvserver_la-syscall_getccaps.lo \
- lib/lib_libvserver_la-syscall_getcflags.lo \
- lib/lib_libvserver_la-syscall_getiattr.lo \
- lib/lib_libvserver_la-syscall_getncaps.lo \
- lib/lib_libvserver_la-syscall_getnflags.lo \
- lib/lib_libvserver_la-syscall_getnxinfo.lo \
- lib/lib_libvserver_la-syscall_gettasknid.lo \
- lib/lib_libvserver_la-syscall_gettaskxid.lo \
- lib/lib_libvserver_la-syscall_getvhiname.lo \
- lib/lib_libvserver_la-syscall_getvxinfo.lo \
- lib/lib_libvserver_la-syscall_netadd.lo \
- lib/lib_libvserver_la-syscall_netcreate.lo \
- lib/lib_libvserver_la-syscall_netmigrate.lo \
- lib/lib_libvserver_la-syscall_netremove.lo \
- lib/lib_libvserver_la-syscall_setccaps.lo \
- lib/lib_libvserver_la-syscall_setcflags.lo \
- lib/lib_libvserver_la-syscall_setiattr.lo \
- lib/lib_libvserver_la-syscall_setnamespace.lo \
- lib/lib_libvserver_la-syscall_setncaps.lo \
- lib/lib_libvserver_la-syscall_setnflags.lo \
- lib/lib_libvserver_la-syscall_setsched.lo \
- lib/lib_libvserver_la-syscall_setvhiname.lo \
- lib/lib_libvserver_la-syscall_waitexit.lo \
- lib/lib_libvserver_la-bcaps-v13.lo \
- lib/lib_libvserver_la-bcaps_list-v13.lo \
- lib/lib_libvserver_la-ccaps-v13.lo \
- lib/lib_libvserver_la-ccaps_list-v13.lo \
- lib/lib_libvserver_la-cflags-v13.lo \
- lib/lib_libvserver_la-cflags_list-v13.lo \
- lib/lib_libvserver_la-ncaps-net.lo \
- lib/lib_libvserver_la-ncaps_list-net.lo \
- lib/lib_libvserver_la-nflags-net.lo \
- lib/lib_libvserver_la-nflags_list-net.lo $(am__objects_25)
-am__objects_27 = lib/lib_libvserver_la-syscall_rlimitstat.lo \
- lib/lib_libvserver_la-syscall_resetminmax.lo \
- lib/lib_libvserver_la-syscall_getvci.lo \
- lib/lib_libvserver_la-syscall_virtstat.lo \
- lib/lib_libvserver_la-syscall_ctxstat.lo \
- lib/lib_libvserver_la-syscall_getspacemask.lo \
- lib/lib_libvserver_la-syscall_setmapping.lo \
- lib/lib_libvserver_la-syscall_schedinfo.lo \
- lib/lib_libvserver_la-syscall_getsched.lo
-am__objects_28 = lib/lib_libvserver_la-syscall_fsetiattr.lo \
- lib/lib_libvserver_la-syscall_fgetiattr.lo
-am__objects_29 = lib/lib_libvserver_la-syscall_tagmigrate.lo \
- lib/lib_libvserver_la-syscall_tagcreate.lo \
- lib/lib_libvserver_la-syscall_tasktag.lo
-am__objects_30 = ensc_fmt/lib_libvserver_la-fmt-32.lo \
- ensc_fmt/lib_libvserver_la-fmt-64.lo \
- ensc_fmt/lib_libvserver_la-fmtx-32.lo \
- ensc_fmt/lib_libvserver_la-fmtx-64.lo \
- ensc_fmt/lib_libvserver_la-fmt-tai64n.lo
-am__objects_31 = lib/lib_libvserver_la-syscall.lo \
- lib/lib_libvserver_la-checkversion.lo \
- lib/lib_libvserver_la-checkconfig.lo \
- lib/lib_libvserver_la-isdirectory.lo \
- lib/lib_libvserver_la-isfile.lo \
- lib/lib_libvserver_la-islink.lo \
- lib/lib_libvserver_la-getnbipv4root.lo \
- lib/lib_libvserver_la-getversion.lo \
- lib/lib_libvserver_la-capabilities.lo \
- lib/lib_libvserver_la-getfilecontext.lo \
- lib/lib_libvserver_la-getinsecurebcaps.lo \
- lib/lib_libvserver_la-getxidtype.lo \
- lib/lib_libvserver_la-isdynamicxid.lo \
- lib/lib_libvserver_la-issupported.lo \
- lib/lib_libvserver_la-issupportedstring.lo \
- lib/lib_libvserver_la-listparser_uint32.lo \
- lib/lib_libvserver_la-listparser_uint64.lo \
- lib/lib_libvserver_la-personalityflag.lo \
- lib/lib_libvserver_la-personalityflag_list.lo \
- lib/lib_libvserver_la-personalitytype.lo \
- lib/lib_libvserver_la-syscall-syscall.lo \
- lib/lib_libvserver_la-val2text-t2v-uint32.lo \
- lib/lib_libvserver_la-val2text-t2v-uint64.lo \
- lib/lib_libvserver_la-val2text-v2t-uint32.lo \
- lib/lib_libvserver_la-val2text-v2t-uint64.lo \
- lib/lib_libvserver_la-parselimit.lo \
- lib/lib_libvserver_la-planetlab.lo $(am__objects_21) \
- $(am__objects_22) $(am__objects_23) $(am__objects_24) \
- $(am__objects_26) $(am__objects_27) $(am__objects_28) \
- $(am__objects_9) $(am__objects_29) $(am__objects_30)
-am_lib_libvserver_la_OBJECTS = $(am__objects_31)
-lib_libvserver_la_OBJECTS = $(am_lib_libvserver_la_OBJECTS)
-lib_libvserver_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(lib_libvserver_la_LDFLAGS) $(LDFLAGS) -o $@
-src_rpm_fake_la_DEPENDENCIES = $(LIBVSERVER_GLIBC)
-am_src_rpm_fake_la_OBJECTS = src/src_rpm_fake_la-rpm-fake.lo
-src_rpm_fake_la_OBJECTS = $(am_src_rpm_fake_la_OBJECTS)
-src_rpm_fake_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(src_rpm_fake_la_CFLAGS) \
- $(CFLAGS) $(src_rpm_fake_la_LDFLAGS) $(LDFLAGS) -o $@
-am__EXEEXT_1 =
-@ENSC_HAVE_BEECRYPT_TRUE@@ENSC_HAVE_C99_COMPILER_TRUE@am__EXEEXT_2 = src/testsuite/hashcalc$(EXEEXT) \
-@ENSC_HAVE_BEECRYPT_TRUE@@ENSC_HAVE_C99_COMPILER_TRUE@ src/testsuite/hashcalc-plain$(EXEEXT)
-am__EXEEXT_3 = src/testsuite/rpm-fake-test$(EXEEXT) $(am__EXEEXT_2)
-am__EXEEXT_4 = src/testsuite/vunify-functest$(EXEEXT) \
- src/testsuite/chcontext-test$(EXEEXT) \
- src/testsuite/chbind-test$(EXEEXT)
-@ENSC_HAVE_C99_COMPILER_TRUE@am__EXEEXT_5 = lib_internal/testsuite/filecfg-ml$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/copy$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/isnumber$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/isnumber-gnu$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/sigbus$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/sigbus-gnu$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/matchlist$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/matchlist-gnu$(EXEEXT)
-legacyPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
-am__EXEEXT_6 = tests/getctx$(EXEEXT) tests/getinitpid$(EXEEXT) \
- tests/vserver-info$(EXEEXT)
-am__EXEEXT_7 = src/vunify$(EXEEXT) src/vcopy$(EXEEXT) \
- src/vclone$(EXEEXT)
-@ENSC_HAVE_C99_COMPILER_TRUE@am__EXEEXT_8 = $(am__EXEEXT_7)
-@ENSC_HAVE_BEECRYPT_TRUE@@ENSC_HAVE_C99_COMPILER_TRUE@am__EXEEXT_9 = src/vhashify$(EXEEXT)
-@ENSC_HAVE_C99_COMPILER_TRUE@am__EXEEXT_10 = vserver-start/vserver.start.bin$(EXEEXT)
-pkglibPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
-@ENSC_HAVE_CXX_COMPILER_TRUE@am__EXEEXT_11 = $(am__EXEEXT_1)
-@ENSC_HAVE_C99_COMPILER_TRUE@am__EXEEXT_12 = src/vdlimit$(EXEEXT)
-@ENSC_HAVE_LIBNL_TRUE@am__EXEEXT_13 = src/vip6-autod$(EXEEXT)
-sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
-PROGRAMS = $(legacy_PROGRAMS) $(noinst_PROGRAMS) $(pkglib_PROGRAMS) \
- $(sbin_PROGRAMS)
-am_ensc_vector_testsuite_test1_OBJECTS = \
- ensc_vector/testsuite/test1.$(OBJEXT)
-ensc_vector_testsuite_test1_OBJECTS = \
- $(am_ensc_vector_testsuite_test1_OBJECTS)
-ensc_vector_testsuite_test1_DEPENDENCIES = $(LIBENSCVECTOR)
-am_ensc_vector_testsuite_test2_OBJECTS = \
- ensc_vector/testsuite/test2.$(OBJEXT)
-ensc_vector_testsuite_test2_OBJECTS = \
- $(am_ensc_vector_testsuite_test2_OBJECTS)
-ensc_vector_testsuite_test2_DEPENDENCIES = $(LIBENSCVECTOR)
-am_lib_testsuite_cflags_OBJECTS = \
- lib/testsuite/lib_testsuite_cflags-cflags.$(OBJEXT)
-lib_testsuite_cflags_OBJECTS = $(am_lib_testsuite_cflags_OBJECTS)
-lib_testsuite_cflags_DEPENDENCIES = $(LIBVSERVER)
-lib_testsuite_cflags_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(lib_testsuite_cflags_LDFLAGS) $(LDFLAGS) -o $@
-am_lib_testsuite_fmt_OBJECTS = \
- lib/testsuite/lib_testsuite_fmt-fmt.$(OBJEXT)
-lib_testsuite_fmt_OBJECTS = $(am_lib_testsuite_fmt_OBJECTS)
-lib_testsuite_fmt_DEPENDENCIES = $(LIBVSERVER)
-lib_testsuite_fmt_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(lib_testsuite_fmt_LDFLAGS) $(LDFLAGS) -o $@
-am_lib_testsuite_parselimit_OBJECTS = \
- lib/testsuite/lib_testsuite_parselimit-parselimit.$(OBJEXT)
-lib_testsuite_parselimit_OBJECTS = \
- $(am_lib_testsuite_parselimit_OBJECTS)
-lib_testsuite_parselimit_DEPENDENCIES = $(LIBVSERVER)
-lib_testsuite_parselimit_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(lib_testsuite_parselimit_LDFLAGS) $(LDFLAGS) -o $@
-am_lib_testsuite_personality_OBJECTS = \
- lib/testsuite/lib_testsuite_personality-personality.$(OBJEXT)
-lib_testsuite_personality_OBJECTS = \
- $(am_lib_testsuite_personality_OBJECTS)
-lib_testsuite_personality_DEPENDENCIES = $(LIBVSERVER)
-lib_testsuite_personality_LINK = $(LIBTOOL) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(AM_CFLAGS) $(CFLAGS) $(lib_testsuite_personality_LDFLAGS) \
- $(LDFLAGS) -o $@
-am_lib_internal_testsuite_command_OBJECTS = \
- lib_internal/testsuite/command.$(OBJEXT)
-lib_internal_testsuite_command_OBJECTS = \
- $(am_lib_internal_testsuite_command_OBJECTS)
-lib_internal_testsuite_command_DEPENDENCIES = $(LIBINTERNAL_GLIBC) \
- $(LIBENSCVECTOR_GLIBC)
-am_lib_internal_testsuite_copy_OBJECTS = \
- lib_internal/testsuite/copy.$(OBJEXT)
-lib_internal_testsuite_copy_OBJECTS = \
- $(am_lib_internal_testsuite_copy_OBJECTS)
-lib_internal_testsuite_copy_DEPENDENCIES = $(LIBINTERNAL_GLIBC)
-am_lib_internal_testsuite_filecfg_ml_OBJECTS = \
- lib_internal/testsuite/filecfg-ml.$(OBJEXT)
-lib_internal_testsuite_filecfg_ml_OBJECTS = \
- $(am_lib_internal_testsuite_filecfg_ml_OBJECTS)
-lib_internal_testsuite_filecfg_ml_DEPENDENCIES = $(LIBINTERNAL_GLIBC)
-am_lib_internal_testsuite_isnumber_OBJECTS = lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.$(OBJEXT)
-lib_internal_testsuite_isnumber_OBJECTS = \
- $(am_lib_internal_testsuite_isnumber_OBJECTS)
-lib_internal_testsuite_isnumber_DEPENDENCIES = $(LIBINTERNAL)
-am_lib_internal_testsuite_isnumber_gnu_OBJECTS = lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.$(OBJEXT)
-lib_internal_testsuite_isnumber_gnu_OBJECTS = \
- $(am_lib_internal_testsuite_isnumber_gnu_OBJECTS)
-lib_internal_testsuite_isnumber_gnu_DEPENDENCIES = \
- $(LIBINTERNAL_GLIBC)
-am_lib_internal_testsuite_matchlist_OBJECTS = lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.$(OBJEXT)
-lib_internal_testsuite_matchlist_OBJECTS = \
- $(am_lib_internal_testsuite_matchlist_OBJECTS)
-lib_internal_testsuite_matchlist_DEPENDENCIES = $(LIBINTERNAL)
-am_lib_internal_testsuite_matchlist_gnu_OBJECTS = lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.$(OBJEXT)
-lib_internal_testsuite_matchlist_gnu_OBJECTS = \
- $(am_lib_internal_testsuite_matchlist_gnu_OBJECTS)
-lib_internal_testsuite_matchlist_gnu_DEPENDENCIES = \
- $(LIBINTERNAL_GLIBC)
-am_lib_internal_testsuite_sigbus_OBJECTS = lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.$(OBJEXT)
-lib_internal_testsuite_sigbus_OBJECTS = \
- $(am_lib_internal_testsuite_sigbus_OBJECTS)
-lib_internal_testsuite_sigbus_LDADD = $(LDADD)
-am_lib_internal_testsuite_sigbus_gnu_OBJECTS = lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.$(OBJEXT)
-lib_internal_testsuite_sigbus_gnu_OBJECTS = \
- $(am_lib_internal_testsuite_sigbus_gnu_OBJECTS)
-lib_internal_testsuite_sigbus_gnu_LDADD = $(LDADD)
-am_src_capchroot_OBJECTS = src/capchroot.$(OBJEXT)
-src_capchroot_OBJECTS = $(am_src_capchroot_OBJECTS)
-am__DEPENDENCIES_1 =
-am__DEPENDENCIES_2 = $(LIBVSERVER) $(am__DEPENDENCIES_1)
-src_capchroot_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_capchroot_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_capchroot_LDFLAGS) $(LDFLAGS) -o $@
-am_src_chain_echo_OBJECTS = src/chain-echo.$(OBJEXT)
-src_chain_echo_OBJECTS = $(am_src_chain_echo_OBJECTS)
-src_chain_echo_LDADD = $(LDADD)
-am_src_chbind_compat_OBJECTS = src/chbind.$(OBJEXT)
-src_chbind_compat_OBJECTS = $(am_src_chbind_compat_OBJECTS)
-src_chbind_compat_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_chbind_compat_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_chbind_compat_LDFLAGS) $(LDFLAGS) -o $@
-am_src_chcontext_compat_OBJECTS = src/chcontext.$(OBJEXT)
-src_chcontext_compat_OBJECTS = $(am_src_chcontext_compat_OBJECTS)
-src_chcontext_compat_DEPENDENCIES = $(am__DEPENDENCIES_2) \
- $(LIBINTERNAL)
-src_chcontext_compat_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_chcontext_compat_LDFLAGS) $(LDFLAGS) -o $@
-src_check_unixfile_SOURCES = src/check-unixfile.c
-src_check_unixfile_OBJECTS = src/check-unixfile.$(OBJEXT)
-src_check_unixfile_LDADD = $(LDADD)
-am_src_chroot_sh_OBJECTS = src/chroot-sh.$(OBJEXT)
-src_chroot_sh_OBJECTS = $(am_src_chroot_sh_OBJECTS)
-src_chroot_sh_DEPENDENCIES = $(LIBINTERNAL)
-am_src_chxid_OBJECTS = src/fstool.$(OBJEXT) src/chxid.$(OBJEXT)
-src_chxid_OBJECTS = $(am_src_chxid_OBJECTS)
-src_chxid_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2)
-src_chxid_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_chxid_LDFLAGS) $(LDFLAGS) -o $@
-am_src_exec_cd_OBJECTS = src/exec-cd.$(OBJEXT)
-src_exec_cd_OBJECTS = $(am_src_exec_cd_OBJECTS)
-src_exec_cd_LDADD = $(LDADD)
-am_src_exec_ulimit_OBJECTS = src/exec-ulimit.$(OBJEXT)
-src_exec_ulimit_OBJECTS = $(am_src_exec_ulimit_OBJECTS)
-src_exec_ulimit_LDADD = $(LDADD)
-am_src_fakerunlevel_OBJECTS = src/fakerunlevel.$(OBJEXT)
-src_fakerunlevel_OBJECTS = $(am_src_fakerunlevel_OBJECTS)
-src_fakerunlevel_LDADD = $(LDADD)
-am_src_filetime_OBJECTS = src/filetime.$(OBJEXT)
-src_filetime_OBJECTS = $(am_src_filetime_OBJECTS)
-src_filetime_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_filetime_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_filetime_LDFLAGS) $(LDFLAGS) -o $@
-am_src_h2ext_OBJECTS = src/h2ext.$(OBJEXT)
-src_h2ext_OBJECTS = $(am_src_h2ext_OBJECTS)
-src_h2ext_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2)
-src_h2ext_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_h2ext_LDFLAGS) $(LDFLAGS) -o $@
-am_src_ifspec_OBJECTS = src/ifspec.$(OBJEXT)
-src_ifspec_OBJECTS = $(am_src_ifspec_OBJECTS)
-src_ifspec_LDADD = $(LDADD)
-am_src_keep_ctx_alive_OBJECTS = src/keep-ctx-alive.$(OBJEXT)
-src_keep_ctx_alive_OBJECTS = $(am_src_keep_ctx_alive_OBJECTS)
-src_keep_ctx_alive_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_keep_ctx_alive_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_keep_ctx_alive_LDFLAGS) $(LDFLAGS) -o $@
-am_src_listdevip_OBJECTS = src/listdevip.$(OBJEXT)
-src_listdevip_OBJECTS = $(am_src_listdevip_OBJECTS)
-src_listdevip_LDADD = $(LDADD)
-am_src_lockfile_OBJECTS = src/lockfile.$(OBJEXT)
-src_lockfile_OBJECTS = $(am_src_lockfile_OBJECTS)
-src_lockfile_LDADD = $(LDADD)
-am_src_lsxid_OBJECTS = src/fstool.$(OBJEXT) src/lsxid.$(OBJEXT)
-src_lsxid_OBJECTS = $(am_src_lsxid_OBJECTS)
-src_lsxid_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2) \
- $(LIBENSCVECTOR)
-src_lsxid_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_lsxid_LDFLAGS) $(LDFLAGS) -o $@
-am_src_mask2prefix_OBJECTS = src/mask2prefix.$(OBJEXT)
-src_mask2prefix_OBJECTS = $(am_src_mask2prefix_OBJECTS)
-src_mask2prefix_LDADD = $(LDADD)
-am_src_naddress_OBJECTS = src/naddress.$(OBJEXT)
-src_naddress_OBJECTS = $(am_src_naddress_OBJECTS)
-src_naddress_DEPENDENCIES = $(am__DEPENDENCIES_2) $(LIBINTERNAL)
-src_naddress_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_naddress_LDFLAGS) $(LDFLAGS) -o $@
-am_src_nattribute_OBJECTS = src/nattribute.$(OBJEXT)
-src_nattribute_OBJECTS = $(am_src_nattribute_OBJECTS)
-src_nattribute_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_nattribute_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_nattribute_LDFLAGS) $(LDFLAGS) -o $@
-am_src_ncontext_OBJECTS = src/ncontext.$(OBJEXT)
-src_ncontext_OBJECTS = $(am_src_ncontext_OBJECTS)
-src_ncontext_DEPENDENCIES = $(am__DEPENDENCIES_2) $(LIBINTERNAL)
-src_ncontext_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_ncontext_LDFLAGS) $(LDFLAGS) -o $@
-am_src_parserpmdump_OBJECTS = src/parserpmdump.$(OBJEXT)
-src_parserpmdump_OBJECTS = $(am_src_parserpmdump_OBJECTS)
-src_parserpmdump_LDADD = $(LDADD)
-am_src_readlink_OBJECTS = src/readlink.$(OBJEXT)
-src_readlink_OBJECTS = $(am_src_readlink_OBJECTS)
-src_readlink_LDADD = $(LDADD)
-am_src_rebootmgr_OBJECTS = src/rebootmgr.$(OBJEXT)
-src_rebootmgr_OBJECTS = $(am_src_rebootmgr_OBJECTS)
-src_rebootmgr_LDADD = $(LDADD)
-am_src_reducecap_OBJECTS = src/reducecap.$(OBJEXT)
-src_reducecap_OBJECTS = $(am_src_reducecap_OBJECTS)
-src_reducecap_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_reducecap_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_reducecap_LDFLAGS) $(LDFLAGS) -o $@
-am_src_rpm_fake_resolver_OBJECTS = src/rpm-fake-resolver.$(OBJEXT)
-src_rpm_fake_resolver_OBJECTS = $(am_src_rpm_fake_resolver_OBJECTS)
-src_rpm_fake_resolver_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_rpm_fake_resolver_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_rpm_fake_resolver_LDFLAGS) $(LDFLAGS) -o $@
-am_src_save_ctxinfo_OBJECTS = src/save_ctxinfo.$(OBJEXT)
-src_save_ctxinfo_OBJECTS = $(am_src_save_ctxinfo_OBJECTS)
-src_save_ctxinfo_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_save_ctxinfo_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_save_ctxinfo_LDFLAGS) $(LDFLAGS) -o $@
-am_src_secure_mount_OBJECTS = src/secure-mount.$(OBJEXT)
-src_secure_mount_OBJECTS = $(am_src_secure_mount_OBJECTS)
-src_secure_mount_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_secure_mount_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_secure_mount_LDFLAGS) $(LDFLAGS) -o $@
-am_src_setattr_OBJECTS = src/fstool.$(OBJEXT) src/setattr.$(OBJEXT)
-src_setattr_OBJECTS = $(am_src_setattr_OBJECTS)
-src_setattr_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2)
-src_setattr_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_setattr_LDFLAGS) $(LDFLAGS) -o $@
-am_src_showattr_OBJECTS = src/fstool.$(OBJEXT) src/showattr.$(OBJEXT)
-src_showattr_OBJECTS = $(am_src_showattr_OBJECTS)
-src_showattr_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2)
-src_showattr_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_showattr_LDFLAGS) $(LDFLAGS) -o $@
-src_showperm_SOURCES = src/showperm.c
-src_showperm_OBJECTS = src/showperm.$(OBJEXT)
-src_showperm_LDADD = $(LDADD)
-src_sigexec_SOURCES = src/sigexec.c
-src_sigexec_OBJECTS = src/sigexec.$(OBJEXT)
-src_sigexec_LDADD = $(LDADD)
-am_src_testsuite_chbind_test_OBJECTS = \
- src/testsuite/chbind-test.$(OBJEXT)
-src_testsuite_chbind_test_OBJECTS = \
- $(am_src_testsuite_chbind_test_OBJECTS)
-src_testsuite_chbind_test_DEPENDENCIES = lib/libvserver.la
-am_src_testsuite_chcontext_test_OBJECTS = \
- src/testsuite/chcontext-test.$(OBJEXT)
-src_testsuite_chcontext_test_OBJECTS = \
- $(am_src_testsuite_chcontext_test_OBJECTS)
-src_testsuite_chcontext_test_DEPENDENCIES = lib/libvserver.la \
- $(LIBINTERNAL)
-am_src_testsuite_hashcalc_OBJECTS = src/testsuite/hashcalc.$(OBJEXT)
-src_testsuite_hashcalc_OBJECTS = $(am_src_testsuite_hashcalc_OBJECTS)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@src_testsuite_hashcalc_DEPENDENCIES = \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@ $(LIBINTERNAL_GLIBC) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@ $(LIBENSCVECTOR_GLIBC) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@ $(LIBVSERVER_GLIBC)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@src_testsuite_hashcalc_DEPENDENCIES = \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@ $(LIBINTERNAL) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@ $(LIBENSCVECTOR) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@ $(am__DEPENDENCIES_2)
-src_testsuite_hashcalc_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_testsuite_hashcalc_LDFLAGS) $(LDFLAGS) -o $@
-am_src_testsuite_hashcalc_plain_OBJECTS = \
- src/testsuite/hashcalc-plain.$(OBJEXT)
-src_testsuite_hashcalc_plain_OBJECTS = \
- $(am_src_testsuite_hashcalc_plain_OBJECTS)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@src_testsuite_hashcalc_plain_DEPENDENCIES = \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@ $(LIBINTERNAL_GLIBC) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@ $(LIBENSCVECTOR_GLIBC) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@ $(LIBVSERVER_GLIBC)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@src_testsuite_hashcalc_plain_DEPENDENCIES = \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@ $(LIBINTERNAL) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@ $(LIBENSCVECTOR) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@ $(am__DEPENDENCIES_2)
-src_testsuite_hashcalc_plain_LINK = $(LIBTOOL) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(AM_CFLAGS) $(CFLAGS) $(src_testsuite_hashcalc_plain_LDFLAGS) \
- $(LDFLAGS) -o $@
-am_src_testsuite_rpm_fake_test_OBJECTS = \
- src/testsuite/rpm-fake-test.$(OBJEXT)
-src_testsuite_rpm_fake_test_OBJECTS = \
- $(am_src_testsuite_rpm_fake_test_OBJECTS)
-src_testsuite_rpm_fake_test_LDADD = $(LDADD)
-am_src_testsuite_vunify_functest_OBJECTS = src/testsuite/src_testsuite_vunify_functest-vunify-functest.$(OBJEXT)
-src_testsuite_vunify_functest_OBJECTS = \
- $(am_src_testsuite_vunify_functest_OBJECTS)
-src_testsuite_vunify_functest_DEPENDENCIES = $(LIBINTERNAL)
-am_src_vattribute_OBJECTS = src/vattribute.$(OBJEXT)
-src_vattribute_OBJECTS = $(am_src_vattribute_OBJECTS)
-src_vattribute_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_vattribute_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vattribute_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vclone_OBJECTS = src/vclone.$(OBJEXT)
-src_vclone_OBJECTS = $(am_src_vclone_OBJECTS)
-src_vclone_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2)
-src_vclone_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vclone_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vcontext_OBJECTS = src/vcontext.$(OBJEXT) src/vlogin.$(OBJEXT)
-src_vcontext_OBJECTS = $(am_src_vcontext_OBJECTS)
-src_vcontext_DEPENDENCIES = $(am__DEPENDENCIES_2) $(LIBINTERNAL)
-src_vcontext_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vcontext_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vcopy_OBJECTS = src/vcopy.$(OBJEXT)
-src_vcopy_OBJECTS = $(am_src_vcopy_OBJECTS)
-src_vcopy_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2)
-src_vcopy_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vcopy_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vdevmap_OBJECTS = src/vdevmap.$(OBJEXT)
-src_vdevmap_OBJECTS = $(am_src_vdevmap_OBJECTS)
-src_vdevmap_DEPENDENCIES = $(am__DEPENDENCIES_2) $(LIBINTERNAL)
-src_vdevmap_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vdevmap_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vdlimit_OBJECTS = src/vdlimit.$(OBJEXT)
-src_vdlimit_OBJECTS = $(am_src_vdlimit_OBJECTS)
-src_vdlimit_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_vdlimit_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vdlimit_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vdu_OBJECTS = src/vdu.$(OBJEXT)
-src_vdu_OBJECTS = $(am_src_vdu_OBJECTS)
-src_vdu_DEPENDENCIES = $(am__DEPENDENCIES_2) $(LIBINTERNAL)
-src_vdu_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(src_vdu_LDFLAGS) \
- $(LDFLAGS) -o $@
-am_src_vhashify_OBJECTS = src/vhashify.$(OBJEXT)
-src_vhashify_OBJECTS = $(am_src_vhashify_OBJECTS)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@src_vhashify_DEPENDENCIES = \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@ $(LIBINTERNAL_GLIBC) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@ $(LIBENSCVECTOR_GLIBC) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@ $(LIBVSERVER_GLIBC)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@src_vhashify_DEPENDENCIES = \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@ $(LIBINTERNAL) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@ $(LIBENSCVECTOR) \
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@ $(am__DEPENDENCIES_2)
-src_vhashify_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vhashify_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vip6_autod_OBJECTS = src/vip6-autod.$(OBJEXT)
-src_vip6_autod_OBJECTS = $(am_src_vip6_autod_OBJECTS)
-src_vip6_autod_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_vip6_autod_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vip6_autod_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vkill_OBJECTS = src/src_vkill-vkill.$(OBJEXT)
-src_vkill_OBJECTS = $(am_src_vkill_OBJECTS)
-src_vkill_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_vkill_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vkill_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vlimit_OBJECTS = src/vlimit.$(OBJEXT)
-src_vlimit_OBJECTS = $(am_src_vlimit_OBJECTS)
-src_vlimit_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_vlimit_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vlimit_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vnamespace_OBJECTS = src/vnamespace.$(OBJEXT)
-src_vnamespace_OBJECTS = $(am_src_vnamespace_OBJECTS)
-src_vnamespace_DEPENDENCIES = $(am__DEPENDENCIES_2) $(LIBINTERNAL)
-src_vnamespace_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vnamespace_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vps_OBJECTS = src/vps.$(OBJEXT)
-src_vps_OBJECTS = $(am_src_vps_OBJECTS)
-src_vps_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2)
-src_vps_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(src_vps_LDFLAGS) \
- $(LDFLAGS) -o $@
-am_src_vreboot_OBJECTS = src/vreboot.$(OBJEXT)
-src_vreboot_OBJECTS = $(am_src_vreboot_OBJECTS)
-src_vreboot_LDADD = $(LDADD)
-src_vrsetup_SOURCES = src/vrsetup.c
-src_vrsetup_OBJECTS = src/vrsetup.$(OBJEXT)
-src_vrsetup_LDADD = $(LDADD)
-am_src_vsched_OBJECTS = src/vsched.$(OBJEXT)
-src_vsched_OBJECTS = $(am_src_vsched_OBJECTS)
-src_vsched_DEPENDENCIES = $(am__DEPENDENCIES_2) $(LIBINTERNAL)
-src_vsched_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vsched_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vserver_info_OBJECTS = src/vserver-info.$(OBJEXT)
-src_vserver_info_OBJECTS = $(am_src_vserver_info_OBJECTS)
-src_vserver_info_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2)
-src_vserver_info_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vserver_info_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vserver_stat_OBJECTS = src/vserver-stat.$(OBJEXT)
-src_vserver_stat_OBJECTS = $(am_src_vserver_stat_OBJECTS)
-src_vserver_stat_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2) \
- $(LIBENSCVECTOR)
-src_vserver_stat_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vserver_stat_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vsh_OBJECTS = src/vsh.$(OBJEXT)
-src_vsh_OBJECTS = $(am_src_vsh_OBJECTS)
-src_vsh_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_vsh_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(src_vsh_LDFLAGS) \
- $(LDFLAGS) -o $@
-am_src_vshelper_sync_OBJECTS = src/vshelper-sync.$(OBJEXT)
-src_vshelper_sync_OBJECTS = $(am_src_vshelper_sync_OBJECTS)
-src_vshelper_sync_LDADD = $(LDADD)
-am_src_vsysctl_OBJECTS = src/vsysctl.$(OBJEXT)
-src_vsysctl_OBJECTS = $(am_src_vsysctl_OBJECTS)
-src_vsysctl_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_vsysctl_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vsysctl_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vtag_OBJECTS = src/vtag.$(OBJEXT)
-src_vtag_OBJECTS = $(am_src_vtag_OBJECTS)
-src_vtag_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_vtag_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(src_vtag_LDFLAGS) \
- $(LDFLAGS) -o $@
-am_src_vuname_OBJECTS = src/vuname.$(OBJEXT)
-src_vuname_OBJECTS = $(am_src_vuname_OBJECTS)
-src_vuname_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_vuname_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vuname_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vunify_OBJECTS = src/vunify.$(OBJEXT)
-src_vunify_OBJECTS = $(am_src_vunify_OBJECTS)
-src_vunify_DEPENDENCIES = $(LIBINTERNAL) $(am__DEPENDENCIES_2)
-src_vunify_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vunify_LDFLAGS) $(LDFLAGS) -o $@
-am_src_vwait_OBJECTS = src/vwait.$(OBJEXT)
-src_vwait_OBJECTS = $(am_src_vwait_OBJECTS)
-src_vwait_DEPENDENCIES = $(am__DEPENDENCIES_2)
-src_vwait_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(src_vwait_LDFLAGS) $(LDFLAGS) -o $@
-am_tests_escaperoot_OBJECTS = tests/escaperoot.$(OBJEXT)
-tests_escaperoot_OBJECTS = $(am_tests_escaperoot_OBJECTS)
-tests_escaperoot_LDADD = $(LDADD)
-am_tests_forkbomb_OBJECTS = tests/forkbomb.$(OBJEXT)
-tests_forkbomb_OBJECTS = $(am_tests_forkbomb_OBJECTS)
-tests_forkbomb_LDADD = $(LDADD)
-am_tests_getctx_OBJECTS = tests/getctx.$(OBJEXT)
-tests_getctx_OBJECTS = $(am_tests_getctx_OBJECTS)
-tests_getctx_DEPENDENCIES = $(am__DEPENDENCIES_2)
-tests_getctx_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(tests_getctx_LDFLAGS) $(LDFLAGS) -o $@
-am_tests_getinitpid_OBJECTS = tests/getinitpid.$(OBJEXT)
-tests_getinitpid_OBJECTS = $(am_tests_getinitpid_OBJECTS)
-tests_getinitpid_DEPENDENCIES = $(am__DEPENDENCIES_2)
-tests_getinitpid_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(tests_getinitpid_LDFLAGS) $(LDFLAGS) -o $@
-am_tests_testipc_OBJECTS = tests/testipc.$(OBJEXT)
-tests_testipc_OBJECTS = $(am_tests_testipc_OBJECTS)
-tests_testipc_LDADD = $(LDADD)
-am_tests_testlimit_OBJECTS = tests/testlimit.$(OBJEXT)
-tests_testlimit_OBJECTS = $(am_tests_testlimit_OBJECTS)
-tests_testlimit_LDADD = $(LDADD)
-am_tests_testopenf_OBJECTS = tests/testopenf.$(OBJEXT)
-tests_testopenf_OBJECTS = $(am_tests_testopenf_OBJECTS)
-tests_testopenf_LDADD = $(LDADD)
-am_tests_vserver_info_OBJECTS = tests/vserver-info.$(OBJEXT)
-tests_vserver_info_OBJECTS = $(am_tests_vserver_info_OBJECTS)
-tests_vserver_info_DEPENDENCIES = $(am__DEPENDENCIES_2)
-tests_vserver_info_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(tests_vserver_info_LDFLAGS) $(LDFLAGS) -o $@
-am_vserver_start_vserver_start_bin_OBJECTS = \
- vserver-start/main.$(OBJEXT) vserver-start/mount.$(OBJEXT) \
- vserver-start/defaulttty.$(OBJEXT) \
- vserver-start/scriptlets.$(OBJEXT) \
- vserver-start/undo.$(OBJEXT) vserver-start/vshelper.$(OBJEXT) \
- vserver-start/interface.$(OBJEXT) \
- vserver-start/interface-add.$(OBJEXT) \
- vserver-start/interface-read.$(OBJEXT) \
- vserver-start/interface-remove.$(OBJEXT) \
- vserver-start/interface-print.$(OBJEXT) \
- vserver-start/configuration.$(OBJEXT) \
- vserver-start/configuration-init.$(OBJEXT)
-vserver_start_vserver_start_bin_OBJECTS = \
- $(am_vserver_start_vserver_start_bin_OBJECTS)
-vserver_start_vserver_start_bin_DEPENDENCIES = $(am__DEPENDENCIES_2) \
- $(LIBINTERNAL) $(LIBENSCVECTOR)
-vserver_start_vserver_start_bin_LINK = $(LIBTOOL) --tag=CC \
- $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
- $(AM_CFLAGS) $(CFLAGS) \
- $(vserver_start_vserver_start_bin_LDFLAGS) $(LDFLAGS) -o $@
-initrdSCRIPT_INSTALL = $(INSTALL_SCRIPT)
-legacySCRIPT_INSTALL = $(INSTALL_SCRIPT)
-pkglibSCRIPT_INSTALL = $(INSTALL_SCRIPT)
-sbinSCRIPT_INSTALL = $(INSTALL_SCRIPT)
-SCRIPTS = $(initrd_SCRIPTS) $(legacy_SCRIPTS) $(pkglib_SCRIPTS) \
- $(sbin_SCRIPTS)
-DEFAULT_INCLUDES = -I.@am__isrc@
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
- $(LDFLAGS) -o $@
-SOURCES = $(nodist_lib_dietlibc_not_enabled_error_a_SOURCES) \
- $(nodist_lib_glibc_not_enabled_error_a_SOURCES) \
- $(lib_libvserver_a_SOURCES) \
- $(lib_internal_libinternal_diet_a_SOURCES) \
- $(lib_internal_libinternal_glibc_a_SOURCES) \
- $(libensc_vector_diet_a_SOURCES) \
- $(libensc_vector_glibc_a_SOURCES) $(lib_libvserver_la_SOURCES) \
- $(src_rpm_fake_la_SOURCES) \
- $(ensc_vector_testsuite_test1_SOURCES) \
- $(ensc_vector_testsuite_test2_SOURCES) \
- $(lib_testsuite_cflags_SOURCES) $(lib_testsuite_fmt_SOURCES) \
- $(lib_testsuite_parselimit_SOURCES) \
- $(lib_testsuite_personality_SOURCES) \
- $(lib_internal_testsuite_command_SOURCES) \
- $(lib_internal_testsuite_copy_SOURCES) \
- $(lib_internal_testsuite_filecfg_ml_SOURCES) \
- $(lib_internal_testsuite_isnumber_SOURCES) \
- $(lib_internal_testsuite_isnumber_gnu_SOURCES) \
- $(lib_internal_testsuite_matchlist_SOURCES) \
- $(lib_internal_testsuite_matchlist_gnu_SOURCES) \
- $(lib_internal_testsuite_sigbus_SOURCES) \
- $(lib_internal_testsuite_sigbus_gnu_SOURCES) \
- $(src_capchroot_SOURCES) $(src_chain_echo_SOURCES) \
- $(src_chbind_compat_SOURCES) $(src_chcontext_compat_SOURCES) \
- src/check-unixfile.c $(src_chroot_sh_SOURCES) \
- $(src_chxid_SOURCES) $(src_exec_cd_SOURCES) \
- $(src_exec_ulimit_SOURCES) $(src_fakerunlevel_SOURCES) \
- $(src_filetime_SOURCES) $(src_h2ext_SOURCES) \
- $(src_ifspec_SOURCES) $(src_keep_ctx_alive_SOURCES) \
- $(src_listdevip_SOURCES) $(src_lockfile_SOURCES) \
- $(src_lsxid_SOURCES) $(src_mask2prefix_SOURCES) \
- $(src_naddress_SOURCES) $(src_nattribute_SOURCES) \
- $(src_ncontext_SOURCES) $(src_parserpmdump_SOURCES) \
- $(src_readlink_SOURCES) $(src_rebootmgr_SOURCES) \
- $(src_reducecap_SOURCES) $(src_rpm_fake_resolver_SOURCES) \
- $(src_save_ctxinfo_SOURCES) $(src_secure_mount_SOURCES) \
- $(src_setattr_SOURCES) $(src_showattr_SOURCES) src/showperm.c \
- src/sigexec.c $(src_testsuite_chbind_test_SOURCES) \
- $(src_testsuite_chcontext_test_SOURCES) \
- $(src_testsuite_hashcalc_SOURCES) \
- $(src_testsuite_hashcalc_plain_SOURCES) \
- $(src_testsuite_rpm_fake_test_SOURCES) \
- $(src_testsuite_vunify_functest_SOURCES) \
- $(src_vattribute_SOURCES) $(src_vclone_SOURCES) \
- $(src_vcontext_SOURCES) $(src_vcopy_SOURCES) \
- $(src_vdevmap_SOURCES) $(src_vdlimit_SOURCES) \
- $(src_vdu_SOURCES) $(src_vhashify_SOURCES) \
- $(src_vip6_autod_SOURCES) $(src_vkill_SOURCES) \
- $(src_vlimit_SOURCES) $(src_vnamespace_SOURCES) \
- $(src_vps_SOURCES) $(src_vreboot_SOURCES) src/vrsetup.c \
- $(src_vsched_SOURCES) $(src_vserver_info_SOURCES) \
- $(src_vserver_stat_SOURCES) $(src_vsh_SOURCES) \
- $(src_vshelper_sync_SOURCES) $(src_vsysctl_SOURCES) \
- $(src_vtag_SOURCES) $(src_vuname_SOURCES) \
- $(src_vunify_SOURCES) $(src_vwait_SOURCES) \
- $(tests_escaperoot_SOURCES) $(tests_forkbomb_SOURCES) \
- $(tests_getctx_SOURCES) $(tests_getinitpid_SOURCES) \
- $(tests_testipc_SOURCES) $(tests_testlimit_SOURCES) \
- $(tests_testopenf_SOURCES) $(tests_vserver_info_SOURCES) \
- $(vserver_start_vserver_start_bin_SOURCES)
-DIST_SOURCES = $(am__lib_libvserver_a_SOURCES_DIST) \
- $(am__lib_internal_libinternal_diet_a_SOURCES_DIST) \
- $(am__lib_internal_libinternal_glibc_a_SOURCES_DIST) \
- $(libensc_vector_diet_a_SOURCES) \
- $(libensc_vector_glibc_a_SOURCES) \
- $(am__lib_libvserver_la_SOURCES_DIST) \
- $(src_rpm_fake_la_SOURCES) \
- $(ensc_vector_testsuite_test1_SOURCES) \
- $(ensc_vector_testsuite_test2_SOURCES) \
- $(lib_testsuite_cflags_SOURCES) $(lib_testsuite_fmt_SOURCES) \
- $(lib_testsuite_parselimit_SOURCES) \
- $(lib_testsuite_personality_SOURCES) \
- $(lib_internal_testsuite_command_SOURCES) \
- $(lib_internal_testsuite_copy_SOURCES) \
- $(lib_internal_testsuite_filecfg_ml_SOURCES) \
- $(lib_internal_testsuite_isnumber_SOURCES) \
- $(lib_internal_testsuite_isnumber_gnu_SOURCES) \
- $(lib_internal_testsuite_matchlist_SOURCES) \
- $(lib_internal_testsuite_matchlist_gnu_SOURCES) \
- $(lib_internal_testsuite_sigbus_SOURCES) \
- $(lib_internal_testsuite_sigbus_gnu_SOURCES) \
- $(src_capchroot_SOURCES) $(src_chain_echo_SOURCES) \
- $(src_chbind_compat_SOURCES) $(src_chcontext_compat_SOURCES) \
- src/check-unixfile.c $(src_chroot_sh_SOURCES) \
- $(src_chxid_SOURCES) $(src_exec_cd_SOURCES) \
- $(src_exec_ulimit_SOURCES) $(src_fakerunlevel_SOURCES) \
- $(src_filetime_SOURCES) $(src_h2ext_SOURCES) \
- $(src_ifspec_SOURCES) $(src_keep_ctx_alive_SOURCES) \
- $(src_listdevip_SOURCES) $(src_lockfile_SOURCES) \
- $(src_lsxid_SOURCES) $(src_mask2prefix_SOURCES) \
- $(src_naddress_SOURCES) $(src_nattribute_SOURCES) \
- $(src_ncontext_SOURCES) $(src_parserpmdump_SOURCES) \
- $(src_readlink_SOURCES) $(src_rebootmgr_SOURCES) \
- $(src_reducecap_SOURCES) $(src_rpm_fake_resolver_SOURCES) \
- $(src_save_ctxinfo_SOURCES) $(src_secure_mount_SOURCES) \
- $(src_setattr_SOURCES) $(src_showattr_SOURCES) src/showperm.c \
- src/sigexec.c $(src_testsuite_chbind_test_SOURCES) \
- $(src_testsuite_chcontext_test_SOURCES) \
- $(src_testsuite_hashcalc_SOURCES) \
- $(src_testsuite_hashcalc_plain_SOURCES) \
- $(src_testsuite_rpm_fake_test_SOURCES) \
- $(src_testsuite_vunify_functest_SOURCES) \
- $(src_vattribute_SOURCES) $(src_vclone_SOURCES) \
- $(src_vcontext_SOURCES) $(src_vcopy_SOURCES) \
- $(src_vdevmap_SOURCES) $(src_vdlimit_SOURCES) \
- $(src_vdu_SOURCES) $(src_vhashify_SOURCES) \
- $(src_vip6_autod_SOURCES) $(src_vkill_SOURCES) \
- $(src_vlimit_SOURCES) $(src_vnamespace_SOURCES) \
- $(src_vps_SOURCES) $(src_vreboot_SOURCES) src/vrsetup.c \
- $(src_vsched_SOURCES) $(src_vserver_info_SOURCES) \
- $(src_vserver_stat_SOURCES) $(src_vsh_SOURCES) \
- $(src_vshelper_sync_SOURCES) $(src_vsysctl_SOURCES) \
- $(src_vtag_SOURCES) $(src_vuname_SOURCES) \
- $(src_vunify_SOURCES) $(src_vwait_SOURCES) \
- $(tests_escaperoot_SOURCES) $(tests_forkbomb_SOURCES) \
- $(tests_getctx_SOURCES) $(tests_getinitpid_SOURCES) \
- $(tests_testipc_SOURCES) $(tests_testlimit_SOURCES) \
- $(tests_testopenf_SOURCES) $(tests_vserver_info_SOURCES) \
- $(vserver_start_vserver_start_bin_SOURCES)
-RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
- html-recursive info-recursive install-data-recursive \
- install-dvi-recursive install-exec-recursive \
- install-html-recursive install-info-recursive \
- install-pdf-recursive install-ps-recursive install-recursive \
- installcheck-recursive installdirs-recursive pdf-recursive \
- ps-recursive uninstall-recursive
-man8dir = $(mandir)/man8
-NROFF = nroff
-MANS = $(man_MANS)
-pkgconfDATA_INSTALL = $(INSTALL_DATA)
-pkglibDATA_INSTALL = $(INSTALL_DATA)
-sysconfDATA_INSTALL = $(INSTALL_DATA)
-DATA = $(noinst_DATA) $(pkgconf_DATA) $(pkglib_DATA) $(sysconf_DATA)
-includeHEADERS_INSTALL = $(INSTALL_HEADER)
-HEADERS = $(include_HEADERS) $(noinst_HEADERS)
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
- distclean-recursive maintainer-clean-recursive
-ETAGS = etags
-CTAGS = ctags
-@ENSC_HAVE_C99_COMPILER_TRUE@am__EXEEXT_14 = \
-@ENSC_HAVE_C99_COMPILER_TRUE@ src/testsuite/vunify-test.sh \
-@ENSC_HAVE_C99_COMPILER_TRUE@ $(am__append_8)
-am__EXEEXT_15 = $(am__EXEEXT_14)
-@ENSC_HAVE_C99_COMPILER_TRUE@am__EXEEXT_16 = lib_internal/testsuite/filecfg-ml$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/copy-check \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/isnumber$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/isnumber-gnu$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/sigbus$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/sigbus-gnu$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/matchlist$(EXEEXT) \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/testsuite/matchlist-gnu$(EXEEXT)
-DIST_SUBDIRS = $(SUBDIRS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-distdir = $(PACKAGE)-$(VERSION)
-top_distdir = $(distdir)
-am__remove_distdir = \
- { test ! -d $(distdir) \
- || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
- && rm -fr $(distdir); }; }
-DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
-GZIP_ENV = --best
-distuninstallcheck_listfiles = find . -type f -print
-distcleancheck_listfiles = find . -type f -print
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BZIP2 = @BZIP2@
-CAT = @CAT@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CHOWN = @CHOWN@
-CMP = @CMP@
-CP = @CP@
-CPIO = @CPIO@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DIET = @DIET@
-DIETFLAGS = @DIETFLAGS@
-DIRNAME = @DIRNAME@
-DOXYGEN = @DOXYGEN@
-ECHO = @ECHO@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-ENSC_PATHPROG_SED = @ENSC_PATHPROG_SED@
-ENSC_USE_EXPENSIVE_TESTS = @ENSC_USE_EXPENSIVE_TESTS@
-ENV = @ENV@
-EXEEXT = @EXEEXT@
-F77 = @F77@
-FFLAGS = @FFLAGS@
-FILE = @FILE@
-GPG_KEY = @GPG_KEY@
-GREP = @GREP@
-GZIP = @GZIP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-IP = @IP@
-IPTABLES = @IPTABLES@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIB_DEBUG_CPPFLAGS = @LIB_DEBUG_CPPFLAGS@
-LN = @LN@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR = @MKDIR@
-MKDIR_P = @MKDIR_P@
-MKFIFO = @MKFIFO@
-MKTEMP = @MKTEMP@
-MODPROBE = @MODPROBE@
-MOUNT = @MOUNT@
-MV = @MV@
-NAMEIF = @NAMEIF@
-NICE = @NICE@
-NOHUP = @NOHUP@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PS = @PS@
-PYTHON = @PYTHON@
-PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
-PYTHON_INCLUDES = @PYTHON_INCLUDES@
-PYTHON_PLATFORM = @PYTHON_PLATFORM@
-PYTHON_PREFIX = @PYTHON_PREFIX@
-PYTHON_VERSION = @PYTHON_VERSION@
-RANLIB = @RANLIB@
-RELEASE_CPPFLAGS = @RELEASE_CPPFLAGS@
-RESTORE = @RESTORE@
-RM = @RM@
-RMDIR = @RMDIR@
-RMMOD = @RMMOD@
-RSYNC = @RSYNC@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SH = @SH@
-SHELL = @SHELL@
-STRACE = @STRACE@
-STRIP = @STRIP@
-SVN2CL = @SVN2CL@
-TAC = @TAC@
-TAR = @TAR@
-TOUCH = @TOUCH@
-TTY = @TTY@
-UMOUNT = @UMOUNT@
-VCONFIG = @VCONFIG@
-VERSION = @VERSION@
-WC = @WC@
-WGET = @WGET@
-XSLTP = @XSLTP@
-XSLTPROC = @XSLTPROC@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_F77 = @ac_ct_F77@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-initrddir = @initrddir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-pkgpyexecdir = @pkgpyexecdir@
-pkgpythondir = @pkgpythondir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-pyexecdir = @pyexecdir@
-pythondir = @pythondir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-vserverdir = @vserverdir@
-ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = . distrib python
-SVN2CL_AMFLAGS = $(SVN2CL_TAG) --authors=svnusers.map
-SVN2CL_ALLFLAGS := $(SVN2CL_AMFLAGS) $(SVN2CL_FLAGS)
-confdir = $(sysconfdir)/vservers
-confdefaultsdir = $(confdir)/.defaults
-sbincfgdir = $(sbindir)
-legacydir = $(pkglibdir)/legacy
-include_HEADERS = lib/vserver.h
-noinst_HEADERS = $(ENSC_VECTOR_HDRS) compat.h compat-c99.h \
- lib/syscall-compat.hc lib/syscall-legacy.hc \
- lib/syscall-fallback.h lib/createskeleton-full.hc \
- lib/createskeleton-short.hc lib/fmt.h \
- lib/getversion-internal.hc lib/safechroot-internal.hc \
- lib/ioctl-getext2flags.hc lib/ioctl-getfilecontext.hc \
- lib/ioctl-setext2flags.hc lib/ioctl-setfilecontext.hc \
- lib/ioctl-getxflg.hc lib/ioctl-setxflg.hc lib/ext2fs.h \
- lib/listparser.hc lib/val2text.hc lib/virtual.h lib/internal.h \
- lib/syscall-alternative.h lib/syscall-wrap.h \
- lib/utils-legacy.h lib/planetlab.h lib/vserver-internal.h \
- src/capability-compat.h src/util.h src/fstool.h \
- src/compat-pivot_root.h src/stack-start.h src/vcopy-init.hc \
- src/vunify.h src/vunify-init.hc src/vhashify.h \
- src/vhashify-init.hc src/vserver-visitdir.hc \
- src/context-sync.hc ensc_wrappers/wrappers-clone.hc \
- ensc_wrappers/wrappers-dirent.hc \
- ensc_wrappers/wrappers-fcntl.hc ensc_wrappers/wrappers-io.hc \
- ensc_wrappers/wrappers-ioctl.hc \
- ensc_wrappers/wrappers-iosock.hc \
- ensc_wrappers/wrappers-mount.hc \
- ensc_wrappers/wrappers-pivot.hc \
- ensc_wrappers/wrappers-resource.hc \
- ensc_wrappers/wrappers-socket.hc \
- ensc_wrappers/wrappers-stat.hc \
- ensc_wrappers/wrappers-stdlib.hc \
- ensc_wrappers/wrappers-string.hc \
- ensc_wrappers/wrappers-termios.hc \
- ensc_wrappers/wrappers-unistd.hc \
- ensc_wrappers/wrappers-vserver.hc \
- ensc_wrappers/wrappers-wait.hc ensc_wrappers/wrappers.h \
- ensc_wrappers/wrappers_handler.hc lib_internal/coreassert.h \
- lib_internal/errinfo.h lib_internal/jail.h \
- lib_internal/matchlist.h lib_internal/pathinfo.h \
- lib_internal/string.h lib_internal/sys_clone.h \
- lib_internal/sys_personality.h lib_internal/sys_unshare.h \
- lib_internal/unify.h lib_internal/util.h \
- lib_internal/util-cast.h lib_internal/util-commonstrings.h \
- lib_internal/util-debug.h lib_internal/util-declarecmd.h \
- lib_internal/util-dimof.h lib_internal/util-dotfile.h \
- lib_internal/util-exitlikeprocess.h lib_internal/util-io.h \
- lib_internal/util-lockfile.h lib_internal/util-mem.h \
- lib_internal/util-perror.h lib_internal/util-safechdir.h \
- lib_internal/util-unixsock.h lib_internal/string.hc
-noinst_LIBRARIES = $(ENSC_VECTOR_LIBS) $(LIBINTERNAL_GLIBC) \
- $(am__append_15)
-lib_LIBRARIES = $(am__append_2)
-lib_LTLIBRARIES = $(LIBVSERVER_GLIBC)
-pkglib_LTLIBRARIES = src/rpm-fake.la
-pkglib_SCRIPTS = $(scripts_pkglib_src_SCRPTS) $(am__append_21)
-pkglib_DATA = FEATURES.txt $(scripts_pkglib_src_DTA) \
- $(scripts_pkglib_gen_DTA)
-legacy_SCRIPTS = $(scripts_legacy_src_SCRPTS) \
- $(scripts_legacy_gen_SCRPTS)
-sbin_SCRIPTS = $(scripts_sbin_src_PRGS) $(scripts_sbin_gen_PRGS) \
- $(scripts_legacy_src_PRGS)
-noinst_DATA = $(contrib_gen_DTA)
-initrd_SCRIPTS = $(am__append_12) $(am__append_20)
-sysconf_DATA = $(am__append_11)
-DIETPROGS = $(LIBENSCVECTOR_DIET) lib/lib_libvserver_a-% \
- ensc_fmt/lib_libvserver_a-% lib/testsuite/cflags \
- lib/testsuite/personality lib/testsuite/fmt \
- src/chcontext-compat src/capchroot src/chain-echo \
- src/check-unixfile src/chroot-sh src/filetime src/lockfile \
- src/readlink src/secure-mount src/save_ctxinfo src/mask2prefix \
- src/chbind-compat src/exec-cd src/fakerunlevel \
- src/keep-ctx-alive src/exec-ulimit src/vps src/lsxid src/chxid \
- src/reducecap src/showattr src/setattr src/sigexec \
- src/vattribute src/vlimit src/vnamespace src/vunify src/vuname \
- src/rpm-fake-resolver src/vcontext src/vcopy src/vkill \
- src/vsched src/vshelper-sync src/vrsetup src/vserver-stat \
- src/vserver-info src/vdlimit src/vsh src/vdu src/vwait \
- src/ncontext src/nattribute src/naddress src/vdevmap \
- src/vsysctl src/vclone src/h2ext src/vtag $(am__append_3) \
- $(tests_dietprogs) lib_internal/libinternal-diet.a \
- lib_internal/testsuite/isnumber lib_internal/testsuite/sigbus \
- lib_internal/testsuite/matchlist $(am__append_18)
-BUILT_SOURCES = pathconfig.h \
- .fixups
-
-man_MANS = $(man_pages)
-kernel_HDRS = $(wildcard kernel/*.h)
-EXTRA_DIST = pathconfig.h.pathsubst util-vserver.spec THANKS \
- REQUIREMENTS $(kernel_HDRS) lib/apidoc/list2xxx.syntax \
- $(src_testsuite_check_src_SCRPTS) src/testsuite/vunify-test.sh \
- src/testsuite/hashcalc.sh src/testsuite/hashcalc-plain.sh \
- src/testsuite/vwait-test.sh $(doc_compatibility_SRCS) \
- $(doc_configuration_SRCS) $(doc_old_doc) $(doc_gen_DOCS) \
- $(man_pages) $(scripts_pkglib_src_DTA) \
- $(scripts_pkglib_src_SCRPTS) $(scripts_legacy_src_SCRPTS) \
- $(scripts_legacy_src_PRGS) $(scripts_sbin_src_PRGS) \
- $(scripts_subst_SRCS) sysv/v_gated.subst sysv/v_httpd.subst \
- sysv/v_named.subst sysv/v_portmap.subst sysv/v_sendmail.subst \
- sysv/v_smb.subst sysv/v_sshd.subst sysv/v_xinetd.subst \
- $(sysv_src_SCRPTS) $(sysv_conf_DTA) $(contrib_subst_SRCS) \
- contrib/yum-2.2.1-chroot.patch contrib/yum-2.3.2-chroot.patch \
- contrib/yum-2.3.3-chroot.patch contrib/yum-2.3.4-chroot.patch \
- contrib/yum-2.6.0-chroot.patch contrib/yum-2.9.6-chroot.patch \
- contrib/yum-3.0.3-chroot.patch contrib/yum-3.0.5-chroot.patch \
- contrib/yum-3.2.0-chroot.patch contrib/yum-3.2.1-chroot.patch \
- contrib/make-manifest lib_internal/testsuite/copy-check \
- $(gentoo_src_SCRPTS) gentoo/bash-wrapper $(addsuffix \
- .pc.subst, $(PKGCONFIG_FILES))
-check_SCRIPTS = $(src_testsuite_check_src_SCRPTS) \
- $(src_testsuite_check_gen_SCRPTS)
-TESTS_DEBUG = no
-TESTS_ENVIRONMENT = \
- ensc_use_expensive_tests="$(ENSC_USE_EXPENSIVE_TESTS)" \
- ensc_test_debug="$(TESTS_DEBUG)" \
- srctestsuitedir=$(top_builddir)/src/testsuite \
- libinternaltestsuitedir=$(top_builddir)/lib_internal/testsuite
-AM_CPPFLAGS = -I $(top_srcdir)/lib -I $(top_srcdir)/ensc_wrappers \
- -D_GNU_SOURCE -D_REENTRANT $(RELEASE_CPPFLAGS)
-
-CLEANFILES = $(BUILT_SOURCES) .*.pathsubst.stamp */.*.pathsubst.stamp \
- */*/.*.pathsubst.stamp pathconfig.h .fixups lib/libvserver.la \
- lib/libvserver.a lib/apidoc/.apidoc doc/*.raw.html* \
- doc/*.html.tmp $(am__append_9) $(am__append_10) \
- $(scripts_pkglib_gen_DTA) $(scripts_sbin_gen_PRGS) \
- $(scripts_sbincfg_gen_DTA) $(scripts_legacy_gen_SCRPTS) \
- $(sysv_gen_SCRPTS) $(contrib_gen_DTA) libensc_vector-diet.a \
- libensc_vector-glibc.a lib_internal/libinternal-diet.a \
- lib_internal/libinternal-glibc.a $(addsuffix .pc, \
- $(PKGCONFIG_FILES))
-DISTCLEANFILES = FEATURES.txt
-AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = src/parserpmdump src/showperm \
- src/vcheck src/vreboot src/save_ctxinfo src/mask2prefix \
- src/ifspec src/rebootmgr src/vfiles scripts/vapt-get-worker \
- scripts/vrpm-worker scripts/vyum-worker scripts/vrpm-preload \
- scripts/save_s_context scripts/vservers.grabinfo.sh \
- scripts/vpstree scripts/vserver-wrapper scripts/vsysvwrapper \
- scripts/vtop scripts/legacy/distrib-info scripts/legacy/vps \
- scripts/legacy/save_s_context scripts/legacy/vserver \
- scripts/legacy/rootshell scripts/legacy/vserver-copy \
- scripts/legacy/vserverkillall $(sysv_src_SCRPTS) \
- $(sysv_gen_SCRPTS) vserver-start/vserver.start.bin \
- $(gentoo_src_SCRPTS)
-@USE_DIETLIBC_TRUE@DIET_CC := $(DIET) $(DIETFLAGS) $(CC)
-@USE_DIETLIBC_FALSE@VSERVER_LDFLGS :=
-@USE_DIETLIBC_TRUE@VSERVER_LDFLGS := -static
-@USE_DIETLIBC_COMPAT_FALSE@DIET_COMPAT_LDADDS =
-@USE_DIETLIBC_COMPAT_TRUE@DIET_COMPAT_LDADDS = -lcompat
-VSERVER_LDADDS = $(LIBVSERVER) $(DIET_COMPAT_LDADDS)
-pathsubst_RULES = s!@'PKGLIBDIR'@!$(pkglibdir)!g; \
- s!@'LEGACYDIR'@!$(legacydir)!g; \
- s!@'SBINDIR'@!$(sbindir)!g; \
- s!@'CONFDIR'@!$(confdir)!g; \
- s!@'SYSCONFDIR'@!$(sysconfdir)!g; \
- s!@'PKGSTATEDIR'@!$(pkgstatedir)!g; \
- s!@'PKGCACHEDIR'@!$(pkgcachedir)!g; \
- s!@'PKGSTATEREVDIR'@!$(pkgstaterevdir)!g; \
- s!@'VSERVERDIR'@!$(vserverdir)!g; \
- s!@'VSERVERPKGDIR'@!$(vserverpkgdir)!g; \
- s!@'VSERVERPKGDIR'@!$(vserverpkgdir)!g; \
- s!@'VSHELPERSTATEDIR'@!$(vshelperstatedir)!g; \
- s!@'INITRDDIR'@!$(initrddir)!g; \
- s!@'LIBDIR'@!$(libdir)!g; \
- s!@'MANDIR'@!$(mandir)!g; \
- s!@'INCLUDEDIR'@!$(includedir)!g; \
- s!@'PACKAGE'@!$(PACKAGE)!g; \
- s!@'PACKAGE_BUGREPORT'@!$(PACKAGE_BUGREPORT)!g; \
- s!@'PACKAGE_NAME'@!$(PACKAGE_NAME)!g; \
- s!@'PACKAGE_STRING'@!$(PACKAGE_STRING)!g; \
- s!@'PACKAGE_TARNAME'@!$(PACKAGE_TARNAME)!g; \
- s!@'PACKAGE_VERSION'@!$(PACKAGE_VERSION)!g; \
- s!@'ENSC_HAVE_C99_COMPILER_TRUE'@!\@ENSC_HAVE_C99_COMPILER_TRUE@ !g; \
- s!@'ENSC_HAVE_C99_COMPILER_FALSE'@!\@ENSC_HAVE_C99_COMPILER_FALSE@ !g; \
- s!@'ENSC_HAVE_CXX_COMPILER_TRUE'@!\@ENSC_HAVE_CXX_COMPILER_TRUE@ !g; \
- s!@'ENSC_HAVE_CXX_COMPILER_FALSE'@!\@ENSC_HAVE_CXX_COMPILER_FALSE@ !g; \
- s!@'ENSC_HAVE_LIBNL_TRUE'@!\@ENSC_HAVE_LIBNL_TRUE@ !g; \
- s!@'ENSC_HAVE_LIBNL_FALSE'@!\@ENSC_HAVE_LIBNL_FALSE@ !g; \
- $(ENSC_PATHPROG_SED)
-
-pkgcachedir = $(localstatedir)/cache/vservers
-pkgstatedir = $(localstatedir)/run/vservers
-pkgstaterevdir = $(confdefaultsdir)/run.rev
-vserverpkgdir = $(vserverdir)/.pkg
-vshelperstatedir = $(localstatedir)/run/vshelper
-fix_SCRPTS = $(addprefix $(pkglibdir)/, $(notdir $(pkglib_SCRIPTS))) \
- $(addprefix $(legacydir)/, $(notdir $(legacy_SCRIPTS))) \
- $(addprefix $(sbindir)/, $(notdir $(sbin_SCRIPTS))) \
- $(addprefix $(initrddir)/, $(notdir $(initrd_SCRIPTS)))
-
-@ENSC_USE_DIETLIBC_FALSE@nodist_lib_dietlibc_not_enabled_error_a_SOURCES = \
-@ENSC_USE_DIETLIBC_FALSE@ lib-dietlibc-not-enabled-error.c
-
-@USE_DIETLIBC_FALSE@nodist_lib_dietlibc_not_enabled_error_a_SOURCES = \
-@USE_DIETLIBC_FALSE@ lib-dietlibc-not-enabled-error.c
-
-lib_VERSION = 0.0.0
-lib_compat_SRCS = lib/cflags-compat.c \
- lib/cflags_list-compat.c
-
-lib_legacy_SRCS = lib/getprocentry-legacy.c
-lib_management_SRCS = lib/comparevserverbyid.c \
- lib/createskeleton.c \
- lib/getvserverbyctx.c \
- lib/getvserverbyctx-compat.hc \
- lib/getvserverbyctx-v13.hc \
- lib/getvservercfgstyle.c \
- lib/getvserverappdir.c \
- lib/getvservercfgdir.c \
- lib/getvserverctx.c \
- lib/getvservername.c \
- lib/getvservervdir.c \
- lib/xidopt2xid.c \
- lib/nidopt2nid.c \
- lib/tagopt2tag.c
-
-lib_v11_SRCS = lib/syscall_rlimit.c \
- lib/syscall_rlimit-v11.hc \
- lib/syscall_kill.c \
- lib/syscall_kill-v11.hc
-
-lib_v13_SRCS = lib/syscall_ctxcreate.c lib/syscall_ctxcreate-v13.hc \
- lib/syscall_ctxmigrate.c lib/syscall_ctxmigrate-v13.hc \
- lib/syscall_cleanupnamespace-v13.hc \
- lib/syscall_cleanupnamespace.c \
- lib/syscall_enternamespace-v13.hc lib/syscall_enternamespace.c \
- lib/syscall_getccaps-v13.hc lib/syscall_getccaps.c \
- lib/syscall_getcflags-v13.hc lib/syscall_getcflags.c \
- lib/syscall_getiattr-fscompat.hc lib/syscall_getiattr-v13.hc \
- lib/syscall_getiattr.c lib/syscall_getncaps-net.hc \
- lib/syscall_getncaps.c lib/syscall_getnflags-net.hc \
- lib/syscall_getnflags.c lib/syscall_getnxinfo-net.hc \
- lib/syscall_getnxinfo.c lib/syscall_gettasknid-net.hc \
- lib/syscall_gettasknid.c lib/syscall_gettaskxid-oldproc.hc \
- lib/syscall_gettaskxid-v13.hc lib/syscall_gettaskxid.c \
- lib/syscall_getvhiname-olduts.hc lib/syscall_getvhiname-v13.hc \
- lib/syscall_getvhiname.c lib/syscall_getvxinfo-oldproc.hc \
- lib/syscall_getvxinfo-v13.hc lib/syscall_getvxinfo.c \
- lib/syscall_netadd-net.hc lib/syscall_netadd.c \
- lib/syscall_netcreate-net.hc lib/syscall_netcreate.c \
- lib/syscall_netmigrate-net.hc lib/syscall_netmigrate.c \
- lib/syscall_netremove-net.hc lib/syscall_netremove.c \
- lib/syscall_setccaps-v13.hc lib/syscall_setccaps.c \
- lib/syscall_setcflags-v13.hc lib/syscall_setcflags.c \
- lib/syscall_setiattr-fscompat.hc lib/syscall_setiattr-v13.hc \
- lib/syscall_setiattr.c lib/syscall_setnamespace-v13.hc \
- lib/syscall_setnamespace.c lib/syscall_setncaps-net.hc \
- lib/syscall_setncaps.c lib/syscall_setnflags-net.hc \
- lib/syscall_setnflags.c lib/syscall_setsched-v13.hc \
- lib/syscall_setsched-v13obs.hc lib/syscall_setsched.c \
- lib/syscall_setvhiname-olduts.hc lib/syscall_setvhiname-v13.hc \
- lib/syscall_setvhiname.c lib/syscall_waitexit.c \
- lib/syscall_waitexit-v13.hc lib/bcaps-v13.c \
- lib/bcaps_list-v13.c lib/ccaps-v13.c lib/ccaps_list-v13.c \
- lib/cflags-v13.c lib/cflags_list-v13.c lib/ncaps-net.c \
- lib/ncaps_list-net.c lib/nflags-net.c lib/nflags_list-net.c \
- $(am__append_1)
-lib_v21_SRCS = lib/syscall_setccaps-v21.hc \
- lib/syscall_setsched-v21.hc \
- lib/syscall_rlimitstat.c \
- lib/syscall_rlimitstat-v21.hc \
- lib/syscall_resetminmax.c \
- lib/syscall_resetminmax-v21.hc \
- lib/syscall_getvci.c \
- lib/syscall_getvci-v21.hc \
- lib/syscall_virtstat.c \
- lib/syscall_virtstat-v21.hc \
- lib/syscall_ctxstat.c \
- lib/syscall_ctxstat-v21.hc \
- lib/syscall_getspacemask.c \
- lib/syscall_getspacemask-v21.hc \
- lib/syscall_enternamespace-v21.hc \
- lib/syscall_setnamespace-v21.hc \
- lib/syscall_ctxmigrate-v21.hc \
- lib/syscall_setmapping.c \
- lib/syscall_setmapping-v21.hc \
- lib/syscall_schedinfo.c \
- lib/syscall_schedinfo-v21.hc \
- lib/syscall_getccaps-v21.hc \
- lib/syscall_getsched.c \
- lib/syscall_getsched-v21.hc \
- lib/syscall_ctxcreate-v21.hc
-
-lib_v22_SRCS = lib/syscall_setsched-v22.hc \
- lib/syscall_fsetiattr.c \
- lib/syscall_fsetiattr-v22.hc \
- lib/syscall_fgetiattr.c \
- lib/syscall_fgetiattr-v22.hc
-
-lib_netv2_SRCS = lib/syscall_netadd-netv2.hc \
- lib/syscall_netremove-netv2.hc
-
-lib_v23_SRCS = lib/syscall_tagmigrate-v23.hc \
- lib/syscall_tagmigrate.c \
- lib/syscall_tagcreate.c \
- lib/syscall_tasktag-v23.hc \
- lib/syscall_tasktag.c
-
-PKGCONFIG_FILES = lib/util-vserver
-lib_SRCS = lib/syscall.c \
- lib/checkversion.c \
- lib/checkconfig.c \
- lib/isdirectory.c \
- lib/isfile.c \
- lib/islink.c \
- lib/getnbipv4root.c \
- lib/getversion.c \
- lib/capabilities.c \
- lib/getfilecontext.c \
- lib/getinsecurebcaps.c \
- lib/getxidtype.c \
- lib/isdynamicxid.c \
- lib/issupported.c \
- lib/issupportedstring.c \
- lib/listparser_uint32.c \
- lib/listparser_uint64.c \
- lib/personalityflag.c \
- lib/personalityflag_list.c \
- lib/personalitytype.c \
- lib/syscall-syscall.c \
- lib/val2text-t2v-uint32.c \
- lib/val2text-t2v-uint64.c \
- lib/val2text-v2t-uint32.c \
- lib/val2text-v2t-uint64.c \
- lib/parselimit.c \
- lib/planetlab.c \
- $(lib_legacy_SRCS) \
- $(lib_compat_SRCS) \
- $(lib_management_SRCS) \
- $(lib_v11_SRCS) \
- $(lib_v13_SRCS) \
- $(lib_v21_SRCS) \
- $(lib_v22_SRCS) \
- $(lib_netv2_SRCS) \
- $(lib_v23_SRCS) \
- $(ensc_fmt_SRCS)
-
-LIBVSERVER_GLIBC = lib/libvserver.la
-@USE_DIETLIBC_FALSE@LIBVSERVER_DIET = lib-dietlibc-not-enabled-error.a
-@USE_DIETLIBC_TRUE@LIBVSERVER_DIET = lib/libvserver.a
-@USE_DIETLIBC_FALSE@LIBVSERVER = lib/libvserver.la
-@USE_DIETLIBC_TRUE@LIBVSERVER = $(LIBVSERVER_DIET)
-lib_libvserver_la_SOURCES = $(lib_SRCS)
-lib_libvserver_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
-lib_libvserver_la_LDFLAGS = -version $(lib_VERSION)
-lib_libvserver_a_SOURCES = $(lib_SRCS)
-lib_libvserver_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
-lib_testsuite_cflags_SOURCES = lib/testsuite/cflags.c
-lib_testsuite_cflags_LDADD = $(LIBVSERVER)
-lib_testsuite_cflags_LDFLAGS = $(VSERVER_LDFLGS)
-lib_testsuite_cflags_CPPFLAGS = $(AM_CPPFLAGS) -DENSC_TESTSUITE
-lib_testsuite_personality_SOURCES = lib/testsuite/personality.c
-lib_testsuite_personality_LDADD = $(LIBVSERVER)
-lib_testsuite_personality_LDFLAGS = $(VSERVER_LDFLGS)
-lib_testsuite_personality_CPPFLAGS = $(AM_CPPFLAGS) -DENSC_TESTSUITE
-lib_testsuite_fmt_SOURCES = lib/testsuite/fmt.c
-lib_testsuite_fmt_LDADD = $(LIBVSERVER)
-lib_testsuite_fmt_LDFLAGS = $(VSERVER_LDFLGS)
-lib_testsuite_fmt_CPPFLAGS = $(AM_CPPFLAGS) -DENSC_TESTSUITE
-lib_testsuite_parselimit_SOURCES = lib/testsuite/parselimit.c
-lib_testsuite_parselimit_LDADD = $(LIBVSERVER)
-lib_testsuite_parselimit_LDFLAGS = $(VSERVER_LDFLGS)
-lib_testsuite_parselimit_CPPFLAGS = $(AM_CPPFLAGS) -DENSC_TESTSUITE
-src_sbin_CXX_PROGS =
-src_pkglib_C99_PROGS = src/vunify src/vcopy src/vclone
-src_capchroot_SOURCES = src/capchroot.c
-src_capchroot_LDADD = $(VSERVER_LDADDS)
-src_capchroot_LDFLAGS = $(VSERVER_LDFLGS)
-src_chbind_compat_SOURCES = src/chbind.c
-src_chbind_compat_LDADD = $(VSERVER_LDADDS)
-src_chbind_compat_LDFLAGS = $(VSERVER_LDFLGS)
-src_chcontext_compat_SOURCES = src/chcontext.c
-src_chcontext_compat_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_chcontext_compat_LDFLAGS = $(VSERVER_LDFLGS)
-src_vcontext_SOURCES = src/vcontext.c src/vlogin.c
-src_vcontext_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_vcontext_LDFLAGS = $(VSERVER_LDFLGS)
-src_vsched_SOURCES = src/vsched.c
-src_vsched_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_vsched_LDFLAGS = $(VSERVER_LDFLGS)
-src_filetime_SOURCES = src/filetime.c
-src_filetime_LDADD = $(VSERVER_LDADDS)
-src_filetime_LDFLAGS = $(VSERVER_LDFLGS)
-src_chain_echo_SOURCES = src/chain-echo.c
-src_chroot_sh_SOURCES = src/chroot-sh.c
-src_chroot_sh_LDADD = $(LIBINTERNAL)
-src_exec_cd_SOURCES = src/exec-cd.c
-src_fakerunlevel_SOURCES = src/fakerunlevel.c
-src_ifspec_SOURCES = src/ifspec.c
-src_listdevip_SOURCES = src/listdevip.c
-src_lockfile_SOURCES = src/lockfile.c
-src_parserpmdump_SOURCES = src/parserpmdump.c
-src_readlink_SOURCES = src/readlink.c
-src_rebootmgr_SOURCES = src/rebootmgr.c
-src_exec_ulimit_SOURCES = src/exec-ulimit.c
-src_vshelper_sync_SOURCES = src/vshelper-sync.c
-src_reducecap_SOURCES = src/reducecap.c
-src_reducecap_LDADD = $(VSERVER_LDADDS)
-src_reducecap_LDFLAGS = $(VSERVER_LDFLGS)
-src_vkill_SOURCES = src/vkill.c
-src_vkill_LDADD = $(VSERVER_LDADDS)
-src_vkill_LDFLAGS = $(VSERVER_LDFLGS) $(LIBINTERNAL)
-src_vkill_CPPFLAGS = $(AM_CPPFLAGS) -DLEGACYDIR=\"$(legacydir)\"
-src_vlimit_SOURCES = src/vlimit.c
-src_vlimit_LDADD = $(VSERVER_LDADDS)
-src_vlimit_LDFLAGS = $(VSERVER_LDFLGS)
-src_save_ctxinfo_SOURCES = src/save_ctxinfo.c
-src_save_ctxinfo_LDADD = $(VSERVER_LDADDS)
-src_save_ctxinfo_LDFLAGS = $(VSERVER_LDFLGS)
-src_vdu_SOURCES = src/vdu.c
-src_vdu_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_vdu_LDFLAGS = $(VSERVER_LDFLGS)
-src_vreboot_SOURCES = src/vreboot.c
-src_secure_mount_SOURCES = src/secure-mount.c
-src_secure_mount_LDADD = $(VSERVER_LDADDS)
-src_secure_mount_LDFLAGS = $(VSERVER_LDFLGS)
-src_vattribute_SOURCES = src/vattribute.c
-src_vattribute_LDADD = $(VSERVER_LDADDS)
-src_vattribute_LDFLAGS = $(VSERVER_LDFLGS)
-src_vnamespace_SOURCES = src/vnamespace.c
-src_vnamespace_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_vnamespace_LDFLAGS = $(VSERVER_LDFLGS)
-src_rpm_fake_resolver_SOURCES = src/rpm-fake-resolver.c
-src_rpm_fake_resolver_LDADD = $(VSERVER_LDADDS)
-src_rpm_fake_resolver_LDFLAGS = $(VSERVER_LDFLGS)
-src_mask2prefix_SOURCES = src/mask2prefix.c
-src_vps_SOURCES = src/vps.c
-src_vps_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_vps_LDFLAGS = $(VSERVER_LDFLGS)
-src_vserver_info_SOURCES = src/vserver-info.c
-src_vserver_info_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_vserver_info_LDFLAGS = $(VSERVER_LDFLGS)
-src_vserver_stat_SOURCES = src/vserver-stat.c
-src_vserver_stat_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS) $(LIBENSCVECTOR)
-src_vserver_stat_LDFLAGS = $(VSERVER_LDFLGS)
-src_lsxid_SOURCES = src/fstool.c src/lsxid.c
-src_lsxid_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS) $(LIBENSCVECTOR)
-src_lsxid_LDFLAGS = $(VSERVER_LDFLGS)
-src_chxid_SOURCES = src/fstool.c src/chxid.c
-src_chxid_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_chxid_LDFLAGS = $(VSERVER_LDFLGS)
-src_showattr_SOURCES = src/fstool.c src/showattr.c
-src_showattr_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_showattr_LDFLAGS = $(VSERVER_LDFLGS)
-src_setattr_SOURCES = src/fstool.c src/setattr.c
-src_setattr_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_setattr_LDFLAGS = $(VSERVER_LDFLGS)
-src_keep_ctx_alive_SOURCES = src/keep-ctx-alive.c
-src_keep_ctx_alive_LDADD = $(VSERVER_LDADDS)
-src_keep_ctx_alive_LDFLAGS = $(VSERVER_LDFLGS)
-src_vcopy_SOURCES = src/vcopy.c
-src_vcopy_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_vcopy_LDFLAGS = $(VSERVER_LDFLGS)
-src_vunify_SOURCES = src/vunify.c
-src_vunify_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_vunify_LDFLAGS = $(VSERVER_LDFLGS)
-src_vhashify_SOURCES = src/vhashify.c
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@src_vhashify_LDADD = $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) -lbeecrypt
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@src_vhashify_LDADD = $(LIBINTERNAL) $(LIBENSCVECTOR) -lbeecrypt $(VSERVER_LDADDS)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@src_vhashify_LDFLAGS =
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@src_vhashify_LDFLAGS = $(VSERVER_LDFLGS)
-src_vuname_SOURCES = src/vuname.c
-src_vuname_LDADD = $(VSERVER_LDADDS)
-src_vuname_LDFLAGS = $(VSERVER_LDFLGS)
-src_rpm_fake_la_SOURCES = src/rpm-fake.c
-src_rpm_fake_la_CFLAGS = $(AM_CFLAGS)
-src_rpm_fake_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
-src_rpm_fake_la_LIBADD = $(LIBVSERVER_GLIBC) -ldl
-src_vdlimit_SOURCES = src/vdlimit.c
-src_vdlimit_LDADD = $(VSERVER_LDADDS)
-src_vdlimit_LDFLAGS = $(VSERVER_LDFLGS)
-src_vsh_SOURCES = src/vsh.c
-src_vsh_LDADD = $(VSERVER_LDADDS)
-src_vsh_LDFLAGS = $(VSERVER_LDFLGS)
-src_vwait_SOURCES = src/vwait.c
-src_vwait_LDADD = $(VSERVER_LDADDS)
-src_vwait_LDFLAGS = $(VSERVER_LDFLGS)
-src_ncontext_SOURCES = src/ncontext.c
-src_ncontext_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_ncontext_LDFLAGS = $(VSERVER_LDFLGS)
-src_nattribute_SOURCES = src/nattribute.c
-src_nattribute_LDADD = $(VSERVER_LDADDS)
-src_nattribute_LDFLAGS = $(VSERVER_LDFLGS)
-src_naddress_SOURCES = src/naddress.c
-src_naddress_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_naddress_LDFLAGS = $(VSERVER_LDFLGS)
-src_vdevmap_SOURCES = src/vdevmap.c
-src_vdevmap_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_vdevmap_LDFLAGS = $(VSERVER_LDFLGS)
-src_vsysctl_SOURCES = src/vsysctl.c
-src_vsysctl_LDADD = $(VSERVER_LDADDS)
-src_vsysctl_LDFLAGS = $(VSERVER_LDFLGS)
-src_vclone_SOURCES = src/vclone.c
-src_vclone_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_vclone_LDFLAGS = $(VSERVER_LDLFGS)
-src_vip6_autod_SOURCES = src/vip6-autod.c
-src_vip6_autod_LDADD = $(VSERVER_LDADDS) -lnl
-src_vip6_autod_LDFLAGS = $(VSERVER_LDFLGS)
-src_h2ext_SOURCES = src/h2ext.c
-src_h2ext_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_h2ext_LDFLAGS = $(VSERVER_LDFLGS)
-src_vtag_SOURCES = src/vtag.c
-src_vtag_LDADD = $(VSERVER_LDADDS)
-src_vtag_LDFLAGS = $(VSERVER_LDADDS)
-@ENSC_HAVE_C99_COMPILER_FALSE@src_sbin_C99_X_PROGS =
-@ENSC_HAVE_C99_COMPILER_TRUE@src_sbin_C99_X_PROGS = $(src_sbin_C99_PROGS)
-@ENSC_HAVE_C99_COMPILER_FALSE@src_pkglib_C99_X_PROGS =
-@ENSC_HAVE_C99_COMPILER_TRUE@src_pkglib_C99_X_PROGS = $(src_pkglib_C99_PROGS)
-@ENSC_HAVE_CXX_COMPILER_FALSE@src_sbin_CXX_X_PROGS =
-@ENSC_HAVE_CXX_COMPILER_TRUE@src_sbin_CXX_X_PROGS = $(src_sbin_CXX_PROGS)
-@ENSC_HAVE_CXX_COMPILER_FALSE@src_pkglib_CXX_X_PROGS =
-@ENSC_HAVE_CXX_COMPILER_TRUE@src_pkglib_CXX_X_PROGS = $(src_pkglib_CXX_PROGS)
-src_testsuite_check_active_PRGS = src/testsuite/vunify-functest \
- src/testsuite/chcontext-test \
- src/testsuite/chbind-test
-
-src_testsuite_check_passive_PRGS = src/testsuite/rpm-fake-test \
- $(am__append_7)
-@ENSC_HAVE_C99_COMPILER_FALSE@src_testsuite_check_src_C99_SCRPTS =
-@ENSC_HAVE_C99_COMPILER_TRUE@src_testsuite_check_src_C99_SCRPTS = \
-@ENSC_HAVE_C99_COMPILER_TRUE@ src/testsuite/vunify-test.sh \
-@ENSC_HAVE_C99_COMPILER_TRUE@ $(am__append_8)
-src_testsuite_check_src_SCRPTS = $(src_testsuite_check_src_C99_SCRPTS)
-src_testsuite_check_gen_SCRPTS =
-src_testsuite_rpm_fake_test_SOURCES = src/testsuite/rpm-fake-test.c
-src_testsuite_vunify_functest_SOURCES = src/testsuite/vunify-functest.c
-src_testsuite_vunify_functest_LDADD = $(LIBINTERNAL)
-src_testsuite_vunify_functest_CPPFLAGS = $(AM_CPPFLAGS) $(src_testsuite_CPPFLAGS)
-src_testsuite_chcontext_test_SOURCES = src/testsuite/chcontext-test.c
-src_testsuite_chcontext_test_LDADD = lib/libvserver.la $(LIBINTERNAL)
-src_testsuite_chbind_test_SOURCES = src/testsuite/chbind-test.c
-src_testsuite_chbind_test_LDADD = lib/libvserver.la
-src_testsuite_hashcalc_SOURCES = src/testsuite/hashcalc.c
-src_testsuite_hashcalc_plain_SOURCES = src/testsuite/hashcalc-plain.c
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@src_testsuite_hashcalc_LDADD = $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) -lbeecrypt
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@src_testsuite_hashcalc_LDADD = $(LIBINTERNAL) $(LIBENSCVECTOR) -lbeecrypt $(VSERVER_LDADDS)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@src_testsuite_hashcalc_LDFLAGS =
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@src_testsuite_hashcalc_LDFLAGS = $(VSERVER_LDFLGS)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@src_testsuite_hashcalc_plain_LDADD = $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) -lbeecrypt
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@src_testsuite_hashcalc_plain_LDADD = $(LIBINTERNAL) $(LIBENSCVECTOR) -lbeecrypt $(VSERVER_LDADDS)
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@src_testsuite_hashcalc_plain_LDFLAGS =
-@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@src_testsuite_hashcalc_plain_LDFLAGS = $(VSERVER_LDFLGS)
-src_testsuite_CPPFLAGS = -I $(top_srcdir)/src -D ENSC_TESTSUITE
-doc_old_doc = doc/intro.txt
-XSLT_AMFLAGS = --stringparam confdir '$(sysconfdir)/vservers'
-XSLTP_AMFLAGS = -param confdir '$(sysconfdir)/vservers'
-doc_gen_DOCS = doc/configuration.html \
- doc/compatibility.html
-
-doc_configuration_SRCS = doc/configuration.xml \
- doc/configuration.xsd \
- doc/configuration.dtd \
- doc/configuration.css \
- doc/configuration-xhtml.xsl \
- doc/configuration-wiki.xsl
-
-doc_compatibility_SRCS = doc/compatibility.xml \
- doc/compatibility.dtd \
- doc/compatibility-xhtml.xsl
-
-man_pages = man/chbind.8 \
- man/chcontext.8 \
- man/distrib-info.8 \
- man/rebootmgr.8 \
- man/reducecap.8 \
- man/vps.8 \
- man/vpstree.8 \
- man/vserver-copy.8 \
- man/vserver-stat.8 \
- man/vserver.8 \
- man/vtop.8
-
-scripts_pkglib_src_DTA = scripts/functions \
- scripts/vserver-build.apt-rpm \
- scripts/vserver-build.skeleton \
- scripts/vserver-build.debootstrap \
- scripts/vserver-build.fai \
- scripts/vserver-build.rpm \
- scripts/vserver-build.yum \
- scripts/vserver-build.template \
- scripts/vserver-build.rsync \
- scripts/vserver-build.clone \
- scripts/vserver-build.functions \
- scripts/vserver-build.functions.apt \
- scripts/vserver-build.functions.rpm \
- scripts/vserver-build.functions.pkgmgmt \
- scripts/vserver-build.functions.yum \
- scripts/vserver-setup.functions \
- scripts/vserver.functions \
- scripts/vserver.start \
- scripts/vserver.stop \
- scripts/vserver.suexec \
- scripts/vserver.delete \
- scripts/vserver-init.functions
-
-scripts_pkglib_gen_DTA = scripts/util-vserver-vars
-scripts_pkglib_src_SCRPTS = scripts/pkgmgmt \
- scripts/vapt-get-worker \
- scripts/vpkg \
- scripts/vrpm-worker \
- scripts/vrpm-preload \
- scripts/start-vservers \
- scripts/vprocunhide \
- scripts/vserver-build \
- scripts/vserver-wrapper \
- scripts/vservers.grabinfo.sh \
- scripts/vshelper \
- scripts/vsysvwrapper \
- scripts/vyum-worker \
- scripts/vyum-worker \
- scripts/h2ext-worker \
- scripts/vserver.convert
-
-scripts_legacy_src_SCRPTS = scripts/legacy/save_s_context \
- scripts/legacy/vserver \
- scripts/legacy/rootshell \
- scripts/legacy/distrib-info \
- scripts/legacy/vserverkillall
-
-scripts_legacy_gen_SCRPTS = scripts/legacy/vps
-scripts_legacy_src_PRGS = scripts/legacy/vserver-copy
-scripts_sbin_src_PRGS = scripts/chbind \
- scripts/chcontext \
- scripts/vapt-get \
- scripts/vdispatch-conf \
- scripts/vemerge \
- scripts/vesync \
- scripts/vpstree \
- scripts/vrpm \
- scripts/vserver \
- scripts/vsomething \
- scripts/vtop \
- scripts/vcached \
- scripts/vupdateworld \
- scripts/vuseradd \
- scripts/vuserdel \
- scripts/vyum \
- scripts/convert-vserver-configs
-
-scripts_sbin_gen_PRGS =
-scripts_sbincfg_gen_DTA =
-scripts_subst_SRCS = scripts/util-vserver-vars.pathsubst \
- scripts/legacy/vps.pathsubst
-
-scripts_sbincfg_DTA = $(scripts_sbincfg_gen_DTA)
-tests_dietprogs = tests/getctx \
- tests/getinitpid \
- tests/vserver-info
-
-tests_escaperoot_SOURCES = tests/escaperoot.c
-tests_forkbomb_SOURCES = tests/forkbomb.c
-tests_testipc_SOURCES = tests/testipc.c
-tests_testlimit_SOURCES = tests/testlimit.c
-tests_testopenf_SOURCES = tests/testopenf.c
-tests_getctx_SOURCES = tests/getctx.c
-tests_getctx_LDADD = $(VSERVER_LDADDS)
-tests_getctx_LDFLAGS = $(VSERVER_LDFLGS)
-tests_getinitpid_SOURCES = tests/getinitpid.c
-tests_getinitpid_LDADD = $(VSERVER_LDADDS)
-tests_getinitpid_LDFLAGS = $(VSERVER_LDFLGS)
-tests_vserver_info_SOURCES = tests/vserver-info.c
-tests_vserver_info_LDADD = $(VSERVER_LDADDS)
-tests_vserver_info_LDFLAGS = $(VSERVER_LDFLGS)
-sysv_src_SCRPTS = sysv/rebootmgr \
- sysv/vprocunhide \
- sysv/vservers-default \
- sysv/vservers-legacy \
- sysv/util-vserver \
- sysv/vip6-autod
-
-sysv_gen_SCRPTS = sysv/v_gated \
- sysv/v_httpd \
- sysv/v_named \
- sysv/v_portmap \
- sysv/v_sendmail \
- sysv/v_smb \
- sysv/v_sshd \
- sysv/v_xinetd
-
-sysv_conf_DTA = sysv/vservers.conf
-sysv_SUBSTRULE = s!/usr/lib/util-vserver!$(pkglibdir)!g; \
- s!^USR_SBIN=/usr/sbin$$!USR_SBIN=$(sbindir)!g; \
- s!^DEFAULT_VSERVERDIR=/vservers$$!DEFAULT_VSERVERDIR=$(vserverdir)!g
-
-contrib_gen_DTA = contrib/manifest.dat
-contrib_subst_SRCS = contrib/manifest.dat.pathsubst
-ENSC_VECTOR_SRCS = ensc_vector/vector-clear.c \
- ensc_vector/vector-foreach.c \
- ensc_vector/vector-free.c \
- ensc_vector/vector-init.c \
- ensc_vector/vector-insert.c \
- ensc_vector/vector-internal.h \
- ensc_vector/vector-popback.c \
- ensc_vector/vector-pushback.c \
- ensc_vector/vector-resize.c \
- ensc_vector/vector-resizeinternal.hc \
- ensc_vector/vector-search.c \
- ensc_vector/vector-searchselforg.c \
- ensc_vector/vector-sort.c \
- ensc_vector/vector-unique.c \
- ensc_vector/vector-zeroend.c \
- ensc_vector/list-at.c \
- ensc_vector/list-add.c \
- ensc_vector/list-free.c \
- ensc_vector/list-init.c \
- ensc_vector/list-insertinternal.c \
- ensc_vector/list-internal.h \
- ensc_vector/list-search.c \
- ensc_vector/list-searchselforg.c
-
-ENSC_VECTOR_HDRS = ensc_vector/vector.h \
- ensc_vector/vector.hc \
- ensc_vector/list.h \
- ensc_vector/list.hc
-
-libensc_vector_glibc_a_SOURCES = $(ENSC_VECTOR_SRCS)
-libensc_vector_glibc_a_CPPFLAGS = $(AM_CPPFLAGS)
-libensc_vector_diet_a_SOURCES = $(ENSC_VECTOR_SRCS)
-libensc_vector_diet_a_CPPFLAGS = $(AM_CPPFLAGS)
-ENSC_VECTOR_LIBS = $(am__append_13) $(am__append_14)
-@ENSC_USE_GLIBC_FALSE@LIBENSCVECTOR_GLIBC = lib-glibc-not-enabled-error.a
-@ENSC_USE_GLIBC_TRUE@LIBENSCVECTOR_GLIBC = libensc_vector-glibc.a
-@ENSC_USE_DIETLIBC_FALSE@LIBENSCVECTOR_DIET = lib-dietlibc-not-enabled-error.a
-@ENSC_USE_DIETLIBC_TRUE@LIBENSCVECTOR_DIET = libensc_vector-diet.a
-@ENSC_USE_DIETLIBC_FALSE@@ENSC_USE_GLIBC_FALSE@LIBENSCVECTOR = lib-nolib-enabled-error.a
-@ENSC_USE_DIETLIBC_FALSE@@ENSC_USE_GLIBC_TRUE@LIBENSCVECTOR = $(LIBENSCVECTOR_GLIBC)
-@ENSC_USE_DIETLIBC_TRUE@LIBENSCVECTOR = $(LIBENSCVECTOR_DIET)
-ensc_vector_testsuite_test1_SOURCES = ensc_vector/testsuite/test1.c
-ensc_vector_testsuite_test1_LDADD = $(LIBENSCVECTOR)
-ensc_vector_testsuite_test2_SOURCES = ensc_vector/testsuite/test2.c
-ensc_vector_testsuite_test2_LDADD = $(LIBENSCVECTOR)
-ensc_fmt_SRCS = \
- ensc_fmt/fmt-32.c \
- ensc_fmt/fmt-64.c \
- ensc_fmt/fmtx-32.c \
- ensc_fmt/fmtx-64.c \
- ensc_fmt/fmt-tai64n.c \
- ensc_fmt/fmt.h \
- ensc_fmt/fmt.hc \
- ensc_fmt/fmtx.hc \
- ensc_fmt/fmt-internal.h
-
-LIBINTERNAL_GLIBC = lib_internal/libinternal-glibc.a
-@USE_DIETLIBC_FALSE@LIBINTERNAL_DIET = lib-dietlibc-not-enabled-error.a
-@USE_DIETLIBC_TRUE@LIBINTERNAL_DIET = lib_internal/libinternal-diet.a
-@USE_DIETLIBC_FALSE@LIBINTERNAL = $(LIBINTERNAL_GLIBC)
-@USE_DIETLIBC_TRUE@LIBINTERNAL = $(LIBINTERNAL_DIET)
-command_SRCS = lib_internal/command-appendparameter.c \
- lib_internal/command-setparams.c \
- lib_internal/command-exec.c\
- lib_internal/command-free.c \
- lib_internal/command-init.c \
- lib_internal/command-reset.c \
- lib_internal/command-wait.c \
- lib_internal/command.h
-
-@ENSC_HAVE_C99_COMPILER_TRUE@filecfg_SRCS = lib_internal/filecfg.h \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/filecfg-iteratemultiline.c \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/filecfg-readentryflag.c \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/filecfg-readentrystr.c \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/matchlist-initbyvserver.c \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/matchvserverinfo-init.c \
-@ENSC_HAVE_C99_COMPILER_TRUE@ lib_internal/unify-copy.c
-
-lib_internal_libinternal_common_SRCS = \
- lib_internal/errinfo-writeerrno.c \
- lib_internal/jailintotempdir.c \
- lib_internal/matchlist-appendfiles.c \
- lib_internal/matchlist-compare.c \
- lib_internal/matchlist-destroy.c \
- lib_internal/matchlist-init.c \
- lib_internal/matchlist-initmanually.c \
- lib_internal/matchlist-initrefserverlist.c \
- lib_internal/matchlist-printid.c \
- lib_internal/matchvserverinfo-free.c \
- lib_internal/pathinfo-append.c \
- lib_internal/pathinfo-test.c \
- lib_internal/switchtowatchxid.c \
- lib_internal/unify-deunify.c \
- lib_internal/unify-settime.c \
- lib_internal/unify-unify.c \
- lib_internal/unify-isiunlinkable.c \
- lib_internal/util-canonify.c \
- lib_internal/util-exitlikeprocess.c \
- lib_internal/util-isnumber.hc \
- lib_internal/util-isnumber.c \
- lib_internal/util-isnumberunsigned.c \
- lib_internal/util-lockfile.c \
- lib_internal/util-safechdir.c \
- lib_internal/mkdir.c \
- $(command_SRCS) \
- $(filecfg_SRCS)
-
-lib_internal_libinternal_diet_a_SOURCES = \
- $(lib_internal_libinternal_common_SRCS)
-
-lib_internal_libinternal_glibc_a_SOURCES = \
- $(lib_internal_libinternal_common_SRCS)
-
-lib_internal_libinternal_diet_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
-lib_internal_libinternal_glibc_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
-
-# When building both a GNU and a dietlibc version, set target specific
-# CPPFLAGS to enforce separate compilation for both variants
-lib_internal_testsuite_command_SOURCES = lib_internal/testsuite/command.c
-lib_internal_testsuite_command_LDADD = $(LIBINTERNAL_GLIBC) \
- $(LIBENSCVECTOR_GLIBC)
-
-lib_internal_testsuite_filecfg_ml_SOURCES = lib_internal/testsuite/filecfg-ml.c
-lib_internal_testsuite_filecfg_ml_LDADD = $(LIBINTERNAL_GLIBC)
-lib_internal_testsuite_copy_SOURCES = lib_internal/testsuite/copy.c
-lib_internal_testsuite_copy_LDADD = $(LIBINTERNAL_GLIBC)
-lib_internal_testsuite_isnumber_SOURCES = lib_internal/testsuite/isnumber.c
-lib_internal_testsuite_isnumber_LDADD = $(LIBINTERNAL)
-lib_internal_testsuite_isnumber_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-lib_internal_testsuite_isnumber_gnu_SOURCES = lib_internal/testsuite/isnumber.c
-lib_internal_testsuite_isnumber_gnu_LDADD = $(LIBINTERNAL_GLIBC)
-lib_internal_testsuite_isnumber_gnu_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-lib_internal_testsuite_sigbus_SOURCES = lib_internal/testsuite/sigbus.c
-lib_internal_testsuite_sigbus_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-lib_internal_testsuite_sigbus_gnu_SOURCES = lib_internal/testsuite/sigbus.c
-lib_internal_testsuite_sigbus_gnu_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-lib_internal_testsuite_matchlist_SOURCES = lib_internal/testsuite/matchlist.c
-lib_internal_testsuite_matchlist_LDADD = $(LIBINTERNAL)
-lib_internal_testsuite_matchlist_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-lib_internal_testsuite_matchlist_gnu_SOURCES = lib_internal/testsuite/matchlist.c
-lib_internal_testsuite_matchlist_gnu_LDADD = $(LIBINTERNAL_GLIBC)
-lib_internal_testsuite_matchlist_gnu_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-vserver_start_vserver_start_bin_SOURCES = \
- vserver-start/main.c \
- vserver-start/mount.c \
- vserver-start/mount.h \
- vserver-start/defaulttty.c \
- vserver-start/scriptlets.c \
- vserver-start/undo.c \
- vserver-start/undo.h \
- vserver-start/vshelper.c \
- vserver-start/vshelper.h \
- vserver-start/interface.c \
- vserver-start/interface.h \
- vserver-start/interface-add.c \
- vserver-start/interface-read.c \
- vserver-start/interface-free.hc \
- vserver-start/interface-init.hc \
- vserver-start/interface-remove.c \
- vserver-start/interface-print.c \
- vserver-start/configuration.c \
- vserver-start/configuration-init.c \
- vserver-start/configuration.h \
- vserver-start/vserver-start.h
-
-vserver_start_vserver_start_bin_LDADD = $(VSERVER_LDADDS) \
- $(LIBINTERNAL) \
- $(LIBENSCVECTOR)
-
-vserver_start_vserver_start_bin_LDFLAGS = $(VSERVER_LDFLGS)
-gentoo_src_SCRPTS = gentoo/vprocunhide \
- gentoo/vservers.default \
- gentoo/util-vserver
-
-BAD_INC_PATHS = /usr/include|/usr/local/include
-BAD_LIB_PATHS = /usr/lib
-pkgconfdir = $(libdir)/pkgconfig
-pkgconf_DATA = $(addsuffix .pc, $(PKGCONFIG_FILES))
-pkgconf_SUBST = s!@'PACKAGE'@!$(PACKAGE)!g; \
- s!@'VERSION'@!$(VERSION)!g; \
- s!@'prefix'@!$(prefix)!g; \
- s!@'exec_prefix'@!$(exec_prefix)!g; \
- s!@'libdir'@!$(libdir)!g; \
- s!@'includedir'@!$(includedir)!g; \
- s!@'libflags"@!$${libflags}$(pkgconf_LIBFLAGS)!g;"' \
- s!@'incflags"@!$${incflags}$(pkgconf_INCFLAGS)!g;"' \
- s!@'pkgincflags"@!$${pkgincflags}$(pkgconf_PKGINCFLAGS)!g;"' \
- s!@'pkgincludedir'@!$(pkgincludedir)!g
-
-@ENSC_USE_GLIBC_FALSE@nodist_lib_glibc_not_enabled_error_a_SOURCES = \
-@ENSC_USE_GLIBC_FALSE@ lib-glibc-not-enabled-error.c
-
-all: $(BUILT_SOURCES) config.h
- $(MAKE) $(AM_MAKEFLAGS) all-recursive
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-am--refresh:
- @:
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/lib/Makefile-files $(srcdir)/lib/apidoc/Makefile-files $(srcdir)/lib/testsuite/Makefile-files $(top_srcdir)/src/Makefile-files $(top_srcdir)/src/testsuite/Makefile-files $(top_srcdir)/doc/Makefile-files $(top_srcdir)/man/Makefile-files $(top_srcdir)/scripts/Makefile-files $(top_srcdir)/tests/Makefile-files $(top_srcdir)/sysv/Makefile-files $(top_srcdir)/contrib/Makefile-files $(top_srcdir)/ensc_vector/Makefile-files $(srcdir)/ensc_vector/testsuite/Makefile-files $(top_srcdir)/ensc_wrappers/Makefile-files $(top_srcdir)/ensc_fmt/Makefile-files $(top_srcdir)/lib_internal/Makefile-files $(top_srcdir)/lib_internal/testsuite/Makefile-files $(top_srcdir)/vserver-start/Makefile-files $(top_srcdir)/gentoo/Makefile-files $(top_srcdir)/m4/gpgsig.am $(top_srcdir)/m4/validate.am $(top_srcdir)/m4/changelog.am $(top_srcdir)/m4/pkgconfig.am $(top_srcdir)/m4/libsel.am $(top_srcdir)/m4/install-notify.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- echo ' cd $(srcdir) && $(AUTOMAKE) --gnits '; \
- cd $(srcdir) && $(AUTOMAKE) --gnits \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnits Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- echo ' $(SHELL) ./config.status'; \
- $(SHELL) ./config.status;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- $(SHELL) ./config.status --recheck
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(srcdir) && $(AUTOCONF)
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
-
-config.h: stamp-h1
- @if test ! -f $@; then \
- rm -f stamp-h1; \
- $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
- else :; fi
-
-stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
- @rm -f stamp-h1
- cd $(top_builddir) && $(SHELL) ./config.status config.h
-$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_srcdir) && $(AUTOHEADER)
- rm -f stamp-h1
- touch $@
-
-distclean-hdr:
- -rm -f config.h stamp-h1
-util-vserver.spec: $(top_builddir)/config.status $(srcdir)/util-vserver.spec.in
- cd $(top_builddir) && $(SHELL) ./config.status $@
-lib/apidoc/Doxyfile: $(top_builddir)/config.status $(top_srcdir)/lib/apidoc/Doxyfile.in
- cd $(top_builddir) && $(SHELL) ./config.status $@
-install-libLIBRARIES: $(lib_LIBRARIES)
- @$(NORMAL_INSTALL)
- test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
- @list='$(lib_LIBRARIES)'; for p in $$list; do \
- if test -f $$p; then \
- f=$(am__strip_dir) \
- echo " $(libLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
- $(libLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
- else :; fi; \
- done
- @$(POST_INSTALL)
- @list='$(lib_LIBRARIES)'; for p in $$list; do \
- if test -f $$p; then \
- p=$(am__strip_dir) \
- echo " $(RANLIB) '$(DESTDIR)$(libdir)/$$p'"; \
- $(RANLIB) "$(DESTDIR)$(libdir)/$$p"; \
- else :; fi; \
- done
-
-uninstall-libLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LIBRARIES)'; for p in $$list; do \
- p=$(am__strip_dir) \
- echo " rm -f '$(DESTDIR)$(libdir)/$$p'"; \
- rm -f "$(DESTDIR)$(libdir)/$$p"; \
- done
-
-clean-libLIBRARIES:
- -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-lib-dietlibc-not-enabled-error.a: $(lib_dietlibc_not_enabled_error_a_OBJECTS) $(lib_dietlibc_not_enabled_error_a_DEPENDENCIES)
- -rm -f lib-dietlibc-not-enabled-error.a
- $(lib_dietlibc_not_enabled_error_a_AR) lib-dietlibc-not-enabled-error.a $(lib_dietlibc_not_enabled_error_a_OBJECTS) $(lib_dietlibc_not_enabled_error_a_LIBADD)
- $(RANLIB) lib-dietlibc-not-enabled-error.a
-lib-glibc-not-enabled-error.a: $(lib_glibc_not_enabled_error_a_OBJECTS) $(lib_glibc_not_enabled_error_a_DEPENDENCIES)
- -rm -f lib-glibc-not-enabled-error.a
- $(lib_glibc_not_enabled_error_a_AR) lib-glibc-not-enabled-error.a $(lib_glibc_not_enabled_error_a_OBJECTS) $(lib_glibc_not_enabled_error_a_LIBADD)
- $(RANLIB) lib-glibc-not-enabled-error.a
-lib/$(am__dirstamp):
- @$(MKDIR_P) lib
- @: > lib/$(am__dirstamp)
-lib/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) lib/$(DEPDIR)
- @: > lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-checkversion.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-checkconfig.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-isdirectory.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-isfile.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-islink.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getnbipv4root.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getversion.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-capabilities.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getfilecontext.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getinsecurebcaps.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getxidtype.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-isdynamicxid.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-issupported.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-issupportedstring.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-listparser_uint32.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-listparser_uint64.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-personalityflag.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-personalityflag_list.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-personalitytype.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall-syscall.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-val2text-t2v-uint32.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-val2text-t2v-uint64.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-val2text-v2t-uint32.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-val2text-v2t-uint64.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-parselimit.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-planetlab.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getprocentry-legacy.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-cflags-compat.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-cflags_list-compat.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-comparevserverbyid.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-createskeleton.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getvserverbyctx.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getvservercfgstyle.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getvserverappdir.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getvservercfgdir.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getvserverctx.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getvservername.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-getvservervdir.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-xidopt2xid.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-nidopt2nid.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-tagopt2tag.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_rlimit.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_kill.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_ctxcreate.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_ctxmigrate.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_cleanupnamespace.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_enternamespace.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getccaps.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getcflags.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getiattr.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getncaps.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getnflags.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getnxinfo.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_gettasknid.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_gettaskxid.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getvhiname.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getvxinfo.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_netadd.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_netcreate.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_netmigrate.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_netremove.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_setccaps.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_setcflags.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_setiattr.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_setnamespace.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_setncaps.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_setnflags.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_setsched.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_setvhiname.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_waitexit.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-bcaps-v13.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-bcaps_list-v13.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-ccaps-v13.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-ccaps_list-v13.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-cflags-v13.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-cflags_list-v13.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-ncaps-net.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-ncaps_list-net.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-nflags-net.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-nflags_list-net.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_adddlimit.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getdlimit.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_remdlimit.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_setdlimit.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_rlimitstat.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_resetminmax.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getvci.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_virtstat.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_ctxstat.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getspacemask.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_setmapping.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_schedinfo.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_getsched.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_fsetiattr.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_fgetiattr.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_tagmigrate.$(OBJEXT): \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_tagcreate.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_a-syscall_tasktag.$(OBJEXT): lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/$(am__dirstamp):
- @$(MKDIR_P) ensc_fmt
- @: > ensc_fmt/$(am__dirstamp)
-ensc_fmt/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) ensc_fmt/$(DEPDIR)
- @: > ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/lib_libvserver_a-fmt-32.$(OBJEXT): ensc_fmt/$(am__dirstamp) \
- ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/lib_libvserver_a-fmt-64.$(OBJEXT): ensc_fmt/$(am__dirstamp) \
- ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/lib_libvserver_a-fmtx-32.$(OBJEXT): ensc_fmt/$(am__dirstamp) \
- ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/lib_libvserver_a-fmtx-64.$(OBJEXT): ensc_fmt/$(am__dirstamp) \
- ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/lib_libvserver_a-fmt-tai64n.$(OBJEXT): \
- ensc_fmt/$(am__dirstamp) ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-lib/libvserver.a: $(lib_libvserver_a_OBJECTS) $(lib_libvserver_a_DEPENDENCIES) lib/$(am__dirstamp)
- -rm -f lib/libvserver.a
- $(lib_libvserver_a_AR) lib/libvserver.a $(lib_libvserver_a_OBJECTS) $(lib_libvserver_a_LIBADD)
- $(RANLIB) lib/libvserver.a
-lib_internal/$(am__dirstamp):
- @$(MKDIR_P) lib_internal
- @: > lib_internal/$(am__dirstamp)
-lib_internal/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) lib_internal/$(DEPDIR)
- @: > lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-matchlist-init.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-unify-deunify.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-unify-settime.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-unify-unify.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-util-canonify.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-util-isnumber.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-util-lockfile.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-util-safechdir.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-mkdir.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-command-setparams.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-command-exec.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-command-free.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-command-init.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-command-reset.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-command-wait.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_diet_a-unify-copy.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/libinternal-diet.a: $(lib_internal_libinternal_diet_a_OBJECTS) $(lib_internal_libinternal_diet_a_DEPENDENCIES) lib_internal/$(am__dirstamp)
- -rm -f lib_internal/libinternal-diet.a
- $(lib_internal_libinternal_diet_a_AR) lib_internal/libinternal-diet.a $(lib_internal_libinternal_diet_a_OBJECTS) $(lib_internal_libinternal_diet_a_LIBADD)
- $(RANLIB) lib_internal/libinternal-diet.a
-lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-unify-settime.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-unify-unify.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-util-canonify.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-mkdir.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-command-setparams.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-command-exec.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-command-free.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-command-init.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-command-reset.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-command-wait.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/lib_internal_libinternal_glibc_a-unify-copy.$(OBJEXT): \
- lib_internal/$(am__dirstamp) \
- lib_internal/$(DEPDIR)/$(am__dirstamp)
-lib_internal/libinternal-glibc.a: $(lib_internal_libinternal_glibc_a_OBJECTS) $(lib_internal_libinternal_glibc_a_DEPENDENCIES) lib_internal/$(am__dirstamp)
- -rm -f lib_internal/libinternal-glibc.a
- $(lib_internal_libinternal_glibc_a_AR) lib_internal/libinternal-glibc.a $(lib_internal_libinternal_glibc_a_OBJECTS) $(lib_internal_libinternal_glibc_a_LIBADD)
- $(RANLIB) lib_internal/libinternal-glibc.a
-ensc_vector/$(am__dirstamp):
- @$(MKDIR_P) ensc_vector
- @: > ensc_vector/$(am__dirstamp)
-ensc_vector/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) ensc_vector/$(DEPDIR)
- @: > ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-clear.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-foreach.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-free.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-init.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-insert.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-popback.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-pushback.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-resize.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-search.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-searchselforg.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-sort.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-unique.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-vector-zeroend.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-list-at.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-list-add.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-list-free.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-list-init.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-list-insertinternal.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-list-search.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_diet_a-list-searchselforg.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-libensc_vector-diet.a: $(libensc_vector_diet_a_OBJECTS) $(libensc_vector_diet_a_DEPENDENCIES)
- -rm -f libensc_vector-diet.a
- $(libensc_vector_diet_a_AR) libensc_vector-diet.a $(libensc_vector_diet_a_OBJECTS) $(libensc_vector_diet_a_LIBADD)
- $(RANLIB) libensc_vector-diet.a
-ensc_vector/libensc_vector_glibc_a-vector-clear.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-foreach.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-free.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-init.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-insert.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-popback.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-pushback.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-resize.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-search.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-searchselforg.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-sort.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-unique.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-vector-zeroend.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-list-at.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-list-add.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-list-free.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-list-init.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-list-insertinternal.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-list-search.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/libensc_vector_glibc_a-list-searchselforg.$(OBJEXT): \
- ensc_vector/$(am__dirstamp) \
- ensc_vector/$(DEPDIR)/$(am__dirstamp)
-libensc_vector-glibc.a: $(libensc_vector_glibc_a_OBJECTS) $(libensc_vector_glibc_a_DEPENDENCIES)
- -rm -f libensc_vector-glibc.a
- $(libensc_vector_glibc_a_AR) libensc_vector-glibc.a $(libensc_vector_glibc_a_OBJECTS) $(libensc_vector_glibc_a_LIBADD)
- $(RANLIB) libensc_vector-glibc.a
-install-libLTLIBRARIES: $(lib_LTLIBRARIES)
- @$(NORMAL_INSTALL)
- test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
- @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
- if test -f $$p; then \
- f=$(am__strip_dir) \
- echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
- $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
- else :; fi; \
- done
-
-uninstall-libLTLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
- p=$(am__strip_dir) \
- echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
- $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
- done
-
-clean-libLTLIBRARIES:
- -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
- @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
- dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
- test "$$dir" != "$$p" || dir=.; \
- echo "rm -f \"$${dir}/so_locations\""; \
- rm -f "$${dir}/so_locations"; \
- done
-install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
- @$(NORMAL_INSTALL)
- test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)"
- @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
- if test -f $$p; then \
- f=$(am__strip_dir) \
- echo " $(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \
- $(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \
- else :; fi; \
- done
-
-uninstall-pkglibLTLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
- p=$(am__strip_dir) \
- echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \
- $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \
- done
-
-clean-pkglibLTLIBRARIES:
- -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES)
- @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
- dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
- test "$$dir" != "$$p" || dir=.; \
- echo "rm -f \"$${dir}/so_locations\""; \
- rm -f "$${dir}/so_locations"; \
- done
-lib/lib_libvserver_la-syscall.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-checkversion.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-checkconfig.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-isdirectory.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-isfile.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-islink.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getnbipv4root.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getversion.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-capabilities.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getfilecontext.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getinsecurebcaps.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getxidtype.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-isdynamicxid.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-issupported.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-issupportedstring.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-listparser_uint32.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-listparser_uint64.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-personalityflag.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-personalityflag_list.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-personalitytype.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall-syscall.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-val2text-t2v-uint32.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-val2text-t2v-uint64.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-val2text-v2t-uint32.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-val2text-v2t-uint64.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-parselimit.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-planetlab.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getprocentry-legacy.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-cflags-compat.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-cflags_list-compat.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-comparevserverbyid.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-createskeleton.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getvserverbyctx.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getvservercfgstyle.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getvserverappdir.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getvservercfgdir.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getvserverctx.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getvservername.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-getvservervdir.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-xidopt2xid.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-nidopt2nid.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-tagopt2tag.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_rlimit.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_kill.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_ctxcreate.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_ctxmigrate.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_cleanupnamespace.lo: \
- lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_enternamespace.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getccaps.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getcflags.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getiattr.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getncaps.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getnflags.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getnxinfo.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_gettasknid.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_gettaskxid.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getvhiname.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getvxinfo.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_netadd.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_netcreate.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_netmigrate.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_netremove.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_setccaps.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_setcflags.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_setiattr.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_setnamespace.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_setncaps.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_setnflags.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_setsched.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_setvhiname.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_waitexit.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-bcaps-v13.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-bcaps_list-v13.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-ccaps-v13.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-ccaps_list-v13.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-cflags-v13.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-cflags_list-v13.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-ncaps-net.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-ncaps_list-net.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-nflags-net.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-nflags_list-net.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_adddlimit.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getdlimit.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_remdlimit.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_setdlimit.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_rlimitstat.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_resetminmax.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getvci.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_virtstat.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_ctxstat.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getspacemask.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_setmapping.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_schedinfo.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_getsched.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_fsetiattr.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_fgetiattr.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_tagmigrate.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_tagcreate.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-lib/lib_libvserver_la-syscall_tasktag.lo: lib/$(am__dirstamp) \
- lib/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/lib_libvserver_la-fmt-32.lo: ensc_fmt/$(am__dirstamp) \
- ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/lib_libvserver_la-fmt-64.lo: ensc_fmt/$(am__dirstamp) \
- ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/lib_libvserver_la-fmtx-32.lo: ensc_fmt/$(am__dirstamp) \
- ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/lib_libvserver_la-fmtx-64.lo: ensc_fmt/$(am__dirstamp) \
- ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-ensc_fmt/lib_libvserver_la-fmt-tai64n.lo: ensc_fmt/$(am__dirstamp) \
- ensc_fmt/$(DEPDIR)/$(am__dirstamp)
-lib/libvserver.la: $(lib_libvserver_la_OBJECTS) $(lib_libvserver_la_DEPENDENCIES) lib/$(am__dirstamp)
- $(lib_libvserver_la_LINK) -rpath $(libdir) $(lib_libvserver_la_OBJECTS) $(lib_libvserver_la_LIBADD) $(LIBS)
-src/$(am__dirstamp):
- @$(MKDIR_P) src
- @: > src/$(am__dirstamp)
-src/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) src/$(DEPDIR)
- @: > src/$(DEPDIR)/$(am__dirstamp)
-src/src_rpm_fake_la-rpm-fake.lo: src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/rpm-fake.la: $(src_rpm_fake_la_OBJECTS) $(src_rpm_fake_la_DEPENDENCIES) src/$(am__dirstamp)
- $(src_rpm_fake_la_LINK) -rpath $(pkglibdir) $(src_rpm_fake_la_OBJECTS) $(src_rpm_fake_la_LIBADD) $(LIBS)
-
-clean-checkPROGRAMS:
- @list='$(check_PROGRAMS)'; for p in $$list; do \
- f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f $$p $$f"; \
- rm -f $$p $$f ; \
- done
-install-legacyPROGRAMS: $(legacy_PROGRAMS)
- @$(NORMAL_INSTALL)
- test -z "$(legacydir)" || $(MKDIR_P) "$(DESTDIR)$(legacydir)"
- @list='$(legacy_PROGRAMS)'; for p in $$list; do \
- p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- if test -f $$p \
- || test -f $$p1 \
- ; then \
- f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
- echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(legacyPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(legacydir)/$$f'"; \
- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(legacyPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(legacydir)/$$f" || exit 1; \
- else :; fi; \
- done
-
-uninstall-legacyPROGRAMS:
- @$(NORMAL_UNINSTALL)
- @list='$(legacy_PROGRAMS)'; for p in $$list; do \
- f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- echo " rm -f '$(DESTDIR)$(legacydir)/$$f'"; \
- rm -f "$(DESTDIR)$(legacydir)/$$f"; \
- done
-
-clean-legacyPROGRAMS:
- @list='$(legacy_PROGRAMS)'; for p in $$list; do \
- f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f $$p $$f"; \
- rm -f $$p $$f ; \
- done
-
-installcheck-legacyPROGRAMS: $(legacy_PROGRAMS)
- bad=0; pid=$$$$; list="$(legacy_PROGRAMS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | \
- sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(legacydir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-
-clean-noinstPROGRAMS:
- @list='$(noinst_PROGRAMS)'; for p in $$list; do \
- f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f $$p $$f"; \
- rm -f $$p $$f ; \
- done
-install-pkglibPROGRAMS: $(pkglib_PROGRAMS)
- @$(NORMAL_INSTALL)
- test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)"
- @list='$(pkglib_PROGRAMS)'; for p in $$list; do \
- p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- if test -f $$p \
- || test -f $$p1 \
- ; then \
- f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
- echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(pkglibPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \
- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(pkglibPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(pkglibdir)/$$f" || exit 1; \
- else :; fi; \
- done
-
-uninstall-pkglibPROGRAMS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkglib_PROGRAMS)'; for p in $$list; do \
- f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- echo " rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \
- rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \
- done
-
-clean-pkglibPROGRAMS:
- @list='$(pkglib_PROGRAMS)'; for p in $$list; do \
- f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f $$p $$f"; \
- rm -f $$p $$f ; \
- done
-
-installcheck-pkglibPROGRAMS: $(pkglib_PROGRAMS)
- bad=0; pid=$$$$; list="$(pkglib_PROGRAMS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | \
- sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(pkglibdir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-install-sbinPROGRAMS: $(sbin_PROGRAMS)
- @$(NORMAL_INSTALL)
- test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
- @list='$(sbin_PROGRAMS)'; for p in $$list; do \
- p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- if test -f $$p \
- || test -f $$p1 \
- ; then \
- f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
- echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
- else :; fi; \
- done
-
-uninstall-sbinPROGRAMS:
- @$(NORMAL_UNINSTALL)
- @list='$(sbin_PROGRAMS)'; for p in $$list; do \
- f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
- rm -f "$(DESTDIR)$(sbindir)/$$f"; \
- done
-
-clean-sbinPROGRAMS:
- @list='$(sbin_PROGRAMS)'; for p in $$list; do \
- f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f $$p $$f"; \
- rm -f $$p $$f ; \
- done
-
-installcheck-sbinPROGRAMS: $(sbin_PROGRAMS)
- bad=0; pid=$$$$; list="$(sbin_PROGRAMS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | \
- sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(sbindir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-ensc_vector/testsuite/$(am__dirstamp):
- @$(MKDIR_P) ensc_vector/testsuite
- @: > ensc_vector/testsuite/$(am__dirstamp)
-ensc_vector/testsuite/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) ensc_vector/testsuite/$(DEPDIR)
- @: > ensc_vector/testsuite/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/testsuite/test1.$(OBJEXT): \
- ensc_vector/testsuite/$(am__dirstamp) \
- ensc_vector/testsuite/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/testsuite/test1$(EXEEXT): $(ensc_vector_testsuite_test1_OBJECTS) $(ensc_vector_testsuite_test1_DEPENDENCIES) ensc_vector/testsuite/$(am__dirstamp)
- @rm -f ensc_vector/testsuite/test1$(EXEEXT)
- $(LINK) $(ensc_vector_testsuite_test1_OBJECTS) $(ensc_vector_testsuite_test1_LDADD) $(LIBS)
-ensc_vector/testsuite/test2.$(OBJEXT): \
- ensc_vector/testsuite/$(am__dirstamp) \
- ensc_vector/testsuite/$(DEPDIR)/$(am__dirstamp)
-ensc_vector/testsuite/test2$(EXEEXT): $(ensc_vector_testsuite_test2_OBJECTS) $(ensc_vector_testsuite_test2_DEPENDENCIES) ensc_vector/testsuite/$(am__dirstamp)
- @rm -f ensc_vector/testsuite/test2$(EXEEXT)
- $(LINK) $(ensc_vector_testsuite_test2_OBJECTS) $(ensc_vector_testsuite_test2_LDADD) $(LIBS)
-lib/testsuite/$(am__dirstamp):
- @$(MKDIR_P) lib/testsuite
- @: > lib/testsuite/$(am__dirstamp)
-lib/testsuite/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) lib/testsuite/$(DEPDIR)
- @: > lib/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib/testsuite/lib_testsuite_cflags-cflags.$(OBJEXT): \
- lib/testsuite/$(am__dirstamp) \
- lib/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib/testsuite/cflags$(EXEEXT): $(lib_testsuite_cflags_OBJECTS) $(lib_testsuite_cflags_DEPENDENCIES) lib/testsuite/$(am__dirstamp)
- @rm -f lib/testsuite/cflags$(EXEEXT)
- $(lib_testsuite_cflags_LINK) $(lib_testsuite_cflags_OBJECTS) $(lib_testsuite_cflags_LDADD) $(LIBS)
-lib/testsuite/lib_testsuite_fmt-fmt.$(OBJEXT): \
- lib/testsuite/$(am__dirstamp) \
- lib/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib/testsuite/fmt$(EXEEXT): $(lib_testsuite_fmt_OBJECTS) $(lib_testsuite_fmt_DEPENDENCIES) lib/testsuite/$(am__dirstamp)
- @rm -f lib/testsuite/fmt$(EXEEXT)
- $(lib_testsuite_fmt_LINK) $(lib_testsuite_fmt_OBJECTS) $(lib_testsuite_fmt_LDADD) $(LIBS)
-lib/testsuite/lib_testsuite_parselimit-parselimit.$(OBJEXT): \
- lib/testsuite/$(am__dirstamp) \
- lib/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib/testsuite/parselimit$(EXEEXT): $(lib_testsuite_parselimit_OBJECTS) $(lib_testsuite_parselimit_DEPENDENCIES) lib/testsuite/$(am__dirstamp)
- @rm -f lib/testsuite/parselimit$(EXEEXT)
- $(lib_testsuite_parselimit_LINK) $(lib_testsuite_parselimit_OBJECTS) $(lib_testsuite_parselimit_LDADD) $(LIBS)
-lib/testsuite/lib_testsuite_personality-personality.$(OBJEXT): \
- lib/testsuite/$(am__dirstamp) \
- lib/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib/testsuite/personality$(EXEEXT): $(lib_testsuite_personality_OBJECTS) $(lib_testsuite_personality_DEPENDENCIES) lib/testsuite/$(am__dirstamp)
- @rm -f lib/testsuite/personality$(EXEEXT)
- $(lib_testsuite_personality_LINK) $(lib_testsuite_personality_OBJECTS) $(lib_testsuite_personality_LDADD) $(LIBS)
-lib_internal/testsuite/$(am__dirstamp):
- @$(MKDIR_P) lib_internal/testsuite
- @: > lib_internal/testsuite/$(am__dirstamp)
-lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) lib_internal/testsuite/$(DEPDIR)
- @: > lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib_internal/testsuite/command.$(OBJEXT): \
- lib_internal/testsuite/$(am__dirstamp) \
- lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib_internal/testsuite/command$(EXEEXT): $(lib_internal_testsuite_command_OBJECTS) $(lib_internal_testsuite_command_DEPENDENCIES) lib_internal/testsuite/$(am__dirstamp)
- @rm -f lib_internal/testsuite/command$(EXEEXT)
- $(LINK) $(lib_internal_testsuite_command_OBJECTS) $(lib_internal_testsuite_command_LDADD) $(LIBS)
-lib_internal/testsuite/copy.$(OBJEXT): \
- lib_internal/testsuite/$(am__dirstamp) \
- lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib_internal/testsuite/copy$(EXEEXT): $(lib_internal_testsuite_copy_OBJECTS) $(lib_internal_testsuite_copy_DEPENDENCIES) lib_internal/testsuite/$(am__dirstamp)
- @rm -f lib_internal/testsuite/copy$(EXEEXT)
- $(LINK) $(lib_internal_testsuite_copy_OBJECTS) $(lib_internal_testsuite_copy_LDADD) $(LIBS)
-lib_internal/testsuite/filecfg-ml.$(OBJEXT): \
- lib_internal/testsuite/$(am__dirstamp) \
- lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib_internal/testsuite/filecfg-ml$(EXEEXT): $(lib_internal_testsuite_filecfg_ml_OBJECTS) $(lib_internal_testsuite_filecfg_ml_DEPENDENCIES) lib_internal/testsuite/$(am__dirstamp)
- @rm -f lib_internal/testsuite/filecfg-ml$(EXEEXT)
- $(LINK) $(lib_internal_testsuite_filecfg_ml_OBJECTS) $(lib_internal_testsuite_filecfg_ml_LDADD) $(LIBS)
-lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.$(OBJEXT): \
- lib_internal/testsuite/$(am__dirstamp) \
- lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib_internal/testsuite/isnumber$(EXEEXT): $(lib_internal_testsuite_isnumber_OBJECTS) $(lib_internal_testsuite_isnumber_DEPENDENCIES) lib_internal/testsuite/$(am__dirstamp)
- @rm -f lib_internal/testsuite/isnumber$(EXEEXT)
- $(LINK) $(lib_internal_testsuite_isnumber_OBJECTS) $(lib_internal_testsuite_isnumber_LDADD) $(LIBS)
-lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.$(OBJEXT): \
- lib_internal/testsuite/$(am__dirstamp) \
- lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib_internal/testsuite/isnumber-gnu$(EXEEXT): $(lib_internal_testsuite_isnumber_gnu_OBJECTS) $(lib_internal_testsuite_isnumber_gnu_DEPENDENCIES) lib_internal/testsuite/$(am__dirstamp)
- @rm -f lib_internal/testsuite/isnumber-gnu$(EXEEXT)
- $(LINK) $(lib_internal_testsuite_isnumber_gnu_OBJECTS) $(lib_internal_testsuite_isnumber_gnu_LDADD) $(LIBS)
-lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.$(OBJEXT): \
- lib_internal/testsuite/$(am__dirstamp) \
- lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib_internal/testsuite/matchlist$(EXEEXT): $(lib_internal_testsuite_matchlist_OBJECTS) $(lib_internal_testsuite_matchlist_DEPENDENCIES) lib_internal/testsuite/$(am__dirstamp)
- @rm -f lib_internal/testsuite/matchlist$(EXEEXT)
- $(LINK) $(lib_internal_testsuite_matchlist_OBJECTS) $(lib_internal_testsuite_matchlist_LDADD) $(LIBS)
-lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.$(OBJEXT): \
- lib_internal/testsuite/$(am__dirstamp) \
- lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib_internal/testsuite/matchlist-gnu$(EXEEXT): $(lib_internal_testsuite_matchlist_gnu_OBJECTS) $(lib_internal_testsuite_matchlist_gnu_DEPENDENCIES) lib_internal/testsuite/$(am__dirstamp)
- @rm -f lib_internal/testsuite/matchlist-gnu$(EXEEXT)
- $(LINK) $(lib_internal_testsuite_matchlist_gnu_OBJECTS) $(lib_internal_testsuite_matchlist_gnu_LDADD) $(LIBS)
-lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.$(OBJEXT): \
- lib_internal/testsuite/$(am__dirstamp) \
- lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib_internal/testsuite/sigbus$(EXEEXT): $(lib_internal_testsuite_sigbus_OBJECTS) $(lib_internal_testsuite_sigbus_DEPENDENCIES) lib_internal/testsuite/$(am__dirstamp)
- @rm -f lib_internal/testsuite/sigbus$(EXEEXT)
- $(LINK) $(lib_internal_testsuite_sigbus_OBJECTS) $(lib_internal_testsuite_sigbus_LDADD) $(LIBS)
-lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.$(OBJEXT): \
- lib_internal/testsuite/$(am__dirstamp) \
- lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
-lib_internal/testsuite/sigbus-gnu$(EXEEXT): $(lib_internal_testsuite_sigbus_gnu_OBJECTS) $(lib_internal_testsuite_sigbus_gnu_DEPENDENCIES) lib_internal/testsuite/$(am__dirstamp)
- @rm -f lib_internal/testsuite/sigbus-gnu$(EXEEXT)
- $(LINK) $(lib_internal_testsuite_sigbus_gnu_OBJECTS) $(lib_internal_testsuite_sigbus_gnu_LDADD) $(LIBS)
-src/capchroot.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/capchroot$(EXEEXT): $(src_capchroot_OBJECTS) $(src_capchroot_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/capchroot$(EXEEXT)
- $(src_capchroot_LINK) $(src_capchroot_OBJECTS) $(src_capchroot_LDADD) $(LIBS)
-src/chain-echo.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/chain-echo$(EXEEXT): $(src_chain_echo_OBJECTS) $(src_chain_echo_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/chain-echo$(EXEEXT)
- $(LINK) $(src_chain_echo_OBJECTS) $(src_chain_echo_LDADD) $(LIBS)
-src/chbind.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/chbind-compat$(EXEEXT): $(src_chbind_compat_OBJECTS) $(src_chbind_compat_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/chbind-compat$(EXEEXT)
- $(src_chbind_compat_LINK) $(src_chbind_compat_OBJECTS) $(src_chbind_compat_LDADD) $(LIBS)
-src/chcontext.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/chcontext-compat$(EXEEXT): $(src_chcontext_compat_OBJECTS) $(src_chcontext_compat_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/chcontext-compat$(EXEEXT)
- $(src_chcontext_compat_LINK) $(src_chcontext_compat_OBJECTS) $(src_chcontext_compat_LDADD) $(LIBS)
-src/check-unixfile.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/check-unixfile$(EXEEXT): $(src_check_unixfile_OBJECTS) $(src_check_unixfile_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/check-unixfile$(EXEEXT)
- $(LINK) $(src_check_unixfile_OBJECTS) $(src_check_unixfile_LDADD) $(LIBS)
-src/chroot-sh.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/chroot-sh$(EXEEXT): $(src_chroot_sh_OBJECTS) $(src_chroot_sh_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/chroot-sh$(EXEEXT)
- $(LINK) $(src_chroot_sh_OBJECTS) $(src_chroot_sh_LDADD) $(LIBS)
-src/fstool.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/chxid.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
-src/chxid$(EXEEXT): $(src_chxid_OBJECTS) $(src_chxid_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/chxid$(EXEEXT)
- $(src_chxid_LINK) $(src_chxid_OBJECTS) $(src_chxid_LDADD) $(LIBS)
-src/exec-cd.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/exec-cd$(EXEEXT): $(src_exec_cd_OBJECTS) $(src_exec_cd_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/exec-cd$(EXEEXT)
- $(LINK) $(src_exec_cd_OBJECTS) $(src_exec_cd_LDADD) $(LIBS)
-src/exec-ulimit.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/exec-ulimit$(EXEEXT): $(src_exec_ulimit_OBJECTS) $(src_exec_ulimit_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/exec-ulimit$(EXEEXT)
- $(LINK) $(src_exec_ulimit_OBJECTS) $(src_exec_ulimit_LDADD) $(LIBS)
-src/fakerunlevel.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/fakerunlevel$(EXEEXT): $(src_fakerunlevel_OBJECTS) $(src_fakerunlevel_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/fakerunlevel$(EXEEXT)
- $(LINK) $(src_fakerunlevel_OBJECTS) $(src_fakerunlevel_LDADD) $(LIBS)
-src/filetime.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/filetime$(EXEEXT): $(src_filetime_OBJECTS) $(src_filetime_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/filetime$(EXEEXT)
- $(src_filetime_LINK) $(src_filetime_OBJECTS) $(src_filetime_LDADD) $(LIBS)
-src/h2ext.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
-src/h2ext$(EXEEXT): $(src_h2ext_OBJECTS) $(src_h2ext_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/h2ext$(EXEEXT)
- $(src_h2ext_LINK) $(src_h2ext_OBJECTS) $(src_h2ext_LDADD) $(LIBS)
-src/ifspec.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/ifspec$(EXEEXT): $(src_ifspec_OBJECTS) $(src_ifspec_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/ifspec$(EXEEXT)
- $(LINK) $(src_ifspec_OBJECTS) $(src_ifspec_LDADD) $(LIBS)
-src/keep-ctx-alive.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/keep-ctx-alive$(EXEEXT): $(src_keep_ctx_alive_OBJECTS) $(src_keep_ctx_alive_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/keep-ctx-alive$(EXEEXT)
- $(src_keep_ctx_alive_LINK) $(src_keep_ctx_alive_OBJECTS) $(src_keep_ctx_alive_LDADD) $(LIBS)
-src/listdevip.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/listdevip$(EXEEXT): $(src_listdevip_OBJECTS) $(src_listdevip_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/listdevip$(EXEEXT)
- $(LINK) $(src_listdevip_OBJECTS) $(src_listdevip_LDADD) $(LIBS)
-src/lockfile.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/lockfile$(EXEEXT): $(src_lockfile_OBJECTS) $(src_lockfile_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/lockfile$(EXEEXT)
- $(LINK) $(src_lockfile_OBJECTS) $(src_lockfile_LDADD) $(LIBS)
-src/lsxid.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
-src/lsxid$(EXEEXT): $(src_lsxid_OBJECTS) $(src_lsxid_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/lsxid$(EXEEXT)
- $(src_lsxid_LINK) $(src_lsxid_OBJECTS) $(src_lsxid_LDADD) $(LIBS)
-src/mask2prefix.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/mask2prefix$(EXEEXT): $(src_mask2prefix_OBJECTS) $(src_mask2prefix_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/mask2prefix$(EXEEXT)
- $(LINK) $(src_mask2prefix_OBJECTS) $(src_mask2prefix_LDADD) $(LIBS)
-src/naddress.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/naddress$(EXEEXT): $(src_naddress_OBJECTS) $(src_naddress_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/naddress$(EXEEXT)
- $(src_naddress_LINK) $(src_naddress_OBJECTS) $(src_naddress_LDADD) $(LIBS)
-src/nattribute.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/nattribute$(EXEEXT): $(src_nattribute_OBJECTS) $(src_nattribute_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/nattribute$(EXEEXT)
- $(src_nattribute_LINK) $(src_nattribute_OBJECTS) $(src_nattribute_LDADD) $(LIBS)
-src/ncontext.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/ncontext$(EXEEXT): $(src_ncontext_OBJECTS) $(src_ncontext_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/ncontext$(EXEEXT)
- $(src_ncontext_LINK) $(src_ncontext_OBJECTS) $(src_ncontext_LDADD) $(LIBS)
-src/parserpmdump.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/parserpmdump$(EXEEXT): $(src_parserpmdump_OBJECTS) $(src_parserpmdump_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/parserpmdump$(EXEEXT)
- $(LINK) $(src_parserpmdump_OBJECTS) $(src_parserpmdump_LDADD) $(LIBS)
-src/readlink.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/readlink$(EXEEXT): $(src_readlink_OBJECTS) $(src_readlink_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/readlink$(EXEEXT)
- $(LINK) $(src_readlink_OBJECTS) $(src_readlink_LDADD) $(LIBS)
-src/rebootmgr.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/rebootmgr$(EXEEXT): $(src_rebootmgr_OBJECTS) $(src_rebootmgr_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/rebootmgr$(EXEEXT)
- $(LINK) $(src_rebootmgr_OBJECTS) $(src_rebootmgr_LDADD) $(LIBS)
-src/reducecap.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/reducecap$(EXEEXT): $(src_reducecap_OBJECTS) $(src_reducecap_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/reducecap$(EXEEXT)
- $(src_reducecap_LINK) $(src_reducecap_OBJECTS) $(src_reducecap_LDADD) $(LIBS)
-src/rpm-fake-resolver.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/rpm-fake-resolver$(EXEEXT): $(src_rpm_fake_resolver_OBJECTS) $(src_rpm_fake_resolver_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/rpm-fake-resolver$(EXEEXT)
- $(src_rpm_fake_resolver_LINK) $(src_rpm_fake_resolver_OBJECTS) $(src_rpm_fake_resolver_LDADD) $(LIBS)
-src/save_ctxinfo.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/save_ctxinfo$(EXEEXT): $(src_save_ctxinfo_OBJECTS) $(src_save_ctxinfo_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/save_ctxinfo$(EXEEXT)
- $(src_save_ctxinfo_LINK) $(src_save_ctxinfo_OBJECTS) $(src_save_ctxinfo_LDADD) $(LIBS)
-src/secure-mount.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/secure-mount$(EXEEXT): $(src_secure_mount_OBJECTS) $(src_secure_mount_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/secure-mount$(EXEEXT)
- $(src_secure_mount_LINK) $(src_secure_mount_OBJECTS) $(src_secure_mount_LDADD) $(LIBS)
-src/setattr.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/setattr$(EXEEXT): $(src_setattr_OBJECTS) $(src_setattr_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/setattr$(EXEEXT)
- $(src_setattr_LINK) $(src_setattr_OBJECTS) $(src_setattr_LDADD) $(LIBS)
-src/showattr.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/showattr$(EXEEXT): $(src_showattr_OBJECTS) $(src_showattr_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/showattr$(EXEEXT)
- $(src_showattr_LINK) $(src_showattr_OBJECTS) $(src_showattr_LDADD) $(LIBS)
-src/showperm.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/showperm$(EXEEXT): $(src_showperm_OBJECTS) $(src_showperm_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/showperm$(EXEEXT)
- $(LINK) $(src_showperm_OBJECTS) $(src_showperm_LDADD) $(LIBS)
-src/sigexec.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/sigexec$(EXEEXT): $(src_sigexec_OBJECTS) $(src_sigexec_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/sigexec$(EXEEXT)
- $(LINK) $(src_sigexec_OBJECTS) $(src_sigexec_LDADD) $(LIBS)
-src/testsuite/$(am__dirstamp):
- @$(MKDIR_P) src/testsuite
- @: > src/testsuite/$(am__dirstamp)
-src/testsuite/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) src/testsuite/$(DEPDIR)
- @: > src/testsuite/$(DEPDIR)/$(am__dirstamp)
-src/testsuite/chbind-test.$(OBJEXT): src/testsuite/$(am__dirstamp) \
- src/testsuite/$(DEPDIR)/$(am__dirstamp)
-src/testsuite/chbind-test$(EXEEXT): $(src_testsuite_chbind_test_OBJECTS) $(src_testsuite_chbind_test_DEPENDENCIES) src/testsuite/$(am__dirstamp)
- @rm -f src/testsuite/chbind-test$(EXEEXT)
- $(LINK) $(src_testsuite_chbind_test_OBJECTS) $(src_testsuite_chbind_test_LDADD) $(LIBS)
-src/testsuite/chcontext-test.$(OBJEXT): src/testsuite/$(am__dirstamp) \
- src/testsuite/$(DEPDIR)/$(am__dirstamp)
-src/testsuite/chcontext-test$(EXEEXT): $(src_testsuite_chcontext_test_OBJECTS) $(src_testsuite_chcontext_test_DEPENDENCIES) src/testsuite/$(am__dirstamp)
- @rm -f src/testsuite/chcontext-test$(EXEEXT)
- $(LINK) $(src_testsuite_chcontext_test_OBJECTS) $(src_testsuite_chcontext_test_LDADD) $(LIBS)
-src/testsuite/hashcalc.$(OBJEXT): src/testsuite/$(am__dirstamp) \
- src/testsuite/$(DEPDIR)/$(am__dirstamp)
-src/testsuite/hashcalc$(EXEEXT): $(src_testsuite_hashcalc_OBJECTS) $(src_testsuite_hashcalc_DEPENDENCIES) src/testsuite/$(am__dirstamp)
- @rm -f src/testsuite/hashcalc$(EXEEXT)
- $(src_testsuite_hashcalc_LINK) $(src_testsuite_hashcalc_OBJECTS) $(src_testsuite_hashcalc_LDADD) $(LIBS)
-src/testsuite/hashcalc-plain.$(OBJEXT): src/testsuite/$(am__dirstamp) \
- src/testsuite/$(DEPDIR)/$(am__dirstamp)
-src/testsuite/hashcalc-plain$(EXEEXT): $(src_testsuite_hashcalc_plain_OBJECTS) $(src_testsuite_hashcalc_plain_DEPENDENCIES) src/testsuite/$(am__dirstamp)
- @rm -f src/testsuite/hashcalc-plain$(EXEEXT)
- $(src_testsuite_hashcalc_plain_LINK) $(src_testsuite_hashcalc_plain_OBJECTS) $(src_testsuite_hashcalc_plain_LDADD) $(LIBS)
-src/testsuite/rpm-fake-test.$(OBJEXT): src/testsuite/$(am__dirstamp) \
- src/testsuite/$(DEPDIR)/$(am__dirstamp)
-src/testsuite/rpm-fake-test$(EXEEXT): $(src_testsuite_rpm_fake_test_OBJECTS) $(src_testsuite_rpm_fake_test_DEPENDENCIES) src/testsuite/$(am__dirstamp)
- @rm -f src/testsuite/rpm-fake-test$(EXEEXT)
- $(LINK) $(src_testsuite_rpm_fake_test_OBJECTS) $(src_testsuite_rpm_fake_test_LDADD) $(LIBS)
-src/testsuite/src_testsuite_vunify_functest-vunify-functest.$(OBJEXT): \
- src/testsuite/$(am__dirstamp) \
- src/testsuite/$(DEPDIR)/$(am__dirstamp)
-src/testsuite/vunify-functest$(EXEEXT): $(src_testsuite_vunify_functest_OBJECTS) $(src_testsuite_vunify_functest_DEPENDENCIES) src/testsuite/$(am__dirstamp)
- @rm -f src/testsuite/vunify-functest$(EXEEXT)
- $(LINK) $(src_testsuite_vunify_functest_OBJECTS) $(src_testsuite_vunify_functest_LDADD) $(LIBS)
-src/vattribute.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vattribute$(EXEEXT): $(src_vattribute_OBJECTS) $(src_vattribute_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vattribute$(EXEEXT)
- $(src_vattribute_LINK) $(src_vattribute_OBJECTS) $(src_vattribute_LDADD) $(LIBS)
-src/vclone.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vclone$(EXEEXT): $(src_vclone_OBJECTS) $(src_vclone_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vclone$(EXEEXT)
- $(src_vclone_LINK) $(src_vclone_OBJECTS) $(src_vclone_LDADD) $(LIBS)
-src/vcontext.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vlogin.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vcontext$(EXEEXT): $(src_vcontext_OBJECTS) $(src_vcontext_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vcontext$(EXEEXT)
- $(src_vcontext_LINK) $(src_vcontext_OBJECTS) $(src_vcontext_LDADD) $(LIBS)
-src/vcopy.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
-src/vcopy$(EXEEXT): $(src_vcopy_OBJECTS) $(src_vcopy_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vcopy$(EXEEXT)
- $(src_vcopy_LINK) $(src_vcopy_OBJECTS) $(src_vcopy_LDADD) $(LIBS)
-src/vdevmap.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vdevmap$(EXEEXT): $(src_vdevmap_OBJECTS) $(src_vdevmap_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vdevmap$(EXEEXT)
- $(src_vdevmap_LINK) $(src_vdevmap_OBJECTS) $(src_vdevmap_LDADD) $(LIBS)
-src/vdlimit.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vdlimit$(EXEEXT): $(src_vdlimit_OBJECTS) $(src_vdlimit_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vdlimit$(EXEEXT)
- $(src_vdlimit_LINK) $(src_vdlimit_OBJECTS) $(src_vdlimit_LDADD) $(LIBS)
-src/vdu.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
-src/vdu$(EXEEXT): $(src_vdu_OBJECTS) $(src_vdu_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vdu$(EXEEXT)
- $(src_vdu_LINK) $(src_vdu_OBJECTS) $(src_vdu_LDADD) $(LIBS)
-src/vhashify.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vhashify$(EXEEXT): $(src_vhashify_OBJECTS) $(src_vhashify_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vhashify$(EXEEXT)
- $(src_vhashify_LINK) $(src_vhashify_OBJECTS) $(src_vhashify_LDADD) $(LIBS)
-src/vip6-autod.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vip6-autod$(EXEEXT): $(src_vip6_autod_OBJECTS) $(src_vip6_autod_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vip6-autod$(EXEEXT)
- $(src_vip6_autod_LINK) $(src_vip6_autod_OBJECTS) $(src_vip6_autod_LDADD) $(LIBS)
-src/src_vkill-vkill.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vkill$(EXEEXT): $(src_vkill_OBJECTS) $(src_vkill_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vkill$(EXEEXT)
- $(src_vkill_LINK) $(src_vkill_OBJECTS) $(src_vkill_LDADD) $(LIBS)
-src/vlimit.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vlimit$(EXEEXT): $(src_vlimit_OBJECTS) $(src_vlimit_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vlimit$(EXEEXT)
- $(src_vlimit_LINK) $(src_vlimit_OBJECTS) $(src_vlimit_LDADD) $(LIBS)
-src/vnamespace.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vnamespace$(EXEEXT): $(src_vnamespace_OBJECTS) $(src_vnamespace_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vnamespace$(EXEEXT)
- $(src_vnamespace_LINK) $(src_vnamespace_OBJECTS) $(src_vnamespace_LDADD) $(LIBS)
-src/vps.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
-src/vps$(EXEEXT): $(src_vps_OBJECTS) $(src_vps_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vps$(EXEEXT)
- $(src_vps_LINK) $(src_vps_OBJECTS) $(src_vps_LDADD) $(LIBS)
-src/vreboot.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vreboot$(EXEEXT): $(src_vreboot_OBJECTS) $(src_vreboot_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vreboot$(EXEEXT)
- $(LINK) $(src_vreboot_OBJECTS) $(src_vreboot_LDADD) $(LIBS)
-src/vrsetup.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vrsetup$(EXEEXT): $(src_vrsetup_OBJECTS) $(src_vrsetup_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vrsetup$(EXEEXT)
- $(LINK) $(src_vrsetup_OBJECTS) $(src_vrsetup_LDADD) $(LIBS)
-src/vsched.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vsched$(EXEEXT): $(src_vsched_OBJECTS) $(src_vsched_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vsched$(EXEEXT)
- $(src_vsched_LINK) $(src_vsched_OBJECTS) $(src_vsched_LDADD) $(LIBS)
-src/vserver-info.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vserver-info$(EXEEXT): $(src_vserver_info_OBJECTS) $(src_vserver_info_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vserver-info$(EXEEXT)
- $(src_vserver_info_LINK) $(src_vserver_info_OBJECTS) $(src_vserver_info_LDADD) $(LIBS)
-src/vserver-stat.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vserver-stat$(EXEEXT): $(src_vserver_stat_OBJECTS) $(src_vserver_stat_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vserver-stat$(EXEEXT)
- $(src_vserver_stat_LINK) $(src_vserver_stat_OBJECTS) $(src_vserver_stat_LDADD) $(LIBS)
-src/vsh.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
-src/vsh$(EXEEXT): $(src_vsh_OBJECTS) $(src_vsh_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vsh$(EXEEXT)
- $(src_vsh_LINK) $(src_vsh_OBJECTS) $(src_vsh_LDADD) $(LIBS)
-src/vshelper-sync.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vshelper-sync$(EXEEXT): $(src_vshelper_sync_OBJECTS) $(src_vshelper_sync_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vshelper-sync$(EXEEXT)
- $(LINK) $(src_vshelper_sync_OBJECTS) $(src_vshelper_sync_LDADD) $(LIBS)
-src/vsysctl.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vsysctl$(EXEEXT): $(src_vsysctl_OBJECTS) $(src_vsysctl_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vsysctl$(EXEEXT)
- $(src_vsysctl_LINK) $(src_vsysctl_OBJECTS) $(src_vsysctl_LDADD) $(LIBS)
-src/vtag.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
-src/vtag$(EXEEXT): $(src_vtag_OBJECTS) $(src_vtag_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vtag$(EXEEXT)
- $(src_vtag_LINK) $(src_vtag_OBJECTS) $(src_vtag_LDADD) $(LIBS)
-src/vuname.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vuname$(EXEEXT): $(src_vuname_OBJECTS) $(src_vuname_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vuname$(EXEEXT)
- $(src_vuname_LINK) $(src_vuname_OBJECTS) $(src_vuname_LDADD) $(LIBS)
-src/vunify.$(OBJEXT): src/$(am__dirstamp) \
- src/$(DEPDIR)/$(am__dirstamp)
-src/vunify$(EXEEXT): $(src_vunify_OBJECTS) $(src_vunify_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vunify$(EXEEXT)
- $(src_vunify_LINK) $(src_vunify_OBJECTS) $(src_vunify_LDADD) $(LIBS)
-src/vwait.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
-src/vwait$(EXEEXT): $(src_vwait_OBJECTS) $(src_vwait_DEPENDENCIES) src/$(am__dirstamp)
- @rm -f src/vwait$(EXEEXT)
- $(src_vwait_LINK) $(src_vwait_OBJECTS) $(src_vwait_LDADD) $(LIBS)
-tests/$(am__dirstamp):
- @$(MKDIR_P) tests
- @: > tests/$(am__dirstamp)
-tests/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) tests/$(DEPDIR)
- @: > tests/$(DEPDIR)/$(am__dirstamp)
-tests/escaperoot.$(OBJEXT): tests/$(am__dirstamp) \
- tests/$(DEPDIR)/$(am__dirstamp)
-tests/escaperoot$(EXEEXT): $(tests_escaperoot_OBJECTS) $(tests_escaperoot_DEPENDENCIES) tests/$(am__dirstamp)
- @rm -f tests/escaperoot$(EXEEXT)
- $(LINK) $(tests_escaperoot_OBJECTS) $(tests_escaperoot_LDADD) $(LIBS)
-tests/forkbomb.$(OBJEXT): tests/$(am__dirstamp) \
- tests/$(DEPDIR)/$(am__dirstamp)
-tests/forkbomb$(EXEEXT): $(tests_forkbomb_OBJECTS) $(tests_forkbomb_DEPENDENCIES) tests/$(am__dirstamp)
- @rm -f tests/forkbomb$(EXEEXT)
- $(LINK) $(tests_forkbomb_OBJECTS) $(tests_forkbomb_LDADD) $(LIBS)
-tests/getctx.$(OBJEXT): tests/$(am__dirstamp) \
- tests/$(DEPDIR)/$(am__dirstamp)
-tests/getctx$(EXEEXT): $(tests_getctx_OBJECTS) $(tests_getctx_DEPENDENCIES) tests/$(am__dirstamp)
- @rm -f tests/getctx$(EXEEXT)
- $(tests_getctx_LINK) $(tests_getctx_OBJECTS) $(tests_getctx_LDADD) $(LIBS)
-tests/getinitpid.$(OBJEXT): tests/$(am__dirstamp) \
- tests/$(DEPDIR)/$(am__dirstamp)
-tests/getinitpid$(EXEEXT): $(tests_getinitpid_OBJECTS) $(tests_getinitpid_DEPENDENCIES) tests/$(am__dirstamp)
- @rm -f tests/getinitpid$(EXEEXT)
- $(tests_getinitpid_LINK) $(tests_getinitpid_OBJECTS) $(tests_getinitpid_LDADD) $(LIBS)
-tests/testipc.$(OBJEXT): tests/$(am__dirstamp) \
- tests/$(DEPDIR)/$(am__dirstamp)
-tests/testipc$(EXEEXT): $(tests_testipc_OBJECTS) $(tests_testipc_DEPENDENCIES) tests/$(am__dirstamp)
- @rm -f tests/testipc$(EXEEXT)
- $(LINK) $(tests_testipc_OBJECTS) $(tests_testipc_LDADD) $(LIBS)
-tests/testlimit.$(OBJEXT): tests/$(am__dirstamp) \
- tests/$(DEPDIR)/$(am__dirstamp)
-tests/testlimit$(EXEEXT): $(tests_testlimit_OBJECTS) $(tests_testlimit_DEPENDENCIES) tests/$(am__dirstamp)
- @rm -f tests/testlimit$(EXEEXT)
- $(LINK) $(tests_testlimit_OBJECTS) $(tests_testlimit_LDADD) $(LIBS)
-tests/testopenf.$(OBJEXT): tests/$(am__dirstamp) \
- tests/$(DEPDIR)/$(am__dirstamp)
-tests/testopenf$(EXEEXT): $(tests_testopenf_OBJECTS) $(tests_testopenf_DEPENDENCIES) tests/$(am__dirstamp)
- @rm -f tests/testopenf$(EXEEXT)
- $(LINK) $(tests_testopenf_OBJECTS) $(tests_testopenf_LDADD) $(LIBS)
-tests/vserver-info.$(OBJEXT): tests/$(am__dirstamp) \
- tests/$(DEPDIR)/$(am__dirstamp)
-tests/vserver-info$(EXEEXT): $(tests_vserver_info_OBJECTS) $(tests_vserver_info_DEPENDENCIES) tests/$(am__dirstamp)
- @rm -f tests/vserver-info$(EXEEXT)
- $(tests_vserver_info_LINK) $(tests_vserver_info_OBJECTS) $(tests_vserver_info_LDADD) $(LIBS)
-vserver-start/$(am__dirstamp):
- @$(MKDIR_P) vserver-start
- @: > vserver-start/$(am__dirstamp)
-vserver-start/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) vserver-start/$(DEPDIR)
- @: > vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/main.$(OBJEXT): vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/mount.$(OBJEXT): vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/defaulttty.$(OBJEXT): vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/scriptlets.$(OBJEXT): vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/undo.$(OBJEXT): vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/vshelper.$(OBJEXT): vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/interface.$(OBJEXT): vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/interface-add.$(OBJEXT): vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/interface-read.$(OBJEXT): vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/interface-remove.$(OBJEXT): \
- vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/interface-print.$(OBJEXT): \
- vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/configuration.$(OBJEXT): vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/configuration-init.$(OBJEXT): \
- vserver-start/$(am__dirstamp) \
- vserver-start/$(DEPDIR)/$(am__dirstamp)
-vserver-start/vserver.start.bin$(EXEEXT): $(vserver_start_vserver_start_bin_OBJECTS) $(vserver_start_vserver_start_bin_DEPENDENCIES) vserver-start/$(am__dirstamp)
- @rm -f vserver-start/vserver.start.bin$(EXEEXT)
- $(vserver_start_vserver_start_bin_LINK) $(vserver_start_vserver_start_bin_OBJECTS) $(vserver_start_vserver_start_bin_LDADD) $(LIBS)
-install-initrdSCRIPTS: $(initrd_SCRIPTS)
- @$(NORMAL_INSTALL)
- test -z "$(initrddir)" || $(MKDIR_P) "$(DESTDIR)$(initrddir)"
- @list='$(initrd_SCRIPTS)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- if test -f $$d$$p; then \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- echo " $(initrdSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(initrddir)/$$f'"; \
- $(initrdSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(initrddir)/$$f"; \
- else :; fi; \
- done
-
-uninstall-initrdSCRIPTS:
- @$(NORMAL_UNINSTALL)
- @list='$(initrd_SCRIPTS)'; for p in $$list; do \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- echo " rm -f '$(DESTDIR)$(initrddir)/$$f'"; \
- rm -f "$(DESTDIR)$(initrddir)/$$f"; \
- done
-
-installcheck-initrdSCRIPTS: $(initrd_SCRIPTS)
- bad=0; pid=$$$$; list="$(initrd_SCRIPTS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | sed 's,^.*/,,;$(transform)'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(initrddir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-install-legacySCRIPTS: $(legacy_SCRIPTS)
- @$(NORMAL_INSTALL)
- test -z "$(legacydir)" || $(MKDIR_P) "$(DESTDIR)$(legacydir)"
- @list='$(legacy_SCRIPTS)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- if test -f $$d$$p; then \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- echo " $(legacySCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(legacydir)/$$f'"; \
- $(legacySCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(legacydir)/$$f"; \
- else :; fi; \
- done
-
-uninstall-legacySCRIPTS:
- @$(NORMAL_UNINSTALL)
- @list='$(legacy_SCRIPTS)'; for p in $$list; do \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- echo " rm -f '$(DESTDIR)$(legacydir)/$$f'"; \
- rm -f "$(DESTDIR)$(legacydir)/$$f"; \
- done
-
-installcheck-legacySCRIPTS: $(legacy_SCRIPTS)
- bad=0; pid=$$$$; list="$(legacy_SCRIPTS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | sed 's,^.*/,,;$(transform)'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(legacydir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-install-pkglibSCRIPTS: $(pkglib_SCRIPTS)
- @$(NORMAL_INSTALL)
- test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)"
- @list='$(pkglib_SCRIPTS)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- if test -f $$d$$p; then \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- echo " $(pkglibSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \
- $(pkglibSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \
- else :; fi; \
- done
-
-uninstall-pkglibSCRIPTS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkglib_SCRIPTS)'; for p in $$list; do \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- echo " rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \
- rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \
- done
-
-installcheck-pkglibSCRIPTS: $(pkglib_SCRIPTS)
- bad=0; pid=$$$$; list="$(pkglib_SCRIPTS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | sed 's,^.*/,,;$(transform)'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(pkglibdir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-install-sbinSCRIPTS: $(sbin_SCRIPTS)
- @$(NORMAL_INSTALL)
- test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
- @list='$(sbin_SCRIPTS)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- if test -f $$d$$p; then \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- echo " $(sbinSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
- $(sbinSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(sbindir)/$$f"; \
- else :; fi; \
- done
-
-uninstall-sbinSCRIPTS:
- @$(NORMAL_UNINSTALL)
- @list='$(sbin_SCRIPTS)'; for p in $$list; do \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
- rm -f "$(DESTDIR)$(sbindir)/$$f"; \
- done
-
-installcheck-sbinSCRIPTS: $(sbin_SCRIPTS)
- bad=0; pid=$$$$; list="$(sbin_SCRIPTS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | sed 's,^.*/,,;$(transform)'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(sbindir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_a-fmt-32.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_a-fmt-64.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_a-fmt-tai64n.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_a-fmtx-32.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_a-fmtx-64.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_la-fmt-32.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_la-fmt-32.lo
- -rm -f ensc_fmt/lib_libvserver_la-fmt-64.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_la-fmt-64.lo
- -rm -f ensc_fmt/lib_libvserver_la-fmt-tai64n.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_la-fmt-tai64n.lo
- -rm -f ensc_fmt/lib_libvserver_la-fmtx-32.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_la-fmtx-32.lo
- -rm -f ensc_fmt/lib_libvserver_la-fmtx-64.$(OBJEXT)
- -rm -f ensc_fmt/lib_libvserver_la-fmtx-64.lo
- -rm -f ensc_vector/libensc_vector_diet_a-list-add.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-list-at.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-list-free.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-list-init.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-list-insertinternal.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-list-search.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-list-searchselforg.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-clear.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-foreach.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-free.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-init.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-insert.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-popback.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-pushback.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-resize.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-search.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-searchselforg.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-sort.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-unique.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_diet_a-vector-zeroend.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-list-add.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-list-at.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-list-free.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-list-init.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-list-insertinternal.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-list-search.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-list-searchselforg.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-clear.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-foreach.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-free.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-init.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-insert.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-popback.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-pushback.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-resize.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-search.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-searchselforg.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-sort.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-unique.$(OBJEXT)
- -rm -f ensc_vector/libensc_vector_glibc_a-vector-zeroend.$(OBJEXT)
- -rm -f ensc_vector/testsuite/test1.$(OBJEXT)
- -rm -f ensc_vector/testsuite/test2.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-bcaps-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-bcaps_list-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-capabilities.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-ccaps-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-ccaps_list-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-cflags-compat.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-cflags-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-cflags_list-compat.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-cflags_list-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-checkconfig.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-checkversion.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-comparevserverbyid.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-createskeleton.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getfilecontext.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getinsecurebcaps.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getnbipv4root.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getprocentry-legacy.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getversion.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getvserverappdir.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getvserverbyctx.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getvservercfgdir.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getvservercfgstyle.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getvserverctx.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getvservername.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getvservervdir.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-getxidtype.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-isdirectory.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-isdynamicxid.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-isfile.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-islink.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-issupported.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-issupportedstring.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-listparser_uint32.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-listparser_uint64.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-ncaps-net.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-ncaps_list-net.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-nflags-net.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-nflags_list-net.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-nidopt2nid.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-parselimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-personalityflag.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-personalityflag_list.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-personalitytype.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-planetlab.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall-syscall.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_adddlimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_cleanupnamespace.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_ctxcreate.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_ctxmigrate.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_ctxstat.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_enternamespace.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_fgetiattr.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_fsetiattr.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getccaps.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getcflags.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getdlimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getiattr.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getncaps.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getnflags.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getnxinfo.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getsched.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getspacemask.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_gettasknid.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_gettaskxid.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getvci.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getvhiname.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_getvxinfo.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_kill.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_netadd.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_netcreate.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_netmigrate.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_netremove.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_remdlimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_resetminmax.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_rlimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_rlimitstat.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_schedinfo.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_setccaps.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_setcflags.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_setdlimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_setiattr.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_setmapping.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_setnamespace.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_setncaps.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_setnflags.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_setsched.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_setvhiname.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_tagcreate.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_tagmigrate.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_tasktag.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_virtstat.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-syscall_waitexit.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-tagopt2tag.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-val2text-t2v-uint32.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-val2text-t2v-uint64.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-val2text-v2t-uint32.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-val2text-v2t-uint64.$(OBJEXT)
- -rm -f lib/lib_libvserver_a-xidopt2xid.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-bcaps-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-bcaps-v13.lo
- -rm -f lib/lib_libvserver_la-bcaps_list-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-bcaps_list-v13.lo
- -rm -f lib/lib_libvserver_la-capabilities.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-capabilities.lo
- -rm -f lib/lib_libvserver_la-ccaps-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-ccaps-v13.lo
- -rm -f lib/lib_libvserver_la-ccaps_list-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-ccaps_list-v13.lo
- -rm -f lib/lib_libvserver_la-cflags-compat.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-cflags-compat.lo
- -rm -f lib/lib_libvserver_la-cflags-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-cflags-v13.lo
- -rm -f lib/lib_libvserver_la-cflags_list-compat.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-cflags_list-compat.lo
- -rm -f lib/lib_libvserver_la-cflags_list-v13.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-cflags_list-v13.lo
- -rm -f lib/lib_libvserver_la-checkconfig.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-checkconfig.lo
- -rm -f lib/lib_libvserver_la-checkversion.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-checkversion.lo
- -rm -f lib/lib_libvserver_la-comparevserverbyid.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-comparevserverbyid.lo
- -rm -f lib/lib_libvserver_la-createskeleton.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-createskeleton.lo
- -rm -f lib/lib_libvserver_la-getfilecontext.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getfilecontext.lo
- -rm -f lib/lib_libvserver_la-getinsecurebcaps.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getinsecurebcaps.lo
- -rm -f lib/lib_libvserver_la-getnbipv4root.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getnbipv4root.lo
- -rm -f lib/lib_libvserver_la-getprocentry-legacy.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getprocentry-legacy.lo
- -rm -f lib/lib_libvserver_la-getversion.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getversion.lo
- -rm -f lib/lib_libvserver_la-getvserverappdir.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getvserverappdir.lo
- -rm -f lib/lib_libvserver_la-getvserverbyctx.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getvserverbyctx.lo
- -rm -f lib/lib_libvserver_la-getvservercfgdir.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getvservercfgdir.lo
- -rm -f lib/lib_libvserver_la-getvservercfgstyle.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getvservercfgstyle.lo
- -rm -f lib/lib_libvserver_la-getvserverctx.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getvserverctx.lo
- -rm -f lib/lib_libvserver_la-getvservername.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getvservername.lo
- -rm -f lib/lib_libvserver_la-getvservervdir.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getvservervdir.lo
- -rm -f lib/lib_libvserver_la-getxidtype.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-getxidtype.lo
- -rm -f lib/lib_libvserver_la-isdirectory.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-isdirectory.lo
- -rm -f lib/lib_libvserver_la-isdynamicxid.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-isdynamicxid.lo
- -rm -f lib/lib_libvserver_la-isfile.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-isfile.lo
- -rm -f lib/lib_libvserver_la-islink.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-islink.lo
- -rm -f lib/lib_libvserver_la-issupported.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-issupported.lo
- -rm -f lib/lib_libvserver_la-issupportedstring.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-issupportedstring.lo
- -rm -f lib/lib_libvserver_la-listparser_uint32.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-listparser_uint32.lo
- -rm -f lib/lib_libvserver_la-listparser_uint64.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-listparser_uint64.lo
- -rm -f lib/lib_libvserver_la-ncaps-net.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-ncaps-net.lo
- -rm -f lib/lib_libvserver_la-ncaps_list-net.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-ncaps_list-net.lo
- -rm -f lib/lib_libvserver_la-nflags-net.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-nflags-net.lo
- -rm -f lib/lib_libvserver_la-nflags_list-net.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-nflags_list-net.lo
- -rm -f lib/lib_libvserver_la-nidopt2nid.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-nidopt2nid.lo
- -rm -f lib/lib_libvserver_la-parselimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-parselimit.lo
- -rm -f lib/lib_libvserver_la-personalityflag.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-personalityflag.lo
- -rm -f lib/lib_libvserver_la-personalityflag_list.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-personalityflag_list.lo
- -rm -f lib/lib_libvserver_la-personalitytype.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-personalitytype.lo
- -rm -f lib/lib_libvserver_la-planetlab.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-planetlab.lo
- -rm -f lib/lib_libvserver_la-syscall-syscall.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall-syscall.lo
- -rm -f lib/lib_libvserver_la-syscall.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall.lo
- -rm -f lib/lib_libvserver_la-syscall_adddlimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_adddlimit.lo
- -rm -f lib/lib_libvserver_la-syscall_cleanupnamespace.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_cleanupnamespace.lo
- -rm -f lib/lib_libvserver_la-syscall_ctxcreate.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_ctxcreate.lo
- -rm -f lib/lib_libvserver_la-syscall_ctxmigrate.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_ctxmigrate.lo
- -rm -f lib/lib_libvserver_la-syscall_ctxstat.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_ctxstat.lo
- -rm -f lib/lib_libvserver_la-syscall_enternamespace.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_enternamespace.lo
- -rm -f lib/lib_libvserver_la-syscall_fgetiattr.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_fgetiattr.lo
- -rm -f lib/lib_libvserver_la-syscall_fsetiattr.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_fsetiattr.lo
- -rm -f lib/lib_libvserver_la-syscall_getccaps.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getccaps.lo
- -rm -f lib/lib_libvserver_la-syscall_getcflags.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getcflags.lo
- -rm -f lib/lib_libvserver_la-syscall_getdlimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getdlimit.lo
- -rm -f lib/lib_libvserver_la-syscall_getiattr.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getiattr.lo
- -rm -f lib/lib_libvserver_la-syscall_getncaps.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getncaps.lo
- -rm -f lib/lib_libvserver_la-syscall_getnflags.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getnflags.lo
- -rm -f lib/lib_libvserver_la-syscall_getnxinfo.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getnxinfo.lo
- -rm -f lib/lib_libvserver_la-syscall_getsched.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getsched.lo
- -rm -f lib/lib_libvserver_la-syscall_getspacemask.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getspacemask.lo
- -rm -f lib/lib_libvserver_la-syscall_gettasknid.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_gettasknid.lo
- -rm -f lib/lib_libvserver_la-syscall_gettaskxid.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_gettaskxid.lo
- -rm -f lib/lib_libvserver_la-syscall_getvci.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getvci.lo
- -rm -f lib/lib_libvserver_la-syscall_getvhiname.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getvhiname.lo
- -rm -f lib/lib_libvserver_la-syscall_getvxinfo.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_getvxinfo.lo
- -rm -f lib/lib_libvserver_la-syscall_kill.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_kill.lo
- -rm -f lib/lib_libvserver_la-syscall_netadd.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_netadd.lo
- -rm -f lib/lib_libvserver_la-syscall_netcreate.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_netcreate.lo
- -rm -f lib/lib_libvserver_la-syscall_netmigrate.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_netmigrate.lo
- -rm -f lib/lib_libvserver_la-syscall_netremove.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_netremove.lo
- -rm -f lib/lib_libvserver_la-syscall_remdlimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_remdlimit.lo
- -rm -f lib/lib_libvserver_la-syscall_resetminmax.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_resetminmax.lo
- -rm -f lib/lib_libvserver_la-syscall_rlimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_rlimit.lo
- -rm -f lib/lib_libvserver_la-syscall_rlimitstat.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_rlimitstat.lo
- -rm -f lib/lib_libvserver_la-syscall_schedinfo.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_schedinfo.lo
- -rm -f lib/lib_libvserver_la-syscall_setccaps.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_setccaps.lo
- -rm -f lib/lib_libvserver_la-syscall_setcflags.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_setcflags.lo
- -rm -f lib/lib_libvserver_la-syscall_setdlimit.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_setdlimit.lo
- -rm -f lib/lib_libvserver_la-syscall_setiattr.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_setiattr.lo
- -rm -f lib/lib_libvserver_la-syscall_setmapping.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_setmapping.lo
- -rm -f lib/lib_libvserver_la-syscall_setnamespace.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_setnamespace.lo
- -rm -f lib/lib_libvserver_la-syscall_setncaps.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_setncaps.lo
- -rm -f lib/lib_libvserver_la-syscall_setnflags.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_setnflags.lo
- -rm -f lib/lib_libvserver_la-syscall_setsched.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_setsched.lo
- -rm -f lib/lib_libvserver_la-syscall_setvhiname.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_setvhiname.lo
- -rm -f lib/lib_libvserver_la-syscall_tagcreate.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_tagcreate.lo
- -rm -f lib/lib_libvserver_la-syscall_tagmigrate.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_tagmigrate.lo
- -rm -f lib/lib_libvserver_la-syscall_tasktag.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_tasktag.lo
- -rm -f lib/lib_libvserver_la-syscall_virtstat.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_virtstat.lo
- -rm -f lib/lib_libvserver_la-syscall_waitexit.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-syscall_waitexit.lo
- -rm -f lib/lib_libvserver_la-tagopt2tag.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-tagopt2tag.lo
- -rm -f lib/lib_libvserver_la-val2text-t2v-uint32.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-val2text-t2v-uint32.lo
- -rm -f lib/lib_libvserver_la-val2text-t2v-uint64.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-val2text-t2v-uint64.lo
- -rm -f lib/lib_libvserver_la-val2text-v2t-uint32.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-val2text-v2t-uint32.lo
- -rm -f lib/lib_libvserver_la-val2text-v2t-uint64.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-val2text-v2t-uint64.lo
- -rm -f lib/lib_libvserver_la-xidopt2xid.$(OBJEXT)
- -rm -f lib/lib_libvserver_la-xidopt2xid.lo
- -rm -f lib/testsuite/lib_testsuite_cflags-cflags.$(OBJEXT)
- -rm -f lib/testsuite/lib_testsuite_fmt-fmt.$(OBJEXT)
- -rm -f lib/testsuite/lib_testsuite_parselimit-parselimit.$(OBJEXT)
- -rm -f lib/testsuite/lib_testsuite_personality-personality.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-command-exec.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-command-free.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-command-init.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-command-reset.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-command-setparams.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-command-wait.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-matchlist-init.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-mkdir.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-unify-copy.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-unify-deunify.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-unify-settime.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-unify-unify.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-util-canonify.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-util-isnumber.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-util-lockfile.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_diet_a-util-safechdir.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-command-exec.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-command-free.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-command-init.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-command-reset.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-command-setparams.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-command-wait.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-mkdir.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-unify-copy.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-unify-settime.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-unify-unify.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-util-canonify.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.$(OBJEXT)
- -rm -f lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.$(OBJEXT)
- -rm -f lib_internal/testsuite/command.$(OBJEXT)
- -rm -f lib_internal/testsuite/copy.$(OBJEXT)
- -rm -f lib_internal/testsuite/filecfg-ml.$(OBJEXT)
- -rm -f lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.$(OBJEXT)
- -rm -f lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.$(OBJEXT)
- -rm -f lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.$(OBJEXT)
- -rm -f lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.$(OBJEXT)
- -rm -f lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.$(OBJEXT)
- -rm -f lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.$(OBJEXT)
- -rm -f src/capchroot.$(OBJEXT)
- -rm -f src/chain-echo.$(OBJEXT)
- -rm -f src/chbind.$(OBJEXT)
- -rm -f src/chcontext.$(OBJEXT)
- -rm -f src/check-unixfile.$(OBJEXT)
- -rm -f src/chroot-sh.$(OBJEXT)
- -rm -f src/chxid.$(OBJEXT)
- -rm -f src/exec-cd.$(OBJEXT)
- -rm -f src/exec-ulimit.$(OBJEXT)
- -rm -f src/fakerunlevel.$(OBJEXT)
- -rm -f src/filetime.$(OBJEXT)
- -rm -f src/fstool.$(OBJEXT)
- -rm -f src/h2ext.$(OBJEXT)
- -rm -f src/ifspec.$(OBJEXT)
- -rm -f src/keep-ctx-alive.$(OBJEXT)
- -rm -f src/listdevip.$(OBJEXT)
- -rm -f src/lockfile.$(OBJEXT)
- -rm -f src/lsxid.$(OBJEXT)
- -rm -f src/mask2prefix.$(OBJEXT)
- -rm -f src/naddress.$(OBJEXT)
- -rm -f src/nattribute.$(OBJEXT)
- -rm -f src/ncontext.$(OBJEXT)
- -rm -f src/parserpmdump.$(OBJEXT)
- -rm -f src/readlink.$(OBJEXT)
- -rm -f src/rebootmgr.$(OBJEXT)
- -rm -f src/reducecap.$(OBJEXT)
- -rm -f src/rpm-fake-resolver.$(OBJEXT)
- -rm -f src/save_ctxinfo.$(OBJEXT)
- -rm -f src/secure-mount.$(OBJEXT)
- -rm -f src/setattr.$(OBJEXT)
- -rm -f src/showattr.$(OBJEXT)
- -rm -f src/showperm.$(OBJEXT)
- -rm -f src/sigexec.$(OBJEXT)
- -rm -f src/src_rpm_fake_la-rpm-fake.$(OBJEXT)
- -rm -f src/src_rpm_fake_la-rpm-fake.lo
- -rm -f src/src_vkill-vkill.$(OBJEXT)
- -rm -f src/testsuite/chbind-test.$(OBJEXT)
- -rm -f src/testsuite/chcontext-test.$(OBJEXT)
- -rm -f src/testsuite/hashcalc-plain.$(OBJEXT)
- -rm -f src/testsuite/hashcalc.$(OBJEXT)
- -rm -f src/testsuite/rpm-fake-test.$(OBJEXT)
- -rm -f src/testsuite/src_testsuite_vunify_functest-vunify-functest.$(OBJEXT)
- -rm -f src/vattribute.$(OBJEXT)
- -rm -f src/vclone.$(OBJEXT)
- -rm -f src/vcontext.$(OBJEXT)
- -rm -f src/vcopy.$(OBJEXT)
- -rm -f src/vdevmap.$(OBJEXT)
- -rm -f src/vdlimit.$(OBJEXT)
- -rm -f src/vdu.$(OBJEXT)
- -rm -f src/vhashify.$(OBJEXT)
- -rm -f src/vip6-autod.$(OBJEXT)
- -rm -f src/vlimit.$(OBJEXT)
- -rm -f src/vlogin.$(OBJEXT)
- -rm -f src/vnamespace.$(OBJEXT)
- -rm -f src/vps.$(OBJEXT)
- -rm -f src/vreboot.$(OBJEXT)
- -rm -f src/vrsetup.$(OBJEXT)
- -rm -f src/vsched.$(OBJEXT)
- -rm -f src/vserver-info.$(OBJEXT)
- -rm -f src/vserver-stat.$(OBJEXT)
- -rm -f src/vsh.$(OBJEXT)
- -rm -f src/vshelper-sync.$(OBJEXT)
- -rm -f src/vsysctl.$(OBJEXT)
- -rm -f src/vtag.$(OBJEXT)
- -rm -f src/vuname.$(OBJEXT)
- -rm -f src/vunify.$(OBJEXT)
- -rm -f src/vwait.$(OBJEXT)
- -rm -f tests/escaperoot.$(OBJEXT)
- -rm -f tests/forkbomb.$(OBJEXT)
- -rm -f tests/getctx.$(OBJEXT)
- -rm -f tests/getinitpid.$(OBJEXT)
- -rm -f tests/testipc.$(OBJEXT)
- -rm -f tests/testlimit.$(OBJEXT)
- -rm -f tests/testopenf.$(OBJEXT)
- -rm -f tests/vserver-info.$(OBJEXT)
- -rm -f vserver-start/configuration-init.$(OBJEXT)
- -rm -f vserver-start/configuration.$(OBJEXT)
- -rm -f vserver-start/defaulttty.$(OBJEXT)
- -rm -f vserver-start/interface-add.$(OBJEXT)
- -rm -f vserver-start/interface-print.$(OBJEXT)
- -rm -f vserver-start/interface-read.$(OBJEXT)
- -rm -f vserver-start/interface-remove.$(OBJEXT)
- -rm -f vserver-start/interface.$(OBJEXT)
- -rm -f vserver-start/main.$(OBJEXT)
- -rm -f vserver-start/mount.$(OBJEXT)
- -rm -f vserver-start/scriptlets.$(OBJEXT)
- -rm -f vserver-start/undo.$(OBJEXT)
- -rm -f vserver-start/vshelper.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-dietlibc-not-enabled-error.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-glibc-not-enabled-error.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-64.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-tai64n.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-64.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-32.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-64.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-tai64n.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmtx-32.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmtx-64.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-add.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-at.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-free.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-insertinternal.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-search.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-searchselforg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-clear.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-foreach.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-free.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-insert.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-popback.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-pushback.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-resize.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-search.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-searchselforg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-sort.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-unique.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-zeroend.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-add.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-at.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-free.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-insertinternal.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-search.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-searchselforg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-clear.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-foreach.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-free.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-insert.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-popback.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-pushback.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-resize.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-search.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-searchselforg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-sort.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-unique.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-zeroend.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/testsuite/$(DEPDIR)/test1.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ensc_vector/testsuite/$(DEPDIR)/test2.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-bcaps-v13.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-bcaps_list-v13.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-capabilities.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-ccaps-v13.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-ccaps_list-v13.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-cflags-compat.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-cflags-v13.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-cflags_list-compat.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-cflags_list-v13.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-checkconfig.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-checkversion.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-comparevserverbyid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-createskeleton.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getfilecontext.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getinsecurebcaps.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getnbipv4root.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getprocentry-legacy.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getversion.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getvserverappdir.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getvserverbyctx.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getvservercfgdir.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getvservercfgstyle.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getvserverctx.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getvservername.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getvservervdir.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-getxidtype.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-isdirectory.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-isdynamicxid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-isfile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-islink.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-issupported.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-issupportedstring.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-listparser_uint32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-listparser_uint64.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-ncaps-net.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-ncaps_list-net.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-nflags-net.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-nflags_list-net.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-nidopt2nid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-parselimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-personalityflag.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-personalityflag_list.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-personalitytype.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-planetlab.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall-syscall.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_adddlimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_cleanupnamespace.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxcreate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxmigrate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxstat.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_enternamespace.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_fgetiattr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_fsetiattr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getccaps.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getcflags.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getdlimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getiattr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getncaps.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getnflags.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getnxinfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getsched.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getspacemask.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_gettasknid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_gettaskxid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getvci.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getvhiname.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_getvxinfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_kill.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_netadd.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_netcreate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_netmigrate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_netremove.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_remdlimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_resetminmax.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimitstat.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_schedinfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_setccaps.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_setcflags.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_setdlimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_setiattr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_setmapping.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_setnamespace.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_setncaps.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_setnflags.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_setsched.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_setvhiname.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_tagcreate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_tagmigrate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_tasktag.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_virtstat.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-syscall_waitexit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-tagopt2tag.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint64.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint64.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_a-xidopt2xid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-bcaps-v13.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-bcaps_list-v13.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-capabilities.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-ccaps-v13.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-ccaps_list-v13.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-cflags-compat.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-cflags-v13.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-cflags_list-compat.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-cflags_list-v13.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-checkconfig.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-checkversion.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-comparevserverbyid.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-createskeleton.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getfilecontext.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getinsecurebcaps.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getnbipv4root.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getprocentry-legacy.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getversion.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getvserverappdir.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getvserverbyctx.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getvservercfgdir.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getvservercfgstyle.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getvserverctx.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getvservername.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getvservervdir.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-getxidtype.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-isdirectory.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-isdynamicxid.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-isfile.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-islink.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-issupported.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-issupportedstring.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-listparser_uint32.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-listparser_uint64.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-ncaps-net.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-ncaps_list-net.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-nflags-net.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-nflags_list-net.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-nidopt2nid.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-parselimit.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-personalityflag.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-personalityflag_list.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-personalitytype.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-planetlab.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall-syscall.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_adddlimit.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_cleanupnamespace.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxcreate.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxmigrate.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxstat.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_enternamespace.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_fgetiattr.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_fsetiattr.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getccaps.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getcflags.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getdlimit.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getiattr.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getncaps.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getnflags.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getnxinfo.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getsched.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getspacemask.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_gettasknid.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_gettaskxid.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getvci.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getvhiname.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_getvxinfo.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_kill.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_netadd.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_netcreate.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_netmigrate.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_netremove.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_remdlimit.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_resetminmax.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_rlimit.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_rlimitstat.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_schedinfo.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_setccaps.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_setcflags.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_setdlimit.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_setiattr.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_setmapping.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_setnamespace.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_setncaps.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_setnflags.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_setsched.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_setvhiname.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_tagcreate.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_tagmigrate.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_tasktag.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_virtstat.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-syscall_waitexit.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-tagopt2tag.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-val2text-t2v-uint32.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-val2text-t2v-uint64.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-val2text-v2t-uint32.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-val2text-v2t-uint64.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/lib_libvserver_la-xidopt2xid.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/testsuite/$(DEPDIR)/lib_testsuite_cflags-cflags.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/testsuite/$(DEPDIR)/lib_testsuite_fmt-fmt.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/testsuite/$(DEPDIR)/lib_testsuite_parselimit-parselimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/testsuite/$(DEPDIR)/lib_testsuite_personality-personality.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-appendparameter.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-exec.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-free.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-reset.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-setparams.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-wait.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-errinfo-writeerrno.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentryflag.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentrystr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-jailintotempdir.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-appendfiles.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-compare.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-destroy.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initbyvserver.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initmanually.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-printid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-free.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-mkdir.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-append.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-switchtowatchxid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-copy.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-deunify.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-isiunlinkable.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-settime.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-unify.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-canonify.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-exitlikeprocess.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumber.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumberunsigned.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-lockfile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-safechdir.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-appendparameter.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-exec.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-free.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-reset.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-setparams.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-wait.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-errinfo-writeerrno.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentryflag.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentrystr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-jailintotempdir.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-appendfiles.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-compare.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-destroy.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initmanually.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-printid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-free.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-mkdir.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-append.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-switchtowatchxid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-copy.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-deunify.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-isiunlinkable.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-settime.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-unify.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-canonify.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-exitlikeprocess.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumber.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumberunsigned.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-lockfile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-safechdir.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/testsuite/$(DEPDIR)/command.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/testsuite/$(DEPDIR)/copy.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/testsuite/$(DEPDIR)/filecfg-ml.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber-isnumber.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber_gnu-isnumber.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist-matchlist.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist_gnu-matchlist.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus-sigbus.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus_gnu-sigbus.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/capchroot.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/chain-echo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/chbind.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/chcontext.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/check-unixfile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/chroot-sh.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/chxid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/exec-cd.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/exec-ulimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/fakerunlevel.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/filetime.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/fstool.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/h2ext.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/ifspec.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/keep-ctx-alive.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/listdevip.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/lockfile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/lsxid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/mask2prefix.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/naddress.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/nattribute.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/ncontext.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/parserpmdump.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/readlink.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/rebootmgr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/reducecap.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/rpm-fake-resolver.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/save_ctxinfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/secure-mount.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/setattr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/showattr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/showperm.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/sigexec.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/src_rpm_fake_la-rpm-fake.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/src_vkill-vkill.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vattribute.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vclone.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vcontext.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vcopy.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vdevmap.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vdlimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vdu.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vhashify.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vip6-autod.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vlimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vlogin.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vnamespace.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vps.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vreboot.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vrsetup.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vsched.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vserver-info.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vserver-stat.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vsh.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vshelper-sync.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vsysctl.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vtag.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vuname.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vunify.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/vwait.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/testsuite/$(DEPDIR)/chbind-test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/testsuite/$(DEPDIR)/chcontext-test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/testsuite/$(DEPDIR)/hashcalc-plain.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/testsuite/$(DEPDIR)/hashcalc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/testsuite/$(DEPDIR)/rpm-fake-test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@src/testsuite/$(DEPDIR)/src_testsuite_vunify_functest-vunify-functest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/escaperoot.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/forkbomb.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/getctx.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/getinitpid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/testipc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/testlimit.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/testopenf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/vserver-info.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/configuration-init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/configuration.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/defaulttty.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/interface-add.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/interface-print.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/interface-read.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/interface-remove.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/interface.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/main.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/mount.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/scriptlets.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/undo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@vserver-start/$(DEPDIR)/vshelper.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ mv -f $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
-@am__fastdepCC_TRUE@ mv -f $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
-@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ mv -f $$depbase.Tpo $$depbase.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
-
-lib/lib_libvserver_a-syscall.o: lib/syscall.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall.Tpo -c -o lib/lib_libvserver_a-syscall.o `test -f 'lib/syscall.c' || echo '$(srcdir)/'`lib/syscall.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall.c' object='lib/lib_libvserver_a-syscall.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall.o `test -f 'lib/syscall.c' || echo '$(srcdir)/'`lib/syscall.c
-
-lib/lib_libvserver_a-syscall.obj: lib/syscall.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall.Tpo -c -o lib/lib_libvserver_a-syscall.obj `if test -f 'lib/syscall.c'; then $(CYGPATH_W) 'lib/syscall.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall.c' object='lib/lib_libvserver_a-syscall.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall.obj `if test -f 'lib/syscall.c'; then $(CYGPATH_W) 'lib/syscall.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall.c'; fi`
-
-lib/lib_libvserver_a-checkversion.o: lib/checkversion.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-checkversion.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-checkversion.Tpo -c -o lib/lib_libvserver_a-checkversion.o `test -f 'lib/checkversion.c' || echo '$(srcdir)/'`lib/checkversion.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-checkversion.Tpo lib/$(DEPDIR)/lib_libvserver_a-checkversion.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/checkversion.c' object='lib/lib_libvserver_a-checkversion.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-checkversion.o `test -f 'lib/checkversion.c' || echo '$(srcdir)/'`lib/checkversion.c
-
-lib/lib_libvserver_a-checkversion.obj: lib/checkversion.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-checkversion.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-checkversion.Tpo -c -o lib/lib_libvserver_a-checkversion.obj `if test -f 'lib/checkversion.c'; then $(CYGPATH_W) 'lib/checkversion.c'; else $(CYGPATH_W) '$(srcdir)/lib/checkversion.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-checkversion.Tpo lib/$(DEPDIR)/lib_libvserver_a-checkversion.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/checkversion.c' object='lib/lib_libvserver_a-checkversion.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-checkversion.obj `if test -f 'lib/checkversion.c'; then $(CYGPATH_W) 'lib/checkversion.c'; else $(CYGPATH_W) '$(srcdir)/lib/checkversion.c'; fi`
-
-lib/lib_libvserver_a-checkconfig.o: lib/checkconfig.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-checkconfig.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-checkconfig.Tpo -c -o lib/lib_libvserver_a-checkconfig.o `test -f 'lib/checkconfig.c' || echo '$(srcdir)/'`lib/checkconfig.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-checkconfig.Tpo lib/$(DEPDIR)/lib_libvserver_a-checkconfig.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/checkconfig.c' object='lib/lib_libvserver_a-checkconfig.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-checkconfig.o `test -f 'lib/checkconfig.c' || echo '$(srcdir)/'`lib/checkconfig.c
-
-lib/lib_libvserver_a-checkconfig.obj: lib/checkconfig.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-checkconfig.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-checkconfig.Tpo -c -o lib/lib_libvserver_a-checkconfig.obj `if test -f 'lib/checkconfig.c'; then $(CYGPATH_W) 'lib/checkconfig.c'; else $(CYGPATH_W) '$(srcdir)/lib/checkconfig.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-checkconfig.Tpo lib/$(DEPDIR)/lib_libvserver_a-checkconfig.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/checkconfig.c' object='lib/lib_libvserver_a-checkconfig.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-checkconfig.obj `if test -f 'lib/checkconfig.c'; then $(CYGPATH_W) 'lib/checkconfig.c'; else $(CYGPATH_W) '$(srcdir)/lib/checkconfig.c'; fi`
-
-lib/lib_libvserver_a-isdirectory.o: lib/isdirectory.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-isdirectory.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-isdirectory.Tpo -c -o lib/lib_libvserver_a-isdirectory.o `test -f 'lib/isdirectory.c' || echo '$(srcdir)/'`lib/isdirectory.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-isdirectory.Tpo lib/$(DEPDIR)/lib_libvserver_a-isdirectory.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/isdirectory.c' object='lib/lib_libvserver_a-isdirectory.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-isdirectory.o `test -f 'lib/isdirectory.c' || echo '$(srcdir)/'`lib/isdirectory.c
-
-lib/lib_libvserver_a-isdirectory.obj: lib/isdirectory.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-isdirectory.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-isdirectory.Tpo -c -o lib/lib_libvserver_a-isdirectory.obj `if test -f 'lib/isdirectory.c'; then $(CYGPATH_W) 'lib/isdirectory.c'; else $(CYGPATH_W) '$(srcdir)/lib/isdirectory.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-isdirectory.Tpo lib/$(DEPDIR)/lib_libvserver_a-isdirectory.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/isdirectory.c' object='lib/lib_libvserver_a-isdirectory.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-isdirectory.obj `if test -f 'lib/isdirectory.c'; then $(CYGPATH_W) 'lib/isdirectory.c'; else $(CYGPATH_W) '$(srcdir)/lib/isdirectory.c'; fi`
-
-lib/lib_libvserver_a-isfile.o: lib/isfile.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-isfile.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-isfile.Tpo -c -o lib/lib_libvserver_a-isfile.o `test -f 'lib/isfile.c' || echo '$(srcdir)/'`lib/isfile.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-isfile.Tpo lib/$(DEPDIR)/lib_libvserver_a-isfile.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/isfile.c' object='lib/lib_libvserver_a-isfile.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-isfile.o `test -f 'lib/isfile.c' || echo '$(srcdir)/'`lib/isfile.c
-
-lib/lib_libvserver_a-isfile.obj: lib/isfile.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-isfile.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-isfile.Tpo -c -o lib/lib_libvserver_a-isfile.obj `if test -f 'lib/isfile.c'; then $(CYGPATH_W) 'lib/isfile.c'; else $(CYGPATH_W) '$(srcdir)/lib/isfile.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-isfile.Tpo lib/$(DEPDIR)/lib_libvserver_a-isfile.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/isfile.c' object='lib/lib_libvserver_a-isfile.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-isfile.obj `if test -f 'lib/isfile.c'; then $(CYGPATH_W) 'lib/isfile.c'; else $(CYGPATH_W) '$(srcdir)/lib/isfile.c'; fi`
-
-lib/lib_libvserver_a-islink.o: lib/islink.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-islink.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-islink.Tpo -c -o lib/lib_libvserver_a-islink.o `test -f 'lib/islink.c' || echo '$(srcdir)/'`lib/islink.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-islink.Tpo lib/$(DEPDIR)/lib_libvserver_a-islink.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/islink.c' object='lib/lib_libvserver_a-islink.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-islink.o `test -f 'lib/islink.c' || echo '$(srcdir)/'`lib/islink.c
-
-lib/lib_libvserver_a-islink.obj: lib/islink.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-islink.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-islink.Tpo -c -o lib/lib_libvserver_a-islink.obj `if test -f 'lib/islink.c'; then $(CYGPATH_W) 'lib/islink.c'; else $(CYGPATH_W) '$(srcdir)/lib/islink.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-islink.Tpo lib/$(DEPDIR)/lib_libvserver_a-islink.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/islink.c' object='lib/lib_libvserver_a-islink.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-islink.obj `if test -f 'lib/islink.c'; then $(CYGPATH_W) 'lib/islink.c'; else $(CYGPATH_W) '$(srcdir)/lib/islink.c'; fi`
-
-lib/lib_libvserver_a-getnbipv4root.o: lib/getnbipv4root.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getnbipv4root.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getnbipv4root.Tpo -c -o lib/lib_libvserver_a-getnbipv4root.o `test -f 'lib/getnbipv4root.c' || echo '$(srcdir)/'`lib/getnbipv4root.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getnbipv4root.Tpo lib/$(DEPDIR)/lib_libvserver_a-getnbipv4root.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getnbipv4root.c' object='lib/lib_libvserver_a-getnbipv4root.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getnbipv4root.o `test -f 'lib/getnbipv4root.c' || echo '$(srcdir)/'`lib/getnbipv4root.c
-
-lib/lib_libvserver_a-getnbipv4root.obj: lib/getnbipv4root.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getnbipv4root.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getnbipv4root.Tpo -c -o lib/lib_libvserver_a-getnbipv4root.obj `if test -f 'lib/getnbipv4root.c'; then $(CYGPATH_W) 'lib/getnbipv4root.c'; else $(CYGPATH_W) '$(srcdir)/lib/getnbipv4root.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getnbipv4root.Tpo lib/$(DEPDIR)/lib_libvserver_a-getnbipv4root.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getnbipv4root.c' object='lib/lib_libvserver_a-getnbipv4root.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getnbipv4root.obj `if test -f 'lib/getnbipv4root.c'; then $(CYGPATH_W) 'lib/getnbipv4root.c'; else $(CYGPATH_W) '$(srcdir)/lib/getnbipv4root.c'; fi`
-
-lib/lib_libvserver_a-getversion.o: lib/getversion.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getversion.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getversion.Tpo -c -o lib/lib_libvserver_a-getversion.o `test -f 'lib/getversion.c' || echo '$(srcdir)/'`lib/getversion.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getversion.Tpo lib/$(DEPDIR)/lib_libvserver_a-getversion.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getversion.c' object='lib/lib_libvserver_a-getversion.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getversion.o `test -f 'lib/getversion.c' || echo '$(srcdir)/'`lib/getversion.c
-
-lib/lib_libvserver_a-getversion.obj: lib/getversion.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getversion.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getversion.Tpo -c -o lib/lib_libvserver_a-getversion.obj `if test -f 'lib/getversion.c'; then $(CYGPATH_W) 'lib/getversion.c'; else $(CYGPATH_W) '$(srcdir)/lib/getversion.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getversion.Tpo lib/$(DEPDIR)/lib_libvserver_a-getversion.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getversion.c' object='lib/lib_libvserver_a-getversion.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getversion.obj `if test -f 'lib/getversion.c'; then $(CYGPATH_W) 'lib/getversion.c'; else $(CYGPATH_W) '$(srcdir)/lib/getversion.c'; fi`
-
-lib/lib_libvserver_a-capabilities.o: lib/capabilities.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-capabilities.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-capabilities.Tpo -c -o lib/lib_libvserver_a-capabilities.o `test -f 'lib/capabilities.c' || echo '$(srcdir)/'`lib/capabilities.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-capabilities.Tpo lib/$(DEPDIR)/lib_libvserver_a-capabilities.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/capabilities.c' object='lib/lib_libvserver_a-capabilities.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-capabilities.o `test -f 'lib/capabilities.c' || echo '$(srcdir)/'`lib/capabilities.c
-
-lib/lib_libvserver_a-capabilities.obj: lib/capabilities.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-capabilities.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-capabilities.Tpo -c -o lib/lib_libvserver_a-capabilities.obj `if test -f 'lib/capabilities.c'; then $(CYGPATH_W) 'lib/capabilities.c'; else $(CYGPATH_W) '$(srcdir)/lib/capabilities.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-capabilities.Tpo lib/$(DEPDIR)/lib_libvserver_a-capabilities.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/capabilities.c' object='lib/lib_libvserver_a-capabilities.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-capabilities.obj `if test -f 'lib/capabilities.c'; then $(CYGPATH_W) 'lib/capabilities.c'; else $(CYGPATH_W) '$(srcdir)/lib/capabilities.c'; fi`
-
-lib/lib_libvserver_a-getfilecontext.o: lib/getfilecontext.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getfilecontext.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getfilecontext.Tpo -c -o lib/lib_libvserver_a-getfilecontext.o `test -f 'lib/getfilecontext.c' || echo '$(srcdir)/'`lib/getfilecontext.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getfilecontext.Tpo lib/$(DEPDIR)/lib_libvserver_a-getfilecontext.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getfilecontext.c' object='lib/lib_libvserver_a-getfilecontext.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getfilecontext.o `test -f 'lib/getfilecontext.c' || echo '$(srcdir)/'`lib/getfilecontext.c
-
-lib/lib_libvserver_a-getfilecontext.obj: lib/getfilecontext.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getfilecontext.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getfilecontext.Tpo -c -o lib/lib_libvserver_a-getfilecontext.obj `if test -f 'lib/getfilecontext.c'; then $(CYGPATH_W) 'lib/getfilecontext.c'; else $(CYGPATH_W) '$(srcdir)/lib/getfilecontext.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getfilecontext.Tpo lib/$(DEPDIR)/lib_libvserver_a-getfilecontext.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getfilecontext.c' object='lib/lib_libvserver_a-getfilecontext.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getfilecontext.obj `if test -f 'lib/getfilecontext.c'; then $(CYGPATH_W) 'lib/getfilecontext.c'; else $(CYGPATH_W) '$(srcdir)/lib/getfilecontext.c'; fi`
-
-lib/lib_libvserver_a-getinsecurebcaps.o: lib/getinsecurebcaps.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getinsecurebcaps.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getinsecurebcaps.Tpo -c -o lib/lib_libvserver_a-getinsecurebcaps.o `test -f 'lib/getinsecurebcaps.c' || echo '$(srcdir)/'`lib/getinsecurebcaps.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getinsecurebcaps.Tpo lib/$(DEPDIR)/lib_libvserver_a-getinsecurebcaps.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getinsecurebcaps.c' object='lib/lib_libvserver_a-getinsecurebcaps.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getinsecurebcaps.o `test -f 'lib/getinsecurebcaps.c' || echo '$(srcdir)/'`lib/getinsecurebcaps.c
-
-lib/lib_libvserver_a-getinsecurebcaps.obj: lib/getinsecurebcaps.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getinsecurebcaps.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getinsecurebcaps.Tpo -c -o lib/lib_libvserver_a-getinsecurebcaps.obj `if test -f 'lib/getinsecurebcaps.c'; then $(CYGPATH_W) 'lib/getinsecurebcaps.c'; else $(CYGPATH_W) '$(srcdir)/lib/getinsecurebcaps.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getinsecurebcaps.Tpo lib/$(DEPDIR)/lib_libvserver_a-getinsecurebcaps.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getinsecurebcaps.c' object='lib/lib_libvserver_a-getinsecurebcaps.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getinsecurebcaps.obj `if test -f 'lib/getinsecurebcaps.c'; then $(CYGPATH_W) 'lib/getinsecurebcaps.c'; else $(CYGPATH_W) '$(srcdir)/lib/getinsecurebcaps.c'; fi`
-
-lib/lib_libvserver_a-getxidtype.o: lib/getxidtype.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getxidtype.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getxidtype.Tpo -c -o lib/lib_libvserver_a-getxidtype.o `test -f 'lib/getxidtype.c' || echo '$(srcdir)/'`lib/getxidtype.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getxidtype.Tpo lib/$(DEPDIR)/lib_libvserver_a-getxidtype.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getxidtype.c' object='lib/lib_libvserver_a-getxidtype.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getxidtype.o `test -f 'lib/getxidtype.c' || echo '$(srcdir)/'`lib/getxidtype.c
-
-lib/lib_libvserver_a-getxidtype.obj: lib/getxidtype.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getxidtype.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getxidtype.Tpo -c -o lib/lib_libvserver_a-getxidtype.obj `if test -f 'lib/getxidtype.c'; then $(CYGPATH_W) 'lib/getxidtype.c'; else $(CYGPATH_W) '$(srcdir)/lib/getxidtype.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getxidtype.Tpo lib/$(DEPDIR)/lib_libvserver_a-getxidtype.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getxidtype.c' object='lib/lib_libvserver_a-getxidtype.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getxidtype.obj `if test -f 'lib/getxidtype.c'; then $(CYGPATH_W) 'lib/getxidtype.c'; else $(CYGPATH_W) '$(srcdir)/lib/getxidtype.c'; fi`
-
-lib/lib_libvserver_a-isdynamicxid.o: lib/isdynamicxid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-isdynamicxid.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-isdynamicxid.Tpo -c -o lib/lib_libvserver_a-isdynamicxid.o `test -f 'lib/isdynamicxid.c' || echo '$(srcdir)/'`lib/isdynamicxid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-isdynamicxid.Tpo lib/$(DEPDIR)/lib_libvserver_a-isdynamicxid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/isdynamicxid.c' object='lib/lib_libvserver_a-isdynamicxid.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-isdynamicxid.o `test -f 'lib/isdynamicxid.c' || echo '$(srcdir)/'`lib/isdynamicxid.c
-
-lib/lib_libvserver_a-isdynamicxid.obj: lib/isdynamicxid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-isdynamicxid.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-isdynamicxid.Tpo -c -o lib/lib_libvserver_a-isdynamicxid.obj `if test -f 'lib/isdynamicxid.c'; then $(CYGPATH_W) 'lib/isdynamicxid.c'; else $(CYGPATH_W) '$(srcdir)/lib/isdynamicxid.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-isdynamicxid.Tpo lib/$(DEPDIR)/lib_libvserver_a-isdynamicxid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/isdynamicxid.c' object='lib/lib_libvserver_a-isdynamicxid.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-isdynamicxid.obj `if test -f 'lib/isdynamicxid.c'; then $(CYGPATH_W) 'lib/isdynamicxid.c'; else $(CYGPATH_W) '$(srcdir)/lib/isdynamicxid.c'; fi`
-
-lib/lib_libvserver_a-issupported.o: lib/issupported.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-issupported.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-issupported.Tpo -c -o lib/lib_libvserver_a-issupported.o `test -f 'lib/issupported.c' || echo '$(srcdir)/'`lib/issupported.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-issupported.Tpo lib/$(DEPDIR)/lib_libvserver_a-issupported.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/issupported.c' object='lib/lib_libvserver_a-issupported.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-issupported.o `test -f 'lib/issupported.c' || echo '$(srcdir)/'`lib/issupported.c
-
-lib/lib_libvserver_a-issupported.obj: lib/issupported.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-issupported.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-issupported.Tpo -c -o lib/lib_libvserver_a-issupported.obj `if test -f 'lib/issupported.c'; then $(CYGPATH_W) 'lib/issupported.c'; else $(CYGPATH_W) '$(srcdir)/lib/issupported.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-issupported.Tpo lib/$(DEPDIR)/lib_libvserver_a-issupported.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/issupported.c' object='lib/lib_libvserver_a-issupported.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-issupported.obj `if test -f 'lib/issupported.c'; then $(CYGPATH_W) 'lib/issupported.c'; else $(CYGPATH_W) '$(srcdir)/lib/issupported.c'; fi`
-
-lib/lib_libvserver_a-issupportedstring.o: lib/issupportedstring.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-issupportedstring.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-issupportedstring.Tpo -c -o lib/lib_libvserver_a-issupportedstring.o `test -f 'lib/issupportedstring.c' || echo '$(srcdir)/'`lib/issupportedstring.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-issupportedstring.Tpo lib/$(DEPDIR)/lib_libvserver_a-issupportedstring.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/issupportedstring.c' object='lib/lib_libvserver_a-issupportedstring.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-issupportedstring.o `test -f 'lib/issupportedstring.c' || echo '$(srcdir)/'`lib/issupportedstring.c
-
-lib/lib_libvserver_a-issupportedstring.obj: lib/issupportedstring.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-issupportedstring.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-issupportedstring.Tpo -c -o lib/lib_libvserver_a-issupportedstring.obj `if test -f 'lib/issupportedstring.c'; then $(CYGPATH_W) 'lib/issupportedstring.c'; else $(CYGPATH_W) '$(srcdir)/lib/issupportedstring.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-issupportedstring.Tpo lib/$(DEPDIR)/lib_libvserver_a-issupportedstring.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/issupportedstring.c' object='lib/lib_libvserver_a-issupportedstring.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-issupportedstring.obj `if test -f 'lib/issupportedstring.c'; then $(CYGPATH_W) 'lib/issupportedstring.c'; else $(CYGPATH_W) '$(srcdir)/lib/issupportedstring.c'; fi`
-
-lib/lib_libvserver_a-listparser_uint32.o: lib/listparser_uint32.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-listparser_uint32.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-listparser_uint32.Tpo -c -o lib/lib_libvserver_a-listparser_uint32.o `test -f 'lib/listparser_uint32.c' || echo '$(srcdir)/'`lib/listparser_uint32.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-listparser_uint32.Tpo lib/$(DEPDIR)/lib_libvserver_a-listparser_uint32.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/listparser_uint32.c' object='lib/lib_libvserver_a-listparser_uint32.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-listparser_uint32.o `test -f 'lib/listparser_uint32.c' || echo '$(srcdir)/'`lib/listparser_uint32.c
-
-lib/lib_libvserver_a-listparser_uint32.obj: lib/listparser_uint32.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-listparser_uint32.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-listparser_uint32.Tpo -c -o lib/lib_libvserver_a-listparser_uint32.obj `if test -f 'lib/listparser_uint32.c'; then $(CYGPATH_W) 'lib/listparser_uint32.c'; else $(CYGPATH_W) '$(srcdir)/lib/listparser_uint32.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-listparser_uint32.Tpo lib/$(DEPDIR)/lib_libvserver_a-listparser_uint32.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/listparser_uint32.c' object='lib/lib_libvserver_a-listparser_uint32.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-listparser_uint32.obj `if test -f 'lib/listparser_uint32.c'; then $(CYGPATH_W) 'lib/listparser_uint32.c'; else $(CYGPATH_W) '$(srcdir)/lib/listparser_uint32.c'; fi`
-
-lib/lib_libvserver_a-listparser_uint64.o: lib/listparser_uint64.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-listparser_uint64.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-listparser_uint64.Tpo -c -o lib/lib_libvserver_a-listparser_uint64.o `test -f 'lib/listparser_uint64.c' || echo '$(srcdir)/'`lib/listparser_uint64.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-listparser_uint64.Tpo lib/$(DEPDIR)/lib_libvserver_a-listparser_uint64.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/listparser_uint64.c' object='lib/lib_libvserver_a-listparser_uint64.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-listparser_uint64.o `test -f 'lib/listparser_uint64.c' || echo '$(srcdir)/'`lib/listparser_uint64.c
-
-lib/lib_libvserver_a-listparser_uint64.obj: lib/listparser_uint64.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-listparser_uint64.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-listparser_uint64.Tpo -c -o lib/lib_libvserver_a-listparser_uint64.obj `if test -f 'lib/listparser_uint64.c'; then $(CYGPATH_W) 'lib/listparser_uint64.c'; else $(CYGPATH_W) '$(srcdir)/lib/listparser_uint64.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-listparser_uint64.Tpo lib/$(DEPDIR)/lib_libvserver_a-listparser_uint64.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/listparser_uint64.c' object='lib/lib_libvserver_a-listparser_uint64.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-listparser_uint64.obj `if test -f 'lib/listparser_uint64.c'; then $(CYGPATH_W) 'lib/listparser_uint64.c'; else $(CYGPATH_W) '$(srcdir)/lib/listparser_uint64.c'; fi`
-
-lib/lib_libvserver_a-personalityflag.o: lib/personalityflag.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-personalityflag.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-personalityflag.Tpo -c -o lib/lib_libvserver_a-personalityflag.o `test -f 'lib/personalityflag.c' || echo '$(srcdir)/'`lib/personalityflag.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-personalityflag.Tpo lib/$(DEPDIR)/lib_libvserver_a-personalityflag.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/personalityflag.c' object='lib/lib_libvserver_a-personalityflag.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-personalityflag.o `test -f 'lib/personalityflag.c' || echo '$(srcdir)/'`lib/personalityflag.c
-
-lib/lib_libvserver_a-personalityflag.obj: lib/personalityflag.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-personalityflag.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-personalityflag.Tpo -c -o lib/lib_libvserver_a-personalityflag.obj `if test -f 'lib/personalityflag.c'; then $(CYGPATH_W) 'lib/personalityflag.c'; else $(CYGPATH_W) '$(srcdir)/lib/personalityflag.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-personalityflag.Tpo lib/$(DEPDIR)/lib_libvserver_a-personalityflag.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/personalityflag.c' object='lib/lib_libvserver_a-personalityflag.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-personalityflag.obj `if test -f 'lib/personalityflag.c'; then $(CYGPATH_W) 'lib/personalityflag.c'; else $(CYGPATH_W) '$(srcdir)/lib/personalityflag.c'; fi`
-
-lib/lib_libvserver_a-personalityflag_list.o: lib/personalityflag_list.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-personalityflag_list.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-personalityflag_list.Tpo -c -o lib/lib_libvserver_a-personalityflag_list.o `test -f 'lib/personalityflag_list.c' || echo '$(srcdir)/'`lib/personalityflag_list.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-personalityflag_list.Tpo lib/$(DEPDIR)/lib_libvserver_a-personalityflag_list.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/personalityflag_list.c' object='lib/lib_libvserver_a-personalityflag_list.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-personalityflag_list.o `test -f 'lib/personalityflag_list.c' || echo '$(srcdir)/'`lib/personalityflag_list.c
-
-lib/lib_libvserver_a-personalityflag_list.obj: lib/personalityflag_list.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-personalityflag_list.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-personalityflag_list.Tpo -c -o lib/lib_libvserver_a-personalityflag_list.obj `if test -f 'lib/personalityflag_list.c'; then $(CYGPATH_W) 'lib/personalityflag_list.c'; else $(CYGPATH_W) '$(srcdir)/lib/personalityflag_list.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-personalityflag_list.Tpo lib/$(DEPDIR)/lib_libvserver_a-personalityflag_list.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/personalityflag_list.c' object='lib/lib_libvserver_a-personalityflag_list.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-personalityflag_list.obj `if test -f 'lib/personalityflag_list.c'; then $(CYGPATH_W) 'lib/personalityflag_list.c'; else $(CYGPATH_W) '$(srcdir)/lib/personalityflag_list.c'; fi`
-
-lib/lib_libvserver_a-personalitytype.o: lib/personalitytype.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-personalitytype.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-personalitytype.Tpo -c -o lib/lib_libvserver_a-personalitytype.o `test -f 'lib/personalitytype.c' || echo '$(srcdir)/'`lib/personalitytype.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-personalitytype.Tpo lib/$(DEPDIR)/lib_libvserver_a-personalitytype.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/personalitytype.c' object='lib/lib_libvserver_a-personalitytype.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-personalitytype.o `test -f 'lib/personalitytype.c' || echo '$(srcdir)/'`lib/personalitytype.c
-
-lib/lib_libvserver_a-personalitytype.obj: lib/personalitytype.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-personalitytype.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-personalitytype.Tpo -c -o lib/lib_libvserver_a-personalitytype.obj `if test -f 'lib/personalitytype.c'; then $(CYGPATH_W) 'lib/personalitytype.c'; else $(CYGPATH_W) '$(srcdir)/lib/personalitytype.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-personalitytype.Tpo lib/$(DEPDIR)/lib_libvserver_a-personalitytype.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/personalitytype.c' object='lib/lib_libvserver_a-personalitytype.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-personalitytype.obj `if test -f 'lib/personalitytype.c'; then $(CYGPATH_W) 'lib/personalitytype.c'; else $(CYGPATH_W) '$(srcdir)/lib/personalitytype.c'; fi`
-
-lib/lib_libvserver_a-syscall-syscall.o: lib/syscall-syscall.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall-syscall.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall-syscall.Tpo -c -o lib/lib_libvserver_a-syscall-syscall.o `test -f 'lib/syscall-syscall.c' || echo '$(srcdir)/'`lib/syscall-syscall.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall-syscall.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall-syscall.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall-syscall.c' object='lib/lib_libvserver_a-syscall-syscall.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall-syscall.o `test -f 'lib/syscall-syscall.c' || echo '$(srcdir)/'`lib/syscall-syscall.c
-
-lib/lib_libvserver_a-syscall-syscall.obj: lib/syscall-syscall.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall-syscall.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall-syscall.Tpo -c -o lib/lib_libvserver_a-syscall-syscall.obj `if test -f 'lib/syscall-syscall.c'; then $(CYGPATH_W) 'lib/syscall-syscall.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall-syscall.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall-syscall.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall-syscall.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall-syscall.c' object='lib/lib_libvserver_a-syscall-syscall.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall-syscall.obj `if test -f 'lib/syscall-syscall.c'; then $(CYGPATH_W) 'lib/syscall-syscall.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall-syscall.c'; fi`
-
-lib/lib_libvserver_a-val2text-t2v-uint32.o: lib/val2text-t2v-uint32.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-val2text-t2v-uint32.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint32.Tpo -c -o lib/lib_libvserver_a-val2text-t2v-uint32.o `test -f 'lib/val2text-t2v-uint32.c' || echo '$(srcdir)/'`lib/val2text-t2v-uint32.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint32.Tpo lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint32.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-t2v-uint32.c' object='lib/lib_libvserver_a-val2text-t2v-uint32.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-val2text-t2v-uint32.o `test -f 'lib/val2text-t2v-uint32.c' || echo '$(srcdir)/'`lib/val2text-t2v-uint32.c
-
-lib/lib_libvserver_a-val2text-t2v-uint32.obj: lib/val2text-t2v-uint32.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-val2text-t2v-uint32.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint32.Tpo -c -o lib/lib_libvserver_a-val2text-t2v-uint32.obj `if test -f 'lib/val2text-t2v-uint32.c'; then $(CYGPATH_W) 'lib/val2text-t2v-uint32.c'; else $(CYGPATH_W) '$(srcdir)/lib/val2text-t2v-uint32.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint32.Tpo lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint32.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-t2v-uint32.c' object='lib/lib_libvserver_a-val2text-t2v-uint32.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-val2text-t2v-uint32.obj `if test -f 'lib/val2text-t2v-uint32.c'; then $(CYGPATH_W) 'lib/val2text-t2v-uint32.c'; else $(CYGPATH_W) '$(srcdir)/lib/val2text-t2v-uint32.c'; fi`
-
-lib/lib_libvserver_a-val2text-t2v-uint64.o: lib/val2text-t2v-uint64.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-val2text-t2v-uint64.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint64.Tpo -c -o lib/lib_libvserver_a-val2text-t2v-uint64.o `test -f 'lib/val2text-t2v-uint64.c' || echo '$(srcdir)/'`lib/val2text-t2v-uint64.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint64.Tpo lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint64.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-t2v-uint64.c' object='lib/lib_libvserver_a-val2text-t2v-uint64.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-val2text-t2v-uint64.o `test -f 'lib/val2text-t2v-uint64.c' || echo '$(srcdir)/'`lib/val2text-t2v-uint64.c
-
-lib/lib_libvserver_a-val2text-t2v-uint64.obj: lib/val2text-t2v-uint64.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-val2text-t2v-uint64.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint64.Tpo -c -o lib/lib_libvserver_a-val2text-t2v-uint64.obj `if test -f 'lib/val2text-t2v-uint64.c'; then $(CYGPATH_W) 'lib/val2text-t2v-uint64.c'; else $(CYGPATH_W) '$(srcdir)/lib/val2text-t2v-uint64.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint64.Tpo lib/$(DEPDIR)/lib_libvserver_a-val2text-t2v-uint64.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-t2v-uint64.c' object='lib/lib_libvserver_a-val2text-t2v-uint64.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-val2text-t2v-uint64.obj `if test -f 'lib/val2text-t2v-uint64.c'; then $(CYGPATH_W) 'lib/val2text-t2v-uint64.c'; else $(CYGPATH_W) '$(srcdir)/lib/val2text-t2v-uint64.c'; fi`
-
-lib/lib_libvserver_a-val2text-v2t-uint32.o: lib/val2text-v2t-uint32.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-val2text-v2t-uint32.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint32.Tpo -c -o lib/lib_libvserver_a-val2text-v2t-uint32.o `test -f 'lib/val2text-v2t-uint32.c' || echo '$(srcdir)/'`lib/val2text-v2t-uint32.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint32.Tpo lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint32.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-v2t-uint32.c' object='lib/lib_libvserver_a-val2text-v2t-uint32.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-val2text-v2t-uint32.o `test -f 'lib/val2text-v2t-uint32.c' || echo '$(srcdir)/'`lib/val2text-v2t-uint32.c
-
-lib/lib_libvserver_a-val2text-v2t-uint32.obj: lib/val2text-v2t-uint32.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-val2text-v2t-uint32.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint32.Tpo -c -o lib/lib_libvserver_a-val2text-v2t-uint32.obj `if test -f 'lib/val2text-v2t-uint32.c'; then $(CYGPATH_W) 'lib/val2text-v2t-uint32.c'; else $(CYGPATH_W) '$(srcdir)/lib/val2text-v2t-uint32.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint32.Tpo lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint32.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-v2t-uint32.c' object='lib/lib_libvserver_a-val2text-v2t-uint32.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-val2text-v2t-uint32.obj `if test -f 'lib/val2text-v2t-uint32.c'; then $(CYGPATH_W) 'lib/val2text-v2t-uint32.c'; else $(CYGPATH_W) '$(srcdir)/lib/val2text-v2t-uint32.c'; fi`
-
-lib/lib_libvserver_a-val2text-v2t-uint64.o: lib/val2text-v2t-uint64.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-val2text-v2t-uint64.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint64.Tpo -c -o lib/lib_libvserver_a-val2text-v2t-uint64.o `test -f 'lib/val2text-v2t-uint64.c' || echo '$(srcdir)/'`lib/val2text-v2t-uint64.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint64.Tpo lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint64.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-v2t-uint64.c' object='lib/lib_libvserver_a-val2text-v2t-uint64.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-val2text-v2t-uint64.o `test -f 'lib/val2text-v2t-uint64.c' || echo '$(srcdir)/'`lib/val2text-v2t-uint64.c
-
-lib/lib_libvserver_a-val2text-v2t-uint64.obj: lib/val2text-v2t-uint64.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-val2text-v2t-uint64.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint64.Tpo -c -o lib/lib_libvserver_a-val2text-v2t-uint64.obj `if test -f 'lib/val2text-v2t-uint64.c'; then $(CYGPATH_W) 'lib/val2text-v2t-uint64.c'; else $(CYGPATH_W) '$(srcdir)/lib/val2text-v2t-uint64.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint64.Tpo lib/$(DEPDIR)/lib_libvserver_a-val2text-v2t-uint64.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-v2t-uint64.c' object='lib/lib_libvserver_a-val2text-v2t-uint64.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-val2text-v2t-uint64.obj `if test -f 'lib/val2text-v2t-uint64.c'; then $(CYGPATH_W) 'lib/val2text-v2t-uint64.c'; else $(CYGPATH_W) '$(srcdir)/lib/val2text-v2t-uint64.c'; fi`
-
-lib/lib_libvserver_a-parselimit.o: lib/parselimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-parselimit.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-parselimit.Tpo -c -o lib/lib_libvserver_a-parselimit.o `test -f 'lib/parselimit.c' || echo '$(srcdir)/'`lib/parselimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-parselimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-parselimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/parselimit.c' object='lib/lib_libvserver_a-parselimit.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-parselimit.o `test -f 'lib/parselimit.c' || echo '$(srcdir)/'`lib/parselimit.c
-
-lib/lib_libvserver_a-parselimit.obj: lib/parselimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-parselimit.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-parselimit.Tpo -c -o lib/lib_libvserver_a-parselimit.obj `if test -f 'lib/parselimit.c'; then $(CYGPATH_W) 'lib/parselimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/parselimit.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-parselimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-parselimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/parselimit.c' object='lib/lib_libvserver_a-parselimit.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-parselimit.obj `if test -f 'lib/parselimit.c'; then $(CYGPATH_W) 'lib/parselimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/parselimit.c'; fi`
-
-lib/lib_libvserver_a-planetlab.o: lib/planetlab.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-planetlab.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-planetlab.Tpo -c -o lib/lib_libvserver_a-planetlab.o `test -f 'lib/planetlab.c' || echo '$(srcdir)/'`lib/planetlab.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-planetlab.Tpo lib/$(DEPDIR)/lib_libvserver_a-planetlab.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/planetlab.c' object='lib/lib_libvserver_a-planetlab.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-planetlab.o `test -f 'lib/planetlab.c' || echo '$(srcdir)/'`lib/planetlab.c
-
-lib/lib_libvserver_a-planetlab.obj: lib/planetlab.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-planetlab.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-planetlab.Tpo -c -o lib/lib_libvserver_a-planetlab.obj `if test -f 'lib/planetlab.c'; then $(CYGPATH_W) 'lib/planetlab.c'; else $(CYGPATH_W) '$(srcdir)/lib/planetlab.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-planetlab.Tpo lib/$(DEPDIR)/lib_libvserver_a-planetlab.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/planetlab.c' object='lib/lib_libvserver_a-planetlab.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-planetlab.obj `if test -f 'lib/planetlab.c'; then $(CYGPATH_W) 'lib/planetlab.c'; else $(CYGPATH_W) '$(srcdir)/lib/planetlab.c'; fi`
-
-lib/lib_libvserver_a-getprocentry-legacy.o: lib/getprocentry-legacy.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getprocentry-legacy.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getprocentry-legacy.Tpo -c -o lib/lib_libvserver_a-getprocentry-legacy.o `test -f 'lib/getprocentry-legacy.c' || echo '$(srcdir)/'`lib/getprocentry-legacy.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getprocentry-legacy.Tpo lib/$(DEPDIR)/lib_libvserver_a-getprocentry-legacy.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getprocentry-legacy.c' object='lib/lib_libvserver_a-getprocentry-legacy.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getprocentry-legacy.o `test -f 'lib/getprocentry-legacy.c' || echo '$(srcdir)/'`lib/getprocentry-legacy.c
-
-lib/lib_libvserver_a-getprocentry-legacy.obj: lib/getprocentry-legacy.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getprocentry-legacy.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getprocentry-legacy.Tpo -c -o lib/lib_libvserver_a-getprocentry-legacy.obj `if test -f 'lib/getprocentry-legacy.c'; then $(CYGPATH_W) 'lib/getprocentry-legacy.c'; else $(CYGPATH_W) '$(srcdir)/lib/getprocentry-legacy.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getprocentry-legacy.Tpo lib/$(DEPDIR)/lib_libvserver_a-getprocentry-legacy.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getprocentry-legacy.c' object='lib/lib_libvserver_a-getprocentry-legacy.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getprocentry-legacy.obj `if test -f 'lib/getprocentry-legacy.c'; then $(CYGPATH_W) 'lib/getprocentry-legacy.c'; else $(CYGPATH_W) '$(srcdir)/lib/getprocentry-legacy.c'; fi`
-
-lib/lib_libvserver_a-cflags-compat.o: lib/cflags-compat.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-cflags-compat.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-cflags-compat.Tpo -c -o lib/lib_libvserver_a-cflags-compat.o `test -f 'lib/cflags-compat.c' || echo '$(srcdir)/'`lib/cflags-compat.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-cflags-compat.Tpo lib/$(DEPDIR)/lib_libvserver_a-cflags-compat.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags-compat.c' object='lib/lib_libvserver_a-cflags-compat.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-cflags-compat.o `test -f 'lib/cflags-compat.c' || echo '$(srcdir)/'`lib/cflags-compat.c
-
-lib/lib_libvserver_a-cflags-compat.obj: lib/cflags-compat.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-cflags-compat.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-cflags-compat.Tpo -c -o lib/lib_libvserver_a-cflags-compat.obj `if test -f 'lib/cflags-compat.c'; then $(CYGPATH_W) 'lib/cflags-compat.c'; else $(CYGPATH_W) '$(srcdir)/lib/cflags-compat.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-cflags-compat.Tpo lib/$(DEPDIR)/lib_libvserver_a-cflags-compat.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags-compat.c' object='lib/lib_libvserver_a-cflags-compat.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-cflags-compat.obj `if test -f 'lib/cflags-compat.c'; then $(CYGPATH_W) 'lib/cflags-compat.c'; else $(CYGPATH_W) '$(srcdir)/lib/cflags-compat.c'; fi`
-
-lib/lib_libvserver_a-cflags_list-compat.o: lib/cflags_list-compat.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-cflags_list-compat.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-cflags_list-compat.Tpo -c -o lib/lib_libvserver_a-cflags_list-compat.o `test -f 'lib/cflags_list-compat.c' || echo '$(srcdir)/'`lib/cflags_list-compat.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-cflags_list-compat.Tpo lib/$(DEPDIR)/lib_libvserver_a-cflags_list-compat.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags_list-compat.c' object='lib/lib_libvserver_a-cflags_list-compat.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-cflags_list-compat.o `test -f 'lib/cflags_list-compat.c' || echo '$(srcdir)/'`lib/cflags_list-compat.c
-
-lib/lib_libvserver_a-cflags_list-compat.obj: lib/cflags_list-compat.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-cflags_list-compat.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-cflags_list-compat.Tpo -c -o lib/lib_libvserver_a-cflags_list-compat.obj `if test -f 'lib/cflags_list-compat.c'; then $(CYGPATH_W) 'lib/cflags_list-compat.c'; else $(CYGPATH_W) '$(srcdir)/lib/cflags_list-compat.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-cflags_list-compat.Tpo lib/$(DEPDIR)/lib_libvserver_a-cflags_list-compat.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags_list-compat.c' object='lib/lib_libvserver_a-cflags_list-compat.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-cflags_list-compat.obj `if test -f 'lib/cflags_list-compat.c'; then $(CYGPATH_W) 'lib/cflags_list-compat.c'; else $(CYGPATH_W) '$(srcdir)/lib/cflags_list-compat.c'; fi`
-
-lib/lib_libvserver_a-comparevserverbyid.o: lib/comparevserverbyid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-comparevserverbyid.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-comparevserverbyid.Tpo -c -o lib/lib_libvserver_a-comparevserverbyid.o `test -f 'lib/comparevserverbyid.c' || echo '$(srcdir)/'`lib/comparevserverbyid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-comparevserverbyid.Tpo lib/$(DEPDIR)/lib_libvserver_a-comparevserverbyid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/comparevserverbyid.c' object='lib/lib_libvserver_a-comparevserverbyid.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-comparevserverbyid.o `test -f 'lib/comparevserverbyid.c' || echo '$(srcdir)/'`lib/comparevserverbyid.c
-
-lib/lib_libvserver_a-comparevserverbyid.obj: lib/comparevserverbyid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-comparevserverbyid.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-comparevserverbyid.Tpo -c -o lib/lib_libvserver_a-comparevserverbyid.obj `if test -f 'lib/comparevserverbyid.c'; then $(CYGPATH_W) 'lib/comparevserverbyid.c'; else $(CYGPATH_W) '$(srcdir)/lib/comparevserverbyid.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-comparevserverbyid.Tpo lib/$(DEPDIR)/lib_libvserver_a-comparevserverbyid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/comparevserverbyid.c' object='lib/lib_libvserver_a-comparevserverbyid.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-comparevserverbyid.obj `if test -f 'lib/comparevserverbyid.c'; then $(CYGPATH_W) 'lib/comparevserverbyid.c'; else $(CYGPATH_W) '$(srcdir)/lib/comparevserverbyid.c'; fi`
-
-lib/lib_libvserver_a-createskeleton.o: lib/createskeleton.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-createskeleton.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-createskeleton.Tpo -c -o lib/lib_libvserver_a-createskeleton.o `test -f 'lib/createskeleton.c' || echo '$(srcdir)/'`lib/createskeleton.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-createskeleton.Tpo lib/$(DEPDIR)/lib_libvserver_a-createskeleton.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/createskeleton.c' object='lib/lib_libvserver_a-createskeleton.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-createskeleton.o `test -f 'lib/createskeleton.c' || echo '$(srcdir)/'`lib/createskeleton.c
-
-lib/lib_libvserver_a-createskeleton.obj: lib/createskeleton.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-createskeleton.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-createskeleton.Tpo -c -o lib/lib_libvserver_a-createskeleton.obj `if test -f 'lib/createskeleton.c'; then $(CYGPATH_W) 'lib/createskeleton.c'; else $(CYGPATH_W) '$(srcdir)/lib/createskeleton.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-createskeleton.Tpo lib/$(DEPDIR)/lib_libvserver_a-createskeleton.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/createskeleton.c' object='lib/lib_libvserver_a-createskeleton.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-createskeleton.obj `if test -f 'lib/createskeleton.c'; then $(CYGPATH_W) 'lib/createskeleton.c'; else $(CYGPATH_W) '$(srcdir)/lib/createskeleton.c'; fi`
-
-lib/lib_libvserver_a-getvserverbyctx.o: lib/getvserverbyctx.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvserverbyctx.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvserverbyctx.Tpo -c -o lib/lib_libvserver_a-getvserverbyctx.o `test -f 'lib/getvserverbyctx.c' || echo '$(srcdir)/'`lib/getvserverbyctx.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvserverbyctx.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvserverbyctx.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvserverbyctx.c' object='lib/lib_libvserver_a-getvserverbyctx.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvserverbyctx.o `test -f 'lib/getvserverbyctx.c' || echo '$(srcdir)/'`lib/getvserverbyctx.c
-
-lib/lib_libvserver_a-getvserverbyctx.obj: lib/getvserverbyctx.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvserverbyctx.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvserverbyctx.Tpo -c -o lib/lib_libvserver_a-getvserverbyctx.obj `if test -f 'lib/getvserverbyctx.c'; then $(CYGPATH_W) 'lib/getvserverbyctx.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvserverbyctx.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvserverbyctx.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvserverbyctx.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvserverbyctx.c' object='lib/lib_libvserver_a-getvserverbyctx.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvserverbyctx.obj `if test -f 'lib/getvserverbyctx.c'; then $(CYGPATH_W) 'lib/getvserverbyctx.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvserverbyctx.c'; fi`
-
-lib/lib_libvserver_a-getvservercfgstyle.o: lib/getvservercfgstyle.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvservercfgstyle.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvservercfgstyle.Tpo -c -o lib/lib_libvserver_a-getvservercfgstyle.o `test -f 'lib/getvservercfgstyle.c' || echo '$(srcdir)/'`lib/getvservercfgstyle.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvservercfgstyle.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvservercfgstyle.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservercfgstyle.c' object='lib/lib_libvserver_a-getvservercfgstyle.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvservercfgstyle.o `test -f 'lib/getvservercfgstyle.c' || echo '$(srcdir)/'`lib/getvservercfgstyle.c
-
-lib/lib_libvserver_a-getvservercfgstyle.obj: lib/getvservercfgstyle.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvservercfgstyle.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvservercfgstyle.Tpo -c -o lib/lib_libvserver_a-getvservercfgstyle.obj `if test -f 'lib/getvservercfgstyle.c'; then $(CYGPATH_W) 'lib/getvservercfgstyle.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvservercfgstyle.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvservercfgstyle.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvservercfgstyle.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservercfgstyle.c' object='lib/lib_libvserver_a-getvservercfgstyle.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvservercfgstyle.obj `if test -f 'lib/getvservercfgstyle.c'; then $(CYGPATH_W) 'lib/getvservercfgstyle.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvservercfgstyle.c'; fi`
-
-lib/lib_libvserver_a-getvserverappdir.o: lib/getvserverappdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvserverappdir.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvserverappdir.Tpo -c -o lib/lib_libvserver_a-getvserverappdir.o `test -f 'lib/getvserverappdir.c' || echo '$(srcdir)/'`lib/getvserverappdir.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvserverappdir.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvserverappdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvserverappdir.c' object='lib/lib_libvserver_a-getvserverappdir.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvserverappdir.o `test -f 'lib/getvserverappdir.c' || echo '$(srcdir)/'`lib/getvserverappdir.c
-
-lib/lib_libvserver_a-getvserverappdir.obj: lib/getvserverappdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvserverappdir.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvserverappdir.Tpo -c -o lib/lib_libvserver_a-getvserverappdir.obj `if test -f 'lib/getvserverappdir.c'; then $(CYGPATH_W) 'lib/getvserverappdir.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvserverappdir.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvserverappdir.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvserverappdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvserverappdir.c' object='lib/lib_libvserver_a-getvserverappdir.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvserverappdir.obj `if test -f 'lib/getvserverappdir.c'; then $(CYGPATH_W) 'lib/getvserverappdir.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvserverappdir.c'; fi`
-
-lib/lib_libvserver_a-getvservercfgdir.o: lib/getvservercfgdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvservercfgdir.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvservercfgdir.Tpo -c -o lib/lib_libvserver_a-getvservercfgdir.o `test -f 'lib/getvservercfgdir.c' || echo '$(srcdir)/'`lib/getvservercfgdir.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvservercfgdir.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvservercfgdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservercfgdir.c' object='lib/lib_libvserver_a-getvservercfgdir.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvservercfgdir.o `test -f 'lib/getvservercfgdir.c' || echo '$(srcdir)/'`lib/getvservercfgdir.c
-
-lib/lib_libvserver_a-getvservercfgdir.obj: lib/getvservercfgdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvservercfgdir.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvservercfgdir.Tpo -c -o lib/lib_libvserver_a-getvservercfgdir.obj `if test -f 'lib/getvservercfgdir.c'; then $(CYGPATH_W) 'lib/getvservercfgdir.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvservercfgdir.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvservercfgdir.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvservercfgdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservercfgdir.c' object='lib/lib_libvserver_a-getvservercfgdir.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvservercfgdir.obj `if test -f 'lib/getvservercfgdir.c'; then $(CYGPATH_W) 'lib/getvservercfgdir.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvservercfgdir.c'; fi`
-
-lib/lib_libvserver_a-getvserverctx.o: lib/getvserverctx.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvserverctx.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvserverctx.Tpo -c -o lib/lib_libvserver_a-getvserverctx.o `test -f 'lib/getvserverctx.c' || echo '$(srcdir)/'`lib/getvserverctx.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvserverctx.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvserverctx.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvserverctx.c' object='lib/lib_libvserver_a-getvserverctx.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvserverctx.o `test -f 'lib/getvserverctx.c' || echo '$(srcdir)/'`lib/getvserverctx.c
-
-lib/lib_libvserver_a-getvserverctx.obj: lib/getvserverctx.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvserverctx.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvserverctx.Tpo -c -o lib/lib_libvserver_a-getvserverctx.obj `if test -f 'lib/getvserverctx.c'; then $(CYGPATH_W) 'lib/getvserverctx.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvserverctx.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvserverctx.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvserverctx.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvserverctx.c' object='lib/lib_libvserver_a-getvserverctx.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvserverctx.obj `if test -f 'lib/getvserverctx.c'; then $(CYGPATH_W) 'lib/getvserverctx.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvserverctx.c'; fi`
-
-lib/lib_libvserver_a-getvservername.o: lib/getvservername.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvservername.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvservername.Tpo -c -o lib/lib_libvserver_a-getvservername.o `test -f 'lib/getvservername.c' || echo '$(srcdir)/'`lib/getvservername.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvservername.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvservername.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservername.c' object='lib/lib_libvserver_a-getvservername.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvservername.o `test -f 'lib/getvservername.c' || echo '$(srcdir)/'`lib/getvservername.c
-
-lib/lib_libvserver_a-getvservername.obj: lib/getvservername.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvservername.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvservername.Tpo -c -o lib/lib_libvserver_a-getvservername.obj `if test -f 'lib/getvservername.c'; then $(CYGPATH_W) 'lib/getvservername.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvservername.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvservername.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvservername.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservername.c' object='lib/lib_libvserver_a-getvservername.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvservername.obj `if test -f 'lib/getvservername.c'; then $(CYGPATH_W) 'lib/getvservername.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvservername.c'; fi`
-
-lib/lib_libvserver_a-getvservervdir.o: lib/getvservervdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvservervdir.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvservervdir.Tpo -c -o lib/lib_libvserver_a-getvservervdir.o `test -f 'lib/getvservervdir.c' || echo '$(srcdir)/'`lib/getvservervdir.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvservervdir.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvservervdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservervdir.c' object='lib/lib_libvserver_a-getvservervdir.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvservervdir.o `test -f 'lib/getvservervdir.c' || echo '$(srcdir)/'`lib/getvservervdir.c
-
-lib/lib_libvserver_a-getvservervdir.obj: lib/getvservervdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-getvservervdir.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-getvservervdir.Tpo -c -o lib/lib_libvserver_a-getvservervdir.obj `if test -f 'lib/getvservervdir.c'; then $(CYGPATH_W) 'lib/getvservervdir.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvservervdir.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-getvservervdir.Tpo lib/$(DEPDIR)/lib_libvserver_a-getvservervdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservervdir.c' object='lib/lib_libvserver_a-getvservervdir.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-getvservervdir.obj `if test -f 'lib/getvservervdir.c'; then $(CYGPATH_W) 'lib/getvservervdir.c'; else $(CYGPATH_W) '$(srcdir)/lib/getvservervdir.c'; fi`
-
-lib/lib_libvserver_a-xidopt2xid.o: lib/xidopt2xid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-xidopt2xid.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-xidopt2xid.Tpo -c -o lib/lib_libvserver_a-xidopt2xid.o `test -f 'lib/xidopt2xid.c' || echo '$(srcdir)/'`lib/xidopt2xid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-xidopt2xid.Tpo lib/$(DEPDIR)/lib_libvserver_a-xidopt2xid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/xidopt2xid.c' object='lib/lib_libvserver_a-xidopt2xid.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-xidopt2xid.o `test -f 'lib/xidopt2xid.c' || echo '$(srcdir)/'`lib/xidopt2xid.c
-
-lib/lib_libvserver_a-xidopt2xid.obj: lib/xidopt2xid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-xidopt2xid.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-xidopt2xid.Tpo -c -o lib/lib_libvserver_a-xidopt2xid.obj `if test -f 'lib/xidopt2xid.c'; then $(CYGPATH_W) 'lib/xidopt2xid.c'; else $(CYGPATH_W) '$(srcdir)/lib/xidopt2xid.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-xidopt2xid.Tpo lib/$(DEPDIR)/lib_libvserver_a-xidopt2xid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/xidopt2xid.c' object='lib/lib_libvserver_a-xidopt2xid.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-xidopt2xid.obj `if test -f 'lib/xidopt2xid.c'; then $(CYGPATH_W) 'lib/xidopt2xid.c'; else $(CYGPATH_W) '$(srcdir)/lib/xidopt2xid.c'; fi`
-
-lib/lib_libvserver_a-nidopt2nid.o: lib/nidopt2nid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-nidopt2nid.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-nidopt2nid.Tpo -c -o lib/lib_libvserver_a-nidopt2nid.o `test -f 'lib/nidopt2nid.c' || echo '$(srcdir)/'`lib/nidopt2nid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-nidopt2nid.Tpo lib/$(DEPDIR)/lib_libvserver_a-nidopt2nid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/nidopt2nid.c' object='lib/lib_libvserver_a-nidopt2nid.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-nidopt2nid.o `test -f 'lib/nidopt2nid.c' || echo '$(srcdir)/'`lib/nidopt2nid.c
-
-lib/lib_libvserver_a-nidopt2nid.obj: lib/nidopt2nid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-nidopt2nid.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-nidopt2nid.Tpo -c -o lib/lib_libvserver_a-nidopt2nid.obj `if test -f 'lib/nidopt2nid.c'; then $(CYGPATH_W) 'lib/nidopt2nid.c'; else $(CYGPATH_W) '$(srcdir)/lib/nidopt2nid.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-nidopt2nid.Tpo lib/$(DEPDIR)/lib_libvserver_a-nidopt2nid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/nidopt2nid.c' object='lib/lib_libvserver_a-nidopt2nid.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-nidopt2nid.obj `if test -f 'lib/nidopt2nid.c'; then $(CYGPATH_W) 'lib/nidopt2nid.c'; else $(CYGPATH_W) '$(srcdir)/lib/nidopt2nid.c'; fi`
-
-lib/lib_libvserver_a-tagopt2tag.o: lib/tagopt2tag.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-tagopt2tag.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-tagopt2tag.Tpo -c -o lib/lib_libvserver_a-tagopt2tag.o `test -f 'lib/tagopt2tag.c' || echo '$(srcdir)/'`lib/tagopt2tag.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-tagopt2tag.Tpo lib/$(DEPDIR)/lib_libvserver_a-tagopt2tag.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/tagopt2tag.c' object='lib/lib_libvserver_a-tagopt2tag.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-tagopt2tag.o `test -f 'lib/tagopt2tag.c' || echo '$(srcdir)/'`lib/tagopt2tag.c
-
-lib/lib_libvserver_a-tagopt2tag.obj: lib/tagopt2tag.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-tagopt2tag.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-tagopt2tag.Tpo -c -o lib/lib_libvserver_a-tagopt2tag.obj `if test -f 'lib/tagopt2tag.c'; then $(CYGPATH_W) 'lib/tagopt2tag.c'; else $(CYGPATH_W) '$(srcdir)/lib/tagopt2tag.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-tagopt2tag.Tpo lib/$(DEPDIR)/lib_libvserver_a-tagopt2tag.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/tagopt2tag.c' object='lib/lib_libvserver_a-tagopt2tag.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-tagopt2tag.obj `if test -f 'lib/tagopt2tag.c'; then $(CYGPATH_W) 'lib/tagopt2tag.c'; else $(CYGPATH_W) '$(srcdir)/lib/tagopt2tag.c'; fi`
-
-lib/lib_libvserver_a-syscall_rlimit.o: lib/syscall_rlimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_rlimit.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimit.Tpo -c -o lib/lib_libvserver_a-syscall_rlimit.o `test -f 'lib/syscall_rlimit.c' || echo '$(srcdir)/'`lib/syscall_rlimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_rlimit.c' object='lib/lib_libvserver_a-syscall_rlimit.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_rlimit.o `test -f 'lib/syscall_rlimit.c' || echo '$(srcdir)/'`lib/syscall_rlimit.c
-
-lib/lib_libvserver_a-syscall_rlimit.obj: lib/syscall_rlimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_rlimit.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimit.Tpo -c -o lib/lib_libvserver_a-syscall_rlimit.obj `if test -f 'lib/syscall_rlimit.c'; then $(CYGPATH_W) 'lib/syscall_rlimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_rlimit.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_rlimit.c' object='lib/lib_libvserver_a-syscall_rlimit.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_rlimit.obj `if test -f 'lib/syscall_rlimit.c'; then $(CYGPATH_W) 'lib/syscall_rlimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_rlimit.c'; fi`
-
-lib/lib_libvserver_a-syscall_kill.o: lib/syscall_kill.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_kill.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_kill.Tpo -c -o lib/lib_libvserver_a-syscall_kill.o `test -f 'lib/syscall_kill.c' || echo '$(srcdir)/'`lib/syscall_kill.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_kill.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_kill.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_kill.c' object='lib/lib_libvserver_a-syscall_kill.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_kill.o `test -f 'lib/syscall_kill.c' || echo '$(srcdir)/'`lib/syscall_kill.c
-
-lib/lib_libvserver_a-syscall_kill.obj: lib/syscall_kill.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_kill.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_kill.Tpo -c -o lib/lib_libvserver_a-syscall_kill.obj `if test -f 'lib/syscall_kill.c'; then $(CYGPATH_W) 'lib/syscall_kill.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_kill.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_kill.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_kill.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_kill.c' object='lib/lib_libvserver_a-syscall_kill.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_kill.obj `if test -f 'lib/syscall_kill.c'; then $(CYGPATH_W) 'lib/syscall_kill.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_kill.c'; fi`
-
-lib/lib_libvserver_a-syscall_ctxcreate.o: lib/syscall_ctxcreate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_ctxcreate.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxcreate.Tpo -c -o lib/lib_libvserver_a-syscall_ctxcreate.o `test -f 'lib/syscall_ctxcreate.c' || echo '$(srcdir)/'`lib/syscall_ctxcreate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxcreate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxcreate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_ctxcreate.c' object='lib/lib_libvserver_a-syscall_ctxcreate.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_ctxcreate.o `test -f 'lib/syscall_ctxcreate.c' || echo '$(srcdir)/'`lib/syscall_ctxcreate.c
-
-lib/lib_libvserver_a-syscall_ctxcreate.obj: lib/syscall_ctxcreate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_ctxcreate.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxcreate.Tpo -c -o lib/lib_libvserver_a-syscall_ctxcreate.obj `if test -f 'lib/syscall_ctxcreate.c'; then $(CYGPATH_W) 'lib/syscall_ctxcreate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_ctxcreate.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxcreate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxcreate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_ctxcreate.c' object='lib/lib_libvserver_a-syscall_ctxcreate.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_ctxcreate.obj `if test -f 'lib/syscall_ctxcreate.c'; then $(CYGPATH_W) 'lib/syscall_ctxcreate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_ctxcreate.c'; fi`
-
-lib/lib_libvserver_a-syscall_ctxmigrate.o: lib/syscall_ctxmigrate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_ctxmigrate.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxmigrate.Tpo -c -o lib/lib_libvserver_a-syscall_ctxmigrate.o `test -f 'lib/syscall_ctxmigrate.c' || echo '$(srcdir)/'`lib/syscall_ctxmigrate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxmigrate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxmigrate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_ctxmigrate.c' object='lib/lib_libvserver_a-syscall_ctxmigrate.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_ctxmigrate.o `test -f 'lib/syscall_ctxmigrate.c' || echo '$(srcdir)/'`lib/syscall_ctxmigrate.c
-
-lib/lib_libvserver_a-syscall_ctxmigrate.obj: lib/syscall_ctxmigrate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_ctxmigrate.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxmigrate.Tpo -c -o lib/lib_libvserver_a-syscall_ctxmigrate.obj `if test -f 'lib/syscall_ctxmigrate.c'; then $(CYGPATH_W) 'lib/syscall_ctxmigrate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_ctxmigrate.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxmigrate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxmigrate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_ctxmigrate.c' object='lib/lib_libvserver_a-syscall_ctxmigrate.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_ctxmigrate.obj `if test -f 'lib/syscall_ctxmigrate.c'; then $(CYGPATH_W) 'lib/syscall_ctxmigrate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_ctxmigrate.c'; fi`
-
-lib/lib_libvserver_a-syscall_cleanupnamespace.o: lib/syscall_cleanupnamespace.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_cleanupnamespace.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_cleanupnamespace.Tpo -c -o lib/lib_libvserver_a-syscall_cleanupnamespace.o `test -f 'lib/syscall_cleanupnamespace.c' || echo '$(srcdir)/'`lib/syscall_cleanupnamespace.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_cleanupnamespace.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_cleanupnamespace.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_cleanupnamespace.c' object='lib/lib_libvserver_a-syscall_cleanupnamespace.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_cleanupnamespace.o `test -f 'lib/syscall_cleanupnamespace.c' || echo '$(srcdir)/'`lib/syscall_cleanupnamespace.c
-
-lib/lib_libvserver_a-syscall_cleanupnamespace.obj: lib/syscall_cleanupnamespace.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_cleanupnamespace.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_cleanupnamespace.Tpo -c -o lib/lib_libvserver_a-syscall_cleanupnamespace.obj `if test -f 'lib/syscall_cleanupnamespace.c'; then $(CYGPATH_W) 'lib/syscall_cleanupnamespace.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_cleanupnamespace.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_cleanupnamespace.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_cleanupnamespace.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_cleanupnamespace.c' object='lib/lib_libvserver_a-syscall_cleanupnamespace.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_cleanupnamespace.obj `if test -f 'lib/syscall_cleanupnamespace.c'; then $(CYGPATH_W) 'lib/syscall_cleanupnamespace.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_cleanupnamespace.c'; fi`
-
-lib/lib_libvserver_a-syscall_enternamespace.o: lib/syscall_enternamespace.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_enternamespace.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_enternamespace.Tpo -c -o lib/lib_libvserver_a-syscall_enternamespace.o `test -f 'lib/syscall_enternamespace.c' || echo '$(srcdir)/'`lib/syscall_enternamespace.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_enternamespace.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_enternamespace.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_enternamespace.c' object='lib/lib_libvserver_a-syscall_enternamespace.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_enternamespace.o `test -f 'lib/syscall_enternamespace.c' || echo '$(srcdir)/'`lib/syscall_enternamespace.c
-
-lib/lib_libvserver_a-syscall_enternamespace.obj: lib/syscall_enternamespace.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_enternamespace.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_enternamespace.Tpo -c -o lib/lib_libvserver_a-syscall_enternamespace.obj `if test -f 'lib/syscall_enternamespace.c'; then $(CYGPATH_W) 'lib/syscall_enternamespace.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_enternamespace.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_enternamespace.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_enternamespace.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_enternamespace.c' object='lib/lib_libvserver_a-syscall_enternamespace.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_enternamespace.obj `if test -f 'lib/syscall_enternamespace.c'; then $(CYGPATH_W) 'lib/syscall_enternamespace.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_enternamespace.c'; fi`
-
-lib/lib_libvserver_a-syscall_getccaps.o: lib/syscall_getccaps.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getccaps.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getccaps.Tpo -c -o lib/lib_libvserver_a-syscall_getccaps.o `test -f 'lib/syscall_getccaps.c' || echo '$(srcdir)/'`lib/syscall_getccaps.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getccaps.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getccaps.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getccaps.c' object='lib/lib_libvserver_a-syscall_getccaps.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getccaps.o `test -f 'lib/syscall_getccaps.c' || echo '$(srcdir)/'`lib/syscall_getccaps.c
-
-lib/lib_libvserver_a-syscall_getccaps.obj: lib/syscall_getccaps.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getccaps.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getccaps.Tpo -c -o lib/lib_libvserver_a-syscall_getccaps.obj `if test -f 'lib/syscall_getccaps.c'; then $(CYGPATH_W) 'lib/syscall_getccaps.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getccaps.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getccaps.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getccaps.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getccaps.c' object='lib/lib_libvserver_a-syscall_getccaps.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getccaps.obj `if test -f 'lib/syscall_getccaps.c'; then $(CYGPATH_W) 'lib/syscall_getccaps.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getccaps.c'; fi`
-
-lib/lib_libvserver_a-syscall_getcflags.o: lib/syscall_getcflags.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getcflags.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getcflags.Tpo -c -o lib/lib_libvserver_a-syscall_getcflags.o `test -f 'lib/syscall_getcflags.c' || echo '$(srcdir)/'`lib/syscall_getcflags.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getcflags.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getcflags.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getcflags.c' object='lib/lib_libvserver_a-syscall_getcflags.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getcflags.o `test -f 'lib/syscall_getcflags.c' || echo '$(srcdir)/'`lib/syscall_getcflags.c
-
-lib/lib_libvserver_a-syscall_getcflags.obj: lib/syscall_getcflags.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getcflags.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getcflags.Tpo -c -o lib/lib_libvserver_a-syscall_getcflags.obj `if test -f 'lib/syscall_getcflags.c'; then $(CYGPATH_W) 'lib/syscall_getcflags.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getcflags.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getcflags.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getcflags.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getcflags.c' object='lib/lib_libvserver_a-syscall_getcflags.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getcflags.obj `if test -f 'lib/syscall_getcflags.c'; then $(CYGPATH_W) 'lib/syscall_getcflags.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getcflags.c'; fi`
-
-lib/lib_libvserver_a-syscall_getiattr.o: lib/syscall_getiattr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getiattr.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getiattr.Tpo -c -o lib/lib_libvserver_a-syscall_getiattr.o `test -f 'lib/syscall_getiattr.c' || echo '$(srcdir)/'`lib/syscall_getiattr.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getiattr.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getiattr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getiattr.c' object='lib/lib_libvserver_a-syscall_getiattr.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getiattr.o `test -f 'lib/syscall_getiattr.c' || echo '$(srcdir)/'`lib/syscall_getiattr.c
-
-lib/lib_libvserver_a-syscall_getiattr.obj: lib/syscall_getiattr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getiattr.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getiattr.Tpo -c -o lib/lib_libvserver_a-syscall_getiattr.obj `if test -f 'lib/syscall_getiattr.c'; then $(CYGPATH_W) 'lib/syscall_getiattr.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getiattr.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getiattr.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getiattr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getiattr.c' object='lib/lib_libvserver_a-syscall_getiattr.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getiattr.obj `if test -f 'lib/syscall_getiattr.c'; then $(CYGPATH_W) 'lib/syscall_getiattr.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getiattr.c'; fi`
-
-lib/lib_libvserver_a-syscall_getncaps.o: lib/syscall_getncaps.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getncaps.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getncaps.Tpo -c -o lib/lib_libvserver_a-syscall_getncaps.o `test -f 'lib/syscall_getncaps.c' || echo '$(srcdir)/'`lib/syscall_getncaps.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getncaps.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getncaps.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getncaps.c' object='lib/lib_libvserver_a-syscall_getncaps.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getncaps.o `test -f 'lib/syscall_getncaps.c' || echo '$(srcdir)/'`lib/syscall_getncaps.c
-
-lib/lib_libvserver_a-syscall_getncaps.obj: lib/syscall_getncaps.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getncaps.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getncaps.Tpo -c -o lib/lib_libvserver_a-syscall_getncaps.obj `if test -f 'lib/syscall_getncaps.c'; then $(CYGPATH_W) 'lib/syscall_getncaps.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getncaps.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getncaps.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getncaps.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getncaps.c' object='lib/lib_libvserver_a-syscall_getncaps.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getncaps.obj `if test -f 'lib/syscall_getncaps.c'; then $(CYGPATH_W) 'lib/syscall_getncaps.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getncaps.c'; fi`
-
-lib/lib_libvserver_a-syscall_getnflags.o: lib/syscall_getnflags.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getnflags.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getnflags.Tpo -c -o lib/lib_libvserver_a-syscall_getnflags.o `test -f 'lib/syscall_getnflags.c' || echo '$(srcdir)/'`lib/syscall_getnflags.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getnflags.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getnflags.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getnflags.c' object='lib/lib_libvserver_a-syscall_getnflags.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getnflags.o `test -f 'lib/syscall_getnflags.c' || echo '$(srcdir)/'`lib/syscall_getnflags.c
-
-lib/lib_libvserver_a-syscall_getnflags.obj: lib/syscall_getnflags.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getnflags.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getnflags.Tpo -c -o lib/lib_libvserver_a-syscall_getnflags.obj `if test -f 'lib/syscall_getnflags.c'; then $(CYGPATH_W) 'lib/syscall_getnflags.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getnflags.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getnflags.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getnflags.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getnflags.c' object='lib/lib_libvserver_a-syscall_getnflags.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getnflags.obj `if test -f 'lib/syscall_getnflags.c'; then $(CYGPATH_W) 'lib/syscall_getnflags.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getnflags.c'; fi`
-
-lib/lib_libvserver_a-syscall_getnxinfo.o: lib/syscall_getnxinfo.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getnxinfo.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getnxinfo.Tpo -c -o lib/lib_libvserver_a-syscall_getnxinfo.o `test -f 'lib/syscall_getnxinfo.c' || echo '$(srcdir)/'`lib/syscall_getnxinfo.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getnxinfo.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getnxinfo.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getnxinfo.c' object='lib/lib_libvserver_a-syscall_getnxinfo.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getnxinfo.o `test -f 'lib/syscall_getnxinfo.c' || echo '$(srcdir)/'`lib/syscall_getnxinfo.c
-
-lib/lib_libvserver_a-syscall_getnxinfo.obj: lib/syscall_getnxinfo.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getnxinfo.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getnxinfo.Tpo -c -o lib/lib_libvserver_a-syscall_getnxinfo.obj `if test -f 'lib/syscall_getnxinfo.c'; then $(CYGPATH_W) 'lib/syscall_getnxinfo.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getnxinfo.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getnxinfo.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getnxinfo.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getnxinfo.c' object='lib/lib_libvserver_a-syscall_getnxinfo.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getnxinfo.obj `if test -f 'lib/syscall_getnxinfo.c'; then $(CYGPATH_W) 'lib/syscall_getnxinfo.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getnxinfo.c'; fi`
-
-lib/lib_libvserver_a-syscall_gettasknid.o: lib/syscall_gettasknid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_gettasknid.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_gettasknid.Tpo -c -o lib/lib_libvserver_a-syscall_gettasknid.o `test -f 'lib/syscall_gettasknid.c' || echo '$(srcdir)/'`lib/syscall_gettasknid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_gettasknid.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_gettasknid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_gettasknid.c' object='lib/lib_libvserver_a-syscall_gettasknid.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_gettasknid.o `test -f 'lib/syscall_gettasknid.c' || echo '$(srcdir)/'`lib/syscall_gettasknid.c
-
-lib/lib_libvserver_a-syscall_gettasknid.obj: lib/syscall_gettasknid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_gettasknid.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_gettasknid.Tpo -c -o lib/lib_libvserver_a-syscall_gettasknid.obj `if test -f 'lib/syscall_gettasknid.c'; then $(CYGPATH_W) 'lib/syscall_gettasknid.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_gettasknid.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_gettasknid.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_gettasknid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_gettasknid.c' object='lib/lib_libvserver_a-syscall_gettasknid.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_gettasknid.obj `if test -f 'lib/syscall_gettasknid.c'; then $(CYGPATH_W) 'lib/syscall_gettasknid.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_gettasknid.c'; fi`
-
-lib/lib_libvserver_a-syscall_gettaskxid.o: lib/syscall_gettaskxid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_gettaskxid.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_gettaskxid.Tpo -c -o lib/lib_libvserver_a-syscall_gettaskxid.o `test -f 'lib/syscall_gettaskxid.c' || echo '$(srcdir)/'`lib/syscall_gettaskxid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_gettaskxid.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_gettaskxid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_gettaskxid.c' object='lib/lib_libvserver_a-syscall_gettaskxid.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_gettaskxid.o `test -f 'lib/syscall_gettaskxid.c' || echo '$(srcdir)/'`lib/syscall_gettaskxid.c
-
-lib/lib_libvserver_a-syscall_gettaskxid.obj: lib/syscall_gettaskxid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_gettaskxid.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_gettaskxid.Tpo -c -o lib/lib_libvserver_a-syscall_gettaskxid.obj `if test -f 'lib/syscall_gettaskxid.c'; then $(CYGPATH_W) 'lib/syscall_gettaskxid.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_gettaskxid.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_gettaskxid.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_gettaskxid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_gettaskxid.c' object='lib/lib_libvserver_a-syscall_gettaskxid.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_gettaskxid.obj `if test -f 'lib/syscall_gettaskxid.c'; then $(CYGPATH_W) 'lib/syscall_gettaskxid.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_gettaskxid.c'; fi`
-
-lib/lib_libvserver_a-syscall_getvhiname.o: lib/syscall_getvhiname.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getvhiname.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getvhiname.Tpo -c -o lib/lib_libvserver_a-syscall_getvhiname.o `test -f 'lib/syscall_getvhiname.c' || echo '$(srcdir)/'`lib/syscall_getvhiname.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getvhiname.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getvhiname.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getvhiname.c' object='lib/lib_libvserver_a-syscall_getvhiname.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getvhiname.o `test -f 'lib/syscall_getvhiname.c' || echo '$(srcdir)/'`lib/syscall_getvhiname.c
-
-lib/lib_libvserver_a-syscall_getvhiname.obj: lib/syscall_getvhiname.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getvhiname.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getvhiname.Tpo -c -o lib/lib_libvserver_a-syscall_getvhiname.obj `if test -f 'lib/syscall_getvhiname.c'; then $(CYGPATH_W) 'lib/syscall_getvhiname.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getvhiname.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getvhiname.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getvhiname.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getvhiname.c' object='lib/lib_libvserver_a-syscall_getvhiname.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getvhiname.obj `if test -f 'lib/syscall_getvhiname.c'; then $(CYGPATH_W) 'lib/syscall_getvhiname.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getvhiname.c'; fi`
-
-lib/lib_libvserver_a-syscall_getvxinfo.o: lib/syscall_getvxinfo.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getvxinfo.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getvxinfo.Tpo -c -o lib/lib_libvserver_a-syscall_getvxinfo.o `test -f 'lib/syscall_getvxinfo.c' || echo '$(srcdir)/'`lib/syscall_getvxinfo.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getvxinfo.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getvxinfo.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getvxinfo.c' object='lib/lib_libvserver_a-syscall_getvxinfo.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getvxinfo.o `test -f 'lib/syscall_getvxinfo.c' || echo '$(srcdir)/'`lib/syscall_getvxinfo.c
-
-lib/lib_libvserver_a-syscall_getvxinfo.obj: lib/syscall_getvxinfo.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getvxinfo.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getvxinfo.Tpo -c -o lib/lib_libvserver_a-syscall_getvxinfo.obj `if test -f 'lib/syscall_getvxinfo.c'; then $(CYGPATH_W) 'lib/syscall_getvxinfo.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getvxinfo.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getvxinfo.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getvxinfo.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getvxinfo.c' object='lib/lib_libvserver_a-syscall_getvxinfo.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getvxinfo.obj `if test -f 'lib/syscall_getvxinfo.c'; then $(CYGPATH_W) 'lib/syscall_getvxinfo.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getvxinfo.c'; fi`
-
-lib/lib_libvserver_a-syscall_netadd.o: lib/syscall_netadd.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_netadd.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_netadd.Tpo -c -o lib/lib_libvserver_a-syscall_netadd.o `test -f 'lib/syscall_netadd.c' || echo '$(srcdir)/'`lib/syscall_netadd.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_netadd.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_netadd.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netadd.c' object='lib/lib_libvserver_a-syscall_netadd.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_netadd.o `test -f 'lib/syscall_netadd.c' || echo '$(srcdir)/'`lib/syscall_netadd.c
-
-lib/lib_libvserver_a-syscall_netadd.obj: lib/syscall_netadd.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_netadd.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_netadd.Tpo -c -o lib/lib_libvserver_a-syscall_netadd.obj `if test -f 'lib/syscall_netadd.c'; then $(CYGPATH_W) 'lib/syscall_netadd.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_netadd.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_netadd.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_netadd.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netadd.c' object='lib/lib_libvserver_a-syscall_netadd.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_netadd.obj `if test -f 'lib/syscall_netadd.c'; then $(CYGPATH_W) 'lib/syscall_netadd.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_netadd.c'; fi`
-
-lib/lib_libvserver_a-syscall_netcreate.o: lib/syscall_netcreate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_netcreate.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_netcreate.Tpo -c -o lib/lib_libvserver_a-syscall_netcreate.o `test -f 'lib/syscall_netcreate.c' || echo '$(srcdir)/'`lib/syscall_netcreate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_netcreate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_netcreate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netcreate.c' object='lib/lib_libvserver_a-syscall_netcreate.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_netcreate.o `test -f 'lib/syscall_netcreate.c' || echo '$(srcdir)/'`lib/syscall_netcreate.c
-
-lib/lib_libvserver_a-syscall_netcreate.obj: lib/syscall_netcreate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_netcreate.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_netcreate.Tpo -c -o lib/lib_libvserver_a-syscall_netcreate.obj `if test -f 'lib/syscall_netcreate.c'; then $(CYGPATH_W) 'lib/syscall_netcreate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_netcreate.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_netcreate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_netcreate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netcreate.c' object='lib/lib_libvserver_a-syscall_netcreate.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_netcreate.obj `if test -f 'lib/syscall_netcreate.c'; then $(CYGPATH_W) 'lib/syscall_netcreate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_netcreate.c'; fi`
-
-lib/lib_libvserver_a-syscall_netmigrate.o: lib/syscall_netmigrate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_netmigrate.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_netmigrate.Tpo -c -o lib/lib_libvserver_a-syscall_netmigrate.o `test -f 'lib/syscall_netmigrate.c' || echo '$(srcdir)/'`lib/syscall_netmigrate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_netmigrate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_netmigrate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netmigrate.c' object='lib/lib_libvserver_a-syscall_netmigrate.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_netmigrate.o `test -f 'lib/syscall_netmigrate.c' || echo '$(srcdir)/'`lib/syscall_netmigrate.c
-
-lib/lib_libvserver_a-syscall_netmigrate.obj: lib/syscall_netmigrate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_netmigrate.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_netmigrate.Tpo -c -o lib/lib_libvserver_a-syscall_netmigrate.obj `if test -f 'lib/syscall_netmigrate.c'; then $(CYGPATH_W) 'lib/syscall_netmigrate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_netmigrate.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_netmigrate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_netmigrate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netmigrate.c' object='lib/lib_libvserver_a-syscall_netmigrate.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_netmigrate.obj `if test -f 'lib/syscall_netmigrate.c'; then $(CYGPATH_W) 'lib/syscall_netmigrate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_netmigrate.c'; fi`
-
-lib/lib_libvserver_a-syscall_netremove.o: lib/syscall_netremove.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_netremove.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_netremove.Tpo -c -o lib/lib_libvserver_a-syscall_netremove.o `test -f 'lib/syscall_netremove.c' || echo '$(srcdir)/'`lib/syscall_netremove.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_netremove.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_netremove.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netremove.c' object='lib/lib_libvserver_a-syscall_netremove.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_netremove.o `test -f 'lib/syscall_netremove.c' || echo '$(srcdir)/'`lib/syscall_netremove.c
-
-lib/lib_libvserver_a-syscall_netremove.obj: lib/syscall_netremove.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_netremove.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_netremove.Tpo -c -o lib/lib_libvserver_a-syscall_netremove.obj `if test -f 'lib/syscall_netremove.c'; then $(CYGPATH_W) 'lib/syscall_netremove.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_netremove.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_netremove.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_netremove.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netremove.c' object='lib/lib_libvserver_a-syscall_netremove.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_netremove.obj `if test -f 'lib/syscall_netremove.c'; then $(CYGPATH_W) 'lib/syscall_netremove.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_netremove.c'; fi`
-
-lib/lib_libvserver_a-syscall_setccaps.o: lib/syscall_setccaps.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setccaps.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setccaps.Tpo -c -o lib/lib_libvserver_a-syscall_setccaps.o `test -f 'lib/syscall_setccaps.c' || echo '$(srcdir)/'`lib/syscall_setccaps.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setccaps.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setccaps.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setccaps.c' object='lib/lib_libvserver_a-syscall_setccaps.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setccaps.o `test -f 'lib/syscall_setccaps.c' || echo '$(srcdir)/'`lib/syscall_setccaps.c
-
-lib/lib_libvserver_a-syscall_setccaps.obj: lib/syscall_setccaps.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setccaps.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setccaps.Tpo -c -o lib/lib_libvserver_a-syscall_setccaps.obj `if test -f 'lib/syscall_setccaps.c'; then $(CYGPATH_W) 'lib/syscall_setccaps.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setccaps.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setccaps.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setccaps.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setccaps.c' object='lib/lib_libvserver_a-syscall_setccaps.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setccaps.obj `if test -f 'lib/syscall_setccaps.c'; then $(CYGPATH_W) 'lib/syscall_setccaps.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setccaps.c'; fi`
-
-lib/lib_libvserver_a-syscall_setcflags.o: lib/syscall_setcflags.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setcflags.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setcflags.Tpo -c -o lib/lib_libvserver_a-syscall_setcflags.o `test -f 'lib/syscall_setcflags.c' || echo '$(srcdir)/'`lib/syscall_setcflags.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setcflags.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setcflags.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setcflags.c' object='lib/lib_libvserver_a-syscall_setcflags.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setcflags.o `test -f 'lib/syscall_setcflags.c' || echo '$(srcdir)/'`lib/syscall_setcflags.c
-
-lib/lib_libvserver_a-syscall_setcflags.obj: lib/syscall_setcflags.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setcflags.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setcflags.Tpo -c -o lib/lib_libvserver_a-syscall_setcflags.obj `if test -f 'lib/syscall_setcflags.c'; then $(CYGPATH_W) 'lib/syscall_setcflags.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setcflags.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setcflags.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setcflags.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setcflags.c' object='lib/lib_libvserver_a-syscall_setcflags.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setcflags.obj `if test -f 'lib/syscall_setcflags.c'; then $(CYGPATH_W) 'lib/syscall_setcflags.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setcflags.c'; fi`
-
-lib/lib_libvserver_a-syscall_setiattr.o: lib/syscall_setiattr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setiattr.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setiattr.Tpo -c -o lib/lib_libvserver_a-syscall_setiattr.o `test -f 'lib/syscall_setiattr.c' || echo '$(srcdir)/'`lib/syscall_setiattr.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setiattr.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setiattr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setiattr.c' object='lib/lib_libvserver_a-syscall_setiattr.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setiattr.o `test -f 'lib/syscall_setiattr.c' || echo '$(srcdir)/'`lib/syscall_setiattr.c
-
-lib/lib_libvserver_a-syscall_setiattr.obj: lib/syscall_setiattr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setiattr.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setiattr.Tpo -c -o lib/lib_libvserver_a-syscall_setiattr.obj `if test -f 'lib/syscall_setiattr.c'; then $(CYGPATH_W) 'lib/syscall_setiattr.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setiattr.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setiattr.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setiattr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setiattr.c' object='lib/lib_libvserver_a-syscall_setiattr.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setiattr.obj `if test -f 'lib/syscall_setiattr.c'; then $(CYGPATH_W) 'lib/syscall_setiattr.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setiattr.c'; fi`
-
-lib/lib_libvserver_a-syscall_setnamespace.o: lib/syscall_setnamespace.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setnamespace.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setnamespace.Tpo -c -o lib/lib_libvserver_a-syscall_setnamespace.o `test -f 'lib/syscall_setnamespace.c' || echo '$(srcdir)/'`lib/syscall_setnamespace.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setnamespace.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setnamespace.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setnamespace.c' object='lib/lib_libvserver_a-syscall_setnamespace.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setnamespace.o `test -f 'lib/syscall_setnamespace.c' || echo '$(srcdir)/'`lib/syscall_setnamespace.c
-
-lib/lib_libvserver_a-syscall_setnamespace.obj: lib/syscall_setnamespace.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setnamespace.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setnamespace.Tpo -c -o lib/lib_libvserver_a-syscall_setnamespace.obj `if test -f 'lib/syscall_setnamespace.c'; then $(CYGPATH_W) 'lib/syscall_setnamespace.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setnamespace.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setnamespace.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setnamespace.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setnamespace.c' object='lib/lib_libvserver_a-syscall_setnamespace.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setnamespace.obj `if test -f 'lib/syscall_setnamespace.c'; then $(CYGPATH_W) 'lib/syscall_setnamespace.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setnamespace.c'; fi`
-
-lib/lib_libvserver_a-syscall_setncaps.o: lib/syscall_setncaps.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setncaps.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setncaps.Tpo -c -o lib/lib_libvserver_a-syscall_setncaps.o `test -f 'lib/syscall_setncaps.c' || echo '$(srcdir)/'`lib/syscall_setncaps.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setncaps.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setncaps.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setncaps.c' object='lib/lib_libvserver_a-syscall_setncaps.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setncaps.o `test -f 'lib/syscall_setncaps.c' || echo '$(srcdir)/'`lib/syscall_setncaps.c
-
-lib/lib_libvserver_a-syscall_setncaps.obj: lib/syscall_setncaps.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setncaps.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setncaps.Tpo -c -o lib/lib_libvserver_a-syscall_setncaps.obj `if test -f 'lib/syscall_setncaps.c'; then $(CYGPATH_W) 'lib/syscall_setncaps.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setncaps.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setncaps.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setncaps.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setncaps.c' object='lib/lib_libvserver_a-syscall_setncaps.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setncaps.obj `if test -f 'lib/syscall_setncaps.c'; then $(CYGPATH_W) 'lib/syscall_setncaps.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setncaps.c'; fi`
-
-lib/lib_libvserver_a-syscall_setnflags.o: lib/syscall_setnflags.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setnflags.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setnflags.Tpo -c -o lib/lib_libvserver_a-syscall_setnflags.o `test -f 'lib/syscall_setnflags.c' || echo '$(srcdir)/'`lib/syscall_setnflags.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setnflags.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setnflags.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setnflags.c' object='lib/lib_libvserver_a-syscall_setnflags.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setnflags.o `test -f 'lib/syscall_setnflags.c' || echo '$(srcdir)/'`lib/syscall_setnflags.c
-
-lib/lib_libvserver_a-syscall_setnflags.obj: lib/syscall_setnflags.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setnflags.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setnflags.Tpo -c -o lib/lib_libvserver_a-syscall_setnflags.obj `if test -f 'lib/syscall_setnflags.c'; then $(CYGPATH_W) 'lib/syscall_setnflags.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setnflags.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setnflags.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setnflags.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setnflags.c' object='lib/lib_libvserver_a-syscall_setnflags.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setnflags.obj `if test -f 'lib/syscall_setnflags.c'; then $(CYGPATH_W) 'lib/syscall_setnflags.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setnflags.c'; fi`
-
-lib/lib_libvserver_a-syscall_setsched.o: lib/syscall_setsched.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setsched.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setsched.Tpo -c -o lib/lib_libvserver_a-syscall_setsched.o `test -f 'lib/syscall_setsched.c' || echo '$(srcdir)/'`lib/syscall_setsched.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setsched.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setsched.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setsched.c' object='lib/lib_libvserver_a-syscall_setsched.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setsched.o `test -f 'lib/syscall_setsched.c' || echo '$(srcdir)/'`lib/syscall_setsched.c
-
-lib/lib_libvserver_a-syscall_setsched.obj: lib/syscall_setsched.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setsched.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setsched.Tpo -c -o lib/lib_libvserver_a-syscall_setsched.obj `if test -f 'lib/syscall_setsched.c'; then $(CYGPATH_W) 'lib/syscall_setsched.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setsched.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setsched.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setsched.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setsched.c' object='lib/lib_libvserver_a-syscall_setsched.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setsched.obj `if test -f 'lib/syscall_setsched.c'; then $(CYGPATH_W) 'lib/syscall_setsched.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setsched.c'; fi`
-
-lib/lib_libvserver_a-syscall_setvhiname.o: lib/syscall_setvhiname.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setvhiname.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setvhiname.Tpo -c -o lib/lib_libvserver_a-syscall_setvhiname.o `test -f 'lib/syscall_setvhiname.c' || echo '$(srcdir)/'`lib/syscall_setvhiname.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setvhiname.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setvhiname.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setvhiname.c' object='lib/lib_libvserver_a-syscall_setvhiname.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setvhiname.o `test -f 'lib/syscall_setvhiname.c' || echo '$(srcdir)/'`lib/syscall_setvhiname.c
-
-lib/lib_libvserver_a-syscall_setvhiname.obj: lib/syscall_setvhiname.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setvhiname.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setvhiname.Tpo -c -o lib/lib_libvserver_a-syscall_setvhiname.obj `if test -f 'lib/syscall_setvhiname.c'; then $(CYGPATH_W) 'lib/syscall_setvhiname.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setvhiname.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setvhiname.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setvhiname.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setvhiname.c' object='lib/lib_libvserver_a-syscall_setvhiname.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setvhiname.obj `if test -f 'lib/syscall_setvhiname.c'; then $(CYGPATH_W) 'lib/syscall_setvhiname.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setvhiname.c'; fi`
-
-lib/lib_libvserver_a-syscall_waitexit.o: lib/syscall_waitexit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_waitexit.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_waitexit.Tpo -c -o lib/lib_libvserver_a-syscall_waitexit.o `test -f 'lib/syscall_waitexit.c' || echo '$(srcdir)/'`lib/syscall_waitexit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_waitexit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_waitexit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_waitexit.c' object='lib/lib_libvserver_a-syscall_waitexit.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_waitexit.o `test -f 'lib/syscall_waitexit.c' || echo '$(srcdir)/'`lib/syscall_waitexit.c
-
-lib/lib_libvserver_a-syscall_waitexit.obj: lib/syscall_waitexit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_waitexit.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_waitexit.Tpo -c -o lib/lib_libvserver_a-syscall_waitexit.obj `if test -f 'lib/syscall_waitexit.c'; then $(CYGPATH_W) 'lib/syscall_waitexit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_waitexit.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_waitexit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_waitexit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_waitexit.c' object='lib/lib_libvserver_a-syscall_waitexit.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_waitexit.obj `if test -f 'lib/syscall_waitexit.c'; then $(CYGPATH_W) 'lib/syscall_waitexit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_waitexit.c'; fi`
-
-lib/lib_libvserver_a-bcaps-v13.o: lib/bcaps-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-bcaps-v13.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-bcaps-v13.Tpo -c -o lib/lib_libvserver_a-bcaps-v13.o `test -f 'lib/bcaps-v13.c' || echo '$(srcdir)/'`lib/bcaps-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-bcaps-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-bcaps-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/bcaps-v13.c' object='lib/lib_libvserver_a-bcaps-v13.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-bcaps-v13.o `test -f 'lib/bcaps-v13.c' || echo '$(srcdir)/'`lib/bcaps-v13.c
-
-lib/lib_libvserver_a-bcaps-v13.obj: lib/bcaps-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-bcaps-v13.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-bcaps-v13.Tpo -c -o lib/lib_libvserver_a-bcaps-v13.obj `if test -f 'lib/bcaps-v13.c'; then $(CYGPATH_W) 'lib/bcaps-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/bcaps-v13.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-bcaps-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-bcaps-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/bcaps-v13.c' object='lib/lib_libvserver_a-bcaps-v13.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-bcaps-v13.obj `if test -f 'lib/bcaps-v13.c'; then $(CYGPATH_W) 'lib/bcaps-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/bcaps-v13.c'; fi`
-
-lib/lib_libvserver_a-bcaps_list-v13.o: lib/bcaps_list-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-bcaps_list-v13.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-bcaps_list-v13.Tpo -c -o lib/lib_libvserver_a-bcaps_list-v13.o `test -f 'lib/bcaps_list-v13.c' || echo '$(srcdir)/'`lib/bcaps_list-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-bcaps_list-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-bcaps_list-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/bcaps_list-v13.c' object='lib/lib_libvserver_a-bcaps_list-v13.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-bcaps_list-v13.o `test -f 'lib/bcaps_list-v13.c' || echo '$(srcdir)/'`lib/bcaps_list-v13.c
-
-lib/lib_libvserver_a-bcaps_list-v13.obj: lib/bcaps_list-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-bcaps_list-v13.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-bcaps_list-v13.Tpo -c -o lib/lib_libvserver_a-bcaps_list-v13.obj `if test -f 'lib/bcaps_list-v13.c'; then $(CYGPATH_W) 'lib/bcaps_list-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/bcaps_list-v13.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-bcaps_list-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-bcaps_list-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/bcaps_list-v13.c' object='lib/lib_libvserver_a-bcaps_list-v13.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-bcaps_list-v13.obj `if test -f 'lib/bcaps_list-v13.c'; then $(CYGPATH_W) 'lib/bcaps_list-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/bcaps_list-v13.c'; fi`
-
-lib/lib_libvserver_a-ccaps-v13.o: lib/ccaps-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-ccaps-v13.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-ccaps-v13.Tpo -c -o lib/lib_libvserver_a-ccaps-v13.o `test -f 'lib/ccaps-v13.c' || echo '$(srcdir)/'`lib/ccaps-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-ccaps-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-ccaps-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ccaps-v13.c' object='lib/lib_libvserver_a-ccaps-v13.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-ccaps-v13.o `test -f 'lib/ccaps-v13.c' || echo '$(srcdir)/'`lib/ccaps-v13.c
-
-lib/lib_libvserver_a-ccaps-v13.obj: lib/ccaps-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-ccaps-v13.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-ccaps-v13.Tpo -c -o lib/lib_libvserver_a-ccaps-v13.obj `if test -f 'lib/ccaps-v13.c'; then $(CYGPATH_W) 'lib/ccaps-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/ccaps-v13.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-ccaps-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-ccaps-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ccaps-v13.c' object='lib/lib_libvserver_a-ccaps-v13.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-ccaps-v13.obj `if test -f 'lib/ccaps-v13.c'; then $(CYGPATH_W) 'lib/ccaps-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/ccaps-v13.c'; fi`
-
-lib/lib_libvserver_a-ccaps_list-v13.o: lib/ccaps_list-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-ccaps_list-v13.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-ccaps_list-v13.Tpo -c -o lib/lib_libvserver_a-ccaps_list-v13.o `test -f 'lib/ccaps_list-v13.c' || echo '$(srcdir)/'`lib/ccaps_list-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-ccaps_list-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-ccaps_list-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ccaps_list-v13.c' object='lib/lib_libvserver_a-ccaps_list-v13.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-ccaps_list-v13.o `test -f 'lib/ccaps_list-v13.c' || echo '$(srcdir)/'`lib/ccaps_list-v13.c
-
-lib/lib_libvserver_a-ccaps_list-v13.obj: lib/ccaps_list-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-ccaps_list-v13.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-ccaps_list-v13.Tpo -c -o lib/lib_libvserver_a-ccaps_list-v13.obj `if test -f 'lib/ccaps_list-v13.c'; then $(CYGPATH_W) 'lib/ccaps_list-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/ccaps_list-v13.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-ccaps_list-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-ccaps_list-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ccaps_list-v13.c' object='lib/lib_libvserver_a-ccaps_list-v13.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-ccaps_list-v13.obj `if test -f 'lib/ccaps_list-v13.c'; then $(CYGPATH_W) 'lib/ccaps_list-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/ccaps_list-v13.c'; fi`
-
-lib/lib_libvserver_a-cflags-v13.o: lib/cflags-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-cflags-v13.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-cflags-v13.Tpo -c -o lib/lib_libvserver_a-cflags-v13.o `test -f 'lib/cflags-v13.c' || echo '$(srcdir)/'`lib/cflags-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-cflags-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-cflags-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags-v13.c' object='lib/lib_libvserver_a-cflags-v13.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-cflags-v13.o `test -f 'lib/cflags-v13.c' || echo '$(srcdir)/'`lib/cflags-v13.c
-
-lib/lib_libvserver_a-cflags-v13.obj: lib/cflags-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-cflags-v13.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-cflags-v13.Tpo -c -o lib/lib_libvserver_a-cflags-v13.obj `if test -f 'lib/cflags-v13.c'; then $(CYGPATH_W) 'lib/cflags-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/cflags-v13.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-cflags-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-cflags-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags-v13.c' object='lib/lib_libvserver_a-cflags-v13.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-cflags-v13.obj `if test -f 'lib/cflags-v13.c'; then $(CYGPATH_W) 'lib/cflags-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/cflags-v13.c'; fi`
-
-lib/lib_libvserver_a-cflags_list-v13.o: lib/cflags_list-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-cflags_list-v13.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-cflags_list-v13.Tpo -c -o lib/lib_libvserver_a-cflags_list-v13.o `test -f 'lib/cflags_list-v13.c' || echo '$(srcdir)/'`lib/cflags_list-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-cflags_list-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-cflags_list-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags_list-v13.c' object='lib/lib_libvserver_a-cflags_list-v13.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-cflags_list-v13.o `test -f 'lib/cflags_list-v13.c' || echo '$(srcdir)/'`lib/cflags_list-v13.c
-
-lib/lib_libvserver_a-cflags_list-v13.obj: lib/cflags_list-v13.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-cflags_list-v13.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-cflags_list-v13.Tpo -c -o lib/lib_libvserver_a-cflags_list-v13.obj `if test -f 'lib/cflags_list-v13.c'; then $(CYGPATH_W) 'lib/cflags_list-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/cflags_list-v13.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-cflags_list-v13.Tpo lib/$(DEPDIR)/lib_libvserver_a-cflags_list-v13.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags_list-v13.c' object='lib/lib_libvserver_a-cflags_list-v13.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-cflags_list-v13.obj `if test -f 'lib/cflags_list-v13.c'; then $(CYGPATH_W) 'lib/cflags_list-v13.c'; else $(CYGPATH_W) '$(srcdir)/lib/cflags_list-v13.c'; fi`
-
-lib/lib_libvserver_a-ncaps-net.o: lib/ncaps-net.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-ncaps-net.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-ncaps-net.Tpo -c -o lib/lib_libvserver_a-ncaps-net.o `test -f 'lib/ncaps-net.c' || echo '$(srcdir)/'`lib/ncaps-net.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-ncaps-net.Tpo lib/$(DEPDIR)/lib_libvserver_a-ncaps-net.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ncaps-net.c' object='lib/lib_libvserver_a-ncaps-net.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-ncaps-net.o `test -f 'lib/ncaps-net.c' || echo '$(srcdir)/'`lib/ncaps-net.c
-
-lib/lib_libvserver_a-ncaps-net.obj: lib/ncaps-net.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-ncaps-net.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-ncaps-net.Tpo -c -o lib/lib_libvserver_a-ncaps-net.obj `if test -f 'lib/ncaps-net.c'; then $(CYGPATH_W) 'lib/ncaps-net.c'; else $(CYGPATH_W) '$(srcdir)/lib/ncaps-net.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-ncaps-net.Tpo lib/$(DEPDIR)/lib_libvserver_a-ncaps-net.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ncaps-net.c' object='lib/lib_libvserver_a-ncaps-net.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-ncaps-net.obj `if test -f 'lib/ncaps-net.c'; then $(CYGPATH_W) 'lib/ncaps-net.c'; else $(CYGPATH_W) '$(srcdir)/lib/ncaps-net.c'; fi`
-
-lib/lib_libvserver_a-ncaps_list-net.o: lib/ncaps_list-net.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-ncaps_list-net.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-ncaps_list-net.Tpo -c -o lib/lib_libvserver_a-ncaps_list-net.o `test -f 'lib/ncaps_list-net.c' || echo '$(srcdir)/'`lib/ncaps_list-net.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-ncaps_list-net.Tpo lib/$(DEPDIR)/lib_libvserver_a-ncaps_list-net.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ncaps_list-net.c' object='lib/lib_libvserver_a-ncaps_list-net.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-ncaps_list-net.o `test -f 'lib/ncaps_list-net.c' || echo '$(srcdir)/'`lib/ncaps_list-net.c
-
-lib/lib_libvserver_a-ncaps_list-net.obj: lib/ncaps_list-net.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-ncaps_list-net.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-ncaps_list-net.Tpo -c -o lib/lib_libvserver_a-ncaps_list-net.obj `if test -f 'lib/ncaps_list-net.c'; then $(CYGPATH_W) 'lib/ncaps_list-net.c'; else $(CYGPATH_W) '$(srcdir)/lib/ncaps_list-net.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-ncaps_list-net.Tpo lib/$(DEPDIR)/lib_libvserver_a-ncaps_list-net.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ncaps_list-net.c' object='lib/lib_libvserver_a-ncaps_list-net.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-ncaps_list-net.obj `if test -f 'lib/ncaps_list-net.c'; then $(CYGPATH_W) 'lib/ncaps_list-net.c'; else $(CYGPATH_W) '$(srcdir)/lib/ncaps_list-net.c'; fi`
-
-lib/lib_libvserver_a-nflags-net.o: lib/nflags-net.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-nflags-net.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-nflags-net.Tpo -c -o lib/lib_libvserver_a-nflags-net.o `test -f 'lib/nflags-net.c' || echo '$(srcdir)/'`lib/nflags-net.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-nflags-net.Tpo lib/$(DEPDIR)/lib_libvserver_a-nflags-net.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/nflags-net.c' object='lib/lib_libvserver_a-nflags-net.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-nflags-net.o `test -f 'lib/nflags-net.c' || echo '$(srcdir)/'`lib/nflags-net.c
-
-lib/lib_libvserver_a-nflags-net.obj: lib/nflags-net.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-nflags-net.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-nflags-net.Tpo -c -o lib/lib_libvserver_a-nflags-net.obj `if test -f 'lib/nflags-net.c'; then $(CYGPATH_W) 'lib/nflags-net.c'; else $(CYGPATH_W) '$(srcdir)/lib/nflags-net.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-nflags-net.Tpo lib/$(DEPDIR)/lib_libvserver_a-nflags-net.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/nflags-net.c' object='lib/lib_libvserver_a-nflags-net.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-nflags-net.obj `if test -f 'lib/nflags-net.c'; then $(CYGPATH_W) 'lib/nflags-net.c'; else $(CYGPATH_W) '$(srcdir)/lib/nflags-net.c'; fi`
-
-lib/lib_libvserver_a-nflags_list-net.o: lib/nflags_list-net.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-nflags_list-net.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-nflags_list-net.Tpo -c -o lib/lib_libvserver_a-nflags_list-net.o `test -f 'lib/nflags_list-net.c' || echo '$(srcdir)/'`lib/nflags_list-net.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-nflags_list-net.Tpo lib/$(DEPDIR)/lib_libvserver_a-nflags_list-net.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/nflags_list-net.c' object='lib/lib_libvserver_a-nflags_list-net.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-nflags_list-net.o `test -f 'lib/nflags_list-net.c' || echo '$(srcdir)/'`lib/nflags_list-net.c
-
-lib/lib_libvserver_a-nflags_list-net.obj: lib/nflags_list-net.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-nflags_list-net.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-nflags_list-net.Tpo -c -o lib/lib_libvserver_a-nflags_list-net.obj `if test -f 'lib/nflags_list-net.c'; then $(CYGPATH_W) 'lib/nflags_list-net.c'; else $(CYGPATH_W) '$(srcdir)/lib/nflags_list-net.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-nflags_list-net.Tpo lib/$(DEPDIR)/lib_libvserver_a-nflags_list-net.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/nflags_list-net.c' object='lib/lib_libvserver_a-nflags_list-net.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-nflags_list-net.obj `if test -f 'lib/nflags_list-net.c'; then $(CYGPATH_W) 'lib/nflags_list-net.c'; else $(CYGPATH_W) '$(srcdir)/lib/nflags_list-net.c'; fi`
-
-lib/lib_libvserver_a-syscall_adddlimit.o: lib/syscall_adddlimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_adddlimit.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_adddlimit.Tpo -c -o lib/lib_libvserver_a-syscall_adddlimit.o `test -f 'lib/syscall_adddlimit.c' || echo '$(srcdir)/'`lib/syscall_adddlimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_adddlimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_adddlimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_adddlimit.c' object='lib/lib_libvserver_a-syscall_adddlimit.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_adddlimit.o `test -f 'lib/syscall_adddlimit.c' || echo '$(srcdir)/'`lib/syscall_adddlimit.c
-
-lib/lib_libvserver_a-syscall_adddlimit.obj: lib/syscall_adddlimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_adddlimit.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_adddlimit.Tpo -c -o lib/lib_libvserver_a-syscall_adddlimit.obj `if test -f 'lib/syscall_adddlimit.c'; then $(CYGPATH_W) 'lib/syscall_adddlimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_adddlimit.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_adddlimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_adddlimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_adddlimit.c' object='lib/lib_libvserver_a-syscall_adddlimit.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_adddlimit.obj `if test -f 'lib/syscall_adddlimit.c'; then $(CYGPATH_W) 'lib/syscall_adddlimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_adddlimit.c'; fi`
-
-lib/lib_libvserver_a-syscall_getdlimit.o: lib/syscall_getdlimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getdlimit.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getdlimit.Tpo -c -o lib/lib_libvserver_a-syscall_getdlimit.o `test -f 'lib/syscall_getdlimit.c' || echo '$(srcdir)/'`lib/syscall_getdlimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getdlimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getdlimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getdlimit.c' object='lib/lib_libvserver_a-syscall_getdlimit.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getdlimit.o `test -f 'lib/syscall_getdlimit.c' || echo '$(srcdir)/'`lib/syscall_getdlimit.c
-
-lib/lib_libvserver_a-syscall_getdlimit.obj: lib/syscall_getdlimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getdlimit.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getdlimit.Tpo -c -o lib/lib_libvserver_a-syscall_getdlimit.obj `if test -f 'lib/syscall_getdlimit.c'; then $(CYGPATH_W) 'lib/syscall_getdlimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getdlimit.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getdlimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getdlimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getdlimit.c' object='lib/lib_libvserver_a-syscall_getdlimit.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getdlimit.obj `if test -f 'lib/syscall_getdlimit.c'; then $(CYGPATH_W) 'lib/syscall_getdlimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getdlimit.c'; fi`
-
-lib/lib_libvserver_a-syscall_remdlimit.o: lib/syscall_remdlimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_remdlimit.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_remdlimit.Tpo -c -o lib/lib_libvserver_a-syscall_remdlimit.o `test -f 'lib/syscall_remdlimit.c' || echo '$(srcdir)/'`lib/syscall_remdlimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_remdlimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_remdlimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_remdlimit.c' object='lib/lib_libvserver_a-syscall_remdlimit.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_remdlimit.o `test -f 'lib/syscall_remdlimit.c' || echo '$(srcdir)/'`lib/syscall_remdlimit.c
-
-lib/lib_libvserver_a-syscall_remdlimit.obj: lib/syscall_remdlimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_remdlimit.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_remdlimit.Tpo -c -o lib/lib_libvserver_a-syscall_remdlimit.obj `if test -f 'lib/syscall_remdlimit.c'; then $(CYGPATH_W) 'lib/syscall_remdlimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_remdlimit.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_remdlimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_remdlimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_remdlimit.c' object='lib/lib_libvserver_a-syscall_remdlimit.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_remdlimit.obj `if test -f 'lib/syscall_remdlimit.c'; then $(CYGPATH_W) 'lib/syscall_remdlimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_remdlimit.c'; fi`
-
-lib/lib_libvserver_a-syscall_setdlimit.o: lib/syscall_setdlimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setdlimit.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setdlimit.Tpo -c -o lib/lib_libvserver_a-syscall_setdlimit.o `test -f 'lib/syscall_setdlimit.c' || echo '$(srcdir)/'`lib/syscall_setdlimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setdlimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setdlimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setdlimit.c' object='lib/lib_libvserver_a-syscall_setdlimit.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setdlimit.o `test -f 'lib/syscall_setdlimit.c' || echo '$(srcdir)/'`lib/syscall_setdlimit.c
-
-lib/lib_libvserver_a-syscall_setdlimit.obj: lib/syscall_setdlimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setdlimit.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setdlimit.Tpo -c -o lib/lib_libvserver_a-syscall_setdlimit.obj `if test -f 'lib/syscall_setdlimit.c'; then $(CYGPATH_W) 'lib/syscall_setdlimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setdlimit.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setdlimit.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setdlimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setdlimit.c' object='lib/lib_libvserver_a-syscall_setdlimit.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setdlimit.obj `if test -f 'lib/syscall_setdlimit.c'; then $(CYGPATH_W) 'lib/syscall_setdlimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setdlimit.c'; fi`
-
-lib/lib_libvserver_a-syscall_rlimitstat.o: lib/syscall_rlimitstat.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_rlimitstat.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimitstat.Tpo -c -o lib/lib_libvserver_a-syscall_rlimitstat.o `test -f 'lib/syscall_rlimitstat.c' || echo '$(srcdir)/'`lib/syscall_rlimitstat.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimitstat.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimitstat.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_rlimitstat.c' object='lib/lib_libvserver_a-syscall_rlimitstat.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_rlimitstat.o `test -f 'lib/syscall_rlimitstat.c' || echo '$(srcdir)/'`lib/syscall_rlimitstat.c
-
-lib/lib_libvserver_a-syscall_rlimitstat.obj: lib/syscall_rlimitstat.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_rlimitstat.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimitstat.Tpo -c -o lib/lib_libvserver_a-syscall_rlimitstat.obj `if test -f 'lib/syscall_rlimitstat.c'; then $(CYGPATH_W) 'lib/syscall_rlimitstat.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_rlimitstat.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimitstat.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_rlimitstat.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_rlimitstat.c' object='lib/lib_libvserver_a-syscall_rlimitstat.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_rlimitstat.obj `if test -f 'lib/syscall_rlimitstat.c'; then $(CYGPATH_W) 'lib/syscall_rlimitstat.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_rlimitstat.c'; fi`
-
-lib/lib_libvserver_a-syscall_resetminmax.o: lib/syscall_resetminmax.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_resetminmax.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_resetminmax.Tpo -c -o lib/lib_libvserver_a-syscall_resetminmax.o `test -f 'lib/syscall_resetminmax.c' || echo '$(srcdir)/'`lib/syscall_resetminmax.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_resetminmax.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_resetminmax.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_resetminmax.c' object='lib/lib_libvserver_a-syscall_resetminmax.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_resetminmax.o `test -f 'lib/syscall_resetminmax.c' || echo '$(srcdir)/'`lib/syscall_resetminmax.c
-
-lib/lib_libvserver_a-syscall_resetminmax.obj: lib/syscall_resetminmax.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_resetminmax.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_resetminmax.Tpo -c -o lib/lib_libvserver_a-syscall_resetminmax.obj `if test -f 'lib/syscall_resetminmax.c'; then $(CYGPATH_W) 'lib/syscall_resetminmax.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_resetminmax.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_resetminmax.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_resetminmax.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_resetminmax.c' object='lib/lib_libvserver_a-syscall_resetminmax.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_resetminmax.obj `if test -f 'lib/syscall_resetminmax.c'; then $(CYGPATH_W) 'lib/syscall_resetminmax.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_resetminmax.c'; fi`
-
-lib/lib_libvserver_a-syscall_getvci.o: lib/syscall_getvci.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getvci.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getvci.Tpo -c -o lib/lib_libvserver_a-syscall_getvci.o `test -f 'lib/syscall_getvci.c' || echo '$(srcdir)/'`lib/syscall_getvci.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getvci.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getvci.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getvci.c' object='lib/lib_libvserver_a-syscall_getvci.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getvci.o `test -f 'lib/syscall_getvci.c' || echo '$(srcdir)/'`lib/syscall_getvci.c
-
-lib/lib_libvserver_a-syscall_getvci.obj: lib/syscall_getvci.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getvci.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getvci.Tpo -c -o lib/lib_libvserver_a-syscall_getvci.obj `if test -f 'lib/syscall_getvci.c'; then $(CYGPATH_W) 'lib/syscall_getvci.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getvci.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getvci.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getvci.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getvci.c' object='lib/lib_libvserver_a-syscall_getvci.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getvci.obj `if test -f 'lib/syscall_getvci.c'; then $(CYGPATH_W) 'lib/syscall_getvci.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getvci.c'; fi`
-
-lib/lib_libvserver_a-syscall_virtstat.o: lib/syscall_virtstat.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_virtstat.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_virtstat.Tpo -c -o lib/lib_libvserver_a-syscall_virtstat.o `test -f 'lib/syscall_virtstat.c' || echo '$(srcdir)/'`lib/syscall_virtstat.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_virtstat.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_virtstat.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_virtstat.c' object='lib/lib_libvserver_a-syscall_virtstat.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_virtstat.o `test -f 'lib/syscall_virtstat.c' || echo '$(srcdir)/'`lib/syscall_virtstat.c
-
-lib/lib_libvserver_a-syscall_virtstat.obj: lib/syscall_virtstat.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_virtstat.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_virtstat.Tpo -c -o lib/lib_libvserver_a-syscall_virtstat.obj `if test -f 'lib/syscall_virtstat.c'; then $(CYGPATH_W) 'lib/syscall_virtstat.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_virtstat.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_virtstat.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_virtstat.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_virtstat.c' object='lib/lib_libvserver_a-syscall_virtstat.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_virtstat.obj `if test -f 'lib/syscall_virtstat.c'; then $(CYGPATH_W) 'lib/syscall_virtstat.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_virtstat.c'; fi`
-
-lib/lib_libvserver_a-syscall_ctxstat.o: lib/syscall_ctxstat.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_ctxstat.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxstat.Tpo -c -o lib/lib_libvserver_a-syscall_ctxstat.o `test -f 'lib/syscall_ctxstat.c' || echo '$(srcdir)/'`lib/syscall_ctxstat.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxstat.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxstat.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_ctxstat.c' object='lib/lib_libvserver_a-syscall_ctxstat.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_ctxstat.o `test -f 'lib/syscall_ctxstat.c' || echo '$(srcdir)/'`lib/syscall_ctxstat.c
-
-lib/lib_libvserver_a-syscall_ctxstat.obj: lib/syscall_ctxstat.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_ctxstat.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxstat.Tpo -c -o lib/lib_libvserver_a-syscall_ctxstat.obj `if test -f 'lib/syscall_ctxstat.c'; then $(CYGPATH_W) 'lib/syscall_ctxstat.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_ctxstat.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxstat.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_ctxstat.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_ctxstat.c' object='lib/lib_libvserver_a-syscall_ctxstat.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_ctxstat.obj `if test -f 'lib/syscall_ctxstat.c'; then $(CYGPATH_W) 'lib/syscall_ctxstat.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_ctxstat.c'; fi`
-
-lib/lib_libvserver_a-syscall_getspacemask.o: lib/syscall_getspacemask.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getspacemask.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getspacemask.Tpo -c -o lib/lib_libvserver_a-syscall_getspacemask.o `test -f 'lib/syscall_getspacemask.c' || echo '$(srcdir)/'`lib/syscall_getspacemask.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getspacemask.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getspacemask.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getspacemask.c' object='lib/lib_libvserver_a-syscall_getspacemask.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getspacemask.o `test -f 'lib/syscall_getspacemask.c' || echo '$(srcdir)/'`lib/syscall_getspacemask.c
-
-lib/lib_libvserver_a-syscall_getspacemask.obj: lib/syscall_getspacemask.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getspacemask.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getspacemask.Tpo -c -o lib/lib_libvserver_a-syscall_getspacemask.obj `if test -f 'lib/syscall_getspacemask.c'; then $(CYGPATH_W) 'lib/syscall_getspacemask.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getspacemask.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getspacemask.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getspacemask.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getspacemask.c' object='lib/lib_libvserver_a-syscall_getspacemask.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getspacemask.obj `if test -f 'lib/syscall_getspacemask.c'; then $(CYGPATH_W) 'lib/syscall_getspacemask.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getspacemask.c'; fi`
-
-lib/lib_libvserver_a-syscall_setmapping.o: lib/syscall_setmapping.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setmapping.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setmapping.Tpo -c -o lib/lib_libvserver_a-syscall_setmapping.o `test -f 'lib/syscall_setmapping.c' || echo '$(srcdir)/'`lib/syscall_setmapping.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setmapping.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setmapping.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setmapping.c' object='lib/lib_libvserver_a-syscall_setmapping.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setmapping.o `test -f 'lib/syscall_setmapping.c' || echo '$(srcdir)/'`lib/syscall_setmapping.c
-
-lib/lib_libvserver_a-syscall_setmapping.obj: lib/syscall_setmapping.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_setmapping.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_setmapping.Tpo -c -o lib/lib_libvserver_a-syscall_setmapping.obj `if test -f 'lib/syscall_setmapping.c'; then $(CYGPATH_W) 'lib/syscall_setmapping.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setmapping.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_setmapping.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_setmapping.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setmapping.c' object='lib/lib_libvserver_a-syscall_setmapping.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_setmapping.obj `if test -f 'lib/syscall_setmapping.c'; then $(CYGPATH_W) 'lib/syscall_setmapping.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_setmapping.c'; fi`
-
-lib/lib_libvserver_a-syscall_schedinfo.o: lib/syscall_schedinfo.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_schedinfo.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_schedinfo.Tpo -c -o lib/lib_libvserver_a-syscall_schedinfo.o `test -f 'lib/syscall_schedinfo.c' || echo '$(srcdir)/'`lib/syscall_schedinfo.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_schedinfo.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_schedinfo.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_schedinfo.c' object='lib/lib_libvserver_a-syscall_schedinfo.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_schedinfo.o `test -f 'lib/syscall_schedinfo.c' || echo '$(srcdir)/'`lib/syscall_schedinfo.c
-
-lib/lib_libvserver_a-syscall_schedinfo.obj: lib/syscall_schedinfo.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_schedinfo.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_schedinfo.Tpo -c -o lib/lib_libvserver_a-syscall_schedinfo.obj `if test -f 'lib/syscall_schedinfo.c'; then $(CYGPATH_W) 'lib/syscall_schedinfo.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_schedinfo.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_schedinfo.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_schedinfo.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_schedinfo.c' object='lib/lib_libvserver_a-syscall_schedinfo.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_schedinfo.obj `if test -f 'lib/syscall_schedinfo.c'; then $(CYGPATH_W) 'lib/syscall_schedinfo.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_schedinfo.c'; fi`
-
-lib/lib_libvserver_a-syscall_getsched.o: lib/syscall_getsched.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getsched.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getsched.Tpo -c -o lib/lib_libvserver_a-syscall_getsched.o `test -f 'lib/syscall_getsched.c' || echo '$(srcdir)/'`lib/syscall_getsched.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getsched.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getsched.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getsched.c' object='lib/lib_libvserver_a-syscall_getsched.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getsched.o `test -f 'lib/syscall_getsched.c' || echo '$(srcdir)/'`lib/syscall_getsched.c
-
-lib/lib_libvserver_a-syscall_getsched.obj: lib/syscall_getsched.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_getsched.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_getsched.Tpo -c -o lib/lib_libvserver_a-syscall_getsched.obj `if test -f 'lib/syscall_getsched.c'; then $(CYGPATH_W) 'lib/syscall_getsched.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getsched.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_getsched.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_getsched.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getsched.c' object='lib/lib_libvserver_a-syscall_getsched.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_getsched.obj `if test -f 'lib/syscall_getsched.c'; then $(CYGPATH_W) 'lib/syscall_getsched.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_getsched.c'; fi`
-
-lib/lib_libvserver_a-syscall_fsetiattr.o: lib/syscall_fsetiattr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_fsetiattr.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_fsetiattr.Tpo -c -o lib/lib_libvserver_a-syscall_fsetiattr.o `test -f 'lib/syscall_fsetiattr.c' || echo '$(srcdir)/'`lib/syscall_fsetiattr.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_fsetiattr.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_fsetiattr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_fsetiattr.c' object='lib/lib_libvserver_a-syscall_fsetiattr.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_fsetiattr.o `test -f 'lib/syscall_fsetiattr.c' || echo '$(srcdir)/'`lib/syscall_fsetiattr.c
-
-lib/lib_libvserver_a-syscall_fsetiattr.obj: lib/syscall_fsetiattr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_fsetiattr.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_fsetiattr.Tpo -c -o lib/lib_libvserver_a-syscall_fsetiattr.obj `if test -f 'lib/syscall_fsetiattr.c'; then $(CYGPATH_W) 'lib/syscall_fsetiattr.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_fsetiattr.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_fsetiattr.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_fsetiattr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_fsetiattr.c' object='lib/lib_libvserver_a-syscall_fsetiattr.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_fsetiattr.obj `if test -f 'lib/syscall_fsetiattr.c'; then $(CYGPATH_W) 'lib/syscall_fsetiattr.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_fsetiattr.c'; fi`
-
-lib/lib_libvserver_a-syscall_fgetiattr.o: lib/syscall_fgetiattr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_fgetiattr.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_fgetiattr.Tpo -c -o lib/lib_libvserver_a-syscall_fgetiattr.o `test -f 'lib/syscall_fgetiattr.c' || echo '$(srcdir)/'`lib/syscall_fgetiattr.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_fgetiattr.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_fgetiattr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_fgetiattr.c' object='lib/lib_libvserver_a-syscall_fgetiattr.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_fgetiattr.o `test -f 'lib/syscall_fgetiattr.c' || echo '$(srcdir)/'`lib/syscall_fgetiattr.c
-
-lib/lib_libvserver_a-syscall_fgetiattr.obj: lib/syscall_fgetiattr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_fgetiattr.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_fgetiattr.Tpo -c -o lib/lib_libvserver_a-syscall_fgetiattr.obj `if test -f 'lib/syscall_fgetiattr.c'; then $(CYGPATH_W) 'lib/syscall_fgetiattr.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_fgetiattr.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_fgetiattr.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_fgetiattr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_fgetiattr.c' object='lib/lib_libvserver_a-syscall_fgetiattr.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_fgetiattr.obj `if test -f 'lib/syscall_fgetiattr.c'; then $(CYGPATH_W) 'lib/syscall_fgetiattr.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_fgetiattr.c'; fi`
-
-lib/lib_libvserver_a-syscall_tagmigrate.o: lib/syscall_tagmigrate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_tagmigrate.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_tagmigrate.Tpo -c -o lib/lib_libvserver_a-syscall_tagmigrate.o `test -f 'lib/syscall_tagmigrate.c' || echo '$(srcdir)/'`lib/syscall_tagmigrate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_tagmigrate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_tagmigrate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_tagmigrate.c' object='lib/lib_libvserver_a-syscall_tagmigrate.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_tagmigrate.o `test -f 'lib/syscall_tagmigrate.c' || echo '$(srcdir)/'`lib/syscall_tagmigrate.c
-
-lib/lib_libvserver_a-syscall_tagmigrate.obj: lib/syscall_tagmigrate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_tagmigrate.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_tagmigrate.Tpo -c -o lib/lib_libvserver_a-syscall_tagmigrate.obj `if test -f 'lib/syscall_tagmigrate.c'; then $(CYGPATH_W) 'lib/syscall_tagmigrate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_tagmigrate.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_tagmigrate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_tagmigrate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_tagmigrate.c' object='lib/lib_libvserver_a-syscall_tagmigrate.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_tagmigrate.obj `if test -f 'lib/syscall_tagmigrate.c'; then $(CYGPATH_W) 'lib/syscall_tagmigrate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_tagmigrate.c'; fi`
-
-lib/lib_libvserver_a-syscall_tagcreate.o: lib/syscall_tagcreate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_tagcreate.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_tagcreate.Tpo -c -o lib/lib_libvserver_a-syscall_tagcreate.o `test -f 'lib/syscall_tagcreate.c' || echo '$(srcdir)/'`lib/syscall_tagcreate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_tagcreate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_tagcreate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_tagcreate.c' object='lib/lib_libvserver_a-syscall_tagcreate.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_tagcreate.o `test -f 'lib/syscall_tagcreate.c' || echo '$(srcdir)/'`lib/syscall_tagcreate.c
-
-lib/lib_libvserver_a-syscall_tagcreate.obj: lib/syscall_tagcreate.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_tagcreate.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_tagcreate.Tpo -c -o lib/lib_libvserver_a-syscall_tagcreate.obj `if test -f 'lib/syscall_tagcreate.c'; then $(CYGPATH_W) 'lib/syscall_tagcreate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_tagcreate.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_tagcreate.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_tagcreate.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_tagcreate.c' object='lib/lib_libvserver_a-syscall_tagcreate.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_tagcreate.obj `if test -f 'lib/syscall_tagcreate.c'; then $(CYGPATH_W) 'lib/syscall_tagcreate.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_tagcreate.c'; fi`
-
-lib/lib_libvserver_a-syscall_tasktag.o: lib/syscall_tasktag.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_tasktag.o -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_tasktag.Tpo -c -o lib/lib_libvserver_a-syscall_tasktag.o `test -f 'lib/syscall_tasktag.c' || echo '$(srcdir)/'`lib/syscall_tasktag.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_tasktag.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_tasktag.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_tasktag.c' object='lib/lib_libvserver_a-syscall_tasktag.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_tasktag.o `test -f 'lib/syscall_tasktag.c' || echo '$(srcdir)/'`lib/syscall_tasktag.c
-
-lib/lib_libvserver_a-syscall_tasktag.obj: lib/syscall_tasktag.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_a-syscall_tasktag.obj -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_a-syscall_tasktag.Tpo -c -o lib/lib_libvserver_a-syscall_tasktag.obj `if test -f 'lib/syscall_tasktag.c'; then $(CYGPATH_W) 'lib/syscall_tasktag.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_tasktag.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_a-syscall_tasktag.Tpo lib/$(DEPDIR)/lib_libvserver_a-syscall_tasktag.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_tasktag.c' object='lib/lib_libvserver_a-syscall_tasktag.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_a-syscall_tasktag.obj `if test -f 'lib/syscall_tasktag.c'; then $(CYGPATH_W) 'lib/syscall_tasktag.c'; else $(CYGPATH_W) '$(srcdir)/lib/syscall_tasktag.c'; fi`
-
-ensc_fmt/lib_libvserver_a-fmt-32.o: ensc_fmt/fmt-32.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_a-fmt-32.o -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-32.Tpo -c -o ensc_fmt/lib_libvserver_a-fmt-32.o `test -f 'ensc_fmt/fmt-32.c' || echo '$(srcdir)/'`ensc_fmt/fmt-32.c
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-32.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-32.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmt-32.c' object='ensc_fmt/lib_libvserver_a-fmt-32.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_a-fmt-32.o `test -f 'ensc_fmt/fmt-32.c' || echo '$(srcdir)/'`ensc_fmt/fmt-32.c
-
-ensc_fmt/lib_libvserver_a-fmt-32.obj: ensc_fmt/fmt-32.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_a-fmt-32.obj -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-32.Tpo -c -o ensc_fmt/lib_libvserver_a-fmt-32.obj `if test -f 'ensc_fmt/fmt-32.c'; then $(CYGPATH_W) 'ensc_fmt/fmt-32.c'; else $(CYGPATH_W) '$(srcdir)/ensc_fmt/fmt-32.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-32.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-32.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmt-32.c' object='ensc_fmt/lib_libvserver_a-fmt-32.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_a-fmt-32.obj `if test -f 'ensc_fmt/fmt-32.c'; then $(CYGPATH_W) 'ensc_fmt/fmt-32.c'; else $(CYGPATH_W) '$(srcdir)/ensc_fmt/fmt-32.c'; fi`
-
-ensc_fmt/lib_libvserver_a-fmt-64.o: ensc_fmt/fmt-64.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_a-fmt-64.o -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-64.Tpo -c -o ensc_fmt/lib_libvserver_a-fmt-64.o `test -f 'ensc_fmt/fmt-64.c' || echo '$(srcdir)/'`ensc_fmt/fmt-64.c
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-64.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-64.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmt-64.c' object='ensc_fmt/lib_libvserver_a-fmt-64.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_a-fmt-64.o `test -f 'ensc_fmt/fmt-64.c' || echo '$(srcdir)/'`ensc_fmt/fmt-64.c
-
-ensc_fmt/lib_libvserver_a-fmt-64.obj: ensc_fmt/fmt-64.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_a-fmt-64.obj -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-64.Tpo -c -o ensc_fmt/lib_libvserver_a-fmt-64.obj `if test -f 'ensc_fmt/fmt-64.c'; then $(CYGPATH_W) 'ensc_fmt/fmt-64.c'; else $(CYGPATH_W) '$(srcdir)/ensc_fmt/fmt-64.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-64.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-64.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmt-64.c' object='ensc_fmt/lib_libvserver_a-fmt-64.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_a-fmt-64.obj `if test -f 'ensc_fmt/fmt-64.c'; then $(CYGPATH_W) 'ensc_fmt/fmt-64.c'; else $(CYGPATH_W) '$(srcdir)/ensc_fmt/fmt-64.c'; fi`
-
-ensc_fmt/lib_libvserver_a-fmtx-32.o: ensc_fmt/fmtx-32.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_a-fmtx-32.o -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-32.Tpo -c -o ensc_fmt/lib_libvserver_a-fmtx-32.o `test -f 'ensc_fmt/fmtx-32.c' || echo '$(srcdir)/'`ensc_fmt/fmtx-32.c
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-32.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-32.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmtx-32.c' object='ensc_fmt/lib_libvserver_a-fmtx-32.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_a-fmtx-32.o `test -f 'ensc_fmt/fmtx-32.c' || echo '$(srcdir)/'`ensc_fmt/fmtx-32.c
-
-ensc_fmt/lib_libvserver_a-fmtx-32.obj: ensc_fmt/fmtx-32.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_a-fmtx-32.obj -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-32.Tpo -c -o ensc_fmt/lib_libvserver_a-fmtx-32.obj `if test -f 'ensc_fmt/fmtx-32.c'; then $(CYGPATH_W) 'ensc_fmt/fmtx-32.c'; else $(CYGPATH_W) '$(srcdir)/ensc_fmt/fmtx-32.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-32.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-32.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmtx-32.c' object='ensc_fmt/lib_libvserver_a-fmtx-32.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_a-fmtx-32.obj `if test -f 'ensc_fmt/fmtx-32.c'; then $(CYGPATH_W) 'ensc_fmt/fmtx-32.c'; else $(CYGPATH_W) '$(srcdir)/ensc_fmt/fmtx-32.c'; fi`
-
-ensc_fmt/lib_libvserver_a-fmtx-64.o: ensc_fmt/fmtx-64.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_a-fmtx-64.o -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-64.Tpo -c -o ensc_fmt/lib_libvserver_a-fmtx-64.o `test -f 'ensc_fmt/fmtx-64.c' || echo '$(srcdir)/'`ensc_fmt/fmtx-64.c
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-64.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-64.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmtx-64.c' object='ensc_fmt/lib_libvserver_a-fmtx-64.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_a-fmtx-64.o `test -f 'ensc_fmt/fmtx-64.c' || echo '$(srcdir)/'`ensc_fmt/fmtx-64.c
-
-ensc_fmt/lib_libvserver_a-fmtx-64.obj: ensc_fmt/fmtx-64.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_a-fmtx-64.obj -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-64.Tpo -c -o ensc_fmt/lib_libvserver_a-fmtx-64.obj `if test -f 'ensc_fmt/fmtx-64.c'; then $(CYGPATH_W) 'ensc_fmt/fmtx-64.c'; else $(CYGPATH_W) '$(srcdir)/ensc_fmt/fmtx-64.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-64.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmtx-64.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmtx-64.c' object='ensc_fmt/lib_libvserver_a-fmtx-64.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_a-fmtx-64.obj `if test -f 'ensc_fmt/fmtx-64.c'; then $(CYGPATH_W) 'ensc_fmt/fmtx-64.c'; else $(CYGPATH_W) '$(srcdir)/ensc_fmt/fmtx-64.c'; fi`
-
-ensc_fmt/lib_libvserver_a-fmt-tai64n.o: ensc_fmt/fmt-tai64n.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_a-fmt-tai64n.o -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-tai64n.Tpo -c -o ensc_fmt/lib_libvserver_a-fmt-tai64n.o `test -f 'ensc_fmt/fmt-tai64n.c' || echo '$(srcdir)/'`ensc_fmt/fmt-tai64n.c
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-tai64n.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-tai64n.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmt-tai64n.c' object='ensc_fmt/lib_libvserver_a-fmt-tai64n.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_a-fmt-tai64n.o `test -f 'ensc_fmt/fmt-tai64n.c' || echo '$(srcdir)/'`ensc_fmt/fmt-tai64n.c
-
-ensc_fmt/lib_libvserver_a-fmt-tai64n.obj: ensc_fmt/fmt-tai64n.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_a-fmt-tai64n.obj -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-tai64n.Tpo -c -o ensc_fmt/lib_libvserver_a-fmt-tai64n.obj `if test -f 'ensc_fmt/fmt-tai64n.c'; then $(CYGPATH_W) 'ensc_fmt/fmt-tai64n.c'; else $(CYGPATH_W) '$(srcdir)/ensc_fmt/fmt-tai64n.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-tai64n.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_a-fmt-tai64n.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmt-tai64n.c' object='ensc_fmt/lib_libvserver_a-fmt-tai64n.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_a-fmt-tai64n.obj `if test -f 'ensc_fmt/fmt-tai64n.c'; then $(CYGPATH_W) 'ensc_fmt/fmt-tai64n.c'; else $(CYGPATH_W) '$(srcdir)/ensc_fmt/fmt-tai64n.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.o: lib_internal/errinfo-writeerrno.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-errinfo-writeerrno.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.o `test -f 'lib_internal/errinfo-writeerrno.c' || echo '$(srcdir)/'`lib_internal/errinfo-writeerrno.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-errinfo-writeerrno.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-errinfo-writeerrno.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/errinfo-writeerrno.c' object='lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.o `test -f 'lib_internal/errinfo-writeerrno.c' || echo '$(srcdir)/'`lib_internal/errinfo-writeerrno.c
-
-lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.obj: lib_internal/errinfo-writeerrno.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-errinfo-writeerrno.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.obj `if test -f 'lib_internal/errinfo-writeerrno.c'; then $(CYGPATH_W) 'lib_internal/errinfo-writeerrno.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/errinfo-writeerrno.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-errinfo-writeerrno.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-errinfo-writeerrno.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/errinfo-writeerrno.c' object='lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-errinfo-writeerrno.obj `if test -f 'lib_internal/errinfo-writeerrno.c'; then $(CYGPATH_W) 'lib_internal/errinfo-writeerrno.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/errinfo-writeerrno.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.o: lib_internal/jailintotempdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-jailintotempdir.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.o `test -f 'lib_internal/jailintotempdir.c' || echo '$(srcdir)/'`lib_internal/jailintotempdir.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-jailintotempdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-jailintotempdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/jailintotempdir.c' object='lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.o `test -f 'lib_internal/jailintotempdir.c' || echo '$(srcdir)/'`lib_internal/jailintotempdir.c
-
-lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.obj: lib_internal/jailintotempdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-jailintotempdir.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.obj `if test -f 'lib_internal/jailintotempdir.c'; then $(CYGPATH_W) 'lib_internal/jailintotempdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/jailintotempdir.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-jailintotempdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-jailintotempdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/jailintotempdir.c' object='lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-jailintotempdir.obj `if test -f 'lib_internal/jailintotempdir.c'; then $(CYGPATH_W) 'lib_internal/jailintotempdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/jailintotempdir.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.o: lib_internal/matchlist-appendfiles.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-appendfiles.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.o `test -f 'lib_internal/matchlist-appendfiles.c' || echo '$(srcdir)/'`lib_internal/matchlist-appendfiles.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-appendfiles.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-appendfiles.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-appendfiles.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.o `test -f 'lib_internal/matchlist-appendfiles.c' || echo '$(srcdir)/'`lib_internal/matchlist-appendfiles.c
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.obj: lib_internal/matchlist-appendfiles.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-appendfiles.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.obj `if test -f 'lib_internal/matchlist-appendfiles.c'; then $(CYGPATH_W) 'lib_internal/matchlist-appendfiles.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-appendfiles.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-appendfiles.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-appendfiles.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-appendfiles.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-appendfiles.obj `if test -f 'lib_internal/matchlist-appendfiles.c'; then $(CYGPATH_W) 'lib_internal/matchlist-appendfiles.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-appendfiles.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.o: lib_internal/matchlist-compare.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-compare.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.o `test -f 'lib_internal/matchlist-compare.c' || echo '$(srcdir)/'`lib_internal/matchlist-compare.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-compare.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-compare.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-compare.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.o `test -f 'lib_internal/matchlist-compare.c' || echo '$(srcdir)/'`lib_internal/matchlist-compare.c
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.obj: lib_internal/matchlist-compare.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-compare.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.obj `if test -f 'lib_internal/matchlist-compare.c'; then $(CYGPATH_W) 'lib_internal/matchlist-compare.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-compare.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-compare.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-compare.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-compare.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-compare.obj `if test -f 'lib_internal/matchlist-compare.c'; then $(CYGPATH_W) 'lib_internal/matchlist-compare.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-compare.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.o: lib_internal/matchlist-destroy.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-destroy.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.o `test -f 'lib_internal/matchlist-destroy.c' || echo '$(srcdir)/'`lib_internal/matchlist-destroy.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-destroy.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-destroy.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-destroy.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.o `test -f 'lib_internal/matchlist-destroy.c' || echo '$(srcdir)/'`lib_internal/matchlist-destroy.c
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.obj: lib_internal/matchlist-destroy.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-destroy.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.obj `if test -f 'lib_internal/matchlist-destroy.c'; then $(CYGPATH_W) 'lib_internal/matchlist-destroy.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-destroy.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-destroy.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-destroy.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-destroy.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-destroy.obj `if test -f 'lib_internal/matchlist-destroy.c'; then $(CYGPATH_W) 'lib_internal/matchlist-destroy.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-destroy.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-init.o: lib_internal/matchlist-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-init.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-init.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-init.o `test -f 'lib_internal/matchlist-init.c' || echo '$(srcdir)/'`lib_internal/matchlist-init.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-init.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-init.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-init.o `test -f 'lib_internal/matchlist-init.c' || echo '$(srcdir)/'`lib_internal/matchlist-init.c
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-init.obj: lib_internal/matchlist-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-init.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-init.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-init.obj `if test -f 'lib_internal/matchlist-init.c'; then $(CYGPATH_W) 'lib_internal/matchlist-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-init.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-init.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-init.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-init.obj `if test -f 'lib_internal/matchlist-init.c'; then $(CYGPATH_W) 'lib_internal/matchlist-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-init.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.o: lib_internal/matchlist-initmanually.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initmanually.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.o `test -f 'lib_internal/matchlist-initmanually.c' || echo '$(srcdir)/'`lib_internal/matchlist-initmanually.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initmanually.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initmanually.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initmanually.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.o `test -f 'lib_internal/matchlist-initmanually.c' || echo '$(srcdir)/'`lib_internal/matchlist-initmanually.c
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.obj: lib_internal/matchlist-initmanually.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initmanually.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.obj `if test -f 'lib_internal/matchlist-initmanually.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initmanually.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initmanually.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initmanually.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initmanually.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initmanually.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initmanually.obj `if test -f 'lib_internal/matchlist-initmanually.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initmanually.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initmanually.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.o: lib_internal/matchlist-initrefserverlist.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.o `test -f 'lib_internal/matchlist-initrefserverlist.c' || echo '$(srcdir)/'`lib_internal/matchlist-initrefserverlist.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initrefserverlist.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.o `test -f 'lib_internal/matchlist-initrefserverlist.c' || echo '$(srcdir)/'`lib_internal/matchlist-initrefserverlist.c
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.obj: lib_internal/matchlist-initrefserverlist.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.obj `if test -f 'lib_internal/matchlist-initrefserverlist.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initrefserverlist.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initrefserverlist.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initrefserverlist.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initrefserverlist.obj `if test -f 'lib_internal/matchlist-initrefserverlist.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initrefserverlist.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initrefserverlist.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.o: lib_internal/matchlist-printid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-printid.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.o `test -f 'lib_internal/matchlist-printid.c' || echo '$(srcdir)/'`lib_internal/matchlist-printid.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-printid.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-printid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-printid.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.o `test -f 'lib_internal/matchlist-printid.c' || echo '$(srcdir)/'`lib_internal/matchlist-printid.c
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.obj: lib_internal/matchlist-printid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-printid.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.obj `if test -f 'lib_internal/matchlist-printid.c'; then $(CYGPATH_W) 'lib_internal/matchlist-printid.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-printid.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-printid.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-printid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-printid.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-printid.obj `if test -f 'lib_internal/matchlist-printid.c'; then $(CYGPATH_W) 'lib_internal/matchlist-printid.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-printid.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.o: lib_internal/matchvserverinfo-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-free.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.o `test -f 'lib_internal/matchvserverinfo-free.c' || echo '$(srcdir)/'`lib_internal/matchvserverinfo-free.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-free.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchvserverinfo-free.c' object='lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.o `test -f 'lib_internal/matchvserverinfo-free.c' || echo '$(srcdir)/'`lib_internal/matchvserverinfo-free.c
-
-lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.obj: lib_internal/matchvserverinfo-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-free.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.obj `if test -f 'lib_internal/matchvserverinfo-free.c'; then $(CYGPATH_W) 'lib_internal/matchvserverinfo-free.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchvserverinfo-free.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-free.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchvserverinfo-free.c' object='lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-free.obj `if test -f 'lib_internal/matchvserverinfo-free.c'; then $(CYGPATH_W) 'lib_internal/matchvserverinfo-free.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchvserverinfo-free.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.o: lib_internal/pathinfo-append.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-append.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.o `test -f 'lib_internal/pathinfo-append.c' || echo '$(srcdir)/'`lib_internal/pathinfo-append.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-append.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-append.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/pathinfo-append.c' object='lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.o `test -f 'lib_internal/pathinfo-append.c' || echo '$(srcdir)/'`lib_internal/pathinfo-append.c
-
-lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.obj: lib_internal/pathinfo-append.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-append.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.obj `if test -f 'lib_internal/pathinfo-append.c'; then $(CYGPATH_W) 'lib_internal/pathinfo-append.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/pathinfo-append.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-append.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-append.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/pathinfo-append.c' object='lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-pathinfo-append.obj `if test -f 'lib_internal/pathinfo-append.c'; then $(CYGPATH_W) 'lib_internal/pathinfo-append.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/pathinfo-append.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.o: lib_internal/pathinfo-test.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-test.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.o `test -f 'lib_internal/pathinfo-test.c' || echo '$(srcdir)/'`lib_internal/pathinfo-test.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-test.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-test.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/pathinfo-test.c' object='lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.o `test -f 'lib_internal/pathinfo-test.c' || echo '$(srcdir)/'`lib_internal/pathinfo-test.c
-
-lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.obj: lib_internal/pathinfo-test.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-test.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.obj `if test -f 'lib_internal/pathinfo-test.c'; then $(CYGPATH_W) 'lib_internal/pathinfo-test.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/pathinfo-test.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-test.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-pathinfo-test.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/pathinfo-test.c' object='lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-pathinfo-test.obj `if test -f 'lib_internal/pathinfo-test.c'; then $(CYGPATH_W) 'lib_internal/pathinfo-test.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/pathinfo-test.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.o: lib_internal/switchtowatchxid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-switchtowatchxid.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.o `test -f 'lib_internal/switchtowatchxid.c' || echo '$(srcdir)/'`lib_internal/switchtowatchxid.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-switchtowatchxid.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-switchtowatchxid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/switchtowatchxid.c' object='lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.o `test -f 'lib_internal/switchtowatchxid.c' || echo '$(srcdir)/'`lib_internal/switchtowatchxid.c
-
-lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.obj: lib_internal/switchtowatchxid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-switchtowatchxid.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.obj `if test -f 'lib_internal/switchtowatchxid.c'; then $(CYGPATH_W) 'lib_internal/switchtowatchxid.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/switchtowatchxid.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-switchtowatchxid.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-switchtowatchxid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/switchtowatchxid.c' object='lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-switchtowatchxid.obj `if test -f 'lib_internal/switchtowatchxid.c'; then $(CYGPATH_W) 'lib_internal/switchtowatchxid.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/switchtowatchxid.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-unify-deunify.o: lib_internal/unify-deunify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-unify-deunify.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-deunify.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-unify-deunify.o `test -f 'lib_internal/unify-deunify.c' || echo '$(srcdir)/'`lib_internal/unify-deunify.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-deunify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-deunify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-deunify.c' object='lib_internal/lib_internal_libinternal_diet_a-unify-deunify.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-unify-deunify.o `test -f 'lib_internal/unify-deunify.c' || echo '$(srcdir)/'`lib_internal/unify-deunify.c
-
-lib_internal/lib_internal_libinternal_diet_a-unify-deunify.obj: lib_internal/unify-deunify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-unify-deunify.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-deunify.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-unify-deunify.obj `if test -f 'lib_internal/unify-deunify.c'; then $(CYGPATH_W) 'lib_internal/unify-deunify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-deunify.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-deunify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-deunify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-deunify.c' object='lib_internal/lib_internal_libinternal_diet_a-unify-deunify.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-unify-deunify.obj `if test -f 'lib_internal/unify-deunify.c'; then $(CYGPATH_W) 'lib_internal/unify-deunify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-deunify.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-unify-settime.o: lib_internal/unify-settime.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-unify-settime.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-settime.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-unify-settime.o `test -f 'lib_internal/unify-settime.c' || echo '$(srcdir)/'`lib_internal/unify-settime.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-settime.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-settime.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-settime.c' object='lib_internal/lib_internal_libinternal_diet_a-unify-settime.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-unify-settime.o `test -f 'lib_internal/unify-settime.c' || echo '$(srcdir)/'`lib_internal/unify-settime.c
-
-lib_internal/lib_internal_libinternal_diet_a-unify-settime.obj: lib_internal/unify-settime.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-unify-settime.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-settime.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-unify-settime.obj `if test -f 'lib_internal/unify-settime.c'; then $(CYGPATH_W) 'lib_internal/unify-settime.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-settime.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-settime.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-settime.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-settime.c' object='lib_internal/lib_internal_libinternal_diet_a-unify-settime.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-unify-settime.obj `if test -f 'lib_internal/unify-settime.c'; then $(CYGPATH_W) 'lib_internal/unify-settime.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-settime.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-unify-unify.o: lib_internal/unify-unify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-unify-unify.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-unify.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-unify-unify.o `test -f 'lib_internal/unify-unify.c' || echo '$(srcdir)/'`lib_internal/unify-unify.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-unify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-unify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-unify.c' object='lib_internal/lib_internal_libinternal_diet_a-unify-unify.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-unify-unify.o `test -f 'lib_internal/unify-unify.c' || echo '$(srcdir)/'`lib_internal/unify-unify.c
-
-lib_internal/lib_internal_libinternal_diet_a-unify-unify.obj: lib_internal/unify-unify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-unify-unify.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-unify.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-unify-unify.obj `if test -f 'lib_internal/unify-unify.c'; then $(CYGPATH_W) 'lib_internal/unify-unify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-unify.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-unify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-unify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-unify.c' object='lib_internal/lib_internal_libinternal_diet_a-unify-unify.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-unify-unify.obj `if test -f 'lib_internal/unify-unify.c'; then $(CYGPATH_W) 'lib_internal/unify-unify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-unify.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.o: lib_internal/unify-isiunlinkable.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-isiunlinkable.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.o `test -f 'lib_internal/unify-isiunlinkable.c' || echo '$(srcdir)/'`lib_internal/unify-isiunlinkable.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-isiunlinkable.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-isiunlinkable.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-isiunlinkable.c' object='lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.o `test -f 'lib_internal/unify-isiunlinkable.c' || echo '$(srcdir)/'`lib_internal/unify-isiunlinkable.c
-
-lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.obj: lib_internal/unify-isiunlinkable.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-isiunlinkable.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.obj `if test -f 'lib_internal/unify-isiunlinkable.c'; then $(CYGPATH_W) 'lib_internal/unify-isiunlinkable.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-isiunlinkable.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-isiunlinkable.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-isiunlinkable.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-isiunlinkable.c' object='lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-unify-isiunlinkable.obj `if test -f 'lib_internal/unify-isiunlinkable.c'; then $(CYGPATH_W) 'lib_internal/unify-isiunlinkable.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-isiunlinkable.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-util-canonify.o: lib_internal/util-canonify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-canonify.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-canonify.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-canonify.o `test -f 'lib_internal/util-canonify.c' || echo '$(srcdir)/'`lib_internal/util-canonify.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-canonify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-canonify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-canonify.c' object='lib_internal/lib_internal_libinternal_diet_a-util-canonify.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-canonify.o `test -f 'lib_internal/util-canonify.c' || echo '$(srcdir)/'`lib_internal/util-canonify.c
-
-lib_internal/lib_internal_libinternal_diet_a-util-canonify.obj: lib_internal/util-canonify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-canonify.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-canonify.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-canonify.obj `if test -f 'lib_internal/util-canonify.c'; then $(CYGPATH_W) 'lib_internal/util-canonify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-canonify.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-canonify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-canonify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-canonify.c' object='lib_internal/lib_internal_libinternal_diet_a-util-canonify.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-canonify.obj `if test -f 'lib_internal/util-canonify.c'; then $(CYGPATH_W) 'lib_internal/util-canonify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-canonify.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.o: lib_internal/util-exitlikeprocess.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-exitlikeprocess.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.o `test -f 'lib_internal/util-exitlikeprocess.c' || echo '$(srcdir)/'`lib_internal/util-exitlikeprocess.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-exitlikeprocess.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-exitlikeprocess.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-exitlikeprocess.c' object='lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.o `test -f 'lib_internal/util-exitlikeprocess.c' || echo '$(srcdir)/'`lib_internal/util-exitlikeprocess.c
-
-lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.obj: lib_internal/util-exitlikeprocess.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-exitlikeprocess.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.obj `if test -f 'lib_internal/util-exitlikeprocess.c'; then $(CYGPATH_W) 'lib_internal/util-exitlikeprocess.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-exitlikeprocess.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-exitlikeprocess.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-exitlikeprocess.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-exitlikeprocess.c' object='lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-exitlikeprocess.obj `if test -f 'lib_internal/util-exitlikeprocess.c'; then $(CYGPATH_W) 'lib_internal/util-exitlikeprocess.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-exitlikeprocess.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-util-isnumber.o: lib_internal/util-isnumber.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-isnumber.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumber.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-isnumber.o `test -f 'lib_internal/util-isnumber.c' || echo '$(srcdir)/'`lib_internal/util-isnumber.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumber.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumber.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-isnumber.c' object='lib_internal/lib_internal_libinternal_diet_a-util-isnumber.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-isnumber.o `test -f 'lib_internal/util-isnumber.c' || echo '$(srcdir)/'`lib_internal/util-isnumber.c
-
-lib_internal/lib_internal_libinternal_diet_a-util-isnumber.obj: lib_internal/util-isnumber.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-isnumber.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumber.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-isnumber.obj `if test -f 'lib_internal/util-isnumber.c'; then $(CYGPATH_W) 'lib_internal/util-isnumber.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-isnumber.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumber.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumber.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-isnumber.c' object='lib_internal/lib_internal_libinternal_diet_a-util-isnumber.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-isnumber.obj `if test -f 'lib_internal/util-isnumber.c'; then $(CYGPATH_W) 'lib_internal/util-isnumber.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-isnumber.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.o: lib_internal/util-isnumberunsigned.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumberunsigned.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.o `test -f 'lib_internal/util-isnumberunsigned.c' || echo '$(srcdir)/'`lib_internal/util-isnumberunsigned.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumberunsigned.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumberunsigned.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-isnumberunsigned.c' object='lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.o `test -f 'lib_internal/util-isnumberunsigned.c' || echo '$(srcdir)/'`lib_internal/util-isnumberunsigned.c
-
-lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.obj: lib_internal/util-isnumberunsigned.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumberunsigned.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.obj `if test -f 'lib_internal/util-isnumberunsigned.c'; then $(CYGPATH_W) 'lib_internal/util-isnumberunsigned.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-isnumberunsigned.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumberunsigned.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-isnumberunsigned.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-isnumberunsigned.c' object='lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-isnumberunsigned.obj `if test -f 'lib_internal/util-isnumberunsigned.c'; then $(CYGPATH_W) 'lib_internal/util-isnumberunsigned.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-isnumberunsigned.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-util-lockfile.o: lib_internal/util-lockfile.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-lockfile.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-lockfile.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-lockfile.o `test -f 'lib_internal/util-lockfile.c' || echo '$(srcdir)/'`lib_internal/util-lockfile.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-lockfile.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-lockfile.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-lockfile.c' object='lib_internal/lib_internal_libinternal_diet_a-util-lockfile.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-lockfile.o `test -f 'lib_internal/util-lockfile.c' || echo '$(srcdir)/'`lib_internal/util-lockfile.c
-
-lib_internal/lib_internal_libinternal_diet_a-util-lockfile.obj: lib_internal/util-lockfile.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-lockfile.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-lockfile.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-lockfile.obj `if test -f 'lib_internal/util-lockfile.c'; then $(CYGPATH_W) 'lib_internal/util-lockfile.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-lockfile.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-lockfile.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-lockfile.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-lockfile.c' object='lib_internal/lib_internal_libinternal_diet_a-util-lockfile.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-lockfile.obj `if test -f 'lib_internal/util-lockfile.c'; then $(CYGPATH_W) 'lib_internal/util-lockfile.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-lockfile.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-util-safechdir.o: lib_internal/util-safechdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-safechdir.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-safechdir.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-safechdir.o `test -f 'lib_internal/util-safechdir.c' || echo '$(srcdir)/'`lib_internal/util-safechdir.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-safechdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-safechdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-safechdir.c' object='lib_internal/lib_internal_libinternal_diet_a-util-safechdir.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-safechdir.o `test -f 'lib_internal/util-safechdir.c' || echo '$(srcdir)/'`lib_internal/util-safechdir.c
-
-lib_internal/lib_internal_libinternal_diet_a-util-safechdir.obj: lib_internal/util-safechdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-util-safechdir.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-safechdir.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-util-safechdir.obj `if test -f 'lib_internal/util-safechdir.c'; then $(CYGPATH_W) 'lib_internal/util-safechdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-safechdir.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-safechdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-util-safechdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-safechdir.c' object='lib_internal/lib_internal_libinternal_diet_a-util-safechdir.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-util-safechdir.obj `if test -f 'lib_internal/util-safechdir.c'; then $(CYGPATH_W) 'lib_internal/util-safechdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-safechdir.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-mkdir.o: lib_internal/mkdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-mkdir.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-mkdir.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-mkdir.o `test -f 'lib_internal/mkdir.c' || echo '$(srcdir)/'`lib_internal/mkdir.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-mkdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-mkdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/mkdir.c' object='lib_internal/lib_internal_libinternal_diet_a-mkdir.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-mkdir.o `test -f 'lib_internal/mkdir.c' || echo '$(srcdir)/'`lib_internal/mkdir.c
-
-lib_internal/lib_internal_libinternal_diet_a-mkdir.obj: lib_internal/mkdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-mkdir.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-mkdir.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-mkdir.obj `if test -f 'lib_internal/mkdir.c'; then $(CYGPATH_W) 'lib_internal/mkdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/mkdir.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-mkdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-mkdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/mkdir.c' object='lib_internal/lib_internal_libinternal_diet_a-mkdir.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-mkdir.obj `if test -f 'lib_internal/mkdir.c'; then $(CYGPATH_W) 'lib_internal/mkdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/mkdir.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.o: lib_internal/command-appendparameter.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-appendparameter.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.o `test -f 'lib_internal/command-appendparameter.c' || echo '$(srcdir)/'`lib_internal/command-appendparameter.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-appendparameter.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-appendparameter.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-appendparameter.c' object='lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.o `test -f 'lib_internal/command-appendparameter.c' || echo '$(srcdir)/'`lib_internal/command-appendparameter.c
-
-lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.obj: lib_internal/command-appendparameter.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-appendparameter.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.obj `if test -f 'lib_internal/command-appendparameter.c'; then $(CYGPATH_W) 'lib_internal/command-appendparameter.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-appendparameter.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-appendparameter.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-appendparameter.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-appendparameter.c' object='lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-appendparameter.obj `if test -f 'lib_internal/command-appendparameter.c'; then $(CYGPATH_W) 'lib_internal/command-appendparameter.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-appendparameter.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-command-setparams.o: lib_internal/command-setparams.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-setparams.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-setparams.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-setparams.o `test -f 'lib_internal/command-setparams.c' || echo '$(srcdir)/'`lib_internal/command-setparams.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-setparams.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-setparams.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-setparams.c' object='lib_internal/lib_internal_libinternal_diet_a-command-setparams.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-setparams.o `test -f 'lib_internal/command-setparams.c' || echo '$(srcdir)/'`lib_internal/command-setparams.c
-
-lib_internal/lib_internal_libinternal_diet_a-command-setparams.obj: lib_internal/command-setparams.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-setparams.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-setparams.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-setparams.obj `if test -f 'lib_internal/command-setparams.c'; then $(CYGPATH_W) 'lib_internal/command-setparams.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-setparams.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-setparams.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-setparams.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-setparams.c' object='lib_internal/lib_internal_libinternal_diet_a-command-setparams.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-setparams.obj `if test -f 'lib_internal/command-setparams.c'; then $(CYGPATH_W) 'lib_internal/command-setparams.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-setparams.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-command-exec.o: lib_internal/command-exec.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-exec.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-exec.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-exec.o `test -f 'lib_internal/command-exec.c' || echo '$(srcdir)/'`lib_internal/command-exec.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-exec.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-exec.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-exec.c' object='lib_internal/lib_internal_libinternal_diet_a-command-exec.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-exec.o `test -f 'lib_internal/command-exec.c' || echo '$(srcdir)/'`lib_internal/command-exec.c
-
-lib_internal/lib_internal_libinternal_diet_a-command-exec.obj: lib_internal/command-exec.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-exec.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-exec.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-exec.obj `if test -f 'lib_internal/command-exec.c'; then $(CYGPATH_W) 'lib_internal/command-exec.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-exec.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-exec.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-exec.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-exec.c' object='lib_internal/lib_internal_libinternal_diet_a-command-exec.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-exec.obj `if test -f 'lib_internal/command-exec.c'; then $(CYGPATH_W) 'lib_internal/command-exec.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-exec.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-command-free.o: lib_internal/command-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-free.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-free.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-free.o `test -f 'lib_internal/command-free.c' || echo '$(srcdir)/'`lib_internal/command-free.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-free.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-free.c' object='lib_internal/lib_internal_libinternal_diet_a-command-free.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-free.o `test -f 'lib_internal/command-free.c' || echo '$(srcdir)/'`lib_internal/command-free.c
-
-lib_internal/lib_internal_libinternal_diet_a-command-free.obj: lib_internal/command-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-free.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-free.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-free.obj `if test -f 'lib_internal/command-free.c'; then $(CYGPATH_W) 'lib_internal/command-free.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-free.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-free.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-free.c' object='lib_internal/lib_internal_libinternal_diet_a-command-free.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-free.obj `if test -f 'lib_internal/command-free.c'; then $(CYGPATH_W) 'lib_internal/command-free.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-free.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-command-init.o: lib_internal/command-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-init.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-init.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-init.o `test -f 'lib_internal/command-init.c' || echo '$(srcdir)/'`lib_internal/command-init.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-init.c' object='lib_internal/lib_internal_libinternal_diet_a-command-init.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-init.o `test -f 'lib_internal/command-init.c' || echo '$(srcdir)/'`lib_internal/command-init.c
-
-lib_internal/lib_internal_libinternal_diet_a-command-init.obj: lib_internal/command-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-init.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-init.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-init.obj `if test -f 'lib_internal/command-init.c'; then $(CYGPATH_W) 'lib_internal/command-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-init.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-init.c' object='lib_internal/lib_internal_libinternal_diet_a-command-init.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-init.obj `if test -f 'lib_internal/command-init.c'; then $(CYGPATH_W) 'lib_internal/command-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-init.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-command-reset.o: lib_internal/command-reset.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-reset.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-reset.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-reset.o `test -f 'lib_internal/command-reset.c' || echo '$(srcdir)/'`lib_internal/command-reset.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-reset.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-reset.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-reset.c' object='lib_internal/lib_internal_libinternal_diet_a-command-reset.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-reset.o `test -f 'lib_internal/command-reset.c' || echo '$(srcdir)/'`lib_internal/command-reset.c
-
-lib_internal/lib_internal_libinternal_diet_a-command-reset.obj: lib_internal/command-reset.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-reset.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-reset.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-reset.obj `if test -f 'lib_internal/command-reset.c'; then $(CYGPATH_W) 'lib_internal/command-reset.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-reset.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-reset.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-reset.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-reset.c' object='lib_internal/lib_internal_libinternal_diet_a-command-reset.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-reset.obj `if test -f 'lib_internal/command-reset.c'; then $(CYGPATH_W) 'lib_internal/command-reset.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-reset.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-command-wait.o: lib_internal/command-wait.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-wait.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-wait.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-wait.o `test -f 'lib_internal/command-wait.c' || echo '$(srcdir)/'`lib_internal/command-wait.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-wait.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-wait.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-wait.c' object='lib_internal/lib_internal_libinternal_diet_a-command-wait.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-wait.o `test -f 'lib_internal/command-wait.c' || echo '$(srcdir)/'`lib_internal/command-wait.c
-
-lib_internal/lib_internal_libinternal_diet_a-command-wait.obj: lib_internal/command-wait.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-command-wait.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-wait.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-command-wait.obj `if test -f 'lib_internal/command-wait.c'; then $(CYGPATH_W) 'lib_internal/command-wait.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-wait.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-wait.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-command-wait.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-wait.c' object='lib_internal/lib_internal_libinternal_diet_a-command-wait.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-command-wait.obj `if test -f 'lib_internal/command-wait.c'; then $(CYGPATH_W) 'lib_internal/command-wait.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-wait.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.o: lib_internal/filecfg-iteratemultiline.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.o `test -f 'lib_internal/filecfg-iteratemultiline.c' || echo '$(srcdir)/'`lib_internal/filecfg-iteratemultiline.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-iteratemultiline.c' object='lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.o `test -f 'lib_internal/filecfg-iteratemultiline.c' || echo '$(srcdir)/'`lib_internal/filecfg-iteratemultiline.c
-
-lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.obj: lib_internal/filecfg-iteratemultiline.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.obj `if test -f 'lib_internal/filecfg-iteratemultiline.c'; then $(CYGPATH_W) 'lib_internal/filecfg-iteratemultiline.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-iteratemultiline.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-iteratemultiline.c' object='lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-iteratemultiline.obj `if test -f 'lib_internal/filecfg-iteratemultiline.c'; then $(CYGPATH_W) 'lib_internal/filecfg-iteratemultiline.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-iteratemultiline.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.o: lib_internal/filecfg-readentryflag.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentryflag.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.o `test -f 'lib_internal/filecfg-readentryflag.c' || echo '$(srcdir)/'`lib_internal/filecfg-readentryflag.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentryflag.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentryflag.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-readentryflag.c' object='lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.o `test -f 'lib_internal/filecfg-readentryflag.c' || echo '$(srcdir)/'`lib_internal/filecfg-readentryflag.c
-
-lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.obj: lib_internal/filecfg-readentryflag.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentryflag.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.obj `if test -f 'lib_internal/filecfg-readentryflag.c'; then $(CYGPATH_W) 'lib_internal/filecfg-readentryflag.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-readentryflag.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentryflag.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentryflag.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-readentryflag.c' object='lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-readentryflag.obj `if test -f 'lib_internal/filecfg-readentryflag.c'; then $(CYGPATH_W) 'lib_internal/filecfg-readentryflag.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-readentryflag.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.o: lib_internal/filecfg-readentrystr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentrystr.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.o `test -f 'lib_internal/filecfg-readentrystr.c' || echo '$(srcdir)/'`lib_internal/filecfg-readentrystr.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentrystr.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentrystr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-readentrystr.c' object='lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.o `test -f 'lib_internal/filecfg-readentrystr.c' || echo '$(srcdir)/'`lib_internal/filecfg-readentrystr.c
-
-lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.obj: lib_internal/filecfg-readentrystr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentrystr.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.obj `if test -f 'lib_internal/filecfg-readentrystr.c'; then $(CYGPATH_W) 'lib_internal/filecfg-readentrystr.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-readentrystr.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentrystr.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-filecfg-readentrystr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-readentrystr.c' object='lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-filecfg-readentrystr.obj `if test -f 'lib_internal/filecfg-readentrystr.c'; then $(CYGPATH_W) 'lib_internal/filecfg-readentrystr.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-readentrystr.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.o: lib_internal/matchlist-initbyvserver.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initbyvserver.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.o `test -f 'lib_internal/matchlist-initbyvserver.c' || echo '$(srcdir)/'`lib_internal/matchlist-initbyvserver.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initbyvserver.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initbyvserver.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initbyvserver.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.o `test -f 'lib_internal/matchlist-initbyvserver.c' || echo '$(srcdir)/'`lib_internal/matchlist-initbyvserver.c
-
-lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.obj: lib_internal/matchlist-initbyvserver.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initbyvserver.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.obj `if test -f 'lib_internal/matchlist-initbyvserver.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initbyvserver.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initbyvserver.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initbyvserver.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchlist-initbyvserver.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initbyvserver.c' object='lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchlist-initbyvserver.obj `if test -f 'lib_internal/matchlist-initbyvserver.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initbyvserver.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initbyvserver.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.o: lib_internal/matchvserverinfo-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-init.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.o `test -f 'lib_internal/matchvserverinfo-init.c' || echo '$(srcdir)/'`lib_internal/matchvserverinfo-init.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchvserverinfo-init.c' object='lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.o `test -f 'lib_internal/matchvserverinfo-init.c' || echo '$(srcdir)/'`lib_internal/matchvserverinfo-init.c
-
-lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.obj: lib_internal/matchvserverinfo-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-init.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.obj `if test -f 'lib_internal/matchvserverinfo-init.c'; then $(CYGPATH_W) 'lib_internal/matchvserverinfo-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchvserverinfo-init.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-matchvserverinfo-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchvserverinfo-init.c' object='lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-matchvserverinfo-init.obj `if test -f 'lib_internal/matchvserverinfo-init.c'; then $(CYGPATH_W) 'lib_internal/matchvserverinfo-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchvserverinfo-init.c'; fi`
-
-lib_internal/lib_internal_libinternal_diet_a-unify-copy.o: lib_internal/unify-copy.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-unify-copy.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-copy.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-unify-copy.o `test -f 'lib_internal/unify-copy.c' || echo '$(srcdir)/'`lib_internal/unify-copy.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-copy.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-copy.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-copy.c' object='lib_internal/lib_internal_libinternal_diet_a-unify-copy.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-unify-copy.o `test -f 'lib_internal/unify-copy.c' || echo '$(srcdir)/'`lib_internal/unify-copy.c
-
-lib_internal/lib_internal_libinternal_diet_a-unify-copy.obj: lib_internal/unify-copy.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_diet_a-unify-copy.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-copy.Tpo -c -o lib_internal/lib_internal_libinternal_diet_a-unify-copy.obj `if test -f 'lib_internal/unify-copy.c'; then $(CYGPATH_W) 'lib_internal/unify-copy.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-copy.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-copy.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_diet_a-unify-copy.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-copy.c' object='lib_internal/lib_internal_libinternal_diet_a-unify-copy.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_diet_a-unify-copy.obj `if test -f 'lib_internal/unify-copy.c'; then $(CYGPATH_W) 'lib_internal/unify-copy.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-copy.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.o: lib_internal/errinfo-writeerrno.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-errinfo-writeerrno.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.o `test -f 'lib_internal/errinfo-writeerrno.c' || echo '$(srcdir)/'`lib_internal/errinfo-writeerrno.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-errinfo-writeerrno.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-errinfo-writeerrno.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/errinfo-writeerrno.c' object='lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.o `test -f 'lib_internal/errinfo-writeerrno.c' || echo '$(srcdir)/'`lib_internal/errinfo-writeerrno.c
-
-lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.obj: lib_internal/errinfo-writeerrno.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-errinfo-writeerrno.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.obj `if test -f 'lib_internal/errinfo-writeerrno.c'; then $(CYGPATH_W) 'lib_internal/errinfo-writeerrno.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/errinfo-writeerrno.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-errinfo-writeerrno.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-errinfo-writeerrno.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/errinfo-writeerrno.c' object='lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-errinfo-writeerrno.obj `if test -f 'lib_internal/errinfo-writeerrno.c'; then $(CYGPATH_W) 'lib_internal/errinfo-writeerrno.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/errinfo-writeerrno.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.o: lib_internal/jailintotempdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-jailintotempdir.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.o `test -f 'lib_internal/jailintotempdir.c' || echo '$(srcdir)/'`lib_internal/jailintotempdir.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-jailintotempdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-jailintotempdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/jailintotempdir.c' object='lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.o `test -f 'lib_internal/jailintotempdir.c' || echo '$(srcdir)/'`lib_internal/jailintotempdir.c
-
-lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.obj: lib_internal/jailintotempdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-jailintotempdir.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.obj `if test -f 'lib_internal/jailintotempdir.c'; then $(CYGPATH_W) 'lib_internal/jailintotempdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/jailintotempdir.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-jailintotempdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-jailintotempdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/jailintotempdir.c' object='lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-jailintotempdir.obj `if test -f 'lib_internal/jailintotempdir.c'; then $(CYGPATH_W) 'lib_internal/jailintotempdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/jailintotempdir.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.o: lib_internal/matchlist-appendfiles.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-appendfiles.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.o `test -f 'lib_internal/matchlist-appendfiles.c' || echo '$(srcdir)/'`lib_internal/matchlist-appendfiles.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-appendfiles.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-appendfiles.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-appendfiles.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.o `test -f 'lib_internal/matchlist-appendfiles.c' || echo '$(srcdir)/'`lib_internal/matchlist-appendfiles.c
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.obj: lib_internal/matchlist-appendfiles.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-appendfiles.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.obj `if test -f 'lib_internal/matchlist-appendfiles.c'; then $(CYGPATH_W) 'lib_internal/matchlist-appendfiles.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-appendfiles.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-appendfiles.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-appendfiles.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-appendfiles.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-appendfiles.obj `if test -f 'lib_internal/matchlist-appendfiles.c'; then $(CYGPATH_W) 'lib_internal/matchlist-appendfiles.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-appendfiles.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.o: lib_internal/matchlist-compare.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-compare.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.o `test -f 'lib_internal/matchlist-compare.c' || echo '$(srcdir)/'`lib_internal/matchlist-compare.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-compare.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-compare.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-compare.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.o `test -f 'lib_internal/matchlist-compare.c' || echo '$(srcdir)/'`lib_internal/matchlist-compare.c
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.obj: lib_internal/matchlist-compare.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-compare.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.obj `if test -f 'lib_internal/matchlist-compare.c'; then $(CYGPATH_W) 'lib_internal/matchlist-compare.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-compare.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-compare.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-compare.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-compare.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-compare.obj `if test -f 'lib_internal/matchlist-compare.c'; then $(CYGPATH_W) 'lib_internal/matchlist-compare.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-compare.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.o: lib_internal/matchlist-destroy.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-destroy.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.o `test -f 'lib_internal/matchlist-destroy.c' || echo '$(srcdir)/'`lib_internal/matchlist-destroy.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-destroy.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-destroy.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-destroy.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.o `test -f 'lib_internal/matchlist-destroy.c' || echo '$(srcdir)/'`lib_internal/matchlist-destroy.c
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.obj: lib_internal/matchlist-destroy.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-destroy.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.obj `if test -f 'lib_internal/matchlist-destroy.c'; then $(CYGPATH_W) 'lib_internal/matchlist-destroy.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-destroy.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-destroy.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-destroy.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-destroy.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-destroy.obj `if test -f 'lib_internal/matchlist-destroy.c'; then $(CYGPATH_W) 'lib_internal/matchlist-destroy.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-destroy.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.o: lib_internal/matchlist-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-init.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.o `test -f 'lib_internal/matchlist-init.c' || echo '$(srcdir)/'`lib_internal/matchlist-init.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-init.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.o `test -f 'lib_internal/matchlist-init.c' || echo '$(srcdir)/'`lib_internal/matchlist-init.c
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.obj: lib_internal/matchlist-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-init.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.obj `if test -f 'lib_internal/matchlist-init.c'; then $(CYGPATH_W) 'lib_internal/matchlist-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-init.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-init.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-init.obj `if test -f 'lib_internal/matchlist-init.c'; then $(CYGPATH_W) 'lib_internal/matchlist-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-init.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.o: lib_internal/matchlist-initmanually.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initmanually.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.o `test -f 'lib_internal/matchlist-initmanually.c' || echo '$(srcdir)/'`lib_internal/matchlist-initmanually.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initmanually.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initmanually.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initmanually.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.o `test -f 'lib_internal/matchlist-initmanually.c' || echo '$(srcdir)/'`lib_internal/matchlist-initmanually.c
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.obj: lib_internal/matchlist-initmanually.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initmanually.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.obj `if test -f 'lib_internal/matchlist-initmanually.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initmanually.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initmanually.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initmanually.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initmanually.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initmanually.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initmanually.obj `if test -f 'lib_internal/matchlist-initmanually.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initmanually.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initmanually.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.o: lib_internal/matchlist-initrefserverlist.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.o `test -f 'lib_internal/matchlist-initrefserverlist.c' || echo '$(srcdir)/'`lib_internal/matchlist-initrefserverlist.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initrefserverlist.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.o `test -f 'lib_internal/matchlist-initrefserverlist.c' || echo '$(srcdir)/'`lib_internal/matchlist-initrefserverlist.c
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.obj: lib_internal/matchlist-initrefserverlist.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.obj `if test -f 'lib_internal/matchlist-initrefserverlist.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initrefserverlist.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initrefserverlist.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initrefserverlist.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initrefserverlist.obj `if test -f 'lib_internal/matchlist-initrefserverlist.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initrefserverlist.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initrefserverlist.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.o: lib_internal/matchlist-printid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-printid.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.o `test -f 'lib_internal/matchlist-printid.c' || echo '$(srcdir)/'`lib_internal/matchlist-printid.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-printid.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-printid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-printid.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.o `test -f 'lib_internal/matchlist-printid.c' || echo '$(srcdir)/'`lib_internal/matchlist-printid.c
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.obj: lib_internal/matchlist-printid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-printid.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.obj `if test -f 'lib_internal/matchlist-printid.c'; then $(CYGPATH_W) 'lib_internal/matchlist-printid.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-printid.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-printid.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-printid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-printid.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-printid.obj `if test -f 'lib_internal/matchlist-printid.c'; then $(CYGPATH_W) 'lib_internal/matchlist-printid.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-printid.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.o: lib_internal/matchvserverinfo-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-free.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.o `test -f 'lib_internal/matchvserverinfo-free.c' || echo '$(srcdir)/'`lib_internal/matchvserverinfo-free.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-free.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchvserverinfo-free.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.o `test -f 'lib_internal/matchvserverinfo-free.c' || echo '$(srcdir)/'`lib_internal/matchvserverinfo-free.c
-
-lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.obj: lib_internal/matchvserverinfo-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-free.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.obj `if test -f 'lib_internal/matchvserverinfo-free.c'; then $(CYGPATH_W) 'lib_internal/matchvserverinfo-free.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchvserverinfo-free.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-free.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchvserverinfo-free.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-free.obj `if test -f 'lib_internal/matchvserverinfo-free.c'; then $(CYGPATH_W) 'lib_internal/matchvserverinfo-free.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchvserverinfo-free.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.o: lib_internal/pathinfo-append.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-append.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.o `test -f 'lib_internal/pathinfo-append.c' || echo '$(srcdir)/'`lib_internal/pathinfo-append.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-append.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-append.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/pathinfo-append.c' object='lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.o `test -f 'lib_internal/pathinfo-append.c' || echo '$(srcdir)/'`lib_internal/pathinfo-append.c
-
-lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.obj: lib_internal/pathinfo-append.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-append.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.obj `if test -f 'lib_internal/pathinfo-append.c'; then $(CYGPATH_W) 'lib_internal/pathinfo-append.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/pathinfo-append.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-append.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-append.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/pathinfo-append.c' object='lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-pathinfo-append.obj `if test -f 'lib_internal/pathinfo-append.c'; then $(CYGPATH_W) 'lib_internal/pathinfo-append.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/pathinfo-append.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.o: lib_internal/pathinfo-test.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-test.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.o `test -f 'lib_internal/pathinfo-test.c' || echo '$(srcdir)/'`lib_internal/pathinfo-test.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-test.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-test.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/pathinfo-test.c' object='lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.o `test -f 'lib_internal/pathinfo-test.c' || echo '$(srcdir)/'`lib_internal/pathinfo-test.c
-
-lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.obj: lib_internal/pathinfo-test.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-test.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.obj `if test -f 'lib_internal/pathinfo-test.c'; then $(CYGPATH_W) 'lib_internal/pathinfo-test.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/pathinfo-test.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-test.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-pathinfo-test.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/pathinfo-test.c' object='lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-pathinfo-test.obj `if test -f 'lib_internal/pathinfo-test.c'; then $(CYGPATH_W) 'lib_internal/pathinfo-test.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/pathinfo-test.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.o: lib_internal/switchtowatchxid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-switchtowatchxid.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.o `test -f 'lib_internal/switchtowatchxid.c' || echo '$(srcdir)/'`lib_internal/switchtowatchxid.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-switchtowatchxid.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-switchtowatchxid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/switchtowatchxid.c' object='lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.o `test -f 'lib_internal/switchtowatchxid.c' || echo '$(srcdir)/'`lib_internal/switchtowatchxid.c
-
-lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.obj: lib_internal/switchtowatchxid.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-switchtowatchxid.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.obj `if test -f 'lib_internal/switchtowatchxid.c'; then $(CYGPATH_W) 'lib_internal/switchtowatchxid.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/switchtowatchxid.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-switchtowatchxid.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-switchtowatchxid.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/switchtowatchxid.c' object='lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-switchtowatchxid.obj `if test -f 'lib_internal/switchtowatchxid.c'; then $(CYGPATH_W) 'lib_internal/switchtowatchxid.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/switchtowatchxid.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.o: lib_internal/unify-deunify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-deunify.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.o `test -f 'lib_internal/unify-deunify.c' || echo '$(srcdir)/'`lib_internal/unify-deunify.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-deunify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-deunify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-deunify.c' object='lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.o `test -f 'lib_internal/unify-deunify.c' || echo '$(srcdir)/'`lib_internal/unify-deunify.c
-
-lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.obj: lib_internal/unify-deunify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-deunify.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.obj `if test -f 'lib_internal/unify-deunify.c'; then $(CYGPATH_W) 'lib_internal/unify-deunify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-deunify.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-deunify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-deunify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-deunify.c' object='lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-deunify.obj `if test -f 'lib_internal/unify-deunify.c'; then $(CYGPATH_W) 'lib_internal/unify-deunify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-deunify.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-unify-settime.o: lib_internal/unify-settime.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-unify-settime.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-settime.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-settime.o `test -f 'lib_internal/unify-settime.c' || echo '$(srcdir)/'`lib_internal/unify-settime.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-settime.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-settime.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-settime.c' object='lib_internal/lib_internal_libinternal_glibc_a-unify-settime.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-settime.o `test -f 'lib_internal/unify-settime.c' || echo '$(srcdir)/'`lib_internal/unify-settime.c
-
-lib_internal/lib_internal_libinternal_glibc_a-unify-settime.obj: lib_internal/unify-settime.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-unify-settime.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-settime.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-settime.obj `if test -f 'lib_internal/unify-settime.c'; then $(CYGPATH_W) 'lib_internal/unify-settime.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-settime.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-settime.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-settime.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-settime.c' object='lib_internal/lib_internal_libinternal_glibc_a-unify-settime.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-settime.obj `if test -f 'lib_internal/unify-settime.c'; then $(CYGPATH_W) 'lib_internal/unify-settime.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-settime.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-unify-unify.o: lib_internal/unify-unify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-unify-unify.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-unify.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-unify.o `test -f 'lib_internal/unify-unify.c' || echo '$(srcdir)/'`lib_internal/unify-unify.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-unify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-unify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-unify.c' object='lib_internal/lib_internal_libinternal_glibc_a-unify-unify.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-unify.o `test -f 'lib_internal/unify-unify.c' || echo '$(srcdir)/'`lib_internal/unify-unify.c
-
-lib_internal/lib_internal_libinternal_glibc_a-unify-unify.obj: lib_internal/unify-unify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-unify-unify.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-unify.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-unify.obj `if test -f 'lib_internal/unify-unify.c'; then $(CYGPATH_W) 'lib_internal/unify-unify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-unify.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-unify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-unify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-unify.c' object='lib_internal/lib_internal_libinternal_glibc_a-unify-unify.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-unify.obj `if test -f 'lib_internal/unify-unify.c'; then $(CYGPATH_W) 'lib_internal/unify-unify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-unify.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.o: lib_internal/unify-isiunlinkable.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-isiunlinkable.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.o `test -f 'lib_internal/unify-isiunlinkable.c' || echo '$(srcdir)/'`lib_internal/unify-isiunlinkable.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-isiunlinkable.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-isiunlinkable.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-isiunlinkable.c' object='lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.o `test -f 'lib_internal/unify-isiunlinkable.c' || echo '$(srcdir)/'`lib_internal/unify-isiunlinkable.c
-
-lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.obj: lib_internal/unify-isiunlinkable.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-isiunlinkable.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.obj `if test -f 'lib_internal/unify-isiunlinkable.c'; then $(CYGPATH_W) 'lib_internal/unify-isiunlinkable.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-isiunlinkable.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-isiunlinkable.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-isiunlinkable.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-isiunlinkable.c' object='lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-isiunlinkable.obj `if test -f 'lib_internal/unify-isiunlinkable.c'; then $(CYGPATH_W) 'lib_internal/unify-isiunlinkable.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-isiunlinkable.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-util-canonify.o: lib_internal/util-canonify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-canonify.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-canonify.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-canonify.o `test -f 'lib_internal/util-canonify.c' || echo '$(srcdir)/'`lib_internal/util-canonify.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-canonify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-canonify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-canonify.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-canonify.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-canonify.o `test -f 'lib_internal/util-canonify.c' || echo '$(srcdir)/'`lib_internal/util-canonify.c
-
-lib_internal/lib_internal_libinternal_glibc_a-util-canonify.obj: lib_internal/util-canonify.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-canonify.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-canonify.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-canonify.obj `if test -f 'lib_internal/util-canonify.c'; then $(CYGPATH_W) 'lib_internal/util-canonify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-canonify.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-canonify.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-canonify.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-canonify.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-canonify.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-canonify.obj `if test -f 'lib_internal/util-canonify.c'; then $(CYGPATH_W) 'lib_internal/util-canonify.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-canonify.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.o: lib_internal/util-exitlikeprocess.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-exitlikeprocess.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.o `test -f 'lib_internal/util-exitlikeprocess.c' || echo '$(srcdir)/'`lib_internal/util-exitlikeprocess.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-exitlikeprocess.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-exitlikeprocess.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-exitlikeprocess.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.o `test -f 'lib_internal/util-exitlikeprocess.c' || echo '$(srcdir)/'`lib_internal/util-exitlikeprocess.c
-
-lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.obj: lib_internal/util-exitlikeprocess.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-exitlikeprocess.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.obj `if test -f 'lib_internal/util-exitlikeprocess.c'; then $(CYGPATH_W) 'lib_internal/util-exitlikeprocess.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-exitlikeprocess.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-exitlikeprocess.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-exitlikeprocess.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-exitlikeprocess.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-exitlikeprocess.obj `if test -f 'lib_internal/util-exitlikeprocess.c'; then $(CYGPATH_W) 'lib_internal/util-exitlikeprocess.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-exitlikeprocess.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.o: lib_internal/util-isnumber.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumber.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.o `test -f 'lib_internal/util-isnumber.c' || echo '$(srcdir)/'`lib_internal/util-isnumber.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumber.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumber.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-isnumber.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.o `test -f 'lib_internal/util-isnumber.c' || echo '$(srcdir)/'`lib_internal/util-isnumber.c
-
-lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.obj: lib_internal/util-isnumber.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumber.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.obj `if test -f 'lib_internal/util-isnumber.c'; then $(CYGPATH_W) 'lib_internal/util-isnumber.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-isnumber.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumber.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumber.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-isnumber.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-isnumber.obj `if test -f 'lib_internal/util-isnumber.c'; then $(CYGPATH_W) 'lib_internal/util-isnumber.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-isnumber.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.o: lib_internal/util-isnumberunsigned.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumberunsigned.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.o `test -f 'lib_internal/util-isnumberunsigned.c' || echo '$(srcdir)/'`lib_internal/util-isnumberunsigned.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumberunsigned.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumberunsigned.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-isnumberunsigned.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.o `test -f 'lib_internal/util-isnumberunsigned.c' || echo '$(srcdir)/'`lib_internal/util-isnumberunsigned.c
-
-lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.obj: lib_internal/util-isnumberunsigned.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumberunsigned.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.obj `if test -f 'lib_internal/util-isnumberunsigned.c'; then $(CYGPATH_W) 'lib_internal/util-isnumberunsigned.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-isnumberunsigned.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumberunsigned.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-isnumberunsigned.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-isnumberunsigned.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-isnumberunsigned.obj `if test -f 'lib_internal/util-isnumberunsigned.c'; then $(CYGPATH_W) 'lib_internal/util-isnumberunsigned.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-isnumberunsigned.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.o: lib_internal/util-lockfile.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-lockfile.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.o `test -f 'lib_internal/util-lockfile.c' || echo '$(srcdir)/'`lib_internal/util-lockfile.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-lockfile.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-lockfile.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-lockfile.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.o `test -f 'lib_internal/util-lockfile.c' || echo '$(srcdir)/'`lib_internal/util-lockfile.c
-
-lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.obj: lib_internal/util-lockfile.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-lockfile.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.obj `if test -f 'lib_internal/util-lockfile.c'; then $(CYGPATH_W) 'lib_internal/util-lockfile.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-lockfile.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-lockfile.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-lockfile.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-lockfile.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-lockfile.obj `if test -f 'lib_internal/util-lockfile.c'; then $(CYGPATH_W) 'lib_internal/util-lockfile.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-lockfile.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.o: lib_internal/util-safechdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-safechdir.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.o `test -f 'lib_internal/util-safechdir.c' || echo '$(srcdir)/'`lib_internal/util-safechdir.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-safechdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-safechdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-safechdir.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.o `test -f 'lib_internal/util-safechdir.c' || echo '$(srcdir)/'`lib_internal/util-safechdir.c
-
-lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.obj: lib_internal/util-safechdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-safechdir.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.obj `if test -f 'lib_internal/util-safechdir.c'; then $(CYGPATH_W) 'lib_internal/util-safechdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-safechdir.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-safechdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-util-safechdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/util-safechdir.c' object='lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-util-safechdir.obj `if test -f 'lib_internal/util-safechdir.c'; then $(CYGPATH_W) 'lib_internal/util-safechdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/util-safechdir.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-mkdir.o: lib_internal/mkdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-mkdir.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-mkdir.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-mkdir.o `test -f 'lib_internal/mkdir.c' || echo '$(srcdir)/'`lib_internal/mkdir.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-mkdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-mkdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/mkdir.c' object='lib_internal/lib_internal_libinternal_glibc_a-mkdir.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-mkdir.o `test -f 'lib_internal/mkdir.c' || echo '$(srcdir)/'`lib_internal/mkdir.c
-
-lib_internal/lib_internal_libinternal_glibc_a-mkdir.obj: lib_internal/mkdir.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-mkdir.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-mkdir.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-mkdir.obj `if test -f 'lib_internal/mkdir.c'; then $(CYGPATH_W) 'lib_internal/mkdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/mkdir.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-mkdir.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-mkdir.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/mkdir.c' object='lib_internal/lib_internal_libinternal_glibc_a-mkdir.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-mkdir.obj `if test -f 'lib_internal/mkdir.c'; then $(CYGPATH_W) 'lib_internal/mkdir.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/mkdir.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.o: lib_internal/command-appendparameter.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-appendparameter.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.o `test -f 'lib_internal/command-appendparameter.c' || echo '$(srcdir)/'`lib_internal/command-appendparameter.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-appendparameter.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-appendparameter.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-appendparameter.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.o `test -f 'lib_internal/command-appendparameter.c' || echo '$(srcdir)/'`lib_internal/command-appendparameter.c
-
-lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.obj: lib_internal/command-appendparameter.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-appendparameter.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.obj `if test -f 'lib_internal/command-appendparameter.c'; then $(CYGPATH_W) 'lib_internal/command-appendparameter.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-appendparameter.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-appendparameter.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-appendparameter.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-appendparameter.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-appendparameter.obj `if test -f 'lib_internal/command-appendparameter.c'; then $(CYGPATH_W) 'lib_internal/command-appendparameter.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-appendparameter.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-command-setparams.o: lib_internal/command-setparams.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-setparams.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-setparams.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-setparams.o `test -f 'lib_internal/command-setparams.c' || echo '$(srcdir)/'`lib_internal/command-setparams.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-setparams.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-setparams.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-setparams.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-setparams.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-setparams.o `test -f 'lib_internal/command-setparams.c' || echo '$(srcdir)/'`lib_internal/command-setparams.c
-
-lib_internal/lib_internal_libinternal_glibc_a-command-setparams.obj: lib_internal/command-setparams.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-setparams.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-setparams.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-setparams.obj `if test -f 'lib_internal/command-setparams.c'; then $(CYGPATH_W) 'lib_internal/command-setparams.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-setparams.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-setparams.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-setparams.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-setparams.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-setparams.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-setparams.obj `if test -f 'lib_internal/command-setparams.c'; then $(CYGPATH_W) 'lib_internal/command-setparams.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-setparams.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-command-exec.o: lib_internal/command-exec.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-exec.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-exec.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-exec.o `test -f 'lib_internal/command-exec.c' || echo '$(srcdir)/'`lib_internal/command-exec.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-exec.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-exec.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-exec.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-exec.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-exec.o `test -f 'lib_internal/command-exec.c' || echo '$(srcdir)/'`lib_internal/command-exec.c
-
-lib_internal/lib_internal_libinternal_glibc_a-command-exec.obj: lib_internal/command-exec.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-exec.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-exec.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-exec.obj `if test -f 'lib_internal/command-exec.c'; then $(CYGPATH_W) 'lib_internal/command-exec.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-exec.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-exec.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-exec.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-exec.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-exec.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-exec.obj `if test -f 'lib_internal/command-exec.c'; then $(CYGPATH_W) 'lib_internal/command-exec.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-exec.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-command-free.o: lib_internal/command-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-free.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-free.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-free.o `test -f 'lib_internal/command-free.c' || echo '$(srcdir)/'`lib_internal/command-free.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-free.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-free.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-free.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-free.o `test -f 'lib_internal/command-free.c' || echo '$(srcdir)/'`lib_internal/command-free.c
-
-lib_internal/lib_internal_libinternal_glibc_a-command-free.obj: lib_internal/command-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-free.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-free.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-free.obj `if test -f 'lib_internal/command-free.c'; then $(CYGPATH_W) 'lib_internal/command-free.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-free.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-free.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-free.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-free.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-free.obj `if test -f 'lib_internal/command-free.c'; then $(CYGPATH_W) 'lib_internal/command-free.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-free.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-command-init.o: lib_internal/command-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-init.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-init.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-init.o `test -f 'lib_internal/command-init.c' || echo '$(srcdir)/'`lib_internal/command-init.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-init.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-init.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-init.o `test -f 'lib_internal/command-init.c' || echo '$(srcdir)/'`lib_internal/command-init.c
-
-lib_internal/lib_internal_libinternal_glibc_a-command-init.obj: lib_internal/command-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-init.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-init.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-init.obj `if test -f 'lib_internal/command-init.c'; then $(CYGPATH_W) 'lib_internal/command-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-init.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-init.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-init.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-init.obj `if test -f 'lib_internal/command-init.c'; then $(CYGPATH_W) 'lib_internal/command-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-init.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-command-reset.o: lib_internal/command-reset.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-reset.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-reset.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-reset.o `test -f 'lib_internal/command-reset.c' || echo '$(srcdir)/'`lib_internal/command-reset.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-reset.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-reset.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-reset.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-reset.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-reset.o `test -f 'lib_internal/command-reset.c' || echo '$(srcdir)/'`lib_internal/command-reset.c
-
-lib_internal/lib_internal_libinternal_glibc_a-command-reset.obj: lib_internal/command-reset.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-reset.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-reset.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-reset.obj `if test -f 'lib_internal/command-reset.c'; then $(CYGPATH_W) 'lib_internal/command-reset.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-reset.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-reset.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-reset.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-reset.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-reset.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-reset.obj `if test -f 'lib_internal/command-reset.c'; then $(CYGPATH_W) 'lib_internal/command-reset.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-reset.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-command-wait.o: lib_internal/command-wait.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-wait.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-wait.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-wait.o `test -f 'lib_internal/command-wait.c' || echo '$(srcdir)/'`lib_internal/command-wait.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-wait.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-wait.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-wait.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-wait.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-wait.o `test -f 'lib_internal/command-wait.c' || echo '$(srcdir)/'`lib_internal/command-wait.c
-
-lib_internal/lib_internal_libinternal_glibc_a-command-wait.obj: lib_internal/command-wait.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-command-wait.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-wait.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-command-wait.obj `if test -f 'lib_internal/command-wait.c'; then $(CYGPATH_W) 'lib_internal/command-wait.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-wait.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-wait.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-command-wait.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/command-wait.c' object='lib_internal/lib_internal_libinternal_glibc_a-command-wait.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-command-wait.obj `if test -f 'lib_internal/command-wait.c'; then $(CYGPATH_W) 'lib_internal/command-wait.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/command-wait.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.o: lib_internal/filecfg-iteratemultiline.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.o `test -f 'lib_internal/filecfg-iteratemultiline.c' || echo '$(srcdir)/'`lib_internal/filecfg-iteratemultiline.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-iteratemultiline.c' object='lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.o `test -f 'lib_internal/filecfg-iteratemultiline.c' || echo '$(srcdir)/'`lib_internal/filecfg-iteratemultiline.c
-
-lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.obj: lib_internal/filecfg-iteratemultiline.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.obj `if test -f 'lib_internal/filecfg-iteratemultiline.c'; then $(CYGPATH_W) 'lib_internal/filecfg-iteratemultiline.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-iteratemultiline.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-iteratemultiline.c' object='lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-iteratemultiline.obj `if test -f 'lib_internal/filecfg-iteratemultiline.c'; then $(CYGPATH_W) 'lib_internal/filecfg-iteratemultiline.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-iteratemultiline.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.o: lib_internal/filecfg-readentryflag.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentryflag.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.o `test -f 'lib_internal/filecfg-readentryflag.c' || echo '$(srcdir)/'`lib_internal/filecfg-readentryflag.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentryflag.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentryflag.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-readentryflag.c' object='lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.o `test -f 'lib_internal/filecfg-readentryflag.c' || echo '$(srcdir)/'`lib_internal/filecfg-readentryflag.c
-
-lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.obj: lib_internal/filecfg-readentryflag.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentryflag.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.obj `if test -f 'lib_internal/filecfg-readentryflag.c'; then $(CYGPATH_W) 'lib_internal/filecfg-readentryflag.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-readentryflag.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentryflag.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentryflag.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-readentryflag.c' object='lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentryflag.obj `if test -f 'lib_internal/filecfg-readentryflag.c'; then $(CYGPATH_W) 'lib_internal/filecfg-readentryflag.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-readentryflag.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.o: lib_internal/filecfg-readentrystr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentrystr.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.o `test -f 'lib_internal/filecfg-readentrystr.c' || echo '$(srcdir)/'`lib_internal/filecfg-readentrystr.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentrystr.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentrystr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-readentrystr.c' object='lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.o `test -f 'lib_internal/filecfg-readentrystr.c' || echo '$(srcdir)/'`lib_internal/filecfg-readentrystr.c
-
-lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.obj: lib_internal/filecfg-readentrystr.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentrystr.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.obj `if test -f 'lib_internal/filecfg-readentrystr.c'; then $(CYGPATH_W) 'lib_internal/filecfg-readentrystr.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-readentrystr.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentrystr.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-filecfg-readentrystr.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/filecfg-readentrystr.c' object='lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-filecfg-readentrystr.obj `if test -f 'lib_internal/filecfg-readentrystr.c'; then $(CYGPATH_W) 'lib_internal/filecfg-readentrystr.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/filecfg-readentrystr.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.o: lib_internal/matchlist-initbyvserver.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.o `test -f 'lib_internal/matchlist-initbyvserver.c' || echo '$(srcdir)/'`lib_internal/matchlist-initbyvserver.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initbyvserver.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.o `test -f 'lib_internal/matchlist-initbyvserver.c' || echo '$(srcdir)/'`lib_internal/matchlist-initbyvserver.c
-
-lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.obj: lib_internal/matchlist-initbyvserver.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.obj `if test -f 'lib_internal/matchlist-initbyvserver.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initbyvserver.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initbyvserver.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchlist-initbyvserver.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchlist-initbyvserver.obj `if test -f 'lib_internal/matchlist-initbyvserver.c'; then $(CYGPATH_W) 'lib_internal/matchlist-initbyvserver.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchlist-initbyvserver.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.o: lib_internal/matchvserverinfo-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-init.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.o `test -f 'lib_internal/matchvserverinfo-init.c' || echo '$(srcdir)/'`lib_internal/matchvserverinfo-init.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchvserverinfo-init.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.o `test -f 'lib_internal/matchvserverinfo-init.c' || echo '$(srcdir)/'`lib_internal/matchvserverinfo-init.c
-
-lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.obj: lib_internal/matchvserverinfo-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-init.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.obj `if test -f 'lib_internal/matchvserverinfo-init.c'; then $(CYGPATH_W) 'lib_internal/matchvserverinfo-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchvserverinfo-init.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-init.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-matchvserverinfo-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/matchvserverinfo-init.c' object='lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-matchvserverinfo-init.obj `if test -f 'lib_internal/matchvserverinfo-init.c'; then $(CYGPATH_W) 'lib_internal/matchvserverinfo-init.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/matchvserverinfo-init.c'; fi`
-
-lib_internal/lib_internal_libinternal_glibc_a-unify-copy.o: lib_internal/unify-copy.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-unify-copy.o -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-copy.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-copy.o `test -f 'lib_internal/unify-copy.c' || echo '$(srcdir)/'`lib_internal/unify-copy.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-copy.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-copy.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-copy.c' object='lib_internal/lib_internal_libinternal_glibc_a-unify-copy.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-copy.o `test -f 'lib_internal/unify-copy.c' || echo '$(srcdir)/'`lib_internal/unify-copy.c
-
-lib_internal/lib_internal_libinternal_glibc_a-unify-copy.obj: lib_internal/unify-copy.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/lib_internal_libinternal_glibc_a-unify-copy.obj -MD -MP -MF lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-copy.Tpo -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-copy.obj `if test -f 'lib_internal/unify-copy.c'; then $(CYGPATH_W) 'lib_internal/unify-copy.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-copy.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-copy.Tpo lib_internal/$(DEPDIR)/lib_internal_libinternal_glibc_a-unify-copy.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/unify-copy.c' object='lib_internal/lib_internal_libinternal_glibc_a-unify-copy.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_libinternal_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/lib_internal_libinternal_glibc_a-unify-copy.obj `if test -f 'lib_internal/unify-copy.c'; then $(CYGPATH_W) 'lib_internal/unify-copy.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/unify-copy.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-clear.o: ensc_vector/vector-clear.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-clear.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-clear.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-clear.o `test -f 'ensc_vector/vector-clear.c' || echo '$(srcdir)/'`ensc_vector/vector-clear.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-clear.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-clear.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-clear.c' object='ensc_vector/libensc_vector_diet_a-vector-clear.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-clear.o `test -f 'ensc_vector/vector-clear.c' || echo '$(srcdir)/'`ensc_vector/vector-clear.c
-
-ensc_vector/libensc_vector_diet_a-vector-clear.obj: ensc_vector/vector-clear.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-clear.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-clear.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-clear.obj `if test -f 'ensc_vector/vector-clear.c'; then $(CYGPATH_W) 'ensc_vector/vector-clear.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-clear.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-clear.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-clear.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-clear.c' object='ensc_vector/libensc_vector_diet_a-vector-clear.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-clear.obj `if test -f 'ensc_vector/vector-clear.c'; then $(CYGPATH_W) 'ensc_vector/vector-clear.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-clear.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-foreach.o: ensc_vector/vector-foreach.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-foreach.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-foreach.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-foreach.o `test -f 'ensc_vector/vector-foreach.c' || echo '$(srcdir)/'`ensc_vector/vector-foreach.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-foreach.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-foreach.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-foreach.c' object='ensc_vector/libensc_vector_diet_a-vector-foreach.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-foreach.o `test -f 'ensc_vector/vector-foreach.c' || echo '$(srcdir)/'`ensc_vector/vector-foreach.c
-
-ensc_vector/libensc_vector_diet_a-vector-foreach.obj: ensc_vector/vector-foreach.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-foreach.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-foreach.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-foreach.obj `if test -f 'ensc_vector/vector-foreach.c'; then $(CYGPATH_W) 'ensc_vector/vector-foreach.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-foreach.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-foreach.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-foreach.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-foreach.c' object='ensc_vector/libensc_vector_diet_a-vector-foreach.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-foreach.obj `if test -f 'ensc_vector/vector-foreach.c'; then $(CYGPATH_W) 'ensc_vector/vector-foreach.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-foreach.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-free.o: ensc_vector/vector-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-free.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-free.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-free.o `test -f 'ensc_vector/vector-free.c' || echo '$(srcdir)/'`ensc_vector/vector-free.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-free.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-free.c' object='ensc_vector/libensc_vector_diet_a-vector-free.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-free.o `test -f 'ensc_vector/vector-free.c' || echo '$(srcdir)/'`ensc_vector/vector-free.c
-
-ensc_vector/libensc_vector_diet_a-vector-free.obj: ensc_vector/vector-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-free.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-free.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-free.obj `if test -f 'ensc_vector/vector-free.c'; then $(CYGPATH_W) 'ensc_vector/vector-free.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-free.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-free.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-free.c' object='ensc_vector/libensc_vector_diet_a-vector-free.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-free.obj `if test -f 'ensc_vector/vector-free.c'; then $(CYGPATH_W) 'ensc_vector/vector-free.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-free.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-init.o: ensc_vector/vector-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-init.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-init.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-init.o `test -f 'ensc_vector/vector-init.c' || echo '$(srcdir)/'`ensc_vector/vector-init.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-init.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-init.c' object='ensc_vector/libensc_vector_diet_a-vector-init.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-init.o `test -f 'ensc_vector/vector-init.c' || echo '$(srcdir)/'`ensc_vector/vector-init.c
-
-ensc_vector/libensc_vector_diet_a-vector-init.obj: ensc_vector/vector-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-init.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-init.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-init.obj `if test -f 'ensc_vector/vector-init.c'; then $(CYGPATH_W) 'ensc_vector/vector-init.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-init.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-init.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-init.c' object='ensc_vector/libensc_vector_diet_a-vector-init.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-init.obj `if test -f 'ensc_vector/vector-init.c'; then $(CYGPATH_W) 'ensc_vector/vector-init.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-init.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-insert.o: ensc_vector/vector-insert.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-insert.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-insert.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-insert.o `test -f 'ensc_vector/vector-insert.c' || echo '$(srcdir)/'`ensc_vector/vector-insert.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-insert.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-insert.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-insert.c' object='ensc_vector/libensc_vector_diet_a-vector-insert.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-insert.o `test -f 'ensc_vector/vector-insert.c' || echo '$(srcdir)/'`ensc_vector/vector-insert.c
-
-ensc_vector/libensc_vector_diet_a-vector-insert.obj: ensc_vector/vector-insert.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-insert.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-insert.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-insert.obj `if test -f 'ensc_vector/vector-insert.c'; then $(CYGPATH_W) 'ensc_vector/vector-insert.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-insert.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-insert.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-insert.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-insert.c' object='ensc_vector/libensc_vector_diet_a-vector-insert.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-insert.obj `if test -f 'ensc_vector/vector-insert.c'; then $(CYGPATH_W) 'ensc_vector/vector-insert.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-insert.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-popback.o: ensc_vector/vector-popback.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-popback.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-popback.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-popback.o `test -f 'ensc_vector/vector-popback.c' || echo '$(srcdir)/'`ensc_vector/vector-popback.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-popback.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-popback.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-popback.c' object='ensc_vector/libensc_vector_diet_a-vector-popback.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-popback.o `test -f 'ensc_vector/vector-popback.c' || echo '$(srcdir)/'`ensc_vector/vector-popback.c
-
-ensc_vector/libensc_vector_diet_a-vector-popback.obj: ensc_vector/vector-popback.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-popback.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-popback.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-popback.obj `if test -f 'ensc_vector/vector-popback.c'; then $(CYGPATH_W) 'ensc_vector/vector-popback.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-popback.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-popback.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-popback.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-popback.c' object='ensc_vector/libensc_vector_diet_a-vector-popback.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-popback.obj `if test -f 'ensc_vector/vector-popback.c'; then $(CYGPATH_W) 'ensc_vector/vector-popback.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-popback.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-pushback.o: ensc_vector/vector-pushback.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-pushback.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-pushback.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-pushback.o `test -f 'ensc_vector/vector-pushback.c' || echo '$(srcdir)/'`ensc_vector/vector-pushback.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-pushback.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-pushback.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-pushback.c' object='ensc_vector/libensc_vector_diet_a-vector-pushback.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-pushback.o `test -f 'ensc_vector/vector-pushback.c' || echo '$(srcdir)/'`ensc_vector/vector-pushback.c
-
-ensc_vector/libensc_vector_diet_a-vector-pushback.obj: ensc_vector/vector-pushback.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-pushback.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-pushback.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-pushback.obj `if test -f 'ensc_vector/vector-pushback.c'; then $(CYGPATH_W) 'ensc_vector/vector-pushback.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-pushback.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-pushback.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-pushback.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-pushback.c' object='ensc_vector/libensc_vector_diet_a-vector-pushback.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-pushback.obj `if test -f 'ensc_vector/vector-pushback.c'; then $(CYGPATH_W) 'ensc_vector/vector-pushback.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-pushback.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-resize.o: ensc_vector/vector-resize.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-resize.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-resize.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-resize.o `test -f 'ensc_vector/vector-resize.c' || echo '$(srcdir)/'`ensc_vector/vector-resize.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-resize.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-resize.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-resize.c' object='ensc_vector/libensc_vector_diet_a-vector-resize.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-resize.o `test -f 'ensc_vector/vector-resize.c' || echo '$(srcdir)/'`ensc_vector/vector-resize.c
-
-ensc_vector/libensc_vector_diet_a-vector-resize.obj: ensc_vector/vector-resize.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-resize.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-resize.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-resize.obj `if test -f 'ensc_vector/vector-resize.c'; then $(CYGPATH_W) 'ensc_vector/vector-resize.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-resize.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-resize.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-resize.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-resize.c' object='ensc_vector/libensc_vector_diet_a-vector-resize.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-resize.obj `if test -f 'ensc_vector/vector-resize.c'; then $(CYGPATH_W) 'ensc_vector/vector-resize.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-resize.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-search.o: ensc_vector/vector-search.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-search.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-search.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-search.o `test -f 'ensc_vector/vector-search.c' || echo '$(srcdir)/'`ensc_vector/vector-search.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-search.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-search.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-search.c' object='ensc_vector/libensc_vector_diet_a-vector-search.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-search.o `test -f 'ensc_vector/vector-search.c' || echo '$(srcdir)/'`ensc_vector/vector-search.c
-
-ensc_vector/libensc_vector_diet_a-vector-search.obj: ensc_vector/vector-search.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-search.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-search.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-search.obj `if test -f 'ensc_vector/vector-search.c'; then $(CYGPATH_W) 'ensc_vector/vector-search.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-search.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-search.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-search.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-search.c' object='ensc_vector/libensc_vector_diet_a-vector-search.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-search.obj `if test -f 'ensc_vector/vector-search.c'; then $(CYGPATH_W) 'ensc_vector/vector-search.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-search.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-searchselforg.o: ensc_vector/vector-searchselforg.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-searchselforg.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-searchselforg.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-searchselforg.o `test -f 'ensc_vector/vector-searchselforg.c' || echo '$(srcdir)/'`ensc_vector/vector-searchselforg.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-searchselforg.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-searchselforg.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-searchselforg.c' object='ensc_vector/libensc_vector_diet_a-vector-searchselforg.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-searchselforg.o `test -f 'ensc_vector/vector-searchselforg.c' || echo '$(srcdir)/'`ensc_vector/vector-searchselforg.c
-
-ensc_vector/libensc_vector_diet_a-vector-searchselforg.obj: ensc_vector/vector-searchselforg.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-searchselforg.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-searchselforg.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-searchselforg.obj `if test -f 'ensc_vector/vector-searchselforg.c'; then $(CYGPATH_W) 'ensc_vector/vector-searchselforg.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-searchselforg.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-searchselforg.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-searchselforg.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-searchselforg.c' object='ensc_vector/libensc_vector_diet_a-vector-searchselforg.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-searchselforg.obj `if test -f 'ensc_vector/vector-searchselforg.c'; then $(CYGPATH_W) 'ensc_vector/vector-searchselforg.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-searchselforg.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-sort.o: ensc_vector/vector-sort.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-sort.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-sort.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-sort.o `test -f 'ensc_vector/vector-sort.c' || echo '$(srcdir)/'`ensc_vector/vector-sort.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-sort.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-sort.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-sort.c' object='ensc_vector/libensc_vector_diet_a-vector-sort.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-sort.o `test -f 'ensc_vector/vector-sort.c' || echo '$(srcdir)/'`ensc_vector/vector-sort.c
-
-ensc_vector/libensc_vector_diet_a-vector-sort.obj: ensc_vector/vector-sort.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-sort.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-sort.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-sort.obj `if test -f 'ensc_vector/vector-sort.c'; then $(CYGPATH_W) 'ensc_vector/vector-sort.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-sort.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-sort.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-sort.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-sort.c' object='ensc_vector/libensc_vector_diet_a-vector-sort.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-sort.obj `if test -f 'ensc_vector/vector-sort.c'; then $(CYGPATH_W) 'ensc_vector/vector-sort.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-sort.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-unique.o: ensc_vector/vector-unique.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-unique.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-unique.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-unique.o `test -f 'ensc_vector/vector-unique.c' || echo '$(srcdir)/'`ensc_vector/vector-unique.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-unique.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-unique.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-unique.c' object='ensc_vector/libensc_vector_diet_a-vector-unique.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-unique.o `test -f 'ensc_vector/vector-unique.c' || echo '$(srcdir)/'`ensc_vector/vector-unique.c
-
-ensc_vector/libensc_vector_diet_a-vector-unique.obj: ensc_vector/vector-unique.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-unique.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-unique.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-unique.obj `if test -f 'ensc_vector/vector-unique.c'; then $(CYGPATH_W) 'ensc_vector/vector-unique.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-unique.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-unique.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-unique.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-unique.c' object='ensc_vector/libensc_vector_diet_a-vector-unique.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-unique.obj `if test -f 'ensc_vector/vector-unique.c'; then $(CYGPATH_W) 'ensc_vector/vector-unique.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-unique.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-vector-zeroend.o: ensc_vector/vector-zeroend.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-zeroend.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-zeroend.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-zeroend.o `test -f 'ensc_vector/vector-zeroend.c' || echo '$(srcdir)/'`ensc_vector/vector-zeroend.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-zeroend.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-zeroend.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-zeroend.c' object='ensc_vector/libensc_vector_diet_a-vector-zeroend.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-zeroend.o `test -f 'ensc_vector/vector-zeroend.c' || echo '$(srcdir)/'`ensc_vector/vector-zeroend.c
-
-ensc_vector/libensc_vector_diet_a-vector-zeroend.obj: ensc_vector/vector-zeroend.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-vector-zeroend.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-zeroend.Tpo -c -o ensc_vector/libensc_vector_diet_a-vector-zeroend.obj `if test -f 'ensc_vector/vector-zeroend.c'; then $(CYGPATH_W) 'ensc_vector/vector-zeroend.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-zeroend.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-zeroend.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-vector-zeroend.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-zeroend.c' object='ensc_vector/libensc_vector_diet_a-vector-zeroend.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-vector-zeroend.obj `if test -f 'ensc_vector/vector-zeroend.c'; then $(CYGPATH_W) 'ensc_vector/vector-zeroend.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-zeroend.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-list-at.o: ensc_vector/list-at.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-at.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-at.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-at.o `test -f 'ensc_vector/list-at.c' || echo '$(srcdir)/'`ensc_vector/list-at.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-at.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-at.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-at.c' object='ensc_vector/libensc_vector_diet_a-list-at.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-at.o `test -f 'ensc_vector/list-at.c' || echo '$(srcdir)/'`ensc_vector/list-at.c
-
-ensc_vector/libensc_vector_diet_a-list-at.obj: ensc_vector/list-at.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-at.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-at.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-at.obj `if test -f 'ensc_vector/list-at.c'; then $(CYGPATH_W) 'ensc_vector/list-at.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-at.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-at.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-at.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-at.c' object='ensc_vector/libensc_vector_diet_a-list-at.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-at.obj `if test -f 'ensc_vector/list-at.c'; then $(CYGPATH_W) 'ensc_vector/list-at.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-at.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-list-add.o: ensc_vector/list-add.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-add.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-add.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-add.o `test -f 'ensc_vector/list-add.c' || echo '$(srcdir)/'`ensc_vector/list-add.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-add.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-add.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-add.c' object='ensc_vector/libensc_vector_diet_a-list-add.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-add.o `test -f 'ensc_vector/list-add.c' || echo '$(srcdir)/'`ensc_vector/list-add.c
-
-ensc_vector/libensc_vector_diet_a-list-add.obj: ensc_vector/list-add.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-add.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-add.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-add.obj `if test -f 'ensc_vector/list-add.c'; then $(CYGPATH_W) 'ensc_vector/list-add.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-add.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-add.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-add.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-add.c' object='ensc_vector/libensc_vector_diet_a-list-add.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-add.obj `if test -f 'ensc_vector/list-add.c'; then $(CYGPATH_W) 'ensc_vector/list-add.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-add.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-list-free.o: ensc_vector/list-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-free.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-free.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-free.o `test -f 'ensc_vector/list-free.c' || echo '$(srcdir)/'`ensc_vector/list-free.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-free.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-free.c' object='ensc_vector/libensc_vector_diet_a-list-free.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-free.o `test -f 'ensc_vector/list-free.c' || echo '$(srcdir)/'`ensc_vector/list-free.c
-
-ensc_vector/libensc_vector_diet_a-list-free.obj: ensc_vector/list-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-free.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-free.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-free.obj `if test -f 'ensc_vector/list-free.c'; then $(CYGPATH_W) 'ensc_vector/list-free.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-free.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-free.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-free.c' object='ensc_vector/libensc_vector_diet_a-list-free.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-free.obj `if test -f 'ensc_vector/list-free.c'; then $(CYGPATH_W) 'ensc_vector/list-free.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-free.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-list-init.o: ensc_vector/list-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-init.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-init.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-init.o `test -f 'ensc_vector/list-init.c' || echo '$(srcdir)/'`ensc_vector/list-init.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-init.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-init.c' object='ensc_vector/libensc_vector_diet_a-list-init.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-init.o `test -f 'ensc_vector/list-init.c' || echo '$(srcdir)/'`ensc_vector/list-init.c
-
-ensc_vector/libensc_vector_diet_a-list-init.obj: ensc_vector/list-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-init.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-init.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-init.obj `if test -f 'ensc_vector/list-init.c'; then $(CYGPATH_W) 'ensc_vector/list-init.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-init.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-init.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-init.c' object='ensc_vector/libensc_vector_diet_a-list-init.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-init.obj `if test -f 'ensc_vector/list-init.c'; then $(CYGPATH_W) 'ensc_vector/list-init.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-init.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-list-insertinternal.o: ensc_vector/list-insertinternal.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-insertinternal.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-insertinternal.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-insertinternal.o `test -f 'ensc_vector/list-insertinternal.c' || echo '$(srcdir)/'`ensc_vector/list-insertinternal.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-insertinternal.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-insertinternal.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-insertinternal.c' object='ensc_vector/libensc_vector_diet_a-list-insertinternal.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-insertinternal.o `test -f 'ensc_vector/list-insertinternal.c' || echo '$(srcdir)/'`ensc_vector/list-insertinternal.c
-
-ensc_vector/libensc_vector_diet_a-list-insertinternal.obj: ensc_vector/list-insertinternal.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-insertinternal.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-insertinternal.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-insertinternal.obj `if test -f 'ensc_vector/list-insertinternal.c'; then $(CYGPATH_W) 'ensc_vector/list-insertinternal.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-insertinternal.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-insertinternal.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-insertinternal.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-insertinternal.c' object='ensc_vector/libensc_vector_diet_a-list-insertinternal.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-insertinternal.obj `if test -f 'ensc_vector/list-insertinternal.c'; then $(CYGPATH_W) 'ensc_vector/list-insertinternal.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-insertinternal.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-list-search.o: ensc_vector/list-search.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-search.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-search.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-search.o `test -f 'ensc_vector/list-search.c' || echo '$(srcdir)/'`ensc_vector/list-search.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-search.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-search.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-search.c' object='ensc_vector/libensc_vector_diet_a-list-search.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-search.o `test -f 'ensc_vector/list-search.c' || echo '$(srcdir)/'`ensc_vector/list-search.c
-
-ensc_vector/libensc_vector_diet_a-list-search.obj: ensc_vector/list-search.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-search.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-search.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-search.obj `if test -f 'ensc_vector/list-search.c'; then $(CYGPATH_W) 'ensc_vector/list-search.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-search.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-search.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-search.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-search.c' object='ensc_vector/libensc_vector_diet_a-list-search.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-search.obj `if test -f 'ensc_vector/list-search.c'; then $(CYGPATH_W) 'ensc_vector/list-search.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-search.c'; fi`
-
-ensc_vector/libensc_vector_diet_a-list-searchselforg.o: ensc_vector/list-searchselforg.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-searchselforg.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-searchselforg.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-searchselforg.o `test -f 'ensc_vector/list-searchselforg.c' || echo '$(srcdir)/'`ensc_vector/list-searchselforg.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-searchselforg.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-searchselforg.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-searchselforg.c' object='ensc_vector/libensc_vector_diet_a-list-searchselforg.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-searchselforg.o `test -f 'ensc_vector/list-searchselforg.c' || echo '$(srcdir)/'`ensc_vector/list-searchselforg.c
-
-ensc_vector/libensc_vector_diet_a-list-searchselforg.obj: ensc_vector/list-searchselforg.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_diet_a-list-searchselforg.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-searchselforg.Tpo -c -o ensc_vector/libensc_vector_diet_a-list-searchselforg.obj `if test -f 'ensc_vector/list-searchselforg.c'; then $(CYGPATH_W) 'ensc_vector/list-searchselforg.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-searchselforg.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-searchselforg.Tpo ensc_vector/$(DEPDIR)/libensc_vector_diet_a-list-searchselforg.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-searchselforg.c' object='ensc_vector/libensc_vector_diet_a-list-searchselforg.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_diet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_diet_a-list-searchselforg.obj `if test -f 'ensc_vector/list-searchselforg.c'; then $(CYGPATH_W) 'ensc_vector/list-searchselforg.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-searchselforg.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-clear.o: ensc_vector/vector-clear.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-clear.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-clear.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-clear.o `test -f 'ensc_vector/vector-clear.c' || echo '$(srcdir)/'`ensc_vector/vector-clear.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-clear.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-clear.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-clear.c' object='ensc_vector/libensc_vector_glibc_a-vector-clear.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-clear.o `test -f 'ensc_vector/vector-clear.c' || echo '$(srcdir)/'`ensc_vector/vector-clear.c
-
-ensc_vector/libensc_vector_glibc_a-vector-clear.obj: ensc_vector/vector-clear.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-clear.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-clear.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-clear.obj `if test -f 'ensc_vector/vector-clear.c'; then $(CYGPATH_W) 'ensc_vector/vector-clear.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-clear.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-clear.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-clear.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-clear.c' object='ensc_vector/libensc_vector_glibc_a-vector-clear.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-clear.obj `if test -f 'ensc_vector/vector-clear.c'; then $(CYGPATH_W) 'ensc_vector/vector-clear.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-clear.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-foreach.o: ensc_vector/vector-foreach.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-foreach.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-foreach.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-foreach.o `test -f 'ensc_vector/vector-foreach.c' || echo '$(srcdir)/'`ensc_vector/vector-foreach.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-foreach.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-foreach.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-foreach.c' object='ensc_vector/libensc_vector_glibc_a-vector-foreach.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-foreach.o `test -f 'ensc_vector/vector-foreach.c' || echo '$(srcdir)/'`ensc_vector/vector-foreach.c
-
-ensc_vector/libensc_vector_glibc_a-vector-foreach.obj: ensc_vector/vector-foreach.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-foreach.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-foreach.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-foreach.obj `if test -f 'ensc_vector/vector-foreach.c'; then $(CYGPATH_W) 'ensc_vector/vector-foreach.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-foreach.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-foreach.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-foreach.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-foreach.c' object='ensc_vector/libensc_vector_glibc_a-vector-foreach.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-foreach.obj `if test -f 'ensc_vector/vector-foreach.c'; then $(CYGPATH_W) 'ensc_vector/vector-foreach.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-foreach.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-free.o: ensc_vector/vector-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-free.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-free.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-free.o `test -f 'ensc_vector/vector-free.c' || echo '$(srcdir)/'`ensc_vector/vector-free.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-free.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-free.c' object='ensc_vector/libensc_vector_glibc_a-vector-free.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-free.o `test -f 'ensc_vector/vector-free.c' || echo '$(srcdir)/'`ensc_vector/vector-free.c
-
-ensc_vector/libensc_vector_glibc_a-vector-free.obj: ensc_vector/vector-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-free.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-free.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-free.obj `if test -f 'ensc_vector/vector-free.c'; then $(CYGPATH_W) 'ensc_vector/vector-free.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-free.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-free.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-free.c' object='ensc_vector/libensc_vector_glibc_a-vector-free.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-free.obj `if test -f 'ensc_vector/vector-free.c'; then $(CYGPATH_W) 'ensc_vector/vector-free.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-free.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-init.o: ensc_vector/vector-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-init.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-init.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-init.o `test -f 'ensc_vector/vector-init.c' || echo '$(srcdir)/'`ensc_vector/vector-init.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-init.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-init.c' object='ensc_vector/libensc_vector_glibc_a-vector-init.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-init.o `test -f 'ensc_vector/vector-init.c' || echo '$(srcdir)/'`ensc_vector/vector-init.c
-
-ensc_vector/libensc_vector_glibc_a-vector-init.obj: ensc_vector/vector-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-init.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-init.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-init.obj `if test -f 'ensc_vector/vector-init.c'; then $(CYGPATH_W) 'ensc_vector/vector-init.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-init.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-init.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-init.c' object='ensc_vector/libensc_vector_glibc_a-vector-init.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-init.obj `if test -f 'ensc_vector/vector-init.c'; then $(CYGPATH_W) 'ensc_vector/vector-init.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-init.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-insert.o: ensc_vector/vector-insert.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-insert.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-insert.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-insert.o `test -f 'ensc_vector/vector-insert.c' || echo '$(srcdir)/'`ensc_vector/vector-insert.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-insert.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-insert.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-insert.c' object='ensc_vector/libensc_vector_glibc_a-vector-insert.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-insert.o `test -f 'ensc_vector/vector-insert.c' || echo '$(srcdir)/'`ensc_vector/vector-insert.c
-
-ensc_vector/libensc_vector_glibc_a-vector-insert.obj: ensc_vector/vector-insert.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-insert.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-insert.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-insert.obj `if test -f 'ensc_vector/vector-insert.c'; then $(CYGPATH_W) 'ensc_vector/vector-insert.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-insert.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-insert.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-insert.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-insert.c' object='ensc_vector/libensc_vector_glibc_a-vector-insert.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-insert.obj `if test -f 'ensc_vector/vector-insert.c'; then $(CYGPATH_W) 'ensc_vector/vector-insert.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-insert.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-popback.o: ensc_vector/vector-popback.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-popback.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-popback.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-popback.o `test -f 'ensc_vector/vector-popback.c' || echo '$(srcdir)/'`ensc_vector/vector-popback.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-popback.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-popback.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-popback.c' object='ensc_vector/libensc_vector_glibc_a-vector-popback.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-popback.o `test -f 'ensc_vector/vector-popback.c' || echo '$(srcdir)/'`ensc_vector/vector-popback.c
-
-ensc_vector/libensc_vector_glibc_a-vector-popback.obj: ensc_vector/vector-popback.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-popback.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-popback.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-popback.obj `if test -f 'ensc_vector/vector-popback.c'; then $(CYGPATH_W) 'ensc_vector/vector-popback.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-popback.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-popback.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-popback.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-popback.c' object='ensc_vector/libensc_vector_glibc_a-vector-popback.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-popback.obj `if test -f 'ensc_vector/vector-popback.c'; then $(CYGPATH_W) 'ensc_vector/vector-popback.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-popback.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-pushback.o: ensc_vector/vector-pushback.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-pushback.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-pushback.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-pushback.o `test -f 'ensc_vector/vector-pushback.c' || echo '$(srcdir)/'`ensc_vector/vector-pushback.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-pushback.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-pushback.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-pushback.c' object='ensc_vector/libensc_vector_glibc_a-vector-pushback.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-pushback.o `test -f 'ensc_vector/vector-pushback.c' || echo '$(srcdir)/'`ensc_vector/vector-pushback.c
-
-ensc_vector/libensc_vector_glibc_a-vector-pushback.obj: ensc_vector/vector-pushback.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-pushback.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-pushback.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-pushback.obj `if test -f 'ensc_vector/vector-pushback.c'; then $(CYGPATH_W) 'ensc_vector/vector-pushback.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-pushback.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-pushback.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-pushback.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-pushback.c' object='ensc_vector/libensc_vector_glibc_a-vector-pushback.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-pushback.obj `if test -f 'ensc_vector/vector-pushback.c'; then $(CYGPATH_W) 'ensc_vector/vector-pushback.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-pushback.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-resize.o: ensc_vector/vector-resize.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-resize.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-resize.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-resize.o `test -f 'ensc_vector/vector-resize.c' || echo '$(srcdir)/'`ensc_vector/vector-resize.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-resize.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-resize.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-resize.c' object='ensc_vector/libensc_vector_glibc_a-vector-resize.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-resize.o `test -f 'ensc_vector/vector-resize.c' || echo '$(srcdir)/'`ensc_vector/vector-resize.c
-
-ensc_vector/libensc_vector_glibc_a-vector-resize.obj: ensc_vector/vector-resize.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-resize.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-resize.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-resize.obj `if test -f 'ensc_vector/vector-resize.c'; then $(CYGPATH_W) 'ensc_vector/vector-resize.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-resize.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-resize.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-resize.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-resize.c' object='ensc_vector/libensc_vector_glibc_a-vector-resize.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-resize.obj `if test -f 'ensc_vector/vector-resize.c'; then $(CYGPATH_W) 'ensc_vector/vector-resize.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-resize.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-search.o: ensc_vector/vector-search.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-search.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-search.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-search.o `test -f 'ensc_vector/vector-search.c' || echo '$(srcdir)/'`ensc_vector/vector-search.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-search.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-search.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-search.c' object='ensc_vector/libensc_vector_glibc_a-vector-search.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-search.o `test -f 'ensc_vector/vector-search.c' || echo '$(srcdir)/'`ensc_vector/vector-search.c
-
-ensc_vector/libensc_vector_glibc_a-vector-search.obj: ensc_vector/vector-search.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-search.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-search.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-search.obj `if test -f 'ensc_vector/vector-search.c'; then $(CYGPATH_W) 'ensc_vector/vector-search.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-search.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-search.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-search.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-search.c' object='ensc_vector/libensc_vector_glibc_a-vector-search.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-search.obj `if test -f 'ensc_vector/vector-search.c'; then $(CYGPATH_W) 'ensc_vector/vector-search.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-search.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-searchselforg.o: ensc_vector/vector-searchselforg.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-searchselforg.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-searchselforg.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-searchselforg.o `test -f 'ensc_vector/vector-searchselforg.c' || echo '$(srcdir)/'`ensc_vector/vector-searchselforg.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-searchselforg.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-searchselforg.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-searchselforg.c' object='ensc_vector/libensc_vector_glibc_a-vector-searchselforg.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-searchselforg.o `test -f 'ensc_vector/vector-searchselforg.c' || echo '$(srcdir)/'`ensc_vector/vector-searchselforg.c
-
-ensc_vector/libensc_vector_glibc_a-vector-searchselforg.obj: ensc_vector/vector-searchselforg.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-searchselforg.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-searchselforg.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-searchselforg.obj `if test -f 'ensc_vector/vector-searchselforg.c'; then $(CYGPATH_W) 'ensc_vector/vector-searchselforg.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-searchselforg.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-searchselforg.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-searchselforg.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-searchselforg.c' object='ensc_vector/libensc_vector_glibc_a-vector-searchselforg.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-searchselforg.obj `if test -f 'ensc_vector/vector-searchselforg.c'; then $(CYGPATH_W) 'ensc_vector/vector-searchselforg.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-searchselforg.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-sort.o: ensc_vector/vector-sort.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-sort.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-sort.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-sort.o `test -f 'ensc_vector/vector-sort.c' || echo '$(srcdir)/'`ensc_vector/vector-sort.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-sort.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-sort.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-sort.c' object='ensc_vector/libensc_vector_glibc_a-vector-sort.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-sort.o `test -f 'ensc_vector/vector-sort.c' || echo '$(srcdir)/'`ensc_vector/vector-sort.c
-
-ensc_vector/libensc_vector_glibc_a-vector-sort.obj: ensc_vector/vector-sort.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-sort.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-sort.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-sort.obj `if test -f 'ensc_vector/vector-sort.c'; then $(CYGPATH_W) 'ensc_vector/vector-sort.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-sort.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-sort.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-sort.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-sort.c' object='ensc_vector/libensc_vector_glibc_a-vector-sort.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-sort.obj `if test -f 'ensc_vector/vector-sort.c'; then $(CYGPATH_W) 'ensc_vector/vector-sort.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-sort.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-unique.o: ensc_vector/vector-unique.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-unique.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-unique.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-unique.o `test -f 'ensc_vector/vector-unique.c' || echo '$(srcdir)/'`ensc_vector/vector-unique.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-unique.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-unique.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-unique.c' object='ensc_vector/libensc_vector_glibc_a-vector-unique.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-unique.o `test -f 'ensc_vector/vector-unique.c' || echo '$(srcdir)/'`ensc_vector/vector-unique.c
-
-ensc_vector/libensc_vector_glibc_a-vector-unique.obj: ensc_vector/vector-unique.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-unique.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-unique.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-unique.obj `if test -f 'ensc_vector/vector-unique.c'; then $(CYGPATH_W) 'ensc_vector/vector-unique.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-unique.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-unique.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-unique.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-unique.c' object='ensc_vector/libensc_vector_glibc_a-vector-unique.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-unique.obj `if test -f 'ensc_vector/vector-unique.c'; then $(CYGPATH_W) 'ensc_vector/vector-unique.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-unique.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-vector-zeroend.o: ensc_vector/vector-zeroend.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-zeroend.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-zeroend.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-zeroend.o `test -f 'ensc_vector/vector-zeroend.c' || echo '$(srcdir)/'`ensc_vector/vector-zeroend.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-zeroend.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-zeroend.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-zeroend.c' object='ensc_vector/libensc_vector_glibc_a-vector-zeroend.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-zeroend.o `test -f 'ensc_vector/vector-zeroend.c' || echo '$(srcdir)/'`ensc_vector/vector-zeroend.c
-
-ensc_vector/libensc_vector_glibc_a-vector-zeroend.obj: ensc_vector/vector-zeroend.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-vector-zeroend.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-zeroend.Tpo -c -o ensc_vector/libensc_vector_glibc_a-vector-zeroend.obj `if test -f 'ensc_vector/vector-zeroend.c'; then $(CYGPATH_W) 'ensc_vector/vector-zeroend.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-zeroend.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-zeroend.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-vector-zeroend.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/vector-zeroend.c' object='ensc_vector/libensc_vector_glibc_a-vector-zeroend.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-vector-zeroend.obj `if test -f 'ensc_vector/vector-zeroend.c'; then $(CYGPATH_W) 'ensc_vector/vector-zeroend.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/vector-zeroend.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-list-at.o: ensc_vector/list-at.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-at.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-at.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-at.o `test -f 'ensc_vector/list-at.c' || echo '$(srcdir)/'`ensc_vector/list-at.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-at.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-at.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-at.c' object='ensc_vector/libensc_vector_glibc_a-list-at.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-at.o `test -f 'ensc_vector/list-at.c' || echo '$(srcdir)/'`ensc_vector/list-at.c
-
-ensc_vector/libensc_vector_glibc_a-list-at.obj: ensc_vector/list-at.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-at.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-at.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-at.obj `if test -f 'ensc_vector/list-at.c'; then $(CYGPATH_W) 'ensc_vector/list-at.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-at.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-at.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-at.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-at.c' object='ensc_vector/libensc_vector_glibc_a-list-at.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-at.obj `if test -f 'ensc_vector/list-at.c'; then $(CYGPATH_W) 'ensc_vector/list-at.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-at.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-list-add.o: ensc_vector/list-add.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-add.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-add.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-add.o `test -f 'ensc_vector/list-add.c' || echo '$(srcdir)/'`ensc_vector/list-add.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-add.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-add.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-add.c' object='ensc_vector/libensc_vector_glibc_a-list-add.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-add.o `test -f 'ensc_vector/list-add.c' || echo '$(srcdir)/'`ensc_vector/list-add.c
-
-ensc_vector/libensc_vector_glibc_a-list-add.obj: ensc_vector/list-add.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-add.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-add.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-add.obj `if test -f 'ensc_vector/list-add.c'; then $(CYGPATH_W) 'ensc_vector/list-add.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-add.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-add.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-add.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-add.c' object='ensc_vector/libensc_vector_glibc_a-list-add.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-add.obj `if test -f 'ensc_vector/list-add.c'; then $(CYGPATH_W) 'ensc_vector/list-add.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-add.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-list-free.o: ensc_vector/list-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-free.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-free.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-free.o `test -f 'ensc_vector/list-free.c' || echo '$(srcdir)/'`ensc_vector/list-free.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-free.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-free.c' object='ensc_vector/libensc_vector_glibc_a-list-free.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-free.o `test -f 'ensc_vector/list-free.c' || echo '$(srcdir)/'`ensc_vector/list-free.c
-
-ensc_vector/libensc_vector_glibc_a-list-free.obj: ensc_vector/list-free.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-free.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-free.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-free.obj `if test -f 'ensc_vector/list-free.c'; then $(CYGPATH_W) 'ensc_vector/list-free.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-free.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-free.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-free.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-free.c' object='ensc_vector/libensc_vector_glibc_a-list-free.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-free.obj `if test -f 'ensc_vector/list-free.c'; then $(CYGPATH_W) 'ensc_vector/list-free.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-free.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-list-init.o: ensc_vector/list-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-init.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-init.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-init.o `test -f 'ensc_vector/list-init.c' || echo '$(srcdir)/'`ensc_vector/list-init.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-init.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-init.c' object='ensc_vector/libensc_vector_glibc_a-list-init.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-init.o `test -f 'ensc_vector/list-init.c' || echo '$(srcdir)/'`ensc_vector/list-init.c
-
-ensc_vector/libensc_vector_glibc_a-list-init.obj: ensc_vector/list-init.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-init.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-init.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-init.obj `if test -f 'ensc_vector/list-init.c'; then $(CYGPATH_W) 'ensc_vector/list-init.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-init.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-init.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-init.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-init.c' object='ensc_vector/libensc_vector_glibc_a-list-init.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-init.obj `if test -f 'ensc_vector/list-init.c'; then $(CYGPATH_W) 'ensc_vector/list-init.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-init.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-list-insertinternal.o: ensc_vector/list-insertinternal.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-insertinternal.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-insertinternal.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-insertinternal.o `test -f 'ensc_vector/list-insertinternal.c' || echo '$(srcdir)/'`ensc_vector/list-insertinternal.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-insertinternal.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-insertinternal.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-insertinternal.c' object='ensc_vector/libensc_vector_glibc_a-list-insertinternal.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-insertinternal.o `test -f 'ensc_vector/list-insertinternal.c' || echo '$(srcdir)/'`ensc_vector/list-insertinternal.c
-
-ensc_vector/libensc_vector_glibc_a-list-insertinternal.obj: ensc_vector/list-insertinternal.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-insertinternal.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-insertinternal.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-insertinternal.obj `if test -f 'ensc_vector/list-insertinternal.c'; then $(CYGPATH_W) 'ensc_vector/list-insertinternal.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-insertinternal.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-insertinternal.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-insertinternal.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-insertinternal.c' object='ensc_vector/libensc_vector_glibc_a-list-insertinternal.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-insertinternal.obj `if test -f 'ensc_vector/list-insertinternal.c'; then $(CYGPATH_W) 'ensc_vector/list-insertinternal.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-insertinternal.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-list-search.o: ensc_vector/list-search.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-search.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-search.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-search.o `test -f 'ensc_vector/list-search.c' || echo '$(srcdir)/'`ensc_vector/list-search.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-search.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-search.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-search.c' object='ensc_vector/libensc_vector_glibc_a-list-search.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-search.o `test -f 'ensc_vector/list-search.c' || echo '$(srcdir)/'`ensc_vector/list-search.c
-
-ensc_vector/libensc_vector_glibc_a-list-search.obj: ensc_vector/list-search.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-search.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-search.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-search.obj `if test -f 'ensc_vector/list-search.c'; then $(CYGPATH_W) 'ensc_vector/list-search.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-search.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-search.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-search.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-search.c' object='ensc_vector/libensc_vector_glibc_a-list-search.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-search.obj `if test -f 'ensc_vector/list-search.c'; then $(CYGPATH_W) 'ensc_vector/list-search.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-search.c'; fi`
-
-ensc_vector/libensc_vector_glibc_a-list-searchselforg.o: ensc_vector/list-searchselforg.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-searchselforg.o -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-searchselforg.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-searchselforg.o `test -f 'ensc_vector/list-searchselforg.c' || echo '$(srcdir)/'`ensc_vector/list-searchselforg.c
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-searchselforg.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-searchselforg.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-searchselforg.c' object='ensc_vector/libensc_vector_glibc_a-list-searchselforg.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-searchselforg.o `test -f 'ensc_vector/list-searchselforg.c' || echo '$(srcdir)/'`ensc_vector/list-searchselforg.c
-
-ensc_vector/libensc_vector_glibc_a-list-searchselforg.obj: ensc_vector/list-searchselforg.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_vector/libensc_vector_glibc_a-list-searchselforg.obj -MD -MP -MF ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-searchselforg.Tpo -c -o ensc_vector/libensc_vector_glibc_a-list-searchselforg.obj `if test -f 'ensc_vector/list-searchselforg.c'; then $(CYGPATH_W) 'ensc_vector/list-searchselforg.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-searchselforg.c'; fi`
-@am__fastdepCC_TRUE@ mv -f ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-searchselforg.Tpo ensc_vector/$(DEPDIR)/libensc_vector_glibc_a-list-searchselforg.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_vector/list-searchselforg.c' object='ensc_vector/libensc_vector_glibc_a-list-searchselforg.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libensc_vector_glibc_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_vector/libensc_vector_glibc_a-list-searchselforg.obj `if test -f 'ensc_vector/list-searchselforg.c'; then $(CYGPATH_W) 'ensc_vector/list-searchselforg.c'; else $(CYGPATH_W) '$(srcdir)/ensc_vector/list-searchselforg.c'; fi`
-
-lib/lib_libvserver_la-syscall.lo: lib/syscall.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall.Tpo -c -o lib/lib_libvserver_la-syscall.lo `test -f 'lib/syscall.c' || echo '$(srcdir)/'`lib/syscall.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall.c' object='lib/lib_libvserver_la-syscall.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall.lo `test -f 'lib/syscall.c' || echo '$(srcdir)/'`lib/syscall.c
-
-lib/lib_libvserver_la-checkversion.lo: lib/checkversion.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-checkversion.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-checkversion.Tpo -c -o lib/lib_libvserver_la-checkversion.lo `test -f 'lib/checkversion.c' || echo '$(srcdir)/'`lib/checkversion.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-checkversion.Tpo lib/$(DEPDIR)/lib_libvserver_la-checkversion.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/checkversion.c' object='lib/lib_libvserver_la-checkversion.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-checkversion.lo `test -f 'lib/checkversion.c' || echo '$(srcdir)/'`lib/checkversion.c
-
-lib/lib_libvserver_la-checkconfig.lo: lib/checkconfig.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-checkconfig.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-checkconfig.Tpo -c -o lib/lib_libvserver_la-checkconfig.lo `test -f 'lib/checkconfig.c' || echo '$(srcdir)/'`lib/checkconfig.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-checkconfig.Tpo lib/$(DEPDIR)/lib_libvserver_la-checkconfig.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/checkconfig.c' object='lib/lib_libvserver_la-checkconfig.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-checkconfig.lo `test -f 'lib/checkconfig.c' || echo '$(srcdir)/'`lib/checkconfig.c
-
-lib/lib_libvserver_la-isdirectory.lo: lib/isdirectory.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-isdirectory.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-isdirectory.Tpo -c -o lib/lib_libvserver_la-isdirectory.lo `test -f 'lib/isdirectory.c' || echo '$(srcdir)/'`lib/isdirectory.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-isdirectory.Tpo lib/$(DEPDIR)/lib_libvserver_la-isdirectory.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/isdirectory.c' object='lib/lib_libvserver_la-isdirectory.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-isdirectory.lo `test -f 'lib/isdirectory.c' || echo '$(srcdir)/'`lib/isdirectory.c
-
-lib/lib_libvserver_la-isfile.lo: lib/isfile.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-isfile.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-isfile.Tpo -c -o lib/lib_libvserver_la-isfile.lo `test -f 'lib/isfile.c' || echo '$(srcdir)/'`lib/isfile.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-isfile.Tpo lib/$(DEPDIR)/lib_libvserver_la-isfile.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/isfile.c' object='lib/lib_libvserver_la-isfile.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-isfile.lo `test -f 'lib/isfile.c' || echo '$(srcdir)/'`lib/isfile.c
-
-lib/lib_libvserver_la-islink.lo: lib/islink.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-islink.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-islink.Tpo -c -o lib/lib_libvserver_la-islink.lo `test -f 'lib/islink.c' || echo '$(srcdir)/'`lib/islink.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-islink.Tpo lib/$(DEPDIR)/lib_libvserver_la-islink.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/islink.c' object='lib/lib_libvserver_la-islink.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-islink.lo `test -f 'lib/islink.c' || echo '$(srcdir)/'`lib/islink.c
-
-lib/lib_libvserver_la-getnbipv4root.lo: lib/getnbipv4root.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getnbipv4root.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getnbipv4root.Tpo -c -o lib/lib_libvserver_la-getnbipv4root.lo `test -f 'lib/getnbipv4root.c' || echo '$(srcdir)/'`lib/getnbipv4root.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getnbipv4root.Tpo lib/$(DEPDIR)/lib_libvserver_la-getnbipv4root.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getnbipv4root.c' object='lib/lib_libvserver_la-getnbipv4root.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getnbipv4root.lo `test -f 'lib/getnbipv4root.c' || echo '$(srcdir)/'`lib/getnbipv4root.c
-
-lib/lib_libvserver_la-getversion.lo: lib/getversion.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getversion.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getversion.Tpo -c -o lib/lib_libvserver_la-getversion.lo `test -f 'lib/getversion.c' || echo '$(srcdir)/'`lib/getversion.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getversion.Tpo lib/$(DEPDIR)/lib_libvserver_la-getversion.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getversion.c' object='lib/lib_libvserver_la-getversion.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getversion.lo `test -f 'lib/getversion.c' || echo '$(srcdir)/'`lib/getversion.c
-
-lib/lib_libvserver_la-capabilities.lo: lib/capabilities.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-capabilities.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-capabilities.Tpo -c -o lib/lib_libvserver_la-capabilities.lo `test -f 'lib/capabilities.c' || echo '$(srcdir)/'`lib/capabilities.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-capabilities.Tpo lib/$(DEPDIR)/lib_libvserver_la-capabilities.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/capabilities.c' object='lib/lib_libvserver_la-capabilities.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-capabilities.lo `test -f 'lib/capabilities.c' || echo '$(srcdir)/'`lib/capabilities.c
-
-lib/lib_libvserver_la-getfilecontext.lo: lib/getfilecontext.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getfilecontext.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getfilecontext.Tpo -c -o lib/lib_libvserver_la-getfilecontext.lo `test -f 'lib/getfilecontext.c' || echo '$(srcdir)/'`lib/getfilecontext.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getfilecontext.Tpo lib/$(DEPDIR)/lib_libvserver_la-getfilecontext.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getfilecontext.c' object='lib/lib_libvserver_la-getfilecontext.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getfilecontext.lo `test -f 'lib/getfilecontext.c' || echo '$(srcdir)/'`lib/getfilecontext.c
-
-lib/lib_libvserver_la-getinsecurebcaps.lo: lib/getinsecurebcaps.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getinsecurebcaps.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getinsecurebcaps.Tpo -c -o lib/lib_libvserver_la-getinsecurebcaps.lo `test -f 'lib/getinsecurebcaps.c' || echo '$(srcdir)/'`lib/getinsecurebcaps.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getinsecurebcaps.Tpo lib/$(DEPDIR)/lib_libvserver_la-getinsecurebcaps.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getinsecurebcaps.c' object='lib/lib_libvserver_la-getinsecurebcaps.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getinsecurebcaps.lo `test -f 'lib/getinsecurebcaps.c' || echo '$(srcdir)/'`lib/getinsecurebcaps.c
-
-lib/lib_libvserver_la-getxidtype.lo: lib/getxidtype.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getxidtype.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getxidtype.Tpo -c -o lib/lib_libvserver_la-getxidtype.lo `test -f 'lib/getxidtype.c' || echo '$(srcdir)/'`lib/getxidtype.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getxidtype.Tpo lib/$(DEPDIR)/lib_libvserver_la-getxidtype.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getxidtype.c' object='lib/lib_libvserver_la-getxidtype.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getxidtype.lo `test -f 'lib/getxidtype.c' || echo '$(srcdir)/'`lib/getxidtype.c
-
-lib/lib_libvserver_la-isdynamicxid.lo: lib/isdynamicxid.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-isdynamicxid.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-isdynamicxid.Tpo -c -o lib/lib_libvserver_la-isdynamicxid.lo `test -f 'lib/isdynamicxid.c' || echo '$(srcdir)/'`lib/isdynamicxid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-isdynamicxid.Tpo lib/$(DEPDIR)/lib_libvserver_la-isdynamicxid.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/isdynamicxid.c' object='lib/lib_libvserver_la-isdynamicxid.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-isdynamicxid.lo `test -f 'lib/isdynamicxid.c' || echo '$(srcdir)/'`lib/isdynamicxid.c
-
-lib/lib_libvserver_la-issupported.lo: lib/issupported.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-issupported.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-issupported.Tpo -c -o lib/lib_libvserver_la-issupported.lo `test -f 'lib/issupported.c' || echo '$(srcdir)/'`lib/issupported.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-issupported.Tpo lib/$(DEPDIR)/lib_libvserver_la-issupported.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/issupported.c' object='lib/lib_libvserver_la-issupported.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-issupported.lo `test -f 'lib/issupported.c' || echo '$(srcdir)/'`lib/issupported.c
-
-lib/lib_libvserver_la-issupportedstring.lo: lib/issupportedstring.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-issupportedstring.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-issupportedstring.Tpo -c -o lib/lib_libvserver_la-issupportedstring.lo `test -f 'lib/issupportedstring.c' || echo '$(srcdir)/'`lib/issupportedstring.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-issupportedstring.Tpo lib/$(DEPDIR)/lib_libvserver_la-issupportedstring.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/issupportedstring.c' object='lib/lib_libvserver_la-issupportedstring.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-issupportedstring.lo `test -f 'lib/issupportedstring.c' || echo '$(srcdir)/'`lib/issupportedstring.c
-
-lib/lib_libvserver_la-listparser_uint32.lo: lib/listparser_uint32.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-listparser_uint32.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-listparser_uint32.Tpo -c -o lib/lib_libvserver_la-listparser_uint32.lo `test -f 'lib/listparser_uint32.c' || echo '$(srcdir)/'`lib/listparser_uint32.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-listparser_uint32.Tpo lib/$(DEPDIR)/lib_libvserver_la-listparser_uint32.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/listparser_uint32.c' object='lib/lib_libvserver_la-listparser_uint32.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-listparser_uint32.lo `test -f 'lib/listparser_uint32.c' || echo '$(srcdir)/'`lib/listparser_uint32.c
-
-lib/lib_libvserver_la-listparser_uint64.lo: lib/listparser_uint64.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-listparser_uint64.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-listparser_uint64.Tpo -c -o lib/lib_libvserver_la-listparser_uint64.lo `test -f 'lib/listparser_uint64.c' || echo '$(srcdir)/'`lib/listparser_uint64.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-listparser_uint64.Tpo lib/$(DEPDIR)/lib_libvserver_la-listparser_uint64.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/listparser_uint64.c' object='lib/lib_libvserver_la-listparser_uint64.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-listparser_uint64.lo `test -f 'lib/listparser_uint64.c' || echo '$(srcdir)/'`lib/listparser_uint64.c
-
-lib/lib_libvserver_la-personalityflag.lo: lib/personalityflag.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-personalityflag.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-personalityflag.Tpo -c -o lib/lib_libvserver_la-personalityflag.lo `test -f 'lib/personalityflag.c' || echo '$(srcdir)/'`lib/personalityflag.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-personalityflag.Tpo lib/$(DEPDIR)/lib_libvserver_la-personalityflag.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/personalityflag.c' object='lib/lib_libvserver_la-personalityflag.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-personalityflag.lo `test -f 'lib/personalityflag.c' || echo '$(srcdir)/'`lib/personalityflag.c
-
-lib/lib_libvserver_la-personalityflag_list.lo: lib/personalityflag_list.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-personalityflag_list.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-personalityflag_list.Tpo -c -o lib/lib_libvserver_la-personalityflag_list.lo `test -f 'lib/personalityflag_list.c' || echo '$(srcdir)/'`lib/personalityflag_list.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-personalityflag_list.Tpo lib/$(DEPDIR)/lib_libvserver_la-personalityflag_list.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/personalityflag_list.c' object='lib/lib_libvserver_la-personalityflag_list.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-personalityflag_list.lo `test -f 'lib/personalityflag_list.c' || echo '$(srcdir)/'`lib/personalityflag_list.c
-
-lib/lib_libvserver_la-personalitytype.lo: lib/personalitytype.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-personalitytype.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-personalitytype.Tpo -c -o lib/lib_libvserver_la-personalitytype.lo `test -f 'lib/personalitytype.c' || echo '$(srcdir)/'`lib/personalitytype.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-personalitytype.Tpo lib/$(DEPDIR)/lib_libvserver_la-personalitytype.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/personalitytype.c' object='lib/lib_libvserver_la-personalitytype.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-personalitytype.lo `test -f 'lib/personalitytype.c' || echo '$(srcdir)/'`lib/personalitytype.c
-
-lib/lib_libvserver_la-syscall-syscall.lo: lib/syscall-syscall.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall-syscall.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall-syscall.Tpo -c -o lib/lib_libvserver_la-syscall-syscall.lo `test -f 'lib/syscall-syscall.c' || echo '$(srcdir)/'`lib/syscall-syscall.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall-syscall.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall-syscall.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall-syscall.c' object='lib/lib_libvserver_la-syscall-syscall.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall-syscall.lo `test -f 'lib/syscall-syscall.c' || echo '$(srcdir)/'`lib/syscall-syscall.c
-
-lib/lib_libvserver_la-val2text-t2v-uint32.lo: lib/val2text-t2v-uint32.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-val2text-t2v-uint32.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-val2text-t2v-uint32.Tpo -c -o lib/lib_libvserver_la-val2text-t2v-uint32.lo `test -f 'lib/val2text-t2v-uint32.c' || echo '$(srcdir)/'`lib/val2text-t2v-uint32.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-val2text-t2v-uint32.Tpo lib/$(DEPDIR)/lib_libvserver_la-val2text-t2v-uint32.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-t2v-uint32.c' object='lib/lib_libvserver_la-val2text-t2v-uint32.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-val2text-t2v-uint32.lo `test -f 'lib/val2text-t2v-uint32.c' || echo '$(srcdir)/'`lib/val2text-t2v-uint32.c
-
-lib/lib_libvserver_la-val2text-t2v-uint64.lo: lib/val2text-t2v-uint64.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-val2text-t2v-uint64.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-val2text-t2v-uint64.Tpo -c -o lib/lib_libvserver_la-val2text-t2v-uint64.lo `test -f 'lib/val2text-t2v-uint64.c' || echo '$(srcdir)/'`lib/val2text-t2v-uint64.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-val2text-t2v-uint64.Tpo lib/$(DEPDIR)/lib_libvserver_la-val2text-t2v-uint64.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-t2v-uint64.c' object='lib/lib_libvserver_la-val2text-t2v-uint64.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-val2text-t2v-uint64.lo `test -f 'lib/val2text-t2v-uint64.c' || echo '$(srcdir)/'`lib/val2text-t2v-uint64.c
-
-lib/lib_libvserver_la-val2text-v2t-uint32.lo: lib/val2text-v2t-uint32.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-val2text-v2t-uint32.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-val2text-v2t-uint32.Tpo -c -o lib/lib_libvserver_la-val2text-v2t-uint32.lo `test -f 'lib/val2text-v2t-uint32.c' || echo '$(srcdir)/'`lib/val2text-v2t-uint32.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-val2text-v2t-uint32.Tpo lib/$(DEPDIR)/lib_libvserver_la-val2text-v2t-uint32.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-v2t-uint32.c' object='lib/lib_libvserver_la-val2text-v2t-uint32.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-val2text-v2t-uint32.lo `test -f 'lib/val2text-v2t-uint32.c' || echo '$(srcdir)/'`lib/val2text-v2t-uint32.c
-
-lib/lib_libvserver_la-val2text-v2t-uint64.lo: lib/val2text-v2t-uint64.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-val2text-v2t-uint64.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-val2text-v2t-uint64.Tpo -c -o lib/lib_libvserver_la-val2text-v2t-uint64.lo `test -f 'lib/val2text-v2t-uint64.c' || echo '$(srcdir)/'`lib/val2text-v2t-uint64.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-val2text-v2t-uint64.Tpo lib/$(DEPDIR)/lib_libvserver_la-val2text-v2t-uint64.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/val2text-v2t-uint64.c' object='lib/lib_libvserver_la-val2text-v2t-uint64.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-val2text-v2t-uint64.lo `test -f 'lib/val2text-v2t-uint64.c' || echo '$(srcdir)/'`lib/val2text-v2t-uint64.c
-
-lib/lib_libvserver_la-parselimit.lo: lib/parselimit.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-parselimit.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-parselimit.Tpo -c -o lib/lib_libvserver_la-parselimit.lo `test -f 'lib/parselimit.c' || echo '$(srcdir)/'`lib/parselimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-parselimit.Tpo lib/$(DEPDIR)/lib_libvserver_la-parselimit.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/parselimit.c' object='lib/lib_libvserver_la-parselimit.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-parselimit.lo `test -f 'lib/parselimit.c' || echo '$(srcdir)/'`lib/parselimit.c
-
-lib/lib_libvserver_la-planetlab.lo: lib/planetlab.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-planetlab.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-planetlab.Tpo -c -o lib/lib_libvserver_la-planetlab.lo `test -f 'lib/planetlab.c' || echo '$(srcdir)/'`lib/planetlab.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-planetlab.Tpo lib/$(DEPDIR)/lib_libvserver_la-planetlab.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/planetlab.c' object='lib/lib_libvserver_la-planetlab.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-planetlab.lo `test -f 'lib/planetlab.c' || echo '$(srcdir)/'`lib/planetlab.c
-
-lib/lib_libvserver_la-getprocentry-legacy.lo: lib/getprocentry-legacy.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getprocentry-legacy.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getprocentry-legacy.Tpo -c -o lib/lib_libvserver_la-getprocentry-legacy.lo `test -f 'lib/getprocentry-legacy.c' || echo '$(srcdir)/'`lib/getprocentry-legacy.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getprocentry-legacy.Tpo lib/$(DEPDIR)/lib_libvserver_la-getprocentry-legacy.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getprocentry-legacy.c' object='lib/lib_libvserver_la-getprocentry-legacy.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getprocentry-legacy.lo `test -f 'lib/getprocentry-legacy.c' || echo '$(srcdir)/'`lib/getprocentry-legacy.c
-
-lib/lib_libvserver_la-cflags-compat.lo: lib/cflags-compat.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-cflags-compat.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-cflags-compat.Tpo -c -o lib/lib_libvserver_la-cflags-compat.lo `test -f 'lib/cflags-compat.c' || echo '$(srcdir)/'`lib/cflags-compat.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-cflags-compat.Tpo lib/$(DEPDIR)/lib_libvserver_la-cflags-compat.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags-compat.c' object='lib/lib_libvserver_la-cflags-compat.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-cflags-compat.lo `test -f 'lib/cflags-compat.c' || echo '$(srcdir)/'`lib/cflags-compat.c
-
-lib/lib_libvserver_la-cflags_list-compat.lo: lib/cflags_list-compat.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-cflags_list-compat.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-cflags_list-compat.Tpo -c -o lib/lib_libvserver_la-cflags_list-compat.lo `test -f 'lib/cflags_list-compat.c' || echo '$(srcdir)/'`lib/cflags_list-compat.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-cflags_list-compat.Tpo lib/$(DEPDIR)/lib_libvserver_la-cflags_list-compat.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags_list-compat.c' object='lib/lib_libvserver_la-cflags_list-compat.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-cflags_list-compat.lo `test -f 'lib/cflags_list-compat.c' || echo '$(srcdir)/'`lib/cflags_list-compat.c
-
-lib/lib_libvserver_la-comparevserverbyid.lo: lib/comparevserverbyid.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-comparevserverbyid.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-comparevserverbyid.Tpo -c -o lib/lib_libvserver_la-comparevserverbyid.lo `test -f 'lib/comparevserverbyid.c' || echo '$(srcdir)/'`lib/comparevserverbyid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-comparevserverbyid.Tpo lib/$(DEPDIR)/lib_libvserver_la-comparevserverbyid.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/comparevserverbyid.c' object='lib/lib_libvserver_la-comparevserverbyid.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-comparevserverbyid.lo `test -f 'lib/comparevserverbyid.c' || echo '$(srcdir)/'`lib/comparevserverbyid.c
-
-lib/lib_libvserver_la-createskeleton.lo: lib/createskeleton.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-createskeleton.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-createskeleton.Tpo -c -o lib/lib_libvserver_la-createskeleton.lo `test -f 'lib/createskeleton.c' || echo '$(srcdir)/'`lib/createskeleton.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-createskeleton.Tpo lib/$(DEPDIR)/lib_libvserver_la-createskeleton.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/createskeleton.c' object='lib/lib_libvserver_la-createskeleton.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-createskeleton.lo `test -f 'lib/createskeleton.c' || echo '$(srcdir)/'`lib/createskeleton.c
-
-lib/lib_libvserver_la-getvserverbyctx.lo: lib/getvserverbyctx.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getvserverbyctx.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getvserverbyctx.Tpo -c -o lib/lib_libvserver_la-getvserverbyctx.lo `test -f 'lib/getvserverbyctx.c' || echo '$(srcdir)/'`lib/getvserverbyctx.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getvserverbyctx.Tpo lib/$(DEPDIR)/lib_libvserver_la-getvserverbyctx.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvserverbyctx.c' object='lib/lib_libvserver_la-getvserverbyctx.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getvserverbyctx.lo `test -f 'lib/getvserverbyctx.c' || echo '$(srcdir)/'`lib/getvserverbyctx.c
-
-lib/lib_libvserver_la-getvservercfgstyle.lo: lib/getvservercfgstyle.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getvservercfgstyle.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getvservercfgstyle.Tpo -c -o lib/lib_libvserver_la-getvservercfgstyle.lo `test -f 'lib/getvservercfgstyle.c' || echo '$(srcdir)/'`lib/getvservercfgstyle.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getvservercfgstyle.Tpo lib/$(DEPDIR)/lib_libvserver_la-getvservercfgstyle.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservercfgstyle.c' object='lib/lib_libvserver_la-getvservercfgstyle.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getvservercfgstyle.lo `test -f 'lib/getvservercfgstyle.c' || echo '$(srcdir)/'`lib/getvservercfgstyle.c
-
-lib/lib_libvserver_la-getvserverappdir.lo: lib/getvserverappdir.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getvserverappdir.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getvserverappdir.Tpo -c -o lib/lib_libvserver_la-getvserverappdir.lo `test -f 'lib/getvserverappdir.c' || echo '$(srcdir)/'`lib/getvserverappdir.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getvserverappdir.Tpo lib/$(DEPDIR)/lib_libvserver_la-getvserverappdir.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvserverappdir.c' object='lib/lib_libvserver_la-getvserverappdir.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getvserverappdir.lo `test -f 'lib/getvserverappdir.c' || echo '$(srcdir)/'`lib/getvserverappdir.c
-
-lib/lib_libvserver_la-getvservercfgdir.lo: lib/getvservercfgdir.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getvservercfgdir.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getvservercfgdir.Tpo -c -o lib/lib_libvserver_la-getvservercfgdir.lo `test -f 'lib/getvservercfgdir.c' || echo '$(srcdir)/'`lib/getvservercfgdir.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getvservercfgdir.Tpo lib/$(DEPDIR)/lib_libvserver_la-getvservercfgdir.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservercfgdir.c' object='lib/lib_libvserver_la-getvservercfgdir.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getvservercfgdir.lo `test -f 'lib/getvservercfgdir.c' || echo '$(srcdir)/'`lib/getvservercfgdir.c
-
-lib/lib_libvserver_la-getvserverctx.lo: lib/getvserverctx.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getvserverctx.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getvserverctx.Tpo -c -o lib/lib_libvserver_la-getvserverctx.lo `test -f 'lib/getvserverctx.c' || echo '$(srcdir)/'`lib/getvserverctx.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getvserverctx.Tpo lib/$(DEPDIR)/lib_libvserver_la-getvserverctx.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvserverctx.c' object='lib/lib_libvserver_la-getvserverctx.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getvserverctx.lo `test -f 'lib/getvserverctx.c' || echo '$(srcdir)/'`lib/getvserverctx.c
-
-lib/lib_libvserver_la-getvservername.lo: lib/getvservername.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getvservername.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getvservername.Tpo -c -o lib/lib_libvserver_la-getvservername.lo `test -f 'lib/getvservername.c' || echo '$(srcdir)/'`lib/getvservername.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getvservername.Tpo lib/$(DEPDIR)/lib_libvserver_la-getvservername.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservername.c' object='lib/lib_libvserver_la-getvservername.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getvservername.lo `test -f 'lib/getvservername.c' || echo '$(srcdir)/'`lib/getvservername.c
-
-lib/lib_libvserver_la-getvservervdir.lo: lib/getvservervdir.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-getvservervdir.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-getvservervdir.Tpo -c -o lib/lib_libvserver_la-getvservervdir.lo `test -f 'lib/getvservervdir.c' || echo '$(srcdir)/'`lib/getvservervdir.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-getvservervdir.Tpo lib/$(DEPDIR)/lib_libvserver_la-getvservervdir.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/getvservervdir.c' object='lib/lib_libvserver_la-getvservervdir.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-getvservervdir.lo `test -f 'lib/getvservervdir.c' || echo '$(srcdir)/'`lib/getvservervdir.c
-
-lib/lib_libvserver_la-xidopt2xid.lo: lib/xidopt2xid.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-xidopt2xid.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-xidopt2xid.Tpo -c -o lib/lib_libvserver_la-xidopt2xid.lo `test -f 'lib/xidopt2xid.c' || echo '$(srcdir)/'`lib/xidopt2xid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-xidopt2xid.Tpo lib/$(DEPDIR)/lib_libvserver_la-xidopt2xid.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/xidopt2xid.c' object='lib/lib_libvserver_la-xidopt2xid.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-xidopt2xid.lo `test -f 'lib/xidopt2xid.c' || echo '$(srcdir)/'`lib/xidopt2xid.c
-
-lib/lib_libvserver_la-nidopt2nid.lo: lib/nidopt2nid.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-nidopt2nid.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-nidopt2nid.Tpo -c -o lib/lib_libvserver_la-nidopt2nid.lo `test -f 'lib/nidopt2nid.c' || echo '$(srcdir)/'`lib/nidopt2nid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-nidopt2nid.Tpo lib/$(DEPDIR)/lib_libvserver_la-nidopt2nid.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/nidopt2nid.c' object='lib/lib_libvserver_la-nidopt2nid.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-nidopt2nid.lo `test -f 'lib/nidopt2nid.c' || echo '$(srcdir)/'`lib/nidopt2nid.c
-
-lib/lib_libvserver_la-tagopt2tag.lo: lib/tagopt2tag.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-tagopt2tag.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-tagopt2tag.Tpo -c -o lib/lib_libvserver_la-tagopt2tag.lo `test -f 'lib/tagopt2tag.c' || echo '$(srcdir)/'`lib/tagopt2tag.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-tagopt2tag.Tpo lib/$(DEPDIR)/lib_libvserver_la-tagopt2tag.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/tagopt2tag.c' object='lib/lib_libvserver_la-tagopt2tag.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-tagopt2tag.lo `test -f 'lib/tagopt2tag.c' || echo '$(srcdir)/'`lib/tagopt2tag.c
-
-lib/lib_libvserver_la-syscall_rlimit.lo: lib/syscall_rlimit.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_rlimit.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_rlimit.Tpo -c -o lib/lib_libvserver_la-syscall_rlimit.lo `test -f 'lib/syscall_rlimit.c' || echo '$(srcdir)/'`lib/syscall_rlimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_rlimit.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_rlimit.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_rlimit.c' object='lib/lib_libvserver_la-syscall_rlimit.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_rlimit.lo `test -f 'lib/syscall_rlimit.c' || echo '$(srcdir)/'`lib/syscall_rlimit.c
-
-lib/lib_libvserver_la-syscall_kill.lo: lib/syscall_kill.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_kill.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_kill.Tpo -c -o lib/lib_libvserver_la-syscall_kill.lo `test -f 'lib/syscall_kill.c' || echo '$(srcdir)/'`lib/syscall_kill.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_kill.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_kill.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_kill.c' object='lib/lib_libvserver_la-syscall_kill.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_kill.lo `test -f 'lib/syscall_kill.c' || echo '$(srcdir)/'`lib/syscall_kill.c
-
-lib/lib_libvserver_la-syscall_ctxcreate.lo: lib/syscall_ctxcreate.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_ctxcreate.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxcreate.Tpo -c -o lib/lib_libvserver_la-syscall_ctxcreate.lo `test -f 'lib/syscall_ctxcreate.c' || echo '$(srcdir)/'`lib/syscall_ctxcreate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxcreate.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxcreate.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_ctxcreate.c' object='lib/lib_libvserver_la-syscall_ctxcreate.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_ctxcreate.lo `test -f 'lib/syscall_ctxcreate.c' || echo '$(srcdir)/'`lib/syscall_ctxcreate.c
-
-lib/lib_libvserver_la-syscall_ctxmigrate.lo: lib/syscall_ctxmigrate.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_ctxmigrate.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxmigrate.Tpo -c -o lib/lib_libvserver_la-syscall_ctxmigrate.lo `test -f 'lib/syscall_ctxmigrate.c' || echo '$(srcdir)/'`lib/syscall_ctxmigrate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxmigrate.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxmigrate.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_ctxmigrate.c' object='lib/lib_libvserver_la-syscall_ctxmigrate.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_ctxmigrate.lo `test -f 'lib/syscall_ctxmigrate.c' || echo '$(srcdir)/'`lib/syscall_ctxmigrate.c
-
-lib/lib_libvserver_la-syscall_cleanupnamespace.lo: lib/syscall_cleanupnamespace.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_cleanupnamespace.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_cleanupnamespace.Tpo -c -o lib/lib_libvserver_la-syscall_cleanupnamespace.lo `test -f 'lib/syscall_cleanupnamespace.c' || echo '$(srcdir)/'`lib/syscall_cleanupnamespace.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_cleanupnamespace.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_cleanupnamespace.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_cleanupnamespace.c' object='lib/lib_libvserver_la-syscall_cleanupnamespace.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_cleanupnamespace.lo `test -f 'lib/syscall_cleanupnamespace.c' || echo '$(srcdir)/'`lib/syscall_cleanupnamespace.c
-
-lib/lib_libvserver_la-syscall_enternamespace.lo: lib/syscall_enternamespace.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_enternamespace.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_enternamespace.Tpo -c -o lib/lib_libvserver_la-syscall_enternamespace.lo `test -f 'lib/syscall_enternamespace.c' || echo '$(srcdir)/'`lib/syscall_enternamespace.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_enternamespace.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_enternamespace.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_enternamespace.c' object='lib/lib_libvserver_la-syscall_enternamespace.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_enternamespace.lo `test -f 'lib/syscall_enternamespace.c' || echo '$(srcdir)/'`lib/syscall_enternamespace.c
-
-lib/lib_libvserver_la-syscall_getccaps.lo: lib/syscall_getccaps.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getccaps.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getccaps.Tpo -c -o lib/lib_libvserver_la-syscall_getccaps.lo `test -f 'lib/syscall_getccaps.c' || echo '$(srcdir)/'`lib/syscall_getccaps.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getccaps.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getccaps.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getccaps.c' object='lib/lib_libvserver_la-syscall_getccaps.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getccaps.lo `test -f 'lib/syscall_getccaps.c' || echo '$(srcdir)/'`lib/syscall_getccaps.c
-
-lib/lib_libvserver_la-syscall_getcflags.lo: lib/syscall_getcflags.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getcflags.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getcflags.Tpo -c -o lib/lib_libvserver_la-syscall_getcflags.lo `test -f 'lib/syscall_getcflags.c' || echo '$(srcdir)/'`lib/syscall_getcflags.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getcflags.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getcflags.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getcflags.c' object='lib/lib_libvserver_la-syscall_getcflags.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getcflags.lo `test -f 'lib/syscall_getcflags.c' || echo '$(srcdir)/'`lib/syscall_getcflags.c
-
-lib/lib_libvserver_la-syscall_getiattr.lo: lib/syscall_getiattr.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getiattr.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getiattr.Tpo -c -o lib/lib_libvserver_la-syscall_getiattr.lo `test -f 'lib/syscall_getiattr.c' || echo '$(srcdir)/'`lib/syscall_getiattr.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getiattr.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getiattr.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getiattr.c' object='lib/lib_libvserver_la-syscall_getiattr.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getiattr.lo `test -f 'lib/syscall_getiattr.c' || echo '$(srcdir)/'`lib/syscall_getiattr.c
-
-lib/lib_libvserver_la-syscall_getncaps.lo: lib/syscall_getncaps.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getncaps.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getncaps.Tpo -c -o lib/lib_libvserver_la-syscall_getncaps.lo `test -f 'lib/syscall_getncaps.c' || echo '$(srcdir)/'`lib/syscall_getncaps.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getncaps.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getncaps.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getncaps.c' object='lib/lib_libvserver_la-syscall_getncaps.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getncaps.lo `test -f 'lib/syscall_getncaps.c' || echo '$(srcdir)/'`lib/syscall_getncaps.c
-
-lib/lib_libvserver_la-syscall_getnflags.lo: lib/syscall_getnflags.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getnflags.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getnflags.Tpo -c -o lib/lib_libvserver_la-syscall_getnflags.lo `test -f 'lib/syscall_getnflags.c' || echo '$(srcdir)/'`lib/syscall_getnflags.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getnflags.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getnflags.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getnflags.c' object='lib/lib_libvserver_la-syscall_getnflags.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getnflags.lo `test -f 'lib/syscall_getnflags.c' || echo '$(srcdir)/'`lib/syscall_getnflags.c
-
-lib/lib_libvserver_la-syscall_getnxinfo.lo: lib/syscall_getnxinfo.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getnxinfo.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getnxinfo.Tpo -c -o lib/lib_libvserver_la-syscall_getnxinfo.lo `test -f 'lib/syscall_getnxinfo.c' || echo '$(srcdir)/'`lib/syscall_getnxinfo.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getnxinfo.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getnxinfo.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getnxinfo.c' object='lib/lib_libvserver_la-syscall_getnxinfo.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getnxinfo.lo `test -f 'lib/syscall_getnxinfo.c' || echo '$(srcdir)/'`lib/syscall_getnxinfo.c
-
-lib/lib_libvserver_la-syscall_gettasknid.lo: lib/syscall_gettasknid.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_gettasknid.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_gettasknid.Tpo -c -o lib/lib_libvserver_la-syscall_gettasknid.lo `test -f 'lib/syscall_gettasknid.c' || echo '$(srcdir)/'`lib/syscall_gettasknid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_gettasknid.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_gettasknid.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_gettasknid.c' object='lib/lib_libvserver_la-syscall_gettasknid.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_gettasknid.lo `test -f 'lib/syscall_gettasknid.c' || echo '$(srcdir)/'`lib/syscall_gettasknid.c
-
-lib/lib_libvserver_la-syscall_gettaskxid.lo: lib/syscall_gettaskxid.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_gettaskxid.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_gettaskxid.Tpo -c -o lib/lib_libvserver_la-syscall_gettaskxid.lo `test -f 'lib/syscall_gettaskxid.c' || echo '$(srcdir)/'`lib/syscall_gettaskxid.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_gettaskxid.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_gettaskxid.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_gettaskxid.c' object='lib/lib_libvserver_la-syscall_gettaskxid.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_gettaskxid.lo `test -f 'lib/syscall_gettaskxid.c' || echo '$(srcdir)/'`lib/syscall_gettaskxid.c
-
-lib/lib_libvserver_la-syscall_getvhiname.lo: lib/syscall_getvhiname.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getvhiname.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getvhiname.Tpo -c -o lib/lib_libvserver_la-syscall_getvhiname.lo `test -f 'lib/syscall_getvhiname.c' || echo '$(srcdir)/'`lib/syscall_getvhiname.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getvhiname.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getvhiname.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getvhiname.c' object='lib/lib_libvserver_la-syscall_getvhiname.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getvhiname.lo `test -f 'lib/syscall_getvhiname.c' || echo '$(srcdir)/'`lib/syscall_getvhiname.c
-
-lib/lib_libvserver_la-syscall_getvxinfo.lo: lib/syscall_getvxinfo.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getvxinfo.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getvxinfo.Tpo -c -o lib/lib_libvserver_la-syscall_getvxinfo.lo `test -f 'lib/syscall_getvxinfo.c' || echo '$(srcdir)/'`lib/syscall_getvxinfo.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getvxinfo.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getvxinfo.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getvxinfo.c' object='lib/lib_libvserver_la-syscall_getvxinfo.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getvxinfo.lo `test -f 'lib/syscall_getvxinfo.c' || echo '$(srcdir)/'`lib/syscall_getvxinfo.c
-
-lib/lib_libvserver_la-syscall_netadd.lo: lib/syscall_netadd.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_netadd.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_netadd.Tpo -c -o lib/lib_libvserver_la-syscall_netadd.lo `test -f 'lib/syscall_netadd.c' || echo '$(srcdir)/'`lib/syscall_netadd.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_netadd.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_netadd.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netadd.c' object='lib/lib_libvserver_la-syscall_netadd.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_netadd.lo `test -f 'lib/syscall_netadd.c' || echo '$(srcdir)/'`lib/syscall_netadd.c
-
-lib/lib_libvserver_la-syscall_netcreate.lo: lib/syscall_netcreate.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_netcreate.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_netcreate.Tpo -c -o lib/lib_libvserver_la-syscall_netcreate.lo `test -f 'lib/syscall_netcreate.c' || echo '$(srcdir)/'`lib/syscall_netcreate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_netcreate.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_netcreate.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netcreate.c' object='lib/lib_libvserver_la-syscall_netcreate.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_netcreate.lo `test -f 'lib/syscall_netcreate.c' || echo '$(srcdir)/'`lib/syscall_netcreate.c
-
-lib/lib_libvserver_la-syscall_netmigrate.lo: lib/syscall_netmigrate.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_netmigrate.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_netmigrate.Tpo -c -o lib/lib_libvserver_la-syscall_netmigrate.lo `test -f 'lib/syscall_netmigrate.c' || echo '$(srcdir)/'`lib/syscall_netmigrate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_netmigrate.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_netmigrate.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netmigrate.c' object='lib/lib_libvserver_la-syscall_netmigrate.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_netmigrate.lo `test -f 'lib/syscall_netmigrate.c' || echo '$(srcdir)/'`lib/syscall_netmigrate.c
-
-lib/lib_libvserver_la-syscall_netremove.lo: lib/syscall_netremove.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_netremove.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_netremove.Tpo -c -o lib/lib_libvserver_la-syscall_netremove.lo `test -f 'lib/syscall_netremove.c' || echo '$(srcdir)/'`lib/syscall_netremove.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_netremove.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_netremove.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_netremove.c' object='lib/lib_libvserver_la-syscall_netremove.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_netremove.lo `test -f 'lib/syscall_netremove.c' || echo '$(srcdir)/'`lib/syscall_netremove.c
-
-lib/lib_libvserver_la-syscall_setccaps.lo: lib/syscall_setccaps.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_setccaps.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_setccaps.Tpo -c -o lib/lib_libvserver_la-syscall_setccaps.lo `test -f 'lib/syscall_setccaps.c' || echo '$(srcdir)/'`lib/syscall_setccaps.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_setccaps.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_setccaps.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setccaps.c' object='lib/lib_libvserver_la-syscall_setccaps.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_setccaps.lo `test -f 'lib/syscall_setccaps.c' || echo '$(srcdir)/'`lib/syscall_setccaps.c
-
-lib/lib_libvserver_la-syscall_setcflags.lo: lib/syscall_setcflags.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_setcflags.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_setcflags.Tpo -c -o lib/lib_libvserver_la-syscall_setcflags.lo `test -f 'lib/syscall_setcflags.c' || echo '$(srcdir)/'`lib/syscall_setcflags.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_setcflags.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_setcflags.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setcflags.c' object='lib/lib_libvserver_la-syscall_setcflags.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_setcflags.lo `test -f 'lib/syscall_setcflags.c' || echo '$(srcdir)/'`lib/syscall_setcflags.c
-
-lib/lib_libvserver_la-syscall_setiattr.lo: lib/syscall_setiattr.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_setiattr.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_setiattr.Tpo -c -o lib/lib_libvserver_la-syscall_setiattr.lo `test -f 'lib/syscall_setiattr.c' || echo '$(srcdir)/'`lib/syscall_setiattr.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_setiattr.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_setiattr.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setiattr.c' object='lib/lib_libvserver_la-syscall_setiattr.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_setiattr.lo `test -f 'lib/syscall_setiattr.c' || echo '$(srcdir)/'`lib/syscall_setiattr.c
-
-lib/lib_libvserver_la-syscall_setnamespace.lo: lib/syscall_setnamespace.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_setnamespace.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_setnamespace.Tpo -c -o lib/lib_libvserver_la-syscall_setnamespace.lo `test -f 'lib/syscall_setnamespace.c' || echo '$(srcdir)/'`lib/syscall_setnamespace.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_setnamespace.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_setnamespace.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setnamespace.c' object='lib/lib_libvserver_la-syscall_setnamespace.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_setnamespace.lo `test -f 'lib/syscall_setnamespace.c' || echo '$(srcdir)/'`lib/syscall_setnamespace.c
-
-lib/lib_libvserver_la-syscall_setncaps.lo: lib/syscall_setncaps.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_setncaps.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_setncaps.Tpo -c -o lib/lib_libvserver_la-syscall_setncaps.lo `test -f 'lib/syscall_setncaps.c' || echo '$(srcdir)/'`lib/syscall_setncaps.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_setncaps.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_setncaps.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setncaps.c' object='lib/lib_libvserver_la-syscall_setncaps.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_setncaps.lo `test -f 'lib/syscall_setncaps.c' || echo '$(srcdir)/'`lib/syscall_setncaps.c
-
-lib/lib_libvserver_la-syscall_setnflags.lo: lib/syscall_setnflags.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_setnflags.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_setnflags.Tpo -c -o lib/lib_libvserver_la-syscall_setnflags.lo `test -f 'lib/syscall_setnflags.c' || echo '$(srcdir)/'`lib/syscall_setnflags.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_setnflags.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_setnflags.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setnflags.c' object='lib/lib_libvserver_la-syscall_setnflags.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_setnflags.lo `test -f 'lib/syscall_setnflags.c' || echo '$(srcdir)/'`lib/syscall_setnflags.c
-
-lib/lib_libvserver_la-syscall_setsched.lo: lib/syscall_setsched.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_setsched.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_setsched.Tpo -c -o lib/lib_libvserver_la-syscall_setsched.lo `test -f 'lib/syscall_setsched.c' || echo '$(srcdir)/'`lib/syscall_setsched.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_setsched.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_setsched.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setsched.c' object='lib/lib_libvserver_la-syscall_setsched.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_setsched.lo `test -f 'lib/syscall_setsched.c' || echo '$(srcdir)/'`lib/syscall_setsched.c
-
-lib/lib_libvserver_la-syscall_setvhiname.lo: lib/syscall_setvhiname.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_setvhiname.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_setvhiname.Tpo -c -o lib/lib_libvserver_la-syscall_setvhiname.lo `test -f 'lib/syscall_setvhiname.c' || echo '$(srcdir)/'`lib/syscall_setvhiname.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_setvhiname.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_setvhiname.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setvhiname.c' object='lib/lib_libvserver_la-syscall_setvhiname.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_setvhiname.lo `test -f 'lib/syscall_setvhiname.c' || echo '$(srcdir)/'`lib/syscall_setvhiname.c
-
-lib/lib_libvserver_la-syscall_waitexit.lo: lib/syscall_waitexit.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_waitexit.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_waitexit.Tpo -c -o lib/lib_libvserver_la-syscall_waitexit.lo `test -f 'lib/syscall_waitexit.c' || echo '$(srcdir)/'`lib/syscall_waitexit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_waitexit.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_waitexit.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_waitexit.c' object='lib/lib_libvserver_la-syscall_waitexit.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_waitexit.lo `test -f 'lib/syscall_waitexit.c' || echo '$(srcdir)/'`lib/syscall_waitexit.c
-
-lib/lib_libvserver_la-bcaps-v13.lo: lib/bcaps-v13.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-bcaps-v13.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-bcaps-v13.Tpo -c -o lib/lib_libvserver_la-bcaps-v13.lo `test -f 'lib/bcaps-v13.c' || echo '$(srcdir)/'`lib/bcaps-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-bcaps-v13.Tpo lib/$(DEPDIR)/lib_libvserver_la-bcaps-v13.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/bcaps-v13.c' object='lib/lib_libvserver_la-bcaps-v13.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-bcaps-v13.lo `test -f 'lib/bcaps-v13.c' || echo '$(srcdir)/'`lib/bcaps-v13.c
-
-lib/lib_libvserver_la-bcaps_list-v13.lo: lib/bcaps_list-v13.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-bcaps_list-v13.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-bcaps_list-v13.Tpo -c -o lib/lib_libvserver_la-bcaps_list-v13.lo `test -f 'lib/bcaps_list-v13.c' || echo '$(srcdir)/'`lib/bcaps_list-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-bcaps_list-v13.Tpo lib/$(DEPDIR)/lib_libvserver_la-bcaps_list-v13.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/bcaps_list-v13.c' object='lib/lib_libvserver_la-bcaps_list-v13.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-bcaps_list-v13.lo `test -f 'lib/bcaps_list-v13.c' || echo '$(srcdir)/'`lib/bcaps_list-v13.c
-
-lib/lib_libvserver_la-ccaps-v13.lo: lib/ccaps-v13.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-ccaps-v13.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-ccaps-v13.Tpo -c -o lib/lib_libvserver_la-ccaps-v13.lo `test -f 'lib/ccaps-v13.c' || echo '$(srcdir)/'`lib/ccaps-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-ccaps-v13.Tpo lib/$(DEPDIR)/lib_libvserver_la-ccaps-v13.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ccaps-v13.c' object='lib/lib_libvserver_la-ccaps-v13.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-ccaps-v13.lo `test -f 'lib/ccaps-v13.c' || echo '$(srcdir)/'`lib/ccaps-v13.c
-
-lib/lib_libvserver_la-ccaps_list-v13.lo: lib/ccaps_list-v13.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-ccaps_list-v13.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-ccaps_list-v13.Tpo -c -o lib/lib_libvserver_la-ccaps_list-v13.lo `test -f 'lib/ccaps_list-v13.c' || echo '$(srcdir)/'`lib/ccaps_list-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-ccaps_list-v13.Tpo lib/$(DEPDIR)/lib_libvserver_la-ccaps_list-v13.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ccaps_list-v13.c' object='lib/lib_libvserver_la-ccaps_list-v13.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-ccaps_list-v13.lo `test -f 'lib/ccaps_list-v13.c' || echo '$(srcdir)/'`lib/ccaps_list-v13.c
-
-lib/lib_libvserver_la-cflags-v13.lo: lib/cflags-v13.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-cflags-v13.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-cflags-v13.Tpo -c -o lib/lib_libvserver_la-cflags-v13.lo `test -f 'lib/cflags-v13.c' || echo '$(srcdir)/'`lib/cflags-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-cflags-v13.Tpo lib/$(DEPDIR)/lib_libvserver_la-cflags-v13.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags-v13.c' object='lib/lib_libvserver_la-cflags-v13.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-cflags-v13.lo `test -f 'lib/cflags-v13.c' || echo '$(srcdir)/'`lib/cflags-v13.c
-
-lib/lib_libvserver_la-cflags_list-v13.lo: lib/cflags_list-v13.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-cflags_list-v13.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-cflags_list-v13.Tpo -c -o lib/lib_libvserver_la-cflags_list-v13.lo `test -f 'lib/cflags_list-v13.c' || echo '$(srcdir)/'`lib/cflags_list-v13.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-cflags_list-v13.Tpo lib/$(DEPDIR)/lib_libvserver_la-cflags_list-v13.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/cflags_list-v13.c' object='lib/lib_libvserver_la-cflags_list-v13.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-cflags_list-v13.lo `test -f 'lib/cflags_list-v13.c' || echo '$(srcdir)/'`lib/cflags_list-v13.c
-
-lib/lib_libvserver_la-ncaps-net.lo: lib/ncaps-net.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-ncaps-net.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-ncaps-net.Tpo -c -o lib/lib_libvserver_la-ncaps-net.lo `test -f 'lib/ncaps-net.c' || echo '$(srcdir)/'`lib/ncaps-net.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-ncaps-net.Tpo lib/$(DEPDIR)/lib_libvserver_la-ncaps-net.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ncaps-net.c' object='lib/lib_libvserver_la-ncaps-net.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-ncaps-net.lo `test -f 'lib/ncaps-net.c' || echo '$(srcdir)/'`lib/ncaps-net.c
-
-lib/lib_libvserver_la-ncaps_list-net.lo: lib/ncaps_list-net.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-ncaps_list-net.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-ncaps_list-net.Tpo -c -o lib/lib_libvserver_la-ncaps_list-net.lo `test -f 'lib/ncaps_list-net.c' || echo '$(srcdir)/'`lib/ncaps_list-net.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-ncaps_list-net.Tpo lib/$(DEPDIR)/lib_libvserver_la-ncaps_list-net.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ncaps_list-net.c' object='lib/lib_libvserver_la-ncaps_list-net.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-ncaps_list-net.lo `test -f 'lib/ncaps_list-net.c' || echo '$(srcdir)/'`lib/ncaps_list-net.c
-
-lib/lib_libvserver_la-nflags-net.lo: lib/nflags-net.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-nflags-net.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-nflags-net.Tpo -c -o lib/lib_libvserver_la-nflags-net.lo `test -f 'lib/nflags-net.c' || echo '$(srcdir)/'`lib/nflags-net.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-nflags-net.Tpo lib/$(DEPDIR)/lib_libvserver_la-nflags-net.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/nflags-net.c' object='lib/lib_libvserver_la-nflags-net.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-nflags-net.lo `test -f 'lib/nflags-net.c' || echo '$(srcdir)/'`lib/nflags-net.c
-
-lib/lib_libvserver_la-nflags_list-net.lo: lib/nflags_list-net.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-nflags_list-net.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-nflags_list-net.Tpo -c -o lib/lib_libvserver_la-nflags_list-net.lo `test -f 'lib/nflags_list-net.c' || echo '$(srcdir)/'`lib/nflags_list-net.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-nflags_list-net.Tpo lib/$(DEPDIR)/lib_libvserver_la-nflags_list-net.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/nflags_list-net.c' object='lib/lib_libvserver_la-nflags_list-net.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-nflags_list-net.lo `test -f 'lib/nflags_list-net.c' || echo '$(srcdir)/'`lib/nflags_list-net.c
-
-lib/lib_libvserver_la-syscall_adddlimit.lo: lib/syscall_adddlimit.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_adddlimit.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_adddlimit.Tpo -c -o lib/lib_libvserver_la-syscall_adddlimit.lo `test -f 'lib/syscall_adddlimit.c' || echo '$(srcdir)/'`lib/syscall_adddlimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_adddlimit.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_adddlimit.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_adddlimit.c' object='lib/lib_libvserver_la-syscall_adddlimit.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_adddlimit.lo `test -f 'lib/syscall_adddlimit.c' || echo '$(srcdir)/'`lib/syscall_adddlimit.c
-
-lib/lib_libvserver_la-syscall_getdlimit.lo: lib/syscall_getdlimit.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getdlimit.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getdlimit.Tpo -c -o lib/lib_libvserver_la-syscall_getdlimit.lo `test -f 'lib/syscall_getdlimit.c' || echo '$(srcdir)/'`lib/syscall_getdlimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getdlimit.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getdlimit.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getdlimit.c' object='lib/lib_libvserver_la-syscall_getdlimit.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getdlimit.lo `test -f 'lib/syscall_getdlimit.c' || echo '$(srcdir)/'`lib/syscall_getdlimit.c
-
-lib/lib_libvserver_la-syscall_remdlimit.lo: lib/syscall_remdlimit.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_remdlimit.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_remdlimit.Tpo -c -o lib/lib_libvserver_la-syscall_remdlimit.lo `test -f 'lib/syscall_remdlimit.c' || echo '$(srcdir)/'`lib/syscall_remdlimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_remdlimit.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_remdlimit.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_remdlimit.c' object='lib/lib_libvserver_la-syscall_remdlimit.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_remdlimit.lo `test -f 'lib/syscall_remdlimit.c' || echo '$(srcdir)/'`lib/syscall_remdlimit.c
-
-lib/lib_libvserver_la-syscall_setdlimit.lo: lib/syscall_setdlimit.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_setdlimit.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_setdlimit.Tpo -c -o lib/lib_libvserver_la-syscall_setdlimit.lo `test -f 'lib/syscall_setdlimit.c' || echo '$(srcdir)/'`lib/syscall_setdlimit.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_setdlimit.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_setdlimit.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setdlimit.c' object='lib/lib_libvserver_la-syscall_setdlimit.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_setdlimit.lo `test -f 'lib/syscall_setdlimit.c' || echo '$(srcdir)/'`lib/syscall_setdlimit.c
-
-lib/lib_libvserver_la-syscall_rlimitstat.lo: lib/syscall_rlimitstat.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_rlimitstat.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_rlimitstat.Tpo -c -o lib/lib_libvserver_la-syscall_rlimitstat.lo `test -f 'lib/syscall_rlimitstat.c' || echo '$(srcdir)/'`lib/syscall_rlimitstat.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_rlimitstat.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_rlimitstat.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_rlimitstat.c' object='lib/lib_libvserver_la-syscall_rlimitstat.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_rlimitstat.lo `test -f 'lib/syscall_rlimitstat.c' || echo '$(srcdir)/'`lib/syscall_rlimitstat.c
-
-lib/lib_libvserver_la-syscall_resetminmax.lo: lib/syscall_resetminmax.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_resetminmax.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_resetminmax.Tpo -c -o lib/lib_libvserver_la-syscall_resetminmax.lo `test -f 'lib/syscall_resetminmax.c' || echo '$(srcdir)/'`lib/syscall_resetminmax.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_resetminmax.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_resetminmax.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_resetminmax.c' object='lib/lib_libvserver_la-syscall_resetminmax.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_resetminmax.lo `test -f 'lib/syscall_resetminmax.c' || echo '$(srcdir)/'`lib/syscall_resetminmax.c
-
-lib/lib_libvserver_la-syscall_getvci.lo: lib/syscall_getvci.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getvci.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getvci.Tpo -c -o lib/lib_libvserver_la-syscall_getvci.lo `test -f 'lib/syscall_getvci.c' || echo '$(srcdir)/'`lib/syscall_getvci.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getvci.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getvci.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getvci.c' object='lib/lib_libvserver_la-syscall_getvci.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getvci.lo `test -f 'lib/syscall_getvci.c' || echo '$(srcdir)/'`lib/syscall_getvci.c
-
-lib/lib_libvserver_la-syscall_virtstat.lo: lib/syscall_virtstat.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_virtstat.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_virtstat.Tpo -c -o lib/lib_libvserver_la-syscall_virtstat.lo `test -f 'lib/syscall_virtstat.c' || echo '$(srcdir)/'`lib/syscall_virtstat.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_virtstat.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_virtstat.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_virtstat.c' object='lib/lib_libvserver_la-syscall_virtstat.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_virtstat.lo `test -f 'lib/syscall_virtstat.c' || echo '$(srcdir)/'`lib/syscall_virtstat.c
-
-lib/lib_libvserver_la-syscall_ctxstat.lo: lib/syscall_ctxstat.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_ctxstat.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxstat.Tpo -c -o lib/lib_libvserver_la-syscall_ctxstat.lo `test -f 'lib/syscall_ctxstat.c' || echo '$(srcdir)/'`lib/syscall_ctxstat.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxstat.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_ctxstat.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_ctxstat.c' object='lib/lib_libvserver_la-syscall_ctxstat.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_ctxstat.lo `test -f 'lib/syscall_ctxstat.c' || echo '$(srcdir)/'`lib/syscall_ctxstat.c
-
-lib/lib_libvserver_la-syscall_getspacemask.lo: lib/syscall_getspacemask.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getspacemask.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getspacemask.Tpo -c -o lib/lib_libvserver_la-syscall_getspacemask.lo `test -f 'lib/syscall_getspacemask.c' || echo '$(srcdir)/'`lib/syscall_getspacemask.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getspacemask.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getspacemask.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getspacemask.c' object='lib/lib_libvserver_la-syscall_getspacemask.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getspacemask.lo `test -f 'lib/syscall_getspacemask.c' || echo '$(srcdir)/'`lib/syscall_getspacemask.c
-
-lib/lib_libvserver_la-syscall_setmapping.lo: lib/syscall_setmapping.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_setmapping.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_setmapping.Tpo -c -o lib/lib_libvserver_la-syscall_setmapping.lo `test -f 'lib/syscall_setmapping.c' || echo '$(srcdir)/'`lib/syscall_setmapping.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_setmapping.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_setmapping.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_setmapping.c' object='lib/lib_libvserver_la-syscall_setmapping.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_setmapping.lo `test -f 'lib/syscall_setmapping.c' || echo '$(srcdir)/'`lib/syscall_setmapping.c
-
-lib/lib_libvserver_la-syscall_schedinfo.lo: lib/syscall_schedinfo.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_schedinfo.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_schedinfo.Tpo -c -o lib/lib_libvserver_la-syscall_schedinfo.lo `test -f 'lib/syscall_schedinfo.c' || echo '$(srcdir)/'`lib/syscall_schedinfo.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_schedinfo.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_schedinfo.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_schedinfo.c' object='lib/lib_libvserver_la-syscall_schedinfo.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_schedinfo.lo `test -f 'lib/syscall_schedinfo.c' || echo '$(srcdir)/'`lib/syscall_schedinfo.c
-
-lib/lib_libvserver_la-syscall_getsched.lo: lib/syscall_getsched.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_getsched.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_getsched.Tpo -c -o lib/lib_libvserver_la-syscall_getsched.lo `test -f 'lib/syscall_getsched.c' || echo '$(srcdir)/'`lib/syscall_getsched.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_getsched.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_getsched.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_getsched.c' object='lib/lib_libvserver_la-syscall_getsched.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_getsched.lo `test -f 'lib/syscall_getsched.c' || echo '$(srcdir)/'`lib/syscall_getsched.c
-
-lib/lib_libvserver_la-syscall_fsetiattr.lo: lib/syscall_fsetiattr.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_fsetiattr.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_fsetiattr.Tpo -c -o lib/lib_libvserver_la-syscall_fsetiattr.lo `test -f 'lib/syscall_fsetiattr.c' || echo '$(srcdir)/'`lib/syscall_fsetiattr.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_fsetiattr.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_fsetiattr.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_fsetiattr.c' object='lib/lib_libvserver_la-syscall_fsetiattr.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_fsetiattr.lo `test -f 'lib/syscall_fsetiattr.c' || echo '$(srcdir)/'`lib/syscall_fsetiattr.c
-
-lib/lib_libvserver_la-syscall_fgetiattr.lo: lib/syscall_fgetiattr.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_fgetiattr.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_fgetiattr.Tpo -c -o lib/lib_libvserver_la-syscall_fgetiattr.lo `test -f 'lib/syscall_fgetiattr.c' || echo '$(srcdir)/'`lib/syscall_fgetiattr.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_fgetiattr.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_fgetiattr.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_fgetiattr.c' object='lib/lib_libvserver_la-syscall_fgetiattr.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_fgetiattr.lo `test -f 'lib/syscall_fgetiattr.c' || echo '$(srcdir)/'`lib/syscall_fgetiattr.c
-
-lib/lib_libvserver_la-syscall_tagmigrate.lo: lib/syscall_tagmigrate.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_tagmigrate.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_tagmigrate.Tpo -c -o lib/lib_libvserver_la-syscall_tagmigrate.lo `test -f 'lib/syscall_tagmigrate.c' || echo '$(srcdir)/'`lib/syscall_tagmigrate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_tagmigrate.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_tagmigrate.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_tagmigrate.c' object='lib/lib_libvserver_la-syscall_tagmigrate.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_tagmigrate.lo `test -f 'lib/syscall_tagmigrate.c' || echo '$(srcdir)/'`lib/syscall_tagmigrate.c
-
-lib/lib_libvserver_la-syscall_tagcreate.lo: lib/syscall_tagcreate.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_tagcreate.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_tagcreate.Tpo -c -o lib/lib_libvserver_la-syscall_tagcreate.lo `test -f 'lib/syscall_tagcreate.c' || echo '$(srcdir)/'`lib/syscall_tagcreate.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_tagcreate.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_tagcreate.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_tagcreate.c' object='lib/lib_libvserver_la-syscall_tagcreate.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_tagcreate.lo `test -f 'lib/syscall_tagcreate.c' || echo '$(srcdir)/'`lib/syscall_tagcreate.c
-
-lib/lib_libvserver_la-syscall_tasktag.lo: lib/syscall_tasktag.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/lib_libvserver_la-syscall_tasktag.lo -MD -MP -MF lib/$(DEPDIR)/lib_libvserver_la-syscall_tasktag.Tpo -c -o lib/lib_libvserver_la-syscall_tasktag.lo `test -f 'lib/syscall_tasktag.c' || echo '$(srcdir)/'`lib/syscall_tasktag.c
-@am__fastdepCC_TRUE@ mv -f lib/$(DEPDIR)/lib_libvserver_la-syscall_tasktag.Tpo lib/$(DEPDIR)/lib_libvserver_la-syscall_tasktag.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/syscall_tasktag.c' object='lib/lib_libvserver_la-syscall_tasktag.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/lib_libvserver_la-syscall_tasktag.lo `test -f 'lib/syscall_tasktag.c' || echo '$(srcdir)/'`lib/syscall_tasktag.c
-
-ensc_fmt/lib_libvserver_la-fmt-32.lo: ensc_fmt/fmt-32.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_la-fmt-32.lo -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-32.Tpo -c -o ensc_fmt/lib_libvserver_la-fmt-32.lo `test -f 'ensc_fmt/fmt-32.c' || echo '$(srcdir)/'`ensc_fmt/fmt-32.c
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-32.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-32.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmt-32.c' object='ensc_fmt/lib_libvserver_la-fmt-32.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_la-fmt-32.lo `test -f 'ensc_fmt/fmt-32.c' || echo '$(srcdir)/'`ensc_fmt/fmt-32.c
-
-ensc_fmt/lib_libvserver_la-fmt-64.lo: ensc_fmt/fmt-64.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_la-fmt-64.lo -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-64.Tpo -c -o ensc_fmt/lib_libvserver_la-fmt-64.lo `test -f 'ensc_fmt/fmt-64.c' || echo '$(srcdir)/'`ensc_fmt/fmt-64.c
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-64.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-64.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmt-64.c' object='ensc_fmt/lib_libvserver_la-fmt-64.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_la-fmt-64.lo `test -f 'ensc_fmt/fmt-64.c' || echo '$(srcdir)/'`ensc_fmt/fmt-64.c
-
-ensc_fmt/lib_libvserver_la-fmtx-32.lo: ensc_fmt/fmtx-32.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_la-fmtx-32.lo -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmtx-32.Tpo -c -o ensc_fmt/lib_libvserver_la-fmtx-32.lo `test -f 'ensc_fmt/fmtx-32.c' || echo '$(srcdir)/'`ensc_fmt/fmtx-32.c
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmtx-32.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmtx-32.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmtx-32.c' object='ensc_fmt/lib_libvserver_la-fmtx-32.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_la-fmtx-32.lo `test -f 'ensc_fmt/fmtx-32.c' || echo '$(srcdir)/'`ensc_fmt/fmtx-32.c
-
-ensc_fmt/lib_libvserver_la-fmtx-64.lo: ensc_fmt/fmtx-64.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_la-fmtx-64.lo -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmtx-64.Tpo -c -o ensc_fmt/lib_libvserver_la-fmtx-64.lo `test -f 'ensc_fmt/fmtx-64.c' || echo '$(srcdir)/'`ensc_fmt/fmtx-64.c
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmtx-64.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmtx-64.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmtx-64.c' object='ensc_fmt/lib_libvserver_la-fmtx-64.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_la-fmtx-64.lo `test -f 'ensc_fmt/fmtx-64.c' || echo '$(srcdir)/'`ensc_fmt/fmtx-64.c
-
-ensc_fmt/lib_libvserver_la-fmt-tai64n.lo: ensc_fmt/fmt-tai64n.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ensc_fmt/lib_libvserver_la-fmt-tai64n.lo -MD -MP -MF ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-tai64n.Tpo -c -o ensc_fmt/lib_libvserver_la-fmt-tai64n.lo `test -f 'ensc_fmt/fmt-tai64n.c' || echo '$(srcdir)/'`ensc_fmt/fmt-tai64n.c
-@am__fastdepCC_TRUE@ mv -f ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-tai64n.Tpo ensc_fmt/$(DEPDIR)/lib_libvserver_la-fmt-tai64n.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ensc_fmt/fmt-tai64n.c' object='ensc_fmt/lib_libvserver_la-fmt-tai64n.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_libvserver_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ensc_fmt/lib_libvserver_la-fmt-tai64n.lo `test -f 'ensc_fmt/fmt-tai64n.c' || echo '$(srcdir)/'`ensc_fmt/fmt-tai64n.c
-
-src/src_rpm_fake_la-rpm-fake.lo: src/rpm-fake.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_rpm_fake_la_CFLAGS) $(CFLAGS) -MT src/src_rpm_fake_la-rpm-fake.lo -MD -MP -MF src/$(DEPDIR)/src_rpm_fake_la-rpm-fake.Tpo -c -o src/src_rpm_fake_la-rpm-fake.lo `test -f 'src/rpm-fake.c' || echo '$(srcdir)/'`src/rpm-fake.c
-@am__fastdepCC_TRUE@ mv -f src/$(DEPDIR)/src_rpm_fake_la-rpm-fake.Tpo src/$(DEPDIR)/src_rpm_fake_la-rpm-fake.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/rpm-fake.c' object='src/src_rpm_fake_la-rpm-fake.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_rpm_fake_la_CFLAGS) $(CFLAGS) -c -o src/src_rpm_fake_la-rpm-fake.lo `test -f 'src/rpm-fake.c' || echo '$(srcdir)/'`src/rpm-fake.c
-
-lib/testsuite/lib_testsuite_cflags-cflags.o: lib/testsuite/cflags.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_cflags_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/testsuite/lib_testsuite_cflags-cflags.o -MD -MP -MF lib/testsuite/$(DEPDIR)/lib_testsuite_cflags-cflags.Tpo -c -o lib/testsuite/lib_testsuite_cflags-cflags.o `test -f 'lib/testsuite/cflags.c' || echo '$(srcdir)/'`lib/testsuite/cflags.c
-@am__fastdepCC_TRUE@ mv -f lib/testsuite/$(DEPDIR)/lib_testsuite_cflags-cflags.Tpo lib/testsuite/$(DEPDIR)/lib_testsuite_cflags-cflags.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/testsuite/cflags.c' object='lib/testsuite/lib_testsuite_cflags-cflags.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_cflags_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/testsuite/lib_testsuite_cflags-cflags.o `test -f 'lib/testsuite/cflags.c' || echo '$(srcdir)/'`lib/testsuite/cflags.c
-
-lib/testsuite/lib_testsuite_cflags-cflags.obj: lib/testsuite/cflags.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_cflags_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/testsuite/lib_testsuite_cflags-cflags.obj -MD -MP -MF lib/testsuite/$(DEPDIR)/lib_testsuite_cflags-cflags.Tpo -c -o lib/testsuite/lib_testsuite_cflags-cflags.obj `if test -f 'lib/testsuite/cflags.c'; then $(CYGPATH_W) 'lib/testsuite/cflags.c'; else $(CYGPATH_W) '$(srcdir)/lib/testsuite/cflags.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/testsuite/$(DEPDIR)/lib_testsuite_cflags-cflags.Tpo lib/testsuite/$(DEPDIR)/lib_testsuite_cflags-cflags.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/testsuite/cflags.c' object='lib/testsuite/lib_testsuite_cflags-cflags.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_cflags_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/testsuite/lib_testsuite_cflags-cflags.obj `if test -f 'lib/testsuite/cflags.c'; then $(CYGPATH_W) 'lib/testsuite/cflags.c'; else $(CYGPATH_W) '$(srcdir)/lib/testsuite/cflags.c'; fi`
-
-lib/testsuite/lib_testsuite_fmt-fmt.o: lib/testsuite/fmt.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_fmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/testsuite/lib_testsuite_fmt-fmt.o -MD -MP -MF lib/testsuite/$(DEPDIR)/lib_testsuite_fmt-fmt.Tpo -c -o lib/testsuite/lib_testsuite_fmt-fmt.o `test -f 'lib/testsuite/fmt.c' || echo '$(srcdir)/'`lib/testsuite/fmt.c
-@am__fastdepCC_TRUE@ mv -f lib/testsuite/$(DEPDIR)/lib_testsuite_fmt-fmt.Tpo lib/testsuite/$(DEPDIR)/lib_testsuite_fmt-fmt.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/testsuite/fmt.c' object='lib/testsuite/lib_testsuite_fmt-fmt.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_fmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/testsuite/lib_testsuite_fmt-fmt.o `test -f 'lib/testsuite/fmt.c' || echo '$(srcdir)/'`lib/testsuite/fmt.c
-
-lib/testsuite/lib_testsuite_fmt-fmt.obj: lib/testsuite/fmt.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_fmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/testsuite/lib_testsuite_fmt-fmt.obj -MD -MP -MF lib/testsuite/$(DEPDIR)/lib_testsuite_fmt-fmt.Tpo -c -o lib/testsuite/lib_testsuite_fmt-fmt.obj `if test -f 'lib/testsuite/fmt.c'; then $(CYGPATH_W) 'lib/testsuite/fmt.c'; else $(CYGPATH_W) '$(srcdir)/lib/testsuite/fmt.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/testsuite/$(DEPDIR)/lib_testsuite_fmt-fmt.Tpo lib/testsuite/$(DEPDIR)/lib_testsuite_fmt-fmt.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/testsuite/fmt.c' object='lib/testsuite/lib_testsuite_fmt-fmt.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_fmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/testsuite/lib_testsuite_fmt-fmt.obj `if test -f 'lib/testsuite/fmt.c'; then $(CYGPATH_W) 'lib/testsuite/fmt.c'; else $(CYGPATH_W) '$(srcdir)/lib/testsuite/fmt.c'; fi`
-
-lib/testsuite/lib_testsuite_parselimit-parselimit.o: lib/testsuite/parselimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_parselimit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/testsuite/lib_testsuite_parselimit-parselimit.o -MD -MP -MF lib/testsuite/$(DEPDIR)/lib_testsuite_parselimit-parselimit.Tpo -c -o lib/testsuite/lib_testsuite_parselimit-parselimit.o `test -f 'lib/testsuite/parselimit.c' || echo '$(srcdir)/'`lib/testsuite/parselimit.c
-@am__fastdepCC_TRUE@ mv -f lib/testsuite/$(DEPDIR)/lib_testsuite_parselimit-parselimit.Tpo lib/testsuite/$(DEPDIR)/lib_testsuite_parselimit-parselimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/testsuite/parselimit.c' object='lib/testsuite/lib_testsuite_parselimit-parselimit.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_parselimit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/testsuite/lib_testsuite_parselimit-parselimit.o `test -f 'lib/testsuite/parselimit.c' || echo '$(srcdir)/'`lib/testsuite/parselimit.c
-
-lib/testsuite/lib_testsuite_parselimit-parselimit.obj: lib/testsuite/parselimit.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_parselimit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/testsuite/lib_testsuite_parselimit-parselimit.obj -MD -MP -MF lib/testsuite/$(DEPDIR)/lib_testsuite_parselimit-parselimit.Tpo -c -o lib/testsuite/lib_testsuite_parselimit-parselimit.obj `if test -f 'lib/testsuite/parselimit.c'; then $(CYGPATH_W) 'lib/testsuite/parselimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/testsuite/parselimit.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/testsuite/$(DEPDIR)/lib_testsuite_parselimit-parselimit.Tpo lib/testsuite/$(DEPDIR)/lib_testsuite_parselimit-parselimit.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/testsuite/parselimit.c' object='lib/testsuite/lib_testsuite_parselimit-parselimit.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_parselimit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/testsuite/lib_testsuite_parselimit-parselimit.obj `if test -f 'lib/testsuite/parselimit.c'; then $(CYGPATH_W) 'lib/testsuite/parselimit.c'; else $(CYGPATH_W) '$(srcdir)/lib/testsuite/parselimit.c'; fi`
-
-lib/testsuite/lib_testsuite_personality-personality.o: lib/testsuite/personality.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_personality_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/testsuite/lib_testsuite_personality-personality.o -MD -MP -MF lib/testsuite/$(DEPDIR)/lib_testsuite_personality-personality.Tpo -c -o lib/testsuite/lib_testsuite_personality-personality.o `test -f 'lib/testsuite/personality.c' || echo '$(srcdir)/'`lib/testsuite/personality.c
-@am__fastdepCC_TRUE@ mv -f lib/testsuite/$(DEPDIR)/lib_testsuite_personality-personality.Tpo lib/testsuite/$(DEPDIR)/lib_testsuite_personality-personality.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/testsuite/personality.c' object='lib/testsuite/lib_testsuite_personality-personality.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_personality_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/testsuite/lib_testsuite_personality-personality.o `test -f 'lib/testsuite/personality.c' || echo '$(srcdir)/'`lib/testsuite/personality.c
-
-lib/testsuite/lib_testsuite_personality-personality.obj: lib/testsuite/personality.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_personality_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/testsuite/lib_testsuite_personality-personality.obj -MD -MP -MF lib/testsuite/$(DEPDIR)/lib_testsuite_personality-personality.Tpo -c -o lib/testsuite/lib_testsuite_personality-personality.obj `if test -f 'lib/testsuite/personality.c'; then $(CYGPATH_W) 'lib/testsuite/personality.c'; else $(CYGPATH_W) '$(srcdir)/lib/testsuite/personality.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib/testsuite/$(DEPDIR)/lib_testsuite_personality-personality.Tpo lib/testsuite/$(DEPDIR)/lib_testsuite_personality-personality.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/testsuite/personality.c' object='lib/testsuite/lib_testsuite_personality-personality.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_testsuite_personality_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/testsuite/lib_testsuite_personality-personality.obj `if test -f 'lib/testsuite/personality.c'; then $(CYGPATH_W) 'lib/testsuite/personality.c'; else $(CYGPATH_W) '$(srcdir)/lib/testsuite/personality.c'; fi`
-
-lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.o: lib_internal/testsuite/isnumber.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_isnumber_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.o -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber-isnumber.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.o `test -f 'lib_internal/testsuite/isnumber.c' || echo '$(srcdir)/'`lib_internal/testsuite/isnumber.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber-isnumber.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber-isnumber.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/isnumber.c' object='lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_isnumber_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.o `test -f 'lib_internal/testsuite/isnumber.c' || echo '$(srcdir)/'`lib_internal/testsuite/isnumber.c
-
-lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.obj: lib_internal/testsuite/isnumber.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_isnumber_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.obj -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber-isnumber.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.obj `if test -f 'lib_internal/testsuite/isnumber.c'; then $(CYGPATH_W) 'lib_internal/testsuite/isnumber.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/isnumber.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber-isnumber.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber-isnumber.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/isnumber.c' object='lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_isnumber_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_isnumber-isnumber.obj `if test -f 'lib_internal/testsuite/isnumber.c'; then $(CYGPATH_W) 'lib_internal/testsuite/isnumber.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/isnumber.c'; fi`
-
-lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.o: lib_internal/testsuite/isnumber.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_isnumber_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.o -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber_gnu-isnumber.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.o `test -f 'lib_internal/testsuite/isnumber.c' || echo '$(srcdir)/'`lib_internal/testsuite/isnumber.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber_gnu-isnumber.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber_gnu-isnumber.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/isnumber.c' object='lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_isnumber_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.o `test -f 'lib_internal/testsuite/isnumber.c' || echo '$(srcdir)/'`lib_internal/testsuite/isnumber.c
-
-lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.obj: lib_internal/testsuite/isnumber.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_isnumber_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.obj -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber_gnu-isnumber.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.obj `if test -f 'lib_internal/testsuite/isnumber.c'; then $(CYGPATH_W) 'lib_internal/testsuite/isnumber.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/isnumber.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber_gnu-isnumber.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_isnumber_gnu-isnumber.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/isnumber.c' object='lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_isnumber_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_isnumber_gnu-isnumber.obj `if test -f 'lib_internal/testsuite/isnumber.c'; then $(CYGPATH_W) 'lib_internal/testsuite/isnumber.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/isnumber.c'; fi`
-
-lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.o: lib_internal/testsuite/matchlist.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_matchlist_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.o -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist-matchlist.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.o `test -f 'lib_internal/testsuite/matchlist.c' || echo '$(srcdir)/'`lib_internal/testsuite/matchlist.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist-matchlist.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist-matchlist.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/matchlist.c' object='lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_matchlist_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.o `test -f 'lib_internal/testsuite/matchlist.c' || echo '$(srcdir)/'`lib_internal/testsuite/matchlist.c
-
-lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.obj: lib_internal/testsuite/matchlist.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_matchlist_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.obj -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist-matchlist.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.obj `if test -f 'lib_internal/testsuite/matchlist.c'; then $(CYGPATH_W) 'lib_internal/testsuite/matchlist.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/matchlist.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist-matchlist.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist-matchlist.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/matchlist.c' object='lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_matchlist_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_matchlist-matchlist.obj `if test -f 'lib_internal/testsuite/matchlist.c'; then $(CYGPATH_W) 'lib_internal/testsuite/matchlist.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/matchlist.c'; fi`
-
-lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.o: lib_internal/testsuite/matchlist.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_matchlist_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.o -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist_gnu-matchlist.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.o `test -f 'lib_internal/testsuite/matchlist.c' || echo '$(srcdir)/'`lib_internal/testsuite/matchlist.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist_gnu-matchlist.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist_gnu-matchlist.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/matchlist.c' object='lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_matchlist_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.o `test -f 'lib_internal/testsuite/matchlist.c' || echo '$(srcdir)/'`lib_internal/testsuite/matchlist.c
-
-lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.obj: lib_internal/testsuite/matchlist.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_matchlist_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.obj -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist_gnu-matchlist.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.obj `if test -f 'lib_internal/testsuite/matchlist.c'; then $(CYGPATH_W) 'lib_internal/testsuite/matchlist.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/matchlist.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist_gnu-matchlist.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_matchlist_gnu-matchlist.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/matchlist.c' object='lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_matchlist_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_matchlist_gnu-matchlist.obj `if test -f 'lib_internal/testsuite/matchlist.c'; then $(CYGPATH_W) 'lib_internal/testsuite/matchlist.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/matchlist.c'; fi`
-
-lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.o: lib_internal/testsuite/sigbus.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_sigbus_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.o -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus-sigbus.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.o `test -f 'lib_internal/testsuite/sigbus.c' || echo '$(srcdir)/'`lib_internal/testsuite/sigbus.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus-sigbus.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus-sigbus.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/sigbus.c' object='lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_sigbus_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.o `test -f 'lib_internal/testsuite/sigbus.c' || echo '$(srcdir)/'`lib_internal/testsuite/sigbus.c
-
-lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.obj: lib_internal/testsuite/sigbus.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_sigbus_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.obj -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus-sigbus.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.obj `if test -f 'lib_internal/testsuite/sigbus.c'; then $(CYGPATH_W) 'lib_internal/testsuite/sigbus.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/sigbus.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus-sigbus.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus-sigbus.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/sigbus.c' object='lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_sigbus_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_sigbus-sigbus.obj `if test -f 'lib_internal/testsuite/sigbus.c'; then $(CYGPATH_W) 'lib_internal/testsuite/sigbus.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/sigbus.c'; fi`
-
-lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.o: lib_internal/testsuite/sigbus.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_sigbus_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.o -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus_gnu-sigbus.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.o `test -f 'lib_internal/testsuite/sigbus.c' || echo '$(srcdir)/'`lib_internal/testsuite/sigbus.c
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus_gnu-sigbus.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus_gnu-sigbus.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/sigbus.c' object='lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_sigbus_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.o `test -f 'lib_internal/testsuite/sigbus.c' || echo '$(srcdir)/'`lib_internal/testsuite/sigbus.c
-
-lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.obj: lib_internal/testsuite/sigbus.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_sigbus_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.obj -MD -MP -MF lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus_gnu-sigbus.Tpo -c -o lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.obj `if test -f 'lib_internal/testsuite/sigbus.c'; then $(CYGPATH_W) 'lib_internal/testsuite/sigbus.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/sigbus.c'; fi`
-@am__fastdepCC_TRUE@ mv -f lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus_gnu-sigbus.Tpo lib_internal/testsuite/$(DEPDIR)/lib_internal_testsuite_sigbus_gnu-sigbus.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib_internal/testsuite/sigbus.c' object='lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib_internal_testsuite_sigbus_gnu_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib_internal/testsuite/lib_internal_testsuite_sigbus_gnu-sigbus.obj `if test -f 'lib_internal/testsuite/sigbus.c'; then $(CYGPATH_W) 'lib_internal/testsuite/sigbus.c'; else $(CYGPATH_W) '$(srcdir)/lib_internal/testsuite/sigbus.c'; fi`
-
-src/testsuite/src_testsuite_vunify_functest-vunify-functest.o: src/testsuite/vunify-functest.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_testsuite_vunify_functest_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/testsuite/src_testsuite_vunify_functest-vunify-functest.o -MD -MP -MF src/testsuite/$(DEPDIR)/src_testsuite_vunify_functest-vunify-functest.Tpo -c -o src/testsuite/src_testsuite_vunify_functest-vunify-functest.o `test -f 'src/testsuite/vunify-functest.c' || echo '$(srcdir)/'`src/testsuite/vunify-functest.c
-@am__fastdepCC_TRUE@ mv -f src/testsuite/$(DEPDIR)/src_testsuite_vunify_functest-vunify-functest.Tpo src/testsuite/$(DEPDIR)/src_testsuite_vunify_functest-vunify-functest.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/testsuite/vunify-functest.c' object='src/testsuite/src_testsuite_vunify_functest-vunify-functest.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_testsuite_vunify_functest_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/testsuite/src_testsuite_vunify_functest-vunify-functest.o `test -f 'src/testsuite/vunify-functest.c' || echo '$(srcdir)/'`src/testsuite/vunify-functest.c
-
-src/testsuite/src_testsuite_vunify_functest-vunify-functest.obj: src/testsuite/vunify-functest.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_testsuite_vunify_functest_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/testsuite/src_testsuite_vunify_functest-vunify-functest.obj -MD -MP -MF src/testsuite/$(DEPDIR)/src_testsuite_vunify_functest-vunify-functest.Tpo -c -o src/testsuite/src_testsuite_vunify_functest-vunify-functest.obj `if test -f 'src/testsuite/vunify-functest.c'; then $(CYGPATH_W) 'src/testsuite/vunify-functest.c'; else $(CYGPATH_W) '$(srcdir)/src/testsuite/vunify-functest.c'; fi`
-@am__fastdepCC_TRUE@ mv -f src/testsuite/$(DEPDIR)/src_testsuite_vunify_functest-vunify-functest.Tpo src/testsuite/$(DEPDIR)/src_testsuite_vunify_functest-vunify-functest.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/testsuite/vunify-functest.c' object='src/testsuite/src_testsuite_vunify_functest-vunify-functest.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_testsuite_vunify_functest_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/testsuite/src_testsuite_vunify_functest-vunify-functest.obj `if test -f 'src/testsuite/vunify-functest.c'; then $(CYGPATH_W) 'src/testsuite/vunify-functest.c'; else $(CYGPATH_W) '$(srcdir)/src/testsuite/vunify-functest.c'; fi`
-
-src/src_vkill-vkill.o: src/vkill.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_vkill_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/src_vkill-vkill.o -MD -MP -MF src/$(DEPDIR)/src_vkill-vkill.Tpo -c -o src/src_vkill-vkill.o `test -f 'src/vkill.c' || echo '$(srcdir)/'`src/vkill.c
-@am__fastdepCC_TRUE@ mv -f src/$(DEPDIR)/src_vkill-vkill.Tpo src/$(DEPDIR)/src_vkill-vkill.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/vkill.c' object='src/src_vkill-vkill.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_vkill_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/src_vkill-vkill.o `test -f 'src/vkill.c' || echo '$(srcdir)/'`src/vkill.c
-
-src/src_vkill-vkill.obj: src/vkill.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_vkill_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/src_vkill-vkill.obj -MD -MP -MF src/$(DEPDIR)/src_vkill-vkill.Tpo -c -o src/src_vkill-vkill.obj `if test -f 'src/vkill.c'; then $(CYGPATH_W) 'src/vkill.c'; else $(CYGPATH_W) '$(srcdir)/src/vkill.c'; fi`
-@am__fastdepCC_TRUE@ mv -f src/$(DEPDIR)/src_vkill-vkill.Tpo src/$(DEPDIR)/src_vkill-vkill.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/vkill.c' object='src/src_vkill-vkill.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_vkill_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/src_vkill-vkill.obj `if test -f 'src/vkill.c'; then $(CYGPATH_W) 'src/vkill.c'; else $(CYGPATH_W) '$(srcdir)/src/vkill.c'; fi`
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
- -rm -rf ensc_fmt/.libs ensc_fmt/_libs
- -rm -rf lib/.libs lib/_libs
- -rm -rf src/.libs src/_libs
-
-distclean-libtool:
- -rm -f libtool
-install-man8: $(man8_MANS) $(man_MANS)
- @$(NORMAL_INSTALL)
- test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
- @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
- l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
- for i in $$l2; do \
- case "$$i" in \
- *.8*) list="$$list $$i" ;; \
- esac; \
- done; \
- for i in $$list; do \
- if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
- else file=$$i; fi; \
- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
- case "$$ext" in \
- 8*) ;; \
- *) ext='8' ;; \
- esac; \
- inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
- inst=`echo $$inst | sed -e 's/^.*\///'`; \
- inst=`echo $$inst | sed '$(transform)'`.$$ext; \
- echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
- $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
- done
-uninstall-man8:
- @$(NORMAL_UNINSTALL)
- @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
- l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
- for i in $$l2; do \
- case "$$i" in \
- *.8*) list="$$list $$i" ;; \
- esac; \
- done; \
- for i in $$list; do \
- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
- case "$$ext" in \
- 8*) ;; \
- *) ext='8' ;; \
- esac; \
- inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
- inst=`echo $$inst | sed -e 's/^.*\///'`; \
- inst=`echo $$inst | sed '$(transform)'`.$$ext; \
- echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
- rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
- done
-install-pkgconfDATA: $(pkgconf_DATA)
- @$(NORMAL_INSTALL)
- test -z "$(pkgconfdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfdir)"
- @list='$(pkgconf_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
- echo " $(pkgconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfdir)/$$f'"; \
- $(pkgconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfdir)/$$f"; \
- done
-
-uninstall-pkgconfDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(pkgconf_DATA)'; for p in $$list; do \
- f=$(am__strip_dir) \
- echo " rm -f '$(DESTDIR)$(pkgconfdir)/$$f'"; \
- rm -f "$(DESTDIR)$(pkgconfdir)/$$f"; \
- done
-install-pkglibDATA: $(pkglib_DATA)
- @$(NORMAL_INSTALL)
- test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)"
- @list='$(pkglib_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
- echo " $(pkglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \
- $(pkglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \
- done
-
-uninstall-pkglibDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(pkglib_DATA)'; for p in $$list; do \
- f=$(am__strip_dir) \
- echo " rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \
- rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \
- done
-install-sysconfDATA: $(sysconf_DATA)
- @$(NORMAL_INSTALL)
- test -z "$(sysconfdir)" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
- @list='$(sysconf_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
- echo " $(sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f'"; \
- $(sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \
- done
-
-uninstall-sysconfDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(sysconf_DATA)'; for p in $$list; do \
- f=$(am__strip_dir) \
- echo " rm -f '$(DESTDIR)$(sysconfdir)/$$f'"; \
- rm -f "$(DESTDIR)$(sysconfdir)/$$f"; \
- done
-install-includeHEADERS: $(include_HEADERS)
- @$(NORMAL_INSTALL)
- test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
- @list='$(include_HEADERS)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
- echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
- $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
- done
-
-uninstall-includeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(include_HEADERS)'; for p in $$list; do \
- f=$(am__strip_dir) \
- echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
- rm -f "$(DESTDIR)$(includedir)/$$f"; \
- done
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run `make' without going through this Makefile.
-# To change the values of `make' variables: instead of editing Makefiles,
-# (1) if the variable is set in `config.status', edit `config.status'
-# (which will cause the Makefiles to be regenerated when you run `make');
-# (2) otherwise, pass the desired values on the `make' command line.
-$(RECURSIVE_TARGETS):
- @failcom='exit 1'; \
- for f in x $$MAKEFLAGS; do \
- case $$f in \
- *=* | --[!k]*);; \
- *k*) failcom='fail=yes';; \
- esac; \
- done; \
- dot_seen=no; \
- target=`echo $@ | sed s/-recursive//`; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- dot_seen=yes; \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done; \
- if test "$$dot_seen" = "no"; then \
- $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
- fi; test -z "$$fail"
-
-$(RECURSIVE_CLEAN_TARGETS):
- @failcom='exit 1'; \
- for f in x $$MAKEFLAGS; do \
- case $$f in \
- *=* | --[!k]*);; \
- *k*) failcom='fail=yes';; \
- esac; \
- done; \
- dot_seen=no; \
- case "$@" in \
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
- *) list='$(SUBDIRS)' ;; \
- esac; \
- rev=''; for subdir in $$list; do \
- if test "$$subdir" = "."; then :; else \
- rev="$$subdir $$rev"; \
- fi; \
- done; \
- rev="$$rev ."; \
- target=`echo $@ | sed s/-recursive//`; \
- for subdir in $$rev; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done && test -z "$$fail"
-tags-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
- done
-ctags-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
- done
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- tags=; \
- here=`pwd`; \
- if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
- include_option=--etags-include; \
- empty_fix=.; \
- else \
- include_option=--include; \
- empty_fix=; \
- fi; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test ! -f $$subdir/TAGS || \
- tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
- fi; \
- done; \
- list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique; \
- fi
-ctags: CTAGS
-CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- tags=; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(CTAGS_ARGS)$$tags$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @case `sed 15q $(srcdir)/NEWS` in \
- *"$(VERSION)"*) : ;; \
- *) \
- echo "NEWS not updated; not releasing" 1>&2; \
- exit 1;; \
- esac
- $(am__remove_distdir)
- test -d $(distdir) || mkdir $(distdir)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
- list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- distdir=`$(am__cd) $(distdir) && pwd`; \
- top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
- (cd $$subdir && \
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$$top_distdir" \
- distdir="$$distdir/$$subdir" \
- am__remove_distdir=: \
- am__skip_length_check=: \
- distdir) \
- || exit 1; \
- fi; \
- done
- -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
- ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
- || chmod -R a+r $(distdir)
-dist-gzip: distdir
- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
- $(am__remove_distdir)
-dist-bzip2: distdir
- tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
- $(am__remove_distdir)
-
-dist-tarZ: distdir
- tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
- $(am__remove_distdir)
-
-dist-shar: distdir
- shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
- $(am__remove_distdir)
-
-dist-zip: distdir
- -rm -f $(distdir).zip
- zip -rq $(distdir).zip $(distdir)
- $(am__remove_distdir)
-
-dist dist-all: distdir
- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
- tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
- $(am__remove_distdir)
-
-# This target untars the dist file and tries a VPATH configuration. Then
-# it guarantees that the distribution is self-contained by making another
-# tarfile.
-distcheck: dist
- case '$(DIST_ARCHIVES)' in \
- *.tar.gz*) \
- GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
- *.tar.bz2*) \
- bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
- *.tar.Z*) \
- uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
- *.shar.gz*) \
- GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
- *.zip*) \
- unzip $(distdir).zip ;;\
- esac
- chmod -R a-w $(distdir); chmod a+w $(distdir)
- mkdir $(distdir)/_build
- mkdir $(distdir)/_inst
- chmod a-w $(distdir)
- dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
- && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
- && cd $(distdir)/_build \
- && ../configure --srcdir=.. --prefix="$$dc_install_base" \
- $(DISTCHECK_CONFIGURE_FLAGS) \
- && $(MAKE) $(AM_MAKEFLAGS) \
- && $(MAKE) $(AM_MAKEFLAGS) dvi \
- && $(MAKE) $(AM_MAKEFLAGS) check \
- && $(MAKE) $(AM_MAKEFLAGS) install \
- && $(MAKE) $(AM_MAKEFLAGS) installcheck \
- && $(MAKE) $(AM_MAKEFLAGS) uninstall \
- && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
- distuninstallcheck \
- && chmod -R a-w "$$dc_install_base" \
- && ({ \
- (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
- distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
- } || { rm -rf "$$dc_destdir"; exit 1; }) \
- && rm -rf "$$dc_destdir" \
- && $(MAKE) $(AM_MAKEFLAGS) dist \
- && rm -rf $(DIST_ARCHIVES) \
- && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
- $(am__remove_distdir)
- @(echo "$(distdir) archives ready for distribution: "; \
- list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
- sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
-distuninstallcheck:
- @cd $(distuninstallcheck_dir) \
- && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
- || { echo "ERROR: files left after uninstall:" ; \
- if test -n "$(DESTDIR)"; then \
- echo " (check DESTDIR support)"; \
- fi ; \
- $(distuninstallcheck_listfiles) ; \
- exit 1; } >&2
-distcleancheck: distclean
- @if test '$(srcdir)' = . ; then \
- echo "ERROR: distcleancheck can only run from a VPATH build" ; \
- exit 1 ; \
- fi
- @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
- || { echo "ERROR: files left in build directory after distclean:" ; \
- $(distcleancheck_listfiles) ; \
- exit 1; } >&2
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_SCRIPTS)
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) check-recursive
-all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) \
- $(MANS) $(DATA) $(HEADERS) config.h
-installdirs: installdirs-recursive
-installdirs-am:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(legacydir)" "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(initrddir)" "$(DESTDIR)$(legacydir)" "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(pkgconfdir)" "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(sysconfdir)" "$(DESTDIR)$(includedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -rm -f ensc_fmt/$(DEPDIR)/$(am__dirstamp)
- -rm -f ensc_fmt/$(am__dirstamp)
- -rm -f ensc_vector/$(DEPDIR)/$(am__dirstamp)
- -rm -f ensc_vector/$(am__dirstamp)
- -rm -f ensc_vector/testsuite/$(DEPDIR)/$(am__dirstamp)
- -rm -f ensc_vector/testsuite/$(am__dirstamp)
- -rm -f lib/$(DEPDIR)/$(am__dirstamp)
- -rm -f lib/$(am__dirstamp)
- -rm -f lib/testsuite/$(DEPDIR)/$(am__dirstamp)
- -rm -f lib/testsuite/$(am__dirstamp)
- -rm -f lib_internal/$(DEPDIR)/$(am__dirstamp)
- -rm -f lib_internal/$(am__dirstamp)
- -rm -f lib_internal/testsuite/$(DEPDIR)/$(am__dirstamp)
- -rm -f lib_internal/testsuite/$(am__dirstamp)
- -rm -f src/$(DEPDIR)/$(am__dirstamp)
- -rm -f src/$(am__dirstamp)
- -rm -f src/testsuite/$(DEPDIR)/$(am__dirstamp)
- -rm -f src/testsuite/$(am__dirstamp)
- -rm -f tests/$(DEPDIR)/$(am__dirstamp)
- -rm -f tests/$(am__dirstamp)
- -rm -f vserver-start/$(DEPDIR)/$(am__dirstamp)
- -rm -f vserver-start/$(am__dirstamp)
- -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
-clean: clean-recursive
-
-clean-am: clean-checkPROGRAMS clean-generic clean-legacyPROGRAMS \
- clean-libLIBRARIES clean-libLTLIBRARIES clean-libtool \
- clean-local clean-noinstLIBRARIES clean-noinstPROGRAMS \
- clean-pkglibLTLIBRARIES clean-pkglibPROGRAMS \
- clean-sbinPROGRAMS mostlyclean-am
-
-distclean: distclean-recursive
- -rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -rf ./$(DEPDIR) ensc_fmt/$(DEPDIR) ensc_vector/$(DEPDIR) ensc_vector/testsuite/$(DEPDIR) lib/$(DEPDIR) lib/testsuite/$(DEPDIR) lib_internal/$(DEPDIR) lib_internal/testsuite/$(DEPDIR) src/$(DEPDIR) src/testsuite/$(DEPDIR) tests/$(DEPDIR) vserver-start/$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-hdr distclean-libtool distclean-local distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-info: info-recursive
-
-info-am:
-
-install-data-am: install-includeHEADERS install-initrdSCRIPTS \
- install-legacyPROGRAMS install-legacySCRIPTS install-man \
- install-pkgconfDATA
- @$(NORMAL_INSTALL)
- $(MAKE) $(AM_MAKEFLAGS) install-data-hook
-
-install-dvi: install-dvi-recursive
-
-install-exec-am: install-libLIBRARIES install-libLTLIBRARIES \
- install-pkglibDATA install-pkglibLTLIBRARIES \
- install-pkglibPROGRAMS install-pkglibSCRIPTS \
- install-sbinPROGRAMS install-sbinSCRIPTS install-sysconfDATA
- @$(NORMAL_INSTALL)
- $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
-
-install-html: install-html-recursive
-
-install-info: install-info-recursive
-
-install-man: install-man8
-
-install-pdf: install-pdf-recursive
-
-install-ps: install-ps-recursive
-
-installcheck-am: installcheck-initrdSCRIPTS \
- installcheck-legacyPROGRAMS installcheck-legacySCRIPTS \
- installcheck-pkglibPROGRAMS installcheck-pkglibSCRIPTS \
- installcheck-sbinPROGRAMS installcheck-sbinSCRIPTS
-
-maintainer-clean: maintainer-clean-recursive
- -rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -rf $(top_srcdir)/autom4te.cache
- -rm -rf ./$(DEPDIR) ensc_fmt/$(DEPDIR) ensc_vector/$(DEPDIR) ensc_vector/testsuite/$(DEPDIR) lib/$(DEPDIR) lib/testsuite/$(DEPDIR) lib_internal/$(DEPDIR) lib_internal/testsuite/$(DEPDIR) src/$(DEPDIR) src/testsuite/$(DEPDIR) tests/$(DEPDIR) vserver-start/$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am: uninstall-includeHEADERS uninstall-initrdSCRIPTS \
- uninstall-legacyPROGRAMS uninstall-legacySCRIPTS \
- uninstall-libLIBRARIES uninstall-libLTLIBRARIES uninstall-man \
- uninstall-pkgconfDATA uninstall-pkglibDATA \
- uninstall-pkglibLTLIBRARIES uninstall-pkglibPROGRAMS \
- uninstall-pkglibSCRIPTS uninstall-sbinPROGRAMS \
- uninstall-sbinSCRIPTS uninstall-sysconfDATA
-
-uninstall-man: uninstall-man8
-
-.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
- install-data-am install-exec-am install-strip
-
-.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
- all all-am am--refresh check check-TESTS check-am clean \
- clean-checkPROGRAMS clean-generic clean-legacyPROGRAMS \
- clean-libLIBRARIES clean-libLTLIBRARIES clean-libtool \
- clean-local clean-noinstLIBRARIES clean-noinstPROGRAMS \
- clean-pkglibLTLIBRARIES clean-pkglibPROGRAMS \
- clean-sbinPROGRAMS ctags ctags-recursive dist dist-all \
- dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip distcheck \
- distclean distclean-compile distclean-generic distclean-hdr \
- distclean-libtool distclean-local distclean-tags \
- distcleancheck distdir distuninstallcheck dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-data-hook install-dvi install-dvi-am \
- install-exec install-exec-am install-exec-hook install-html \
- install-html-am install-includeHEADERS install-info \
- install-info-am install-initrdSCRIPTS install-legacyPROGRAMS \
- install-legacySCRIPTS install-libLIBRARIES \
- install-libLTLIBRARIES install-man install-man8 install-pdf \
- install-pdf-am install-pkgconfDATA install-pkglibDATA \
- install-pkglibLTLIBRARIES install-pkglibPROGRAMS \
- install-pkglibSCRIPTS install-ps install-ps-am \
- install-sbinPROGRAMS install-sbinSCRIPTS install-strip \
- install-sysconfDATA installcheck installcheck-am \
- installcheck-initrdSCRIPTS installcheck-legacyPROGRAMS \
- installcheck-legacySCRIPTS installcheck-pkglibPROGRAMS \
- installcheck-pkglibSCRIPTS installcheck-sbinPROGRAMS \
- installcheck-sbinSCRIPTS installdirs installdirs-am \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
- pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
- uninstall-includeHEADERS uninstall-initrdSCRIPTS \
- uninstall-legacyPROGRAMS uninstall-legacySCRIPTS \
- uninstall-libLIBRARIES uninstall-libLTLIBRARIES uninstall-man \
- uninstall-man8 uninstall-pkgconfDATA uninstall-pkglibDATA \
- uninstall-pkglibLTLIBRARIES uninstall-pkglibPROGRAMS \
- uninstall-pkglibSCRIPTS uninstall-sbinPROGRAMS \
- uninstall-sbinSCRIPTS uninstall-sysconfDATA
-
-
-silent.%: FORCE
- @t=$$($(MKTEMP) -d /tmp/build.XXXXXX) && \
- trap "rm -rf $$t" EXIT && \
- mkfifo $$t/fifo && \
- ( grep --line-buffered -v \
- -e ': In function' \
- -e 'your code still has assertions enabled' \
- -e ' is obsoleted' \
- -e 'warning: #warning' <$$t/fifo & ) && \
- exec 2>$$t/fifo && \
- $(MAKE) '$*' -s >/dev/null
-
-pathconfig.h: .pathconfig.h.pathsubst.stamp
-.%.pathsubst.stamp: %.pathsubst Makefile
- @mkdir -p $$(dirname '$@')
- @echo "$(SED) -e '...' $*.pathsubst >$*"
- @$(SED) -e '$(pathsubst_RULES)' '$<' >'$@.tmp'
- @-chmod --reference='$<' '$@.tmp'
- @if cmp -s '$@.tmp' '$*'; then \
- echo "... no changes, reusing old version"; \
- rm -f '$@.tmp'; \
- else \
- rm -f '$*'; mv '$@.tmp' '$*'; \
- fi
- @chmod a-w '$*'
- @touch '$@'
-
-update-doc: doc
- $(top_srcdir)/update-doc
-
-install-data-hook: install-fix-script-paths install-create-dirs
-
-install-create-dirs:
- $(mkinstalldirs) -m 0755 $(DESTDIR)$(pkgstatedir) $(DESTDIR)$(pkgstatedir).rev $(DESTDIR)$(vshelperstatedir)
- $(mkinstalldirs) -m 0700 $(DESTDIR)$(pkgcachedir)
- $(mkinstalldirs) -m 0755 $(DESTDIR)$(confdefaultsdir)
- f=$(DESTDIR)$(confdefaultsdir)/vdirbase; test -e "$$f" || ln -sf '$(vserverdir)' "$$f"
- f=$(DESTDIR)$(confdefaultsdir)/cachebase; test -e "$$f" || ln -sf '$(pkgcachedir)' "$$f"
- f=$(DESTDIR)$(pkgstaterevdir); test -e "$$f" || ln -sf '$(pkgstatedir).rev' "$$f"
-
-install-fix-script-paths:
- test "/usr/lib/util-vserver" = "$(pkglibdir)" || \
- for i in $(fix_SCRPTS); do \
- f="$(DESTDIR)$$i"; \
- $(SED) -e 's!/usr/lib/util-vserver!$(pkglibdir)!g' "$$f" >"$$f.tmp"; \
- $(CMP) -s "$$f.tmp" "$$f" || cat "$$f.tmp" >"$$f"; \
- rm -f "$$f.tmp"; \
- done
-
-install-distribution: _install-vserverdir _install-vshelperlink
-
-_install-vshelperlink:
- $(mkinstalldirs) $(DESTDIR)/sbin
- ln -sf ..$(pkglibdir)/vshelper $(DESTDIR)/sbin/vshelper
-
-_install-vserverdir:
- $(mkinstalldirs) $(DESTDIR)$(vserverdir) $(DESTDIR)$(vserverpkgdir)
-
-.fixups: config.status util-vserver.spec
- chmod a-w util-vserver.spec
- touch $@
-
-@USE_DIETLIBC_TRUE@$(addsuffix $(EXEEXT), $(DIETPROGS)) \
-@USE_DIETLIBC_TRUE@$(addsuffix $(OBJEXT), $(DIETPROGS)) \
-@USE_DIETLIBC_TRUE@ : CC=$(DIET_CC)
-
-install-exec-hook:
- cd $(DESTDIR)$(sbindir) && $(LN_S)f vuseradd vadduser
- cd $(DESTDIR)$(sbindir) && $(LN_S)f vuserdel vdeluser
- mkdir -p $(DESTDIR)/bin
- cd $(DESTDIR)/bin && $(LN_S)f ../$(sbindir)/vsh
-
-install-data-hook:
- install -D -m 644 scripts/vcached.logrotate $(DESTDIR)/$(sysconfdir)/logrotate.d/vcached
- install -D -m 644 scripts/vcached.cron $(DESTDIR)/$(sysconfdir)/cron.d/vcached
-
-doc: lib/apidoc/.apidoc
-clean-local: clean_lib_apidoc
-
-clean_lib_apidoc:
- -rm -rf lib/apidoc/html lib/apidoc/latex lib/apidoc/man
-
-lib/apidoc/.apidoc: lib/apidoc/Doxyfile lib/vserver.h lib/internal.h
- -rm -rf lib/apidoc/html lib/apidoc/latex lib/apidoc/man
- cd "$$(dirname '$<')" && $(DOXYGEN) "$$(basename '$<')"
- $(MAKE) -j1 -C lib/apidoc/latex
- touch '$@'
-
-install-exec-hook: src_install_exec_hook
-
-src_install_exec_hook:
- -rm -f $(DESTDIR)$(pkglibdir)/rpm-fake.a $(DESTDIR)$(pkglibdir)/rpm-fake.la
-
-clean-local: clean-testsuite
-
-clean-testsuite:
- rm -rf src/testsuite/.libs src/testsuite/_libs
-
-doc/configuration.html: STYLESHEET=$(srcdir)/doc/configuration-xhtml.xsl
-doc/configuration.html: $(srcdir)/doc/configuration-xhtml.xsl
-
-doc/compatibility.html: STYLESHEET=$(srcdir)/doc/compatibility-xhtml.xsl
-doc/compatibility.html: $(srcdir)/doc/compatibility-xhtml.xsl
-
-doc: doc_doc
-doc_doc: $(doc_gen_DOCS)
-@HAVE_XSLTP_TRUE@%.html: %.xml $(STYLESHEET)
-@HAVE_XSLTP_TRUE@ @-rm -f '$@.tmp' '$@'
-@HAVE_XSLTP_TRUE@ LANG=C $(XSLTP) $(XSLTP_AMFLAGS) -in '$<' -xsl $(STYLESHEET) -out '$@.tmp'
-@HAVE_XSLTP_TRUE@ @mv -f '$@.tmp' '$@'
-@HAVE_XSLTPROC_TRUE@@HAVE_XSLTP_FALSE@%.html: %.xml $(STYLESHEET)
-@HAVE_XSLTPROC_TRUE@@HAVE_XSLTP_FALSE@ @-rm -f '$@.tmp' '$@'
-@HAVE_XSLTPROC_TRUE@@HAVE_XSLTP_FALSE@ $(XSLTPROC) $(XSLT_FLAGS) $(XSLT_AMFLAGS) -o '$@.tmp' "$(STYLESHEET)" "$<"
-@HAVE_XSLTPROC_TRUE@@HAVE_XSLTP_FALSE@ @mv -f '$@.tmp' '$@'
-
-scripts/util-vserver-vars: scripts/.util-vserver-vars.pathsubst.stamp
-scripts/legacy/vps: scripts/legacy/.vps.pathsubst.stamp
-
-sysv/%: sysv/%.subst
- @mkdir -p $$(dirname '$@')
- sed -e '$(sysv_SUBSTRULE)' '$<' >'$@.tmp'
- @rm -f '$@'
- @if cmp -s '$<' '$@.tmp'; then \
- cp -p '$<' '$@'; \
- else \
- mv -f '$@.tmp' '$@'; \
- fi
- @rm -f '$@.tmp'
- @chmod a-w '$@'
-
-contrib/manifest.dat: contrib/.manifest.dat.pathsubst.stamp
-
-gpgsig:
- gpgkey=$(GPG_KEY); \
- gpg $${gpgkey:+--default-key "$$gpgkey"} --armor --detach-sign $(distdir).tar.bz2
-
-$(BUILT_SOURCES) config.h: .X$(subst /,_,$(sysconfdir))-up-to-date
-
-distclean-local: distclean-uptodate
-
-distclean-uptodate:
- @rm -f .*-up-to-date
-
-.%-up-to-date:
- @rm -f .*-up-to-date
- @$(MAKE) -s clean
- @touch -t 197001020000 '$@'
- @$(MAKE) -s $(BUILT_SOURCES)
-
-ChangeLog.sed:
- test "$(srcdir)" != "."
-
-@HAVE_SVN2CL_TRUE@ChangeLog: Makefile
-@HAVE_SVN2CL_TRUE@ if test "$(srcdir)" = "." -a -d .svn; then \
-@HAVE_SVN2CL_TRUE@ $(SVN2CL) $(SVN2CL_ALLFLAGS) -o $@; \
-@HAVE_SVN2CL_TRUE@ fi
-
-.PHONY: ChangeLog
-
-%.pc: %.pc.subst Makefile
- rm -f $@
- @case '$(libdir)' in \
- $(BAD_LIB_PATHS)) libflags=;; \
- *) libflags='-L$${libdir} ';; \
- esac; \
- case '$(pkgincludedir)' in \
- $(BAD_INC_PATHS)) pkgincflags=;; \
- *) pkgincflags='-I$${pkgincludedir} ';; \
- esac; \
- case '$(includedir)' in \
- $(BAD_INC_PATHS)) incflags=;; \
- *) incflags='-I$${includedir} ';; \
- esac; \
- echo sed -e '$(pkgconf_SUBST)' "$< >$@"; \
- sed -e '$(pkgconf_SUBST)' $< >$@
- test -z "$(CHMOD_REFERENCE)" || $(CHMOD_REFERENCE) '$<' '$@'
- chmod a-w $@
-
-# if !ENSC_USE_DIETLIBC
-# if !ENSC_USE_GLIBC
-# nodist_lib_nolib_enabled_error_a_SOURCES = \
-# lib-nolib-enabled-error.c
-# endif
-# endif
-
-.PHONY: lib-glibc-not-enabled-error.a \
- lib-glibc-not-enabled-error.c \
- lib-dietlibc-not-enabled-error.a \
- lib-dietlibc-not-enabled-error.c \
- lib-nolib-enabled-error.a \
- lib-nolib-enabled-error.c
-
-install-exec-hook install-data-hook: install-notify-xtra
-
-install-notify-xtra:
- @echo
- @echo
- @echo '***************************'
- @echo '*'
- @echo '* NOTE: a plain "make install" installs only the files under $$(prefix)'
- @echo '* which might be insufficient. To complete the installation,'
- @echo '* "make install-distribution" should be executed. See README,'
- @echo '* "Notes for distributors" for details.'
- @echo '*'
- @echo '***************************'
- @echo
- @echo
-
-.PHONY: install-notify-xtra
-
-.PHONY: FORCE update-doc
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
+++ /dev/null
-version 0.30.214
-================
- - patches for yum-3.2.
-
- - various fixes to allow for *SuSE guests.
-
- - added Fedora 7.
-
- - replace file with h2ext for build -m template.
-
- - add exclude list support for vclone.
-
- - include debootstrap scripts for a lot of distributions.
-
- - fixes to allow the Gentoo initscripts to be used with baselayout 2.
-
- - remove disk limit caches on vserver ... delete.
-
- - added support for the new APIs in 2.2 and 2.3, in particular the
- netv2 API, allowing native IPv6 support.
-
- - added support for a separate filesystem tag.
-
-version 0.30.213
-================
- - added support for the device mapping feature present in development
- kernels.
-
- - further improved Gentoo support, again thanks to Benedikt Böhm.
-
- - support persistent contexts.
-
- - add another initscript that creates directories, configures vshelper
- as well as kills all contexts.
-
- - new vserver-stat implementation, which uses the accounting APIs
- available in Linux-VServer 2.2.
-
- - added support for setting sysctl values in the guest configuration.
-
- - added a clone build method, which simply links already unified files.
-
- - implement dynamic contexts in userspace, generating a static one
- during vserver ... build.
-
- - fix the endless loop in vlogin.
-
- - fix Ubuntu builds.
-
- - improved support for Debian Etch, thanks to Benedikt Böhm.
-
- - added CentOS 5.
-
- - use the state change helper to try to cleanup after us if the guest
- exited on its own.
-
-version 0.30.212
-================
- - support for the Linux-VServer 2.1 API has been implemented.
-
- - the scheduler configuration has been split up into multiple files.
-
- - namespace cleanup is enabled by default. This can be disabled by
- touch ${sysconfdir}/vservers/.defaults/nonamespace-cleanup
-
- - all unset ulimits are now reset to infinity, so limits are no longer
- inherited from the host.
-
- - much improved Gentoo support, thanks to Benedikt Böhm.
-
-version 0.30.211
-================
-
- - novlandev is now the default. To reenable the old behaviour of
- creating VLAN interfaces where used, touch
- ${sysconfdir}/vservers/.defaults/interfaces/vlandev.
-
- - vshelper now works correctly with the kernel legacy support turned
- off.
-
- - vlogin provides a terminal proxy which allocates a new psuedo-tty
- on the inside when you enter a guest.
-
- - and lots of other features/fixes, see ChangeLog.
-
-
-version 0.30.210
-================
-
- - LEGACY BREAKAGE: by default, only recent kernel APIs will be
- supported so you have to make sure to use at least the vs2.0.1
- kernel patch. With older kernels, you have to call 'configure'
- with '--enable-apis=NOLEGACY'. Some programs will not work anymore
- with the default settings; these ones are:
-
- + capchroot
- * chcontext-context
- * reducecap
-
- - dlimit support was integrated into the standard vserver
- operations. Thanks to Daniel Hokka Zakrisson for his patch.
-
- - recent kernel API is now used for setting up the network
- contexts. So it should be now possible to use a kernel compiled
- without CONFIG_VSERVER_LEGACYNET. Thanks to Daniel Hokka Zakrisson
- for his patch. .
-
-
-version 0.30.209
-================
-
- - large revamping...
-
-
-version 0.23.6
-==============
-
- - fixed '--level' option on 'vserver ... chkconfig'
+++ /dev/null
-Some common notes/FAQs:
-======================
-
-* when vserver startup/shutdown fails, or when you get
-
- | Error: /proc must be mounted
-
- errors, make sure, that 'vprocunhide' was executed. When installing
- 'util-vserver' with packagemanagement, an appropriate initscript
- should be installed
-
-* the name of old-style vservers is shown on 2.4 kernels only; the
- needed functionality is not implemented for 2.6 kernels.
-
-
-
-Some distribution specific notes:
-=================================
-
-Red Hat 7.3, Red Hat 9, Fedora Core 1&2
----------------------------------------
-* tested and running successfully as host and guest systems
-
-* it is *strongly* suggested to use the rpm packages which can be
- created from the tarball with
-
- | $ rpmbuild -tb util-vserver-<version>.tar.bz2
-
- For distributions below Fedora Core 2, additional
-
- | --without dietlibc --without xalan
-
- flags are required for the 'rpmbuild' command. Builds on Red Hat 7.3
- will require a
-
- | --nodeps
-
- also, since 'vconfig' is not available there. Since it is required
- for path-detection only and paths from RH systems will be assumed by
- default, this should not be a big problem.
-
-* guest systems can be created with the 'apt-rpm' or 'yum' build-methods.
- The first one requires the 'apt' package e.g. from http://fedora.us and
- the configuration of a near mirror in
-
- | /etc/vservers/.distributions/<id>/apt/sources.list
-
- (To avoid slashdotting by the masses of util-vserver-users, there
- does not exist a standard mirror).
-
- The 'yum' method uses the repository configuration shipped by the
- fedora-release package.
-
-* RH/FC uses the 'sysv' initstyle which is assumed by default
-
-* when having existing vservers with RH 9 or Fedora Core 1, the startup
- of the vserver will probably fail. You will have to add
-
- | true
-
- to etc/rc.d/rc (within the vserver root directory)
-
-* when having RH/FC guestsystems, it is *strongly* recommended to use
- a dietlibc linked version of 'rpm-fake-resolver'. Else, package
- installation with 'vrpm', 'vapt-get' or 'vyum' can fail since users
- can not be resolved.
-
-
-
-Debian Woody & Sarge
---------------------
-* tested and running successfully as guest systems on FC1/FC2 hosts
-
-* guest systems can be created with the 'debootstrap' method. When
- not already existing, the needed package will be downloaded
- automatically. Since it is updated very often, it can happen
- that a '404 Not found' error occurs; in this case look either
- for a newer util-vserver package, or configure the new URI e.g. with
-
- | echo 'http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_<version>_i386.deb' \
- | >/etc/vservers/.defaults/apps/debootstrap/uri
-
- You can download a local copy of this tarball also, and register it
- with
-
- | echo '/<path-to-the-tarball>' \
- | >/etc/vservers/.defaults/apps/debootstrap/uri
-
-* it is known, that warning messages will be created at startup and
- shutdown of guest servers. This is non fatal and can be ignored
-
-* Debian guest systems are running fine with the 'sysv' initstyle;
- success with 'plain' was reported also
-
-* no packages for Debian hosts are known at time of writing (May 2004)
-
-
-
-Gentoo
-------
-* Gentoo guest systems are very complicated and are requiring lots of
- modifications in the initscripts. Currently, no step-by-step guide
- can be provided
-
-* 'sysv' initstyle is probably not working for Gentoo guests (e.g. you
- will see messages about missing 'utmp' files); 'gentoo' should be
- used instead of:
-
- | echo 'gentoo' >/etc/vservers/<id>/apps/init/style
-
-* there does not exist a build-method for Gentoo guests; instead of,
- create a skeleton with
-
- | # vserver <id> build -m skeleton --initstyle gentoo <other-opts>*
-
- and fill the vserver directory at /etc/vservers/<id>/vdir/ manually.
-
-
-
-Notes for distributors:
-=======================
-
-To generate FHS compliant paths, call configure with
-
-| ./configure --prefix=/usr --mandir=/usr/share/man \
-| --sysconfdir=/etc --localstatedir=/var \
-| --with-vrootdir=<an FHS compliant path for /vservers>
-
-Except the '--with-vrootdir' option, rpm's '%configure' option will
-expand to this.
-
-
-There exists a 'make install-distribution' target which installs
-files outside of the configured 'prefix'. In particular, these files are:
-
-* the /sbin/vshelper symlink
-* the /vservers and related directories (or whatever you configured
- with '--with-vrootdir')
-
-Without this rule, 'make distcheck' would fail.
-
-
-It might be needed also, to call 'setattr --barrier /vservers' in an
-after-installation script.
-
-
-
-Which version shall I use?
-==========================
-
-As you probably know, two branches of 'util-vserver' are existing: the
-'stable' one, and the 'alpha' one. This terms are to be understood as
-a level of the featureset stability but not of the software stability.
-
-E.g. 'stable' is not really stable: it has huge security problems and
-missing functionality. But you can expect that the current configuration
-will work in future versions also. This version is untested on author's
-side and it will be hard to bring patches/fixes in, since it must be
-proofed that they will not break anything.
-
-In the opposite, the 'alpha' branch does not have known security issues
-and works well (at least on author's system ;)). But it may happen
-that some behavior or configuration options change.
-
-With 'alpha' you should be still able to use vservers created with the
-'stable' branch, but you may encounter some oddities -- especially on
-kernel 2.6 systems (e.g. 'vserver-stat' will not show the names of old
-vservers).
-
-
-So let me summarize:
-
-* when you have productive vservers running for some years already, stay
- at the 'stable' branch. A change to 'alpha' will need a completely
- rewritten configuration which must be perhaps changed again.
-
-* when you are new at vservers, use the 'alpha' branch. You will have
- to learn the principles of vserver configuration for both branches
- but 'alpha' makes some things easier.
-
-* when you have existing vservers and want all the new kernel 2.6
- functionality, use the 'alpha' branch.
-
-
-A last note: the 'alpha' branch works both with the stable 2.4 and the
-development 2.6 kernel patch.
-
-
-
-## $Id: README 2283 2006-09-10 17:07:57Z hollow $
+++ /dev/null
-Build requirements:
-* iproute/iproute2
-* iptables
-* vconfig/vlan (see http://www.candelatech.com/~greear/vlan.html)
-* wget
-
-Recommended build environment:
-* gcc >= 3
-* beecrypt-devel
-* dietlibc >= 0.25
+++ /dev/null
-I want to thank
-
-Jacques Gelinas <jack@solucorp.qc.ca>,
- who wrote and maintains the 'vserver' package on which util-vserver
- is based on
-
-Sam Vilain,
- for providing man-pages and patches used in the Debian package
-
-Olivier Poitrey
- for his work on the XML/XSD based documentation format
-
-Herbert Poetzl,
- for providing the alternative syscall.h implementation
-
-Daniel Hokka Zakrisson
- for his patches which add support for non-legacy network functionality
- and much better dlimit support
-
-Benedikt Böhm
- for the much improved Gentoo support
-
-
-all the other people, who contributed to the original 'vserver' package
+++ /dev/null
-# generated automatically by aclocal 1.10 -*- Autoconf -*-
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-# 2005, 2006 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-m4_if(m4_PACKAGE_VERSION, [2.61],,
-[m4_fatal([this file was generated for autoconf 2.61.
-You have another version of autoconf. If you want to use that,
-you should regenerate the build system entirely.], [63])])
-
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
-
-# serial 48 AC_PROG_LIBTOOL
-
-
-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
-# -----------------------------------------------------------
-# If this macro is not defined by Autoconf, define it here.
-m4_ifdef([AC_PROVIDE_IFELSE],
- [],
- [m4_define([AC_PROVIDE_IFELSE],
- [m4_ifdef([AC_PROVIDE_$1],
- [$2], [$3])])])
-
-
-# AC_PROG_LIBTOOL
-# ---------------
-AC_DEFUN([AC_PROG_LIBTOOL],
-[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
-dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
-dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
- AC_PROVIDE_IFELSE([AC_PROG_CXX],
- [AC_LIBTOOL_CXX],
- [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
- ])])
-dnl And a similar setup for Fortran 77 support
- AC_PROVIDE_IFELSE([AC_PROG_F77],
- [AC_LIBTOOL_F77],
- [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
-])])
-
-dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
-dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
-dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
- AC_PROVIDE_IFELSE([AC_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [ifdef([AC_PROG_GCJ],
- [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
- ifdef([A][M_PROG_GCJ],
- [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
- ifdef([LT_AC_PROG_GCJ],
- [define([LT_AC_PROG_GCJ],
- defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
-])])# AC_PROG_LIBTOOL
-
-
-# _AC_PROG_LIBTOOL
-# ----------------
-AC_DEFUN([_AC_PROG_LIBTOOL],
-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
-
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-AC_SUBST(LIBTOOL)dnl
-
-# Prevent multiple expansion
-define([AC_PROG_LIBTOOL], [])
-])# _AC_PROG_LIBTOOL
-
-
-# AC_LIBTOOL_SETUP
-# ----------------
-AC_DEFUN([AC_LIBTOOL_SETUP],
-[AC_PREREQ(2.50)dnl
-AC_REQUIRE([AC_ENABLE_SHARED])dnl
-AC_REQUIRE([AC_ENABLE_STATIC])dnl
-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_PROG_LD])dnl
-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
-AC_REQUIRE([AC_PROG_NM])dnl
-
-AC_REQUIRE([AC_PROG_LN_S])dnl
-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
-AC_REQUIRE([AC_OBJEXT])dnl
-AC_REQUIRE([AC_EXEEXT])dnl
-dnl
-
-AC_LIBTOOL_SYS_MAX_CMD_LEN
-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
-AC_LIBTOOL_OBJDIR
-
-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
-_LT_AC_PROG_ECHO_BACKSLASH
-
-case $host_os in
-aix3*)
- # AIX sometimes has problems with the GCC collect2 program. For some
- # reason, if we set the COLLECT_NAMES environment variable, the problems
- # vanish in a puff of smoke.
- if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
- fi
- ;;
-esac
-
-# Sed substitution that helps us do robust quoting. It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed='sed -e 1s/^X//'
-[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
-
-# Same as above, but do not quote variable references.
-[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
-
-# Sed substitution to delay expansion of an escaped shell variable in a
-# double_quote_subst'ed string.
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
-
-# Sed substitution to avoid accidental globbing in evaled expressions
-no_glob_subst='s/\*/\\\*/g'
-
-# Constants:
-rm="rm -f"
-
-# Global variables:
-default_ofile=libtool
-can_build_shared=yes
-
-# All known linkers require a `.a' archive for static linking (except MSVC,
-# which needs '.lib').
-libext=a
-ltmain="$ac_aux_dir/ltmain.sh"
-ofile="$default_ofile"
-with_gnu_ld="$lt_cv_prog_gnu_ld"
-
-AC_CHECK_TOOL(AR, ar, false)
-AC_CHECK_TOOL(RANLIB, ranlib, :)
-AC_CHECK_TOOL(STRIP, strip, :)
-
-old_CC="$CC"
-old_CFLAGS="$CFLAGS"
-
-# Set sane defaults for various variables
-test -z "$AR" && AR=ar
-test -z "$AR_FLAGS" && AR_FLAGS=cru
-test -z "$AS" && AS=as
-test -z "$CC" && CC=cc
-test -z "$LTCC" && LTCC=$CC
-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-test -z "$LD" && LD=ld
-test -z "$LN_S" && LN_S="ln -s"
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
-test -z "$NM" && NM=nm
-test -z "$SED" && SED=sed
-test -z "$OBJDUMP" && OBJDUMP=objdump
-test -z "$RANLIB" && RANLIB=:
-test -z "$STRIP" && STRIP=:
-test -z "$ac_objext" && ac_objext=o
-
-# Determine commands to create old-style static archives.
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
-old_postinstall_cmds='chmod 644 $oldlib'
-old_postuninstall_cmds=
-
-if test -n "$RANLIB"; then
- case $host_os in
- openbsd*)
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
- ;;
- *)
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
- ;;
- esac
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
-fi
-
-_LT_CC_BASENAME([$compiler])
-
-# Only perform the check for file, if the check method requires it
-case $deplibs_check_method in
-file_magic*)
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
- AC_PATH_MAGIC
- fi
- ;;
-esac
-
-AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
-enable_win32_dll=yes, enable_win32_dll=no)
-
-AC_ARG_ENABLE([libtool-lock],
- [AC_HELP_STRING([--disable-libtool-lock],
- [avoid locking (might break parallel builds)])])
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-
-AC_ARG_WITH([pic],
- [AC_HELP_STRING([--with-pic],
- [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
- [pic_mode="$withval"],
- [pic_mode=default])
-test -z "$pic_mode" && pic_mode=default
-
-# Use C for the default configuration in the libtool script
-tagname=
-AC_LIBTOOL_LANG_C_CONFIG
-_LT_AC_TAGCONFIG
-])# AC_LIBTOOL_SETUP
-
-
-# _LT_AC_SYS_COMPILER
-# -------------------
-AC_DEFUN([_LT_AC_SYS_COMPILER],
-[AC_REQUIRE([AC_PROG_CC])dnl
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# If no C compiler flags were specified, use CFLAGS.
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-])# _LT_AC_SYS_COMPILER
-
-
-# _LT_CC_BASENAME(CC)
-# -------------------
-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
-AC_DEFUN([_LT_CC_BASENAME],
-[for cc_temp in $1""; do
- case $cc_temp in
- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
- \-*) ;;
- *) break;;
- esac
-done
-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
-])
-
-
-# _LT_COMPILER_BOILERPLATE
-# ------------------------
-# Check for compiler boilerplate output or warnings with
-# the simple compiler test code.
-AC_DEFUN([_LT_COMPILER_BOILERPLATE],
-[ac_outfile=conftest.$ac_objext
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_compiler_boilerplate=`cat conftest.err`
-$rm conftest*
-])# _LT_COMPILER_BOILERPLATE
-
-
-# _LT_LINKER_BOILERPLATE
-# ----------------------
-# Check for linker boilerplate output or warnings with
-# the simple link test code.
-AC_DEFUN([_LT_LINKER_BOILERPLATE],
-[ac_outfile=conftest.$ac_objext
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_linker_boilerplate=`cat conftest.err`
-$rm conftest*
-])# _LT_LINKER_BOILERPLATE
-
-
-# _LT_AC_SYS_LIBPATH_AIX
-# ----------------------
-# Links a minimal program and checks the executable
-# for the system default hardcoded library path. In most cases,
-# this is /usr/lib:/lib, but when the MPI compilers are used
-# the location of the communication and MPI libs are included too.
-# If we don't find anything, use the default library path according
-# to the aix ld manual.
-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
-[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi],[])
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-])# _LT_AC_SYS_LIBPATH_AIX
-
-
-# _LT_AC_SHELL_INIT(ARG)
-# ----------------------
-AC_DEFUN([_LT_AC_SHELL_INIT],
-[ifdef([AC_DIVERSION_NOTICE],
- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
- [AC_DIVERT_PUSH(NOTICE)])
-$1
-AC_DIVERT_POP
-])# _LT_AC_SHELL_INIT
-
-
-# _LT_AC_PROG_ECHO_BACKSLASH
-# --------------------------
-# Add some code to the start of the generated configure script which
-# will find an echo command which doesn't interpret backslashes.
-AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
-[_LT_AC_SHELL_INIT([
-# Check that we are running under the correct shell.
-SHELL=${CONFIG_SHELL-/bin/sh}
-
-case X$ECHO in
-X*--fallback-echo)
- # Remove one level of quotation (which was required for Make).
- ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
- ;;
-esac
-
-echo=${ECHO-echo}
-if test "X[$]1" = X--no-reexec; then
- # Discard the --no-reexec flag, and continue.
- shift
-elif test "X[$]1" = X--fallback-echo; then
- # Avoid inline document here, it may be left over
- :
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
- # Yippee, $echo works!
- :
-else
- # Restart under the correct shell.
- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
-fi
-
-if test "X[$]1" = X--fallback-echo; then
- # used as fallback echo
- shift
- cat <<EOF
-[$]*
-EOF
- exit 0
-fi
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-if test -z "$ECHO"; then
-if test "X${echo_test_string+set}" != Xset; then
-# find a string as large as possible, as long as the shell can cope with it
- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
- if (echo_test_string=`eval $cmd`) 2>/dev/null &&
- echo_test_string=`eval $cmd` &&
- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
- then
- break
- fi
- done
-fi
-
-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- :
-else
- # The Solaris, AIX, and Digital Unix default echo programs unquote
- # backslashes. This makes it impossible to quote backslashes using
- # echo "$something" | sed 's/\\/\\\\/g'
- #
- # So, first we look for a working echo in the user's PATH.
-
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for dir in $PATH /usr/ucb; do
- IFS="$lt_save_ifs"
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- echo="$dir/echo"
- break
- fi
- done
- IFS="$lt_save_ifs"
-
- if test "X$echo" = Xecho; then
- # We didn't find a better echo, so look for alternatives.
- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # This shell has a builtin print -r that does the trick.
- echo='print -r'
- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
- test "X$CONFIG_SHELL" != X/bin/ksh; then
- # If we have ksh, try running configure again with it.
- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
- export ORIGINAL_CONFIG_SHELL
- CONFIG_SHELL=/bin/ksh
- export CONFIG_SHELL
- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
- else
- # Try using printf.
- echo='printf %s\n'
- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # Cool, printf works
- :
- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
- export CONFIG_SHELL
- SHELL="$CONFIG_SHELL"
- export SHELL
- echo="$CONFIG_SHELL [$]0 --fallback-echo"
- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- echo="$CONFIG_SHELL [$]0 --fallback-echo"
- else
- # maybe with a smaller string...
- prev=:
-
- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
- then
- break
- fi
- prev="$cmd"
- done
-
- if test "$prev" != 'sed 50q "[$]0"'; then
- echo_test_string=`eval $prev`
- export echo_test_string
- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
- else
- # Oops. We lost completely, so just stick with echo.
- echo=echo
- fi
- fi
- fi
- fi
-fi
-fi
-
-# Copy echo and quote the copy suitably for passing to libtool from
-# the Makefile, instead of quoting the original, which is used later.
-ECHO=$echo
-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
- ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
-fi
-
-AC_SUBST(ECHO)
-])])# _LT_AC_PROG_ECHO_BACKSLASH
-
-
-# _LT_AC_LOCK
-# -----------
-AC_DEFUN([_LT_AC_LOCK],
-[AC_ARG_ENABLE([libtool-lock],
- [AC_HELP_STRING([--disable-libtool-lock],
- [avoid locking (might break parallel builds)])])
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-
-# Some flags need to be propagated to the compiler or linker for good
-# libtool support.
-case $host in
-ia64-*-hpux*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- case `/usr/bin/file conftest.$ac_objext` in
- *ELF-32*)
- HPUX_IA64_MODE="32"
- ;;
- *ELF-64*)
- HPUX_IA64_MODE="64"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-*-*-irix6*)
- # Find out which ABI we are using.
- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- if test "$lt_cv_prog_gnu_ld" = yes; then
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -melf32bsmip"
- ;;
- *N32*)
- LD="${LD-ld} -melf32bmipn32"
- ;;
- *64-bit*)
- LD="${LD-ld} -melf64bmip"
- ;;
- esac
- else
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -32"
- ;;
- *N32*)
- LD="${LD-ld} -n32"
- ;;
- *64-bit*)
- LD="${LD-ld} -64"
- ;;
- esac
- fi
- fi
- rm -rf conftest*
- ;;
-
-x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- case `/usr/bin/file conftest.o` in
- *32-bit*)
- case $host in
- x86_64-*linux*)
- LD="${LD-ld} -m elf_i386"
- ;;
- ppc64-*linux*|powerpc64-*linux*)
- LD="${LD-ld} -m elf32ppclinux"
- ;;
- s390x-*linux*)
- LD="${LD-ld} -m elf_s390"
- ;;
- sparc64-*linux*)
- LD="${LD-ld} -m elf32_sparc"
- ;;
- esac
- ;;
- *64-bit*)
- case $host in
- x86_64-*linux*)
- LD="${LD-ld} -m elf_x86_64"
- ;;
- ppc*-*linux*|powerpc*-*linux*)
- LD="${LD-ld} -m elf64ppc"
- ;;
- s390*-*linux*)
- LD="${LD-ld} -m elf64_s390"
- ;;
- sparc*-*linux*)
- LD="${LD-ld} -m elf64_sparc"
- ;;
- esac
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-
-*-*-sco3.2v5*)
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -belf"
- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
- [AC_LANG_PUSH(C)
- AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
- AC_LANG_POP])
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- CFLAGS="$SAVE_CFLAGS"
- fi
- ;;
-sparc*-*solaris*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- case `/usr/bin/file conftest.o` in
- *64-bit*)
- case $lt_cv_prog_gnu_ld in
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
- *) LD="${LD-ld} -64" ;;
- esac
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-
-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
-[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
- AC_CHECK_TOOL(AS, as, false)
- AC_CHECK_TOOL(OBJDUMP, objdump, false)
- ;;
- ])
-esac
-
-need_locks="$enable_libtool_lock"
-
-])# _LT_AC_LOCK
-
-
-# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
-# ----------------------------------------------------------------
-# Check whether the given compiler option works
-AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
-[AC_REQUIRE([LT_AC_PROG_SED])
-AC_CACHE_CHECK([$1], [$2],
- [$2=no
- ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="$3"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&AS_MESSAGE_LOG_FD
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings other than the usual output.
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
- $2=yes
- fi
- fi
- $rm conftest*
-])
-
-if test x"[$]$2" = xyes; then
- ifelse([$5], , :, [$5])
-else
- ifelse([$6], , :, [$6])
-fi
-])# AC_LIBTOOL_COMPILER_OPTION
-
-
-# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
-# [ACTION-SUCCESS], [ACTION-FAILURE])
-# ------------------------------------------------------------
-# Check whether the given compiler option works
-AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
-[AC_CACHE_CHECK([$1], [$2],
- [$2=no
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $3"
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
- # The linker can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- # Append any errors to the config.log.
- cat conftest.err 1>&AS_MESSAGE_LOG_FD
- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if diff conftest.exp conftest.er2 >/dev/null; then
- $2=yes
- fi
- else
- $2=yes
- fi
- fi
- $rm conftest*
- LDFLAGS="$save_LDFLAGS"
-])
-
-if test x"[$]$2" = xyes; then
- ifelse([$4], , :, [$4])
-else
- ifelse([$5], , :, [$5])
-fi
-])# AC_LIBTOOL_LINKER_OPTION
-
-
-# AC_LIBTOOL_SYS_MAX_CMD_LEN
-# --------------------------
-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
-[# find the maximum length of command line arguments
-AC_MSG_CHECKING([the maximum length of command line arguments])
-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
- i=0
- teststring="ABCD"
-
- case $build_os in
- msdosdjgpp*)
- # On DJGPP, this test can blow up pretty badly due to problems in libc
- # (any single argument exceeding 2000 bytes causes a buffer overrun
- # during glob expansion). Even if it were fixed, the result of this
- # check would be larger than it should be.
- lt_cv_sys_max_cmd_len=12288; # 12K is about right
- ;;
-
- gnu*)
- # Under GNU Hurd, this test is not required because there is
- # no limit to the length of command line arguments.
- # Libtool will interpret -1 as no limit whatsoever
- lt_cv_sys_max_cmd_len=-1;
- ;;
-
- cygwin* | mingw*)
- # On Win9x/ME, this test blows up -- it succeeds, but takes
- # about 5 minutes as the teststring grows exponentially.
- # Worse, since 9x/ME are not pre-emptively multitasking,
- # you end up with a "frozen" computer, even though with patience
- # the test eventually succeeds (with a max line length of 256k).
- # Instead, let's just punt: use the minimum linelength reported by
- # all of the supported platforms: 8192 (on NT/2K/XP).
- lt_cv_sys_max_cmd_len=8192;
- ;;
-
- amigaos*)
- # On AmigaOS with pdksh, this test takes hours, literally.
- # So we just punt and use a minimum line length of 8192.
- lt_cv_sys_max_cmd_len=8192;
- ;;
-
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
- # This has been around since 386BSD, at least. Likely further.
- if test -x /sbin/sysctl; then
- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
- elif test -x /usr/sbin/sysctl; then
- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
- else
- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
- fi
- # And add a safety zone
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
- ;;
-
- interix*)
- # We know the value 262144 and hardcode it with a safety zone (like BSD)
- lt_cv_sys_max_cmd_len=196608
- ;;
-
- osf*)
- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
- # nice to cause kernel panics so lets avoid the loop below.
- # First set a reasonable default.
- lt_cv_sys_max_cmd_len=16384
- #
- if test -x /sbin/sysconfig; then
- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
- *1*) lt_cv_sys_max_cmd_len=-1 ;;
- esac
- fi
- ;;
- sco3.2v5*)
- lt_cv_sys_max_cmd_len=102400
- ;;
- sysv5* | sco5v6* | sysv4.2uw2*)
- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
- if test -n "$kargmax"; then
- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
- else
- lt_cv_sys_max_cmd_len=32768
- fi
- ;;
- *)
- # If test is not a shell built-in, we'll probably end up computing a
- # maximum length that is only half of the actual maximum length, but
- # we can't tell.
- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
- while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
- = "XX$teststring") >/dev/null 2>&1 &&
- new_result=`expr "X$teststring" : ".*" 2>&1` &&
- lt_cv_sys_max_cmd_len=$new_result &&
- test $i != 17 # 1/2 MB should be enough
- do
- i=`expr $i + 1`
- teststring=$teststring$teststring
- done
- teststring=
- # Add a significant safety factor because C++ compilers can tack on massive
- # amounts of additional arguments before passing them to the linker.
- # It appears as though 1/2 is a usable value.
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
- ;;
- esac
-])
-if test -n $lt_cv_sys_max_cmd_len ; then
- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
-else
- AC_MSG_RESULT(none)
-fi
-])# AC_LIBTOOL_SYS_MAX_CMD_LEN
-
-
-# _LT_AC_CHECK_DLFCN
-# ------------------
-AC_DEFUN([_LT_AC_CHECK_DLFCN],
-[AC_CHECK_HEADERS(dlfcn.h)dnl
-])# _LT_AC_CHECK_DLFCN
-
-
-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
-# ---------------------------------------------------------------------
-AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
-if test "$cross_compiling" = yes; then :
- [$4]
-else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- lt_status=$lt_dlunknown
- cat > conftest.$ac_ext <<EOF
-[#line __oline__ "configure"
-#include "confdefs.h"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-# define LT_DLGLOBAL RTLD_GLOBAL
-#else
-# ifdef DL_GLOBAL
-# define LT_DLGLOBAL DL_GLOBAL
-# else
-# define LT_DLGLOBAL 0
-# endif
-#endif
-
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
-#ifndef LT_DLLAZY_OR_NOW
-# ifdef RTLD_LAZY
-# define LT_DLLAZY_OR_NOW RTLD_LAZY
-# else
-# ifdef DL_LAZY
-# define LT_DLLAZY_OR_NOW DL_LAZY
-# else
-# ifdef RTLD_NOW
-# define LT_DLLAZY_OR_NOW RTLD_NOW
-# else
-# ifdef DL_NOW
-# define LT_DLLAZY_OR_NOW DL_NOW
-# else
-# define LT_DLLAZY_OR_NOW 0
-# endif
-# endif
-# endif
-# endif
-#endif
-
-#ifdef __cplusplus
-extern "C" void exit (int);
-#endif
-
-void fnord() { int i=42;}
-int main ()
-{
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- int status = $lt_dlunknown;
-
- if (self)
- {
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- /* dlclose (self); */
- }
- else
- puts (dlerror ());
-
- exit (status);
-}]
-EOF
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
- lt_status=$?
- case x$lt_status in
- x$lt_dlno_uscore) $1 ;;
- x$lt_dlneed_uscore) $2 ;;
- x$lt_dlunknown|x*) $3 ;;
- esac
- else :
- # compilation failed
- $3
- fi
-fi
-rm -fr conftest*
-])# _LT_AC_TRY_DLOPEN_SELF
-
-
-# AC_LIBTOOL_DLOPEN_SELF
-# ----------------------
-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
-if test "x$enable_dlopen" != xyes; then
- enable_dlopen=unknown
- enable_dlopen_self=unknown
- enable_dlopen_self_static=unknown
-else
- lt_cv_dlopen=no
- lt_cv_dlopen_libs=
-
- case $host_os in
- beos*)
- lt_cv_dlopen="load_add_on"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- ;;
-
- mingw* | pw32*)
- lt_cv_dlopen="LoadLibrary"
- lt_cv_dlopen_libs=
- ;;
-
- cygwin*)
- lt_cv_dlopen="dlopen"
- lt_cv_dlopen_libs=
- ;;
-
- darwin*)
- # if libdl is installed we need to link against it
- AC_CHECK_LIB([dl], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
- lt_cv_dlopen="dyld"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- ])
- ;;
-
- *)
- AC_CHECK_FUNC([shl_load],
- [lt_cv_dlopen="shl_load"],
- [AC_CHECK_LIB([dld], [shl_load],
- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
- [AC_CHECK_FUNC([dlopen],
- [lt_cv_dlopen="dlopen"],
- [AC_CHECK_LIB([dl], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
- [AC_CHECK_LIB([svld], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
- [AC_CHECK_LIB([dld], [dld_link],
- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
- ])
- ])
- ])
- ])
- ])
- ;;
- esac
-
- if test "x$lt_cv_dlopen" != xno; then
- enable_dlopen=yes
- else
- enable_dlopen=no
- fi
-
- case $lt_cv_dlopen in
- dlopen)
- save_CPPFLAGS="$CPPFLAGS"
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
-
- save_LDFLAGS="$LDFLAGS"
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
-
- save_LIBS="$LIBS"
- LIBS="$lt_cv_dlopen_libs $LIBS"
-
- AC_CACHE_CHECK([whether a program can dlopen itself],
- lt_cv_dlopen_self, [dnl
- _LT_AC_TRY_DLOPEN_SELF(
- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
- ])
-
- if test "x$lt_cv_dlopen_self" = xyes; then
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
- lt_cv_dlopen_self_static, [dnl
- _LT_AC_TRY_DLOPEN_SELF(
- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
- ])
- fi
-
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- LIBS="$save_LIBS"
- ;;
- esac
-
- case $lt_cv_dlopen_self in
- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
- *) enable_dlopen_self=unknown ;;
- esac
-
- case $lt_cv_dlopen_self_static in
- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
- *) enable_dlopen_self_static=unknown ;;
- esac
-fi
-])# AC_LIBTOOL_DLOPEN_SELF
-
-
-# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
-# ---------------------------------
-# Check to see if options -c and -o are simultaneously supported by compiler
-AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
- $rm -r conftest 2>/dev/null
- mkdir conftest
- cd conftest
- mkdir out
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- lt_compiler_flag="-o out/conftest2.$ac_objext"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
- (eval "$lt_compile" 2>out/conftest.err)
- ac_status=$?
- cat out/conftest.err >&AS_MESSAGE_LOG_FD
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
- then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
- fi
- fi
- chmod u+w . 2>&AS_MESSAGE_LOG_FD
- $rm conftest*
- # SGI C++ compiler will create directory out/ii_files/ for
- # template instantiation
- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
- $rm out/* && rmdir out
- cd ..
- rmdir conftest
- $rm conftest*
-])
-])# AC_LIBTOOL_PROG_CC_C_O
-
-
-# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
-# -----------------------------------------
-# Check to see if we can do hard links to lock some files if needed
-AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
-[AC_REQUIRE([_LT_AC_LOCK])dnl
-
-hard_links="nottested"
-if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
- # do not overwrite the value of need_locks provided by the user
- AC_MSG_CHECKING([if we can lock with hard links])
- hard_links=yes
- $rm conftest*
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- touch conftest.a
- ln conftest.a conftest.b 2>&5 || hard_links=no
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- AC_MSG_RESULT([$hard_links])
- if test "$hard_links" = no; then
- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
- need_locks=warn
- fi
-else
- need_locks=no
-fi
-])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
-
-
-# AC_LIBTOOL_OBJDIR
-# -----------------
-AC_DEFUN([AC_LIBTOOL_OBJDIR],
-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
-[rm -f .libs 2>/dev/null
-mkdir .libs 2>/dev/null
-if test -d .libs; then
- lt_cv_objdir=.libs
-else
- # MS-DOS does not allow filenames that begin with a dot.
- lt_cv_objdir=_libs
-fi
-rmdir .libs 2>/dev/null])
-objdir=$lt_cv_objdir
-])# AC_LIBTOOL_OBJDIR
-
-
-# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
-# ----------------------------------------------
-# Check hardcoding attributes.
-AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
-[AC_MSG_CHECKING([how to hardcode library paths into programs])
-_LT_AC_TAGVAR(hardcode_action, $1)=
-if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
- test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
- test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
-
- # We can hardcode non-existant directories.
- if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
- # have to relink, otherwise we might link with an installed library
- # when we should be linking with a yet-to-be-installed one
- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
- test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
- # Linking always hardcodes the temporary library directory.
- _LT_AC_TAGVAR(hardcode_action, $1)=relink
- else
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
- _LT_AC_TAGVAR(hardcode_action, $1)=immediate
- fi
-else
- # We cannot hardcode anything, or else we can only hardcode existing
- # directories.
- _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
-fi
-AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
-
-if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
- # Fast installation is not supported
- enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
- test "$enable_shared" = no; then
- # Fast installation is not necessary
- enable_fast_install=needless
-fi
-])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
-
-
-# AC_LIBTOOL_SYS_LIB_STRIP
-# ------------------------
-AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
-[striplib=
-old_striplib=
-AC_MSG_CHECKING([whether stripping libraries is possible])
-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
- AC_MSG_RESULT([yes])
-else
-# FIXME - insert some real tests, host_os isn't really good enough
- case $host_os in
- darwin*)
- if test -n "$STRIP" ; then
- striplib="$STRIP -x"
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
-fi
- ;;
- *)
- AC_MSG_RESULT([no])
- ;;
- esac
-fi
-])# AC_LIBTOOL_SYS_LIB_STRIP
-
-
-# AC_LIBTOOL_SYS_DYNAMIC_LINKER
-# -----------------------------
-# PORTME Fill in your ld.so characteristics
-AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
-[AC_MSG_CHECKING([dynamic linker characteristics])
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-shrext_cmds=".so"
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
- # if the path contains ";" then we assume it to be the separator
- # otherwise default to the standard path separator (i.e. ":") - it is
- # assumed that no part of a normal pathname contains ";" but that should
- # okay in the real world where ";" in dirpaths is itself problematic.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
-else
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-fi
-need_lib_prefix=unknown
-hardcode_into_libs=no
-
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-need_version=unknown
-
-case $host_os in
-aix3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
- shlibpath_var=LIBPATH
-
- # AIX 3 has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
-
-aix4* | aix5*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- else
- # With GCC up to 2.95.x, collect2 would create an import file
- # for dependence libraries. The import file would start with
- # the line `#! .'. This would cause the generated library to
- # depend on `.', always an invalid library. This was fixed in
- # development snapshots of GCC prior to 3.0.
- case $host_os in
- aix4 | aix4.[[01]] | aix4.[[01]].*)
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- echo ' yes '
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- :
- else
- can_build_shared=no
- fi
- ;;
- esac
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
- # soname into executable. Probably we can add versioning support to
- # collect2, so additional links can be useful in future.
- if test "$aix_use_runtimelinking" = yes; then
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- # instead of lib<name>.a to let people know that these are not
- # typical AIX shared libraries.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- else
- # We preserve .a as extension for shared libraries through AIX4.2
- # and later when we are not doing run time linking.
- library_names_spec='${libname}${release}.a $libname.a'
- soname_spec='${libname}${release}${shared_ext}$major'
- fi
- shlibpath_var=LIBPATH
- fi
- ;;
-
-amigaos*)
- library_names_spec='$libname.ixlibrary $libname.a'
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
- ;;
-
-beos*)
- library_names_spec='${libname}${shared_ext}'
- dynamic_linker="$host_os ld.so"
- shlibpath_var=LIBRARY_PATH
- ;;
-
-bsdi[[45]]*)
- version_type=linux
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- # the default ld.so.conf also contains /usr/contrib/lib and
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- # libtool to hard-code these into programs
- ;;
-
-cygwin* | mingw* | pw32*)
- version_type=windows
- shrext_cmds=".dll"
- need_version=no
- need_lib_prefix=no
-
- case $GCC,$host_os in
- yes,cygwin* | yes,mingw* | yes,pw32*)
- library_names_spec='$libname.dll.a'
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
- postinstall_cmds='base_file=`basename \${file}`~
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
- dldir=$destdir/`dirname \$dlpath`~
- test -d \$dldir || mkdir -p \$dldir~
- $install_prog $dir/$dlname \$dldir/$dlname~
- chmod a+x \$dldir/$dlname'
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
- dlpath=$dir/\$dldll~
- $rm \$dlpath'
- shlibpath_overrides_runpath=yes
-
- case $host_os in
- cygwin*)
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
- ;;
- mingw*)
- # MinGW DLLs use traditional 'lib' prefix
- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
- # It is most probably a Windows format PATH printed by
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
- # path with ; separators, and with drive letters. We can handle the
- # drive letters (cygwin fileutils understands them), so leave them,
- # especially as we might pass files found there to a mingw objdump,
- # which wouldn't understand a cygwinified path. Ahh.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
- ;;
- pw32*)
- # pw32 DLLs use 'pw' prefix rather than 'lib'
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
- ;;
- esac
- ;;
-
- *)
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
- ;;
- esac
- dynamic_linker='Win32 ld.exe'
- # FIXME: first we should search . and the directory the executable is in
- shlibpath_var=PATH
- ;;
-
-darwin* | rhapsody*)
- dynamic_linker="$host_os dyld"
- version_type=darwin
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
- soname_spec='${libname}${release}${major}$shared_ext'
- shlibpath_overrides_runpath=yes
- shlibpath_var=DYLD_LIBRARY_PATH
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
- if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
- else
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
- fi
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
- ;;
-
-dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-freebsd1*)
- dynamic_linker=no
- ;;
-
-kfreebsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-freebsd* | dragonfly*)
- # DragonFly does not have aout. When/if they implement a new
- # versioning mechanism, adjust this.
- if test -x /usr/bin/objformat; then
- objformat=`/usr/bin/objformat`
- else
- case $host_os in
- freebsd[[123]]*) objformat=aout ;;
- *) objformat=elf ;;
- esac
- fi
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- need_version=no
- need_lib_prefix=no
- ;;
- freebsd-*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
- need_version=yes
- ;;
- esac
- shlibpath_var=LD_LIBRARY_PATH
- case $host_os in
- freebsd2*)
- shlibpath_overrides_runpath=yes
- ;;
- freebsd3.[[01]]* | freebsdelf3.[[01]]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- freebsd*) # from 4.6 on
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- esac
- ;;
-
-gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- ;;
-
-hpux9* | hpux10* | hpux11*)
- # Give a soname corresponding to the major version so that dld.sl refuses to
- # link against other versions.
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- case $host_cpu in
- ia64*)
- shrext_cmds='.so'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.so"
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- if test "X$HPUX_IA64_MODE" = X32; then
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
- else
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
- fi
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- hppa*64*)
- shrext_cmds='.sl'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- *)
- shrext_cmds='.sl'
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- esac
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
- postinstall_cmds='chmod 555 $lib'
- ;;
-
-interix3*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $host_os in
- nonstopux*) version_type=nonstopux ;;
- *)
- if test "$lt_cv_prog_gnu_ld" = yes; then
- version_type=linux
- else
- version_type=irix
- fi ;;
- esac
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
- case $host_os in
- irix5* | nonstopux*)
- libsuff= shlibsuff=
- ;;
- *)
- case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
- libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
- libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
- *) libsuff= shlibsuff= libmagic=never-match;;
- esac
- ;;
- esac
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- hardcode_into_libs=yes
- ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux*oldld* | linux*aout* | linux*coff*)
- dynamic_linker=no
- ;;
-
-# This must be Linux ELF.
-linux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- # This implies no fast_install, which is unacceptable.
- # Some rework will be needed to allow for fast_install
- # before this can be enabled.
- hardcode_into_libs=yes
-
- # find out which ABI we are using
- libsuff=
- case "$host_cpu" in
- x86_64*|s390x*|powerpc64*)
- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- case `/usr/bin/file conftest.$ac_objext` in
- *64-bit*)
- libsuff=64
- sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
- esac
-
- # Append ld.so.conf contents to the search path
- if test -f /etc/ld.so.conf; then
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^[ ]*//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
- fi
-
- # We used to test for /lib/ld.so.1 and disable shared libraries on
- # powerpc, because MkLinux only supported shared libraries with the
- # GNU dynamic linker. Since this was broken with cross compilers,
- # most powerpc-linux boxes support dynamic linking these days and
- # people can always --disable-shared, the test was removed, and we
- # assume the GNU/Linux dynamic linker is in use.
- dynamic_linker='GNU/Linux ld.so'
- ;;
-
-knetbsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-netbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- dynamic_linker='NetBSD (a.out) ld.so'
- else
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='NetBSD ld.elf_so'
- fi
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
-
-newsos6)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-nto-qnx*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-openbsd*)
- version_type=sunos
- sys_lib_dlsearch_path_spec="/usr/lib"
- need_lib_prefix=no
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
- case $host_os in
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
- *) need_version=no ;;
- esac
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- case $host_os in
- openbsd2.[[89]] | openbsd2.[[89]].*)
- shlibpath_overrides_runpath=no
- ;;
- *)
- shlibpath_overrides_runpath=yes
- ;;
- esac
- else
- shlibpath_overrides_runpath=yes
- fi
- ;;
-
-os2*)
- libname_spec='$name'
- shrext_cmds=".dll"
- need_lib_prefix=no
- library_names_spec='$libname${shared_ext} $libname.a'
- dynamic_linker='OS/2 ld.exe'
- shlibpath_var=LIBPATH
- ;;
-
-osf3* | osf4* | osf5*)
- version_type=osf
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
-
-solaris*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- # ldd complains unless libraries are executable
- postinstall_cmds='chmod +x $lib'
- ;;
-
-sunos4*)
- version_type=sunos
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- fi
- need_version=yes
- ;;
-
-sysv4 | sysv4.3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- case $host_vendor in
- sni)
- shlibpath_overrides_runpath=no
- need_lib_prefix=no
- export_dynamic_flag_spec='${wl}-Blargedynsym'
- runpath_var=LD_RUN_PATH
- ;;
- siemens)
- need_lib_prefix=no
- ;;
- motorola)
- need_lib_prefix=no
- need_version=no
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- ;;
- esac
- ;;
-
-sysv4*MP*)
- if test -d /usr/nec ;then
- version_type=linux
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
- soname_spec='$libname${shared_ext}.$major'
- shlibpath_var=LD_LIBRARY_PATH
- fi
- ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
- version_type=freebsd-elf
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- if test "$with_gnu_ld" = yes; then
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
- shlibpath_overrides_runpath=no
- else
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
- shlibpath_overrides_runpath=yes
- case $host_os in
- sco3.2v5*)
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
- ;;
- esac
- fi
- sys_lib_dlsearch_path_spec='/usr/lib'
- ;;
-
-uts4*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-*)
- dynamic_linker=no
- ;;
-esac
-AC_MSG_RESULT([$dynamic_linker])
-test "$dynamic_linker" = no && can_build_shared=no
-
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$GCC" = yes; then
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
-fi
-])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
-
-
-# _LT_AC_TAGCONFIG
-# ----------------
-AC_DEFUN([_LT_AC_TAGCONFIG],
-[AC_ARG_WITH([tags],
- [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
- [include additional configurations @<:@automatic@:>@])],
- [tagnames="$withval"])
-
-if test -f "$ltmain" && test -n "$tagnames"; then
- if test ! -f "${ofile}"; then
- AC_MSG_WARN([output file `$ofile' does not exist])
- fi
-
- if test -z "$LTCC"; then
- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
- if test -z "$LTCC"; then
- AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
- else
- AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
- fi
- fi
- if test -z "$LTCFLAGS"; then
- eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
- fi
-
- # Extract list of available tagged configurations in $ofile.
- # Note that this assumes the entire list is on one line.
- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
-
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for tagname in $tagnames; do
- IFS="$lt_save_ifs"
- # Check whether tagname contains only valid characters
- case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
- "") ;;
- *) AC_MSG_ERROR([invalid tag name: $tagname])
- ;;
- esac
-
- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
- then
- AC_MSG_ERROR([tag name \"$tagname\" already exists])
- fi
-
- # Update the list of available tags.
- if test -n "$tagname"; then
- echo appending configuration tag \"$tagname\" to $ofile
-
- case $tagname in
- CXX)
- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
- (test "X$CXX" != "Xg++"))) ; then
- AC_LIBTOOL_LANG_CXX_CONFIG
- else
- tagname=""
- fi
- ;;
-
- F77)
- if test -n "$F77" && test "X$F77" != "Xno"; then
- AC_LIBTOOL_LANG_F77_CONFIG
- else
- tagname=""
- fi
- ;;
-
- GCJ)
- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
- AC_LIBTOOL_LANG_GCJ_CONFIG
- else
- tagname=""
- fi
- ;;
-
- RC)
- AC_LIBTOOL_LANG_RC_CONFIG
- ;;
-
- *)
- AC_MSG_ERROR([Unsupported tag name: $tagname])
- ;;
- esac
-
- # Append the new tag name to the list of available tags.
- if test -n "$tagname" ; then
- available_tags="$available_tags $tagname"
- fi
- fi
- done
- IFS="$lt_save_ifs"
-
- # Now substitute the updated list of available tags.
- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
- mv "${ofile}T" "$ofile"
- chmod +x "$ofile"
- else
- rm -f "${ofile}T"
- AC_MSG_ERROR([unable to update list of available tagged configurations.])
- fi
-fi
-])# _LT_AC_TAGCONFIG
-
-
-# AC_LIBTOOL_DLOPEN
-# -----------------
-# enable checks for dlopen support
-AC_DEFUN([AC_LIBTOOL_DLOPEN],
- [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
-])# AC_LIBTOOL_DLOPEN
-
-
-# AC_LIBTOOL_WIN32_DLL
-# --------------------
-# declare package support for building win32 DLLs
-AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
-[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
-])# AC_LIBTOOL_WIN32_DLL
-
-
-# AC_ENABLE_SHARED([DEFAULT])
-# ---------------------------
-# implement the --enable-shared flag
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
-AC_DEFUN([AC_ENABLE_SHARED],
-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE([shared],
- [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
- [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
- [p=${PACKAGE-default}
- case $enableval in
- yes) enable_shared=yes ;;
- no) enable_shared=no ;;
- *)
- enable_shared=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_shared=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac],
- [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
-])# AC_ENABLE_SHARED
-
-
-# AC_DISABLE_SHARED
-# -----------------
-# set the default shared flag to --disable-shared
-AC_DEFUN([AC_DISABLE_SHARED],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_SHARED(no)
-])# AC_DISABLE_SHARED
-
-
-# AC_ENABLE_STATIC([DEFAULT])
-# ---------------------------
-# implement the --enable-static flag
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
-AC_DEFUN([AC_ENABLE_STATIC],
-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE([static],
- [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
- [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
- [p=${PACKAGE-default}
- case $enableval in
- yes) enable_static=yes ;;
- no) enable_static=no ;;
- *)
- enable_static=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_static=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac],
- [enable_static=]AC_ENABLE_STATIC_DEFAULT)
-])# AC_ENABLE_STATIC
-
-
-# AC_DISABLE_STATIC
-# -----------------
-# set the default static flag to --disable-static
-AC_DEFUN([AC_DISABLE_STATIC],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_STATIC(no)
-])# AC_DISABLE_STATIC
-
-
-# AC_ENABLE_FAST_INSTALL([DEFAULT])
-# ---------------------------------
-# implement the --enable-fast-install flag
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
-AC_DEFUN([AC_ENABLE_FAST_INSTALL],
-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE([fast-install],
- [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
- [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
- [p=${PACKAGE-default}
- case $enableval in
- yes) enable_fast_install=yes ;;
- no) enable_fast_install=no ;;
- *)
- enable_fast_install=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_fast_install=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac],
- [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
-])# AC_ENABLE_FAST_INSTALL
-
-
-# AC_DISABLE_FAST_INSTALL
-# -----------------------
-# set the default to --disable-fast-install
-AC_DEFUN([AC_DISABLE_FAST_INSTALL],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_FAST_INSTALL(no)
-])# AC_DISABLE_FAST_INSTALL
-
-
-# AC_LIBTOOL_PICMODE([MODE])
-# --------------------------
-# implement the --with-pic flag
-# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
-AC_DEFUN([AC_LIBTOOL_PICMODE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-pic_mode=ifelse($#,1,$1,default)
-])# AC_LIBTOOL_PICMODE
-
-
-# AC_PROG_EGREP
-# -------------
-# This is predefined starting with Autoconf 2.54, so this conditional
-# definition can be removed once we require Autoconf 2.54 or later.
-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
-[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
- [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
- then ac_cv_prog_egrep='grep -E'
- else ac_cv_prog_egrep='egrep'
- fi])
- EGREP=$ac_cv_prog_egrep
- AC_SUBST([EGREP])
-])])
-
-
-# AC_PATH_TOOL_PREFIX
-# -------------------
-# find a file program which can recognise shared library
-AC_DEFUN([AC_PATH_TOOL_PREFIX],
-[AC_REQUIRE([AC_PROG_EGREP])dnl
-AC_MSG_CHECKING([for $1])
-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
-[case $MAGIC_CMD in
-[[\\/*] | ?:[\\/]*])
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
-*)
- lt_save_MAGIC_CMD="$MAGIC_CMD"
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
-dnl $ac_dummy forces splitting on constant user-supplied paths.
-dnl POSIX.2 word splitting is done only on the output of word expansions,
-dnl not every word. This closes a longstanding sh security hole.
- ac_dummy="ifelse([$2], , $PATH, [$2])"
- for ac_dir in $ac_dummy; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$1; then
- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- $EGREP "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
-
-EOF
- fi ;;
- esac
- fi
- break
- fi
- done
- IFS="$lt_save_ifs"
- MAGIC_CMD="$lt_save_MAGIC_CMD"
- ;;
-esac])
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
- AC_MSG_RESULT($MAGIC_CMD)
-else
- AC_MSG_RESULT(no)
-fi
-])# AC_PATH_TOOL_PREFIX
-
-
-# AC_PATH_MAGIC
-# -------------
-# find a file program which can recognise a shared library
-AC_DEFUN([AC_PATH_MAGIC],
-[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
-if test -z "$lt_cv_path_MAGIC_CMD"; then
- if test -n "$ac_tool_prefix"; then
- AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
- else
- MAGIC_CMD=:
- fi
-fi
-])# AC_PATH_MAGIC
-
-
-# AC_PROG_LD
-# ----------
-# find the pathname to the GNU or non-GNU linker
-AC_DEFUN([AC_PROG_LD],
-[AC_ARG_WITH([gnu-ld],
- [AC_HELP_STRING([--with-gnu-ld],
- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
- [test "$withval" = no || with_gnu_ld=yes],
- [with_gnu_ld=no])
-AC_REQUIRE([LT_AC_PROG_SED])dnl
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-ac_prog=ld
-if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- AC_MSG_CHECKING([for ld used by $CC])
- case $host in
- *-*-mingw*)
- # gcc leaves a trailing carriage return which upsets mingw
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- *)
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- esac
- case $ac_prog in
- # Accept absolute paths.
- [[\\/]]* | ?:[[\\/]]*)
- re_direlt='/[[^/]][[^/]]*/\.\./'
- # Canonicalize the pathname of ld
- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
-elif test "$with_gnu_ld" = yes; then
- AC_MSG_CHECKING([for GNU ld])
-else
- AC_MSG_CHECKING([for non-GNU ld])
-fi
-AC_CACHE_VAL(lt_cv_path_LD,
-[if test -z "$LD"; then
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some variants of GNU ld only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- test "$with_gnu_ld" != no && break
- ;;
- *)
- test "$with_gnu_ld" != yes && break
- ;;
- esac
- fi
- done
- IFS="$lt_save_ifs"
-else
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
-fi])
-LD="$lt_cv_path_LD"
-if test -n "$LD"; then
- AC_MSG_RESULT($LD)
-else
- AC_MSG_RESULT(no)
-fi
-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
-AC_PROG_LD_GNU
-])# AC_PROG_LD
-
-
-# AC_PROG_LD_GNU
-# --------------
-AC_DEFUN([AC_PROG_LD_GNU],
-[AC_REQUIRE([AC_PROG_EGREP])dnl
-AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
-case `$LD -v 2>&1 </dev/null` in
-*GNU* | *'with BFD'*)
- lt_cv_prog_gnu_ld=yes
- ;;
-*)
- lt_cv_prog_gnu_ld=no
- ;;
-esac])
-with_gnu_ld=$lt_cv_prog_gnu_ld
-])# AC_PROG_LD_GNU
-
-
-# AC_PROG_LD_RELOAD_FLAG
-# ----------------------
-# find reload flag for linker
-# -- PORTME Some linkers may need a different reload flag.
-AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
-[AC_CACHE_CHECK([for $LD option to reload object files],
- lt_cv_ld_reload_flag,
- [lt_cv_ld_reload_flag='-r'])
-reload_flag=$lt_cv_ld_reload_flag
-case $reload_flag in
-"" | " "*) ;;
-*) reload_flag=" $reload_flag" ;;
-esac
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
-case $host_os in
- darwin*)
- if test "$GCC" = yes; then
- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
- else
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
- fi
- ;;
-esac
-])# AC_PROG_LD_RELOAD_FLAG
-
-
-# AC_DEPLIBS_CHECK_METHOD
-# -----------------------
-# how to check for library dependencies
-# -- PORTME fill in with the dynamic library characteristics
-AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
-[AC_CACHE_CHECK([how to recognise dependent libraries],
-lt_cv_deplibs_check_method,
-[lt_cv_file_magic_cmd='$MAGIC_CMD'
-lt_cv_file_magic_test_file=
-lt_cv_deplibs_check_method='unknown'
-# Need to set the preceding variable on all platforms that support
-# interlibrary dependencies.
-# 'none' -- dependencies not supported.
-# `unknown' -- same as none, but documents that we really don't know.
-# 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
-# 'file_magic [[regex]]' -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given extended regex.
-# If you have `file' or equivalent on your system and you're not sure
-# whether `pass_all' will *always* work, you probably want this one.
-
-case $host_os in
-aix4* | aix5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-beos*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-bsdi[[45]]*)
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- lt_cv_file_magic_test_file=/shlib/libc.so
- ;;
-
-cygwin*)
- # func_win32_libid is a shell function defined in ltmain.sh
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
- lt_cv_file_magic_cmd='func_win32_libid'
- ;;
-
-mingw* | pw32*)
- # Base MSYS/MinGW do not provide the 'file' command needed by
- # func_win32_libid shell function, so use a weaker test based on 'objdump'.
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
- lt_cv_file_magic_cmd='$OBJDUMP -f'
- ;;
-
-darwin* | rhapsody*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-freebsd* | kfreebsd*-gnu | dragonfly*)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- case $host_cpu in
- i*86 )
- # Not sure whether the presence of OpenBSD here was a mistake.
- # Let's accept both of them until this is cleared up.
- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- ;;
- esac
- else
- lt_cv_deplibs_check_method=pass_all
- fi
- ;;
-
-gnu*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-hpux10.20* | hpux11*)
- lt_cv_file_magic_cmd=/usr/bin/file
- case $host_cpu in
- ia64*)
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
- ;;
- hppa*64*)
- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
- ;;
- *)
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
- ;;
- esac
- ;;
-
-interix3*)
- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $LD in
- *-32|*"-32 ") libmagic=32-bit;;
- *-n32|*"-n32 ") libmagic=N32;;
- *-64|*"-64 ") libmagic=64-bit;;
- *) libmagic=never-match;;
- esac
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-# This must be Linux ELF.
-linux*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
- fi
- ;;
-
-newos6*)
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
- ;;
-
-nto-qnx*)
- lt_cv_deplibs_check_method=unknown
- ;;
-
-openbsd*)
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
- fi
- ;;
-
-osf3* | osf4* | osf5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-solaris*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-sysv4 | sysv4.3*)
- case $host_vendor in
- motorola)
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
- ;;
- ncr)
- lt_cv_deplibs_check_method=pass_all
- ;;
- sequent)
- lt_cv_file_magic_cmd='/bin/file'
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
- ;;
- sni)
- lt_cv_file_magic_cmd='/bin/file'
- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
- lt_cv_file_magic_test_file=/lib/libc.so
- ;;
- siemens)
- lt_cv_deplibs_check_method=pass_all
- ;;
- pc)
- lt_cv_deplibs_check_method=pass_all
- ;;
- esac
- ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-esac
-])
-file_magic_cmd=$lt_cv_file_magic_cmd
-deplibs_check_method=$lt_cv_deplibs_check_method
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
-])# AC_DEPLIBS_CHECK_METHOD
-
-
-# AC_PROG_NM
-# ----------
-# find the pathname to a BSD-compatible name lister
-AC_DEFUN([AC_PROG_NM],
-[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
-[if test -n "$NM"; then
- # Let the user override the test.
- lt_cv_path_NM="$NM"
-else
- lt_nm_to_check="${ac_tool_prefix}nm"
- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
- lt_nm_to_check="$lt_nm_to_check nm"
- fi
- for lt_tmp_nm in $lt_nm_to_check; do
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- tmp_nm="$ac_dir/$lt_tmp_nm"
- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- # Tru64's nm complains that /dev/null is an invalid object file
- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
- */dev/null* | *'Invalid file or object type'*)
- lt_cv_path_NM="$tmp_nm -B"
- break
- ;;
- *)
- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
- */dev/null*)
- lt_cv_path_NM="$tmp_nm -p"
- break
- ;;
- *)
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- ;;
- esac
- ;;
- esac
- fi
- done
- IFS="$lt_save_ifs"
- done
- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
-fi])
-NM="$lt_cv_path_NM"
-])# AC_PROG_NM
-
-
-# AC_CHECK_LIBM
-# -------------
-# check for math library
-AC_DEFUN([AC_CHECK_LIBM],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-LIBM=
-case $host in
-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
- # These system don't have libm, or don't need it
- ;;
-*-ncr-sysv4.3*)
- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
- ;;
-*)
- AC_CHECK_LIB(m, cos, LIBM="-lm")
- ;;
-esac
-])# AC_CHECK_LIBM
-
-
-# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
-# -----------------------------------
-# sets LIBLTDL to the link flags for the libltdl convenience library and
-# LTDLINCL to the include flags for the libltdl header and adds
-# --enable-ltdl-convenience to the configure arguments. Note that
-# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
-# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
-# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
-# (note the single quotes!). If your package is not flat and you're not
-# using automake, define top_builddir and top_srcdir appropriately in
-# the Makefiles.
-AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- case $enable_ltdl_convenience in
- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
- "") enable_ltdl_convenience=yes
- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
- esac
- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
- # For backwards non-gettext consistent compatibility...
- INCLTDL="$LTDLINCL"
-])# AC_LIBLTDL_CONVENIENCE
-
-
-# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
-# -----------------------------------
-# sets LIBLTDL to the link flags for the libltdl installable library and
-# LTDLINCL to the include flags for the libltdl header and adds
-# --enable-ltdl-install to the configure arguments. Note that
-# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
-# and an installed libltdl is not found, it is assumed to be `libltdl'.
-# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
-# '${top_srcdir}/' (note the single quotes!). If your package is not
-# flat and you're not using automake, define top_builddir and top_srcdir
-# appropriately in the Makefiles.
-# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
-AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- AC_CHECK_LIB(ltdl, lt_dlinit,
- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
- [if test x"$enable_ltdl_install" = xno; then
- AC_MSG_WARN([libltdl not installed, but installation disabled])
- else
- enable_ltdl_install=yes
- fi
- ])
- if test x"$enable_ltdl_install" = x"yes"; then
- ac_configure_args="$ac_configure_args --enable-ltdl-install"
- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
- else
- ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
- LIBLTDL="-lltdl"
- LTDLINCL=
- fi
- # For backwards non-gettext consistent compatibility...
- INCLTDL="$LTDLINCL"
-])# AC_LIBLTDL_INSTALLABLE
-
-
-# AC_LIBTOOL_CXX
-# --------------
-# enable support for C++ libraries
-AC_DEFUN([AC_LIBTOOL_CXX],
-[AC_REQUIRE([_LT_AC_LANG_CXX])
-])# AC_LIBTOOL_CXX
-
-
-# _LT_AC_LANG_CXX
-# ---------------
-AC_DEFUN([_LT_AC_LANG_CXX],
-[AC_REQUIRE([AC_PROG_CXX])
-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
-])# _LT_AC_LANG_CXX
-
-# _LT_AC_PROG_CXXCPP
-# ------------------
-AC_DEFUN([_LT_AC_PROG_CXXCPP],
-[
-AC_REQUIRE([AC_PROG_CXX])
-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
- (test "X$CXX" != "Xg++"))) ; then
- AC_PROG_CXXCPP
-fi
-])# _LT_AC_PROG_CXXCPP
-
-# AC_LIBTOOL_F77
-# --------------
-# enable support for Fortran 77 libraries
-AC_DEFUN([AC_LIBTOOL_F77],
-[AC_REQUIRE([_LT_AC_LANG_F77])
-])# AC_LIBTOOL_F77
-
-
-# _LT_AC_LANG_F77
-# ---------------
-AC_DEFUN([_LT_AC_LANG_F77],
-[AC_REQUIRE([AC_PROG_F77])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
-])# _LT_AC_LANG_F77
-
-
-# AC_LIBTOOL_GCJ
-# --------------
-# enable support for GCJ libraries
-AC_DEFUN([AC_LIBTOOL_GCJ],
-[AC_REQUIRE([_LT_AC_LANG_GCJ])
-])# AC_LIBTOOL_GCJ
-
-
-# _LT_AC_LANG_GCJ
-# ---------------
-AC_DEFUN([_LT_AC_LANG_GCJ],
-[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
- [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
- [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
-])# _LT_AC_LANG_GCJ
-
-
-# AC_LIBTOOL_RC
-# -------------
-# enable support for Windows resource files
-AC_DEFUN([AC_LIBTOOL_RC],
-[AC_REQUIRE([LT_AC_PROG_RC])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
-])# AC_LIBTOOL_RC
-
-
-# AC_LIBTOOL_LANG_C_CONFIG
-# ------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
-AC_DEFUN([_LT_AC_LANG_C_CONFIG],
-[lt_save_CC="$CC"
-AC_LANG_PUSH(C)
-
-# Source file extension for C test sources.
-ac_ext=c
-
-# Object file extension for compiled C test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="int some_variable = 0;\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='int main(){return(0);}\n'
-
-_LT_AC_SYS_COMPILER
-
-# save warnings/boilerplate of simple test code
-_LT_COMPILER_BOILERPLATE
-_LT_LINKER_BOILERPLATE
-
-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-AC_LIBTOOL_SYS_LIB_STRIP
-AC_LIBTOOL_DLOPEN_SELF
-
-# Report which library types will actually be built
-AC_MSG_CHECKING([if libtool supports shared libraries])
-AC_MSG_RESULT([$can_build_shared])
-
-AC_MSG_CHECKING([whether to build shared libraries])
-test "$can_build_shared" = "no" && enable_shared=no
-
-# On AIX, shared libraries and static libraries use the same namespace, and
-# are all built from PIC.
-case $host_os in
-aix3*)
- test "$enable_shared" = yes && enable_static=no
- if test -n "$RANLIB"; then
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
- postinstall_cmds='$RANLIB $lib'
- fi
- ;;
-
-aix4* | aix5*)
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
- test "$enable_shared" = yes && enable_static=no
- fi
- ;;
-esac
-AC_MSG_RESULT([$enable_shared])
-
-AC_MSG_CHECKING([whether to build static libraries])
-# Make sure either enable_shared or enable_static is yes.
-test "$enable_shared" = yes || enable_static=yes
-AC_MSG_RESULT([$enable_static])
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_POP
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_C_CONFIG
-
-
-# AC_LIBTOOL_LANG_CXX_CONFIG
-# --------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
-AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
-[AC_LANG_PUSH(C++)
-AC_REQUIRE([AC_PROG_CXX])
-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
-
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
-_LT_AC_TAGVAR(always_export_symbols, $1)=no
-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_direct, $1)=no
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
-_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
-_LT_AC_TAGVAR(module_cmds, $1)=
-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_AC_TAGVAR(no_undefined_flag, $1)=
-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
-
-# Dependencies to place before and after the object being linked:
-_LT_AC_TAGVAR(predep_objects, $1)=
-_LT_AC_TAGVAR(postdep_objects, $1)=
-_LT_AC_TAGVAR(predeps, $1)=
-_LT_AC_TAGVAR(postdeps, $1)=
-_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
-
-# Source file extension for C++ test sources.
-ac_ext=cpp
-
-# Object file extension for compiled C++ test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="int some_variable = 0;\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# save warnings/boilerplate of simple test code
-_LT_COMPILER_BOILERPLATE
-_LT_LINKER_BOILERPLATE
-
-# Allow CC to be a program name with arguments.
-lt_save_CC=$CC
-lt_save_LD=$LD
-lt_save_GCC=$GCC
-GCC=$GXX
-lt_save_with_gnu_ld=$with_gnu_ld
-lt_save_path_LD=$lt_cv_path_LD
-if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
-else
- $as_unset lt_cv_prog_gnu_ld
-fi
-if test -n "${lt_cv_path_LDCXX+set}"; then
- lt_cv_path_LD=$lt_cv_path_LDCXX
-else
- $as_unset lt_cv_path_LD
-fi
-test -z "${LDCXX+set}" || LD=$LDCXX
-CC=${CXX-"c++"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-_LT_CC_BASENAME([$compiler])
-
-# We don't want -fno-exception wen compiling C++ code, so set the
-# no_builtin_flag separately
-if test "$GXX" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
-else
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
-fi
-
-if test "$GXX" = yes; then
- # Set up default GNU C++ configuration
-
- AC_PROG_LD
-
- # Check if GNU C++ uses GNU ld as the underlying linker, since the
- # archiving commands below assume that GNU ld is being used.
- if test "$with_gnu_ld" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-
- # If archive_cmds runs LD, not CC, wlarc should be empty
- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
- # investigate it a little bit more. (MM)
- wlarc='${wl}'
-
- # ancient GNU ld didn't support --whole-archive et. al.
- if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
- grep 'no-whole-archive' > /dev/null; then
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- fi
- else
- with_gnu_ld=no
- wlarc=
-
- # A generic and very simple default shared library creation
- # command for GNU C++ for the case where it uses the native
- # linker, instead of GNU ld. If possible, this setting should
- # overridden to take advantage of the native linker features on
- # the platform it is being used on.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- fi
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
-else
- GXX=no
- with_gnu_ld=no
- wlarc=
-fi
-
-# PORTME: fill in a description of your system's C++ link characteristics
-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
-_LT_AC_TAGVAR(ld_shlibs, $1)=yes
-case $host_os in
- aix3*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- aix_use_runtimelinking=no
-
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
- for ld_flag in $LDFLAGS; do
- case $ld_flag in
- *-brtl*)
- aix_use_runtimelinking=yes
- break
- ;;
- esac
- done
- ;;
- esac
-
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
-
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
- _LT_AC_TAGVAR(archive_cmds, $1)=''
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- if test "$GXX" = yes; then
- case $host_os in aix4.[[012]]|aix4.[[012]].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- else
- # We have old collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
- fi
- ;;
- esac
- shared_flag='-shared'
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
-
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
-
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
- # Exported symbols can be pulled into shared objects from archives
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
- # This is similar to how AIX traditionally builds its shared libraries.
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
-
- beos*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- chorus*)
- case $cc_basename in
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
-
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
- # as there is no search path for DLLs.
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- darwin* | rhapsody*)
- case $host_os in
- rhapsody* | darwin1.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- if test "$GXX" = yes ; then
- lt_int_apple_cc_single_mod=no
- output_verbose_link_cmd='echo'
- if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
- lt_int_apple_cc_single_mod=yes
- fi
- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- fi
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- fi
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- case $cc_basename in
- xlc*)
- output_verbose_link_cmd='echo'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- fi
- ;;
-
- dgux*)
- case $cc_basename in
- ec++*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- ghcx*)
- # Green Hills C++ Compiler
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- freebsd[[12]]*)
- # C++ shared libraries reported to be fairly broken before switch to ELF
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- freebsd-elf*)
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- ;;
- freebsd* | kfreebsd*-gnu | dragonfly*)
- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
- # conventions
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
- ;;
- gnu*)
- ;;
- hpux9*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
- # but as the default
- # location of the library.
-
- case $cc_basename in
- CC*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- aCC*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- hpux10*|hpux11*)
- if test $with_gnu_ld = no; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- case $host_cpu in
- hppa*64*|ia64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
- ;;
- *)
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- ;;
- esac
- fi
- case $host_cpu in
- hppa*64*|ia64*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
- *)
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
- # but as the default
- # location of the library.
- ;;
- esac
-
- case $cc_basename in
- CC*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- aCC*)
- case $host_cpu in
- hppa*64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- esac
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes; then
- if test $with_gnu_ld = no; then
- case $host_cpu in
- hppa*64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- esac
- fi
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- interix3*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
- # Instead, shared libraries are loaded at an image base (0x10000000 by
- # default) and relocated if they conflict, which is a slow very memory
- # consuming and fragmenting process. To avoid this, we pick a random,
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- ;;
- irix5* | irix6*)
- case $cc_basename in
- CC*)
- # SGI C++
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
-
- # Archives containing C++ object files must be created using
- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
- ;;
- *)
- if test "$GXX" = yes; then
- if test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
- fi
- fi
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- ;;
- esac
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
- linux*)
- case $cc_basename in
- KCC*)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-
- # Archives containing C++ object files must be created using
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
- ;;
- icpc*)
- # Intel C++
- with_gnu_ld=yes
- # version 8.0 and above of icpc choke on multiply defined symbols
- # if we add $predep_objects and $postdep_objects, however 7.1 and
- # earlier do not add the objects themselves.
- case `$CC -V 2>&1` in
- *"Version 7."*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- ;;
- *) # Version 8.0 or newer
- tmp_idyn=
- case $host_cpu in
- ia64*) tmp_idyn=' -i_dynamic';;
- esac
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- ;;
- esac
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
- ;;
- pgCC*)
- # Portland Group C++ compiler
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- ;;
- cxx*)
- # Compaq C++
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
-
- runpath_var=LD_RUN_PATH
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- esac
- ;;
- lynxos*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- m88k*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- mvs*)
- case $cc_basename in
- cxx*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
- wlarc=
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- fi
- # Workaround some broken pre-1.5 toolchains
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
- ;;
- openbsd2*)
- # C++ shared libraries are fairly broken
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- openbsd*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- fi
- output_verbose_link_cmd='echo'
- ;;
- osf3*)
- case $cc_basename in
- KCC*)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Archives containing C++ object files must be created using
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
-
- ;;
- RCC*)
- # Rational C++ 2.4.1
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- cxx*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- osf4* | osf5*)
- case $cc_basename in
- KCC*)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Archives containing C++ object files must be created using
- # the KAI C++ compiler.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
- ;;
- RCC*)
- # Rational C++ 2.4.1
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- cxx*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
- echo "-hidden">> $lib.exp~
- $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
- $rm $lib.exp'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- psos*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- sunos4*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.x
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- lcc*)
- # Lucid
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- solaris*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.2, 5.x and Centerline C++
- _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- case $host_os in
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
- *)
- # The C++ compiler is used as linker so we must use $wl
- # flag to pass the commands to the underlying system
- # linker. We must also pass each convience library through
- # to the system linker between allextract/defaultextract.
- # The C++ compiler will combine linker options so we
- # cannot just pass the convience library names through
- # without $wl.
- # Supported since Solaris 2.6 (maybe 2.5.1?)
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
- ;;
- esac
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- output_verbose_link_cmd='echo'
-
- # Archives containing C++ object files must be created using
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
- ;;
- gcx*)
- # Green Hills C++ Compiler
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
-
- # The C++ compiler must be used to create the archive.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
- ;;
- *)
- # GNU C++ compiler with Solaris linker
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
- if $CC --version | grep -v '^2\.7' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
- else
- # g++ 2.7 appears to require `-G' NOT `-shared' on this
- # platform.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
- fi
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
- fi
- ;;
- esac
- ;;
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- runpath_var='LD_RUN_PATH'
-
- case $cc_basename in
- CC*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- ;;
- sysv5* | sco3.2v5* | sco5v6*)
- # Note: We can NOT use -z defs as we might desire, because we do not
- # link with -lc, and that would cause any symbols used from libc to
- # always be unresolved, which means just about no library would
- # ever link correctly. If we're not using GNU ld we use -z text
- # though, which does catch some bad symbols but isn't as heavy-handed
- # as -z defs.
- # For security reasons, it is highly recommended that you always
- # use absolute paths for naming shared libraries, and exclude the
- # DT_RUNPATH tag from executables and libraries. But doing so
- # requires that you compile everything twice, which is a pain.
- # So that behaviour is only enabled if SCOABSPATH is set to a
- # non-empty value in the environment. Most likely only useful for
- # creating official distributions of packages.
- # This is a hack until libtool officially supports absolute path
- # names for shared libraries.
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
- runpath_var='LD_RUN_PATH'
-
- case $cc_basename in
- CC*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- ;;
- tandem*)
- case $cc_basename in
- NCC*)
- # NonStop-UX NCC 3.20
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- vxworks*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-esac
-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
-
-_LT_AC_TAGVAR(GCC, $1)="$GXX"
-_LT_AC_TAGVAR(LD, $1)="$LD"
-
-AC_LIBTOOL_POSTDEP_PREDEP($1)
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_POP
-CC=$lt_save_CC
-LDCXX=$LD
-LD=$lt_save_LD
-GCC=$lt_save_GCC
-with_gnu_ldcxx=$with_gnu_ld
-with_gnu_ld=$lt_save_with_gnu_ld
-lt_cv_path_LDCXX=$lt_cv_path_LD
-lt_cv_path_LD=$lt_save_path_LD
-lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
-lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
-])# AC_LIBTOOL_LANG_CXX_CONFIG
-
-# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
-# ------------------------------------
-# Figure out "hidden" library dependencies from verbose
-# compiler output when linking a shared library.
-# Parse the compiler output and extract the necessary
-# objects, libraries and library flags.
-AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
-dnl we can't use the lt_simple_compile_test_code here,
-dnl because it contains code intended for an executable,
-dnl not a library. It's possible we should let each
-dnl tag define a new lt_????_link_test_code variable,
-dnl but it's only used here...
-ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
-int a;
-void foo (void) { a = 0; }
-EOF
-],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
-class Foo
-{
-public:
- Foo (void) { a = 0; }
-private:
- int a;
-};
-EOF
-],[$1],[F77],[cat > conftest.$ac_ext <<EOF
- subroutine foo
- implicit none
- integer*4 a
- a=0
- return
- end
-EOF
-],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
-public class foo {
- private int a;
- public void bar (void) {
- a = 0;
- }
-};
-EOF
-])
-dnl Parse the compiler output and extract the necessary
-dnl objects, libraries and library flags.
-if AC_TRY_EVAL(ac_compile); then
- # Parse the compiler output and extract the necessary
- # objects, libraries and library flags.
-
- # Sentinel used to keep track of whether or not we are before
- # the conftest object file.
- pre_test_object_deps_done=no
-
- # The `*' in the case matches for architectures that use `case' in
- # $output_verbose_cmd can trigger glob expansion during the loop
- # eval without this substitution.
- output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
-
- for p in `eval $output_verbose_link_cmd`; do
- case $p in
-
- -L* | -R* | -l*)
- # Some compilers place space between "-{L,R}" and the path.
- # Remove the space.
- if test $p = "-L" \
- || test $p = "-R"; then
- prev=$p
- continue
- else
- prev=
- fi
-
- if test "$pre_test_object_deps_done" = no; then
- case $p in
- -L* | -R*)
- # Internal compiler library paths should come after those
- # provided the user. The postdeps already come after the
- # user supplied libs so there is no need to process them.
- if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
- else
- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
- fi
- ;;
- # The "-l" case would never come before the object being
- # linked, so don't bother handling this case.
- esac
- else
- if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
- _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
- else
- _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
- fi
- fi
- ;;
-
- *.$objext)
- # This assumes that the test object file only shows up
- # once in the compiler output.
- if test "$p" = "conftest.$objext"; then
- pre_test_object_deps_done=yes
- continue
- fi
-
- if test "$pre_test_object_deps_done" = no; then
- if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
- _LT_AC_TAGVAR(predep_objects, $1)="$p"
- else
- _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
- fi
- else
- if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
- _LT_AC_TAGVAR(postdep_objects, $1)="$p"
- else
- _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
- fi
- fi
- ;;
-
- *) ;; # Ignore the rest.
-
- esac
- done
-
- # Clean up.
- rm -f a.out a.exe
-else
- echo "libtool.m4: error: problem compiling $1 test program"
-fi
-
-$rm -f confest.$objext
-
-# PORTME: override above test on systems where it is broken
-ifelse([$1],[CXX],
-[case $host_os in
-interix3*)
- # Interix 3.5 installs completely hosed .la files for C++, so rather than
- # hack all around it, let's just trust "g++" to DTRT.
- _LT_AC_TAGVAR(predep_objects,$1)=
- _LT_AC_TAGVAR(postdep_objects,$1)=
- _LT_AC_TAGVAR(postdeps,$1)=
- ;;
-
-solaris*)
- case $cc_basename in
- CC*)
- # Adding this requires a known-good setup of shared libraries for
- # Sun compiler versions before 5.6, else PIC objects from an old
- # archive will be linked into the output, leading to subtle bugs.
- _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
- ;;
- esac
- ;;
-esac
-])
-
-case " $_LT_AC_TAGVAR(postdeps, $1) " in
-*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
-esac
-])# AC_LIBTOOL_POSTDEP_PREDEP
-
-# AC_LIBTOOL_LANG_F77_CONFIG
-# --------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
-AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
-[AC_REQUIRE([AC_PROG_F77])
-AC_LANG_PUSH(Fortran 77)
-
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
-_LT_AC_TAGVAR(always_export_symbols, $1)=no
-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_direct, $1)=no
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
-_LT_AC_TAGVAR(module_cmds, $1)=
-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_AC_TAGVAR(no_undefined_flag, $1)=
-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
-
-# Source file extension for f77 test sources.
-ac_ext=f
-
-# Object file extension for compiled f77 test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code=" subroutine t\n return\n end\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code=" program t\n end\n"
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# save warnings/boilerplate of simple test code
-_LT_COMPILER_BOILERPLATE
-_LT_LINKER_BOILERPLATE
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${F77-"f77"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-_LT_CC_BASENAME([$compiler])
-
-AC_MSG_CHECKING([if libtool supports shared libraries])
-AC_MSG_RESULT([$can_build_shared])
-
-AC_MSG_CHECKING([whether to build shared libraries])
-test "$can_build_shared" = "no" && enable_shared=no
-
-# On AIX, shared libraries and static libraries use the same namespace, and
-# are all built from PIC.
-case $host_os in
-aix3*)
- test "$enable_shared" = yes && enable_static=no
- if test -n "$RANLIB"; then
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
- postinstall_cmds='$RANLIB $lib'
- fi
- ;;
-aix4* | aix5*)
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
- test "$enable_shared" = yes && enable_static=no
- fi
- ;;
-esac
-AC_MSG_RESULT([$enable_shared])
-
-AC_MSG_CHECKING([whether to build static libraries])
-# Make sure either enable_shared or enable_static is yes.
-test "$enable_shared" = yes || enable_static=yes
-AC_MSG_RESULT([$enable_static])
-
-_LT_AC_TAGVAR(GCC, $1)="$G77"
-_LT_AC_TAGVAR(LD, $1)="$LD"
-
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_POP
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_F77_CONFIG
-
-
-# AC_LIBTOOL_LANG_GCJ_CONFIG
-# --------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
-AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
-[AC_LANG_SAVE
-
-# Source file extension for Java test sources.
-ac_ext=java
-
-# Object file extension for compiled Java test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="class foo {}\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# save warnings/boilerplate of simple test code
-_LT_COMPILER_BOILERPLATE
-_LT_LINKER_BOILERPLATE
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${GCJ-"gcj"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-_LT_CC_BASENAME([$compiler])
-
-# GCJ did not exist at the time GCC didn't implicitly link libc in.
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
-
-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-
-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_RESTORE
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_GCJ_CONFIG
-
-
-# AC_LIBTOOL_LANG_RC_CONFIG
-# -------------------------
-# Ensure that the configuration vars for the Windows resource compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
-AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
-[AC_LANG_SAVE
-
-# Source file extension for RC test sources.
-ac_ext=rc
-
-# Object file extension for compiled RC test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
-
-# Code to be used in simple link tests
-lt_simple_link_test_code="$lt_simple_compile_test_code"
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# save warnings/boilerplate of simple test code
-_LT_COMPILER_BOILERPLATE
-_LT_LINKER_BOILERPLATE
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${RC-"windres"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-_LT_CC_BASENAME([$compiler])
-_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_RESTORE
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_RC_CONFIG
-
-
-# AC_LIBTOOL_CONFIG([TAGNAME])
-# ----------------------------
-# If TAGNAME is not passed, then create an initial libtool script
-# with a default configuration from the untagged config vars. Otherwise
-# add code to config.status for appending the configuration named by
-# TAGNAME from the matching tagged config vars.
-AC_DEFUN([AC_LIBTOOL_CONFIG],
-[# The else clause should only fire when bootstrapping the
-# libtool distribution, otherwise you forgot to ship ltmain.sh
-# with your package, and you will get complaints that there are
-# no rules to generate ltmain.sh.
-if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of \ escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
- SED SHELL STRIP \
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
- deplibs_check_method reload_flag reload_cmds need_locks \
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
- lt_cv_sys_global_symbol_to_c_name_address \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- old_postinstall_cmds old_postuninstall_cmds \
- _LT_AC_TAGVAR(compiler, $1) \
- _LT_AC_TAGVAR(CC, $1) \
- _LT_AC_TAGVAR(LD, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
- _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
- _LT_AC_TAGVAR(old_archive_cmds, $1) \
- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
- _LT_AC_TAGVAR(predep_objects, $1) \
- _LT_AC_TAGVAR(postdep_objects, $1) \
- _LT_AC_TAGVAR(predeps, $1) \
- _LT_AC_TAGVAR(postdeps, $1) \
- _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
- _LT_AC_TAGVAR(archive_cmds, $1) \
- _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
- _LT_AC_TAGVAR(postinstall_cmds, $1) \
- _LT_AC_TAGVAR(postuninstall_cmds, $1) \
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
- _LT_AC_TAGVAR(allow_undefined_flag, $1) \
- _LT_AC_TAGVAR(no_undefined_flag, $1) \
- _LT_AC_TAGVAR(export_symbols_cmds, $1) \
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
- _LT_AC_TAGVAR(hardcode_automatic, $1) \
- _LT_AC_TAGVAR(module_cmds, $1) \
- _LT_AC_TAGVAR(module_expsym_cmds, $1) \
- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
- _LT_AC_TAGVAR(exclude_expsyms, $1) \
- _LT_AC_TAGVAR(include_expsyms, $1); do
-
- case $var in
- _LT_AC_TAGVAR(old_archive_cmds, $1) | \
- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
- _LT_AC_TAGVAR(archive_cmds, $1) | \
- _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
- _LT_AC_TAGVAR(module_cmds, $1) | \
- _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
- _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
-
- case $lt_echo in
- *'\[$]0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
- ;;
- esac
-
-ifelse([$1], [],
- [cfgfile="${ofile}T"
- trap "$rm \"$cfgfile\"; exit 1" 1 2 15
- $rm -f "$cfgfile"
- AC_MSG_NOTICE([creating $ofile])],
- [cfgfile="$ofile"])
-
- cat <<__EOF__ >> "$cfgfile"
-ifelse([$1], [],
-[#! $SHELL
-
-# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
-#
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
-# Free Software Foundation, Inc.
-#
-# This file is part of GNU Libtool:
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# 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, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# 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.
-
-# A sed program that does not truncate output.
-SED=$lt_SED
-
-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
-Xsed="$SED -e 1s/^X//"
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-# The names of the tagged configurations supported by this script.
-available_tags=
-
-# ### BEGIN LIBTOOL CONFIG],
-[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
-
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-
-# Shell to use when invoking shell scripts.
-SHELL=$lt_SHELL
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
-
-# Whether or not to disallow shared libs when runtime libs are static
-allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# The host system.
-host_alias=$host_alias
-host=$host
-host_os=$host_os
-
-# The build system.
-build_alias=$build_alias
-build=$build
-build_os=$build_os
-
-# An echo program that does not interpret backslashes.
-echo=$lt_echo
-
-# The archiver.
-AR=$lt_AR
-AR_FLAGS=$lt_AR_FLAGS
-
-# A C compiler.
-LTCC=$lt_LTCC
-
-# LTCC compiler flags.
-LTCFLAGS=$lt_LTCFLAGS
-
-# A language-specific compiler.
-CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
-
-# Is the compiler the GNU C compiler?
-with_gcc=$_LT_AC_TAGVAR(GCC, $1)
-
-# An ERE matcher.
-EGREP=$lt_EGREP
-
-# The linker used to build libraries.
-LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
-
-# Whether we need hard or soft links.
-LN_S=$lt_LN_S
-
-# A BSD-compatible nm program.
-NM=$lt_NM
-
-# A symbol stripping program
-STRIP=$lt_STRIP
-
-# Used to examine libraries when file_magic_cmd begins "file"
-MAGIC_CMD=$MAGIC_CMD
-
-# Used on cygwin: DLL creation program.
-DLLTOOL="$DLLTOOL"
-
-# Used on cygwin: object dumper.
-OBJDUMP="$OBJDUMP"
-
-# Used on cygwin: assembler.
-AS="$AS"
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# How to create reloadable object files.
-reload_flag=$lt_reload_flag
-reload_cmds=$lt_reload_cmds
-
-# How to pass a linker flag through the compiler.
-wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
-
-# Object file suffix (normally "o").
-objext="$ac_objext"
-
-# Old archive suffix (normally "a").
-libext="$libext"
-
-# Shared library suffix (normally ".so").
-shrext_cmds='$shrext_cmds'
-
-# Executable file suffix (normally "").
-exeext="$exeext"
-
-# Additional compiler flags for building library objects.
-pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
-pic_mode=$pic_mode
-
-# What is the maximum length of a command?
-max_cmd_len=$lt_cv_sys_max_cmd_len
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
-
-# Must we lock files when doing compilation?
-need_locks=$lt_need_locks
-
-# Do we need the lib prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Whether dlopen is supported.
-dlopen_support=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
-
-# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
-
-# Library versioning type.
-version_type=$version_type
-
-# Format of library name prefix.
-libname_spec=$lt_libname_spec
-
-# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME.
-library_names_spec=$lt_library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$lt_soname_spec
-
-# Commands used to build and install an old-style archive.
-RANLIB=$lt_RANLIB
-old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
-old_postinstall_cmds=$lt_old_postinstall_cmds
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
-
-# Create a temporary old-style archive to link instead of a shared archive.
-old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
-
-# Commands used to build and install a shared archive.
-archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
-archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
-postinstall_cmds=$lt_postinstall_cmds
-postuninstall_cmds=$lt_postuninstall_cmds
-
-# Commands used to build a loadable module (assumed same as above if empty)
-module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
-module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
-
-# Commands to strip libraries.
-old_striplib=$lt_old_striplib
-striplib=$lt_striplib
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
-
-# The library search path used internally by the compiler when linking
-# a shared library.
-compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$lt_deplibs_check_method
-
-# Command to use when deplibs_check_method == file_magic.
-file_magic_cmd=$lt_file_magic_cmd
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
-
-# Flag that forces no undefined symbols.
-no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$lt_finish_cmds
-
-# Same as above, but a single script fragment to be evaled but not shown.
-finish_eval=$lt_finish_eval
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
-
-# Transform the output of nm in a C name address pair
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
-
-# This is the shared library runtime path variable.
-runpath_var=$runpath_var
-
-# This is the shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
-
-# Whether we should hardcode library paths into libraries.
-hardcode_into_libs=$hardcode_into_libs
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
-
-# If ld is used when linking, flag to hardcode \$libdir into
-# a binary during linking. This must work even if \$libdir does
-# not exist.
-hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
-
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
-
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
-# the resulting binary.
-hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
-
-# Set to yes if building a shared library automatically hardcodes DIR into the library
-# and all subsequent libraries and executables linked against it.
-hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
-
-# Variables whose values should be saved in libtool wrapper scripts and
-# restored at relink time.
-variables_saved_for_relink="$variables_saved_for_relink"
-
-# Whether libtool must link a program against all its dependency libraries.
-link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
-
-# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
-
-# Set to yes if exported symbols are required.
-always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
-
-# The commands to list exported symbols.
-export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
-
-# The commands to extract the exported symbol list from a shared archive.
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
-
-# Symbols that must always be exported.
-include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
-
-ifelse([$1],[],
-[# ### END LIBTOOL CONFIG],
-[# ### END LIBTOOL TAG CONFIG: $tagname])
-
-__EOF__
-
-ifelse([$1],[], [
- case $host_os in
- aix3*)
- cat <<\EOF >> "$cfgfile"
-
-# AIX sometimes has problems with the GCC collect2 program. For some
-# reason, if we set the COLLECT_NAMES environment variable, the problems
-# vanish in a puff of smoke.
-if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
-fi
-EOF
- ;;
- esac
-
- # We use sed instead of cat because bash on DJGPP gets confused if
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
- # text mode, it properly converts lines to CR/LF. This bash problem
- # is reportedly fixed, but why not run on old versions too?
- sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
-
- mv -f "$cfgfile" "$ofile" || \
- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
- chmod +x "$ofile"
-])
-else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
-fi
-])# AC_LIBTOOL_CONFIG
-
-
-# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
-# -------------------------------------------
-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
-
-_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
-
-if test "$GCC" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
-
- AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
- lt_cv_prog_compiler_rtti_exceptions,
- [-fno-rtti -fno-exceptions], [],
- [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
-fi
-])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
-
-
-# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
-# ---------------------------------
-AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
-[AC_REQUIRE([AC_CANONICAL_HOST])
-AC_REQUIRE([AC_PROG_NM])
-AC_REQUIRE([AC_OBJEXT])
-# Check for command to grab the raw symbol name followed by C symbol from nm.
-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
-[
-# These are sane defaults that work on at least a few old systems.
-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
-
-# Character class describing NM global symbol codes.
-symcode='[[BCDEGRST]]'
-
-# Regexp to match symbols that can be accessed directly from C.
-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
-
-# Transform an extracted symbol line into a proper C declaration
-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
-
-# Transform an extracted symbol line into symbol name and symbol address
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
-
-# Define system-specific variables.
-case $host_os in
-aix*)
- symcode='[[BCDT]]'
- ;;
-cygwin* | mingw* | pw32*)
- symcode='[[ABCDGISTW]]'
- ;;
-hpux*) # Its linker distinguishes data from code symbols
- if test "$host_cpu" = ia64; then
- symcode='[[ABCDEGRST]]'
- fi
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- ;;
-linux*)
- if test "$host_cpu" = ia64; then
- symcode='[[ABCDGIRSTW]]'
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- fi
- ;;
-irix* | nonstopux*)
- symcode='[[BCDEGRST]]'
- ;;
-osf*)
- symcode='[[BCDEGQRST]]'
- ;;
-solaris*)
- symcode='[[BDRT]]'
- ;;
-sco3.2v5*)
- symcode='[[DT]]'
- ;;
-sysv4.2uw2*)
- symcode='[[DT]]'
- ;;
-sysv5* | sco5v6* | unixware* | OpenUNIX*)
- symcode='[[ABDT]]'
- ;;
-sysv4)
- symcode='[[DFNSTU]]'
- ;;
-esac
-
-# Handle CRLF in mingw tool chain
-opt_cr=
-case $build_os in
-mingw*)
- opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
- ;;
-esac
-
-# If we're using GNU nm, then use its standard symbol codes.
-case `$NM -V 2>&1` in
-*GNU* | *'with BFD'*)
- symcode='[[ABCDGIRSTW]]' ;;
-esac
-
-# Try without a prefix undercore, then with it.
-for ac_symprfx in "" "_"; do
-
- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
- symxfrm="\\1 $ac_symprfx\\2 \\2"
-
- # Write the raw and C identifiers.
- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
-
- # Check to see that the pipe works correctly.
- pipe_works=no
-
- rm -f conftest*
- cat > conftest.$ac_ext <<EOF
-#ifdef __cplusplus
-extern "C" {
-#endif
-char nm_test_var;
-void nm_test_func(){}
-#ifdef __cplusplus
-}
-#endif
-int main(){nm_test_var='a';nm_test_func();return(0);}
-EOF
-
- if AC_TRY_EVAL(ac_compile); then
- # Now try to grab the symbols.
- nlist=conftest.nm
- if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
- # Try sorting and uniquifying the output.
- if sort "$nlist" | uniq > "$nlist"T; then
- mv -f "$nlist"T "$nlist"
- else
- rm -f "$nlist"T
- fi
-
- # Make sure that we snagged all the symbols we need.
- if grep ' nm_test_var$' "$nlist" >/dev/null; then
- if grep ' nm_test_func$' "$nlist" >/dev/null; then
- cat <<EOF > conftest.$ac_ext
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-EOF
- # Now generate the symbol file.
- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
-
- cat <<EOF >> conftest.$ac_ext
-#if defined (__STDC__) && __STDC__
-# define lt_ptr_t void *
-#else
-# define lt_ptr_t char *
-# define const
-#endif
-
-/* The mapping between symbol names and symbols. */
-const struct {
- const char *name;
- lt_ptr_t address;
-}
-lt_preloaded_symbols[[]] =
-{
-EOF
- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
- cat <<\EOF >> conftest.$ac_ext
- {0, (lt_ptr_t) 0}
-};
-
-#ifdef __cplusplus
-}
-#endif
-EOF
- # Now try linking the two files.
- mv conftest.$ac_objext conftstm.$ac_objext
- lt_save_LIBS="$LIBS"
- lt_save_CFLAGS="$CFLAGS"
- LIBS="conftstm.$ac_objext"
- CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
- pipe_works=yes
- fi
- LIBS="$lt_save_LIBS"
- CFLAGS="$lt_save_CFLAGS"
- else
- echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
- fi
- else
- echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
- fi
- else
- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
- fi
- else
- echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest* conftst*
-
- # Do not use the global_symbol_pipe unless it works.
- if test "$pipe_works" = yes; then
- break
- else
- lt_cv_sys_global_symbol_pipe=
- fi
-done
-])
-if test -z "$lt_cv_sys_global_symbol_pipe"; then
- lt_cv_sys_global_symbol_to_cdecl=
-fi
-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
- AC_MSG_RESULT(failed)
-else
- AC_MSG_RESULT(ok)
-fi
-]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
-
-
-# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
-# ---------------------------------------
-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
-[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
-_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
-_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
-
-AC_MSG_CHECKING([for $compiler option to produce PIC])
- ifelse([$1],[CXX],[
- # C++ specific cases for pic, static, wl, etc.
- if test "$GXX" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
-
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- fi
- ;;
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
- ;;
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
- mingw* | os2* | pw32*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
- ;;
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
- ;;
- *djgpp*)
- # DJGPP does not support shared libraries at all
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- ;;
- interix3*)
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
- # Instead, we relocate shared libraries at runtime.
- ;;
- sysv4*MP*)
- if test -d /usr/nec; then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
- fi
- ;;
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- else
- case $host_os in
- aix4* | aix5*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- else
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- chorus*)
- case $cc_basename in
- cxch68*)
- # Green Hills C++ Compiler
- # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
- ;;
- esac
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case $cc_basename in
- xlc*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- ;;
- esac
- ;;
- dgux*)
- case $cc_basename in
- ec++*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- ;;
- ghcx*)
- # Green Hills C++ Compiler
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- ;;
- *)
- ;;
- esac
- ;;
- freebsd* | kfreebsd*-gnu | dragonfly*)
- # FreeBSD uses GNU C++
- ;;
- hpux9* | hpux10* | hpux11*)
- case $cc_basename in
- CC*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
- if test "$host_cpu" != ia64; then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
- fi
- ;;
- aCC*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
- ;;
- esac
- ;;
- *)
- ;;
- esac
- ;;
- interix*)
- # This is c89, which is MS Visual C++ (no shared libs)
- # Anyone wants to do a port?
- ;;
- irix5* | irix6* | nonstopux*)
- case $cc_basename in
- CC*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- # CC pic flag -KPIC is the default.
- ;;
- *)
- ;;
- esac
- ;;
- linux*)
- case $cc_basename in
- KCC*)
- # KAI C++ Compiler
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- icpc* | ecpc*)
- # Intel C++
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
- ;;
- pgCC*)
- # Portland Group C++ compiler.
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
- cxx*)
- # Compaq C++
- # Make sure the PIC flag is empty. It appears that all Alpha
- # Linux and Compaq Tru64 Unix objects are PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
- *)
- ;;
- esac
- ;;
- lynxos*)
- ;;
- m88k*)
- ;;
- mvs*)
- case $cc_basename in
- cxx*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
- ;;
- *)
- ;;
- esac
- ;;
- netbsd*)
- ;;
- osf3* | osf4* | osf5*)
- case $cc_basename in
- KCC*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
- ;;
- RCC*)
- # Rational C++ 2.4.1
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- ;;
- cxx*)
- # Digital/Compaq C++
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # Make sure the PIC flag is empty. It appears that all Alpha
- # Linux and Compaq Tru64 Unix objects are PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
- *)
- ;;
- esac
- ;;
- psos*)
- ;;
- solaris*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.2, 5.x and Centerline C++
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
- ;;
- gcx*)
- # Green Hills C++ Compiler
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
- ;;
- *)
- ;;
- esac
- ;;
- sunos4*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.x
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
- lcc*)
- # Lucid
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- ;;
- *)
- ;;
- esac
- ;;
- tandem*)
- case $cc_basename in
- NCC*)
- # NonStop-UX NCC 3.20
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- ;;
- *)
- ;;
- esac
- ;;
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
- case $cc_basename in
- CC*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
- esac
- ;;
- vxworks*)
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
- ;;
- esac
- fi
-],
-[
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
-
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- fi
- ;;
-
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
- ;;
-
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
- ;;
-
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
- ;;
-
- interix3*)
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
- # Instead, we relocate shared libraries at runtime.
- ;;
-
- msdosdjgpp*)
- # Just because we use GCC doesn't mean we suddenly get shared libraries
- # on systems that don't support them.
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
- enable_shared=no
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
- fi
- ;;
-
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- ;;
-
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- else
- # PORTME Check for flag to pass linker flags through the system compiler.
- case $host_os in
- aix*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- else
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case $cc_basename in
- xlc*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- ;;
- esac
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
- ;;
-
- hpux9* | hpux10* | hpux11*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
- ;;
- esac
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
- ;;
-
- irix5* | irix6* | nonstopux*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # PIC (with -KPIC) is the default.
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
-
- newsos6)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- linux*)
- case $cc_basename in
- icc* | ecc*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
- ;;
- pgcc* | pgf77* | pgf90* | pgf95*)
- # Portland Group compilers (*not* the Pentium gcc compiler,
- # which looks to be a dead project)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
- ccc*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # All Alpha code is PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
- esac
- ;;
-
- osf3* | osf4* | osf5*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # All OSF/1 code is PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
-
- solaris*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- case $cc_basename in
- f77* | f90* | f95*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
- esac
- ;;
-
- sunos4*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- sysv4 | sysv4.2uw2* | sysv4.3*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec ;then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- fi
- ;;
-
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- unicos*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
- ;;
-
- uts4*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
- ;;
- esac
- fi
-])
-AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
-
-#
-# Check to make sure the PIC flag actually works.
-#
-if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
- AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
- _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
- [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
- [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
- "" | " "*) ;;
- *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
- esac],
- [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
-fi
-case $host_os in
- # For platforms which do not support PIC, -DPIC is meaningless:
- *djgpp*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
- ;;
-esac
-
-#
-# Check to make sure the static flag actually works.
-#
-wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
-AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
- _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
- $lt_tmp_static_flag,
- [],
- [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
-])
-
-
-# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
-# ------------------------------------
-# See if the linker supports building shared libraries.
-AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
-[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
-ifelse([$1],[CXX],[
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- case $host_os in
- aix4* | aix5*)
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- else
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- fi
- ;;
- pw32*)
- _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
- ;;
- cygwin* | mingw*)
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
- ;;
- *)
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- ;;
- esac
-],[
- runpath_var=
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
- _LT_AC_TAGVAR(archive_cmds, $1)=
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
- _LT_AC_TAGVAR(hardcode_automatic, $1)=no
- _LT_AC_TAGVAR(module_cmds, $1)=
- _LT_AC_TAGVAR(module_expsym_cmds, $1)=
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- # include_expsyms should be a list of space-separated symbols to be *always*
- # included in the symbol list
- _LT_AC_TAGVAR(include_expsyms, $1)=
- # exclude_expsyms can be an extended regexp of symbols to exclude
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
- # as well as any symbol that contains `d'.
- _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
- # platforms (ab)use it in PIC code, but their linkers get confused if
- # the symbol is explicitly referenced. Since portable code cannot
- # rely on this symbol name, it's probably fine to never include it in
- # preloaded symbol tables.
- extract_expsyms_cmds=
- # Just being paranoid about ensuring that cc_basename is set.
- _LT_CC_BASENAME([$compiler])
- case $host_os in
- cygwin* | mingw* | pw32*)
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- if test "$GCC" != yes; then
- with_gnu_ld=no
- fi
- ;;
- interix*)
- # we just hope/assume this is gcc and not c89 (= MSVC++)
- with_gnu_ld=yes
- ;;
- openbsd*)
- with_gnu_ld=no
- ;;
- esac
-
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
- if test "$with_gnu_ld" = yes; then
- # If archive_cmds runs LD, not CC, wlarc should be empty
- wlarc='${wl}'
-
- # Set some defaults for GNU ld with shared library support. These
- # are reset later if shared libraries are not supported. Putting them
- # here allows them to be overridden if necessary.
- runpath_var=LD_RUN_PATH
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- fi
- supports_anon_versioning=no
- case `$LD -v 2>/dev/null` in
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
- *\ 2.11.*) ;; # other 2.11 versions
- *) supports_anon_versioning=yes ;;
- esac
-
- # See if GNU ld supports shared libraries.
- case $host_os in
- aix3* | aix4* | aix5*)
- # On AIX/PPC, the GNU linker is very broken
- if test "$host_cpu" != ia64; then
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- cat <<EOF 1>&2
-
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support. If you
-*** really care for shared libraries, you may want to modify your PATH
-*** so that a non-GNU linker is found, and then restart.
-
-EOF
- fi
- ;;
-
- amigaos*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
-
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- # that the semantics of dynamic libraries on AmigaOS, at least up
- # to version 4, is to share data among multiple programs linked
- # with the same dynamic library. Since this doesn't match the
- # behavior of shared libraries on other platforms, we can't use
- # them.
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-
- beos*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
- # as there is no search path for DLLs.
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
-
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- interix3*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
- # Instead, shared libraries are loaded at an image base (0x10000000 by
- # default) and relocated if they conflict, which is a slow very memory
- # consuming and fragmenting process. To avoid this, we pick a random,
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- ;;
-
- linux*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- tmp_addflag=
- case $cc_basename,$host_cpu in
- pgcc*) # Portland Group C compiler
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_addflag=' $pic_flag'
- ;;
- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_addflag=' $pic_flag -Mnomain' ;;
- ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
- tmp_addflag=' -i_dynamic' ;;
- efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
- tmp_addflag=' -i_dynamic -nofor_main' ;;
- ifc* | ifort*) # Intel Fortran compiler
- tmp_addflag=' -nofor_main' ;;
- esac
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-
- if test $supports_anon_versioning = yes; then
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
- $echo "local: *; };" >> $output_objdir/$libname.ver~
- $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
- fi
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
- wlarc=
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- fi
- ;;
-
- solaris*)
- if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- cat <<EOF 1>&2
-
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
-*** create shared libraries on Solaris systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.9.1 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-EOF
- elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
- case `$LD -v 2>&1` in
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- cat <<_LT_EOF 1>&2
-
-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
-*** reliably create shared libraries on SCO systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-_LT_EOF
- ;;
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
-
- sunos4*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- wlarc=
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
-
- if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
- runpath_var=
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- fi
- else
- # PORTME fill in a description of your system's linker (not GNU ld)
- case $host_os in
- aix3*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
- # Note: this linker hardcodes the directories in LIBPATH if there
- # are no directories specified by -L.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
- # Neither direct hardcoding nor static linking is supported with a
- # broken collect2.
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
- fi
- ;;
-
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- else
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- fi
- aix_use_runtimelinking=no
-
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
- aix_use_runtimelinking=yes
- break
- fi
- done
- ;;
- esac
-
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
-
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
- _LT_AC_TAGVAR(archive_cmds, $1)=''
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- if test "$GCC" = yes; then
- case $host_os in aix4.[[012]]|aix4.[[012]].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- else
- # We have old collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
- fi
- ;;
- esac
- shared_flag='-shared'
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
-
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
- # Exported symbols can be pulled into shared objects from archives
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
- # This is similar to how AIX traditionally builds its shared libraries.
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
-
- amigaos*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- # see comment about different semantics on the GNU ld section
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-
- bsdi[[45]]*)
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
- ;;
-
- cygwin* | mingw* | pw32*)
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- # Tell ltmain to make .lib files, not .a files.
- libext=lib
- # Tell ltmain to make .dll files, not .so files.
- shrext_cmds=".dll"
- # FIXME: Setting linknames here is a bad hack.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
- # The linker will automatically build a .lib file if we build a DLL.
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
- # FIXME: Should let the user specify the lib program.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
- _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
- ;;
-
- darwin* | rhapsody*)
- case $host_os in
- rhapsody* | darwin1.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- if test "$GCC" = yes ; then
- output_verbose_link_cmd='echo'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- case $cc_basename in
- xlc*)
- output_verbose_link_cmd='echo'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- fi
- ;;
-
- dgux*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- freebsd1*)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- # support. Future versions do this automatically, but an explicit c++rt0.o
- # does not break anything, and helps significantly (at the cost of a little
- # extra space).
- freebsd2.2*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- freebsd2*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- freebsd* | kfreebsd*-gnu | dragonfly*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- hpux9*)
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- ;;
-
- hpux10*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
- fi
- if test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- fi
- ;;
-
- hpux11*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- case $host_cpu in
- hppa*64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- else
- case $host_cpu in
- hppa*64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- fi
- if test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- case $host_cpu in
- hppa*64*|ia64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
- *)
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- ;;
- esac
- fi
- ;;
-
- irix5* | irix6* | nonstopux*)
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- newsos6)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- openbsd*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- else
- case $host_os in
- openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- ;;
- esac
- fi
- ;;
-
- os2*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
- ;;
-
- osf3*)
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
-
- osf4* | osf5*) # as osf3* with the addition of -msym flag
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- else
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
- $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
-
- # Both c and cxx compiler support -rpath directly
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
-
- solaris*)
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
- if test "$GCC" = yes; then
- wlarc='${wl}'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
- else
- wlarc=''
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- case $host_os in
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
- *)
- # The compiler driver will combine linker options so we
- # cannot just pass the convience library names through
- # without $wl, iff we do not link with $LD.
- # Luckily, gcc supports the same syntax we need for Sun Studio.
- # Supported since Solaris 2.6 (maybe 2.5.1?)
- case $wlarc in
- '')
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
- *)
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
- esac ;;
- esac
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- ;;
-
- sunos4*)
- if test "x$host_vendor" = xsequent; then
- # Use $CC to link under sequent, because it throws in some extra .o
- # files that make .init and .fini sections work.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- sysv4)
- case $host_vendor in
- sni)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
- ;;
- siemens)
- ## LD is ld it makes a PLAMLIB
- ## CC just makes a GrossModule.
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- ;;
- motorola)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
- ;;
- esac
- runpath_var='LD_RUN_PATH'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- sysv4.3*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
- fi
- ;;
-
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- runpath_var='LD_RUN_PATH'
-
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- ;;
-
- sysv5* | sco3.2v5* | sco5v6*)
- # Note: We can NOT use -z defs as we might desire, because we do not
- # link with -lc, and that would cause any symbols used from libc to
- # always be unresolved, which means just about no library would
- # ever link correctly. If we're not using GNU ld we use -z text
- # though, which does catch some bad symbols but isn't as heavy-handed
- # as -z defs.
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
- runpath_var='LD_RUN_PATH'
-
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- ;;
-
- uts4*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- *)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- fi
-])
-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
-
-#
-# Do we need to explicitly link libc?
-#
-case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
-x|xyes)
- # Assume -lc should be added
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
-
- if test "$enable_shared" = yes && test "$GCC" = yes; then
- case $_LT_AC_TAGVAR(archive_cmds, $1) in
- *'~'*)
- # FIXME: we may have to deal with multi-command sequences.
- ;;
- '$CC '*)
- # Test whether the compiler implicitly links with -lc since on some
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
- # to ld, don't add -lc before -lgcc.
- AC_MSG_CHECKING([whether -lc should be explicitly linked in])
- $rm conftest*
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
- soname=conftest
- lib=conftest
- libobjs=conftest.$ac_objext
- deplibs=
- wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
- pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
- compiler_flags=-v
- linker_flags=-v
- verstring=
- output_objdir=.
- libname=conftest
- lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
- if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
- then
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- else
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
- fi
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
- else
- cat conftest.err 1>&5
- fi
- $rm conftest*
- AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
- ;;
- esac
- fi
- ;;
-esac
-])# AC_LIBTOOL_PROG_LD_SHLIBS
-
-
-# _LT_AC_FILE_LTDLL_C
-# -------------------
-# Be careful that the start marker always follows a newline.
-AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
-# /* ltdll.c starts here */
-# #define WIN32_LEAN_AND_MEAN
-# #include <windows.h>
-# #undef WIN32_LEAN_AND_MEAN
-# #include <stdio.h>
-#
-# #ifndef __CYGWIN__
-# # ifdef __CYGWIN32__
-# # define __CYGWIN__ __CYGWIN32__
-# # endif
-# #endif
-#
-# #ifdef __cplusplus
-# extern "C" {
-# #endif
-# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
-# #ifdef __cplusplus
-# }
-# #endif
-#
-# #ifdef __CYGWIN__
-# #include <cygwin/cygwin_dll.h>
-# DECLARE_CYGWIN_DLL( DllMain );
-# #endif
-# HINSTANCE __hDllInstance_base;
-#
-# BOOL APIENTRY
-# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
-# {
-# __hDllInstance_base = hInst;
-# return TRUE;
-# }
-# /* ltdll.c ends here */
-])# _LT_AC_FILE_LTDLL_C
-
-
-# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
-# ---------------------------------
-AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
-
-
-# old names
-AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
-AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
-AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
-AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
-AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
-AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
-AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
-
-# This is just to silence aclocal about the macro not being used
-ifelse([AC_DISABLE_FAST_INSTALL])
-
-AC_DEFUN([LT_AC_PROG_GCJ],
-[AC_CHECK_TOOL(GCJ, gcj, no)
- test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
- AC_SUBST(GCJFLAGS)
-])
-
-AC_DEFUN([LT_AC_PROG_RC],
-[AC_CHECK_TOOL(RC, windres, no)
-])
-
-# NOTE: This macro has been submitted for inclusion into #
-# GNU Autoconf as AC_PROG_SED. When it is available in #
-# a released version of Autoconf we should remove this #
-# macro and use it instead. #
-# LT_AC_PROG_SED
-# --------------
-# Check for a fully-functional sed program, that truncates
-# as few characters as possible. Prefer GNU sed if found.
-AC_DEFUN([LT_AC_PROG_SED],
-[AC_MSG_CHECKING([for a sed that does not truncate output])
-AC_CACHE_VAL(lt_cv_path_SED,
-[# Loop through the user's path and test for sed and gsed.
-# Then use that list of sed's as ones to test for truncation.
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for lt_ac_prog in sed gsed; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
- lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
- fi
- done
- done
-done
-IFS=$as_save_IFS
-lt_ac_max=0
-lt_ac_count=0
-# Add /usr/xpg4/bin/sed as it is typically found on Solaris
-# along with /bin/sed that truncates output.
-for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
- test ! -f $lt_ac_sed && continue
- cat /dev/null > conftest.in
- lt_ac_count=0
- echo $ECHO_N "0123456789$ECHO_C" >conftest.in
- # Check for GNU sed and select it if it is found.
- if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
- lt_cv_path_SED=$lt_ac_sed
- break
- fi
- while true; do
- cat conftest.in conftest.in >conftest.tmp
- mv conftest.tmp conftest.in
- cp conftest.in conftest.nl
- echo >>conftest.nl
- $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
- cmp -s conftest.out conftest.nl || break
- # 10000 chars as input seems more than enough
- test $lt_ac_count -gt 10 && break
- lt_ac_count=`expr $lt_ac_count + 1`
- if test $lt_ac_count -gt $lt_ac_max; then
- lt_ac_max=$lt_ac_count
- lt_cv_path_SED=$lt_ac_sed
- fi
- done
-done
-])
-SED=$lt_cv_path_SED
-AC_SUBST([SED])
-AC_MSG_RESULT([$SED])
-])
-
-# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_AUTOMAKE_VERSION(VERSION)
-# ----------------------------
-# Automake X.Y traces this macro to ensure aclocal.m4 has been
-# generated from the m4 files accompanying Automake X.Y.
-# (This private macro should not be called outside this file.)
-AC_DEFUN([AM_AUTOMAKE_VERSION],
-[am__api_version='1.10'
-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
-dnl require some minimum version. Point them to the right macro.
-m4_if([$1], [1.10], [],
- [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
-])
-
-# _AM_AUTOCONF_VERSION(VERSION)
-# -----------------------------
-# aclocal traces this macro to find the Autoconf version.
-# This is a private macro too. Using m4_define simplifies
-# the logic in aclocal, which can simply ignore this definition.
-m4_define([_AM_AUTOCONF_VERSION], [])
-
-# AM_SET_CURRENT_AUTOMAKE_VERSION
-# -------------------------------
-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
-# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.10])dnl
-_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
-
-# AM_AUX_DIR_EXPAND -*- Autoconf -*-
-
-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
-# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
-# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
-#
-# Of course, Automake must honor this variable whenever it calls a
-# tool from the auxiliary directory. The problem is that $srcdir (and
-# therefore $ac_aux_dir as well) can be either absolute or relative,
-# depending on how configure is run. This is pretty annoying, since
-# it makes $ac_aux_dir quite unusable in subdirectories: in the top
-# source directory, any form will work fine, but in subdirectories a
-# relative path needs to be adjusted first.
-#
-# $ac_aux_dir/missing
-# fails when called from a subdirectory if $ac_aux_dir is relative
-# $top_srcdir/$ac_aux_dir/missing
-# fails if $ac_aux_dir is absolute,
-# fails when called from a subdirectory in a VPATH build with
-# a relative $ac_aux_dir
-#
-# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
-# are both prefixed by $srcdir. In an in-source build this is usually
-# harmless because $srcdir is `.', but things will broke when you
-# start a VPATH build or use an absolute $srcdir.
-#
-# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
-# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
-# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
-# and then we would define $MISSING as
-# MISSING="\${SHELL} $am_aux_dir/missing"
-# This will work as long as MISSING is not called from configure, because
-# unfortunately $(top_srcdir) has no meaning in configure.
-# However there are other variables, like CC, which are often used in
-# configure, and could therefore not use this "fixed" $ac_aux_dir.
-#
-# Another solution, used here, is to always expand $ac_aux_dir to an
-# absolute PATH. The drawback is that using absolute paths prevent a
-# configured tree to be moved without reconfiguration.
-
-AC_DEFUN([AM_AUX_DIR_EXPAND],
-[dnl Rely on autoconf to set up CDPATH properly.
-AC_PREREQ([2.50])dnl
-# expand $ac_aux_dir to an absolute path
-am_aux_dir=`cd $ac_aux_dir && pwd`
-])
-
-# AM_CONDITIONAL -*- Autoconf -*-
-
-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 8
-
-# AM_CONDITIONAL(NAME, SHELL-CONDITION)
-# -------------------------------------
-# Define a conditional.
-AC_DEFUN([AM_CONDITIONAL],
-[AC_PREREQ(2.52)dnl
- ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
- [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
-AC_SUBST([$1_TRUE])dnl
-AC_SUBST([$1_FALSE])dnl
-_AM_SUBST_NOTMAKE([$1_TRUE])dnl
-_AM_SUBST_NOTMAKE([$1_FALSE])dnl
-if $2; then
- $1_TRUE=
- $1_FALSE='#'
-else
- $1_TRUE='#'
- $1_FALSE=
-fi
-AC_CONFIG_COMMANDS_PRE(
-[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
- AC_MSG_ERROR([[conditional "$1" was never defined.
-Usually this means the macro was only invoked conditionally.]])
-fi])])
-
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 9
-
-# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
-# written in clear, in which case automake, when reading aclocal.m4,
-# will think it sees a *use*, and therefore will trigger all it's
-# C support machinery. Also note that it means that autoscan, seeing
-# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
-
-
-# _AM_DEPENDENCIES(NAME)
-# ----------------------
-# See how the compiler implements dependency checking.
-# NAME is "CC", "CXX", "GCJ", or "OBJC".
-# We try a few techniques and use that to set a single cache variable.
-#
-# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
-# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
-# dependency, and given that the user is not expected to run this macro,
-# just rely on AC_PROG_CC.
-AC_DEFUN([_AM_DEPENDENCIES],
-[AC_REQUIRE([AM_SET_DEPDIR])dnl
-AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
-AC_REQUIRE([AM_MAKE_INCLUDE])dnl
-AC_REQUIRE([AM_DEP_TRACK])dnl
-
-ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
- [$1], CXX, [depcc="$CXX" am_compiler_list=],
- [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
- [$1], UPC, [depcc="$UPC" am_compiler_list=],
- [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
- [depcc="$$1" am_compiler_list=])
-
-AC_CACHE_CHECK([dependency style of $depcc],
- [am_cv_$1_dependencies_compiler_type],
-[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
- # We make a subdir and do the tests there. Otherwise we can end up
- # making bogus files that we don't know about and never remove. For
- # instance it was reported that on HP-UX the gcc test will end up
- # making a dummy file named `D' -- because `-MD' means `put the output
- # in D'.
- mkdir conftest.dir
- # Copy depcomp to subdir because otherwise we won't find it if we're
- # using a relative directory.
- cp "$am_depcomp" conftest.dir
- cd conftest.dir
- # We will build objects and dependencies in a subdirectory because
- # it helps to detect inapplicable dependency modes. For instance
- # both Tru64's cc and ICC support -MD to output dependencies as a
- # side effect of compilation, but ICC will put the dependencies in
- # the current directory while Tru64 will put them in the object
- # directory.
- mkdir sub
-
- am_cv_$1_dependencies_compiler_type=none
- if test "$am_compiler_list" = ""; then
- am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
- fi
- for depmode in $am_compiler_list; do
- # Setup a source with many dependencies, because some compilers
- # like to wrap large dependency lists on column 80 (with \), and
- # we should not choose a depcomp mode which is confused by this.
- #
- # We need to recreate these files for each test, as the compiler may
- # overwrite some of them when testing with obscure command lines.
- # This happens at least with the AIX C compiler.
- : > sub/conftest.c
- for i in 1 2 3 4 5 6; do
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
- # Solaris 8's {/usr,}/bin/sh.
- touch sub/conftst$i.h
- done
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
- case $depmode in
- nosideeffect)
- # after this tag, mechanisms are not by side-effect, so they'll
- # only be used when explicitly requested
- if test "x$enable_dependency_tracking" = xyes; then
- continue
- else
- break
- fi
- ;;
- none) break ;;
- esac
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
- # mode. It turns out that the SunPro C++ compiler does not properly
- # handle `-M -o', and we need to detect this.
- if depmode=$depmode \
- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
- >/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- # icc doesn't choke on unknown options, it will just issue warnings
- # or remarks (even with -Werror). So we grep stderr for any message
- # that says an option was ignored or not supported.
- # When given -MP, icc 7.0 and 7.1 complain thusly:
- # icc: Command line warning: ignoring option '-M'; no argument required
- # The diagnosis changed in icc 8.0:
- # icc: Command line remark: option '-MP' not supported
- if (grep 'ignoring option' conftest.err ||
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
- am_cv_$1_dependencies_compiler_type=$depmode
- break
- fi
- fi
- done
-
- cd ..
- rm -rf conftest.dir
-else
- am_cv_$1_dependencies_compiler_type=none
-fi
-])
-AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
-AM_CONDITIONAL([am__fastdep$1], [
- test "x$enable_dependency_tracking" != xno \
- && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
-])
-
-
-# AM_SET_DEPDIR
-# -------------
-# Choose a directory name for dependency files.
-# This macro is AC_REQUIREd in _AM_DEPENDENCIES
-AC_DEFUN([AM_SET_DEPDIR],
-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
-])
-
-
-# AM_DEP_TRACK
-# ------------
-AC_DEFUN([AM_DEP_TRACK],
-[AC_ARG_ENABLE(dependency-tracking,
-[ --disable-dependency-tracking speeds up one-time build
- --enable-dependency-tracking do not reject slow dependency extractors])
-if test "x$enable_dependency_tracking" != xno; then
- am_depcomp="$ac_aux_dir/depcomp"
- AMDEPBACKSLASH='\'
-fi
-AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
-AC_SUBST([AMDEPBACKSLASH])dnl
-_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
-])
-
-# Generate code to set up dependency tracking. -*- Autoconf -*-
-
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-#serial 3
-
-# _AM_OUTPUT_DEPENDENCY_COMMANDS
-# ------------------------------
-AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
-[for mf in $CONFIG_FILES; do
- # Strip MF so we end up with the name of the file.
- mf=`echo "$mf" | sed -e 's/:.*$//'`
- # Check whether this is an Automake generated Makefile or not.
- # We used to match only the files named `Makefile.in', but
- # some people rename them; so instead we look at the file content.
- # Grep'ing the first line is not enough: some people post-process
- # each Makefile.in and add a new line on top of each file to say so.
- # Grep'ing the whole file is not good either: AIX grep has a line
- # limit of 2048, but all sed's we know have understand at least 4000.
- if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
- dirpart=`AS_DIRNAME("$mf")`
- else
- continue
- fi
- # Extract the definition of DEPDIR, am__include, and am__quote
- # from the Makefile without running `make'.
- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
- test -z "$DEPDIR" && continue
- am__include=`sed -n 's/^am__include = //p' < "$mf"`
- test -z "am__include" && continue
- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
- # When using ansi2knr, U may be empty or an underscore; expand it
- U=`sed -n 's/^U = //p' < "$mf"`
- # Find all dependency output files, they are included files with
- # $(DEPDIR) in their names. We invoke sed twice because it is the
- # simplest approach to changing $(DEPDIR) to its actual value in the
- # expansion.
- for file in `sed -n "
- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
- # Make sure the directory exists.
- test -f "$dirpart/$file" && continue
- fdir=`AS_DIRNAME(["$file"])`
- AS_MKDIR_P([$dirpart/$fdir])
- # echo "creating $dirpart/$file"
- echo '# dummy' > "$dirpart/$file"
- done
-done
-])# _AM_OUTPUT_DEPENDENCY_COMMANDS
-
-
-# AM_OUTPUT_DEPENDENCY_COMMANDS
-# -----------------------------
-# This macro should only be invoked once -- use via AC_REQUIRE.
-#
-# This code is only required when automatic dependency tracking
-# is enabled. FIXME. This creates each `.P' file that we will
-# need in order to bootstrap the dependency handling code.
-AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
-[AC_CONFIG_COMMANDS([depfiles],
- [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
- [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
-])
-
-# Do all the work for Automake. -*- Autoconf -*-
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-# 2005, 2006 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 12
-
-# This macro actually does too much. Some checks are only needed if
-# your package does certain things. But this isn't really a big deal.
-
-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
-# AM_INIT_AUTOMAKE([OPTIONS])
-# -----------------------------------------------
-# The call with PACKAGE and VERSION arguments is the old style
-# call (pre autoconf-2.50), which is being phased out. PACKAGE
-# and VERSION should now be passed to AC_INIT and removed from
-# the call to AM_INIT_AUTOMAKE.
-# We support both call styles for the transition. After
-# the next Automake release, Autoconf can make the AC_INIT
-# arguments mandatory, and then we can depend on a new Autoconf
-# release and drop the old call support.
-AC_DEFUN([AM_INIT_AUTOMAKE],
-[AC_PREREQ([2.60])dnl
-dnl Autoconf wants to disallow AM_ names. We explicitly allow
-dnl the ones we care about.
-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
-AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
-AC_REQUIRE([AC_PROG_INSTALL])dnl
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
- # is not polluted with repeated "-I."
- AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
- # test to see if srcdir already configured
- if test -f $srcdir/config.status; then
- AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
- fi
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
- if (cygpath --version) >/dev/null 2>/dev/null; then
- CYGPATH_W='cygpath -w'
- else
- CYGPATH_W=echo
- fi
-fi
-AC_SUBST([CYGPATH_W])
-
-# Define the identity of the package.
-dnl Distinguish between old-style and new-style calls.
-m4_ifval([$2],
-[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
- AC_SUBST([PACKAGE], [$1])dnl
- AC_SUBST([VERSION], [$2])],
-[_AM_SET_OPTIONS([$1])dnl
-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
-m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
- [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
-
-_AM_IF_OPTION([no-define],,
-[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
-
-# Some tools Automake needs.
-AC_REQUIRE([AM_SANITY_CHECK])dnl
-AC_REQUIRE([AC_ARG_PROGRAM])dnl
-AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
-AM_MISSING_PROG(AUTOCONF, autoconf)
-AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
-AM_MISSING_PROG(AUTOHEADER, autoheader)
-AM_MISSING_PROG(MAKEINFO, makeinfo)
-AM_PROG_INSTALL_SH
-AM_PROG_INSTALL_STRIP
-AC_REQUIRE([AM_PROG_MKDIR_P])dnl
-# We need awk for the "check" target. The system "awk" is bad on
-# some platforms.
-AC_REQUIRE([AC_PROG_AWK])dnl
-AC_REQUIRE([AC_PROG_MAKE_SET])dnl
-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
- [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
- [_AM_PROG_TAR([v7])])])
-_AM_IF_OPTION([no-dependencies],,
-[AC_PROVIDE_IFELSE([AC_PROG_CC],
- [_AM_DEPENDENCIES(CC)],
- [define([AC_PROG_CC],
- defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_CXX],
- [_AM_DEPENDENCIES(CXX)],
- [define([AC_PROG_CXX],
- defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_OBJC],
- [_AM_DEPENDENCIES(OBJC)],
- [define([AC_PROG_OBJC],
- defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
-])
-])
-
-
-# When config.status generates a header, we must update the stamp-h file.
-# This file resides in the same directory as the config header
-# that is generated. The stamp files are numbered to have different names.
-
-# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
-# loop where config.status creates the headers, so we can generate
-# our stamp files there.
-AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
-[# Compute $1's index in $config_headers.
-_am_stamp_count=1
-for _am_header in $config_headers :; do
- case $_am_header in
- $1 | $1:* )
- break ;;
- * )
- _am_stamp_count=`expr $_am_stamp_count + 1` ;;
- esac
-done
-echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
-
-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_INSTALL_SH
-# ------------------
-# Define $install_sh.
-AC_DEFUN([AM_PROG_INSTALL_SH],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
-AC_SUBST(install_sh)])
-
-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 2
-
-# Check whether the underlying file-system supports filenames
-# with a leading dot. For instance MS-DOS doesn't.
-AC_DEFUN([AM_SET_LEADING_DOT],
-[rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
- am__leading_dot=.
-else
- am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-AC_SUBST([am__leading_dot])])
-
-# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
-# From Jim Meyering
-
-# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 4
-
-AC_DEFUN([AM_MAINTAINER_MODE],
-[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
- dnl maintainer-mode is disabled by default
- AC_ARG_ENABLE(maintainer-mode,
-[ --enable-maintainer-mode enable make rules and dependencies not useful
- (and sometimes confusing) to the casual installer],
- USE_MAINTAINER_MODE=$enableval,
- USE_MAINTAINER_MODE=no)
- AC_MSG_RESULT([$USE_MAINTAINER_MODE])
- AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
- MAINT=$MAINTAINER_MODE_TRUE
- AC_SUBST(MAINT)dnl
-]
-)
-
-AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
-
-# Check to see how 'make' treats includes. -*- Autoconf -*-
-
-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 3
-
-# AM_MAKE_INCLUDE()
-# -----------------
-# Check to see how make treats includes.
-AC_DEFUN([AM_MAKE_INCLUDE],
-[am_make=${MAKE-make}
-cat > confinc << 'END'
-am__doit:
- @echo done
-.PHONY: am__doit
-END
-# If we don't find an include directive, just comment out the code.
-AC_MSG_CHECKING([for style of include used by $am_make])
-am__include="#"
-am__quote=
-_am_result=none
-# First try GNU make style include.
-echo "include confinc" > confmf
-# We grep out `Entering directory' and `Leaving directory'
-# messages which can occur if `w' ends up in MAKEFLAGS.
-# In particular we don't look at `^make:' because GNU make might
-# be invoked under some other name (usually "gmake"), in which
-# case it prints its new name instead of `make'.
-if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
- am__include=include
- am__quote=
- _am_result=GNU
-fi
-# Now try BSD make style include.
-if test "$am__include" = "#"; then
- echo '.include "confinc"' > confmf
- if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
- am__include=.include
- am__quote="\""
- _am_result=BSD
- fi
-fi
-AC_SUBST([am__include])
-AC_SUBST([am__quote])
-AC_MSG_RESULT([$_am_result])
-rm -f confinc confmf
-])
-
-# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 5
-
-# AM_PROG_CC_C_O
-# --------------
-# Like AC_PROG_CC_C_O, but changed for automake.
-AC_DEFUN([AM_PROG_CC_C_O],
-[AC_REQUIRE([AC_PROG_CC_C_O])dnl
-AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-AC_REQUIRE_AUX_FILE([compile])dnl
-# FIXME: we rely on the cache variable name because
-# there is no other way.
-set dummy $CC
-ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
-if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
- # Losing compiler, so override with the script.
- # FIXME: It is wrong to rewrite CC.
- # But if we don't then we get into trouble of one sort or another.
- # A longer-term fix would be to have automake use am__CC in this case,
- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
- CC="$am_aux_dir/compile $CC"
-fi
-dnl Make sure AC_PROG_CC is never called again, or it will override our
-dnl setting of CC.
-m4_define([AC_PROG_CC],
- [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
-])
-
-# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
-
-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 5
-
-# AM_MISSING_PROG(NAME, PROGRAM)
-# ------------------------------
-AC_DEFUN([AM_MISSING_PROG],
-[AC_REQUIRE([AM_MISSING_HAS_RUN])
-$1=${$1-"${am_missing_run}$2"}
-AC_SUBST($1)])
-
-
-# AM_MISSING_HAS_RUN
-# ------------------
-# Define MISSING if not defined so far and test if it supports --run.
-# If it does, set am_missing_run to use it, otherwise, to nothing.
-AC_DEFUN([AM_MISSING_HAS_RUN],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-AC_REQUIRE_AUX_FILE([missing])dnl
-test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
-# Use eval to expand $SHELL
-if eval "$MISSING --run true"; then
- am_missing_run="$MISSING --run "
-else
- am_missing_run=
- AC_MSG_WARN([`missing' script is too old or missing])
-fi
-])
-
-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_MKDIR_P
-# ---------------
-# Check for `mkdir -p'.
-AC_DEFUN([AM_PROG_MKDIR_P],
-[AC_PREREQ([2.60])dnl
-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
-dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
-dnl while keeping a definition of mkdir_p for backward compatibility.
-dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
-dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
-dnl Makefile.ins that do not define MKDIR_P, so we do our own
-dnl adjustment using top_builddir (which is defined more often than
-dnl MKDIR_P).
-AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
-case $mkdir_p in
- [[\\/$]]* | ?:[[\\/]]*) ;;
- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
-esac
-])
-
-# Helper functions for option handling. -*- Autoconf -*-
-
-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 3
-
-# _AM_MANGLE_OPTION(NAME)
-# -----------------------
-AC_DEFUN([_AM_MANGLE_OPTION],
-[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
-
-# _AM_SET_OPTION(NAME)
-# ------------------------------
-# Set option NAME. Presently that only means defining a flag for this option.
-AC_DEFUN([_AM_SET_OPTION],
-[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
-
-# _AM_SET_OPTIONS(OPTIONS)
-# ----------------------------------
-# OPTIONS is a space-separated list of Automake options.
-AC_DEFUN([_AM_SET_OPTIONS],
-[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
-
-# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
-# -------------------------------------------
-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
-AC_DEFUN([_AM_IF_OPTION],
-[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
-
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-# ---------------------------------------------------------------------------
-# Adds support for distributing Python modules and packages. To
-# install modules, copy them to $(pythondir), using the python_PYTHON
-# automake variable. To install a package with the same name as the
-# automake package, install to $(pkgpythondir), or use the
-# pkgpython_PYTHON automake variable.
-#
-# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
-# locations to install python extension modules (shared libraries).
-# Another macro is required to find the appropriate flags to compile
-# extension modules.
-#
-# If your package is configured with a different prefix to python,
-# users will have to add the install directory to the PYTHONPATH
-# environment variable, or create a .pth file (see the python
-# documentation for details).
-#
-# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
-# cause an error if the version of python installed on the system
-# doesn't meet the requirement. MINIMUM-VERSION should consist of
-# numbers and dots only.
-AC_DEFUN([AM_PATH_PYTHON],
- [
- dnl Find a Python interpreter. Python versions prior to 1.5 are not
- dnl supported because the default installation locations changed from
- dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
- dnl in 1.5.
- m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
- [python python2 python2.5 python2.4 python2.3 python2.2 dnl
-python2.1 python2.0 python1.6 python1.5])
-
- m4_if([$1],[],[
- dnl No version check is needed.
- # Find any Python interpreter.
- if test -z "$PYTHON"; then
- AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
- fi
- am_display_PYTHON=python
- ], [
- dnl A version check is needed.
- if test -n "$PYTHON"; then
- # If the user set $PYTHON, use it and don't search something else.
- AC_MSG_CHECKING([whether $PYTHON version >= $1])
- AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
- [AC_MSG_RESULT(yes)],
- [AC_MSG_ERROR(too old)])
- am_display_PYTHON=$PYTHON
- else
- # Otherwise, try each interpreter until we find one that satisfies
- # VERSION.
- AC_CACHE_CHECK([for a Python interpreter with version >= $1],
- [am_cv_pathless_PYTHON],[
- for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
- test "$am_cv_pathless_PYTHON" = none && break
- AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
- done])
- # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
- if test "$am_cv_pathless_PYTHON" = none; then
- PYTHON=:
- else
- AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
- fi
- am_display_PYTHON=$am_cv_pathless_PYTHON
- fi
- ])
-
- if test "$PYTHON" = :; then
- dnl Run any user-specified action, or abort.
- m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
- else
-
- dnl Query Python for its version number. Getting [:3] seems to be
- dnl the best way to do this; it's what "site.py" does in the standard
- dnl library.
-
- AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
- [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
- AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
-
- dnl Use the values of $prefix and $exec_prefix for the corresponding
- dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
- dnl distinct variables so they can be overridden if need be. However,
- dnl general consensus is that you shouldn't need this ability.
-
- AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
- AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
-
- dnl At times (like when building shared libraries) you may want
- dnl to know which OS platform Python thinks this is.
-
- AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
- [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
- AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
-
-
- dnl Set up 4 directories:
-
- dnl pythondir -- where to install python scripts. This is the
- dnl site-packages directory, not the python standard library
- dnl directory like in previous automake betas. This behavior
- dnl is more consistent with lispdir.m4 for example.
- dnl Query distutils for this directory. distutils does not exist in
- dnl Python 1.5, so we fall back to the hardcoded directory if it
- dnl doesn't work.
- AC_CACHE_CHECK([for $am_display_PYTHON script directory],
- [am_cv_python_pythondir],
- [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
- echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
- AC_SUBST([pythondir], [$am_cv_python_pythondir])
-
- dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
- dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
- dnl more consistent with the rest of automake.
-
- AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
-
- dnl pyexecdir -- directory for installing python extension modules
- dnl (shared libraries)
- dnl Query distutils for this directory. distutils does not exist in
- dnl Python 1.5, so we fall back to the hardcoded directory if it
- dnl doesn't work.
- AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
- [am_cv_python_pyexecdir],
- [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
- echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
- AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
-
- dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
-
- AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
-
- dnl Run any user-specified action.
- $2
- fi
-
-])
-
-
-# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
-# ---------------------------------------------------------------------------
-# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
-# Run ACTION-IF-FALSE otherwise.
-# This test uses sys.hexversion instead of the string equivalent (first
-# word of sys.version), in order to cope with versions such as 2.2c1.
-# hexversion has been introduced in Python 1.5.2; it's probably not
-# worth to support older versions (1.5.1 was released on October 31, 1998).
-AC_DEFUN([AM_PYTHON_CHECK_VERSION],
- [prog="import sys, string
-# split strings by '.' and convert to numeric. Append some zeros
-# because we need at least 4 digits for the hex conversion.
-minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
-minverhex = 0
-for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
-sys.exit(sys.hexversion < minverhex)"
- AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
-
-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_RUN_LOG(COMMAND)
-# -------------------
-# Run COMMAND, save the exit status in ac_status, and log it.
-# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
-AC_DEFUN([AM_RUN_LOG],
-[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
- ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
- (exit $ac_status); }])
-
-# Check to make sure that the build environment is sane. -*- Autoconf -*-
-
-# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 4
-
-# AM_SANITY_CHECK
-# ---------------
-AC_DEFUN([AM_SANITY_CHECK],
-[AC_MSG_CHECKING([whether build environment is sane])
-# Just in case
-sleep 1
-echo timestamp > conftest.file
-# Do `set' in a subshell so we don't clobber the current shell's
-# arguments. Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
- set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
- if test "$[*]" = "X"; then
- # -L didn't work.
- set X `ls -t $srcdir/configure conftest.file`
- fi
- rm -f conftest.file
- if test "$[*]" != "X $srcdir/configure conftest.file" \
- && test "$[*]" != "X conftest.file $srcdir/configure"; then
-
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
-alias in your environment])
- fi
-
- test "$[2]" = conftest.file
- )
-then
- # Ok.
- :
-else
- AC_MSG_ERROR([newly created file is older than distributed files!
-Check your system clock])
-fi
-AC_MSG_RESULT(yes)])
-
-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_INSTALL_STRIP
-# ---------------------
-# One issue with vendor `install' (even GNU) is that you can't
-# specify the program used to strip binaries. This is especially
-# annoying in cross-compiling environments, where the build's strip
-# is unlikely to handle the host's binaries.
-# Fortunately install-sh will honor a STRIPPROG variable, so we
-# always use install-sh in `make install-strip', and initialize
-# STRIPPROG with the value of the STRIP variable (set by the user).
-AC_DEFUN([AM_PROG_INSTALL_STRIP],
-[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
-# Installed binaries are usually stripped using `strip' when the user
-# run `make install-strip'. However `strip' might not be the right
-# tool to use in cross-compilation environments, therefore Automake
-# will honor the `STRIP' environment variable to overrule this program.
-dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
-if test "$cross_compiling" != no; then
- AC_CHECK_TOOL([STRIP], [strip], :)
-fi
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
-AC_SUBST([INSTALL_STRIP_PROGRAM])])
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# _AM_SUBST_NOTMAKE(VARIABLE)
-# ---------------------------
-# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
-# This macro is traced by Automake.
-AC_DEFUN([_AM_SUBST_NOTMAKE])
-
-# Check how to create a tarball. -*- Autoconf -*-
-
-# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 2
-
-# _AM_PROG_TAR(FORMAT)
-# --------------------
-# Check how to create a tarball in format FORMAT.
-# FORMAT should be one of `v7', `ustar', or `pax'.
-#
-# Substitute a variable $(am__tar) that is a command
-# writing to stdout a FORMAT-tarball containing the directory
-# $tardir.
-# tardir=directory && $(am__tar) > result.tar
-#
-# Substitute a variable $(am__untar) that extract such
-# a tarball read from stdin.
-# $(am__untar) < result.tar
-AC_DEFUN([_AM_PROG_TAR],
-[# Always define AMTAR for backward compatibility.
-AM_MISSING_PROG([AMTAR], [tar])
-m4_if([$1], [v7],
- [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
- [m4_case([$1], [ustar],, [pax],,
- [m4_fatal([Unknown tar format])])
-AC_MSG_CHECKING([how to create a $1 tar archive])
-# Loop over all known methods to create a tar archive until one works.
-_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
-_am_tools=${am_cv_prog_tar_$1-$_am_tools}
-# Do not fold the above two line into one, because Tru64 sh and
-# Solaris sh will not grok spaces in the rhs of `-'.
-for _am_tool in $_am_tools
-do
- case $_am_tool in
- gnutar)
- for _am_tar in tar gnutar gtar;
- do
- AM_RUN_LOG([$_am_tar --version]) && break
- done
- am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
- am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
- am__untar="$_am_tar -xf -"
- ;;
- plaintar)
- # Must skip GNU tar: if it does not support --format= it doesn't create
- # ustar tarball either.
- (tar --version) >/dev/null 2>&1 && continue
- am__tar='tar chf - "$$tardir"'
- am__tar_='tar chf - "$tardir"'
- am__untar='tar xf -'
- ;;
- pax)
- am__tar='pax -L -x $1 -w "$$tardir"'
- am__tar_='pax -L -x $1 -w "$tardir"'
- am__untar='pax -r'
- ;;
- cpio)
- am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
- am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
- am__untar='cpio -i -H $1 -d'
- ;;
- none)
- am__tar=false
- am__tar_=false
- am__untar=false
- ;;
- esac
-
- # If the value was cached, stop now. We just wanted to have am__tar
- # and am__untar set.
- test -n "${am_cv_prog_tar_$1}" && break
-
- # tar/untar a dummy directory, and stop if the command works
- rm -rf conftest.dir
- mkdir conftest.dir
- echo GrepMe > conftest.dir/file
- AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
- rm -rf conftest.dir
- if test -s conftest.tar; then
- AM_RUN_LOG([$am__untar <conftest.tar])
- grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
- fi
-done
-rm -rf conftest.dir
-
-AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
-AC_MSG_RESULT([$am_cv_prog_tar_$1])])
-AC_SUBST([am__tar])
-AC_SUBST([am__untar])
-]) # _AM_PROG_TAR
-
-m4_include([m4/ensc_cflags.m4])
-m4_include([m4/ensc_changelog.m4])
-m4_include([m4/ensc_cxxcompiler.m4])
-m4_include([m4/ensc_dietlibc.m4])
-m4_include([m4/ensc_dietlibc_compat.m4])
-m4_include([m4/ensc_e2fscheck.m4])
-m4_include([m4/ensc_initrddir.m4])
-m4_include([m4/ensc_pathprog.m4])
-m4_include([m4/ensc_personality.m4])
-m4_include([m4/ensc_release.m4])
-m4_include([m4/ensc_syscall.m4])
-m4_include([m4/ensc_syscallnr.m4])
-m4_include([m4/ensc_uv_vrootdir.m4])
+++ /dev/null
-// $Id: compat-c99.h 2283 2006-09-10 17:07:57Z hollow $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_COMPAT_C99_H
-#define H_UTIL_VSERVER_COMPAT_C99_H
-
-#if defined(__GNUC__) && __GNUC__ < 3 || (__GNUC__==3 && __GNUC_MINOR__<3)
-# warning Enabling hacks to make it compilable with non-C99 compilers
-# define BS { do {} while (0)
-# define BE } do {} while (0)
-#else
-# define BS do {} while (0)
-# define BE do {} while (0)
-#endif
-
-#endif // H_UTIL_VSERVER_COMPAT_C99_H
+++ /dev/null
-// $Id: compat.h 2589 2007-08-16 03:06:50Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_COMPAT_H
-#define H_UTIL_VSERVER_COMPAT_H
-
-#if defined(__dietlibc__) && !defined(ENSC_DIETLIBC_C99) && defined(__STRICT_ANSI__) && defined(__STDC_VERSION__)
-# include <sys/cdefs.h>
-# undef inline
-
-# undef __STRICT_ANSI__
-# include <stdint.h>
-# define __STRICT_ANSI__
-#endif
-
-#if defined(__dietlibc__)
-# define ENSC_FIX_IOCTL(X) do { if ((X)<-1) { errno=-(X); (X) = -1; } } while (0)
-#else
-# define ENSC_FIX_IOCTL(X) do { } while (0)
-#endif
-
-#if defined(__GNUC__)
-# define UNUSED __attribute__((__unused__))
-# define NORETURN __attribute__((__noreturn__))
-# define CONST __attribute__((__const__))
-# if __GNUC__*0x10000 + __GNUC_MINOR__*0x100 + __GNUC_PATCHLEVEL__ >= 0x30300
-# define NONNULL(ARGS) __attribute__((__nonnull__ ARGS))
-# define ALWAYSINLINE __attribute__((__always_inline__))
-# else
-# define NONNULL(ARGS)
-# define ALWAYSINLINE
-# define PURE
-# endif
-# if __GNUC__*0x10000 + __GNUC_MINOR__*0x100 + __GNUC_PATCHLEVEL__ >= 0x30303
-# define PURE __attribute__((__pure__))
-# else
-# define PURE
-# endif
-#else
-# define NONNULL(ARGS)
-# define UNUSED
-# define NORETURN
-# define ALWAYSINLINE
-# define PURE
-# define CONST
-#endif
-
- // shamelessly stolen from dietlibc
-#define LINK_WARNING(symbol,msg) \
- __asm__ (".section .gnu.warning." symbol "\n\t.string \"" msg "\"\n\t.previous")
-
-#if !defined(__builtin_expect) && (__GNUC__+0)<3
-# define __builtin_expect(foo,bar) (foo)
-#endif
-
-#if !defined(__STDC_VERSION__) || (__STDC_VERSION__<199901L)
-# define restrict
-#endif
-
-#if !defined(HAVE_DECL_MS_MOVE) || !(HAVE_DECL_MS_MOVE)
- // from <linux/fs.h>
-# define MS_MOVE 8192
-#endif
-
-#ifndef HAVE_XID_T
-#include <stdint.h>
-typedef uint32_t xid_t;
-#endif
-
-#ifndef HAVE_NID_T
-#include <stdint.h>
-typedef uint32_t nid_t;
-#endif
-
-#ifndef HAVE_TAG_T
-#include <stdint.h>
-typedef uint32_t tag_t;
-#endif
-
-
-#if defined(__dietlibc__)
- #define TEMP_FAILURE_RETRY(expression) \
- (__extension__ \
- ({ long int __result; \
- do __result = (long int) (expression); \
- while (__result == -1L && errno == EINTR); \
- __result; }))
-#endif
-
-#define FMT_PREFIX utilvserver_fmt_
-
-#endif // H_UTIL_VSERVER_COMPAT_H
+++ /dev/null
-#! /bin/sh
-# Wrapper for compilers which do not understand `-c -o'.
-
-scriptversion=2005-05-14.22
-
-# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
-# Written by Tom Tromey <tromey@cygnus.com>.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# This file is maintained in Automake, please report
-# bugs to <bug-automake@gnu.org> or send patches to
-# <automake-patches@gnu.org>.
-
-case $1 in
- '')
- echo "$0: No command. Try \`$0 --help' for more information." 1>&2
- exit 1;
- ;;
- -h | --h*)
- cat <<\EOF
-Usage: compile [--help] [--version] PROGRAM [ARGS]
-
-Wrapper for compilers which do not understand `-c -o'.
-Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
-arguments, and rename the output as expected.
-
-If you are trying to build a whole package this is not the
-right script to run: please start by reading the file `INSTALL'.
-
-Report bugs to <bug-automake@gnu.org>.
-EOF
- exit $?
- ;;
- -v | --v*)
- echo "compile $scriptversion"
- exit $?
- ;;
-esac
-
-ofile=
-cfile=
-eat=
-
-for arg
-do
- if test -n "$eat"; then
- eat=
- else
- case $1 in
- -o)
- # configure might choose to run compile as `compile cc -o foo foo.c'.
- # So we strip `-o arg' only if arg is an object.
- eat=1
- case $2 in
- *.o | *.obj)
- ofile=$2
- ;;
- *)
- set x "$@" -o "$2"
- shift
- ;;
- esac
- ;;
- *.c)
- cfile=$1
- set x "$@" "$1"
- shift
- ;;
- *)
- set x "$@" "$1"
- shift
- ;;
- esac
- fi
- shift
-done
-
-if test -z "$ofile" || test -z "$cfile"; then
- # If no `-o' option was seen then we might have been invoked from a
- # pattern rule where we don't need one. That is ok -- this is a
- # normal compilation that the losing compiler can handle. If no
- # `.c' file was seen then we are probably linking. That is also
- # ok.
- exec "$@"
-fi
-
-# Name of file we expect compiler to create.
-cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
-
-# Create the lock directory.
-# Note: use `[/.-]' here to ensure that we don't use the same name
-# that we are using for the .o file. Also, base the name on the expected
-# object file name, since that is what matters with a parallel build.
-lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
-while true; do
- if mkdir "$lockdir" >/dev/null 2>&1; then
- break
- fi
- sleep 1
-done
-# FIXME: race condition here if user kills between mkdir and trap.
-trap "rmdir '$lockdir'; exit 1" 1 2 15
-
-# Run the compile.
-"$@"
-ret=$?
-
-if test -f "$cofile"; then
- mv "$cofile" "$ofile"
-elif test -f "${cofile}bj"; then
- mv "${cofile}bj" "$ofile"
-fi
-
-rmdir "$lockdir"
-exit $ret
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End:
+++ /dev/null
-#! /bin/sh
-# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
-
-timestamp='2006-07-02'
-
-# 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 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, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner <per@bothner.com>.
-# Please send patches to <config-patches@gnu.org>. Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub. If it succeeds, it prints the system name on stdout, and
-# exits with 0. Otherwise, it exits with 1.
-#
-# The plan is that this can be called by configure scripts if you
-# don't specify an explicit build system type.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
- -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 <config-patches@gnu.org>."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
-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
-
-trap 'exit 1' 1 2 15
-
-# 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.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
-: ${TMPDIR=/tmp} ;
- { 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) ; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,) echo "int x;" > $dummy.c ;
- for c in cc gcc c89 c99 ; do
- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
- CC_FOR_BUILD="$c"; 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 ; set_cc_for_build= ;'
-
-# 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) >/dev/null 2>&1 ; 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
-
-# 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 tupples: *-*-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=`(/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 ;;
- *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
- esac
- # The Operating System including object format, if it has switched
- # to ELF recently, or will in the future.
- case "${UNAME_MACHINE_ARCH}" in
- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
- eval $set_cc_for_build
- if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep __ELF__ >/dev/null
- 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
- # 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/[-_].*/\./'`
- ;;
- 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}"
- exit ;;
- *:OpenBSD:*:*)
- UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
- echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${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 ;;
- 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'`
- exit ;;
- Alpha\ *:Windows_NT*:*)
- # How do we know it's Interix rather than the generic POSIX subsystem?
- # Should we change UNAME_MACHINE based on the output of uname instead
- # of the specific Alpha model?
- echo alpha-pc-interix
- exit ;;
- 21064:Windows_NT:50:3)
- echo alpha-dec-winnt3.5
- exit ;;
- 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 ;;
- 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:SunOS:5.*:*)
- echo i386-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)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
-#ifdef __cplusplus
-#include <stdio.h> /* 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
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <sys/systemcfg.h>
-
- 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:*:[45])
- 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/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
- 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:BSD:*)
- 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
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
-
- #define _HPUX_SOURCE
- #include <stdlib.h>
- #include <unistd.h>
-
- 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
- eval $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 __LP64__ >/dev/null
- 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:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <unistd.h>
- 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 ;;
- *:FreeBSD:*:*)
- case ${UNAME_MACHINE} in
- pc98)
- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
- amd64)
- echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
- *)
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
- esac
- exit ;;
- i*:CYGWIN*:*)
- echo ${UNAME_MACHINE}-pc-cygwin
- exit ;;
- i*:MINGW*:*)
- echo ${UNAME_MACHINE}-pc-mingw32
- exit ;;
- i*:windows32*:*)
- # uname -m includes "-pc" on this system.
- echo ${UNAME_MACHINE}-mingw32
- exit ;;
- i*:PW*:*)
- echo ${UNAME_MACHINE}-pc-pw32
- exit ;;
- x86:Interix*:[3456]*)
- echo i586-pc-interix${UNAME_RELEASE}
- exit ;;
- EM64T:Interix*:[3456]*)
- echo x86_64-unknown-interix${UNAME_RELEASE}
- exit ;;
- [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
- echo i${UNAME_MACHINE}-pc-mks
- exit ;;
- i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
- # How do we know it's Interix rather than the generic POSIX subsystem?
- # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
- # UNAME_MACHINE based on the output of uname instead of i386?
- echo i586-pc-interix
- exit ;;
- i*:UWIN*:*)
- echo ${UNAME_MACHINE}-pc-uwin
- exit ;;
- amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
- echo x86_64-unknown-cygwin
- exit ;;
- p*:CYGWIN*:*)
- echo powerpcle-unknown-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-gnu`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 '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
- exit ;;
- i*86:Minix:*:*)
- echo ${UNAME_MACHINE}-pc-minix
- exit ;;
- arm*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit ;;
- avr32*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit ;;
- cris:Linux:*:*)
- echo cris-axis-linux-gnu
- exit ;;
- crisv32:Linux:*:*)
- echo crisv32-axis-linux-gnu
- exit ;;
- frv:Linux:*:*)
- echo frv-unknown-linux-gnu
- exit ;;
- ia64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit ;;
- m32r*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit ;;
- m68*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit ;;
- mips:Linux:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #undef CPU
- #undef mips
- #undef mipsel
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mipsel
- #else
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips
- #else
- CPU=
- #endif
- #endif
-EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^CPU/{
- s: ::g
- p
- }'`"
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
- ;;
- mips64:Linux:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #undef CPU
- #undef mips64
- #undef mips64el
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mips64el
- #else
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips64
- #else
- CPU=
- #endif
- #endif
-EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^CPU/{
- s: ::g
- p
- }'`"
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
- ;;
- or32:Linux:*:*)
- echo or32-unknown-linux-gnu
- exit ;;
- ppc:Linux:*:*)
- echo powerpc-unknown-linux-gnu
- exit ;;
- ppc64:Linux:*:*)
- echo powerpc64-unknown-linux-gnu
- 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 ld.so.1 >/dev/null
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
- echo ${UNAME_MACHINE}-unknown-linux-gnu${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-gnu ;;
- PA8*) echo hppa2.0-unknown-linux-gnu ;;
- *) echo hppa-unknown-linux-gnu ;;
- esac
- exit ;;
- parisc64:Linux:*:* | hppa64:Linux:*:*)
- echo hppa64-unknown-linux-gnu
- exit ;;
- s390:Linux:*:* | s390x:Linux:*:*)
- echo ${UNAME_MACHINE}-ibm-linux
- exit ;;
- sh64*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit ;;
- sh*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit ;;
- sparc:Linux:*:* | sparc64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit ;;
- vax:Linux:*:*)
- echo ${UNAME_MACHINE}-dec-linux-gnu
- exit ;;
- x86_64:Linux:*:*)
- echo x86_64-unknown-linux-gnu
- exit ;;
- i*86:Linux:*:*)
- # The BFD linker knows what the default object file format is, so
- # first see if it will tell us. cd to the root directory to prevent
- # problems with other programs or directories called `ld' in the path.
- # Set LC_ALL=C to ensure ld outputs messages in English.
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
- | sed -ne '/supported targets:/!d
- s/[ ][ ]*/ /g
- s/.*supported targets: *//
- s/ .*//
- p'`
- case "$ld_supported_targets" in
- elf32-i386)
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
- ;;
- a.out-i386-linux)
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
- exit ;;
- coff-i386)
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
- exit ;;
- "")
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
- # one that does not give us useful --help.
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
- exit ;;
- esac
- # Determine whether the default compiler is a.out or elf
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <features.h>
- #ifdef __ELF__
- # ifdef __GLIBC__
- # if __GLIBC__ >= 2
- LIBC=gnu
- # else
- LIBC=gnulibc1
- # endif
- # else
- LIBC=gnulibc1
- # endif
- #else
- #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
- LIBC=gnu
- #else
- LIBC=gnuaout
- #endif
- #endif
- #ifdef __dietlibc__
- LIBC=dietlibc
- #endif
-EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^LIBC/{
- s: ::g
- p
- }'`"
- test x"${LIBC}" != x && {
- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
- exit
- }
- test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; 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.0*:*)
- echo i386-unknown-lynxos${UNAME_RELEASE}
- exit ;;
- i*86:*DOS:*:*)
- echo ${UNAME_MACHINE}-pc-msdosdjgpp
- exit ;;
- i*86:*:4.*:* | i*86:SYSTEM_V: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' </usr/options/cb.name`
- echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
- elif /bin/uname -X 2>/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 i386.
- echo i386-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; } ;;
- 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.0*:*)
- 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 <Richard.M.Bartel@ccMail.Census.GOV>
- echo i586-unisys-sysv4
- exit ;;
- *:UNIX_System_V:4*:FTX*)
- # From Gerald Hewes <hewes@openmarket.com>.
- # 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 ;;
- 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 ;;
- 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
- case $UNAME_PROCESSOR in
- unknown) UNAME_PROCESSOR=powerpc ;;
- esac
- 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 ;;
- NSE-?:NONSTOP_KERNEL:*:*)
- echo nse-tandem-nsk${UNAME_RELEASE}
- exit ;;
- NSR-?:NONSTOP_KERNEL:*:*)
- echo nsr-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.
- 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 ;;
-esac
-
-#echo '(No uname command or uname output not recognized.)' 1>&2
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-
-eval $set_cc_for_build
-cat >$dummy.c <<EOF
-#ifdef _SEQUENT_
-# include <sys/types.h>
-# include <sys/utsname.h>
-#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 <sys/param.h>
- printf ("m68k-sony-newsos%s\n",
-#ifdef NEWSOS4
- "4"
-#else
- ""
-#endif
- ); exit (0);
-#endif
-#endif
-
-#if defined (__arm) && defined (__acorn) && defined (__unix)
- printf ("arm-acorn-riscix\n"); exit (0);
-#endif
-
-#if defined (hp300) && !defined (hpux)
- printf ("m68k-hp-bsd\n"); exit (0);
-#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 <sys/param.h>
-# 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
- printf ("vax-dec-ultrix\n"); exit (0);
-# 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; }
-
-# Convex versions that predate uname can use getsysinfo(1)
-
-if [ -x /usr/convex/getsysinfo ]
-then
- case `getsysinfo -f cpu_type` in
- c1*)
- echo c1-convex-bsd
- exit ;;
- c2*)
- if getsysinfo -f scalar_acc
- then echo c32-convex-bsd
- else echo c2-convex-bsd
- fi
- exit ;;
- c34*)
- echo c34-convex-bsd
- exit ;;
- c38*)
- echo c38-convex-bsd
- exit ;;
- c4*)
- echo c4-convex-bsd
- exit ;;
- esac
-fi
-
-cat >&2 <<EOF
-$0: unable to guess system type
-
-This script, last modified $timestamp, has failed to recognize
-the operating system you are using. It is advised that you
-download the most up to date version of the config scripts from
-
- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
-and
- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
-
-If the version you run ($0) is already up to date, please
-send the following data and any information you think might be
-pertinent to <config-patches@gnu.org> in order to provide the needed
-information to handle your system.
-
-config.guess timestamp = $timestamp
-
-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`
-/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 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
+++ /dev/null
-/* config.h.in. Generated from configure.ac by autoheader. */
-
-/* Define to 1 if dietlibc supports C99 */
-#undef ENSC_DIETLIBC_C99
-
-/* Define to 1 if dietlibc declares syscall */
-#undef ENSC_DIETLIBC_HAS_SYSCALL
-
-/* define when <ext2fs/ext2_fs.h> is usable */
-#undef ENSC_HAVE_EXT2FS_EXT2_FS_H
-
-/* define when <linux/ext2_fs.h> is usable */
-#undef ENSC_HAVE_LINUX_EXT2_FS_H
-
-/* Define to 1 when the fast syscall(2) invocation does not work */
-#undef ENSC_SYSCALL_TRADITIONAL
-
-/* The number of the vserver syscall */
-#undef ENSC_SYSCALL__NR_vserver
-
-/* Use alternative _syscallX macros */
-#undef ENSC_USE_ALTERNATIVE_SYSCALL_MACROS
-
-/* Define to 1 if you have the <asm/types.h> header file. */
-#undef HAVE_ASM_TYPES_H
-
-/* Define to 1 if you have the declaration of `ADDR_LIMIT_32BIT', and to 0 if
- you don't. */
-#undef HAVE_DECL_ADDR_LIMIT_32BIT
-
-/* Define to 1 if you have the declaration of `ADDR_LIMIT_3GB', and to 0 if
- you don't. */
-#undef HAVE_DECL_ADDR_LIMIT_3GB
-
-/* Define to 1 if you have the declaration of `MMAP_PAGE_ZERO', and to 0 if
- you don't. */
-#undef HAVE_DECL_MMAP_PAGE_ZERO
-
-/* Define to 1 if you have the declaration of `MS_MOVE', and to 0 if you
- don't. */
-#undef HAVE_DECL_MS_MOVE
-
-/* Define to 1 if you have the declaration of `PER_BSD', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_BSD
-
-/* Define to 1 if you have the declaration of `PER_HPUX', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_HPUX
-
-/* Define to 1 if you have the declaration of `PER_IRIX32', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_IRIX32
-
-/* Define to 1 if you have the declaration of `PER_IRIX64', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_IRIX64
-
-/* Define to 1 if you have the declaration of `PER_IRIXN32', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_IRIXN32
-
-/* Define to 1 if you have the declaration of `PER_ISCR4', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_ISCR4
-
-/* Define to 1 if you have the declaration of `PER_LINUX', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_LINUX
-
-/* Define to 1 if you have the declaration of `PER_LINUX32', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_LINUX32
-
-/* Define to 1 if you have the declaration of `PER_LINUX32_3GB', and to 0 if
- you don't. */
-#undef HAVE_DECL_PER_LINUX32_3GB
-
-/* Define to 1 if you have the declaration of `PER_LINUX_32BIT', and to 0 if
- you don't. */
-#undef HAVE_DECL_PER_LINUX_32BIT
-
-/* Define to 1 if you have the declaration of `PER_OSF4', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_OSF4
-
-/* Define to 1 if you have the declaration of `PER_OSR5', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_OSR5
-
-/* Define to 1 if you have the declaration of `PER_RISCOS', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_RISCOS
-
-/* Define to 1 if you have the declaration of `PER_SCOSVR3', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_SCOSVR3
-
-/* Define to 1 if you have the declaration of `PER_SOLARIS', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_SOLARIS
-
-/* Define to 1 if you have the declaration of `PER_SUNOS', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_SUNOS
-
-/* Define to 1 if you have the declaration of `PER_SVR3', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_SVR3
-
-/* Define to 1 if you have the declaration of `PER_SVR4', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_SVR4
-
-/* Define to 1 if you have the declaration of `PER_UW7', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_UW7
-
-/* Define to 1 if you have the declaration of `PER_WYSEV386', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_WYSEV386
-
-/* Define to 1 if you have the declaration of `PER_XENIX', and to 0 if you
- don't. */
-#undef HAVE_DECL_PER_XENIX
-
-/* Define to 1 if you have the declaration of `SHORT_INODE', and to 0 if you
- don't. */
-#undef HAVE_DECL_SHORT_INODE
-
-/* Define to 1 if you have the declaration of `STICKY_TIMEOUTS', and to 0 if
- you don't. */
-#undef HAVE_DECL_STICKY_TIMEOUTS
-
-/* Define to 1 if you have the declaration of `WHOLE_SECONDS', and to 0 if you
- don't. */
-#undef HAVE_DECL_WHOLE_SECONDS
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#undef HAVE_DLFCN_H
-
-/* Define to 1 if the stack is on growing addresses */
-#undef HAVE_GROWING_STACK
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define to 1 if you have the `util' library (-lutil). */
-#undef HAVE_LIBUTIL
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define to 1 if you have the <netlink/netlink.h> header file. */
-#undef HAVE_NETLINK_NETLINK_H
-
-/* Define to 1 if you have the <netlink/route/addr.h> header file. */
-#undef HAVE_NETLINK_ROUTE_ADDR_H
-
-/* Define to 1 if the system has the type `nid_t'. */
-#undef HAVE_NID_T
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define to 1 if you have the <sys/capability.h> header file. */
-#undef HAVE_SYS_CAPABILITY_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if the system has the type `tag_t'. */
-#undef HAVE_TAG_T
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Define to 1 if you have the `vserver' function. */
-#undef HAVE_VSERVER
-
-/* Define to 1 if the system has the type `xid_t'. */
-#undef HAVE_XID_T
-
-/* Define to 1 if the system has the type `__s64'. */
-#undef HAVE___S64
-
-/* Define to 1 if the system has the type `__u64'. */
-#undef HAVE___U64
-
-/* Define to 1 if your C compiler doesn't accept -c and -o together. */
-#undef NO_MINUS_C_MINUS_O
-
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* The utmp gid-number */
-#undef UTMP_GID
-
-/* Enable support for compatibility syscall API */
-#undef VC_ENABLE_API_COMPAT
-
-/* Enable support for filesystem compatibility API */
-#undef VC_ENABLE_API_FSCOMPAT
-
-/* Enable support for old, /proc parsing API */
-#undef VC_ENABLE_API_LEGACY
-
-/* Enable support for network context API */
-#undef VC_ENABLE_API_NET
-
-/* Enable support for new networking API */
-#undef VC_ENABLE_API_NETV2
-
-/* Enable API for a backward compatible /proc parsing */
-#undef VC_ENABLE_API_OLDPROC
-
-/* Enable API for a backward compatible uts handling */
-#undef VC_ENABLE_API_OLDUTS
-
-/* Enable support for API of vserver 1.1.x */
-#undef VC_ENABLE_API_V11
-
-/* Enable support for API of vserver 1.3.x */
-#undef VC_ENABLE_API_V13
-
-/* Enable support for some obsoleted API of vserver 1.3.x */
-#undef VC_ENABLE_API_V13OBS
-
-/* Enable support for API of vserver 2.1.x */
-#undef VC_ENABLE_API_V21
-
-/* Enable support for API of vserver 2.2.x */
-#undef VC_ENABLE_API_V22
-
-/* Enable support for API of vserver 2.3.x */
-#undef VC_ENABLE_API_V23
-
-/* Version number of package */
-#undef VERSION
-
-/* Use 64bit interface for filesystem operations */
-#undef _FILE_OFFSET_BITS
-
-/* Define this to a signed 64-bit integer type */
-#undef __s64
-
-/* Define this to an unsigned 64-bit integer type */
-#undef __u64
-
-
-#if defined(__pic__) && defined(__i386) && !defined(ENSC_SYSCALL_TRADITIONAL) && !defined(ENSC_USE_ALTERNATIVE_SYSCALL_MACROS)
-# define ENSC_SYSCALL_TRADITIONAL 1
-#endif
-
-#include "compat.h"
-
+++ /dev/null
-#! /bin/sh
-# Configuration validation subroutine script.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
-
-timestamp='2006-09-20'
-
-# This file is (in principle) common to ALL GNU software.
-# The presence of a machine in this file suggests that SOME GNU software
-# can handle that machine. It does not imply ALL GNU software can.
-#
-# 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 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, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
-#
-# 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.
-
-
-# Please send patches to <config-patches@gnu.org>. Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# 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.
-
-# 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
- $0 [OPTION] ALIAS
-
-Canonicalize a configuration name.
-
-Operation modes:
- -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 <config-patches@gnu.org>."
-
-version="\
-GNU config.sub ($timestamp)
-
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
-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"
- 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
-
-# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
-# Here we must recognize all the valid KERNEL-OS combinations.
-maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
-case $maybe_os in
- nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
- uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
- storm-chaos* | os2-emx* | rtmk-nova*)
- os=-$maybe_os
- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
- ;;
- *)
- basic_machine=`echo $1 | sed 's/-[^-]*$//'`
- if [ $basic_machine != $1 ]
- then os=`echo $1 | sed 's/.*-/-/'`
- else os=; fi
- ;;
-esac
-
-### Let's recognize common machines as not being operating systems so
-### that things like config.sub decstation-3100 work. We also
-### recognize some manufacturers as not being operating systems, so we
-### can provide default operating systems below.
-case $os in
- -sun*os*)
- # Prevent following clause from handling this invalid input.
- ;;
- -dec* | -mips* | -sequent* | -encore* | -pc532* | -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)
- os=
- basic_machine=$1
- ;;
- -sim | -cisco | -oki | -wec | -winbond)
- os=
- basic_machine=$1
- ;;
- -scout)
- ;;
- -wrs)
- os=-vxworks
- basic_machine=$1
- ;;
- -chorusos*)
- os=-chorusos
- basic_machine=$1
- ;;
- -chorusrdb)
- os=-chorusrdb
- basic_machine=$1
- ;;
- -hiux*)
- os=-hiuxwe2
- ;;
- -sco6)
- os=-sco5v6
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco5)
- os=-sco3.2v5
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco4)
- os=-sco3.2v4
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2.[4-9]*)
- os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2v[4-9]*)
- # Don't forget version if it is 3.2v4 or newer.
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco5v6*)
- # Don't forget version if it is 3.2v4 or newer.
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco*)
- os=-sco3.2v2
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -udk*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -isc)
- os=-isc2.2
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -clix*)
- basic_machine=clipper-intergraph
- ;;
- -isc*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -lynx*)
- os=-lynxos
- ;;
- -ptx*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
- ;;
- -windowsnt*)
- os=`echo $os | sed -e 's/windowsnt/winnt/'`
- ;;
- -psos*)
- os=-psos
- ;;
- -mint | -mint[0-9]*)
- basic_machine=m68k-atari
- os=-mint
- ;;
-esac
-
-# Decode aliases for certain CPU-COMPANY combinations.
-case $basic_machine in
- # Recognize the basic CPU types without company name.
- # Some are omitted here because they have special meanings below.
- 1750a | 580 \
- | a29k \
- | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
- | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
- | am33_2.0 \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
- | bfin \
- | c4x | clipper \
- | d10v | d30v | dlx | dsp16xx \
- | fr30 | frv \
- | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
- | i370 | i860 | i960 | ia64 \
- | ip2k | iq2000 \
- | m32c | m32r | m32rle | m68000 | m68k | m88k \
- | maxq | mb | microblaze | mcore \
- | mips | mipsbe | mipseb | mipsel | mipsle \
- | mips16 \
- | mips64 | mips64el \
- | mips64vr | mips64vrel \
- | mips64orion | mips64orionel \
- | mips64vr4100 | mips64vr4100el \
- | mips64vr4300 | mips64vr4300el \
- | mips64vr5000 | mips64vr5000el \
- | mips64vr5900 | mips64vr5900el \
- | mipsisa32 | mipsisa32el \
- | mipsisa32r2 | mipsisa32r2el \
- | mipsisa64 | mipsisa64el \
- | mipsisa64r2 | mipsisa64r2el \
- | mipsisa64sb1 | mipsisa64sb1el \
- | mipsisa64sr71k | mipsisa64sr71kel \
- | mipstx39 | mipstx39el \
- | mn10200 | mn10300 \
- | mt \
- | msp430 \
- | nios | nios2 \
- | ns16k | ns32k \
- | or32 \
- | pdp10 | pdp11 | pj | pjl \
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
- | pyramid \
- | score \
- | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
- | sh64 | sh64le \
- | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
- | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
- | spu | strongarm \
- | tahoe | thumb | tic4x | tic80 | tron \
- | v850 | v850e \
- | we32k \
- | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
- | z8k)
- basic_machine=$basic_machine-unknown
- ;;
- m6811 | m68hc11 | m6812 | m68hc12)
- # Motorola 68HC11/12.
- basic_machine=$basic_machine-unknown
- os=-none
- ;;
- m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
- ;;
- ms1)
- basic_machine=mt-unknown
- ;;
-
- # We use `pc' rather than `unknown'
- # because (1) that's what they normally are, and
- # (2) the word "unknown" tends to confuse beginning users.
- i*86 | x86_64)
- basic_machine=$basic_machine-pc
- ;;
- # Object if more than one company name word.
- *-*-*)
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
- exit 1
- ;;
- # Recognize the basic CPU types with company name.
- 580-* \
- | a29k-* \
- | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
- | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
- | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
- | avr-* | avr32-* \
- | bfin-* | bs2000-* \
- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
- | clipper-* | craynv-* | cydra-* \
- | d10v-* | d30v-* | dlx-* \
- | elxsi-* \
- | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
- | h8300-* | h8500-* \
- | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
- | i*86-* | i860-* | i960-* | ia64-* \
- | ip2k-* | iq2000-* \
- | m32c-* | m32r-* | m32rle-* \
- | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
- | m88110-* | m88k-* | maxq-* | mcore-* \
- | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
- | mips16-* \
- | mips64-* | mips64el-* \
- | mips64vr-* | mips64vrel-* \
- | mips64orion-* | mips64orionel-* \
- | mips64vr4100-* | mips64vr4100el-* \
- | mips64vr4300-* | mips64vr4300el-* \
- | mips64vr5000-* | mips64vr5000el-* \
- | mips64vr5900-* | mips64vr5900el-* \
- | mipsisa32-* | mipsisa32el-* \
- | mipsisa32r2-* | mipsisa32r2el-* \
- | mipsisa64-* | mipsisa64el-* \
- | mipsisa64r2-* | mipsisa64r2el-* \
- | mipsisa64sb1-* | mipsisa64sb1el-* \
- | mipsisa64sr71k-* | mipsisa64sr71kel-* \
- | mipstx39-* | mipstx39el-* \
- | mmix-* \
- | mt-* \
- | msp430-* \
- | nios-* | nios2-* \
- | none-* | np1-* | ns16k-* | ns32k-* \
- | orion-* \
- | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
- | pyramid-* \
- | romp-* | rs6000-* \
- | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
- | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
- | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
- | sparclite-* \
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
- | tahoe-* | thumb-* \
- | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
- | tron-* \
- | v850-* | v850e-* | vax-* \
- | we32k-* \
- | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
- | xstormy16-* | xtensa-* \
- | ymp-* \
- | z8k-*)
- ;;
- # Recognize the various machine names and aliases which stand
- # for a CPU type and a company and sometimes even an OS.
- 386bsd)
- basic_machine=i386-unknown
- os=-bsd
- ;;
- 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
- basic_machine=m68000-att
- ;;
- 3b*)
- basic_machine=we32k-att
- ;;
- a29khif)
- basic_machine=a29k-amd
- os=-udi
- ;;
- abacus)
- basic_machine=abacus-unknown
- ;;
- adobe68k)
- basic_machine=m68010-adobe
- os=-scout
- ;;
- alliant | fx80)
- basic_machine=fx80-alliant
- ;;
- altos | altos3068)
- basic_machine=m68k-altos
- ;;
- am29k)
- basic_machine=a29k-none
- os=-bsd
- ;;
- amd64)
- basic_machine=x86_64-pc
- ;;
- amd64-*)
- basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- amdahl)
- basic_machine=580-amdahl
- os=-sysv
- ;;
- amiga | amiga-*)
- basic_machine=m68k-unknown
- ;;
- 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
- ;;
- aux)
- basic_machine=m68k-apple
- os=-aux
- ;;
- balance)
- basic_machine=ns32k-sequent
- os=-dynix
- ;;
- c90)
- basic_machine=c90-cray
- os=-unicos
- ;;
- 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 | j90)
- basic_machine=j90-cray
- os=-unicos
- ;;
- craynv)
- basic_machine=craynv-cray
- os=-unicosmp
- ;;
- cr16c)
- basic_machine=cr16c-unknown
- os=-elf
- ;;
- crds | unos)
- basic_machine=m68k-crds
- ;;
- crisv32 | crisv32-* | etraxfs*)
- basic_machine=crisv32-axis
- ;;
- cris | cris-* | etrax*)
- basic_machine=cris-axis
- ;;
- crx)
- basic_machine=crx-unknown
- os=-elf
- ;;
- da30 | da30-*)
- basic_machine=m68k-da30
- ;;
- decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
- basic_machine=mips-dec
- ;;
- decsystem10* | dec10*)
- basic_machine=pdp10-dec
- os=-tops10
- ;;
- decsystem20* | dec20*)
- basic_machine=pdp10-dec
- os=-tops20
- ;;
- delta | 3300 | motorola-3300 | motorola-delta \
- | 3300-motorola | delta-motorola)
- basic_machine=m68k-motorola
- ;;
- delta88)
- basic_machine=m88k-motorola
- os=-sysv3
- ;;
- djgpp)
- basic_machine=i586-pc
- os=-msdosdjgpp
- ;;
- dpx20 | dpx20-*)
- basic_machine=rs6000-bull
- os=-bosx
- ;;
- dpx2* | dpx2*-bull)
- basic_machine=m68k-bull
- os=-sysv3
- ;;
- ebmon29k)
- basic_machine=a29k-amd
- os=-ebmon
- ;;
- elxsi)
- basic_machine=elxsi-elxsi
- os=-bsd
- ;;
- encore | umax | mmax)
- basic_machine=ns32k-encore
- ;;
- es1800 | OSE68k | ose68k | ose | OSE)
- basic_machine=m68k-ericsson
- os=-ose
- ;;
- fx2800)
- basic_machine=i860-alliant
- ;;
- genix)
- basic_machine=ns32k-ns
- ;;
- gmicro)
- basic_machine=tron-gmicro
- os=-sysv
- ;;
- go32)
- basic_machine=i386-pc
- os=-go32
- ;;
- h3050r* | hiux*)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- ;;
- 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
- ;;
- hp3k9[0-9][0-9] | hp9[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hp9k2[0-9][0-9] | hp9k31[0-9])
- basic_machine=m68000-hp
- ;;
- hp9k3[2-9][0-9])
- basic_machine=m68k-hp
- ;;
- hp9k6[0-9][0-9] | hp6[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hp9k7[0-79][0-9] | hp7[0-79][0-9])
- basic_machine=hppa1.1-hp
- ;;
- hp9k78[0-9] | hp78[0-9])
- # FIXME: really hppa2.0-hp
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
- # FIXME: really hppa2.0-hp
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[0-9][13679] | hp8[0-9][13679])
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[0-9][0-9] | hp8[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hppa-next)
- os=-nextstep3
- ;;
- hppaosf)
- basic_machine=hppa1.1-hp
- os=-osf
- ;;
- hppro)
- basic_machine=hppa1.1-hp
- os=-proelf
- ;;
- i370-ibm* | ibm*)
- basic_machine=i370-ibm
- ;;
-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
- i*86v32)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv32
- ;;
- i*86v4*)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv4
- ;;
- i*86v)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv
- ;;
- i*86sol2)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-solaris2
- ;;
- i386mach)
- basic_machine=i386-mach
- os=-mach
- ;;
- i386-vsta | vsta)
- basic_machine=i386-unknown
- os=-vsta
- ;;
- iris | iris4d)
- basic_machine=mips-sgi
- case $os in
- -irix*)
- ;;
- *)
- os=-irix4
- ;;
- esac
- ;;
- isi68 | isi)
- basic_machine=m68k-isi
- os=-sysv
- ;;
- m88k-omron*)
- basic_machine=m88k-omron
- ;;
- magnum | m3230)
- basic_machine=mips-mips
- os=-sysv
- ;;
- merlin)
- basic_machine=ns32k-utek
- os=-sysv
- ;;
- mingw32)
- basic_machine=i386-pc
- os=-mingw32
- ;;
- miniframe)
- basic_machine=m68000-convergent
- ;;
- *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
- basic_machine=m68k-atari
- os=-mint
- ;;
- mips3*-*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
- ;;
- mips3*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
- ;;
- monitor)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- morphos)
- basic_machine=powerpc-unknown
- os=-morphos
- ;;
- msdos)
- basic_machine=i386-pc
- os=-msdos
- ;;
- ms1-*)
- basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
- ;;
- mvs)
- basic_machine=i370-ibm
- os=-mvs
- ;;
- ncr3000)
- basic_machine=i486-ncr
- os=-sysv4
- ;;
- netbsd386)
- basic_machine=i386-unknown
- 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
- ;;
- news-3600 | risc-news)
- basic_machine=mips-sony
- os=-newsos
- ;;
- necv70)
- basic_machine=v70-nec
- os=-sysv
- ;;
- next | m*-next )
- basic_machine=m68k-next
- case $os in
- -nextstep* )
- ;;
- -ns2*)
- os=-nextstep2
- ;;
- *)
- os=-nextstep3
- ;;
- esac
- ;;
- 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
- ;;
- np1)
- basic_machine=np1-gould
- ;;
- nsr-tandem)
- basic_machine=nsr-tandem
- ;;
- op50n-* | op60c-*)
- basic_machine=hppa1.1-oki
- os=-proelf
- ;;
- openrisc | openrisc-*)
- basic_machine=or32-unknown
- ;;
- os400)
- basic_machine=powerpc-ibm
- os=-os400
- ;;
- OSE68000 | ose68000)
- basic_machine=m68000-ericsson
- os=-ose
- ;;
- os68k)
- basic_machine=m68k-none
- os=-os68k
- ;;
- pa-hitachi)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- ;;
- paragon)
- basic_machine=i860-intel
- os=-osf
- ;;
- pbd)
- basic_machine=sparc-tti
- ;;
- pbb)
- basic_machine=m68k-tti
- ;;
- pc532 | pc532-*)
- basic_machine=ns32k-pc532
- ;;
- pc98)
- basic_machine=i386-pc
- ;;
- pc98-*)
- basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentium | p5 | k5 | k6 | nexgen | viac3)
- basic_machine=i586-pc
- ;;
- pentiumpro | p6 | 6x86 | athlon | athlon_*)
- basic_machine=i686-pc
- ;;
- pentiumii | pentium2 | pentiumiii | pentium3)
- basic_machine=i686-pc
- ;;
- pentium4)
- basic_machine=i786-pc
- ;;
- pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
- basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumpro-* | p6-* | 6x86-* | athlon-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentium4-*)
- basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pn)
- basic_machine=pn-gould
- ;;
- power) basic_machine=power-ibm
- ;;
- ppc) basic_machine=powerpc-unknown
- ;;
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppcle | powerpclittle | ppc-le | powerpc-little)
- basic_machine=powerpcle-unknown
- ;;
- ppcle-* | powerpclittle-*)
- basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppc64) basic_machine=powerpc64-unknown
- ;;
- ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppc64le | powerpc64little | ppc64-le | powerpc64-little)
- basic_machine=powerpc64le-unknown
- ;;
- ppc64le-* | powerpc64little-*)
- basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ps2)
- basic_machine=i386-ibm
- ;;
- pw32)
- basic_machine=i586-unknown
- os=-pw32
- ;;
- rdos)
- basic_machine=i386-pc
- os=-rdos
- ;;
- rom68k)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- rm[46]00)
- basic_machine=mips-siemens
- ;;
- rtpc | rtpc-*)
- basic_machine=romp-ibm
- ;;
- s390 | s390-*)
- basic_machine=s390-ibm
- ;;
- s390x | s390x-*)
- basic_machine=s390x-ibm
- ;;
- sa29200)
- basic_machine=a29k-amd
- os=-udi
- ;;
- sb1)
- basic_machine=mipsisa64sb1-unknown
- ;;
- sb1el)
- basic_machine=mipsisa64sb1el-unknown
- ;;
- sde)
- basic_machine=mipsisa32-sde
- os=-elf
- ;;
- sei)
- basic_machine=mips-sei
- os=-seiux
- ;;
- sequent)
- basic_machine=i386-sequent
- ;;
- sh)
- basic_machine=sh-hitachi
- os=-hms
- ;;
- sh64)
- basic_machine=sh64-unknown
- ;;
- sparclite-wrs | simso-wrs)
- basic_machine=sparclite-wrs
- os=-vxworks
- ;;
- sps7)
- basic_machine=m68k-bull
- os=-sysv2
- ;;
- spur)
- basic_machine=spur-unknown
- ;;
- st2000)
- basic_machine=m68k-tandem
- ;;
- stratus)
- basic_machine=i860-stratus
- os=-sysv4
- ;;
- sun2)
- basic_machine=m68000-sun
- ;;
- sun2os3)
- basic_machine=m68000-sun
- os=-sunos3
- ;;
- sun2os4)
- basic_machine=m68000-sun
- os=-sunos4
- ;;
- sun3os3)
- basic_machine=m68k-sun
- os=-sunos3
- ;;
- sun3os4)
- basic_machine=m68k-sun
- os=-sunos4
- ;;
- sun4os3)
- basic_machine=sparc-sun
- os=-sunos3
- ;;
- sun4os4)
- basic_machine=sparc-sun
- os=-sunos4
- ;;
- sun4sol2)
- basic_machine=sparc-sun
- os=-solaris2
- ;;
- sun3 | sun3-*)
- basic_machine=m68k-sun
- ;;
- sun4)
- basic_machine=sparc-sun
- ;;
- sun386 | sun386i | roadrunner)
- basic_machine=i386-sun
- ;;
- 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
- ;;
- tic54x | c54x*)
- basic_machine=tic54x-unknown
- os=-coff
- ;;
- tic55x | c55x*)
- basic_machine=tic55x-unknown
- os=-coff
- ;;
- tic6x | c6x*)
- basic_machine=tic6x-unknown
- os=-coff
- ;;
- tx39)
- basic_machine=mipstx39-unknown
- ;;
- tx39el)
- basic_machine=mipstx39el-unknown
- ;;
- toad1)
- basic_machine=pdp10-xkl
- os=-tops20
- ;;
- tower | tower-32)
- basic_machine=m68k-ncr
- ;;
- 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
- ;;
- vpp*|vx|vx-*)
- basic_machine=f301-fujitsu
- ;;
- vxworks960)
- basic_machine=i960-wrs
- os=-vxworks
- ;;
- vxworks68)
- basic_machine=m68k-wrs
- os=-vxworks
- ;;
- vxworks29k)
- basic_machine=a29k-wrs
- os=-vxworks
- ;;
- w65*)
- basic_machine=w65-wdc
- os=-none
- ;;
- w89k-*)
- basic_machine=hppa1.1-winbond
- os=-proelf
- ;;
- xbox)
- basic_machine=i686-pc
- os=-mingw32
- ;;
- xps | xps100)
- basic_machine=xps100-honeywell
- ;;
- ymp)
- basic_machine=ymp-cray
- os=-unicos
- ;;
- z8k-*-coff)
- basic_machine=z8k-unknown
- os=-sim
- ;;
- none)
- basic_machine=none-none
- os=-none
- ;;
-
-# 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)
- basic_machine=hppa1.1-winbond
- ;;
- op50n)
- basic_machine=hppa1.1-oki
- ;;
- op60c)
- basic_machine=hppa1.1-oki
- ;;
- romp)
- basic_machine=romp-ibm
- ;;
- mmix)
- basic_machine=mmix-knuth
- ;;
- rs6000)
- basic_machine=rs6000-ibm
- ;;
- vax)
- basic_machine=vax-dec
- ;;
- pdp10)
- # there are many clones, so DEC is not a safe bet
- basic_machine=pdp10-unknown
- ;;
- pdp11)
- basic_machine=pdp11-dec
- ;;
- we32k)
- basic_machine=we32k-att
- ;;
- sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
- basic_machine=sh-unknown
- ;;
- sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
- basic_machine=sparc-sun
- ;;
- cydra)
- basic_machine=cydra-cydrome
- ;;
- orion)
- basic_machine=orion-highlevel
- ;;
- orion105)
- basic_machine=clipper-highlevel
- ;;
- mac | mpw | mac-mpw)
- basic_machine=m68k-apple
- ;;
- pmac | pmac-mpw)
- basic_machine=powerpc-apple
- ;;
- *-unknown)
- # Make sure to match an already-canonicalized machine name.
- ;;
- *)
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
- exit 1
- ;;
-esac
-
-# Here we canonicalize certain aliases for manufacturers.
-case $basic_machine in
- *-digital*)
- basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
- ;;
- *-commodore*)
- basic_machine=`echo $basic_machine | sed 's/commodore.*/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.
- -solaris1 | -solaris1.*)
- os=`echo $os | sed -e 's|solaris1|sunos4|'`
- ;;
- -solaris)
- os=-solaris2
- ;;
- -svr4*)
- os=-sysv4
- ;;
- -unixware*)
- os=-sysv4.2uw
- ;;
- -gnu/linux*)
- os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
- ;;
- # First 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* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
- | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
- | -aos* \
- | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
- | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
- | -openbsd* | -solidbsd* \
- | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
- | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
- | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
- | -chorusos* | -chorusrdb* \
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
- | -uxpv* | -beos* | -mpeix* | -udk* \
- | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
- | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
- | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
- | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
- | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
- | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos* | -toppers*)
- # Remember, each alternative MUST END IN *, to match a version number.
- ;;
- -qnx*)
- case $basic_machine in
- x86-* | i*86-*)
- ;;
- *)
- os=-nto$os
- ;;
- esac
- ;;
- -nto-qnx*)
- ;;
- -nto*)
- os=`echo $os | sed -e 's|nto|nto-qnx|'`
- ;;
- -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
- | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
- | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
- ;;
- -mac*)
- os=`echo $os | sed -e 's|mac|macos|'`
- ;;
- -linux-dietlibc)
- os=-linux-dietlibc
- ;;
- -linux*)
- os=`echo $os | sed -e 's|linux|linux-gnu|'`
- ;;
- -sunos5*)
- os=`echo $os | sed -e 's|sunos5|solaris2|'`
- ;;
- -sunos6*)
- os=`echo $os | sed -e 's|sunos6|solaris3|'`
- ;;
- -opened*)
- os=-openedition
- ;;
- -os400*)
- os=-os400
- ;;
- -wince*)
- os=-wince
- ;;
- -osfrose*)
- os=-osfrose
- ;;
- -osf*)
- os=-osf
- ;;
- -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
- ;;
- -es1800*)
- os=-ose
- ;;
- -xenix)
- os=-xenix
- ;;
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- os=-mint
- ;;
- -aros*)
- os=-aros
- ;;
- -kaos*)
- os=-kaos
- ;;
- -zvmoe)
- os=-zvmoe
- ;;
- -none)
- ;;
- *)
- # Get rid of the `-' at the beginning of $os.
- os=`echo $os | sed 's/[^-]*-//'`
- 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 $basic_machine in
- score-*)
- os=-elf
- ;;
- spu-*)
- os=-elf
- ;;
- *-acorn)
- os=-riscix1.2
- ;;
- arm*-rebel)
- os=-linux
- ;;
- arm*-semi)
- os=-aout
- ;;
- c4x-* | tic4x-*)
- 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
- # This also exists in the configure program, but was not the
- # default.
- # os=-sunos4
- ;;
- m68*-cisco)
- os=-aout
- ;;
- 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
- ;;
- *-be)
- os=-beos
- ;;
- *-haiku)
- os=-haiku
- ;;
- *-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
- ;;
- *-next)
- os=-nextstep3
- ;;
- *-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
- ;;
- *)
- 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.
-vendor=unknown
-case $basic_machine in
- *-unknown)
- case $os in
- -riscix*)
- vendor=acorn
- ;;
- -sunos*)
- vendor=sun
- ;;
- -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
- ;;
- -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
- basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
- ;;
-esac
-
-echo $basic_machine$os
-exit
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
+++ /dev/null
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for util-vserver 0.30.214.
-#
-# Report bugs to <vserver@list.linux-vserver.org>.
-#
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005, 2006 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=:
- # Zsh 3.x and 4.x performs 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
-
-
-
-
-# PATH needs CR
-# 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
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
-fi
-
-# Support unset when possible.
-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
- as_unset=unset
-else
- as_unset=false
-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.)
-as_nl='
-'
-IFS=" "" $as_nl"
-
-# Find who we are. Look in the path if we contain no directory separator.
-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
- echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- { (exit 1); exit 1; }
-fi
-
-# Work around bugs in pre-3.0 UWIN ksh.
-for as_var in ENV MAIL MAILPATH
-do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-for as_var in \
- LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
- LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
- LC_TELEPHONE LC_TIME
-do
- if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
- eval $as_var=C; export $as_var
- else
- ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
- fi
-done
-
-# Required to use basename.
-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
-
-
-# Name of the executable.
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
-
-# CDPATH.
-$as_unset CDPATH
-
-
-if test "x$CONFIG_SHELL" = x; then
- if (eval ":") 2>/dev/null; then
- as_have_required=yes
-else
- as_have_required=no
-fi
-
- if test $as_have_required = yes && (eval ":
-(as_func_return () {
- (exit \$1)
-}
-as_func_success () {
- as_func_return 0
-}
-as_func_failure () {
- as_func_return 1
-}
-as_func_ret_success () {
- return 0
-}
-as_func_ret_failure () {
- return 1
-}
-
-exitcode=0
-if as_func_success; then
- :
-else
- exitcode=1
- echo as_func_success failed.
-fi
-
-if as_func_failure; then
- exitcode=1
- echo as_func_failure succeeded.
-fi
-
-if as_func_ret_success; then
- :
-else
- exitcode=1
- echo as_func_ret_success failed.
-fi
-
-if as_func_ret_failure; then
- exitcode=1
- echo as_func_ret_failure succeeded.
-fi
-
-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
- :
-else
- exitcode=1
- echo positional parameters were not saved.
-fi
-
-test \$exitcode = 0) || { (exit 1); exit 1; }
-
-(
- as_lineno_1=\$LINENO
- as_lineno_2=\$LINENO
- test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
- test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
-") 2> /dev/null; then
- :
-else
- as_candidate_shells=
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- case $as_dir in
- /*)
- for as_base in sh bash ksh sh5; do
- as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
- done;;
- esac
-done
-IFS=$as_save_IFS
-
-
- for as_shell in $as_candidate_shells $SHELL; do
- # Try only shells that exist, to save several forks.
- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
- { ("$as_shell") 2> /dev/null <<\_ASEOF
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
- # Zsh 3.x and 4.x performs 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
-
-
-:
-_ASEOF
-}; then
- CONFIG_SHELL=$as_shell
- as_have_required=yes
- if { "$as_shell" 2> /dev/null <<\_ASEOF
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
- # Zsh 3.x and 4.x performs 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_func_return () {
- (exit $1)
-}
-as_func_success () {
- as_func_return 0
-}
-as_func_failure () {
- as_func_return 1
-}
-as_func_ret_success () {
- return 0
-}
-as_func_ret_failure () {
- return 1
-}
-
-exitcode=0
-if as_func_success; then
- :
-else
- exitcode=1
- echo as_func_success failed.
-fi
-
-if as_func_failure; then
- exitcode=1
- echo as_func_failure succeeded.
-fi
-
-if as_func_ret_success; then
- :
-else
- exitcode=1
- echo as_func_ret_success failed.
-fi
-
-if as_func_ret_failure; then
- exitcode=1
- echo as_func_ret_failure succeeded.
-fi
-
-if ( set x; as_func_ret_success y && test x = "$1" ); then
- :
-else
- exitcode=1
- echo positional parameters were not saved.
-fi
-
-test $exitcode = 0) || { (exit 1); exit 1; }
-
-(
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
-
-_ASEOF
-}; then
- break
-fi
-
-fi
-
- done
-
- if test "x$CONFIG_SHELL" != x; then
- for as_var in BASH_ENV ENV
- do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
- done
- export CONFIG_SHELL
- exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
-fi
-
-
- if test $as_have_required = no; then
- echo This script requires a shell more modern than all the
- echo shells that I found on your system. Please install a
- echo modern shell, or manually run the script under such a
- echo shell if you do have one.
- { (exit 1); exit 1; }
-fi
-
-
-fi
-
-fi
-
-
-
-(eval "as_func_return () {
- (exit \$1)
-}
-as_func_success () {
- as_func_return 0
-}
-as_func_failure () {
- as_func_return 1
-}
-as_func_ret_success () {
- return 0
-}
-as_func_ret_failure () {
- return 1
-}
-
-exitcode=0
-if as_func_success; then
- :
-else
- exitcode=1
- echo as_func_success failed.
-fi
-
-if as_func_failure; then
- exitcode=1
- echo as_func_failure succeeded.
-fi
-
-if as_func_ret_success; then
- :
-else
- exitcode=1
- echo as_func_ret_success failed.
-fi
-
-if as_func_ret_failure; then
- exitcode=1
- echo as_func_ret_failure succeeded.
-fi
-
-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
- :
-else
- exitcode=1
- echo positional parameters were not saved.
-fi
-
-test \$exitcode = 0") || {
- echo No shell found that supports shell functions.
- echo Please tell autoconf@gnu.org about your system,
- echo including any error possibly output before this
- echo message
-}
-
-
-
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
-
- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
- # uniformly replaced by the line number. The first 'sed' inserts a
- # line-number line after each line using $LINENO; the second 'sed'
- # does the real work. The second script uses 'N' to pair each
- # line-number line with the line containing $LINENO, and appends
- # trailing '-' during substitution so that $LINENO is not a special
- # case at line end.
- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
- # scripts with optimization help from Paolo Bonzini. 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" ||
- { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
- { (exit 1); exit 1; }; }
-
- # 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
-}
-
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
-else
- as_dirname=false
-fi
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in
--n*)
- case `echo 'x\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- *) ECHO_C='\c';;
- esac;;
-*)
- ECHO_N='-n';;
-esac
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-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
-fi
-echo >conf$$.file
-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 -p'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -p'
-elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
-else
- as_ln_s='cp -p'
-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=:
-else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
-fi
-
-if test -x / >/dev/null 2>&1; then
- as_test_x='test -x'
-else
- if ls -dL / >/dev/null 2>&1; then
- as_ls_L_option=L
- else
- as_ls_L_option=
- fi
- as_test_x='
- eval sh -c '\''
- if test -d "$1"; then
- test -d "$1/.";
- else
- case $1 in
- -*)set "./$1";;
- esac;
- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
- ???[sx]*):;;*)false;;esac;fi
- '\'' sh
- '
-fi
-as_executable_p=$as_test_x
-
-# 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'"
-
-
-
-
-# Check that we are running under the correct shell.
-SHELL=${CONFIG_SHELL-/bin/sh}
-
-case X$ECHO in
-X*--fallback-echo)
- # Remove one level of quotation (which was required for Make).
- ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
- ;;
-esac
-
-echo=${ECHO-echo}
-if test "X$1" = X--no-reexec; then
- # Discard the --no-reexec flag, and continue.
- shift
-elif test "X$1" = X--fallback-echo; then
- # Avoid inline document here, it may be left over
- :
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
- # Yippee, $echo works!
- :
-else
- # Restart under the correct shell.
- exec $SHELL "$0" --no-reexec ${1+"$@"}
-fi
-
-if test "X$1" = X--fallback-echo; then
- # used as fallback echo
- shift
- cat <<EOF
-$*
-EOF
- exit 0
-fi
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-if test -z "$ECHO"; then
-if test "X${echo_test_string+set}" != Xset; then
-# find a string as large as possible, as long as the shell can cope with it
- for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
- if (echo_test_string=`eval $cmd`) 2>/dev/null &&
- echo_test_string=`eval $cmd` &&
- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
- then
- break
- fi
- done
-fi
-
-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- :
-else
- # The Solaris, AIX, and Digital Unix default echo programs unquote
- # backslashes. This makes it impossible to quote backslashes using
- # echo "$something" | sed 's/\\/\\\\/g'
- #
- # So, first we look for a working echo in the user's PATH.
-
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for dir in $PATH /usr/ucb; do
- IFS="$lt_save_ifs"
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- echo="$dir/echo"
- break
- fi
- done
- IFS="$lt_save_ifs"
-
- if test "X$echo" = Xecho; then
- # We didn't find a better echo, so look for alternatives.
- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # This shell has a builtin print -r that does the trick.
- echo='print -r'
- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
- test "X$CONFIG_SHELL" != X/bin/ksh; then
- # If we have ksh, try running configure again with it.
- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
- export ORIGINAL_CONFIG_SHELL
- CONFIG_SHELL=/bin/ksh
- export CONFIG_SHELL
- exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
- else
- # Try using printf.
- echo='printf %s\n'
- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # Cool, printf works
- :
- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
- export CONFIG_SHELL
- SHELL="$CONFIG_SHELL"
- export SHELL
- echo="$CONFIG_SHELL $0 --fallback-echo"
- elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- echo="$CONFIG_SHELL $0 --fallback-echo"
- else
- # maybe with a smaller string...
- prev=:
-
- for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
- then
- break
- fi
- prev="$cmd"
- done
-
- if test "$prev" != 'sed 50q "$0"'; then
- echo_test_string=`eval $prev`
- export echo_test_string
- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
- else
- # Oops. We lost completely, so just stick with echo.
- echo=echo
- fi
- fi
- fi
- fi
-fi
-fi
-
-# Copy echo and quote the copy suitably for passing to libtool from
-# the Makefile, instead of quoting the original, which is used later.
-ECHO=$echo
-if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
- ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
-fi
-
-
-
-
-tagnames=${tagnames+${tagnames},}CXX
-
-tagnames=${tagnames+${tagnames},}F77
-
-exec 7<&0 </dev/null 6>&1
-
-# Name of the host.
-# hostname on some systems (SVR3.2, 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=
-SHELL=${CONFIG_SHELL-/bin/sh}
-
-# Identity of this package.
-PACKAGE_NAME='util-vserver'
-PACKAGE_TARNAME='util-vserver'
-PACKAGE_VERSION='0.30.214'
-PACKAGE_STRING='util-vserver 0.30.214'
-PACKAGE_BUGREPORT='vserver@list.linux-vserver.org'
-
-ac_unique_file="src/capchroot.c"
-# Factoring default headers for most tests.
-ac_includes_default="\
-#include <stdio.h>
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#ifdef HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-#else
-# ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-# endif
-#endif
-#ifdef HAVE_STRING_H
-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
-# include <memory.h>
-# endif
-# include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-# include <strings.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif"
-
-ac_subst_vars='SHELL
-PATH_SEPARATOR
-PACKAGE_NAME
-PACKAGE_TARNAME
-PACKAGE_VERSION
-PACKAGE_STRING
-PACKAGE_BUGREPORT
-exec_prefix
-prefix
-program_transform_name
-bindir
-sbindir
-libexecdir
-datarootdir
-datadir
-sysconfdir
-sharedstatedir
-localstatedir
-includedir
-oldincludedir
-docdir
-infodir
-htmldir
-dvidir
-pdfdir
-psdir
-libdir
-localedir
-mandir
-DEFS
-ECHO_C
-ECHO_N
-ECHO_T
-LIBS
-build_alias
-host_alias
-target_alias
-INSTALL_PROGRAM
-INSTALL_SCRIPT
-INSTALL_DATA
-am__isrc
-CYGPATH_W
-PACKAGE
-VERSION
-ACLOCAL
-AUTOCONF
-AUTOMAKE
-AUTOHEADER
-MAKEINFO
-install_sh
-STRIP
-INSTALL_STRIP_PROGRAM
-mkdir_p
-AWK
-SET_MAKE
-am__leading_dot
-AMTAR
-am__tar
-am__untar
-MAINTAINER_MODE_TRUE
-MAINTAINER_MODE_FALSE
-MAINT
-build
-build_cpu
-build_vendor
-build_os
-host
-host_cpu
-host_vendor
-host_os
-GPG_KEY
-CXX
-CXXFLAGS
-LDFLAGS
-CPPFLAGS
-ac_ct_CXX
-EXEEXT
-OBJEXT
-DEPDIR
-am__include
-am__quote
-AMDEP_TRUE
-AMDEP_FALSE
-AMDEPBACKSLASH
-CXXDEPMODE
-am__fastdepCXX_TRUE
-am__fastdepCXX_FALSE
-CC
-CFLAGS
-ac_ct_CC
-CCDEPMODE
-am__fastdepCC_TRUE
-am__fastdepCC_FALSE
-LN_S
-PYTHON
-PYTHON_VERSION
-PYTHON_PREFIX
-PYTHON_EXEC_PREFIX
-PYTHON_PLATFORM
-pythondir
-pkgpythondir
-pyexecdir
-pkgpyexecdir
-ENSC_HAVE_CXX_COMPILER_TRUE
-ENSC_HAVE_CXX_COMPILER_FALSE
-ENSC_HAVE_C99_COMPILER_TRUE
-ENSC_HAVE_C99_COMPILER_FALSE
-ENSC_PATHPROG_SED
-CAT
-CHOWN
-CMP
-CP
-DIRNAME
-EGREP
-ENV
-GREP
-LN
-MKDIR
-MKFIFO
-MKTEMP
-MOUNT
-MV
-NICE
-PS
-RM
-RMDIR
-SED
-SH
-TAC
-TAR
-TOUCH
-TTY
-UMOUNT
-WC
-IP
-IPTABLES
-MODPROBE
-NAMEIF
-NOHUP
-RMMOD
-VCONFIG
-WGET
-FILE
-GZIP
-BZIP2
-CPIO
-RESTORE
-RSYNC
-STRACE
-DOXYGEN
-XSLTP
-XSLTPROC
-HAVE_XSLTP_TRUE
-HAVE_XSLTP_FALSE
-HAVE_XSLTPROC_TRUE
-HAVE_XSLTPROC_FALSE
-LIB_DEBUG_CPPFLAGS
-ENSC_USE_EXPENSIVE_TESTS
-initrddir
-RELEASE_CPPFLAGS
-CPP
-DIET
-DIETFLAGS
-USE_DIETLIBC_TRUE
-USE_DIETLIBC_FALSE
-USE_DIETLIBC_COMPAT_TRUE
-USE_DIETLIBC_COMPAT_FALSE
-ENSC_USE_DIETLIBC_TRUE
-ENSC_USE_DIETLIBC_FALSE
-ENSC_USE_GLIBC_TRUE
-ENSC_USE_GLIBC_FALSE
-ECHO
-AR
-RANLIB
-CXXCPP
-F77
-FFLAGS
-ac_ct_F77
-LIBTOOL
-vserverdir
-SVN2CL
-HAVE_SVN2CL_TRUE
-HAVE_SVN2CL_FALSE
-ENSC_ENABLE_INTERNAL_HEADERS_TRUE
-ENSC_ENABLE_INTERNAL_HEADERS_FALSE
-ENSC_HAVE_BEECRYPT_TRUE
-ENSC_HAVE_BEECRYPT_FALSE
-ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE
-ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE
-ENSC_HAVE_LIBNL_TRUE
-ENSC_HAVE_LIBNL_FALSE
-PYTHON_INCLUDES
-HAVE_GENTOO_INIT_TRUE
-HAVE_GENTOO_INIT_FALSE
-HAVE_SYSV_INIT_TRUE
-HAVE_SYSV_INIT_FALSE
-LIBOBJS
-LTLIBOBJS'
-ac_subst_files=''
- ac_precious_vars='build_alias
-host_alias
-target_alias
-CXX
-CXXFLAGS
-LDFLAGS
-LIBS
-CPPFLAGS
-CCC
-CC
-CFLAGS
-CPP
-DIET
-DIETFLAGS
-CXXCPP
-F77
-FFLAGS'
-
-
-# Initialize some variables set by options.
-ac_init_help=
-ac_init_version=false
-# 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'
-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=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_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- { echo "$as_me: error: invalid feature name: $ac_feature" >&2
- { (exit 1); exit 1; }; }
- ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
- eval enable_$ac_feature=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_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- { echo "$as_me: error: invalid feature name: $ac_feature" >&2
- { (exit 1); exit 1; }; }
- ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
- eval enable_$ac_feature=\$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 ;;
-
- -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_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- { echo "$as_me: error: invalid package name: $ac_package" >&2
- { (exit 1); exit 1; }; }
- ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
- eval with_$ac_package=\$ac_optarg ;;
-
- -without-* | --without-*)
- ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- { echo "$as_me: error: invalid package name: $ac_package" >&2
- { (exit 1); exit 1; }; }
- ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
- eval with_$ac_package=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 ;;
-
- -*) { echo "$as_me: error: unrecognized option: $ac_option
-Try \`$0 --help' for more information." >&2
- { (exit 1); exit 1; }; }
- ;;
-
- *=*)
- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
- # Reject names that are not valid shell variable names.
- expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
- { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
- { (exit 1); exit 1; }; }
- eval $ac_envvar=\$ac_optarg
- export $ac_envvar ;;
-
- *)
- # FIXME: should be removed in autoconf 3.0.
- echo "$as_me: WARNING: you should use --build, --host, --target" >&2
- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- 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'`
- { echo "$as_me: error: missing argument to $ac_option" >&2
- { (exit 1); exit 1; }; }
-fi
-
-# Be sure to have absolute directory names.
-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
-do
- eval ac_val=\$$ac_var
- case $ac_val in
- [\\/$]* | ?:[\\/]* ) continue;;
- NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
- esac
- { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
- { (exit 1); exit 1; }; }
-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
- echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
- If a cross compiler is detected then cross compile mode will be used." >&2
- 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 .` ||
- { echo "$as_me: error: Working directory cannot be determined" >&2
- { (exit 1); exit 1; }; }
-test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
- { echo "$as_me: error: pwd does not report name of working directory" >&2
- { (exit 1); exit 1; }; }
-
-
-# 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 -- "$0" ||
-$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$0" : 'X\(//\)[^/]' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-echo X"$0" |
- 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 .."
- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
- { (exit 1); exit 1; }; }
-fi
-ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
-ac_abs_confdir=`(
- cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
- { (exit 1); exit 1; }; }
- 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 util-vserver 0.30.214 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]
- --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/util-vserver]
- --htmldir=DIR html documentation [DOCDIR]
- --dvidir=DIR dvi documentation [DOCDIR]
- --pdfdir=DIR pdf documentation [DOCDIR]
- --psdir=DIR ps documentation [DOCDIR]
-_ACEOF
-
- cat <<\_ACEOF
-
-Program names:
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM run sed PROGRAM on installed program names
-
-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 util-vserver 0.30.214:";;
- esac
- cat <<\_ACEOF
-
-Optional Features:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --enable-maintainer-mode enable make rules and dependencies not useful
- (and sometimes confusing) to the casual installer
- --disable-dependency-tracking speeds up one-time build
- --enable-dependency-tracking do not reject slow dependency extractors
- --disable-extra-optimizations
- disable certain extra optimizations (default: no)
- --enable-lib-debug enable additional debug code in library (default:
- no)
- --enable-expensive-tests
- disable tests which might be expensive on some
- systems (default: no)
- --enable-release enable release mode (default: no)
- --disable-alternative-syscalls
- do not use the alternative _syscallX macros provided
- by Herbert Poetzl (default: use them)
- --disable-dietlibc do not use dietlibc resp. enforce its usage (with
- --enable-dietlibc) (default: autodetect dietlibc)
- --enable-shared[=PKGS] build shared libraries [default=yes]
- --enable-static[=PKGS] build static libraries [default=yes]
- --enable-fast-install[=PKGS]
- optimize for fast installation [default=yes]
- --disable-libtool-lock avoid locking (might break parallel builds)
- --disable-internal-headers
- use vserver specific headers from the kernel instead
- of the shipped versions (default: no)
- --enable-apis=APIS enable support for the given apis; possible values
- are:
- legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2
- ALL,NOLEGACY (default: v13,net,v21,v22,v23,netv2)
-
-Optional Packages:
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-initrddir <DIR> use <DIR> as directory for SysV init-files (default:
- $sysconfdir/init.d)
- --with-syscall=METHOD call syscall(2) with the specified METHOD; valid
- values are 'fast', 'traditional' and 'auto'
- (default: auto)
- --with-gnu-ld assume the C compiler uses GNU ld [default=no]
- --with-pic try to use only PIC/non-PIC objects [default=use
- both]
- --with-tags[=TAGS] include additional configurations [automatic]
- --with-vrootdir=DIR place vservers under DIR (default: /vservers)
- --with-initscripts=TYPE force host initscripts; valid values are 'gentoo'
- and 'sysv' (default: guess)
-
-Some influential environment variables:
- CXX C++ compiler command
- CXXFLAGS C++ compiler flags
- LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
- nonstandard directory <lib dir>
- LIBS libraries to pass to the linker, e.g. -l<library>
- CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
- you have headers in a nonstandard directory <include dir>
- CC C compiler command
- CFLAGS C compiler flags
- CPP C preprocessor
- DIET The 'diet' wrapper (default: diet)
- DIETFLAGS Flags passed to the 'diet' wrapper (default: -O)
- CXXCPP C++ preprocessor
- F77 Fortran 77 compiler command
- FFLAGS Fortran 77 compiler flags
-
-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 <vserver@list.linux-vserver.org>.
-_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" || continue
- ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`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
- 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
-util-vserver configure 0.30.214
-generated by GNU Autoconf 2.61
-
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-2002, 2003, 2004, 2005, 2006 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
-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 util-vserver $as_me 0.30.214, which was
-generated by GNU Autoconf 2.61. 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=.
- 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=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
- esac
- case $ac_pass in
- 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
- 2)
- ac_configure_args1="$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
- ac_configure_args="$ac_configure_args '$ac_arg'"
- ;;
- esac
- done
-done
-$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
-$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export 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
-
- cat <<\_ASBOX
-## ---------------- ##
-## Cache variables. ##
-## ---------------- ##
-_ASBOX
- 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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
-echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
- esac
- case $ac_var in #(
- _ | IFS | as_nl) ;; #(
- *) $as_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
-
- cat <<\_ASBOX
-## ----------------- ##
-## Output variables. ##
-## ----------------- ##
-_ASBOX
- echo
- for ac_var in $ac_subst_vars
- do
- eval ac_val=\$$ac_var
- case $ac_val in
- *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
- esac
- echo "$ac_var='\''$ac_val'\''"
- done | sort
- echo
-
- if test -n "$ac_subst_files"; then
- cat <<\_ASBOX
-## ------------------- ##
-## File substitutions. ##
-## ------------------- ##
-_ASBOX
- echo
- for ac_var in $ac_subst_files
- do
- eval ac_val=\$$ac_var
- case $ac_val in
- *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
- esac
- echo "$ac_var='\''$ac_val'\''"
- done | sort
- echo
- fi
-
- if test -s confdefs.h; then
- cat <<\_ASBOX
-## ----------- ##
-## confdefs.h. ##
-## ----------- ##
-_ASBOX
- echo
- cat confdefs.h
- echo
- fi
- test "$ac_signal" != 0 &&
- echo "$as_me: caught signal $ac_signal"
- 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'; { (exit 1); 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
-
-# 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
-
-
-# Let the site file select an alternate cache file if it wants to.
-# Prefer explicitly selected file to automatically selected ones.
-if test -n "$CONFIG_SITE"; then
- set x "$CONFIG_SITE"
-elif test "x$prefix" != xNONE; then
- set x "$prefix/share/config.site" "$prefix/etc/config.site"
-else
- set x "$ac_default_prefix/share/config.site" \
- "$ac_default_prefix/etc/config.site"
-fi
-shift
-for ac_site_file
-do
- if test -r "$ac_site_file"; then
- { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
-echo "$as_me: loading site script $ac_site_file" >&6;}
- sed 's/^/| /' "$ac_site_file" >&5
- . "$ac_site_file"
- 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.
- if test -f "$cache_file"; then
- { echo "$as_me:$LINENO: loading cache $cache_file" >&5
-echo "$as_me: loading cache $cache_file" >&6;}
- case $cache_file in
- [\\/]* | ?:[\\/]* ) . "$cache_file";;
- *) . "./$cache_file";;
- esac
- fi
-else
- { echo "$as_me:$LINENO: creating cache $cache_file" >&5
-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,)
- { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
-echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,set)
- { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
-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
- { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
-echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
- { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
-echo "$as_me: former value: $ac_old_val" >&2;}
- { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
-echo "$as_me: current value: $ac_new_val" >&2;}
- ac_cache_corrupted=:
- fi;;
- esac
- # Pass precious variables to config.status.
- if test "$ac_new_set" = set; then
- case $ac_new_val in
- *\'*) ac_arg=$ac_var=`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.
- *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
- esac
- fi
-done
-if $ac_cache_corrupted; then
- { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
-echo "$as_me: error: changes in the environment can compromise the build" >&2;}
- { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
-echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
- { (exit 1); exit 1; }; }
-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
-
-
-
-ac_config_headers="$ac_config_headers config.h"
-
-
-am__api_version='1.10'
-
-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
- { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
-echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
- { (exit 1); exit 1; }; }
-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.
-
-
-# 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.
-{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
-echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
-if test -z "$INSTALL"; then
-if test "${ac_cv_path_install+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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
- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
- break 3
- fi
- fi
- done
- done
- ;;
-esac
-done
-IFS=$as_save_IFS
-
-
-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
-{ echo "$as_me:$LINENO: result: $INSTALL" >&5
-echo "${ECHO_T}$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'
-
-{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
-echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
-# Just in case
-sleep 1
-echo timestamp > conftest.file
-# Do `set' in a subshell so we don't clobber the current shell's
-# arguments. Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
- set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
- if test "$*" = "X"; then
- # -L didn't work.
- set X `ls -t $srcdir/configure conftest.file`
- fi
- rm -f conftest.file
- if test "$*" != "X $srcdir/configure conftest.file" \
- && test "$*" != "X conftest.file $srcdir/configure"; then
-
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
-alias in your environment" >&5
-echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
-alias in your environment" >&2;}
- { (exit 1); exit 1; }; }
- fi
-
- test "$2" = conftest.file
- )
-then
- # Ok.
- :
-else
- { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
-Check your system clock" >&5
-echo "$as_me: error: newly created file is older than distributed files!
-Check your system clock" >&2;}
- { (exit 1); exit 1; }; }
-fi
-{ echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-test "$program_prefix" != NONE &&
- program_transform_name="s&^&$program_prefix&;$program_transform_name"
-# Use a double $ so make ignores it.
-test "$program_suffix" != NONE &&
- program_transform_name="s&\$&$program_suffix&;$program_transform_name"
-# Double any \ or $. echo might interpret backslashes.
-# By default was `s,x,x', remove it if useless.
-cat <<\_ACEOF >conftest.sed
-s/[\\$]/&&/g;s/;s,x,x,$//
-_ACEOF
-program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
-rm -f conftest.sed
-
-# expand $ac_aux_dir to an absolute path
-am_aux_dir=`cd $ac_aux_dir && pwd`
-
-test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
-# Use eval to expand $SHELL
-if eval "$MISSING --run true"; then
- am_missing_run="$MISSING --run "
-else
- am_missing_run=
- { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
-echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
-fi
-
-{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
-echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
-if test -z "$MKDIR_P"; then
- if test "${ac_cv_path_mkdir+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in mkdir gmkdir; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
- case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
- 'mkdir (GNU coreutils) '* | \
- 'mkdir (coreutils) '* | \
- 'mkdir (fileutils) '4.1*)
- ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
- break 3;;
- esac
- done
- done
-done
-IFS=$as_save_IFS
-
-fi
-
- if test "${ac_cv_path_mkdir+set}" = set; then
- MKDIR_P="$ac_cv_path_mkdir -p"
- else
- # As a last resort, use the slow shell script. Don't cache a
- # value for MKDIR_P 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.
- test -d ./--version && rmdir ./--version
- MKDIR_P="$ac_install_sh -d"
- fi
-fi
-{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
-echo "${ECHO_T}$MKDIR_P" >&6; }
-
-mkdir_p="$MKDIR_P"
-case $mkdir_p in
- [\\/$]* | ?:[\\/]*) ;;
- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
-esac
-
-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
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_AWK+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_AWK="$ac_prog"
- echo "$as_me:$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
- { echo "$as_me:$LINENO: result: $AWK" >&5
-echo "${ECHO_T}$AWK" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$AWK" && break
-done
-
-{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
-echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
-set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
-if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&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
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- SET_MAKE=
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
- SET_MAKE="MAKE=${MAKE-make}"
-fi
-
-rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
- am__leading_dot=.
-else
- am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
- # is not polluted with repeated "-I."
- am__isrc=' -I$(srcdir)'
- # test to see if srcdir already configured
- if test -f $srcdir/config.status; then
- { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
-echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
- { (exit 1); exit 1; }; }
- fi
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
- if (cygpath --version) >/dev/null 2>/dev/null; then
- CYGPATH_W='cygpath -w'
- else
- CYGPATH_W=echo
- fi
-fi
-
-
-# Define the identity of the package.
- PACKAGE='util-vserver'
- VERSION='0.30.214'
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE "$PACKAGE"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define VERSION "$VERSION"
-_ACEOF
-
-# Some tools Automake needs.
-
-ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
-
-
-AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
-
-
-AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
-
-
-AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
-
-
-MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
-
-install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
-
-# Installed binaries are usually stripped using `strip' when the user
-# run `make install-strip'. However `strip' might not be the right
-# tool to use in cross-compilation environments, therefore Automake
-# will honor the `STRIP' environment variable to overrule this program.
-if test "$cross_compiling" != no; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
-set dummy ${ac_tool_prefix}strip; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_STRIP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$STRIP"; then
- ac_cv_prog_STRIP="$STRIP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-STRIP=$ac_cv_prog_STRIP
-if test -n "$STRIP"; then
- { echo "$as_me:$LINENO: result: $STRIP" >&5
-echo "${ECHO_T}$STRIP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_STRIP"; then
- ac_ct_STRIP=$STRIP
- # Extract the first word of "strip", so it can be a program name with args.
-set dummy strip; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$ac_ct_STRIP"; then
- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_STRIP="strip"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
-if test -n "$ac_ct_STRIP"; then
- { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
-echo "${ECHO_T}$ac_ct_STRIP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
- if test "x$ac_ct_STRIP" = x; then
- STRIP=":"
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-ac_tool_warned=yes ;;
-esac
- STRIP=$ac_ct_STRIP
- fi
-else
- STRIP="$ac_cv_prog_STRIP"
-fi
-
-fi
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
-
-# We need awk for the "check" target. The system "awk" is bad on
-# some platforms.
-# Always define AMTAR for backward compatibility.
-
-AMTAR=${AMTAR-"${am_missing_run}tar"}
-
-am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
-
-
-
-
-
-{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
-echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
- # Check whether --enable-maintainer-mode was given.
-if test "${enable_maintainer_mode+set}" = set; then
- enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
-else
- USE_MAINTAINER_MODE=no
-fi
-
- { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
-echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
- if test $USE_MAINTAINER_MODE = yes; then
- MAINTAINER_MODE_TRUE=
- MAINTAINER_MODE_FALSE='#'
-else
- MAINTAINER_MODE_TRUE='#'
- MAINTAINER_MODE_FALSE=
-fi
-
- MAINT=$MAINTAINER_MODE_TRUE
-
-
-
-# Make sure we can run config.sub.
-$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
- { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
-echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
- { (exit 1); exit 1; }; }
-
-{ echo "$as_me:$LINENO: checking build system type" >&5
-echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
-if test "${ac_cv_build+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 &&
- { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
-echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
- { (exit 1); exit 1; }; }
-ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
- { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
-echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
- { (exit 1); exit 1; }; }
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
-echo "${ECHO_T}$ac_cv_build" >&6; }
-case $ac_cv_build in
-*-*-*) ;;
-*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
-echo "$as_me: error: invalid value of canonical build" >&2;}
- { (exit 1); exit 1; }; };;
-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
-
-
-{ echo "$as_me:$LINENO: checking host system type" >&5
-echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
-if test "${ac_cv_host+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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` ||
- { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
-echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
-echo "${ECHO_T}$ac_cv_host" >&6; }
-case $ac_cv_host in
-*-*-*) ;;
-*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
-echo "$as_me: error: invalid value of canonical host" >&2;}
- { (exit 1); exit 1; }; };;
-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
-
-
-
-GPG_KEY="0xFFD316AC53ACA43A!"
-
-
-# Checks for programs.
-ac_ext=cpp
-ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-if test -z "$CXX"; then
- if test -n "$CCC"; then
- CXX=$CCC
- else
- if test -n "$ac_tool_prefix"; then
- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
- 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
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_CXX+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$CXX"; then
- ac_cv_prog_CXX="$CXX" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-CXX=$ac_cv_prog_CXX
-if test -n "$CXX"; then
- { echo "$as_me:$LINENO: result: $CXX" >&5
-echo "${ECHO_T}$CXX" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$CXX" && break
- done
-fi
-if test -z "$CXX"; then
- ac_ct_CXX=$CXX
- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$ac_ct_CXX"; then
- ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CXX="$ac_prog"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
-if test -n "$ac_ct_CXX"; then
- { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
-echo "${ECHO_T}$ac_ct_CXX" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$ac_ct_CXX" && break
-done
-
- if test "x$ac_ct_CXX" = x; then
- CXX="g++"
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-ac_tool_warned=yes ;;
-esac
- CXX=$ac_ct_CXX
- fi
-fi
-
- fi
-fi
-# Provide some information about the compiler.
-echo "$as_me:$LINENO: checking for C++ compiler version" >&5
-ac_compiler=`set X $ac_compile; echo $2`
-{ (ac_try="$ac_compiler --version >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compiler --version >&5") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-{ (ac_try="$ac_compiler -v >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compiler -v >&5") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-{ (ac_try="$ac_compiler -V >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compiler -V >&5") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files a.out 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.
-{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
-echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
-ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
-#
-# List of possible output files, starting from the most likely.
-# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
-# only as a last resort. b.out is created by i960 compilers.
-ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
-#
-# The IRIX 6 linker writes into existing files which may not be
-# executable, retaining their permissions. Remove them first so a
-# subsequent execution test works.
-ac_rmfiles=
-for ac_file in $ac_files
-do
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link_default") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; 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 | *.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
-
-{ echo "$as_me:$LINENO: result: $ac_file" >&5
-echo "${ECHO_T}$ac_file" >&6; }
-if test -z "$ac_file"; then
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
-See \`config.log' for more details." >&5
-echo "$as_me: error: C++ compiler cannot create executables
-See \`config.log' for more details." >&2;}
- { (exit 77); exit 77; }; }
-fi
-
-ac_exeext=$ac_cv_exeext
-
-# Check that the compiler produces executables we can run. If not, either
-# the compiler is broken, or we cross compile.
-{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
-echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
-# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
-# If not cross compiling, check that we can run a simple program.
-if test "$cross_compiling" != yes; then
- if { ac_try='./$ac_file'
- { (case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cross_compiling=no
- else
- if test "$cross_compiling" = maybe; then
- cross_compiling=yes
- else
- { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
-If you meant to cross compile, use \`--host'.
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run C++ compiled programs.
-If you meant to cross compile, use \`--host'.
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-fi
-{ echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-
-rm -f a.out a.exe conftest$ac_cv_exeext b.out
-ac_clean_files=$ac_clean_files_save
-# Check that the compiler produces executables we can run. If not, either
-# the compiler is broken, or we cross compile.
-{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
-echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
-{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
-echo "${ECHO_T}$cross_compiling" >&6; }
-
-{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
-echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
-if { (ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; 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 | *.o | *.obj ) ;;
- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- break;;
- * ) break;;
- esac
-done
-else
- { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-rm -f conftest$ac_cv_exeext
-{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
-echo "${ECHO_T}$ac_cv_exeext" >&6; }
-
-rm -f conftest.$ac_ext
-EXEEXT=$ac_cv_exeext
-ac_exeext=$EXEEXT
-{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
-echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
-if test "${ac_cv_objext+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; 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 ) ;;
- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
- break;;
- esac
-done
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute suffix of object files: cannot compile
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-rm -f conftest.$ac_cv_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
-echo "${ECHO_T}$ac_cv_objext" >&6; }
-OBJEXT=$ac_cv_objext
-ac_objext=$OBJEXT
-{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
-echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
-if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-#ifndef __GNUC__
- choke me
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_compiler_gnu=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_compiler_gnu=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
-echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
-GXX=`test $ac_compiler_gnu = yes && echo yes`
-ac_test_CXXFLAGS=${CXXFLAGS+set}
-ac_save_CXXFLAGS=$CXXFLAGS
-{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
-echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
-if test "${ac_cv_prog_cxx_g+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_save_cxx_werror_flag=$ac_cxx_werror_flag
- ac_cxx_werror_flag=yes
- ac_cv_prog_cxx_g=no
- CXXFLAGS="-g"
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_prog_cxx_g=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- CXXFLAGS=""
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cxx_werror_flag=$ac_save_cxx_werror_flag
- CXXFLAGS="-g"
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_prog_cxx_g=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-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_cxx_werror_flag=$ac_save_cxx_werror_flag
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
-echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
-if test "$ac_test_CXXFLAGS" = set; then
- CXXFLAGS=$ac_save_CXXFLAGS
-elif test $ac_cv_prog_cxx_g = yes; then
- if test "$GXX" = yes; then
- CXXFLAGS="-g -O2"
- else
- CXXFLAGS="-g"
- fi
-else
- if test "$GXX" = yes; then
- CXXFLAGS="-O2"
- else
- CXXFLAGS=
- fi
-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
-DEPDIR="${am__leading_dot}deps"
-
-ac_config_commands="$ac_config_commands depfiles"
-
-
-am_make=${MAKE-make}
-cat > confinc << 'END'
-am__doit:
- @echo done
-.PHONY: am__doit
-END
-# If we don't find an include directive, just comment out the code.
-{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
-echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
-am__include="#"
-am__quote=
-_am_result=none
-# First try GNU make style include.
-echo "include confinc" > confmf
-# We grep out `Entering directory' and `Leaving directory'
-# messages which can occur if `w' ends up in MAKEFLAGS.
-# In particular we don't look at `^make:' because GNU make might
-# be invoked under some other name (usually "gmake"), in which
-# case it prints its new name instead of `make'.
-if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
- am__include=include
- am__quote=
- _am_result=GNU
-fi
-# Now try BSD make style include.
-if test "$am__include" = "#"; then
- echo '.include "confinc"' > confmf
- if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
- am__include=.include
- am__quote="\""
- _am_result=BSD
- fi
-fi
-
-
-{ echo "$as_me:$LINENO: result: $_am_result" >&5
-echo "${ECHO_T}$_am_result" >&6; }
-rm -f confinc confmf
-
-# Check whether --enable-dependency-tracking was given.
-if test "${enable_dependency_tracking+set}" = set; then
- enableval=$enable_dependency_tracking;
-fi
-
-if test "x$enable_dependency_tracking" != xno; then
- am_depcomp="$ac_aux_dir/depcomp"
- AMDEPBACKSLASH='\'
-fi
- if test "x$enable_dependency_tracking" != xno; then
- AMDEP_TRUE=
- AMDEP_FALSE='#'
-else
- AMDEP_TRUE='#'
- AMDEP_FALSE=
-fi
-
-
-
-depcc="$CXX" am_compiler_list=
-
-{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
-echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
-if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
- # We make a subdir and do the tests there. Otherwise we can end up
- # making bogus files that we don't know about and never remove. For
- # instance it was reported that on HP-UX the gcc test will end up
- # making a dummy file named `D' -- because `-MD' means `put the output
- # in D'.
- mkdir conftest.dir
- # Copy depcomp to subdir because otherwise we won't find it if we're
- # using a relative directory.
- cp "$am_depcomp" conftest.dir
- cd conftest.dir
- # We will build objects and dependencies in a subdirectory because
- # it helps to detect inapplicable dependency modes. For instance
- # both Tru64's cc and ICC support -MD to output dependencies as a
- # side effect of compilation, but ICC will put the dependencies in
- # the current directory while Tru64 will put them in the object
- # directory.
- mkdir sub
-
- am_cv_CXX_dependencies_compiler_type=none
- if test "$am_compiler_list" = ""; then
- am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
- fi
- for depmode in $am_compiler_list; do
- # Setup a source with many dependencies, because some compilers
- # like to wrap large dependency lists on column 80 (with \), and
- # we should not choose a depcomp mode which is confused by this.
- #
- # We need to recreate these files for each test, as the compiler may
- # overwrite some of them when testing with obscure command lines.
- # This happens at least with the AIX C compiler.
- : > sub/conftest.c
- for i in 1 2 3 4 5 6; do
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
- # Solaris 8's {/usr,}/bin/sh.
- touch sub/conftst$i.h
- done
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
- case $depmode in
- nosideeffect)
- # after this tag, mechanisms are not by side-effect, so they'll
- # only be used when explicitly requested
- if test "x$enable_dependency_tracking" = xyes; then
- continue
- else
- break
- fi
- ;;
- none) break ;;
- esac
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
- # mode. It turns out that the SunPro C++ compiler does not properly
- # handle `-M -o', and we need to detect this.
- if depmode=$depmode \
- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
- >/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- # icc doesn't choke on unknown options, it will just issue warnings
- # or remarks (even with -Werror). So we grep stderr for any message
- # that says an option was ignored or not supported.
- # When given -MP, icc 7.0 and 7.1 complain thusly:
- # icc: Command line warning: ignoring option '-M'; no argument required
- # The diagnosis changed in icc 8.0:
- # icc: Command line remark: option '-MP' not supported
- if (grep 'ignoring option' conftest.err ||
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
- am_cv_CXX_dependencies_compiler_type=$depmode
- break
- fi
- fi
- done
-
- cd ..
- rm -rf conftest.dir
-else
- am_cv_CXX_dependencies_compiler_type=none
-fi
-
-fi
-{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
-echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
-CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
-
- if
- test "x$enable_dependency_tracking" != xno \
- && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
- am__fastdepCXX_TRUE=
- am__fastdepCXX_FALSE='#'
-else
- am__fastdepCXX_TRUE='#'
- am__fastdepCXX_FALSE=
-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
-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
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="${ac_tool_prefix}gcc"
- echo "$as_me:$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
- { echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}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
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CC="gcc"
- echo "$as_me:$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
- { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
-echo "${ECHO_T}$ac_ct_CC" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&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
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="${ac_tool_prefix}cc"
- echo "$as_me:$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
- { echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}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
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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"
- echo "$as_me:$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
- { echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}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
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- echo "$as_me:$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
- { echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}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
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- echo "$as_me:$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
- { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
-echo "${ECHO_T}$ac_ct_CC" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}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:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-ac_tool_warned=yes ;;
-esac
- CC=$ac_ct_CC
- fi
-fi
-
-fi
-
-
-test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
-See \`config.log' for more details." >&5
-echo "$as_me: error: no acceptable C compiler found in \$PATH
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-
-# Provide some information about the compiler.
-echo "$as_me:$LINENO: checking for C compiler version" >&5
-ac_compiler=`set X $ac_compile; echo $2`
-{ (ac_try="$ac_compiler --version >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compiler --version >&5") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-{ (ac_try="$ac_compiler -v >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compiler -v >&5") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-{ (ac_try="$ac_compiler -V >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compiler -V >&5") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-
-{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
-echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
-if test "${ac_cv_c_compiler_gnu+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-#ifndef __GNUC__
- choke me
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_compiler_gnu=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- 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
-{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
-echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
-GCC=`test $ac_compiler_gnu = yes && echo yes`
-ac_test_CFLAGS=${CFLAGS+set}
-ac_save_CFLAGS=$CFLAGS
-{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
-echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
-if test "${ac_cv_prog_cc_g+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_prog_cc_g=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- CFLAGS=""
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_c_werror_flag=$ac_save_c_werror_flag
- CFLAGS="-g"
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_prog_cc_g=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-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
-{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
-echo "${ECHO_T}$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
-{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
-echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
-if test "${ac_cv_prog_cc_c89+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_prog_cc_c89=no
-ac_save_CC=$CC
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdarg.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-/* 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"
- 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_prog_cc_c89=$ac_arg
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-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)
- { echo "$as_me:$LINENO: result: none needed" >&5
-echo "${ECHO_T}none needed" >&6; } ;;
- xno)
- { echo "$as_me:$LINENO: result: unsupported" >&5
-echo "${ECHO_T}unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c89"
- { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
-echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
-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
-
-depcc="$CC" am_compiler_list=
-
-{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
-echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
-if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
- # We make a subdir and do the tests there. Otherwise we can end up
- # making bogus files that we don't know about and never remove. For
- # instance it was reported that on HP-UX the gcc test will end up
- # making a dummy file named `D' -- because `-MD' means `put the output
- # in D'.
- mkdir conftest.dir
- # Copy depcomp to subdir because otherwise we won't find it if we're
- # using a relative directory.
- cp "$am_depcomp" conftest.dir
- cd conftest.dir
- # We will build objects and dependencies in a subdirectory because
- # it helps to detect inapplicable dependency modes. For instance
- # both Tru64's cc and ICC support -MD to output dependencies as a
- # side effect of compilation, but ICC will put the dependencies in
- # the current directory while Tru64 will put them in the object
- # directory.
- mkdir sub
-
- am_cv_CC_dependencies_compiler_type=none
- if test "$am_compiler_list" = ""; then
- am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
- fi
- for depmode in $am_compiler_list; do
- # Setup a source with many dependencies, because some compilers
- # like to wrap large dependency lists on column 80 (with \), and
- # we should not choose a depcomp mode which is confused by this.
- #
- # We need to recreate these files for each test, as the compiler may
- # overwrite some of them when testing with obscure command lines.
- # This happens at least with the AIX C compiler.
- : > sub/conftest.c
- for i in 1 2 3 4 5 6; do
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
- # Solaris 8's {/usr,}/bin/sh.
- touch sub/conftst$i.h
- done
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
- case $depmode in
- nosideeffect)
- # after this tag, mechanisms are not by side-effect, so they'll
- # only be used when explicitly requested
- if test "x$enable_dependency_tracking" = xyes; then
- continue
- else
- break
- fi
- ;;
- none) break ;;
- esac
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
- # mode. It turns out that the SunPro C++ compiler does not properly
- # handle `-M -o', and we need to detect this.
- if depmode=$depmode \
- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
- >/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- # icc doesn't choke on unknown options, it will just issue warnings
- # or remarks (even with -Werror). So we grep stderr for any message
- # that says an option was ignored or not supported.
- # When given -MP, icc 7.0 and 7.1 complain thusly:
- # icc: Command line warning: ignoring option '-M'; no argument required
- # The diagnosis changed in icc 8.0:
- # icc: Command line remark: option '-MP' not supported
- if (grep 'ignoring option' conftest.err ||
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
- am_cv_CC_dependencies_compiler_type=$depmode
- break
- fi
- fi
- done
-
- cd ..
- rm -rf conftest.dir
-else
- am_cv_CC_dependencies_compiler_type=none
-fi
-
-fi
-{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
-echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
-CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
-
- if
- test "x$enable_dependency_tracking" != xno \
- && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
- am__fastdepCC_TRUE=
- am__fastdepCC_FALSE='#'
-else
- am__fastdepCC_TRUE='#'
- am__fastdepCC_FALSE=
-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.
-{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
-echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
-if test -z "$INSTALL"; then
-if test "${ac_cv_path_install+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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
- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
- break 3
- fi
- fi
- done
- done
- ;;
-esac
-done
-IFS=$as_save_IFS
-
-
-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
-{ echo "$as_me:$LINENO: result: $INSTALL" >&5
-echo "${ECHO_T}$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'
-
-{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
-echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
-LN_S=$as_ln_s
-if test "$LN_S" = "ln -s"; then
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-else
- { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
-echo "${ECHO_T}no, using $LN_S" >&6; }
-fi
-
-if test "x$CC" != xcc; then
- { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
-echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
-else
- { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
-echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
-fi
-set dummy $CC; ac_cc=`echo $2 |
- sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
-if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-# Make sure it works both with $CC and with simple cc.
-# We do the test twice because some compilers refuse to overwrite an
-# existing .o file with -o, though they will create one.
-ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
-rm -f conftest2.*
-if { (case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- test -f conftest2.$ac_objext && { (case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); };
-then
- eval ac_cv_prog_cc_${ac_cc}_c_o=yes
- if test "x$CC" != xcc; then
- # Test first that cc exists at all.
- if { ac_try='cc -c conftest.$ac_ext >&5'
- { (case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
- rm -f conftest2.*
- if { (case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- test -f conftest2.$ac_objext && { (case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); };
- then
- # cc works too.
- :
- else
- # cc exists but doesn't like -o.
- eval ac_cv_prog_cc_${ac_cc}_c_o=no
- fi
- fi
- fi
-else
- eval ac_cv_prog_cc_${ac_cc}_c_o=no
-fi
-rm -f core conftest*
-
-fi
-if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-
-cat >>confdefs.h <<\_ACEOF
-#define NO_MINUS_C_MINUS_O 1
-_ACEOF
-
-fi
-
-# FIXME: we rely on the cache variable name because
-# there is no other way.
-set dummy $CC
-ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
-if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
- # Losing compiler, so override with the script.
- # FIXME: It is wrong to rewrite CC.
- # But if we don't then we get into trouble of one sort or another.
- # A longer-term fix would be to have automake use am__CC in this case,
- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
- CC="$am_aux_dir/compile $CC"
-fi
-
-
-
-
-
-
- if test -n "$PYTHON"; then
- # If the user set $PYTHON, use it and don't search something else.
- { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
-echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
- prog="import sys, string
-# split strings by '.' and convert to numeric. Append some zeros
-# because we need at least 4 digits for the hex conversion.
-minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
-minverhex = 0
-for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
-sys.exit(sys.hexversion < minverhex)"
- if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
- ($PYTHON -c "$prog") >&5 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-else
- { { echo "$as_me:$LINENO: error: too old" >&5
-echo "$as_me: error: too old" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
- am_display_PYTHON=$PYTHON
- else
- # Otherwise, try each interpreter until we find one that satisfies
- # VERSION.
- { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
-echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
-if test "${am_cv_pathless_PYTHON+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
- for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
- test "$am_cv_pathless_PYTHON" = none && break
- prog="import sys, string
-# split strings by '.' and convert to numeric. Append some zeros
-# because we need at least 4 digits for the hex conversion.
-minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
-minverhex = 0
-for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
-sys.exit(sys.hexversion < minverhex)"
- if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
- ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- break
-fi
-
- done
-fi
-{ echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
-echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
- # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
- if test "$am_cv_pathless_PYTHON" = none; then
- PYTHON=:
- else
- # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
-set dummy $am_cv_pathless_PYTHON; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_PYTHON+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$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
- { echo "$as_me:$LINENO: result: $PYTHON" >&5
-echo "${ECHO_T}$PYTHON" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- fi
- am_display_PYTHON=$am_cv_pathless_PYTHON
- fi
-
-
- if test "$PYTHON" = :; then
- { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
-echo "$as_me: error: no suitable Python interpreter found" >&2;}
- { (exit 1); exit 1; }; }
- else
-
-
- { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
-echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
-if test "${am_cv_python_version+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
-fi
-{ echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
-echo "${ECHO_T}$am_cv_python_version" >&6; }
- PYTHON_VERSION=$am_cv_python_version
-
-
-
- PYTHON_PREFIX='${prefix}'
-
- PYTHON_EXEC_PREFIX='${exec_prefix}'
-
-
-
- { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
-echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
-if test "${am_cv_python_platform+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
-fi
-{ echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
-echo "${ECHO_T}$am_cv_python_platform" >&6; }
- PYTHON_PLATFORM=$am_cv_python_platform
-
-
-
-
- { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
-echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
-if test "${am_cv_python_pythondir+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
- echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
-fi
-{ echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
-echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
- pythondir=$am_cv_python_pythondir
-
-
-
- pkgpythondir=\${pythondir}/$PACKAGE
-
-
- { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
-echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
-if test "${am_cv_python_pyexecdir+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
- echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
-fi
-{ echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
-echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
- pyexecdir=$am_cv_python_pyexecdir
-
-
-
- pkgpyexecdir=\${pyexecdir}/$PACKAGE
-
-
-
- fi
-
-
-
-
-
-
- { echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
-echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6; }
-if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
- ac_ext=cpp
-ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-
- cat >conftest.$ac_ext <<_ACEOF
-
- #include <ostream>
-
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ensc_cv_cxx_cxxcompiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ensc_cv_cxx_cxxcompiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- 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
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
-echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6; }
-
- if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
- ENSC_HAVE_CXX_COMPILER_TRUE=
- ENSC_HAVE_CXX_COMPILER_FALSE='#'
-else
- ENSC_HAVE_CXX_COMPILER_TRUE='#'
- ENSC_HAVE_CXX_COMPILER_FALSE=
-fi
-
-
- if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
- { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
-echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
- fi
-
-
-
-
-
- { echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
-echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6; }
-if test "${ensc_cv_c99_c99compiler+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
- 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
-
- cat >conftest.$ac_ext <<_ACEOF
-
-int main(int argc, char *argv) {
- struct { int x; } a = { .x = argc };
- if (0) return 0;
- int b;
-}
-
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ensc_cv_c99_c99compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ensc_cv_c99_c99compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- 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
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
-echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6; }
-
- if test x"$ensc_cv_c99_c99compiler" = xyes; then
- ENSC_HAVE_C99_COMPILER_TRUE=
- ENSC_HAVE_C99_COMPILER_FALSE='#'
-else
- ENSC_HAVE_C99_COMPILER_TRUE='#'
- ENSC_HAVE_C99_COMPILER_FALSE=
-fi
-
-
- if test x"$ensc_cv_c99_c99compiler" = xno; then
- { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
-echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
- fi
-
-
-
- ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
-
-
- ENSC_PATHPROG_SED=
-
-
-
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in 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
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_AWK+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-AWK=$ac_cv_path_AWK
-if test -n "$AWK"; then
- { echo "$as_me:$LINENO: result: $AWK" >&5
-echo "${ECHO_T}$AWK" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$AWK" && break
-done
-test -n "$AWK" || AWK="$ensc_dflt"
-
-
- if test -z "${AWK}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${AWK}"; then
- AWK=`readlink -f "${AWK}"`
- fi
-
- test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
-
- test "${AWK}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in cat
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_CAT+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $CAT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-CAT=$ac_cv_path_CAT
-if test -n "$CAT"; then
- { echo "$as_me:$LINENO: result: $CAT" >&5
-echo "${ECHO_T}$CAT" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$CAT" && break
-done
-test -n "$CAT" || CAT="$ensc_dflt"
-
-
- if test -z "${CAT}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${CAT}"; then
- CAT=`readlink -f "${CAT}"`
- fi
-
- test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
-
- test "${CAT}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in chown
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_CHOWN+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $CHOWN in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-CHOWN=$ac_cv_path_CHOWN
-if test -n "$CHOWN"; then
- { echo "$as_me:$LINENO: result: $CHOWN" >&5
-echo "${ECHO_T}$CHOWN" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$CHOWN" && break
-done
-test -n "$CHOWN" || CHOWN="$ensc_dflt"
-
-
- if test -z "${CHOWN}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${CHOWN}"; then
- CHOWN=`readlink -f "${CHOWN}"`
- fi
-
- test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
-
- test "${CHOWN}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in cmp
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_CMP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $CMP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-CMP=$ac_cv_path_CMP
-if test -n "$CMP"; then
- { echo "$as_me:$LINENO: result: $CMP" >&5
-echo "${ECHO_T}$CMP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$CMP" && break
-done
-test -n "$CMP" || CMP="$ensc_dflt"
-
-
- if test -z "${CMP}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${CMP}"; then
- CMP=`readlink -f "${CMP}"`
- fi
-
- test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
-
- test "${CMP}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in cp
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_CP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $CP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CP="$CP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-CP=$ac_cv_path_CP
-if test -n "$CP"; then
- { echo "$as_me:$LINENO: result: $CP" >&5
-echo "${ECHO_T}$CP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$CP" && break
-done
-test -n "$CP" || CP="$ensc_dflt"
-
-
- if test -z "${CP}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${CP}"; then
- CP=`readlink -f "${CP}"`
- fi
-
- test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
-
- test "${CP}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in dirname
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_DIRNAME+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $DIRNAME in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-DIRNAME=$ac_cv_path_DIRNAME
-if test -n "$DIRNAME"; then
- { echo "$as_me:$LINENO: result: $DIRNAME" >&5
-echo "${ECHO_T}$DIRNAME" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$DIRNAME" && break
-done
-test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
-
-
- if test -z "${DIRNAME}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${DIRNAME}"; then
- DIRNAME=`readlink -f "${DIRNAME}"`
- fi
-
- test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
-
- test "${DIRNAME}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in egrep
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_EGREP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $EGREP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-EGREP=$ac_cv_path_EGREP
-if test -n "$EGREP"; then
- { echo "$as_me:$LINENO: result: $EGREP" >&5
-echo "${ECHO_T}$EGREP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$EGREP" && break
-done
-test -n "$EGREP" || EGREP="$ensc_dflt"
-
-
- if test -z "${EGREP}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${EGREP}"; then
- EGREP=`readlink -f "${EGREP}"`
- fi
-
- test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
-
- test "${EGREP}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in env
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_ENV+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $ENV in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-ENV=$ac_cv_path_ENV
-if test -n "$ENV"; then
- { echo "$as_me:$LINENO: result: $ENV" >&5
-echo "${ECHO_T}$ENV" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$ENV" && break
-done
-test -n "$ENV" || ENV="$ensc_dflt"
-
-
- if test -z "${ENV}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${ENV}"; then
- ENV=`readlink -f "${ENV}"`
- fi
-
- test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
-
- test "${ENV}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in grep
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_GREP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $GREP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-GREP=$ac_cv_path_GREP
-if test -n "$GREP"; then
- { echo "$as_me:$LINENO: result: $GREP" >&5
-echo "${ECHO_T}$GREP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$GREP" && break
-done
-test -n "$GREP" || GREP="$ensc_dflt"
-
-
- if test -z "${GREP}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${GREP}"; then
- GREP=`readlink -f "${GREP}"`
- fi
-
- test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
-
- test "${GREP}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in ln
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_LN+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $LN in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_LN="$LN" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-LN=$ac_cv_path_LN
-if test -n "$LN"; then
- { echo "$as_me:$LINENO: result: $LN" >&5
-echo "${ECHO_T}$LN" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$LN" && break
-done
-test -n "$LN" || LN="$ensc_dflt"
-
-
- if test -z "${LN}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${LN}"; then
- LN=`readlink -f "${LN}"`
- fi
-
- test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
-
- test "${LN}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in mkdir
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_MKDIR+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $MKDIR in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-MKDIR=$ac_cv_path_MKDIR
-if test -n "$MKDIR"; then
- { echo "$as_me:$LINENO: result: $MKDIR" >&5
-echo "${ECHO_T}$MKDIR" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$MKDIR" && break
-done
-test -n "$MKDIR" || MKDIR="$ensc_dflt"
-
-
- if test -z "${MKDIR}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${MKDIR}"; then
- MKDIR=`readlink -f "${MKDIR}"`
- fi
-
- test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
-
- test "${MKDIR}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in mkfifo
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_MKFIFO+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $MKFIFO in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-MKFIFO=$ac_cv_path_MKFIFO
-if test -n "$MKFIFO"; then
- { echo "$as_me:$LINENO: result: $MKFIFO" >&5
-echo "${ECHO_T}$MKFIFO" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$MKFIFO" && break
-done
-test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
-
-
- if test -z "${MKFIFO}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${MKFIFO}"; then
- MKFIFO=`readlink -f "${MKFIFO}"`
- fi
-
- test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
-
- test "${MKFIFO}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in mktemp
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_MKTEMP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $MKTEMP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-MKTEMP=$ac_cv_path_MKTEMP
-if test -n "$MKTEMP"; then
- { echo "$as_me:$LINENO: result: $MKTEMP" >&5
-echo "${ECHO_T}$MKTEMP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$MKTEMP" && break
-done
-test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
-
-
- if test -z "${MKTEMP}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${MKTEMP}"; then
- MKTEMP=`readlink -f "${MKTEMP}"`
- fi
-
- test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
-
- test "${MKTEMP}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in mount
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_MOUNT+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $MOUNT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-MOUNT=$ac_cv_path_MOUNT
-if test -n "$MOUNT"; then
- { echo "$as_me:$LINENO: result: $MOUNT" >&5
-echo "${ECHO_T}$MOUNT" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$MOUNT" && break
-done
-test -n "$MOUNT" || MOUNT="$ensc_dflt"
-
-
- if test -z "${MOUNT}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${MOUNT}"; then
- MOUNT=`readlink -f "${MOUNT}"`
- fi
-
- test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
-
- test "${MOUNT}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in mv
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_MV+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $MV in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MV="$MV" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-MV=$ac_cv_path_MV
-if test -n "$MV"; then
- { echo "$as_me:$LINENO: result: $MV" >&5
-echo "${ECHO_T}$MV" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$MV" && break
-done
-test -n "$MV" || MV="$ensc_dflt"
-
-
- if test -z "${MV}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${MV}"; then
- MV=`readlink -f "${MV}"`
- fi
-
- test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
-
- test "${MV}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in nice
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_NICE+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $NICE in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-NICE=$ac_cv_path_NICE
-if test -n "$NICE"; then
- { echo "$as_me:$LINENO: result: $NICE" >&5
-echo "${ECHO_T}$NICE" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$NICE" && break
-done
-test -n "$NICE" || NICE="$ensc_dflt"
-
-
- if test -z "${NICE}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${NICE}"; then
- NICE=`readlink -f "${NICE}"`
- fi
-
- test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
-
- test "${NICE}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in ps
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_PS+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $PS in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PS="$PS" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-PS=$ac_cv_path_PS
-if test -n "$PS"; then
- { echo "$as_me:$LINENO: result: $PS" >&5
-echo "${ECHO_T}$PS" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$PS" && break
-done
-test -n "$PS" || PS="$ensc_dflt"
-
-
- if test -z "${PS}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${PS}"; then
- PS=`readlink -f "${PS}"`
- fi
-
- test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
-
- test "${PS}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in rm
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_RM+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $RM in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_RM="$RM" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-RM=$ac_cv_path_RM
-if test -n "$RM"; then
- { echo "$as_me:$LINENO: result: $RM" >&5
-echo "${ECHO_T}$RM" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$RM" && break
-done
-test -n "$RM" || RM="$ensc_dflt"
-
-
- if test -z "${RM}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${RM}"; then
- RM=`readlink -f "${RM}"`
- fi
-
- test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
-
- test "${RM}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in rmdir
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_RMDIR+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $RMDIR in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-RMDIR=$ac_cv_path_RMDIR
-if test -n "$RMDIR"; then
- { echo "$as_me:$LINENO: result: $RMDIR" >&5
-echo "${ECHO_T}$RMDIR" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$RMDIR" && break
-done
-test -n "$RMDIR" || RMDIR="$ensc_dflt"
-
-
- if test -z "${RMDIR}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${RMDIR}"; then
- RMDIR=`readlink -f "${RMDIR}"`
- fi
-
- test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
-
- test "${RMDIR}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in sed
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_SED+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $SED in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_SED="$SED" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-SED=$ac_cv_path_SED
-if test -n "$SED"; then
- { echo "$as_me:$LINENO: result: $SED" >&5
-echo "${ECHO_T}$SED" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$SED" && break
-done
-test -n "$SED" || SED="$ensc_dflt"
-
-
- if test -z "${SED}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${SED}"; then
- SED=`readlink -f "${SED}"`
- fi
-
- test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
-
- test "${SED}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in sh
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_SH+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $SH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_SH="$SH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-SH=$ac_cv_path_SH
-if test -n "$SH"; then
- { echo "$as_me:$LINENO: result: $SH" >&5
-echo "${ECHO_T}$SH" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$SH" && break
-done
-test -n "$SH" || SH="$ensc_dflt"
-
-
- if test -z "${SH}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${SH}"; then
- SH=`readlink -f "${SH}"`
- fi
-
- test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
-
- test "${SH}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in tac
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_TAC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $TAC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-TAC=$ac_cv_path_TAC
-if test -n "$TAC"; then
- { echo "$as_me:$LINENO: result: $TAC" >&5
-echo "${ECHO_T}$TAC" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$TAC" && break
-done
-test -n "$TAC" || TAC="$ensc_dflt"
-
-
- if test -z "${TAC}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${TAC}"; then
- TAC=`readlink -f "${TAC}"`
- fi
-
- test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
-
- test "${TAC}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in tar
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_TAR+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $TAR in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-TAR=$ac_cv_path_TAR
-if test -n "$TAR"; then
- { echo "$as_me:$LINENO: result: $TAR" >&5
-echo "${ECHO_T}$TAR" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$TAR" && break
-done
-test -n "$TAR" || TAR="$ensc_dflt"
-
-
- if test -z "${TAR}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${TAR}"; then
- TAR=`readlink -f "${TAR}"`
- fi
-
- test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
-
- test "${TAR}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in touch
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_TOUCH+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $TOUCH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-TOUCH=$ac_cv_path_TOUCH
-if test -n "$TOUCH"; then
- { echo "$as_me:$LINENO: result: $TOUCH" >&5
-echo "${ECHO_T}$TOUCH" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$TOUCH" && break
-done
-test -n "$TOUCH" || TOUCH="$ensc_dflt"
-
-
- if test -z "${TOUCH}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${TOUCH}"; then
- TOUCH=`readlink -f "${TOUCH}"`
- fi
-
- test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
-
- test "${TOUCH}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in tty
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_TTY+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $TTY in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-TTY=$ac_cv_path_TTY
-if test -n "$TTY"; then
- { echo "$as_me:$LINENO: result: $TTY" >&5
-echo "${ECHO_T}$TTY" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$TTY" && break
-done
-test -n "$TTY" || TTY="$ensc_dflt"
-
-
- if test -z "${TTY}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${TTY}"; then
- TTY=`readlink -f "${TTY}"`
- fi
-
- test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
-
- test "${TTY}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in umount
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_UMOUNT+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $UMOUNT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-UMOUNT=$ac_cv_path_UMOUNT
-if test -n "$UMOUNT"; then
- { echo "$as_me:$LINENO: result: $UMOUNT" >&5
-echo "${ECHO_T}$UMOUNT" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$UMOUNT" && break
-done
-test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
-
-
- if test -z "${UMOUNT}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${UMOUNT}"; then
- UMOUNT=`readlink -f "${UMOUNT}"`
- fi
-
- test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
-
- test "${UMOUNT}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in wc
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_WC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $WC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_WC="$WC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-WC=$ac_cv_path_WC
-if test -n "$WC"; then
- { echo "$as_me:$LINENO: result: $WC" >&5
-echo "${ECHO_T}$WC" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$WC" && break
-done
-test -n "$WC" || WC="$ensc_dflt"
-
-
- if test -z "${WC}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${WC}"; then
- WC=`readlink -f "${WC}"`
- fi
-
- test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
-
- test "${WC}"
-
-
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in ip
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_IP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $IP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_IP="$IP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-IP=$ac_cv_path_IP
-if test -n "$IP"; then
- { echo "$as_me:$LINENO: result: $IP" >&5
-echo "${ECHO_T}$IP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$IP" && break
-done
-test -n "$IP" || IP="$ensc_dflt"
-
-
- if test -z "${IP}" && $rq; then
- if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
- { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
-Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
-echo "$as_me: error:
-Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
-Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${IP}"; then
- IP=`readlink -f "${IP}"`
- fi
-
- test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
-
- test "${IP}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in iptables
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_IPTABLES+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $IPTABLES in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-IPTABLES=$ac_cv_path_IPTABLES
-if test -n "$IPTABLES"; then
- { echo "$as_me:$LINENO: result: $IPTABLES" >&5
-echo "${ECHO_T}$IPTABLES" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$IPTABLES" && break
-done
-test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
-
-
- if test -z "${IPTABLES}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${IPTABLES}"; then
- IPTABLES=`readlink -f "${IPTABLES}"`
- fi
-
- test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
-
- test "${IPTABLES}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in modprobe
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_MODPROBE+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $MODPROBE in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-MODPROBE=$ac_cv_path_MODPROBE
-if test -n "$MODPROBE"; then
- { echo "$as_me:$LINENO: result: $MODPROBE" >&5
-echo "${ECHO_T}$MODPROBE" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$MODPROBE" && break
-done
-test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
-
-
- if test -z "${MODPROBE}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${MODPROBE}"; then
- MODPROBE=`readlink -f "${MODPROBE}"`
- fi
-
- test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
-
- test "${MODPROBE}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in nameif
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_NAMEIF+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $NAMEIF in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-NAMEIF=$ac_cv_path_NAMEIF
-if test -n "$NAMEIF"; then
- { echo "$as_me:$LINENO: result: $NAMEIF" >&5
-echo "${ECHO_T}$NAMEIF" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$NAMEIF" && break
-done
-test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
-
-
- if test -z "${NAMEIF}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${NAMEIF}"; then
- NAMEIF=`readlink -f "${NAMEIF}"`
- fi
-
- test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
-
- test "${NAMEIF}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in nohup
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_NOHUP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $NOHUP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-NOHUP=$ac_cv_path_NOHUP
-if test -n "$NOHUP"; then
- { echo "$as_me:$LINENO: result: $NOHUP" >&5
-echo "${ECHO_T}$NOHUP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$NOHUP" && break
-done
-test -n "$NOHUP" || NOHUP="$ensc_dflt"
-
-
- if test -z "${NOHUP}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${NOHUP}"; then
- NOHUP=`readlink -f "${NOHUP}"`
- fi
-
- test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
-
- test "${NOHUP}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in rmmod
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_RMMOD+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $RMMOD in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-RMMOD=$ac_cv_path_RMMOD
-if test -n "$RMMOD"; then
- { echo "$as_me:$LINENO: result: $RMMOD" >&5
-echo "${ECHO_T}$RMMOD" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$RMMOD" && break
-done
-test -n "$RMMOD" || RMMOD="$ensc_dflt"
-
-
- if test -z "${RMMOD}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${RMMOD}"; then
- RMMOD=`readlink -f "${RMMOD}"`
- fi
-
- test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
-
- test "${RMMOD}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in vconfig
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_VCONFIG+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $VCONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-VCONFIG=$ac_cv_path_VCONFIG
-if test -n "$VCONFIG"; then
- { echo "$as_me:$LINENO: result: $VCONFIG" >&5
-echo "${ECHO_T}$VCONFIG" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$VCONFIG" && break
-done
-test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
-
-
- if test -z "${VCONFIG}" && $rq; then
- if test -z "See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution"; then
- { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
-See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
-echo "$as_me: error:
-Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
-See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${VCONFIG}"; then
- VCONFIG=`readlink -f "${VCONFIG}"`
- fi
-
- test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
-
- test "${VCONFIG}"
-
-
-
-
- if test -z ""; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=""
- fi
-
- for ac_prog in wget
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_WGET+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-WGET=$ac_cv_path_WGET
-if test -n "$WGET"; then
- { echo "$as_me:$LINENO: result: $WGET" >&5
-echo "${ECHO_T}$WGET" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$WGET" && break
-done
-test -n "$WGET" || WGET="$ensc_dflt"
-
-
- if test -z "${WGET}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${WGET}"; then
- WGET=`readlink -f "${WGET}"`
- fi
-
- test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
-
- test "${WGET}"
-
-
-
-
- if test -z "file"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt="file"
- fi
-
- for ac_prog in file
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_FILE+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $FILE in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-FILE=$ac_cv_path_FILE
-if test -n "$FILE"; then
- { echo "$as_me:$LINENO: result: $FILE" >&5
-echo "${ECHO_T}$FILE" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$FILE" && break
-done
-test -n "$FILE" || FILE="$ensc_dflt"
-
-
- if test -z "${FILE}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${FILE}"; then
- FILE=`readlink -f "${FILE}"`
- fi
-
- test "${FILE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FILE'@!${FILE}!g;"
-
- test "${FILE}"
-
-
-
-
- if test -z "gzip"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt="gzip"
- fi
-
- for ac_prog in gzip
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_GZIP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $GZIP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-GZIP=$ac_cv_path_GZIP
-if test -n "$GZIP"; then
- { echo "$as_me:$LINENO: result: $GZIP" >&5
-echo "${ECHO_T}$GZIP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$GZIP" && break
-done
-test -n "$GZIP" || GZIP="$ensc_dflt"
-
-
- if test -z "${GZIP}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${GZIP}"; then
- GZIP=`readlink -f "${GZIP}"`
- fi
-
- test "${GZIP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GZIP'@!${GZIP}!g;"
-
- test "${GZIP}"
-
-
-
-
- if test -z "bzip2"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt="bzip2"
- fi
-
- for ac_prog in bzip2
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_BZIP2+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $BZIP2 in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-BZIP2=$ac_cv_path_BZIP2
-if test -n "$BZIP2"; then
- { echo "$as_me:$LINENO: result: $BZIP2" >&5
-echo "${ECHO_T}$BZIP2" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$BZIP2" && break
-done
-test -n "$BZIP2" || BZIP2="$ensc_dflt"
-
-
- if test -z "${BZIP2}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${BZIP2}"; then
- BZIP2=`readlink -f "${BZIP2}"`
- fi
-
- test "${BZIP2}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'BZIP2'@!${BZIP2}!g;"
-
- test "${BZIP2}"
-
-
-
-
- if test -z "cpio"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt="cpio"
- fi
-
- for ac_prog in cpio
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_CPIO+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $CPIO in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-CPIO=$ac_cv_path_CPIO
-if test -n "$CPIO"; then
- { echo "$as_me:$LINENO: result: $CPIO" >&5
-echo "${ECHO_T}$CPIO" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$CPIO" && break
-done
-test -n "$CPIO" || CPIO="$ensc_dflt"
-
-
- if test -z "${CPIO}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${CPIO}"; then
- CPIO=`readlink -f "${CPIO}"`
- fi
-
- test "${CPIO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CPIO'@!${CPIO}!g;"
-
- test "${CPIO}"
-
-
-
-
- if test -z "restore"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt="restore"
- fi
-
- for ac_prog in restore
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_RESTORE+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $RESTORE in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-RESTORE=$ac_cv_path_RESTORE
-if test -n "$RESTORE"; then
- { echo "$as_me:$LINENO: result: $RESTORE" >&5
-echo "${ECHO_T}$RESTORE" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$RESTORE" && break
-done
-test -n "$RESTORE" || RESTORE="$ensc_dflt"
-
-
- if test -z "${RESTORE}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${RESTORE}"; then
- RESTORE=`readlink -f "${RESTORE}"`
- fi
-
- test "${RESTORE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RESTORE'@!${RESTORE}!g;"
-
- test "${RESTORE}"
-
-
-
-
- if test -z "rsync"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt="rsync"
- fi
-
- for ac_prog in rsync
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_RSYNC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $RSYNC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-RSYNC=$ac_cv_path_RSYNC
-if test -n "$RSYNC"; then
- { echo "$as_me:$LINENO: result: $RSYNC" >&5
-echo "${ECHO_T}$RSYNC" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$RSYNC" && break
-done
-test -n "$RSYNC" || RSYNC="$ensc_dflt"
-
-
- if test -z "${RSYNC}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${RSYNC}"; then
- RSYNC=`readlink -f "${RSYNC}"`
- fi
-
- test "${RSYNC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RSYNC'@!${RSYNC}!g;"
-
- test "${RSYNC}"
-
-
-
-
- if test -z "strace"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt="strace"
- fi
-
- for ac_prog in strace
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_STRACE+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $STRACE in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_STRACE="$STRACE" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_STRACE="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-STRACE=$ac_cv_path_STRACE
-if test -n "$STRACE"; then
- { echo "$as_me:$LINENO: result: $STRACE" >&5
-echo "${ECHO_T}$STRACE" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$STRACE" && break
-done
-test -n "$STRACE" || STRACE="$ensc_dflt"
-
-
- if test -z "${STRACE}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${STRACE}"; then
- STRACE=`readlink -f "${STRACE}"`
- fi
-
- test "${STRACE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'STRACE'@!${STRACE}!g;"
-
- test "${STRACE}"
-
-
-
-
-
- if test -z ":"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=":"
- fi
-
- for ac_prog in doxygen
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_DOXYGEN+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $DOXYGEN in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-DOXYGEN=$ac_cv_path_DOXYGEN
-if test -n "$DOXYGEN"; then
- { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
-echo "${ECHO_T}$DOXYGEN" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$DOXYGEN" && break
-done
-test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
-
-
- if test -z "${DOXYGEN}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${DOXYGEN}"; then
- DOXYGEN=`readlink -f "${DOXYGEN}"`
- fi
-
- test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
-
- test "${DOXYGEN}"
-
-
-
-
- if test -z ":"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=":"
- fi
-
- for ac_prog in xsltp
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_XSLTP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $XSLTP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-XSLTP=$ac_cv_path_XSLTP
-if test -n "$XSLTP"; then
- { echo "$as_me:$LINENO: result: $XSLTP" >&5
-echo "${ECHO_T}$XSLTP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$XSLTP" && break
-done
-test -n "$XSLTP" || XSLTP="$ensc_dflt"
-
-
- if test -z "${XSLTP}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${XSLTP}"; then
- XSLTP=`readlink -f "${XSLTP}"`
- fi
-
- test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
-
- test "${XSLTP}"
-
-
-
-
- if test -z ":"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt=":"
- fi
-
- for ac_prog in xsltproc
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_path_XSLTPROC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $XSLTPROC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $ensc_searchpath
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-XSLTPROC=$ac_cv_path_XSLTPROC
-if test -n "$XSLTPROC"; then
- { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
-echo "${ECHO_T}$XSLTPROC" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$XSLTPROC" && break
-done
-test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
-
-
- if test -z "${XSLTPROC}" && $rq; then
- if test -z ""; then
- { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
-echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
- { (exit 1); exit 1; }; }
- else
- { { echo "$as_me:$LINENO: error:
-Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
-" >&5
-echo "$as_me: error:
-Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
-" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-
- if test -e "${XSLTPROC}"; then
- XSLTPROC=`readlink -f "${XSLTPROC}"`
- fi
-
- test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
-
- test "${XSLTPROC}"
-
-
- if test "$XSLTP" != ':'; then
- HAVE_XSLTP_TRUE=
- HAVE_XSLTP_FALSE='#'
-else
- HAVE_XSLTP_TRUE='#'
- HAVE_XSLTP_FALSE=
-fi
-
- if test "$XSLTPROC" != ':'; then
- HAVE_XSLTPROC_TRUE=
- HAVE_XSLTPROC_FALSE='#'
-else
- HAVE_XSLTPROC_TRUE='#'
- HAVE_XSLTPROC_FALSE=
-fi
-
-
-if test x"$prefix" = x/; then
- prefix=
-fi
-
-
-
- warn_flags="-Werror -W"
- { echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
-echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6; }
- 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
-
- __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
- CFLAGS="$warn_flags"
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-inline static void f(){}
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ensc_sys_compilerwarnflags_C=${warn_flags}
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ensc_sys_compilerwarnflags_C=
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- 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
-
- CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
-
- if test x"${ensc_sys_compilerwarnflags_C}" = x; then
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
- else
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- fi
-
-
-
-
-
-echo 'void f(){}' > conftest.c
- for i in -std=c99 -Wall -pedantic -W
- do
- { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
-echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
- if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
- then
- CFLAGS="${CFLAGS} $i"
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
- fi
- done
- rm -f conftest.c conftest.o
-
-
-
- warn_flags="-Werror -W"
- { echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
-echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6; }
- ac_ext=cpp
-ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-
- __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
- CXXFLAGS="$warn_flags"
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-inline static void f(){}
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ensc_sys_compilerwarnflags_CXX=${warn_flags}
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ensc_sys_compilerwarnflags_CXX=
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- 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
-
- CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
-
- if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
- else
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- fi
-
-
-
-
-
- echo 'void f(){}' > conftest.cc
- for i in -ansi -Wall -pedantic -W -fmessage-length=0
- do
- { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
-echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
- if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
- then
- CXXFLAGS="${CXXFLAGS} $i"
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
- fi
- done
- rm -f conftest.cc conftest.o
-
-
-{ echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
-echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6; }
-# Check whether --enable-extra-optimizations was given.
-if test "${enable_extra_optimizations+set}" = set; then
- enableval=$enable_extra_optimizations; case "$enableval" in
- (yes) use_extra_optimizations=1;;
- (no) use_extra_optimizations=;;
- (*) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
-echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
- { (exit 1); exit 1; }; };;
- esac
-else
- use_extra_optimizations=1
-fi
-
-
-if test x"$use_extra_optimizations" = x; then
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-else
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-
-
-
-echo 'void f(){}' > conftest.c
- for i in -funit-at-a-time
- do
- { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
-echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
- if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
- then
- CFLAGS="${CFLAGS} $i"
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
- fi
- done
- rm -f conftest.c conftest.o
-
-
-
-
- echo 'void f(){}' > conftest.cc
- for i in -funit-at-a-time
- do
- { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
-echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
- if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
- then
- CXXFLAGS="${CXXFLAGS} $i"
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
- fi
- done
- rm -f conftest.cc conftest.o
-
-fi
-
-{ echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
-echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6; }
-# Check whether --enable-lib-debug was given.
-if test "${enable_lib_debug+set}" = set; then
- enableval=$enable_lib_debug; case "$enableval" in
- (yes) use_lib_debug=1;;
- (no) use_lib_debug=;;
- (*) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
-echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
- { (exit 1); exit 1; }; };;
- esac
-else
- use_lib_debug=
-fi
-
-
-if test x"$use_lib_debug" = x; then
- LIB_DEBUG_CPPFLAGS=-DNDEBUG
-
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-else
-
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-fi
-
-{ echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
-echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6; }
-# Check whether --enable-expensive-tests was given.
-if test "${enable_expensive_tests+set}" = set; then
- enableval=$enable_expensive_tests; case "$enableval" in
- (yes|no) use_expensive_tests=$enableval;;
- (*) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&5
-echo "$as_me: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&2;}
- { (exit 1); exit 1; }; };;
- esac
-else
- use_expensive_tests=no
-fi
-
-{ echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
-echo "${ECHO_T}$use_expensive_tests" >&6; }
-
-ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
-
-
-
-
- { echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
-echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6; }
- { echo "$as_me:$LINENO: result: " >&5
-echo "${ECHO_T}" >&6; }
-
- 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
-
- { echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
-echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef MMAP_PAGE_ZERO
- (void) MMAP_PAGE_ZERO;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_MMAP_PAGE_ZERO=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_MMAP_PAGE_ZERO=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
-echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6; }
-if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_MMAP_PAGE_ZERO 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_MMAP_PAGE_ZERO 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
-echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef ADDR_LIMIT_32BIT
- (void) ADDR_LIMIT_32BIT;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_ADDR_LIMIT_32BIT=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
-echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6; }
-if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_ADDR_LIMIT_32BIT 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_ADDR_LIMIT_32BIT 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
-echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef SHORT_INODE
- (void) SHORT_INODE;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_SHORT_INODE=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_SHORT_INODE=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
-echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6; }
-if test $ac_cv_have_decl_SHORT_INODE = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_SHORT_INODE 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_SHORT_INODE 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
-echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef WHOLE_SECONDS
- (void) WHOLE_SECONDS;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_WHOLE_SECONDS=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_WHOLE_SECONDS=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
-echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6; }
-if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_WHOLE_SECONDS 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_WHOLE_SECONDS 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
-echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef STICKY_TIMEOUTS
- (void) STICKY_TIMEOUTS;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_STICKY_TIMEOUTS=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_STICKY_TIMEOUTS=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
-echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6; }
-if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_STICKY_TIMEOUTS 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_STICKY_TIMEOUTS 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
-echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef ADDR_LIMIT_3GB
- (void) ADDR_LIMIT_3GB;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_ADDR_LIMIT_3GB=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_ADDR_LIMIT_3GB=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
-echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6; }
-if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_ADDR_LIMIT_3GB 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_ADDR_LIMIT_3GB 0
-_ACEOF
-
-
-fi
-
-
-
- { echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
-echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_LINUX
- (void) PER_LINUX;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_LINUX=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_LINUX=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6; }
-if test $ac_cv_have_decl_PER_LINUX = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_LINUX 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_LINUX 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
-echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_LINUX_32BIT
- (void) PER_LINUX_32BIT;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_LINUX_32BIT=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_LINUX_32BIT=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6; }
-if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_LINUX_32BIT 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_LINUX_32BIT 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
-echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_SVR4
- (void) PER_SVR4;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_SVR4=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_SVR4=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6; }
-if test $ac_cv_have_decl_PER_SVR4 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_SVR4 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_SVR4 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
-echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_SVR3
- (void) PER_SVR3;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_SVR3=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_SVR3=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6; }
-if test $ac_cv_have_decl_PER_SVR3 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_SVR3 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_SVR3 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
-echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_SCOSVR3
- (void) PER_SCOSVR3;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_SCOSVR3=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_SCOSVR3=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6; }
-if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_SCOSVR3 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_SCOSVR3 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
-echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_OSR5
- (void) PER_OSR5;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_OSR5=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_OSR5=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6; }
-if test $ac_cv_have_decl_PER_OSR5 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_OSR5 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_OSR5 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
-echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_WYSEV386
- (void) PER_WYSEV386;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_WYSEV386=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_WYSEV386=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6; }
-if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_WYSEV386 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_WYSEV386 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
-echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_ISCR4
- (void) PER_ISCR4;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_ISCR4=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_ISCR4=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6; }
-if test $ac_cv_have_decl_PER_ISCR4 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_ISCR4 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_ISCR4 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
-echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_BSD
- (void) PER_BSD;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_BSD=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_BSD=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6; }
-if test $ac_cv_have_decl_PER_BSD = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_BSD 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_BSD 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
-echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_SUNOS
- (void) PER_SUNOS;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_SUNOS=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_SUNOS=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6; }
-if test $ac_cv_have_decl_PER_SUNOS = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_SUNOS 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_SUNOS 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
-echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_XENIX
- (void) PER_XENIX;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_XENIX=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_XENIX=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6; }
-if test $ac_cv_have_decl_PER_XENIX = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_XENIX 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_XENIX 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
-echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_LINUX32
- (void) PER_LINUX32;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_LINUX32=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_LINUX32=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6; }
-if test $ac_cv_have_decl_PER_LINUX32 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_LINUX32 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_LINUX32 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
-echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_LINUX32_3GB
- (void) PER_LINUX32_3GB;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_LINUX32_3GB=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_LINUX32_3GB=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6; }
-if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_LINUX32_3GB 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_LINUX32_3GB 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
-echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_IRIX32
- (void) PER_IRIX32;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_IRIX32=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_IRIX32=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6; }
-if test $ac_cv_have_decl_PER_IRIX32 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_IRIX32 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_IRIX32 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
-echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_IRIXN32
- (void) PER_IRIXN32;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_IRIXN32=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_IRIXN32=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6; }
-if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_IRIXN32 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_IRIXN32 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
-echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_IRIX64
- (void) PER_IRIX64;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_IRIX64=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_IRIX64=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6; }
-if test $ac_cv_have_decl_PER_IRIX64 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_IRIX64 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_IRIX64 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
-echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_RISCOS
- (void) PER_RISCOS;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_RISCOS=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_RISCOS=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6; }
-if test $ac_cv_have_decl_PER_RISCOS = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_RISCOS 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_RISCOS 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
-echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_SOLARIS
- (void) PER_SOLARIS;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_SOLARIS=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_SOLARIS=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6; }
-if test $ac_cv_have_decl_PER_SOLARIS = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_SOLARIS 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_SOLARIS 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
-echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_UW7
- (void) PER_UW7;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_UW7=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_UW7=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6; }
-if test $ac_cv_have_decl_PER_UW7 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_UW7 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_UW7 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
-echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_HPUX
- (void) PER_HPUX;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_HPUX=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_HPUX=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6; }
-if test $ac_cv_have_decl_PER_HPUX = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_HPUX 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_HPUX 0
-_ACEOF
-
-
-fi
-{ echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
-echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <linux/personality.h>
-
-
-int
-main ()
-{
-#ifndef PER_OSF4
- (void) PER_OSF4;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_PER_OSF4=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_PER_OSF4=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
-echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6; }
-if test $ac_cv_have_decl_PER_OSF4 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_OSF4 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_PER_OSF4 0
-_ACEOF
-
-
-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
-
-
-
-
-
-
- { echo "$as_me:$LINENO: checking for initrddir" >&5
-echo $ECHO_N "checking for initrddir... $ECHO_C" >&6; }
-
-# Check whether --with-initrddir was given.
-if test "${with_initrddir+set}" = set; then
- withval=$with_initrddir; case "$withval" in
- yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
-echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
- { (exit 1); exit 1; }; };;
- *) ensc_initrddir=$withval;;
- esac
-else
- ensc_initrddir='$(sysconfdir)/init.d'
-fi
-
-
- if test "initrddir"; then
- initrddir=$ensc_initrddir
-
- fi
-
- { echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
-echo "${ECHO_T}$ensc_initrddir" >&6; }
-
-
- { echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
-echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6; }
- # Check whether --enable-release was given.
-if test "${enable_release+set}" = set; then
- enableval=$enable_release; case "$enableval" in
- yes) ensc_release_mode=yes;;
- no) ensc_release_mode=no;;
- *) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
-echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
- { (exit 1); exit 1; }; };;
- esac
-else
- ensc_release_mode=no
-fi
-
-
- if test x"$ensc_release_mode" = xno; then
- RELEASE_CPPFLAGS=
- else
- RELEASE_CPPFLAGS='-DNDEBUG'
- fi
-
-
- { echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
-echo "${ECHO_T}$ensc_release_mode" >&6; }
-
-
-# HACK: This needs to be before ENSC_DIETLIBC_NEED_COMPAT, or the alternative
-# syscalls will never be enabled for glibc.
-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
-{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
-echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
-# On Suns, sometimes $CPP names a directory.
-if test -n "$CPP" && test -d "$CPP"; then
- CPP=
-fi
-if test -z "$CPP"; then
- if test "${ac_cv_prog_CPP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&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 <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> 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 >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Broken: fails on valid input.
-continue
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- # Broken: success on invalid input.
-continue
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f 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
-{ echo "$as_me:$LINENO: result: $CPP" >&5
-echo "${ECHO_T}$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 <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> 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 >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Broken: fails on valid input.
-continue
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- # Broken: success on invalid input.
-continue
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then
- :
-else
- { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details." >&5
-echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-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
-
-{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
-echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
-if test "${ac_cv_path_GREP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- # Extract the first word of "grep ggrep" to use in msg output
-if test -z "$GREP"; then
-set dummy grep ggrep; ac_prog_name=$2
-if test "${ac_cv_path_GREP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- 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"
- { test -f "$ac_path_GREP" && $as_test_x "$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
- echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- 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
- ac_count=`expr $ac_count + 1`
- 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
-
-
-fi
-
-GREP="$ac_cv_path_GREP"
-if test -z "$GREP"; then
- { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
-echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-else
- ac_cv_path_GREP=$GREP
-fi
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
-echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
- GREP="$ac_cv_path_GREP"
-
-
-{ echo "$as_me:$LINENO: checking for egrep" >&5
-echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
-if test "${ac_cv_path_EGREP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
- then ac_cv_path_EGREP="$GREP -E"
- else
- # Extract the first word of "egrep" to use in msg output
-if test -z "$EGREP"; then
-set dummy egrep; ac_prog_name=$2
-if test "${ac_cv_path_EGREP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- 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"
- { test -f "$ac_path_EGREP" && $as_test_x "$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
- echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- 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
- ac_count=`expr $ac_count + 1`
- 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
-
-
-fi
-
-EGREP="$ac_cv_path_EGREP"
-if test -z "$EGREP"; then
- { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
-echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-else
- ac_cv_path_EGREP=$EGREP
-fi
-
-
- fi
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
-echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
- EGREP="$ac_cv_path_EGREP"
-
-
-
-
-
-
- { echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
-echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6; }
-if test "${ensc_cv_value_syscall_vserver+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
- 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
-
- cat >conftest.$ac_ext <<_ACEOF
-
-#ifdef ENSC_SYSCALL_FALLBACK
-# include ENSC_SYSCALL_FALLBACK
-#else
-# include <asm/unistd.h>
-#endif
-#ifdef __NR_vserver
-ensc_syscall_tmp_nr=__NR_vserver;
-ensc_syscall_tmp_src=ENSC_MARK
-#endif
-
-_ACEOF
- ensc_syscall_tmp_nr=
- ensc_syscall_tmp_src=
- test x"$ensc_syscall_tmp_nr" != x || \
- eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc' conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
- test x"$ensc_syscall_tmp_nr" != x -o x'lib/syscall-fallback.h' = x || \
- eval $($CPP $CPPFLAGS -D ENSC_MARK='fallback' -D ENSC_SYSCALL_FALLBACK='"lib/syscall-fallback.h"' conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
- test "$ensc_syscall_tmp_nr" || {
- ensc_syscall_tmp_nr=273
- ensc_syscall_tmp_src=default
- }
-
- if test x"$ensc_syscall_tmp_nr" = x; then
- { { echo "$as_me:$LINENO: error: Can not determine value of __NR_vserver; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_vserver=<value>' environment when calling configure." >&5
-echo "$as_me: error: Can not determine value of __NR_vserver; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_vserver=<value>' environment when calling configure." >&2;}
- { (exit 1); exit 1; }; }
- 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
-
-
- ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
-
-fi
-{ echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
-echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6; }
-
- ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
- ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
-
- if test x"$ensc_syscall_tmp_src" != x'glibc'; then
-
-cat >>confdefs.h <<_ACEOF
-#define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
-_ACEOF
-
- fi
-
-
- { echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
-echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6; }
- # Check whether --enable-alternative-syscalls was given.
-if test "${enable_alternative_syscalls+set}" = set; then
- enableval=$enable_alternative_syscalls; case $enableval in
- (yes|no) ensc_use_alternative_syscall_macros=$enableval;;
- (*) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
-echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
- { (exit 1); exit 1; }; };;
- esac
-else
- ensc_use_alternative_syscall_macros=yes
-fi
-
-
- case $ensc_use_alternative_syscall_macros in
- (yes)
-cat >>confdefs.h <<\_ACEOF
-#define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
-_ACEOF
-;;
- esac
-
- { echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
-echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6; }
-
-
-
-
- { echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
-echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6; }
-
-# Check whether --with-syscall was given.
-if test "${with_syscall+set}" = set; then
- withval=$with_syscall;
-else
- with_syscall=auto
-fi
-
- { echo "$as_me:$LINENO: result: $with_syscall" >&5
-echo "${ECHO_T}$with_syscall" >&6; }
-
- case x"$with_syscall" in
- (xauto)
- { echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
-echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6; }
-if test "${ensc_cv_test_syscall+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
- 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
-
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include "$srcdir/lib/syscall-wrap.h"
-#include <errno.h>
-
-#define __NR_foo0 300
-#define __NR_foo1 301
-#define __NR_foo2 302
-#define __NR_foo3 303
-#define __NR_foo4 304
-#define __NR_foo5 305
-inline static _syscall0(int, foo0)
-inline static _syscall1(int, foo1, int, a)
-inline static _syscall2(int, foo2, int, a, int, b)
-inline static _syscall3(int, foo3, int, a, int, b, int, c)
-inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
-inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
-
-int main() {
- return foo0() || \
- foo1(1) || \
- foo2(1,2) || \
- foo3(1,2,3) || \
- foo4(1,2,3,4) || \
- foo5(1,2,3,4,5);
-}
-
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ensc_cv_test_syscall=fast
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ensc_cv_test_syscall=traditional
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
- 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
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
-echo "${ECHO_T}$ensc_cv_test_syscall" >&6; }
- with_syscall=$ensc_cv_test_syscall
- ;;
- (xfast|xtraditional)
- ;;
- *)
- { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
-echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
- { (exit 1); exit 1; }; }
- ;;
- esac
-
- if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
- with_syscall='alternative'
- fi
-
- if test x"$with_syscall" = xtraditional; then
-
-cat >>confdefs.h <<\_ACEOF
-#define ENSC_SYSCALL_TRADITIONAL 1
-_ACEOF
-
- fi
-
-
-
-
-
-
-case $host_cpu in
- (i*86|athlon) min_diet_ver=0.25;;
- (ia64|hppa*) min_diet_ver=0.29;;
- (sparc*) min_diet_ver=0.30;;
- (x86_64) min_diet_ver=0.27;;
- (*) min_diet_ver=0.28;;
-esac
-
-
- { echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
-echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6; }
-
-
-
-
- : ${DIET:=diet}
- : ${DIETFLAGS=-Os}
-
- # Check whether --enable-dietlibc was given.
-if test "${enable_dietlibc+set}" = set; then
- enableval=$enable_dietlibc; case "$enableval" in
- (yes) use_dietlibc=forced;;
- (no) use_dietlibc=forced_no;;
- (*) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
-echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
- { (exit 1); exit 1; }; };;
- esac
-else
- which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
-fi
-
-
- if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
- _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
- _dietlibc_ver=${_dietlibc_ver##*diet version }
- _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
- _dietlibc_ver_maj=${_dietlibc_ver%%.*}
- _dietlibc_ver_min=${_dietlibc_ver##*.}
- _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
- _dietlibc_cmp="$min_diet_ver"
- _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
- _dietlibc_cmp_min=${_dietlibc_cmp##*.}
-
- ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
-
- let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
- let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
-
- test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
- else
- ENSC_VERSION_DIETLIBC=
- _dietlibc_ver=-1
- fi
-
- ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
- ensc_have_dietlibc=no
-
- case x"$use_dietlibc" in
- xdetected)
- if true; then
- USE_DIETLIBC_TRUE=
- USE_DIETLIBC_FALSE='#'
-else
- USE_DIETLIBC_TRUE='#'
- USE_DIETLIBC_FALSE=
-fi
-
- { echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
-echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6; }
- ensc_have_dietlibc=yes
- ;;
- xforced)
- if true; then
- USE_DIETLIBC_TRUE=
- USE_DIETLIBC_FALSE='#'
-else
- USE_DIETLIBC_TRUE='#'
- USE_DIETLIBC_FALSE=
-fi
-
- { echo "$as_me:$LINENO: result: yes (forced)" >&5
-echo "${ECHO_T}yes (forced)" >&6; }
- ensc_have_dietlibc=yes
- ;;
- xdetected_no)
- if false; then
- USE_DIETLIBC_TRUE=
- USE_DIETLIBC_FALSE='#'
-else
- USE_DIETLIBC_TRUE='#'
- USE_DIETLIBC_FALSE=
-fi
-
- { echo "$as_me:$LINENO: result: no (detected)" >&5
-echo "${ECHO_T}no (detected)" >&6; }
- ;;
- xdetected_old)
- if false; then
- USE_DIETLIBC_TRUE=
- USE_DIETLIBC_FALSE='#'
-else
- USE_DIETLIBC_TRUE='#'
- USE_DIETLIBC_FALSE=
-fi
-
- { echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
-echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6; }
- ;;
- xforced_no)
- if false; then
- USE_DIETLIBC_TRUE=
- USE_DIETLIBC_FALSE='#'
-else
- USE_DIETLIBC_TRUE='#'
- USE_DIETLIBC_FALSE=
-fi
-
- { echo "$as_me:$LINENO: result: no (forced)" >&5
-echo "${ECHO_T}no (forced)" >&6; }
- ;;
- *)
- { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
-echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
- { (exit 1); exit 1; }; }
- ;;
- esac
-
- if test x"$ensc_have_dietlibc" != xno; then
-
-
-
-
- { echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
-echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6; }
-if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
- _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
- _ensc_dietlibc_c99_old_CC=$CC
-
- CFLAGS="-std=c99"
- CC="${DIET:-diet} $CC"
-
- 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
-
- cat >conftest.$ac_ext <<_ACEOF
-/* */
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
-
- cat >conftest.$ac_ext <<_ACEOF
-
- #include <stdint.h>
- #include <sys/cdefs.h>
- #if defined(inline)
- # error 'inline' badly defined
- #endif
- volatile uint64_t a;
-
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ensc_cv_c_dietlibc_c99=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ensc_cv_c_dietlibc_c99=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- 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
-
-
- CC=$_ensc_dietlibc_c99_old_CC
- CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
-
-fi
-{ echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
-echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6; }
-
- if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
- cat >>confdefs.h <<\_ACEOF
-#define ENSC_DIETLIBC_C99 1
-_ACEOF
-
- fi
-
-
-
-
-
- { echo "$as_me:$LINENO: checking whether dietlibc declares syscall" >&5
-echo $ECHO_N "checking whether dietlibc declares syscall... $ECHO_C" >&6; }
-if test "${ensc_cv_c_dietlibc_syscall+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
- _ensc_dietlibc_syscall_old_CC="$CC"
- CC="${DIET:-diet} $CC"
-
- 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
-
- cat >conftest.$ac_ext <<_ACEOF
-
- #include <sys/syscall.h>
- long int syscall(long int __sysno, ...);
-
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ensc_cv_c_dietlibc_syscall=no
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ensc_cv_c_dietlibc_syscall=yes
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- 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
-
-
- CC="$_ensc_dietlibc_syscall_old_CC"
-
-fi
-{ echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_syscall" >&5
-echo "${ECHO_T}$ensc_cv_c_dietlibc_syscall" >&6; }
-
- if test x"$ensc_cv_c_dietlibc_syscall" = xyes; then
- cat >>confdefs.h <<\_ACEOF
-#define ENSC_DIETLIBC_HAS_SYSCALL 1
-_ACEOF
-
- fi
-
- fi
-
-
-if test x"$ensc_have_dietlibc" = xno; then
- { echo "$as_me:$LINENO: WARNING: *** ***" >&5
-echo "$as_me: WARNING: *** ***" >&2;}
- { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
-echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
- { echo "$as_me:$LINENO: WARNING: *** dietlibc; glibc's NSS functions are very unreliable in ***" >&5
-echo "$as_me: WARNING: *** dietlibc; glibc's NSS functions are very unreliable in ***" >&2;}
- { echo "$as_me:$LINENO: WARNING: *** chroot() environments, so you have to expect problems ***" >&5
-echo "$as_me: WARNING: *** chroot() environments, so you have to expect problems ***" >&2;}
- { echo "$as_me:$LINENO: WARNING: *** there. ***" >&5
-echo "$as_me: WARNING: *** there. ***" >&2;}
- { echo "$as_me:$LINENO: WARNING: *** ***" >&5
-echo "$as_me: WARNING: *** ***" >&2;}
- if false; then
- USE_DIETLIBC_COMPAT_TRUE=
- USE_DIETLIBC_COMPAT_FALSE='#'
-else
- USE_DIETLIBC_COMPAT_TRUE='#'
- USE_DIETLIBC_COMPAT_FALSE=
-fi
-
-else
- # HACK: libtool does not have cmdline options to build only
- # dynamic libraries; this can be done with the
- # '--disable-static' ./configure option only. As our static
- # libraries will be build with dietlibc, we have to do set
- # this option which is evaluated by 'AC_PROG_LIBTOOL'
- # below. Therefore, this macro must not be called earlier.
- enable_static=no
-
-
-
-
- { echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
-echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6; }
-if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
- 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
-
- ensc_dietlibc_need_compat_old_CC=$CC
- CC="${DIET:-diet} $CC"
- cat >conftest.$ac_ext <<_ACEOF
-
- /* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include "$srcdir/lib/syscall-wrap.h"
-#include <errno.h>
-
-#define __NR_foo0 42
-#define __NR_foo1 42
-#define __NR_foo2 42
-#define __NR_foo3 42
-#define __NR_foo4 42
-#define __NR_foo5 42
-inline static _syscall0(int, foo0)
-inline static _syscall1(int, foo1, int, a)
-inline static _syscall2(int, foo2, int, a, int, b)
-inline static _syscall3(int, foo3, int, a, int, b, int, c)
-inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
-inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
-
-int
-main ()
-{
-foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ensc_cv_c_dietlibc_compat=no
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ensc_cv_c_dietlibc_compat=yes
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
- CC=$ensc_dietlibc_need_compat_old_CC
- 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
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
-echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6; }
-
- if test x"USE_DIETLIBC_COMPAT" != x; then
- if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
- USE_DIETLIBC_COMPAT_TRUE=
- USE_DIETLIBC_COMPAT_FALSE='#'
-else
- USE_DIETLIBC_COMPAT_TRUE='#'
- USE_DIETLIBC_COMPAT_FALSE=
-fi
-
- fi
-
-fi
-
- if test x"$ensc_have_dietlibc" = xyes; then
- ENSC_USE_DIETLIBC_TRUE=
- ENSC_USE_DIETLIBC_FALSE='#'
-else
- ENSC_USE_DIETLIBC_TRUE='#'
- ENSC_USE_DIETLIBC_FALSE=
-fi
-
- if true; then
- ENSC_USE_GLIBC_TRUE=
- ENSC_USE_GLIBC_FALSE='#'
-else
- ENSC_USE_GLIBC_TRUE='#'
- ENSC_USE_GLIBC_FALSE=
-fi
-
-
-# HACK: see comments at 'enable_static' above
-# Check whether --enable-shared was given.
-if test "${enable_shared+set}" = set; then
- enableval=$enable_shared; p=${PACKAGE-default}
- case $enableval in
- yes) enable_shared=yes ;;
- no) enable_shared=no ;;
- *)
- enable_shared=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_shared=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac
-else
- enable_shared=yes
-fi
-
-
-# Check whether --enable-static was given.
-if test "${enable_static+set}" = set; then
- enableval=$enable_static; p=${PACKAGE-default}
- case $enableval in
- yes) enable_static=yes ;;
- no) enable_static=no ;;
- *)
- enable_static=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_static=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac
-else
- enable_static=yes
-fi
-
-
-# Check whether --enable-fast-install was given.
-if test "${enable_fast_install+set}" = set; then
- enableval=$enable_fast_install; p=${PACKAGE-default}
- case $enableval in
- yes) enable_fast_install=yes ;;
- no) enable_fast_install=no ;;
- *)
- enable_fast_install=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_fast_install=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac
-else
- enable_fast_install=yes
-fi
-
-
-{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
-echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
-if test "${lt_cv_path_SED+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- # Loop through the user's path and test for sed and gsed.
-# Then use that list of sed's as ones to test for truncation.
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for lt_ac_prog in sed gsed; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
- lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
- fi
- done
- done
-done
-IFS=$as_save_IFS
-lt_ac_max=0
-lt_ac_count=0
-# Add /usr/xpg4/bin/sed as it is typically found on Solaris
-# along with /bin/sed that truncates output.
-for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
- test ! -f $lt_ac_sed && continue
- cat /dev/null > conftest.in
- lt_ac_count=0
- echo $ECHO_N "0123456789$ECHO_C" >conftest.in
- # Check for GNU sed and select it if it is found.
- if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
- lt_cv_path_SED=$lt_ac_sed
- break
- fi
- while true; do
- cat conftest.in conftest.in >conftest.tmp
- mv conftest.tmp conftest.in
- cp conftest.in conftest.nl
- echo >>conftest.nl
- $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
- cmp -s conftest.out conftest.nl || break
- # 10000 chars as input seems more than enough
- test $lt_ac_count -gt 10 && break
- lt_ac_count=`expr $lt_ac_count + 1`
- if test $lt_ac_count -gt $lt_ac_max; then
- lt_ac_max=$lt_ac_count
- lt_cv_path_SED=$lt_ac_sed
- fi
- done
-done
-
-fi
-
-SED=$lt_cv_path_SED
-
-{ echo "$as_me:$LINENO: result: $SED" >&5
-echo "${ECHO_T}$SED" >&6; }
-
-
-# Check whether --with-gnu-ld was given.
-if test "${with_gnu_ld+set}" = set; then
- withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
-else
- with_gnu_ld=no
-fi
-
-ac_prog=ld
-if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
-echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
- case $host in
- *-*-mingw*)
- # gcc leaves a trailing carriage return which upsets mingw
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- *)
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- esac
- case $ac_prog in
- # Accept absolute paths.
- [\\/]* | ?:[\\/]*)
- re_direlt='/[^/][^/]*/\.\./'
- # Canonicalize the pathname of ld
- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
-elif test "$with_gnu_ld" = yes; then
- { echo "$as_me:$LINENO: checking for GNU ld" >&5
-echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
-else
- { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
-echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
-fi
-if test "${lt_cv_path_LD+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -z "$LD"; then
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some variants of GNU ld only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- test "$with_gnu_ld" != no && break
- ;;
- *)
- test "$with_gnu_ld" != yes && break
- ;;
- esac
- fi
- done
- IFS="$lt_save_ifs"
-else
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
-fi
-fi
-
-LD="$lt_cv_path_LD"
-if test -n "$LD"; then
- { echo "$as_me:$LINENO: result: $LD" >&5
-echo "${ECHO_T}$LD" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
-echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
- { (exit 1); exit 1; }; }
-{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
-echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
-if test "${lt_cv_prog_gnu_ld+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- # I'd rather use --version here, but apparently some GNU lds only accept -v.
-case `$LD -v 2>&1 </dev/null` in
-*GNU* | *'with BFD'*)
- lt_cv_prog_gnu_ld=yes
- ;;
-*)
- lt_cv_prog_gnu_ld=no
- ;;
-esac
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
-echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
-with_gnu_ld=$lt_cv_prog_gnu_ld
-
-
-{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
-echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
-if test "${lt_cv_ld_reload_flag+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_cv_ld_reload_flag='-r'
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
-echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
-reload_flag=$lt_cv_ld_reload_flag
-case $reload_flag in
-"" | " "*) ;;
-*) reload_flag=" $reload_flag" ;;
-esac
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
-case $host_os in
- darwin*)
- if test "$GCC" = yes; then
- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
- else
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
- fi
- ;;
-esac
-
-{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
-echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
-if test "${lt_cv_path_NM+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$NM"; then
- # Let the user override the test.
- lt_cv_path_NM="$NM"
-else
- lt_nm_to_check="${ac_tool_prefix}nm"
- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
- lt_nm_to_check="$lt_nm_to_check nm"
- fi
- for lt_tmp_nm in $lt_nm_to_check; do
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- tmp_nm="$ac_dir/$lt_tmp_nm"
- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- # Tru64's nm complains that /dev/null is an invalid object file
- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
- */dev/null* | *'Invalid file or object type'*)
- lt_cv_path_NM="$tmp_nm -B"
- break
- ;;
- *)
- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
- */dev/null*)
- lt_cv_path_NM="$tmp_nm -p"
- break
- ;;
- *)
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- ;;
- esac
- ;;
- esac
- fi
- done
- IFS="$lt_save_ifs"
- done
- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
-fi
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
-echo "${ECHO_T}$lt_cv_path_NM" >&6; }
-NM="$lt_cv_path_NM"
-
-{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
-echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
-if test "${lt_cv_deplibs_check_method+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_cv_file_magic_cmd='$MAGIC_CMD'
-lt_cv_file_magic_test_file=
-lt_cv_deplibs_check_method='unknown'
-# Need to set the preceding variable on all platforms that support
-# interlibrary dependencies.
-# 'none' -- dependencies not supported.
-# `unknown' -- same as none, but documents that we really don't know.
-# 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
-# 'file_magic [[regex]]' -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given extended regex.
-# If you have `file' or equivalent on your system and you're not sure
-# whether `pass_all' will *always* work, you probably want this one.
-
-case $host_os in
-aix4* | aix5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-beos*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-bsdi[45]*)
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- lt_cv_file_magic_test_file=/shlib/libc.so
- ;;
-
-cygwin*)
- # func_win32_libid is a shell function defined in ltmain.sh
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
- lt_cv_file_magic_cmd='func_win32_libid'
- ;;
-
-mingw* | pw32*)
- # Base MSYS/MinGW do not provide the 'file' command needed by
- # func_win32_libid shell function, so use a weaker test based on 'objdump'.
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
- lt_cv_file_magic_cmd='$OBJDUMP -f'
- ;;
-
-darwin* | rhapsody*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-freebsd* | kfreebsd*-gnu | dragonfly*)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- case $host_cpu in
- i*86 )
- # Not sure whether the presence of OpenBSD here was a mistake.
- # Let's accept both of them until this is cleared up.
- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- ;;
- esac
- else
- lt_cv_deplibs_check_method=pass_all
- fi
- ;;
-
-gnu*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-hpux10.20* | hpux11*)
- lt_cv_file_magic_cmd=/usr/bin/file
- case $host_cpu in
- ia64*)
- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
- ;;
- hppa*64*)
- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
- ;;
- *)
- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
- ;;
- esac
- ;;
-
-interix3*)
- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $LD in
- *-32|*"-32 ") libmagic=32-bit;;
- *-n32|*"-n32 ") libmagic=N32;;
- *-64|*"-64 ") libmagic=64-bit;;
- *) libmagic=never-match;;
- esac
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-# This must be Linux ELF.
-linux*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
- fi
- ;;
-
-newos6*)
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
- ;;
-
-nto-qnx*)
- lt_cv_deplibs_check_method=unknown
- ;;
-
-openbsd*)
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
- fi
- ;;
-
-osf3* | osf4* | osf5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-solaris*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-sysv4 | sysv4.3*)
- case $host_vendor in
- motorola)
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
- ;;
- ncr)
- lt_cv_deplibs_check_method=pass_all
- ;;
- sequent)
- lt_cv_file_magic_cmd='/bin/file'
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
- ;;
- sni)
- lt_cv_file_magic_cmd='/bin/file'
- lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
- lt_cv_file_magic_test_file=/lib/libc.so
- ;;
- siemens)
- lt_cv_deplibs_check_method=pass_all
- ;;
- pc)
- lt_cv_deplibs_check_method=pass_all
- ;;
- esac
- ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-esac
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
-echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
-file_magic_cmd=$lt_cv_file_magic_cmd
-deplibs_check_method=$lt_cv_deplibs_check_method
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
-
-
-
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# If no C compiler flags were specified, use CFLAGS.
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-
-# Check whether --enable-libtool-lock was given.
-if test "${enable_libtool_lock+set}" = set; then
- enableval=$enable_libtool_lock;
-fi
-
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-
-# Some flags need to be propagated to the compiler or linker for good
-# libtool support.
-case $host in
-ia64-*-hpux*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- case `/usr/bin/file conftest.$ac_objext` in
- *ELF-32*)
- HPUX_IA64_MODE="32"
- ;;
- *ELF-64*)
- HPUX_IA64_MODE="64"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-*-*-irix6*)
- # Find out which ABI we are using.
- echo '#line 12533 "configure"' > conftest.$ac_ext
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- if test "$lt_cv_prog_gnu_ld" = yes; then
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -melf32bsmip"
- ;;
- *N32*)
- LD="${LD-ld} -melf32bmipn32"
- ;;
- *64-bit*)
- LD="${LD-ld} -melf64bmip"
- ;;
- esac
- else
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -32"
- ;;
- *N32*)
- LD="${LD-ld} -n32"
- ;;
- *64-bit*)
- LD="${LD-ld} -64"
- ;;
- esac
- fi
- fi
- rm -rf conftest*
- ;;
-
-x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- case `/usr/bin/file conftest.o` in
- *32-bit*)
- case $host in
- x86_64-*linux*)
- LD="${LD-ld} -m elf_i386"
- ;;
- ppc64-*linux*|powerpc64-*linux*)
- LD="${LD-ld} -m elf32ppclinux"
- ;;
- s390x-*linux*)
- LD="${LD-ld} -m elf_s390"
- ;;
- sparc64-*linux*)
- LD="${LD-ld} -m elf32_sparc"
- ;;
- esac
- ;;
- *64-bit*)
- case $host in
- x86_64-*linux*)
- LD="${LD-ld} -m elf_x86_64"
- ;;
- ppc*-*linux*|powerpc*-*linux*)
- LD="${LD-ld} -m elf64ppc"
- ;;
- s390*-*linux*)
- LD="${LD-ld} -m elf64_s390"
- ;;
- sparc*-*linux*)
- LD="${LD-ld} -m elf64_sparc"
- ;;
- esac
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-
-*-*-sco3.2v5*)
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -belf"
- { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
-echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
-if test "${lt_cv_cc_needs_belf+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- 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
-
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- lt_cv_cc_needs_belf=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- lt_cv_cc_needs_belf=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
- 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
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
-echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- CFLAGS="$SAVE_CFLAGS"
- fi
- ;;
-sparc*-*solaris*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- case `/usr/bin/file conftest.o` in
- *64-bit*)
- case $lt_cv_prog_gnu_ld in
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
- *) LD="${LD-ld} -64" ;;
- esac
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-
-
-esac
-
-need_locks="$enable_libtool_lock"
-
-
-
-{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
-echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
-if test "${ac_cv_header_stdc+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_header_stdc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- 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 >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <string.h>
-
-_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 >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdlib.h>
-
-_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 >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ctype.h>
-#include <stdlib.h>
-#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
-rm -f conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-fi
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
-echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define STDC_HEADERS 1
-_ACEOF
-
-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=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-
-#include <$ac_header>
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- eval "$as_ac_Header=yes"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- eval "$as_ac_Header=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-
-for ac_header in dlfcn.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- { echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
- # Is the header compilable?
-{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <$ac_header>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
- ( cat <<\_ASBOX
-## --------------------------------------------- ##
-## Report this to vserver@list.linux-vserver.org ##
-## --------------------------------------------- ##
-_ASBOX
- ) | sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-
-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
- (test "X$CXX" != "Xg++"))) ; then
- ac_ext=cpp
-ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
-echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
-if test -z "$CXXCPP"; then
- if test "${ac_cv_prog_CXXCPP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- # Double quotes because CXXCPP needs to be expanded
- for CXXCPP in "$CXX -E" "/lib/cpp"
- do
- ac_preproc_ok=false
-for ac_cxx_preproc_warn_flag in '' yes
-do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> 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 >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Broken: fails on valid input.
-continue
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- }; then
- # Broken: success on invalid input.
-continue
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then
- break
-fi
-
- done
- ac_cv_prog_CXXCPP=$CXXCPP
-
-fi
- CXXCPP=$ac_cv_prog_CXXCPP
-else
- ac_cv_prog_CXXCPP=$CXXCPP
-fi
-{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
-echo "${ECHO_T}$CXXCPP" >&6; }
-ac_preproc_ok=false
-for ac_cxx_preproc_warn_flag in '' yes
-do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> 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 >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Broken: fails on valid input.
-continue
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- }; then
- # Broken: success on invalid input.
-continue
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then
- :
-else
- { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
-See \`config.log' for more details." >&5
-echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-ac_ext=cpp
-ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-
-fi
-
-ac_ext=f
-ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
-ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_f77_compiler_gnu
-if test -n "$ac_tool_prefix"; then
- for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
- 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
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_F77+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$F77"; then
- ac_cv_prog_F77="$F77" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-F77=$ac_cv_prog_F77
-if test -n "$F77"; then
- { echo "$as_me:$LINENO: result: $F77" >&5
-echo "${ECHO_T}$F77" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$F77" && break
- done
-fi
-if test -z "$F77"; then
- ac_ct_F77=$F77
- for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$ac_ct_F77"; then
- ac_cv_prog_ac_ct_F77="$ac_ct_F77" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_F77="$ac_prog"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_F77=$ac_cv_prog_ac_ct_F77
-if test -n "$ac_ct_F77"; then
- { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
-echo "${ECHO_T}$ac_ct_F77" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$ac_ct_F77" && break
-done
-
- if test "x$ac_ct_F77" = x; then
- F77=""
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-ac_tool_warned=yes ;;
-esac
- F77=$ac_ct_F77
- fi
-fi
-
-
-# Provide some information about the compiler.
-echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
-ac_compiler=`set X $ac_compile; echo $2`
-{ (ac_try="$ac_compiler --version >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compiler --version >&5") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-{ (ac_try="$ac_compiler -v >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compiler -v >&5") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-{ (ac_try="$ac_compiler -V >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compiler -V >&5") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-rm -f a.out
-
-# If we don't use `.F' as extension, the preprocessor is not run on the
-# input file. (Note that this only needs to work for GNU compilers.)
-ac_save_ext=$ac_ext
-ac_ext=F
-{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
-echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
-if test "${ac_cv_f77_compiler_gnu+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
- program main
-#ifndef __GNUC__
- choke me
-#endif
-
- end
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_f77_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_compiler_gnu=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_compiler_gnu=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-ac_cv_f77_compiler_gnu=$ac_compiler_gnu
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
-echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
-ac_ext=$ac_save_ext
-ac_test_FFLAGS=${FFLAGS+set}
-ac_save_FFLAGS=$FFLAGS
-FFLAGS=
-{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
-echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
-if test "${ac_cv_prog_f77_g+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- FFLAGS=-g
-cat >conftest.$ac_ext <<_ACEOF
- program main
-
- end
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_f77_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_prog_f77_g=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_prog_f77_g=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
-echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
-if test "$ac_test_FFLAGS" = set; then
- FFLAGS=$ac_save_FFLAGS
-elif test $ac_cv_prog_f77_g = yes; then
- if test "x$ac_cv_f77_compiler_gnu" = xyes; then
- FFLAGS="-g -O2"
- else
- FFLAGS="-g"
- fi
-else
- if test "x$ac_cv_f77_compiler_gnu" = xyes; then
- FFLAGS="-O2"
- else
- FFLAGS=
- fi
-fi
-
-G77=`test $ac_compiler_gnu = yes && echo yes`
-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
-
-
-
-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
-
-# find the maximum length of command line arguments
-{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
-echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
-if test "${lt_cv_sys_max_cmd_len+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- i=0
- teststring="ABCD"
-
- case $build_os in
- msdosdjgpp*)
- # On DJGPP, this test can blow up pretty badly due to problems in libc
- # (any single argument exceeding 2000 bytes causes a buffer overrun
- # during glob expansion). Even if it were fixed, the result of this
- # check would be larger than it should be.
- lt_cv_sys_max_cmd_len=12288; # 12K is about right
- ;;
-
- gnu*)
- # Under GNU Hurd, this test is not required because there is
- # no limit to the length of command line arguments.
- # Libtool will interpret -1 as no limit whatsoever
- lt_cv_sys_max_cmd_len=-1;
- ;;
-
- cygwin* | mingw*)
- # On Win9x/ME, this test blows up -- it succeeds, but takes
- # about 5 minutes as the teststring grows exponentially.
- # Worse, since 9x/ME are not pre-emptively multitasking,
- # you end up with a "frozen" computer, even though with patience
- # the test eventually succeeds (with a max line length of 256k).
- # Instead, let's just punt: use the minimum linelength reported by
- # all of the supported platforms: 8192 (on NT/2K/XP).
- lt_cv_sys_max_cmd_len=8192;
- ;;
-
- amigaos*)
- # On AmigaOS with pdksh, this test takes hours, literally.
- # So we just punt and use a minimum line length of 8192.
- lt_cv_sys_max_cmd_len=8192;
- ;;
-
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
- # This has been around since 386BSD, at least. Likely further.
- if test -x /sbin/sysctl; then
- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
- elif test -x /usr/sbin/sysctl; then
- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
- else
- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
- fi
- # And add a safety zone
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
- ;;
-
- interix*)
- # We know the value 262144 and hardcode it with a safety zone (like BSD)
- lt_cv_sys_max_cmd_len=196608
- ;;
-
- osf*)
- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
- # nice to cause kernel panics so lets avoid the loop below.
- # First set a reasonable default.
- lt_cv_sys_max_cmd_len=16384
- #
- if test -x /sbin/sysconfig; then
- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
- *1*) lt_cv_sys_max_cmd_len=-1 ;;
- esac
- fi
- ;;
- sco3.2v5*)
- lt_cv_sys_max_cmd_len=102400
- ;;
- sysv5* | sco5v6* | sysv4.2uw2*)
- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
- if test -n "$kargmax"; then
- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
- else
- lt_cv_sys_max_cmd_len=32768
- fi
- ;;
- *)
- # If test is not a shell built-in, we'll probably end up computing a
- # maximum length that is only half of the actual maximum length, but
- # we can't tell.
- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
- while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
- = "XX$teststring") >/dev/null 2>&1 &&
- new_result=`expr "X$teststring" : ".*" 2>&1` &&
- lt_cv_sys_max_cmd_len=$new_result &&
- test $i != 17 # 1/2 MB should be enough
- do
- i=`expr $i + 1`
- teststring=$teststring$teststring
- done
- teststring=
- # Add a significant safety factor because C++ compilers can tack on massive
- # amounts of additional arguments before passing them to the linker.
- # It appears as though 1/2 is a usable value.
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
- ;;
- esac
-
-fi
-
-if test -n $lt_cv_sys_max_cmd_len ; then
- { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
-echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
-else
- { echo "$as_me:$LINENO: result: none" >&5
-echo "${ECHO_T}none" >&6; }
-fi
-
-
-
-
-# Check for command to grab the raw symbol name followed by C symbol from nm.
-{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
-echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
-if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
-# These are sane defaults that work on at least a few old systems.
-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
-
-# Character class describing NM global symbol codes.
-symcode='[BCDEGRST]'
-
-# Regexp to match symbols that can be accessed directly from C.
-sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
-
-# Transform an extracted symbol line into a proper C declaration
-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
-
-# Transform an extracted symbol line into symbol name and symbol address
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
-
-# Define system-specific variables.
-case $host_os in
-aix*)
- symcode='[BCDT]'
- ;;
-cygwin* | mingw* | pw32*)
- symcode='[ABCDGISTW]'
- ;;
-hpux*) # Its linker distinguishes data from code symbols
- if test "$host_cpu" = ia64; then
- symcode='[ABCDEGRST]'
- fi
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- ;;
-linux*)
- if test "$host_cpu" = ia64; then
- symcode='[ABCDGIRSTW]'
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- fi
- ;;
-irix* | nonstopux*)
- symcode='[BCDEGRST]'
- ;;
-osf*)
- symcode='[BCDEGQRST]'
- ;;
-solaris*)
- symcode='[BDRT]'
- ;;
-sco3.2v5*)
- symcode='[DT]'
- ;;
-sysv4.2uw2*)
- symcode='[DT]'
- ;;
-sysv5* | sco5v6* | unixware* | OpenUNIX*)
- symcode='[ABDT]'
- ;;
-sysv4)
- symcode='[DFNSTU]'
- ;;
-esac
-
-# Handle CRLF in mingw tool chain
-opt_cr=
-case $build_os in
-mingw*)
- opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
- ;;
-esac
-
-# If we're using GNU nm, then use its standard symbol codes.
-case `$NM -V 2>&1` in
-*GNU* | *'with BFD'*)
- symcode='[ABCDGIRSTW]' ;;
-esac
-
-# Try without a prefix undercore, then with it.
-for ac_symprfx in "" "_"; do
-
- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
- symxfrm="\\1 $ac_symprfx\\2 \\2"
-
- # Write the raw and C identifiers.
- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
-
- # Check to see that the pipe works correctly.
- pipe_works=no
-
- rm -f conftest*
- cat > conftest.$ac_ext <<EOF
-#ifdef __cplusplus
-extern "C" {
-#endif
-char nm_test_var;
-void nm_test_func(){}
-#ifdef __cplusplus
-}
-#endif
-int main(){nm_test_var='a';nm_test_func();return(0);}
-EOF
-
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- # Now try to grab the symbols.
- nlist=conftest.nm
- if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
- (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && test -s "$nlist"; then
- # Try sorting and uniquifying the output.
- if sort "$nlist" | uniq > "$nlist"T; then
- mv -f "$nlist"T "$nlist"
- else
- rm -f "$nlist"T
- fi
-
- # Make sure that we snagged all the symbols we need.
- if grep ' nm_test_var$' "$nlist" >/dev/null; then
- if grep ' nm_test_func$' "$nlist" >/dev/null; then
- cat <<EOF > conftest.$ac_ext
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-EOF
- # Now generate the symbol file.
- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
-
- cat <<EOF >> conftest.$ac_ext
-#if defined (__STDC__) && __STDC__
-# define lt_ptr_t void *
-#else
-# define lt_ptr_t char *
-# define const
-#endif
-
-/* The mapping between symbol names and symbols. */
-const struct {
- const char *name;
- lt_ptr_t address;
-}
-lt_preloaded_symbols[] =
-{
-EOF
- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
- cat <<\EOF >> conftest.$ac_ext
- {0, (lt_ptr_t) 0}
-};
-
-#ifdef __cplusplus
-}
-#endif
-EOF
- # Now try linking the two files.
- mv conftest.$ac_objext conftstm.$ac_objext
- lt_save_LIBS="$LIBS"
- lt_save_CFLAGS="$CFLAGS"
- LIBS="conftstm.$ac_objext"
- CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
- if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && test -s conftest${ac_exeext}; then
- pipe_works=yes
- fi
- LIBS="$lt_save_LIBS"
- CFLAGS="$lt_save_CFLAGS"
- else
- echo "cannot find nm_test_func in $nlist" >&5
- fi
- else
- echo "cannot find nm_test_var in $nlist" >&5
- fi
- else
- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
- fi
- else
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest* conftst*
-
- # Do not use the global_symbol_pipe unless it works.
- if test "$pipe_works" = yes; then
- break
- else
- lt_cv_sys_global_symbol_pipe=
- fi
-done
-
-fi
-
-if test -z "$lt_cv_sys_global_symbol_pipe"; then
- lt_cv_sys_global_symbol_to_cdecl=
-fi
-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
- { echo "$as_me:$LINENO: result: failed" >&5
-echo "${ECHO_T}failed" >&6; }
-else
- { echo "$as_me:$LINENO: result: ok" >&5
-echo "${ECHO_T}ok" >&6; }
-fi
-
-{ echo "$as_me:$LINENO: checking for objdir" >&5
-echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
-if test "${lt_cv_objdir+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- rm -f .libs 2>/dev/null
-mkdir .libs 2>/dev/null
-if test -d .libs; then
- lt_cv_objdir=.libs
-else
- # MS-DOS does not allow filenames that begin with a dot.
- lt_cv_objdir=_libs
-fi
-rmdir .libs 2>/dev/null
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
-echo "${ECHO_T}$lt_cv_objdir" >&6; }
-objdir=$lt_cv_objdir
-
-
-
-
-
-case $host_os in
-aix3*)
- # AIX sometimes has problems with the GCC collect2 program. For some
- # reason, if we set the COLLECT_NAMES environment variable, the problems
- # vanish in a puff of smoke.
- if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
- fi
- ;;
-esac
-
-# Sed substitution that helps us do robust quoting. It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed='sed -e 1s/^X//'
-sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
-
-# Same as above, but do not quote variable references.
-double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
-
-# Sed substitution to delay expansion of an escaped shell variable in a
-# double_quote_subst'ed string.
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
-
-# Sed substitution to avoid accidental globbing in evaled expressions
-no_glob_subst='s/\*/\\\*/g'
-
-# Constants:
-rm="rm -f"
-
-# Global variables:
-default_ofile=libtool
-can_build_shared=yes
-
-# All known linkers require a `.a' archive for static linking (except MSVC,
-# which needs '.lib').
-libext=a
-ltmain="$ac_aux_dir/ltmain.sh"
-ofile="$default_ofile"
-with_gnu_ld="$lt_cv_prog_gnu_ld"
-
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
-set dummy ${ac_tool_prefix}ar; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_AR+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$AR"; then
- ac_cv_prog_AR="$AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_AR="${ac_tool_prefix}ar"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-AR=$ac_cv_prog_AR
-if test -n "$AR"; then
- { echo "$as_me:$LINENO: result: $AR" >&5
-echo "${ECHO_T}$AR" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_AR"; then
- ac_ct_AR=$AR
- # Extract the first word of "ar", so it can be a program name with args.
-set dummy ar; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$ac_ct_AR"; then
- ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_AR="ar"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_AR=$ac_cv_prog_ac_ct_AR
-if test -n "$ac_ct_AR"; then
- { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
-echo "${ECHO_T}$ac_ct_AR" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
- if test "x$ac_ct_AR" = x; then
- AR="false"
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-ac_tool_warned=yes ;;
-esac
- AR=$ac_ct_AR
- fi
-else
- AR="$ac_cv_prog_AR"
-fi
-
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
-set dummy ${ac_tool_prefix}ranlib; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_RANLIB+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-RANLIB=$ac_cv_prog_RANLIB
-if test -n "$RANLIB"; then
- { echo "$as_me:$LINENO: result: $RANLIB" >&5
-echo "${ECHO_T}$RANLIB" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_RANLIB"; then
- ac_ct_RANLIB=$RANLIB
- # Extract the first word of "ranlib", so it can be a program name with args.
-set dummy ranlib; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$ac_ct_RANLIB"; then
- ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_RANLIB="ranlib"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
-if test -n "$ac_ct_RANLIB"; then
- { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
-echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
- if test "x$ac_ct_RANLIB" = x; then
- RANLIB=":"
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-ac_tool_warned=yes ;;
-esac
- RANLIB=$ac_ct_RANLIB
- fi
-else
- RANLIB="$ac_cv_prog_RANLIB"
-fi
-
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
-set dummy ${ac_tool_prefix}strip; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_STRIP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$STRIP"; then
- ac_cv_prog_STRIP="$STRIP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-STRIP=$ac_cv_prog_STRIP
-if test -n "$STRIP"; then
- { echo "$as_me:$LINENO: result: $STRIP" >&5
-echo "${ECHO_T}$STRIP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_STRIP"; then
- ac_ct_STRIP=$STRIP
- # Extract the first word of "strip", so it can be a program name with args.
-set dummy strip; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$ac_ct_STRIP"; then
- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_STRIP="strip"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
-if test -n "$ac_ct_STRIP"; then
- { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
-echo "${ECHO_T}$ac_ct_STRIP" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
- if test "x$ac_ct_STRIP" = x; then
- STRIP=":"
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet. If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-ac_tool_warned=yes ;;
-esac
- STRIP=$ac_ct_STRIP
- fi
-else
- STRIP="$ac_cv_prog_STRIP"
-fi
-
-
-old_CC="$CC"
-old_CFLAGS="$CFLAGS"
-
-# Set sane defaults for various variables
-test -z "$AR" && AR=ar
-test -z "$AR_FLAGS" && AR_FLAGS=cru
-test -z "$AS" && AS=as
-test -z "$CC" && CC=cc
-test -z "$LTCC" && LTCC=$CC
-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-test -z "$LD" && LD=ld
-test -z "$LN_S" && LN_S="ln -s"
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
-test -z "$NM" && NM=nm
-test -z "$SED" && SED=sed
-test -z "$OBJDUMP" && OBJDUMP=objdump
-test -z "$RANLIB" && RANLIB=:
-test -z "$STRIP" && STRIP=:
-test -z "$ac_objext" && ac_objext=o
-
-# Determine commands to create old-style static archives.
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
-old_postinstall_cmds='chmod 644 $oldlib'
-old_postuninstall_cmds=
-
-if test -n "$RANLIB"; then
- case $host_os in
- openbsd*)
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
- ;;
- *)
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
- ;;
- esac
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
-fi
-
-for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
-done
-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
-
-
-# Only perform the check for file, if the check method requires it
-case $deplibs_check_method in
-file_magic*)
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
- { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
-echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
-if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $MAGIC_CMD in
-[\\/*] | ?:[\\/]*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
-*)
- lt_save_MAGIC_CMD="$MAGIC_CMD"
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
- for ac_dir in $ac_dummy; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/${ac_tool_prefix}file; then
- lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- $EGREP "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
-
-EOF
- fi ;;
- esac
- fi
- break
- fi
- done
- IFS="$lt_save_ifs"
- MAGIC_CMD="$lt_save_MAGIC_CMD"
- ;;
-esac
-fi
-
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
- { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
-echo "${ECHO_T}$MAGIC_CMD" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-if test -z "$lt_cv_path_MAGIC_CMD"; then
- if test -n "$ac_tool_prefix"; then
- { echo "$as_me:$LINENO: checking for file" >&5
-echo $ECHO_N "checking for file... $ECHO_C" >&6; }
-if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $MAGIC_CMD in
-[\\/*] | ?:[\\/]*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
-*)
- lt_save_MAGIC_CMD="$MAGIC_CMD"
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
- for ac_dir in $ac_dummy; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/file; then
- lt_cv_path_MAGIC_CMD="$ac_dir/file"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- $EGREP "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
-
-EOF
- fi ;;
- esac
- fi
- break
- fi
- done
- IFS="$lt_save_ifs"
- MAGIC_CMD="$lt_save_MAGIC_CMD"
- ;;
-esac
-fi
-
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
- { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
-echo "${ECHO_T}$MAGIC_CMD" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
- else
- MAGIC_CMD=:
- fi
-fi
-
- fi
- ;;
-esac
-
-enable_dlopen=no
-enable_win32_dll=no
-
-# Check whether --enable-libtool-lock was given.
-if test "${enable_libtool_lock+set}" = set; then
- enableval=$enable_libtool_lock;
-fi
-
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-
-
-# Check whether --with-pic was given.
-if test "${with_pic+set}" = set; then
- withval=$with_pic; pic_mode="$withval"
-else
- pic_mode=default
-fi
-
-test -z "$pic_mode" && pic_mode=default
-
-# Use C for the default configuration in the libtool script
-tagname=
-lt_save_CC="$CC"
-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
-
-
-# Source file extension for C test sources.
-ac_ext=c
-
-# Object file extension for compiled C test sources.
-objext=o
-objext=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="int some_variable = 0;\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='int main(){return(0);}\n'
-
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# If no C compiler flags were specified, use CFLAGS.
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-
-
-# save warnings/boilerplate of simple test code
-ac_outfile=conftest.$ac_objext
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_compiler_boilerplate=`cat conftest.err`
-$rm conftest*
-
-ac_outfile=conftest.$ac_objext
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_linker_boilerplate=`cat conftest.err`
-$rm conftest*
-
-
-
-lt_prog_compiler_no_builtin_flag=
-
-if test "$GCC" = yes; then
- lt_prog_compiler_no_builtin_flag=' -fno-builtin'
-
-
-{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
-echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
-if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_cv_prog_compiler_rtti_exceptions=no
- ac_outfile=conftest.$ac_objext
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="-fno-rtti -fno-exceptions"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14561: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&5
- echo "$as_me:14565: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings other than the usual output.
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_rtti_exceptions=yes
- fi
- fi
- $rm conftest*
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
-echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
-
-if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
- lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
-else
- :
-fi
-
-fi
-
-lt_prog_compiler_wl=
-lt_prog_compiler_pic=
-lt_prog_compiler_static=
-
-{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
-echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
-
- if test "$GCC" = yes; then
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_static='-static'
-
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static='-Bstatic'
- fi
- ;;
-
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
- ;;
-
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- lt_prog_compiler_pic='-DDLL_EXPORT'
- ;;
-
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- lt_prog_compiler_pic='-fno-common'
- ;;
-
- interix3*)
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
- # Instead, we relocate shared libraries at runtime.
- ;;
-
- msdosdjgpp*)
- # Just because we use GCC doesn't mean we suddenly get shared libraries
- # on systems that don't support them.
- lt_prog_compiler_can_build_shared=no
- enable_shared=no
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- lt_prog_compiler_pic=-Kconform_pic
- fi
- ;;
-
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- lt_prog_compiler_pic='-fPIC'
- ;;
- esac
- ;;
-
- *)
- lt_prog_compiler_pic='-fPIC'
- ;;
- esac
- else
- # PORTME Check for flag to pass linker flags through the system compiler.
- case $host_os in
- aix*)
- lt_prog_compiler_wl='-Wl,'
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static='-Bstatic'
- else
- lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case $cc_basename in
- xlc*)
- lt_prog_compiler_pic='-qnocommon'
- lt_prog_compiler_wl='-Wl,'
- ;;
- esac
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- lt_prog_compiler_pic='-DDLL_EXPORT'
- ;;
-
- hpux9* | hpux10* | hpux11*)
- lt_prog_compiler_wl='-Wl,'
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- lt_prog_compiler_pic='+Z'
- ;;
- esac
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
- lt_prog_compiler_static='${wl}-a ${wl}archive'
- ;;
-
- irix5* | irix6* | nonstopux*)
- lt_prog_compiler_wl='-Wl,'
- # PIC (with -KPIC) is the default.
- lt_prog_compiler_static='-non_shared'
- ;;
-
- newsos6)
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-Bstatic'
- ;;
-
- linux*)
- case $cc_basename in
- icc* | ecc*)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-static'
- ;;
- pgcc* | pgf77* | pgf90* | pgf95*)
- # Portland Group compilers (*not* the Pentium gcc compiler,
- # which looks to be a dead project)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_pic='-fpic'
- lt_prog_compiler_static='-Bstatic'
- ;;
- ccc*)
- lt_prog_compiler_wl='-Wl,'
- # All Alpha code is PIC.
- lt_prog_compiler_static='-non_shared'
- ;;
- esac
- ;;
-
- osf3* | osf4* | osf5*)
- lt_prog_compiler_wl='-Wl,'
- # All OSF/1 code is PIC.
- lt_prog_compiler_static='-non_shared'
- ;;
-
- solaris*)
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-Bstatic'
- case $cc_basename in
- f77* | f90* | f95*)
- lt_prog_compiler_wl='-Qoption ld ';;
- *)
- lt_prog_compiler_wl='-Wl,';;
- esac
- ;;
-
- sunos4*)
- lt_prog_compiler_wl='-Qoption ld '
- lt_prog_compiler_pic='-PIC'
- lt_prog_compiler_static='-Bstatic'
- ;;
-
- sysv4 | sysv4.2uw2* | sysv4.3*)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-Bstatic'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec ;then
- lt_prog_compiler_pic='-Kconform_pic'
- lt_prog_compiler_static='-Bstatic'
- fi
- ;;
-
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-Bstatic'
- ;;
-
- unicos*)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_can_build_shared=no
- ;;
-
- uts4*)
- lt_prog_compiler_pic='-pic'
- lt_prog_compiler_static='-Bstatic'
- ;;
-
- *)
- lt_prog_compiler_can_build_shared=no
- ;;
- esac
- fi
-
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
-echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
-
-#
-# Check to make sure the PIC flag actually works.
-#
-if test -n "$lt_prog_compiler_pic"; then
-
-{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
-echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
-if test "${lt_prog_compiler_pic_works+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_prog_compiler_pic_works=no
- ac_outfile=conftest.$ac_objext
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14829: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&5
- echo "$as_me:14833: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings other than the usual output.
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
- lt_prog_compiler_pic_works=yes
- fi
- fi
- $rm conftest*
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
-echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
-
-if test x"$lt_prog_compiler_pic_works" = xyes; then
- case $lt_prog_compiler_pic in
- "" | " "*) ;;
- *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
- esac
-else
- lt_prog_compiler_pic=
- lt_prog_compiler_can_build_shared=no
-fi
-
-fi
-case $host_os in
- # For platforms which do not support PIC, -DPIC is meaningless:
- *djgpp*)
- lt_prog_compiler_pic=
- ;;
- *)
- lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
- ;;
-esac
-
-#
-# Check to make sure the static flag actually works.
-#
-wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
-{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
-echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
-if test "${lt_prog_compiler_static_works+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_prog_compiler_static_works=no
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
- # The linker can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- # Append any errors to the config.log.
- cat conftest.err 1>&5
- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if diff conftest.exp conftest.er2 >/dev/null; then
- lt_prog_compiler_static_works=yes
- fi
- else
- lt_prog_compiler_static_works=yes
- fi
- fi
- $rm conftest*
- LDFLAGS="$save_LDFLAGS"
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
-echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
-
-if test x"$lt_prog_compiler_static_works" = xyes; then
- :
-else
- lt_prog_compiler_static=
-fi
-
-
-{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
-echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
-if test "${lt_cv_prog_compiler_c_o+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_cv_prog_compiler_c_o=no
- $rm -r conftest 2>/dev/null
- mkdir conftest
- cd conftest
- mkdir out
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- lt_compiler_flag="-o out/conftest2.$ac_objext"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14933: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>out/conftest.err)
- ac_status=$?
- cat out/conftest.err >&5
- echo "$as_me:14937: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
- then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_c_o=yes
- fi
- fi
- chmod u+w . 2>&5
- $rm conftest*
- # SGI C++ compiler will create directory out/ii_files/ for
- # template instantiation
- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
- $rm out/* && rmdir out
- cd ..
- rmdir conftest
- $rm conftest*
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
-echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
-
-
-hard_links="nottested"
-if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
- # do not overwrite the value of need_locks provided by the user
- { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
-echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
- hard_links=yes
- $rm conftest*
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- touch conftest.a
- ln conftest.a conftest.b 2>&5 || hard_links=no
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- { echo "$as_me:$LINENO: result: $hard_links" >&5
-echo "${ECHO_T}$hard_links" >&6; }
- if test "$hard_links" = no; then
- { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
-echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
- need_locks=warn
- fi
-else
- need_locks=no
-fi
-
-{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
-echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
-
- runpath_var=
- allow_undefined_flag=
- enable_shared_with_static_runtimes=no
- archive_cmds=
- archive_expsym_cmds=
- old_archive_From_new_cmds=
- old_archive_from_expsyms_cmds=
- export_dynamic_flag_spec=
- whole_archive_flag_spec=
- thread_safe_flag_spec=
- hardcode_libdir_flag_spec=
- hardcode_libdir_flag_spec_ld=
- hardcode_libdir_separator=
- hardcode_direct=no
- hardcode_minus_L=no
- hardcode_shlibpath_var=unsupported
- link_all_deplibs=unknown
- hardcode_automatic=no
- module_cmds=
- module_expsym_cmds=
- always_export_symbols=no
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- # include_expsyms should be a list of space-separated symbols to be *always*
- # included in the symbol list
- include_expsyms=
- # exclude_expsyms can be an extended regexp of symbols to exclude
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
- # as well as any symbol that contains `d'.
- exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
- # platforms (ab)use it in PIC code, but their linkers get confused if
- # the symbol is explicitly referenced. Since portable code cannot
- # rely on this symbol name, it's probably fine to never include it in
- # preloaded symbol tables.
- extract_expsyms_cmds=
- # Just being paranoid about ensuring that cc_basename is set.
- for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
-done
-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
-
- case $host_os in
- cygwin* | mingw* | pw32*)
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- if test "$GCC" != yes; then
- with_gnu_ld=no
- fi
- ;;
- interix*)
- # we just hope/assume this is gcc and not c89 (= MSVC++)
- with_gnu_ld=yes
- ;;
- openbsd*)
- with_gnu_ld=no
- ;;
- esac
-
- ld_shlibs=yes
- if test "$with_gnu_ld" = yes; then
- # If archive_cmds runs LD, not CC, wlarc should be empty
- wlarc='${wl}'
-
- # Set some defaults for GNU ld with shared library support. These
- # are reset later if shared libraries are not supported. Putting them
- # here allows them to be overridden if necessary.
- runpath_var=LD_RUN_PATH
- hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec='${wl}--export-dynamic'
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
- whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- whole_archive_flag_spec=
- fi
- supports_anon_versioning=no
- case `$LD -v 2>/dev/null` in
- *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
- *\ 2.11.*) ;; # other 2.11 versions
- *) supports_anon_versioning=yes ;;
- esac
-
- # See if GNU ld supports shared libraries.
- case $host_os in
- aix3* | aix4* | aix5*)
- # On AIX/PPC, the GNU linker is very broken
- if test "$host_cpu" != ia64; then
- ld_shlibs=no
- cat <<EOF 1>&2
-
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support. If you
-*** really care for shared libraries, you may want to modify your PATH
-*** so that a non-GNU linker is found, and then restart.
-
-EOF
- fi
- ;;
-
- amigaos*)
- archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
-
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- # that the semantics of dynamic libraries on AmigaOS, at least up
- # to version 4, is to share data among multiple programs linked
- # with the same dynamic library. Since this doesn't match the
- # behavior of shared libraries on other platforms, we can't use
- # them.
- ld_shlibs=no
- ;;
-
- beos*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- allow_undefined_flag=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
-
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
- # as there is no search path for DLLs.
- hardcode_libdir_flag_spec='-L$libdir'
- allow_undefined_flag=unsupported
- always_export_symbols=no
- enable_shared_with_static_runtimes=yes
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
-
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- else
- ld_shlibs=no
- fi
- ;;
-
- interix3*)
- hardcode_direct=no
- hardcode_shlibpath_var=no
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- export_dynamic_flag_spec='${wl}-E'
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
- # Instead, shared libraries are loaded at an image base (0x10000000 by
- # default) and relocated if they conflict, which is a slow very memory
- # consuming and fragmenting process. To avoid this, we pick a random,
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- ;;
-
- linux*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- tmp_addflag=
- case $cc_basename,$host_cpu in
- pgcc*) # Portland Group C compiler
- whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_addflag=' $pic_flag'
- ;;
- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
- whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_addflag=' $pic_flag -Mnomain' ;;
- ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
- tmp_addflag=' -i_dynamic' ;;
- efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
- tmp_addflag=' -i_dynamic -nofor_main' ;;
- ifc* | ifort*) # Intel Fortran compiler
- tmp_addflag=' -nofor_main' ;;
- esac
- archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-
- if test $supports_anon_versioning = yes; then
- archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
- $echo "local: *; };" >> $output_objdir/$libname.ver~
- $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
- fi
- else
- ld_shlibs=no
- fi
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
- wlarc=
- else
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- fi
- ;;
-
- solaris*)
- if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
- ld_shlibs=no
- cat <<EOF 1>&2
-
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
-*** create shared libraries on Solaris systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.9.1 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-EOF
- elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
-
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
- case `$LD -v 2>&1` in
- *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
- ld_shlibs=no
- cat <<_LT_EOF 1>&2
-
-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
-*** reliably create shared libraries on SCO systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-_LT_EOF
- ;;
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
- esac
- ;;
-
- sunos4*)
- archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- wlarc=
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
-
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
- esac
-
- if test "$ld_shlibs" = no; then
- runpath_var=
- hardcode_libdir_flag_spec=
- export_dynamic_flag_spec=
- whole_archive_flag_spec=
- fi
- else
- # PORTME fill in a description of your system's linker (not GNU ld)
- case $host_os in
- aix3*)
- allow_undefined_flag=unsupported
- always_export_symbols=yes
- archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
- # Note: this linker hardcodes the directories in LIBPATH if there
- # are no directories specified by -L.
- hardcode_minus_L=yes
- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
- # Neither direct hardcoding nor static linking is supported with a
- # broken collect2.
- hardcode_direct=unsupported
- fi
- ;;
-
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- else
- export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- fi
- aix_use_runtimelinking=no
-
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[23]|aix4.[23].*|aix5*)
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
- aix_use_runtimelinking=yes
- break
- fi
- done
- ;;
- esac
-
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
-
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
- archive_cmds=''
- hardcode_direct=yes
- hardcode_libdir_separator=':'
- link_all_deplibs=yes
-
- if test "$GCC" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- hardcode_direct=yes
- else
- # We have old collect2
- hardcode_direct=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- hardcode_minus_L=yes
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_libdir_separator=
- fi
- ;;
- esac
- shared_flag='-shared'
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
-
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- always_export_symbols=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- allow_undefined_flag='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
-
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
- archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
- allow_undefined_flag="-z nodefs"
- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
-
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- no_undefined_flag=' ${wl}-bernotok'
- allow_undefined_flag=' ${wl}-berok'
- # Exported symbols can be pulled into shared objects from archives
- whole_archive_flag_spec='$convenience'
- archive_cmds_need_lc=yes
- # This is similar to how AIX traditionally builds its shared libraries.
- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
-
- amigaos*)
- archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- # see comment about different semantics on the GNU ld section
- ld_shlibs=no
- ;;
-
- bsdi[45]*)
- export_dynamic_flag_spec=-rdynamic
- ;;
-
- cygwin* | mingw* | pw32*)
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- hardcode_libdir_flag_spec=' '
- allow_undefined_flag=unsupported
- # Tell ltmain to make .lib files, not .a files.
- libext=lib
- # Tell ltmain to make .dll files, not .so files.
- shrext_cmds=".dll"
- # FIXME: Setting linknames here is a bad hack.
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
- # The linker will automatically build a .lib file if we build a DLL.
- old_archive_From_new_cmds='true'
- # FIXME: Should let the user specify the lib program.
- old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
- fix_srcfile_path='`cygpath -w "$srcfile"`'
- enable_shared_with_static_runtimes=yes
- ;;
-
- darwin* | rhapsody*)
- case $host_os in
- rhapsody* | darwin1.[012])
- allow_undefined_flag='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[012])
- allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- archive_cmds_need_lc=no
- hardcode_direct=no
- hardcode_automatic=yes
- hardcode_shlibpath_var=unsupported
- whole_archive_flag_spec=''
- link_all_deplibs=yes
- if test "$GCC" = yes ; then
- output_verbose_link_cmd='echo'
- archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- case $cc_basename in
- xlc*)
- output_verbose_link_cmd='echo'
- archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
- module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- ld_shlibs=no
- ;;
- esac
- fi
- ;;
-
- dgux*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_shlibpath_var=no
- ;;
-
- freebsd1*)
- ld_shlibs=no
- ;;
-
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- # support. Future versions do this automatically, but an explicit c++rt0.o
- # does not break anything, and helps significantly (at the cost of a little
- # extra space).
- freebsd2.2*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
-
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- freebsd2*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=yes
- hardcode_minus_L=yes
- hardcode_shlibpath_var=no
- ;;
-
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- freebsd* | kfreebsd*-gnu | dragonfly*)
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
-
- hpux9*)
- if test "$GCC" = yes; then
- archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- fi
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator=:
- hardcode_direct=yes
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L=yes
- export_dynamic_flag_spec='${wl}-E'
- ;;
-
- hpux10*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
- fi
- if test "$with_gnu_ld" = no; then
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator=:
-
- hardcode_direct=yes
- export_dynamic_flag_spec='${wl}-E'
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L=yes
- fi
- ;;
-
- hpux11*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- case $host_cpu in
- hppa*64*)
- archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- ia64*)
- archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- else
- case $host_cpu in
- hppa*64*)
- archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- ia64*)
- archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- fi
- if test "$with_gnu_ld" = no; then
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator=:
-
- case $host_cpu in
- hppa*64*|ia64*)
- hardcode_libdir_flag_spec_ld='+b $libdir'
- hardcode_direct=no
- hardcode_shlibpath_var=no
- ;;
- *)
- hardcode_direct=yes
- export_dynamic_flag_spec='${wl}-E'
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L=yes
- ;;
- esac
- fi
- ;;
-
- irix5* | irix6* | nonstopux*)
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec_ld='-rpath $libdir'
- fi
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- link_all_deplibs=yes
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
- else
- archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
- fi
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
-
- newsos6)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=yes
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- hardcode_shlibpath_var=no
- ;;
-
- openbsd*)
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- export_dynamic_flag_spec='${wl}-E'
- else
- case $host_os in
- openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-R$libdir'
- ;;
- *)
- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- ;;
- esac
- fi
- ;;
-
- os2*)
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- allow_undefined_flag=unsupported
- archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
- old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
- ;;
-
- osf3*)
- if test "$GCC" = yes; then
- allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- allow_undefined_flag=' -expect_unresolved \*'
- archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- fi
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- ;;
-
- osf4* | osf5*) # as osf3* with the addition of -msym flag
- if test "$GCC" = yes; then
- allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- else
- allow_undefined_flag=' -expect_unresolved \*'
- archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
- $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
-
- # Both c and cxx compiler support -rpath directly
- hardcode_libdir_flag_spec='-rpath $libdir'
- fi
- hardcode_libdir_separator=:
- ;;
-
- solaris*)
- no_undefined_flag=' -z text'
- if test "$GCC" = yes; then
- wlarc='${wl}'
- archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
- else
- wlarc=''
- archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- fi
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_shlibpath_var=no
- case $host_os in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *)
- # The compiler driver will combine linker options so we
- # cannot just pass the convience library names through
- # without $wl, iff we do not link with $LD.
- # Luckily, gcc supports the same syntax we need for Sun Studio.
- # Supported since Solaris 2.6 (maybe 2.5.1?)
- case $wlarc in
- '')
- whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
- *)
- whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
- esac ;;
- esac
- link_all_deplibs=yes
- ;;
-
- sunos4*)
- if test "x$host_vendor" = xsequent; then
- # Use $CC to link under sequent, because it throws in some extra .o
- # files that make .init and .fini sections work.
- archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
- fi
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_direct=yes
- hardcode_minus_L=yes
- hardcode_shlibpath_var=no
- ;;
-
- sysv4)
- case $host_vendor in
- sni)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=yes # is this really true???
- ;;
- siemens)
- ## LD is ld it makes a PLAMLIB
- ## CC just makes a GrossModule.
- archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- reload_cmds='$CC -r -o $output$reload_objs'
- hardcode_direct=no
- ;;
- motorola)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=no #Motorola manual says yes, but my tests say they lie
- ;;
- esac
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
- ;;
-
- sysv4.3*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var=no
- export_dynamic_flag_spec='-Bexport'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- ld_shlibs=yes
- fi
- ;;
-
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
- no_undefined_flag='${wl}-z,text'
- archive_cmds_need_lc=no
- hardcode_shlibpath_var=no
- runpath_var='LD_RUN_PATH'
-
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- ;;
-
- sysv5* | sco3.2v5* | sco5v6*)
- # Note: We can NOT use -z defs as we might desire, because we do not
- # link with -lc, and that would cause any symbols used from libc to
- # always be unresolved, which means just about no library would
- # ever link correctly. If we're not using GNU ld we use -z text
- # though, which does catch some bad symbols but isn't as heavy-handed
- # as -z defs.
- no_undefined_flag='${wl}-z,text'
- allow_undefined_flag='${wl}-z,nodefs'
- archive_cmds_need_lc=no
- hardcode_shlibpath_var=no
- hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
- hardcode_libdir_separator=':'
- link_all_deplibs=yes
- export_dynamic_flag_spec='${wl}-Bexport'
- runpath_var='LD_RUN_PATH'
-
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- ;;
-
- uts4*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_shlibpath_var=no
- ;;
-
- *)
- ld_shlibs=no
- ;;
- esac
- fi
-
-{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
-echo "${ECHO_T}$ld_shlibs" >&6; }
-test "$ld_shlibs" = no && can_build_shared=no
-
-#
-# Do we need to explicitly link libc?
-#
-case "x$archive_cmds_need_lc" in
-x|xyes)
- # Assume -lc should be added
- archive_cmds_need_lc=yes
-
- if test "$enable_shared" = yes && test "$GCC" = yes; then
- case $archive_cmds in
- *'~'*)
- # FIXME: we may have to deal with multi-command sequences.
- ;;
- '$CC '*)
- # Test whether the compiler implicitly links with -lc since on some
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
- # to ld, don't add -lc before -lgcc.
- { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
-echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
- $rm conftest*
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } 2>conftest.err; then
- soname=conftest
- lib=conftest
- libobjs=conftest.$ac_objext
- deplibs=
- wl=$lt_prog_compiler_wl
- pic_flag=$lt_prog_compiler_pic
- compiler_flags=-v
- linker_flags=-v
- verstring=
- output_objdir=.
- libname=conftest
- lt_save_allow_undefined_flag=$allow_undefined_flag
- allow_undefined_flag=
- if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
- (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
- then
- archive_cmds_need_lc=no
- else
- archive_cmds_need_lc=yes
- fi
- allow_undefined_flag=$lt_save_allow_undefined_flag
- else
- cat conftest.err 1>&5
- fi
- $rm conftest*
- { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
-echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
- ;;
- esac
- fi
- ;;
-esac
-
-{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
-echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-shrext_cmds=".so"
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
- # if the path contains ";" then we assume it to be the separator
- # otherwise default to the standard path separator (i.e. ":") - it is
- # assumed that no part of a normal pathname contains ";" but that should
- # okay in the real world where ";" in dirpaths is itself problematic.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
-else
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-fi
-need_lib_prefix=unknown
-hardcode_into_libs=no
-
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-need_version=unknown
-
-case $host_os in
-aix3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
- shlibpath_var=LIBPATH
-
- # AIX 3 has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
-
-aix4* | aix5*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- else
- # With GCC up to 2.95.x, collect2 would create an import file
- # for dependence libraries. The import file would start with
- # the line `#! .'. This would cause the generated library to
- # depend on `.', always an invalid library. This was fixed in
- # development snapshots of GCC prior to 3.0.
- case $host_os in
- aix4 | aix4.[01] | aix4.[01].*)
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- echo ' yes '
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- :
- else
- can_build_shared=no
- fi
- ;;
- esac
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
- # soname into executable. Probably we can add versioning support to
- # collect2, so additional links can be useful in future.
- if test "$aix_use_runtimelinking" = yes; then
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- # instead of lib<name>.a to let people know that these are not
- # typical AIX shared libraries.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- else
- # We preserve .a as extension for shared libraries through AIX4.2
- # and later when we are not doing run time linking.
- library_names_spec='${libname}${release}.a $libname.a'
- soname_spec='${libname}${release}${shared_ext}$major'
- fi
- shlibpath_var=LIBPATH
- fi
- ;;
-
-amigaos*)
- library_names_spec='$libname.ixlibrary $libname.a'
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
- ;;
-
-beos*)
- library_names_spec='${libname}${shared_ext}'
- dynamic_linker="$host_os ld.so"
- shlibpath_var=LIBRARY_PATH
- ;;
-
-bsdi[45]*)
- version_type=linux
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- # the default ld.so.conf also contains /usr/contrib/lib and
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- # libtool to hard-code these into programs
- ;;
-
-cygwin* | mingw* | pw32*)
- version_type=windows
- shrext_cmds=".dll"
- need_version=no
- need_lib_prefix=no
-
- case $GCC,$host_os in
- yes,cygwin* | yes,mingw* | yes,pw32*)
- library_names_spec='$libname.dll.a'
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
- postinstall_cmds='base_file=`basename \${file}`~
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
- dldir=$destdir/`dirname \$dlpath`~
- test -d \$dldir || mkdir -p \$dldir~
- $install_prog $dir/$dlname \$dldir/$dlname~
- chmod a+x \$dldir/$dlname'
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
- dlpath=$dir/\$dldll~
- $rm \$dlpath'
- shlibpath_overrides_runpath=yes
-
- case $host_os in
- cygwin*)
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
- ;;
- mingw*)
- # MinGW DLLs use traditional 'lib' prefix
- soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
- # It is most probably a Windows format PATH printed by
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
- # path with ; separators, and with drive letters. We can handle the
- # drive letters (cygwin fileutils understands them), so leave them,
- # especially as we might pass files found there to a mingw objdump,
- # which wouldn't understand a cygwinified path. Ahh.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
- ;;
- pw32*)
- # pw32 DLLs use 'pw' prefix rather than 'lib'
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- ;;
- esac
- ;;
-
- *)
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
- ;;
- esac
- dynamic_linker='Win32 ld.exe'
- # FIXME: first we should search . and the directory the executable is in
- shlibpath_var=PATH
- ;;
-
-darwin* | rhapsody*)
- dynamic_linker="$host_os dyld"
- version_type=darwin
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
- soname_spec='${libname}${release}${major}$shared_ext'
- shlibpath_overrides_runpath=yes
- shlibpath_var=DYLD_LIBRARY_PATH
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
- if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
- else
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
- fi
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
- ;;
-
-dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-freebsd1*)
- dynamic_linker=no
- ;;
-
-kfreebsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-freebsd* | dragonfly*)
- # DragonFly does not have aout. When/if they implement a new
- # versioning mechanism, adjust this.
- if test -x /usr/bin/objformat; then
- objformat=`/usr/bin/objformat`
- else
- case $host_os in
- freebsd[123]*) objformat=aout ;;
- *) objformat=elf ;;
- esac
- fi
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- need_version=no
- need_lib_prefix=no
- ;;
- freebsd-*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
- need_version=yes
- ;;
- esac
- shlibpath_var=LD_LIBRARY_PATH
- case $host_os in
- freebsd2*)
- shlibpath_overrides_runpath=yes
- ;;
- freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
- freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- freebsd*) # from 4.6 on
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- esac
- ;;
-
-gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- ;;
-
-hpux9* | hpux10* | hpux11*)
- # Give a soname corresponding to the major version so that dld.sl refuses to
- # link against other versions.
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- case $host_cpu in
- ia64*)
- shrext_cmds='.so'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.so"
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- if test "X$HPUX_IA64_MODE" = X32; then
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
- else
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
- fi
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- hppa*64*)
- shrext_cmds='.sl'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- *)
- shrext_cmds='.sl'
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- esac
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
- postinstall_cmds='chmod 555 $lib'
- ;;
-
-interix3*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $host_os in
- nonstopux*) version_type=nonstopux ;;
- *)
- if test "$lt_cv_prog_gnu_ld" = yes; then
- version_type=linux
- else
- version_type=irix
- fi ;;
- esac
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
- case $host_os in
- irix5* | nonstopux*)
- libsuff= shlibsuff=
- ;;
- *)
- case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
- libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
- libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
- *) libsuff= shlibsuff= libmagic=never-match;;
- esac
- ;;
- esac
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- hardcode_into_libs=yes
- ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux*oldld* | linux*aout* | linux*coff*)
- dynamic_linker=no
- ;;
-
-# This must be Linux ELF.
-linux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- # This implies no fast_install, which is unacceptable.
- # Some rework will be needed to allow for fast_install
- # before this can be enabled.
- hardcode_into_libs=yes
-
- # find out which ABI we are using
- libsuff=
- case "$host_cpu" in
- x86_64*|s390x*|powerpc64*)
- echo '#line 16398 "configure"' > conftest.$ac_ext
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- case `/usr/bin/file conftest.$ac_objext` in
- *64-bit*)
- libsuff=64
- sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
- esac
-
- # Append ld.so.conf contents to the search path
- if test -f /etc/ld.so.conf; then
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
- fi
-
- # We used to test for /lib/ld.so.1 and disable shared libraries on
- # powerpc, because MkLinux only supported shared libraries with the
- # GNU dynamic linker. Since this was broken with cross compilers,
- # most powerpc-linux boxes support dynamic linking these days and
- # people can always --disable-shared, the test was removed, and we
- # assume the GNU/Linux dynamic linker is in use.
- dynamic_linker='GNU/Linux ld.so'
- ;;
-
-knetbsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-netbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- dynamic_linker='NetBSD (a.out) ld.so'
- else
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='NetBSD ld.elf_so'
- fi
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
-
-newsos6)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-nto-qnx*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-openbsd*)
- version_type=sunos
- sys_lib_dlsearch_path_spec="/usr/lib"
- need_lib_prefix=no
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
- case $host_os in
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
- *) need_version=no ;;
- esac
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- case $host_os in
- openbsd2.[89] | openbsd2.[89].*)
- shlibpath_overrides_runpath=no
- ;;
- *)
- shlibpath_overrides_runpath=yes
- ;;
- esac
- else
- shlibpath_overrides_runpath=yes
- fi
- ;;
-
-os2*)
- libname_spec='$name'
- shrext_cmds=".dll"
- need_lib_prefix=no
- library_names_spec='$libname${shared_ext} $libname.a'
- dynamic_linker='OS/2 ld.exe'
- shlibpath_var=LIBPATH
- ;;
-
-osf3* | osf4* | osf5*)
- version_type=osf
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
-
-solaris*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- # ldd complains unless libraries are executable
- postinstall_cmds='chmod +x $lib'
- ;;
-
-sunos4*)
- version_type=sunos
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- fi
- need_version=yes
- ;;
-
-sysv4 | sysv4.3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- case $host_vendor in
- sni)
- shlibpath_overrides_runpath=no
- need_lib_prefix=no
- export_dynamic_flag_spec='${wl}-Blargedynsym'
- runpath_var=LD_RUN_PATH
- ;;
- siemens)
- need_lib_prefix=no
- ;;
- motorola)
- need_lib_prefix=no
- need_version=no
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- ;;
- esac
- ;;
-
-sysv4*MP*)
- if test -d /usr/nec ;then
- version_type=linux
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
- soname_spec='$libname${shared_ext}.$major'
- shlibpath_var=LD_LIBRARY_PATH
- fi
- ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
- version_type=freebsd-elf
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- if test "$with_gnu_ld" = yes; then
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
- shlibpath_overrides_runpath=no
- else
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
- shlibpath_overrides_runpath=yes
- case $host_os in
- sco3.2v5*)
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
- ;;
- esac
- fi
- sys_lib_dlsearch_path_spec='/usr/lib'
- ;;
-
-uts4*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-*)
- dynamic_linker=no
- ;;
-esac
-{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
-echo "${ECHO_T}$dynamic_linker" >&6; }
-test "$dynamic_linker" = no && can_build_shared=no
-
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$GCC" = yes; then
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
-fi
-
-{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
-echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
-hardcode_action=
-if test -n "$hardcode_libdir_flag_spec" || \
- test -n "$runpath_var" || \
- test "X$hardcode_automatic" = "Xyes" ; then
-
- # We can hardcode non-existant directories.
- if test "$hardcode_direct" != no &&
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
- # have to relink, otherwise we might link with an installed library
- # when we should be linking with a yet-to-be-installed one
- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
- test "$hardcode_minus_L" != no; then
- # Linking always hardcodes the temporary library directory.
- hardcode_action=relink
- else
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
- hardcode_action=immediate
- fi
-else
- # We cannot hardcode anything, or else we can only hardcode existing
- # directories.
- hardcode_action=unsupported
-fi
-{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
-echo "${ECHO_T}$hardcode_action" >&6; }
-
-if test "$hardcode_action" = relink; then
- # Fast installation is not supported
- enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
- test "$enable_shared" = no; then
- # Fast installation is not necessary
- enable_fast_install=needless
-fi
-
-striplib=
-old_striplib=
-{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
-echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-else
-# FIXME - insert some real tests, host_os isn't really good enough
- case $host_os in
- darwin*)
- if test -n "$STRIP" ; then
- striplib="$STRIP -x"
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
- ;;
- *)
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
- ;;
- esac
-fi
-
-if test "x$enable_dlopen" != xyes; then
- enable_dlopen=unknown
- enable_dlopen_self=unknown
- enable_dlopen_self_static=unknown
-else
- lt_cv_dlopen=no
- lt_cv_dlopen_libs=
-
- case $host_os in
- beos*)
- lt_cv_dlopen="load_add_on"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- ;;
-
- mingw* | pw32*)
- lt_cv_dlopen="LoadLibrary"
- lt_cv_dlopen_libs=
- ;;
-
- cygwin*)
- lt_cv_dlopen="dlopen"
- lt_cv_dlopen_libs=
- ;;
-
- darwin*)
- # if libdl is installed we need to link against it
- { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
-if test "${ac_cv_lib_dl_dlopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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 dlopen ();
-int
-main ()
-{
-return dlopen ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_dl_dlopen=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_lib_dl_dlopen=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
-echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
-if test $ac_cv_lib_dl_dlopen = yes; then
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
-else
-
- lt_cv_dlopen="dyld"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
-
-fi
-
- ;;
-
- *)
- { echo "$as_me:$LINENO: checking for shl_load" >&5
-echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
-if test "${ac_cv_func_shl_load+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
-#define shl_load innocuous_shl_load
-
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shl_load (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef shl_load
-
-/* 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 shl_load ();
-/* 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_shl_load || defined __stub___shl_load
-choke me
-#endif
-
-int
-main ()
-{
-return shl_load ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_func_shl_load=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_func_shl_load=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
-echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
-if test $ac_cv_func_shl_load = yes; then
- lt_cv_dlopen="shl_load"
-else
- { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
-echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
-if test "${ac_cv_lib_dld_shl_load+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldld $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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 shl_load ();
-int
-main ()
-{
-return shl_load ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_dld_shl_load=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_lib_dld_shl_load=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
-echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
-if test $ac_cv_lib_dld_shl_load = yes; then
- lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
-else
- { echo "$as_me:$LINENO: checking for dlopen" >&5
-echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
-if test "${ac_cv_func_dlopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
-#define dlopen innocuous_dlopen
-
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dlopen (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef dlopen
-
-/* 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 dlopen ();
-/* 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_dlopen || defined __stub___dlopen
-choke me
-#endif
-
-int
-main ()
-{
-return dlopen ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_func_dlopen=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_func_dlopen=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
-echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
-if test $ac_cv_func_dlopen = yes; then
- lt_cv_dlopen="dlopen"
-else
- { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
-if test "${ac_cv_lib_dl_dlopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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 dlopen ();
-int
-main ()
-{
-return dlopen ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_dl_dlopen=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_lib_dl_dlopen=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
-echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
-if test $ac_cv_lib_dl_dlopen = yes; then
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
-else
- { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
-echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
-if test "${ac_cv_lib_svld_dlopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsvld $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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 dlopen ();
-int
-main ()
-{
-return dlopen ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_svld_dlopen=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_lib_svld_dlopen=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
-echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
-if test $ac_cv_lib_svld_dlopen = yes; then
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
-else
- { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
-echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
-if test "${ac_cv_lib_dld_dld_link+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldld $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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 dld_link ();
-int
-main ()
-{
-return dld_link ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_dld_dld_link=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_lib_dld_dld_link=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
-echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
-if test $ac_cv_lib_dld_dld_link = yes; then
- lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
-fi
-
-
-fi
-
-
-fi
-
-
-fi
-
-
-fi
-
-
-fi
-
- ;;
- esac
-
- if test "x$lt_cv_dlopen" != xno; then
- enable_dlopen=yes
- else
- enable_dlopen=no
- fi
-
- case $lt_cv_dlopen in
- dlopen)
- save_CPPFLAGS="$CPPFLAGS"
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
-
- save_LDFLAGS="$LDFLAGS"
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
-
- save_LIBS="$LIBS"
- LIBS="$lt_cv_dlopen_libs $LIBS"
-
- { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
-echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
-if test "${lt_cv_dlopen_self+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test "$cross_compiling" = yes; then :
- lt_cv_dlopen_self=cross
-else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- lt_status=$lt_dlunknown
- cat > conftest.$ac_ext <<EOF
-#line 17262 "configure"
-#include "confdefs.h"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-# define LT_DLGLOBAL RTLD_GLOBAL
-#else
-# ifdef DL_GLOBAL
-# define LT_DLGLOBAL DL_GLOBAL
-# else
-# define LT_DLGLOBAL 0
-# endif
-#endif
-
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
-#ifndef LT_DLLAZY_OR_NOW
-# ifdef RTLD_LAZY
-# define LT_DLLAZY_OR_NOW RTLD_LAZY
-# else
-# ifdef DL_LAZY
-# define LT_DLLAZY_OR_NOW DL_LAZY
-# else
-# ifdef RTLD_NOW
-# define LT_DLLAZY_OR_NOW RTLD_NOW
-# else
-# ifdef DL_NOW
-# define LT_DLLAZY_OR_NOW DL_NOW
-# else
-# define LT_DLLAZY_OR_NOW 0
-# endif
-# endif
-# endif
-# endif
-#endif
-
-#ifdef __cplusplus
-extern "C" void exit (int);
-#endif
-
-void fnord() { int i=42;}
-int main ()
-{
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- int status = $lt_dlunknown;
-
- if (self)
- {
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- /* dlclose (self); */
- }
- else
- puts (dlerror ());
-
- exit (status);
-}
-EOF
- if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
- (./conftest; exit; ) >&5 2>/dev/null
- lt_status=$?
- case x$lt_status in
- x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
- x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
- x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
- esac
- else :
- # compilation failed
- lt_cv_dlopen_self=no
- fi
-fi
-rm -fr conftest*
-
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
-echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
-
- if test "x$lt_cv_dlopen_self" = xyes; then
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
- { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
-echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
-if test "${lt_cv_dlopen_self_static+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test "$cross_compiling" = yes; then :
- lt_cv_dlopen_self_static=cross
-else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- lt_status=$lt_dlunknown
- cat > conftest.$ac_ext <<EOF
-#line 17362 "configure"
-#include "confdefs.h"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-# define LT_DLGLOBAL RTLD_GLOBAL
-#else
-# ifdef DL_GLOBAL
-# define LT_DLGLOBAL DL_GLOBAL
-# else
-# define LT_DLGLOBAL 0
-# endif
-#endif
-
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
-#ifndef LT_DLLAZY_OR_NOW
-# ifdef RTLD_LAZY
-# define LT_DLLAZY_OR_NOW RTLD_LAZY
-# else
-# ifdef DL_LAZY
-# define LT_DLLAZY_OR_NOW DL_LAZY
-# else
-# ifdef RTLD_NOW
-# define LT_DLLAZY_OR_NOW RTLD_NOW
-# else
-# ifdef DL_NOW
-# define LT_DLLAZY_OR_NOW DL_NOW
-# else
-# define LT_DLLAZY_OR_NOW 0
-# endif
-# endif
-# endif
-# endif
-#endif
-
-#ifdef __cplusplus
-extern "C" void exit (int);
-#endif
-
-void fnord() { int i=42;}
-int main ()
-{
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- int status = $lt_dlunknown;
-
- if (self)
- {
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- /* dlclose (self); */
- }
- else
- puts (dlerror ());
-
- exit (status);
-}
-EOF
- if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
- (./conftest; exit; ) >&5 2>/dev/null
- lt_status=$?
- case x$lt_status in
- x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
- x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
- x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
- esac
- else :
- # compilation failed
- lt_cv_dlopen_self_static=no
- fi
-fi
-rm -fr conftest*
-
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
-echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
- fi
-
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- LIBS="$save_LIBS"
- ;;
- esac
-
- case $lt_cv_dlopen_self in
- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
- *) enable_dlopen_self=unknown ;;
- esac
-
- case $lt_cv_dlopen_self_static in
- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
- *) enable_dlopen_self_static=unknown ;;
- esac
-fi
-
-
-# Report which library types will actually be built
-{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
-echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
-{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
-echo "${ECHO_T}$can_build_shared" >&6; }
-
-{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
-echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
-test "$can_build_shared" = "no" && enable_shared=no
-
-# On AIX, shared libraries and static libraries use the same namespace, and
-# are all built from PIC.
-case $host_os in
-aix3*)
- test "$enable_shared" = yes && enable_static=no
- if test -n "$RANLIB"; then
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
- postinstall_cmds='$RANLIB $lib'
- fi
- ;;
-
-aix4* | aix5*)
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
- test "$enable_shared" = yes && enable_static=no
- fi
- ;;
-esac
-{ echo "$as_me:$LINENO: result: $enable_shared" >&5
-echo "${ECHO_T}$enable_shared" >&6; }
-
-{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
-echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
-# Make sure either enable_shared or enable_static is yes.
-test "$enable_shared" = yes || enable_static=yes
-{ echo "$as_me:$LINENO: result: $enable_static" >&5
-echo "${ECHO_T}$enable_static" >&6; }
-
-# The else clause should only fire when bootstrapping the
-# libtool distribution, otherwise you forgot to ship ltmain.sh
-# with your package, and you will get complaints that there are
-# no rules to generate ltmain.sh.
-if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of \ escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
- SED SHELL STRIP \
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
- deplibs_check_method reload_flag reload_cmds need_locks \
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
- lt_cv_sys_global_symbol_to_c_name_address \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- old_postinstall_cmds old_postuninstall_cmds \
- compiler \
- CC \
- LD \
- lt_prog_compiler_wl \
- lt_prog_compiler_pic \
- lt_prog_compiler_static \
- lt_prog_compiler_no_builtin_flag \
- export_dynamic_flag_spec \
- thread_safe_flag_spec \
- whole_archive_flag_spec \
- enable_shared_with_static_runtimes \
- old_archive_cmds \
- old_archive_from_new_cmds \
- predep_objects \
- postdep_objects \
- predeps \
- postdeps \
- compiler_lib_search_path \
- archive_cmds \
- archive_expsym_cmds \
- postinstall_cmds \
- postuninstall_cmds \
- old_archive_from_expsyms_cmds \
- allow_undefined_flag \
- no_undefined_flag \
- export_symbols_cmds \
- hardcode_libdir_flag_spec \
- hardcode_libdir_flag_spec_ld \
- hardcode_libdir_separator \
- hardcode_automatic \
- module_cmds \
- module_expsym_cmds \
- lt_cv_prog_compiler_c_o \
- exclude_expsyms \
- include_expsyms; do
-
- case $var in
- old_archive_cmds | \
- old_archive_from_new_cmds | \
- archive_cmds | \
- archive_expsym_cmds | \
- module_cmds | \
- module_expsym_cmds | \
- old_archive_from_expsyms_cmds | \
- export_symbols_cmds | \
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
-
- case $lt_echo in
- *'\$0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
-
-cfgfile="${ofile}T"
- trap "$rm \"$cfgfile\"; exit 1" 1 2 15
- $rm -f "$cfgfile"
- { echo "$as_me:$LINENO: creating $ofile" >&5
-echo "$as_me: creating $ofile" >&6;}
-
- cat <<__EOF__ >> "$cfgfile"
-#! $SHELL
-
-# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
-#
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
-# Free Software Foundation, Inc.
-#
-# This file is part of GNU Libtool:
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# 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, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# 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.
-
-# A sed program that does not truncate output.
-SED=$lt_SED
-
-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
-Xsed="$SED -e 1s/^X//"
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-# The names of the tagged configurations supported by this script.
-available_tags=
-
-# ### BEGIN LIBTOOL CONFIG
-
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-
-# Shell to use when invoking shell scripts.
-SHELL=$lt_SHELL
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=$archive_cmds_need_lc
-
-# Whether or not to disallow shared libs when runtime libs are static
-allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# The host system.
-host_alias=$host_alias
-host=$host
-host_os=$host_os
-
-# The build system.
-build_alias=$build_alias
-build=$build
-build_os=$build_os
-
-# An echo program that does not interpret backslashes.
-echo=$lt_echo
-
-# The archiver.
-AR=$lt_AR
-AR_FLAGS=$lt_AR_FLAGS
-
-# A C compiler.
-LTCC=$lt_LTCC
-
-# LTCC compiler flags.
-LTCFLAGS=$lt_LTCFLAGS
-
-# A language-specific compiler.
-CC=$lt_compiler
-
-# Is the compiler the GNU C compiler?
-with_gcc=$GCC
-
-# An ERE matcher.
-EGREP=$lt_EGREP
-
-# The linker used to build libraries.
-LD=$lt_LD
-
-# Whether we need hard or soft links.
-LN_S=$lt_LN_S
-
-# A BSD-compatible nm program.
-NM=$lt_NM
-
-# A symbol stripping program
-STRIP=$lt_STRIP
-
-# Used to examine libraries when file_magic_cmd begins "file"
-MAGIC_CMD=$MAGIC_CMD
-
-# Used on cygwin: DLL creation program.
-DLLTOOL="$DLLTOOL"
-
-# Used on cygwin: object dumper.
-OBJDUMP="$OBJDUMP"
-
-# Used on cygwin: assembler.
-AS="$AS"
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# How to create reloadable object files.
-reload_flag=$lt_reload_flag
-reload_cmds=$lt_reload_cmds
-
-# How to pass a linker flag through the compiler.
-wl=$lt_lt_prog_compiler_wl
-
-# Object file suffix (normally "o").
-objext="$ac_objext"
-
-# Old archive suffix (normally "a").
-libext="$libext"
-
-# Shared library suffix (normally ".so").
-shrext_cmds='$shrext_cmds'
-
-# Executable file suffix (normally "").
-exeext="$exeext"
-
-# Additional compiler flags for building library objects.
-pic_flag=$lt_lt_prog_compiler_pic
-pic_mode=$pic_mode
-
-# What is the maximum length of a command?
-max_cmd_len=$lt_cv_sys_max_cmd_len
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$lt_lt_cv_prog_compiler_c_o
-
-# Must we lock files when doing compilation?
-need_locks=$lt_need_locks
-
-# Do we need the lib prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Whether dlopen is supported.
-dlopen_support=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$lt_lt_prog_compiler_static
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$lt_whole_archive_flag_spec
-
-# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$lt_thread_safe_flag_spec
-
-# Library versioning type.
-version_type=$version_type
-
-# Format of library name prefix.
-libname_spec=$lt_libname_spec
-
-# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME.
-library_names_spec=$lt_library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$lt_soname_spec
-
-# Commands used to build and install an old-style archive.
-RANLIB=$lt_RANLIB
-old_archive_cmds=$lt_old_archive_cmds
-old_postinstall_cmds=$lt_old_postinstall_cmds
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
-
-# Create a temporary old-style archive to link instead of a shared archive.
-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
-
-# Commands used to build and install a shared archive.
-archive_cmds=$lt_archive_cmds
-archive_expsym_cmds=$lt_archive_expsym_cmds
-postinstall_cmds=$lt_postinstall_cmds
-postuninstall_cmds=$lt_postuninstall_cmds
-
-# Commands used to build a loadable module (assumed same as above if empty)
-module_cmds=$lt_module_cmds
-module_expsym_cmds=$lt_module_expsym_cmds
-
-# Commands to strip libraries.
-old_striplib=$lt_old_striplib
-striplib=$lt_striplib
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predep_objects=$lt_predep_objects
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdep_objects=$lt_postdep_objects
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predeps=$lt_predeps
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdeps=$lt_postdeps
-
-# The library search path used internally by the compiler when linking
-# a shared library.
-compiler_lib_search_path=$lt_compiler_lib_search_path
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$lt_deplibs_check_method
-
-# Command to use when deplibs_check_method == file_magic.
-file_magic_cmd=$lt_file_magic_cmd
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$lt_allow_undefined_flag
-
-# Flag that forces no undefined symbols.
-no_undefined_flag=$lt_no_undefined_flag
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$lt_finish_cmds
-
-# Same as above, but a single script fragment to be evaled but not shown.
-finish_eval=$lt_finish_eval
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
-
-# Transform the output of nm in a C name address pair
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
-
-# This is the shared library runtime path variable.
-runpath_var=$runpath_var
-
-# This is the shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$hardcode_action
-
-# Whether we should hardcode library paths into libraries.
-hardcode_into_libs=$hardcode_into_libs
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
-
-# If ld is used when linking, flag to hardcode \$libdir into
-# a binary during linking. This must work even if \$libdir does
-# not exist.
-hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$lt_hardcode_libdir_separator
-
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct=$hardcode_direct
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L=$hardcode_minus_L
-
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
-# the resulting binary.
-hardcode_shlibpath_var=$hardcode_shlibpath_var
-
-# Set to yes if building a shared library automatically hardcodes DIR into the library
-# and all subsequent libraries and executables linked against it.
-hardcode_automatic=$hardcode_automatic
-
-# Variables whose values should be saved in libtool wrapper scripts and
-# restored at relink time.
-variables_saved_for_relink="$variables_saved_for_relink"
-
-# Whether libtool must link a program against all its dependency libraries.
-link_all_deplibs=$link_all_deplibs
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
-
-# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$fix_srcfile_path"
-
-# Set to yes if exported symbols are required.
-always_export_symbols=$always_export_symbols
-
-# The commands to list exported symbols.
-export_symbols_cmds=$lt_export_symbols_cmds
-
-# The commands to extract the exported symbol list from a shared archive.
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$lt_exclude_expsyms
-
-# Symbols that must always be exported.
-include_expsyms=$lt_include_expsyms
-
-# ### END LIBTOOL CONFIG
-
-__EOF__
-
-
- case $host_os in
- aix3*)
- cat <<\EOF >> "$cfgfile"
-
-# AIX sometimes has problems with the GCC collect2 program. For some
-# reason, if we set the COLLECT_NAMES environment variable, the problems
-# vanish in a puff of smoke.
-if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
-fi
-EOF
- ;;
- esac
-
- # We use sed instead of cat because bash on DJGPP gets confused if
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
- # text mode, it properly converts lines to CR/LF. This bash problem
- # is reportedly fixed, but why not run on old versions too?
- sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
-
- mv -f "$cfgfile" "$ofile" || \
- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
- chmod +x "$ofile"
-
-else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
-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
-
-CC="$lt_save_CC"
-
-
-# Check whether --with-tags was given.
-if test "${with_tags+set}" = set; then
- withval=$with_tags; tagnames="$withval"
-fi
-
-
-if test -f "$ltmain" && test -n "$tagnames"; then
- if test ! -f "${ofile}"; then
- { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
-echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
- fi
-
- if test -z "$LTCC"; then
- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
- if test -z "$LTCC"; then
- { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
-echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
- else
- { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
-echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
- fi
- fi
- if test -z "$LTCFLAGS"; then
- eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
- fi
-
- # Extract list of available tagged configurations in $ofile.
- # Note that this assumes the entire list is on one line.
- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
-
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for tagname in $tagnames; do
- IFS="$lt_save_ifs"
- # Check whether tagname contains only valid characters
- case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
- "") ;;
- *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
-echo "$as_me: error: invalid tag name: $tagname" >&2;}
- { (exit 1); exit 1; }; }
- ;;
- esac
-
- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
- then
- { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
-echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
- { (exit 1); exit 1; }; }
- fi
-
- # Update the list of available tags.
- if test -n "$tagname"; then
- echo appending configuration tag \"$tagname\" to $ofile
-
- case $tagname in
- CXX)
- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
- (test "X$CXX" != "Xg++"))) ; then
- ac_ext=cpp
-ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-
-
-
-
-archive_cmds_need_lc_CXX=no
-allow_undefined_flag_CXX=
-always_export_symbols_CXX=no
-archive_expsym_cmds_CXX=
-export_dynamic_flag_spec_CXX=
-hardcode_direct_CXX=no
-hardcode_libdir_flag_spec_CXX=
-hardcode_libdir_flag_spec_ld_CXX=
-hardcode_libdir_separator_CXX=
-hardcode_minus_L_CXX=no
-hardcode_shlibpath_var_CXX=unsupported
-hardcode_automatic_CXX=no
-module_cmds_CXX=
-module_expsym_cmds_CXX=
-link_all_deplibs_CXX=unknown
-old_archive_cmds_CXX=$old_archive_cmds
-no_undefined_flag_CXX=
-whole_archive_flag_spec_CXX=
-enable_shared_with_static_runtimes_CXX=no
-
-# Dependencies to place before and after the object being linked:
-predep_objects_CXX=
-postdep_objects_CXX=
-predeps_CXX=
-postdeps_CXX=
-compiler_lib_search_path_CXX=
-
-# Source file extension for C++ test sources.
-ac_ext=cpp
-
-# Object file extension for compiled C++ test sources.
-objext=o
-objext_CXX=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="int some_variable = 0;\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# If no C compiler flags were specified, use CFLAGS.
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-
-
-# save warnings/boilerplate of simple test code
-ac_outfile=conftest.$ac_objext
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_compiler_boilerplate=`cat conftest.err`
-$rm conftest*
-
-ac_outfile=conftest.$ac_objext
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_linker_boilerplate=`cat conftest.err`
-$rm conftest*
-
-
-# Allow CC to be a program name with arguments.
-lt_save_CC=$CC
-lt_save_LD=$LD
-lt_save_GCC=$GCC
-GCC=$GXX
-lt_save_with_gnu_ld=$with_gnu_ld
-lt_save_path_LD=$lt_cv_path_LD
-if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
-else
- $as_unset lt_cv_prog_gnu_ld
-fi
-if test -n "${lt_cv_path_LDCXX+set}"; then
- lt_cv_path_LD=$lt_cv_path_LDCXX
-else
- $as_unset lt_cv_path_LD
-fi
-test -z "${LDCXX+set}" || LD=$LDCXX
-CC=${CXX-"c++"}
-compiler=$CC
-compiler_CXX=$CC
-for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
-done
-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
-
-
-# We don't want -fno-exception wen compiling C++ code, so set the
-# no_builtin_flag separately
-if test "$GXX" = yes; then
- lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
-else
- lt_prog_compiler_no_builtin_flag_CXX=
-fi
-
-if test "$GXX" = yes; then
- # Set up default GNU C++ configuration
-
-
-# Check whether --with-gnu-ld was given.
-if test "${with_gnu_ld+set}" = set; then
- withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
-else
- with_gnu_ld=no
-fi
-
-ac_prog=ld
-if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
-echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
- case $host in
- *-*-mingw*)
- # gcc leaves a trailing carriage return which upsets mingw
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- *)
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- esac
- case $ac_prog in
- # Accept absolute paths.
- [\\/]* | ?:[\\/]*)
- re_direlt='/[^/][^/]*/\.\./'
- # Canonicalize the pathname of ld
- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
-elif test "$with_gnu_ld" = yes; then
- { echo "$as_me:$LINENO: checking for GNU ld" >&5
-echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
-else
- { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
-echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
-fi
-if test "${lt_cv_path_LD+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -z "$LD"; then
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some variants of GNU ld only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- test "$with_gnu_ld" != no && break
- ;;
- *)
- test "$with_gnu_ld" != yes && break
- ;;
- esac
- fi
- done
- IFS="$lt_save_ifs"
-else
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
-fi
-fi
-
-LD="$lt_cv_path_LD"
-if test -n "$LD"; then
- { echo "$as_me:$LINENO: result: $LD" >&5
-echo "${ECHO_T}$LD" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
-echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
- { (exit 1); exit 1; }; }
-{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
-echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
-if test "${lt_cv_prog_gnu_ld+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- # I'd rather use --version here, but apparently some GNU lds only accept -v.
-case `$LD -v 2>&1 </dev/null` in
-*GNU* | *'with BFD'*)
- lt_cv_prog_gnu_ld=yes
- ;;
-*)
- lt_cv_prog_gnu_ld=no
- ;;
-esac
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
-echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
-with_gnu_ld=$lt_cv_prog_gnu_ld
-
-
-
- # Check if GNU C++ uses GNU ld as the underlying linker, since the
- # archiving commands below assume that GNU ld is being used.
- if test "$with_gnu_ld" = yes; then
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-
- hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
-
- # If archive_cmds runs LD, not CC, wlarc should be empty
- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
- # investigate it a little bit more. (MM)
- wlarc='${wl}'
-
- # ancient GNU ld didn't support --whole-archive et. al.
- if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
- grep 'no-whole-archive' > /dev/null; then
- whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- whole_archive_flag_spec_CXX=
- fi
- else
- with_gnu_ld=no
- wlarc=
-
- # A generic and very simple default shared library creation
- # command for GNU C++ for the case where it uses the native
- # linker, instead of GNU ld. If possible, this setting should
- # overridden to take advantage of the native linker features on
- # the platform it is being used on.
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- fi
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
-else
- GXX=no
- with_gnu_ld=no
- wlarc=
-fi
-
-# PORTME: fill in a description of your system's C++ link characteristics
-{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
-echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
-ld_shlibs_CXX=yes
-case $host_os in
- aix3*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- aix_use_runtimelinking=no
-
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[23]|aix4.[23].*|aix5*)
- for ld_flag in $LDFLAGS; do
- case $ld_flag in
- *-brtl*)
- aix_use_runtimelinking=yes
- break
- ;;
- esac
- done
- ;;
- esac
-
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
-
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
- archive_cmds_CXX=''
- hardcode_direct_CXX=yes
- hardcode_libdir_separator_CXX=':'
- link_all_deplibs_CXX=yes
-
- if test "$GXX" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- hardcode_direct_CXX=yes
- else
- # We have old collect2
- hardcode_direct_CXX=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- hardcode_minus_L_CXX=yes
- hardcode_libdir_flag_spec_CXX='-L$libdir'
- hardcode_libdir_separator_CXX=
- fi
- ;;
- esac
- shared_flag='-shared'
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
-
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- always_export_symbols_CXX=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- allow_undefined_flag_CXX='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
-
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-
- hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
-
- archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
- allow_undefined_flag_CXX="-z nodefs"
- archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
-
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-
- hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- no_undefined_flag_CXX=' ${wl}-bernotok'
- allow_undefined_flag_CXX=' ${wl}-berok'
- # Exported symbols can be pulled into shared objects from archives
- whole_archive_flag_spec_CXX='$convenience'
- archive_cmds_need_lc_CXX=yes
- # This is similar to how AIX traditionally builds its shared libraries.
- archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
-
- beos*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- allow_undefined_flag_CXX=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- ld_shlibs_CXX=no
- fi
- ;;
-
- chorus*)
- case $cc_basename in
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- ;;
-
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
- # as there is no search path for DLLs.
- hardcode_libdir_flag_spec_CXX='-L$libdir'
- allow_undefined_flag_CXX=unsupported
- always_export_symbols_CXX=no
- enable_shared_with_static_runtimes_CXX=yes
-
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- else
- ld_shlibs_CXX=no
- fi
- ;;
- darwin* | rhapsody*)
- case $host_os in
- rhapsody* | darwin1.[012])
- allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[012])
- allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- archive_cmds_need_lc_CXX=no
- hardcode_direct_CXX=no
- hardcode_automatic_CXX=yes
- hardcode_shlibpath_var_CXX=unsupported
- whole_archive_flag_spec_CXX=''
- link_all_deplibs_CXX=yes
-
- if test "$GXX" = yes ; then
- lt_int_apple_cc_single_mod=no
- output_verbose_link_cmd='echo'
- if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
- lt_int_apple_cc_single_mod=yes
- fi
- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
- archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- else
- archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- fi
- module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
- archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- fi
- module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- case $cc_basename in
- xlc*)
- output_verbose_link_cmd='echo'
- archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
- module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- ld_shlibs_CXX=no
- ;;
- esac
- fi
- ;;
-
- dgux*)
- case $cc_basename in
- ec++*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- ghcx*)
- # Green Hills C++ Compiler
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- ;;
- freebsd[12]*)
- # C++ shared libraries reported to be fairly broken before switch to ELF
- ld_shlibs_CXX=no
- ;;
- freebsd-elf*)
- archive_cmds_need_lc_CXX=no
- ;;
- freebsd* | kfreebsd*-gnu | dragonfly*)
- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
- # conventions
- ld_shlibs_CXX=yes
- ;;
- gnu*)
- ;;
- hpux9*)
- hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
- export_dynamic_flag_spec_CXX='${wl}-E'
- hardcode_direct_CXX=yes
- hardcode_minus_L_CXX=yes # Not in the search PATH,
- # but as the default
- # location of the library.
-
- case $cc_basename in
- CC*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- aCC*)
- archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes; then
- archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- fi
- ;;
- esac
- ;;
- hpux10*|hpux11*)
- if test $with_gnu_ld = no; then
- hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
-
- case $host_cpu in
- hppa*64*|ia64*)
- hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
- ;;
- *)
- export_dynamic_flag_spec_CXX='${wl}-E'
- ;;
- esac
- fi
- case $host_cpu in
- hppa*64*|ia64*)
- hardcode_direct_CXX=no
- hardcode_shlibpath_var_CXX=no
- ;;
- *)
- hardcode_direct_CXX=yes
- hardcode_minus_L_CXX=yes # Not in the search PATH,
- # but as the default
- # location of the library.
- ;;
- esac
-
- case $cc_basename in
- CC*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- aCC*)
- case $host_cpu in
- hppa*64*)
- archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- ia64*)
- archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- *)
- archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- esac
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes; then
- if test $with_gnu_ld = no; then
- case $host_cpu in
- hppa*64*)
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- ia64*)
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- *)
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- esac
- fi
- else
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- fi
- ;;
- esac
- ;;
- interix3*)
- hardcode_direct_CXX=no
- hardcode_shlibpath_var_CXX=no
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
- export_dynamic_flag_spec_CXX='${wl}-E'
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
- # Instead, shared libraries are loaded at an image base (0x10000000 by
- # default) and relocated if they conflict, which is a slow very memory
- # consuming and fragmenting process. To avoid this, we pick a random,
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
- archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- ;;
- irix5* | irix6*)
- case $cc_basename in
- CC*)
- # SGI C++
- archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
-
- # Archives containing C++ object files must be created using
- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
- ;;
- *)
- if test "$GXX" = yes; then
- if test "$with_gnu_ld" = no; then
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
- fi
- fi
- link_all_deplibs_CXX=yes
- ;;
- esac
- hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
- ;;
- linux*)
- case $cc_basename in
- KCC*)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
- archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
-
- hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
- export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
-
- # Archives containing C++ object files must be created using
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
- old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
- ;;
- icpc*)
- # Intel C++
- with_gnu_ld=yes
- # version 8.0 and above of icpc choke on multiply defined symbols
- # if we add $predep_objects and $postdep_objects, however 7.1 and
- # earlier do not add the objects themselves.
- case `$CC -V 2>&1` in
- *"Version 7."*)
- archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- ;;
- *) # Version 8.0 or newer
- tmp_idyn=
- case $host_cpu in
- ia64*) tmp_idyn=' -i_dynamic';;
- esac
- archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- ;;
- esac
- archive_cmds_need_lc_CXX=no
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
- export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
- whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
- ;;
- pgCC*)
- # Portland Group C++ compiler
- archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
-
- hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
- whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- ;;
- cxx*)
- # Compaq C++
- archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
-
- runpath_var=LD_RUN_PATH
- hardcode_libdir_flag_spec_CXX='-rpath $libdir'
- hardcode_libdir_separator_CXX=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- esac
- ;;
- lynxos*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- m88k*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- mvs*)
- case $cc_basename in
- cxx*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- ;;
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
- wlarc=
- hardcode_libdir_flag_spec_CXX='-R$libdir'
- hardcode_direct_CXX=yes
- hardcode_shlibpath_var_CXX=no
- fi
- # Workaround some broken pre-1.5 toolchains
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
- ;;
- openbsd2*)
- # C++ shared libraries are fairly broken
- ld_shlibs_CXX=no
- ;;
- openbsd*)
- hardcode_direct_CXX=yes
- hardcode_shlibpath_var_CXX=no
- archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
- export_dynamic_flag_spec_CXX='${wl}-E'
- whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- fi
- output_verbose_link_cmd='echo'
- ;;
- osf3*)
- case $cc_basename in
- KCC*)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
-
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
- hardcode_libdir_separator_CXX=:
-
- # Archives containing C++ object files must be created using
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
- old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
-
- ;;
- RCC*)
- # Rational C++ 2.4.1
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- cxx*)
- allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
-
- hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-
- hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
- else
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- fi
- ;;
- esac
- ;;
- osf4* | osf5*)
- case $cc_basename in
- KCC*)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
-
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
- hardcode_libdir_separator_CXX=:
-
- # Archives containing C++ object files must be created using
- # the KAI C++ compiler.
- old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
- ;;
- RCC*)
- # Rational C++ 2.4.1
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- cxx*)
- allow_undefined_flag_CXX=' -expect_unresolved \*'
- archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
- echo "-hidden">> $lib.exp~
- $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
- $rm $lib.exp'
-
- hardcode_libdir_flag_spec_CXX='-rpath $libdir'
- hardcode_libdir_separator_CXX=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-
- hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
- else
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- fi
- ;;
- esac
- ;;
- psos*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- sunos4*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.x
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- lcc*)
- # Lucid
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- ;;
- solaris*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.2, 5.x and Centerline C++
- archive_cmds_need_lc_CXX=yes
- no_undefined_flag_CXX=' -zdefs'
- archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- hardcode_libdir_flag_spec_CXX='-R$libdir'
- hardcode_shlibpath_var_CXX=no
- case $host_os in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *)
- # The C++ compiler is used as linker so we must use $wl
- # flag to pass the commands to the underlying system
- # linker. We must also pass each convience library through
- # to the system linker between allextract/defaultextract.
- # The C++ compiler will combine linker options so we
- # cannot just pass the convience library names through
- # without $wl.
- # Supported since Solaris 2.6 (maybe 2.5.1?)
- whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
- ;;
- esac
- link_all_deplibs_CXX=yes
-
- output_verbose_link_cmd='echo'
-
- # Archives containing C++ object files must be created using
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
- ;;
- gcx*)
- # Green Hills C++ Compiler
- archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
-
- # The C++ compiler must be used to create the archive.
- old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
- ;;
- *)
- # GNU C++ compiler with Solaris linker
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
- if $CC --version | grep -v '^2\.7' > /dev/null; then
- archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
- else
- # g++ 2.7 appears to require `-G' NOT `-shared' on this
- # platform.
- archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
- fi
-
- hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
- fi
- ;;
- esac
- ;;
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
- no_undefined_flag_CXX='${wl}-z,text'
- archive_cmds_need_lc_CXX=no
- hardcode_shlibpath_var_CXX=no
- runpath_var='LD_RUN_PATH'
-
- case $cc_basename in
- CC*)
- archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- ;;
- sysv5* | sco3.2v5* | sco5v6*)
- # Note: We can NOT use -z defs as we might desire, because we do not
- # link with -lc, and that would cause any symbols used from libc to
- # always be unresolved, which means just about no library would
- # ever link correctly. If we're not using GNU ld we use -z text
- # though, which does catch some bad symbols but isn't as heavy-handed
- # as -z defs.
- # For security reasons, it is highly recommended that you always
- # use absolute paths for naming shared libraries, and exclude the
- # DT_RUNPATH tag from executables and libraries. But doing so
- # requires that you compile everything twice, which is a pain.
- # So that behaviour is only enabled if SCOABSPATH is set to a
- # non-empty value in the environment. Most likely only useful for
- # creating official distributions of packages.
- # This is a hack until libtool officially supports absolute path
- # names for shared libraries.
- no_undefined_flag_CXX='${wl}-z,text'
- allow_undefined_flag_CXX='${wl}-z,nodefs'
- archive_cmds_need_lc_CXX=no
- hardcode_shlibpath_var_CXX=no
- hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
- hardcode_libdir_separator_CXX=':'
- link_all_deplibs_CXX=yes
- export_dynamic_flag_spec_CXX='${wl}-Bexport'
- runpath_var='LD_RUN_PATH'
-
- case $cc_basename in
- CC*)
- archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- ;;
- tandem*)
- case $cc_basename in
- NCC*)
- # NonStop-UX NCC 3.20
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- ;;
- vxworks*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
-esac
-{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
-echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
-test "$ld_shlibs_CXX" = no && can_build_shared=no
-
-GCC_CXX="$GXX"
-LD_CXX="$LD"
-
-
-cat > conftest.$ac_ext <<EOF
-class Foo
-{
-public:
- Foo (void) { a = 0; }
-private:
- int a;
-};
-EOF
-
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- # Parse the compiler output and extract the necessary
- # objects, libraries and library flags.
-
- # Sentinel used to keep track of whether or not we are before
- # the conftest object file.
- pre_test_object_deps_done=no
-
- # The `*' in the case matches for architectures that use `case' in
- # $output_verbose_cmd can trigger glob expansion during the loop
- # eval without this substitution.
- output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
-
- for p in `eval $output_verbose_link_cmd`; do
- case $p in
-
- -L* | -R* | -l*)
- # Some compilers place space between "-{L,R}" and the path.
- # Remove the space.
- if test $p = "-L" \
- || test $p = "-R"; then
- prev=$p
- continue
- else
- prev=
- fi
-
- if test "$pre_test_object_deps_done" = no; then
- case $p in
- -L* | -R*)
- # Internal compiler library paths should come after those
- # provided the user. The postdeps already come after the
- # user supplied libs so there is no need to process them.
- if test -z "$compiler_lib_search_path_CXX"; then
- compiler_lib_search_path_CXX="${prev}${p}"
- else
- compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
- fi
- ;;
- # The "-l" case would never come before the object being
- # linked, so don't bother handling this case.
- esac
- else
- if test -z "$postdeps_CXX"; then
- postdeps_CXX="${prev}${p}"
- else
- postdeps_CXX="${postdeps_CXX} ${prev}${p}"
- fi
- fi
- ;;
-
- *.$objext)
- # This assumes that the test object file only shows up
- # once in the compiler output.
- if test "$p" = "conftest.$objext"; then
- pre_test_object_deps_done=yes
- continue
- fi
-
- if test "$pre_test_object_deps_done" = no; then
- if test -z "$predep_objects_CXX"; then
- predep_objects_CXX="$p"
- else
- predep_objects_CXX="$predep_objects_CXX $p"
- fi
- else
- if test -z "$postdep_objects_CXX"; then
- postdep_objects_CXX="$p"
- else
- postdep_objects_CXX="$postdep_objects_CXX $p"
- fi
- fi
- ;;
-
- *) ;; # Ignore the rest.
-
- esac
- done
-
- # Clean up.
- rm -f a.out a.exe
-else
- echo "libtool.m4: error: problem compiling CXX test program"
-fi
-
-$rm -f confest.$objext
-
-# PORTME: override above test on systems where it is broken
-case $host_os in
-interix3*)
- # Interix 3.5 installs completely hosed .la files for C++, so rather than
- # hack all around it, let's just trust "g++" to DTRT.
- predep_objects_CXX=
- postdep_objects_CXX=
- postdeps_CXX=
- ;;
-
-solaris*)
- case $cc_basename in
- CC*)
- # Adding this requires a known-good setup of shared libraries for
- # Sun compiler versions before 5.6, else PIC objects from an old
- # archive will be linked into the output, leading to subtle bugs.
- postdeps_CXX='-lCstd -lCrun'
- ;;
- esac
- ;;
-esac
-
-
-case " $postdeps_CXX " in
-*" -lc "*) archive_cmds_need_lc_CXX=no ;;
-esac
-
-lt_prog_compiler_wl_CXX=
-lt_prog_compiler_pic_CXX=
-lt_prog_compiler_static_CXX=
-
-{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
-echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
-
- # C++ specific cases for pic, static, wl, etc.
- if test "$GXX" = yes; then
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_static_CXX='-static'
-
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static_CXX='-Bstatic'
- fi
- ;;
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
- ;;
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
- mingw* | os2* | pw32*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
- ;;
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- lt_prog_compiler_pic_CXX='-fno-common'
- ;;
- *djgpp*)
- # DJGPP does not support shared libraries at all
- lt_prog_compiler_pic_CXX=
- ;;
- interix3*)
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
- # Instead, we relocate shared libraries at runtime.
- ;;
- sysv4*MP*)
- if test -d /usr/nec; then
- lt_prog_compiler_pic_CXX=-Kconform_pic
- fi
- ;;
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- ;;
- *)
- lt_prog_compiler_pic_CXX='-fPIC'
- ;;
- esac
- ;;
- *)
- lt_prog_compiler_pic_CXX='-fPIC'
- ;;
- esac
- else
- case $host_os in
- aix4* | aix5*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static_CXX='-Bstatic'
- else
- lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- chorus*)
- case $cc_basename in
- cxch68*)
- # Green Hills C++ Compiler
- # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
- ;;
- esac
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case $cc_basename in
- xlc*)
- lt_prog_compiler_pic_CXX='-qnocommon'
- lt_prog_compiler_wl_CXX='-Wl,'
- ;;
- esac
- ;;
- dgux*)
- case $cc_basename in
- ec++*)
- lt_prog_compiler_pic_CXX='-KPIC'
- ;;
- ghcx*)
- # Green Hills C++ Compiler
- lt_prog_compiler_pic_CXX='-pic'
- ;;
- *)
- ;;
- esac
- ;;
- freebsd* | kfreebsd*-gnu | dragonfly*)
- # FreeBSD uses GNU C++
- ;;
- hpux9* | hpux10* | hpux11*)
- case $cc_basename in
- CC*)
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
- if test "$host_cpu" != ia64; then
- lt_prog_compiler_pic_CXX='+Z'
- fi
- ;;
- aCC*)
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- lt_prog_compiler_pic_CXX='+Z'
- ;;
- esac
- ;;
- *)
- ;;
- esac
- ;;
- interix*)
- # This is c89, which is MS Visual C++ (no shared libs)
- # Anyone wants to do a port?
- ;;
- irix5* | irix6* | nonstopux*)
- case $cc_basename in
- CC*)
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_static_CXX='-non_shared'
- # CC pic flag -KPIC is the default.
- ;;
- *)
- ;;
- esac
- ;;
- linux*)
- case $cc_basename in
- KCC*)
- # KAI C++ Compiler
- lt_prog_compiler_wl_CXX='--backend -Wl,'
- lt_prog_compiler_pic_CXX='-fPIC'
- ;;
- icpc* | ecpc*)
- # Intel C++
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_pic_CXX='-KPIC'
- lt_prog_compiler_static_CXX='-static'
- ;;
- pgCC*)
- # Portland Group C++ compiler.
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_pic_CXX='-fpic'
- lt_prog_compiler_static_CXX='-Bstatic'
- ;;
- cxx*)
- # Compaq C++
- # Make sure the PIC flag is empty. It appears that all Alpha
- # Linux and Compaq Tru64 Unix objects are PIC.
- lt_prog_compiler_pic_CXX=
- lt_prog_compiler_static_CXX='-non_shared'
- ;;
- *)
- ;;
- esac
- ;;
- lynxos*)
- ;;
- m88k*)
- ;;
- mvs*)
- case $cc_basename in
- cxx*)
- lt_prog_compiler_pic_CXX='-W c,exportall'
- ;;
- *)
- ;;
- esac
- ;;
- netbsd*)
- ;;
- osf3* | osf4* | osf5*)
- case $cc_basename in
- KCC*)
- lt_prog_compiler_wl_CXX='--backend -Wl,'
- ;;
- RCC*)
- # Rational C++ 2.4.1
- lt_prog_compiler_pic_CXX='-pic'
- ;;
- cxx*)
- # Digital/Compaq C++
- lt_prog_compiler_wl_CXX='-Wl,'
- # Make sure the PIC flag is empty. It appears that all Alpha
- # Linux and Compaq Tru64 Unix objects are PIC.
- lt_prog_compiler_pic_CXX=
- lt_prog_compiler_static_CXX='-non_shared'
- ;;
- *)
- ;;
- esac
- ;;
- psos*)
- ;;
- solaris*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.2, 5.x and Centerline C++
- lt_prog_compiler_pic_CXX='-KPIC'
- lt_prog_compiler_static_CXX='-Bstatic'
- lt_prog_compiler_wl_CXX='-Qoption ld '
- ;;
- gcx*)
- # Green Hills C++ Compiler
- lt_prog_compiler_pic_CXX='-PIC'
- ;;
- *)
- ;;
- esac
- ;;
- sunos4*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.x
- lt_prog_compiler_pic_CXX='-pic'
- lt_prog_compiler_static_CXX='-Bstatic'
- ;;
- lcc*)
- # Lucid
- lt_prog_compiler_pic_CXX='-pic'
- ;;
- *)
- ;;
- esac
- ;;
- tandem*)
- case $cc_basename in
- NCC*)
- # NonStop-UX NCC 3.20
- lt_prog_compiler_pic_CXX='-KPIC'
- ;;
- *)
- ;;
- esac
- ;;
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
- case $cc_basename in
- CC*)
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_pic_CXX='-KPIC'
- lt_prog_compiler_static_CXX='-Bstatic'
- ;;
- esac
- ;;
- vxworks*)
- ;;
- *)
- lt_prog_compiler_can_build_shared_CXX=no
- ;;
- esac
- fi
-
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
-echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
-
-#
-# Check to make sure the PIC flag actually works.
-#
-if test -n "$lt_prog_compiler_pic_CXX"; then
-
-{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
-echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
-if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_prog_compiler_pic_works_CXX=no
- ac_outfile=conftest.$ac_objext
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19698: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&5
- echo "$as_me:19702: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings other than the usual output.
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
- lt_prog_compiler_pic_works_CXX=yes
- fi
- fi
- $rm conftest*
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
-echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
-
-if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
- case $lt_prog_compiler_pic_CXX in
- "" | " "*) ;;
- *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
- esac
-else
- lt_prog_compiler_pic_CXX=
- lt_prog_compiler_can_build_shared_CXX=no
-fi
-
-fi
-case $host_os in
- # For platforms which do not support PIC, -DPIC is meaningless:
- *djgpp*)
- lt_prog_compiler_pic_CXX=
- ;;
- *)
- lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
- ;;
-esac
-
-#
-# Check to make sure the static flag actually works.
-#
-wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
-{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
-echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
-if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_prog_compiler_static_works_CXX=no
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
- # The linker can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- # Append any errors to the config.log.
- cat conftest.err 1>&5
- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if diff conftest.exp conftest.er2 >/dev/null; then
- lt_prog_compiler_static_works_CXX=yes
- fi
- else
- lt_prog_compiler_static_works_CXX=yes
- fi
- fi
- $rm conftest*
- LDFLAGS="$save_LDFLAGS"
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
-echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
-
-if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
- :
-else
- lt_prog_compiler_static_CXX=
-fi
-
-
-{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
-echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
-if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_cv_prog_compiler_c_o_CXX=no
- $rm -r conftest 2>/dev/null
- mkdir conftest
- cd conftest
- mkdir out
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- lt_compiler_flag="-o out/conftest2.$ac_objext"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19802: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>out/conftest.err)
- ac_status=$?
- cat out/conftest.err >&5
- echo "$as_me:19806: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
- then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_c_o_CXX=yes
- fi
- fi
- chmod u+w . 2>&5
- $rm conftest*
- # SGI C++ compiler will create directory out/ii_files/ for
- # template instantiation
- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
- $rm out/* && rmdir out
- cd ..
- rmdir conftest
- $rm conftest*
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
-echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
-
-
-hard_links="nottested"
-if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
- # do not overwrite the value of need_locks provided by the user
- { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
-echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
- hard_links=yes
- $rm conftest*
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- touch conftest.a
- ln conftest.a conftest.b 2>&5 || hard_links=no
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- { echo "$as_me:$LINENO: result: $hard_links" >&5
-echo "${ECHO_T}$hard_links" >&6; }
- if test "$hard_links" = no; then
- { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
-echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
- need_locks=warn
- fi
-else
- need_locks=no
-fi
-
-{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
-echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
-
- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- case $host_os in
- aix4* | aix5*)
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- else
- export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- fi
- ;;
- pw32*)
- export_symbols_cmds_CXX="$ltdll_cmds"
- ;;
- cygwin* | mingw*)
- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
- ;;
- *)
- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- ;;
- esac
-
-{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
-echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
-test "$ld_shlibs_CXX" = no && can_build_shared=no
-
-#
-# Do we need to explicitly link libc?
-#
-case "x$archive_cmds_need_lc_CXX" in
-x|xyes)
- # Assume -lc should be added
- archive_cmds_need_lc_CXX=yes
-
- if test "$enable_shared" = yes && test "$GCC" = yes; then
- case $archive_cmds_CXX in
- *'~'*)
- # FIXME: we may have to deal with multi-command sequences.
- ;;
- '$CC '*)
- # Test whether the compiler implicitly links with -lc since on some
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
- # to ld, don't add -lc before -lgcc.
- { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
-echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
- $rm conftest*
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } 2>conftest.err; then
- soname=conftest
- lib=conftest
- libobjs=conftest.$ac_objext
- deplibs=
- wl=$lt_prog_compiler_wl_CXX
- pic_flag=$lt_prog_compiler_pic_CXX
- compiler_flags=-v
- linker_flags=-v
- verstring=
- output_objdir=.
- libname=conftest
- lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
- allow_undefined_flag_CXX=
- if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
- (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
- then
- archive_cmds_need_lc_CXX=no
- else
- archive_cmds_need_lc_CXX=yes
- fi
- allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
- else
- cat conftest.err 1>&5
- fi
- $rm conftest*
- { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
-echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
- ;;
- esac
- fi
- ;;
-esac
-
-{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
-echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-shrext_cmds=".so"
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
- # if the path contains ";" then we assume it to be the separator
- # otherwise default to the standard path separator (i.e. ":") - it is
- # assumed that no part of a normal pathname contains ";" but that should
- # okay in the real world where ";" in dirpaths is itself problematic.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
-else
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-fi
-need_lib_prefix=unknown
-hardcode_into_libs=no
-
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-need_version=unknown
-
-case $host_os in
-aix3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
- shlibpath_var=LIBPATH
-
- # AIX 3 has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
-
-aix4* | aix5*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- else
- # With GCC up to 2.95.x, collect2 would create an import file
- # for dependence libraries. The import file would start with
- # the line `#! .'. This would cause the generated library to
- # depend on `.', always an invalid library. This was fixed in
- # development snapshots of GCC prior to 3.0.
- case $host_os in
- aix4 | aix4.[01] | aix4.[01].*)
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- echo ' yes '
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- :
- else
- can_build_shared=no
- fi
- ;;
- esac
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
- # soname into executable. Probably we can add versioning support to
- # collect2, so additional links can be useful in future.
- if test "$aix_use_runtimelinking" = yes; then
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- # instead of lib<name>.a to let people know that these are not
- # typical AIX shared libraries.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- else
- # We preserve .a as extension for shared libraries through AIX4.2
- # and later when we are not doing run time linking.
- library_names_spec='${libname}${release}.a $libname.a'
- soname_spec='${libname}${release}${shared_ext}$major'
- fi
- shlibpath_var=LIBPATH
- fi
- ;;
-
-amigaos*)
- library_names_spec='$libname.ixlibrary $libname.a'
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
- ;;
-
-beos*)
- library_names_spec='${libname}${shared_ext}'
- dynamic_linker="$host_os ld.so"
- shlibpath_var=LIBRARY_PATH
- ;;
-
-bsdi[45]*)
- version_type=linux
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- # the default ld.so.conf also contains /usr/contrib/lib and
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- # libtool to hard-code these into programs
- ;;
-
-cygwin* | mingw* | pw32*)
- version_type=windows
- shrext_cmds=".dll"
- need_version=no
- need_lib_prefix=no
-
- case $GCC,$host_os in
- yes,cygwin* | yes,mingw* | yes,pw32*)
- library_names_spec='$libname.dll.a'
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
- postinstall_cmds='base_file=`basename \${file}`~
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
- dldir=$destdir/`dirname \$dlpath`~
- test -d \$dldir || mkdir -p \$dldir~
- $install_prog $dir/$dlname \$dldir/$dlname~
- chmod a+x \$dldir/$dlname'
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
- dlpath=$dir/\$dldll~
- $rm \$dlpath'
- shlibpath_overrides_runpath=yes
-
- case $host_os in
- cygwin*)
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
- ;;
- mingw*)
- # MinGW DLLs use traditional 'lib' prefix
- soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
- # It is most probably a Windows format PATH printed by
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
- # path with ; separators, and with drive letters. We can handle the
- # drive letters (cygwin fileutils understands them), so leave them,
- # especially as we might pass files found there to a mingw objdump,
- # which wouldn't understand a cygwinified path. Ahh.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
- ;;
- pw32*)
- # pw32 DLLs use 'pw' prefix rather than 'lib'
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- ;;
- esac
- ;;
-
- *)
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
- ;;
- esac
- dynamic_linker='Win32 ld.exe'
- # FIXME: first we should search . and the directory the executable is in
- shlibpath_var=PATH
- ;;
-
-darwin* | rhapsody*)
- dynamic_linker="$host_os dyld"
- version_type=darwin
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
- soname_spec='${libname}${release}${major}$shared_ext'
- shlibpath_overrides_runpath=yes
- shlibpath_var=DYLD_LIBRARY_PATH
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
- if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
- else
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
- fi
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
- ;;
-
-dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-freebsd1*)
- dynamic_linker=no
- ;;
-
-kfreebsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-freebsd* | dragonfly*)
- # DragonFly does not have aout. When/if they implement a new
- # versioning mechanism, adjust this.
- if test -x /usr/bin/objformat; then
- objformat=`/usr/bin/objformat`
- else
- case $host_os in
- freebsd[123]*) objformat=aout ;;
- *) objformat=elf ;;
- esac
- fi
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- need_version=no
- need_lib_prefix=no
- ;;
- freebsd-*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
- need_version=yes
- ;;
- esac
- shlibpath_var=LD_LIBRARY_PATH
- case $host_os in
- freebsd2*)
- shlibpath_overrides_runpath=yes
- ;;
- freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
- freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- freebsd*) # from 4.6 on
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- esac
- ;;
-
-gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- ;;
-
-hpux9* | hpux10* | hpux11*)
- # Give a soname corresponding to the major version so that dld.sl refuses to
- # link against other versions.
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- case $host_cpu in
- ia64*)
- shrext_cmds='.so'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.so"
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- if test "X$HPUX_IA64_MODE" = X32; then
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
- else
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
- fi
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- hppa*64*)
- shrext_cmds='.sl'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- *)
- shrext_cmds='.sl'
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- esac
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
- postinstall_cmds='chmod 555 $lib'
- ;;
-
-interix3*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $host_os in
- nonstopux*) version_type=nonstopux ;;
- *)
- if test "$lt_cv_prog_gnu_ld" = yes; then
- version_type=linux
- else
- version_type=irix
- fi ;;
- esac
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
- case $host_os in
- irix5* | nonstopux*)
- libsuff= shlibsuff=
- ;;
- *)
- case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
- libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
- libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
- *) libsuff= shlibsuff= libmagic=never-match;;
- esac
- ;;
- esac
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- hardcode_into_libs=yes
- ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux*oldld* | linux*aout* | linux*coff*)
- dynamic_linker=no
- ;;
-
-# This must be Linux ELF.
-linux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- # This implies no fast_install, which is unacceptable.
- # Some rework will be needed to allow for fast_install
- # before this can be enabled.
- hardcode_into_libs=yes
-
- # find out which ABI we are using
- libsuff=
- case "$host_cpu" in
- x86_64*|s390x*|powerpc64*)
- echo '#line 20338 "configure"' > conftest.$ac_ext
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- case `/usr/bin/file conftest.$ac_objext` in
- *64-bit*)
- libsuff=64
- sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
- esac
-
- # Append ld.so.conf contents to the search path
- if test -f /etc/ld.so.conf; then
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
- fi
-
- # We used to test for /lib/ld.so.1 and disable shared libraries on
- # powerpc, because MkLinux only supported shared libraries with the
- # GNU dynamic linker. Since this was broken with cross compilers,
- # most powerpc-linux boxes support dynamic linking these days and
- # people can always --disable-shared, the test was removed, and we
- # assume the GNU/Linux dynamic linker is in use.
- dynamic_linker='GNU/Linux ld.so'
- ;;
-
-knetbsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-netbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- dynamic_linker='NetBSD (a.out) ld.so'
- else
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='NetBSD ld.elf_so'
- fi
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
-
-newsos6)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-nto-qnx*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-openbsd*)
- version_type=sunos
- sys_lib_dlsearch_path_spec="/usr/lib"
- need_lib_prefix=no
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
- case $host_os in
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
- *) need_version=no ;;
- esac
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- case $host_os in
- openbsd2.[89] | openbsd2.[89].*)
- shlibpath_overrides_runpath=no
- ;;
- *)
- shlibpath_overrides_runpath=yes
- ;;
- esac
- else
- shlibpath_overrides_runpath=yes
- fi
- ;;
-
-os2*)
- libname_spec='$name'
- shrext_cmds=".dll"
- need_lib_prefix=no
- library_names_spec='$libname${shared_ext} $libname.a'
- dynamic_linker='OS/2 ld.exe'
- shlibpath_var=LIBPATH
- ;;
-
-osf3* | osf4* | osf5*)
- version_type=osf
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
-
-solaris*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- # ldd complains unless libraries are executable
- postinstall_cmds='chmod +x $lib'
- ;;
-
-sunos4*)
- version_type=sunos
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- fi
- need_version=yes
- ;;
-
-sysv4 | sysv4.3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- case $host_vendor in
- sni)
- shlibpath_overrides_runpath=no
- need_lib_prefix=no
- export_dynamic_flag_spec='${wl}-Blargedynsym'
- runpath_var=LD_RUN_PATH
- ;;
- siemens)
- need_lib_prefix=no
- ;;
- motorola)
- need_lib_prefix=no
- need_version=no
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- ;;
- esac
- ;;
-
-sysv4*MP*)
- if test -d /usr/nec ;then
- version_type=linux
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
- soname_spec='$libname${shared_ext}.$major'
- shlibpath_var=LD_LIBRARY_PATH
- fi
- ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
- version_type=freebsd-elf
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- if test "$with_gnu_ld" = yes; then
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
- shlibpath_overrides_runpath=no
- else
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
- shlibpath_overrides_runpath=yes
- case $host_os in
- sco3.2v5*)
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
- ;;
- esac
- fi
- sys_lib_dlsearch_path_spec='/usr/lib'
- ;;
-
-uts4*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-*)
- dynamic_linker=no
- ;;
-esac
-{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
-echo "${ECHO_T}$dynamic_linker" >&6; }
-test "$dynamic_linker" = no && can_build_shared=no
-
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$GCC" = yes; then
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
-fi
-
-{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
-echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
-hardcode_action_CXX=
-if test -n "$hardcode_libdir_flag_spec_CXX" || \
- test -n "$runpath_var_CXX" || \
- test "X$hardcode_automatic_CXX" = "Xyes" ; then
-
- # We can hardcode non-existant directories.
- if test "$hardcode_direct_CXX" != no &&
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
- # have to relink, otherwise we might link with an installed library
- # when we should be linking with a yet-to-be-installed one
- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
- test "$hardcode_minus_L_CXX" != no; then
- # Linking always hardcodes the temporary library directory.
- hardcode_action_CXX=relink
- else
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
- hardcode_action_CXX=immediate
- fi
-else
- # We cannot hardcode anything, or else we can only hardcode existing
- # directories.
- hardcode_action_CXX=unsupported
-fi
-{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
-echo "${ECHO_T}$hardcode_action_CXX" >&6; }
-
-if test "$hardcode_action_CXX" = relink; then
- # Fast installation is not supported
- enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
- test "$enable_shared" = no; then
- # Fast installation is not necessary
- enable_fast_install=needless
-fi
-
-
-# The else clause should only fire when bootstrapping the
-# libtool distribution, otherwise you forgot to ship ltmain.sh
-# with your package, and you will get complaints that there are
-# no rules to generate ltmain.sh.
-if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of \ escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
- SED SHELL STRIP \
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
- deplibs_check_method reload_flag reload_cmds need_locks \
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
- lt_cv_sys_global_symbol_to_c_name_address \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- old_postinstall_cmds old_postuninstall_cmds \
- compiler_CXX \
- CC_CXX \
- LD_CXX \
- lt_prog_compiler_wl_CXX \
- lt_prog_compiler_pic_CXX \
- lt_prog_compiler_static_CXX \
- lt_prog_compiler_no_builtin_flag_CXX \
- export_dynamic_flag_spec_CXX \
- thread_safe_flag_spec_CXX \
- whole_archive_flag_spec_CXX \
- enable_shared_with_static_runtimes_CXX \
- old_archive_cmds_CXX \
- old_archive_from_new_cmds_CXX \
- predep_objects_CXX \
- postdep_objects_CXX \
- predeps_CXX \
- postdeps_CXX \
- compiler_lib_search_path_CXX \
- archive_cmds_CXX \
- archive_expsym_cmds_CXX \
- postinstall_cmds_CXX \
- postuninstall_cmds_CXX \
- old_archive_from_expsyms_cmds_CXX \
- allow_undefined_flag_CXX \
- no_undefined_flag_CXX \
- export_symbols_cmds_CXX \
- hardcode_libdir_flag_spec_CXX \
- hardcode_libdir_flag_spec_ld_CXX \
- hardcode_libdir_separator_CXX \
- hardcode_automatic_CXX \
- module_cmds_CXX \
- module_expsym_cmds_CXX \
- lt_cv_prog_compiler_c_o_CXX \
- exclude_expsyms_CXX \
- include_expsyms_CXX; do
-
- case $var in
- old_archive_cmds_CXX | \
- old_archive_from_new_cmds_CXX | \
- archive_cmds_CXX | \
- archive_expsym_cmds_CXX | \
- module_cmds_CXX | \
- module_expsym_cmds_CXX | \
- old_archive_from_expsyms_cmds_CXX | \
- export_symbols_cmds_CXX | \
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
-
- case $lt_echo in
- *'\$0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
-
-cfgfile="$ofile"
-
- cat <<__EOF__ >> "$cfgfile"
-# ### BEGIN LIBTOOL TAG CONFIG: $tagname
-
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-
-# Shell to use when invoking shell scripts.
-SHELL=$lt_SHELL
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=$archive_cmds_need_lc_CXX
-
-# Whether or not to disallow shared libs when runtime libs are static
-allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# The host system.
-host_alias=$host_alias
-host=$host
-host_os=$host_os
-
-# The build system.
-build_alias=$build_alias
-build=$build
-build_os=$build_os
-
-# An echo program that does not interpret backslashes.
-echo=$lt_echo
-
-# The archiver.
-AR=$lt_AR
-AR_FLAGS=$lt_AR_FLAGS
-
-# A C compiler.
-LTCC=$lt_LTCC
-
-# LTCC compiler flags.
-LTCFLAGS=$lt_LTCFLAGS
-
-# A language-specific compiler.
-CC=$lt_compiler_CXX
-
-# Is the compiler the GNU C compiler?
-with_gcc=$GCC_CXX
-
-# An ERE matcher.
-EGREP=$lt_EGREP
-
-# The linker used to build libraries.
-LD=$lt_LD_CXX
-
-# Whether we need hard or soft links.
-LN_S=$lt_LN_S
-
-# A BSD-compatible nm program.
-NM=$lt_NM
-
-# A symbol stripping program
-STRIP=$lt_STRIP
-
-# Used to examine libraries when file_magic_cmd begins "file"
-MAGIC_CMD=$MAGIC_CMD
-
-# Used on cygwin: DLL creation program.
-DLLTOOL="$DLLTOOL"
-
-# Used on cygwin: object dumper.
-OBJDUMP="$OBJDUMP"
-
-# Used on cygwin: assembler.
-AS="$AS"
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# How to create reloadable object files.
-reload_flag=$lt_reload_flag
-reload_cmds=$lt_reload_cmds
-
-# How to pass a linker flag through the compiler.
-wl=$lt_lt_prog_compiler_wl_CXX
-
-# Object file suffix (normally "o").
-objext="$ac_objext"
-
-# Old archive suffix (normally "a").
-libext="$libext"
-
-# Shared library suffix (normally ".so").
-shrext_cmds='$shrext_cmds'
-
-# Executable file suffix (normally "").
-exeext="$exeext"
-
-# Additional compiler flags for building library objects.
-pic_flag=$lt_lt_prog_compiler_pic_CXX
-pic_mode=$pic_mode
-
-# What is the maximum length of a command?
-max_cmd_len=$lt_cv_sys_max_cmd_len
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
-
-# Must we lock files when doing compilation?
-need_locks=$lt_need_locks
-
-# Do we need the lib prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Whether dlopen is supported.
-dlopen_support=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$lt_lt_prog_compiler_static_CXX
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
-
-# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
-
-# Library versioning type.
-version_type=$version_type
-
-# Format of library name prefix.
-libname_spec=$lt_libname_spec
-
-# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME.
-library_names_spec=$lt_library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$lt_soname_spec
-
-# Commands used to build and install an old-style archive.
-RANLIB=$lt_RANLIB
-old_archive_cmds=$lt_old_archive_cmds_CXX
-old_postinstall_cmds=$lt_old_postinstall_cmds
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
-
-# Create a temporary old-style archive to link instead of a shared archive.
-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
-
-# Commands used to build and install a shared archive.
-archive_cmds=$lt_archive_cmds_CXX
-archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
-postinstall_cmds=$lt_postinstall_cmds
-postuninstall_cmds=$lt_postuninstall_cmds
-
-# Commands used to build a loadable module (assumed same as above if empty)
-module_cmds=$lt_module_cmds_CXX
-module_expsym_cmds=$lt_module_expsym_cmds_CXX
-
-# Commands to strip libraries.
-old_striplib=$lt_old_striplib
-striplib=$lt_striplib
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predep_objects=$lt_predep_objects_CXX
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdep_objects=$lt_postdep_objects_CXX
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predeps=$lt_predeps_CXX
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdeps=$lt_postdeps_CXX
-
-# The library search path used internally by the compiler when linking
-# a shared library.
-compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$lt_deplibs_check_method
-
-# Command to use when deplibs_check_method == file_magic.
-file_magic_cmd=$lt_file_magic_cmd
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$lt_allow_undefined_flag_CXX
-
-# Flag that forces no undefined symbols.
-no_undefined_flag=$lt_no_undefined_flag_CXX
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$lt_finish_cmds
-
-# Same as above, but a single script fragment to be evaled but not shown.
-finish_eval=$lt_finish_eval
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
-
-# Transform the output of nm in a C name address pair
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
-
-# This is the shared library runtime path variable.
-runpath_var=$runpath_var
-
-# This is the shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$hardcode_action_CXX
-
-# Whether we should hardcode library paths into libraries.
-hardcode_into_libs=$hardcode_into_libs
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
-
-# If ld is used when linking, flag to hardcode \$libdir into
-# a binary during linking. This must work even if \$libdir does
-# not exist.
-hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
-
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct=$hardcode_direct_CXX
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L=$hardcode_minus_L_CXX
-
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
-# the resulting binary.
-hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
-
-# Set to yes if building a shared library automatically hardcodes DIR into the library
-# and all subsequent libraries and executables linked against it.
-hardcode_automatic=$hardcode_automatic_CXX
-
-# Variables whose values should be saved in libtool wrapper scripts and
-# restored at relink time.
-variables_saved_for_relink="$variables_saved_for_relink"
-
-# Whether libtool must link a program against all its dependency libraries.
-link_all_deplibs=$link_all_deplibs_CXX
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
-
-# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$fix_srcfile_path_CXX"
-
-# Set to yes if exported symbols are required.
-always_export_symbols=$always_export_symbols_CXX
-
-# The commands to list exported symbols.
-export_symbols_cmds=$lt_export_symbols_cmds_CXX
-
-# The commands to extract the exported symbol list from a shared archive.
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$lt_exclude_expsyms_CXX
-
-# Symbols that must always be exported.
-include_expsyms=$lt_include_expsyms_CXX
-
-# ### END LIBTOOL TAG CONFIG: $tagname
-
-__EOF__
-
-
-else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
-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
-
-CC=$lt_save_CC
-LDCXX=$LD
-LD=$lt_save_LD
-GCC=$lt_save_GCC
-with_gnu_ldcxx=$with_gnu_ld
-with_gnu_ld=$lt_save_with_gnu_ld
-lt_cv_path_LDCXX=$lt_cv_path_LD
-lt_cv_path_LD=$lt_save_path_LD
-lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
-lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
-
- else
- tagname=""
- fi
- ;;
-
- F77)
- if test -n "$F77" && test "X$F77" != "Xno"; then
-
-ac_ext=f
-ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
-ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_f77_compiler_gnu
-
-
-archive_cmds_need_lc_F77=no
-allow_undefined_flag_F77=
-always_export_symbols_F77=no
-archive_expsym_cmds_F77=
-export_dynamic_flag_spec_F77=
-hardcode_direct_F77=no
-hardcode_libdir_flag_spec_F77=
-hardcode_libdir_flag_spec_ld_F77=
-hardcode_libdir_separator_F77=
-hardcode_minus_L_F77=no
-hardcode_automatic_F77=no
-module_cmds_F77=
-module_expsym_cmds_F77=
-link_all_deplibs_F77=unknown
-old_archive_cmds_F77=$old_archive_cmds
-no_undefined_flag_F77=
-whole_archive_flag_spec_F77=
-enable_shared_with_static_runtimes_F77=no
-
-# Source file extension for f77 test sources.
-ac_ext=f
-
-# Object file extension for compiled f77 test sources.
-objext=o
-objext_F77=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code=" subroutine t\n return\n end\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code=" program t\n end\n"
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# If no C compiler flags were specified, use CFLAGS.
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-
-
-# save warnings/boilerplate of simple test code
-ac_outfile=conftest.$ac_objext
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_compiler_boilerplate=`cat conftest.err`
-$rm conftest*
-
-ac_outfile=conftest.$ac_objext
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_linker_boilerplate=`cat conftest.err`
-$rm conftest*
-
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${F77-"f77"}
-compiler=$CC
-compiler_F77=$CC
-for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
-done
-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
-
-
-{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
-echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
-{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
-echo "${ECHO_T}$can_build_shared" >&6; }
-
-{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
-echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
-test "$can_build_shared" = "no" && enable_shared=no
-
-# On AIX, shared libraries and static libraries use the same namespace, and
-# are all built from PIC.
-case $host_os in
-aix3*)
- test "$enable_shared" = yes && enable_static=no
- if test -n "$RANLIB"; then
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
- postinstall_cmds='$RANLIB $lib'
- fi
- ;;
-aix4* | aix5*)
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
- test "$enable_shared" = yes && enable_static=no
- fi
- ;;
-esac
-{ echo "$as_me:$LINENO: result: $enable_shared" >&5
-echo "${ECHO_T}$enable_shared" >&6; }
-
-{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
-echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
-# Make sure either enable_shared or enable_static is yes.
-test "$enable_shared" = yes || enable_static=yes
-{ echo "$as_me:$LINENO: result: $enable_static" >&5
-echo "${ECHO_T}$enable_static" >&6; }
-
-GCC_F77="$G77"
-LD_F77="$LD"
-
-lt_prog_compiler_wl_F77=
-lt_prog_compiler_pic_F77=
-lt_prog_compiler_static_F77=
-
-{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
-echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
-
- if test "$GCC" = yes; then
- lt_prog_compiler_wl_F77='-Wl,'
- lt_prog_compiler_static_F77='-static'
-
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static_F77='-Bstatic'
- fi
- ;;
-
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
- ;;
-
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- lt_prog_compiler_pic_F77='-DDLL_EXPORT'
- ;;
-
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- lt_prog_compiler_pic_F77='-fno-common'
- ;;
-
- interix3*)
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
- # Instead, we relocate shared libraries at runtime.
- ;;
-
- msdosdjgpp*)
- # Just because we use GCC doesn't mean we suddenly get shared libraries
- # on systems that don't support them.
- lt_prog_compiler_can_build_shared_F77=no
- enable_shared=no
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- lt_prog_compiler_pic_F77=-Kconform_pic
- fi
- ;;
-
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- lt_prog_compiler_pic_F77='-fPIC'
- ;;
- esac
- ;;
-
- *)
- lt_prog_compiler_pic_F77='-fPIC'
- ;;
- esac
- else
- # PORTME Check for flag to pass linker flags through the system compiler.
- case $host_os in
- aix*)
- lt_prog_compiler_wl_F77='-Wl,'
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static_F77='-Bstatic'
- else
- lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case $cc_basename in
- xlc*)
- lt_prog_compiler_pic_F77='-qnocommon'
- lt_prog_compiler_wl_F77='-Wl,'
- ;;
- esac
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- lt_prog_compiler_pic_F77='-DDLL_EXPORT'
- ;;
-
- hpux9* | hpux10* | hpux11*)
- lt_prog_compiler_wl_F77='-Wl,'
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- lt_prog_compiler_pic_F77='+Z'
- ;;
- esac
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
- lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
- ;;
-
- irix5* | irix6* | nonstopux*)
- lt_prog_compiler_wl_F77='-Wl,'
- # PIC (with -KPIC) is the default.
- lt_prog_compiler_static_F77='-non_shared'
- ;;
-
- newsos6)
- lt_prog_compiler_pic_F77='-KPIC'
- lt_prog_compiler_static_F77='-Bstatic'
- ;;
-
- linux*)
- case $cc_basename in
- icc* | ecc*)
- lt_prog_compiler_wl_F77='-Wl,'
- lt_prog_compiler_pic_F77='-KPIC'
- lt_prog_compiler_static_F77='-static'
- ;;
- pgcc* | pgf77* | pgf90* | pgf95*)
- # Portland Group compilers (*not* the Pentium gcc compiler,
- # which looks to be a dead project)
- lt_prog_compiler_wl_F77='-Wl,'
- lt_prog_compiler_pic_F77='-fpic'
- lt_prog_compiler_static_F77='-Bstatic'
- ;;
- ccc*)
- lt_prog_compiler_wl_F77='-Wl,'
- # All Alpha code is PIC.
- lt_prog_compiler_static_F77='-non_shared'
- ;;
- esac
- ;;
-
- osf3* | osf4* | osf5*)
- lt_prog_compiler_wl_F77='-Wl,'
- # All OSF/1 code is PIC.
- lt_prog_compiler_static_F77='-non_shared'
- ;;
-
- solaris*)
- lt_prog_compiler_pic_F77='-KPIC'
- lt_prog_compiler_static_F77='-Bstatic'
- case $cc_basename in
- f77* | f90* | f95*)
- lt_prog_compiler_wl_F77='-Qoption ld ';;
- *)
- lt_prog_compiler_wl_F77='-Wl,';;
- esac
- ;;
-
- sunos4*)
- lt_prog_compiler_wl_F77='-Qoption ld '
- lt_prog_compiler_pic_F77='-PIC'
- lt_prog_compiler_static_F77='-Bstatic'
- ;;
-
- sysv4 | sysv4.2uw2* | sysv4.3*)
- lt_prog_compiler_wl_F77='-Wl,'
- lt_prog_compiler_pic_F77='-KPIC'
- lt_prog_compiler_static_F77='-Bstatic'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec ;then
- lt_prog_compiler_pic_F77='-Kconform_pic'
- lt_prog_compiler_static_F77='-Bstatic'
- fi
- ;;
-
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
- lt_prog_compiler_wl_F77='-Wl,'
- lt_prog_compiler_pic_F77='-KPIC'
- lt_prog_compiler_static_F77='-Bstatic'
- ;;
-
- unicos*)
- lt_prog_compiler_wl_F77='-Wl,'
- lt_prog_compiler_can_build_shared_F77=no
- ;;
-
- uts4*)
- lt_prog_compiler_pic_F77='-pic'
- lt_prog_compiler_static_F77='-Bstatic'
- ;;
-
- *)
- lt_prog_compiler_can_build_shared_F77=no
- ;;
- esac
- fi
-
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
-echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
-
-#
-# Check to make sure the PIC flag actually works.
-#
-if test -n "$lt_prog_compiler_pic_F77"; then
-
-{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
-echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
-if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_prog_compiler_pic_works_F77=no
- ac_outfile=conftest.$ac_objext
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="$lt_prog_compiler_pic_F77"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:21393: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&5
- echo "$as_me:21397: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings other than the usual output.
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
- lt_prog_compiler_pic_works_F77=yes
- fi
- fi
- $rm conftest*
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
-echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
-
-if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
- case $lt_prog_compiler_pic_F77 in
- "" | " "*) ;;
- *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
- esac
-else
- lt_prog_compiler_pic_F77=
- lt_prog_compiler_can_build_shared_F77=no
-fi
-
-fi
-case $host_os in
- # For platforms which do not support PIC, -DPIC is meaningless:
- *djgpp*)
- lt_prog_compiler_pic_F77=
- ;;
- *)
- lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
- ;;
-esac
-
-#
-# Check to make sure the static flag actually works.
-#
-wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
-{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
-echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
-if test "${lt_prog_compiler_static_works_F77+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_prog_compiler_static_works_F77=no
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
- # The linker can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- # Append any errors to the config.log.
- cat conftest.err 1>&5
- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if diff conftest.exp conftest.er2 >/dev/null; then
- lt_prog_compiler_static_works_F77=yes
- fi
- else
- lt_prog_compiler_static_works_F77=yes
- fi
- fi
- $rm conftest*
- LDFLAGS="$save_LDFLAGS"
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
-echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
-
-if test x"$lt_prog_compiler_static_works_F77" = xyes; then
- :
-else
- lt_prog_compiler_static_F77=
-fi
-
-
-{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
-echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
-if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_cv_prog_compiler_c_o_F77=no
- $rm -r conftest 2>/dev/null
- mkdir conftest
- cd conftest
- mkdir out
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- lt_compiler_flag="-o out/conftest2.$ac_objext"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:21497: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>out/conftest.err)
- ac_status=$?
- cat out/conftest.err >&5
- echo "$as_me:21501: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
- then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_c_o_F77=yes
- fi
- fi
- chmod u+w . 2>&5
- $rm conftest*
- # SGI C++ compiler will create directory out/ii_files/ for
- # template instantiation
- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
- $rm out/* && rmdir out
- cd ..
- rmdir conftest
- $rm conftest*
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
-echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
-
-
-hard_links="nottested"
-if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
- # do not overwrite the value of need_locks provided by the user
- { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
-echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
- hard_links=yes
- $rm conftest*
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- touch conftest.a
- ln conftest.a conftest.b 2>&5 || hard_links=no
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- { echo "$as_me:$LINENO: result: $hard_links" >&5
-echo "${ECHO_T}$hard_links" >&6; }
- if test "$hard_links" = no; then
- { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
-echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
- need_locks=warn
- fi
-else
- need_locks=no
-fi
-
-{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
-echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
-
- runpath_var=
- allow_undefined_flag_F77=
- enable_shared_with_static_runtimes_F77=no
- archive_cmds_F77=
- archive_expsym_cmds_F77=
- old_archive_From_new_cmds_F77=
- old_archive_from_expsyms_cmds_F77=
- export_dynamic_flag_spec_F77=
- whole_archive_flag_spec_F77=
- thread_safe_flag_spec_F77=
- hardcode_libdir_flag_spec_F77=
- hardcode_libdir_flag_spec_ld_F77=
- hardcode_libdir_separator_F77=
- hardcode_direct_F77=no
- hardcode_minus_L_F77=no
- hardcode_shlibpath_var_F77=unsupported
- link_all_deplibs_F77=unknown
- hardcode_automatic_F77=no
- module_cmds_F77=
- module_expsym_cmds_F77=
- always_export_symbols_F77=no
- export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- # include_expsyms should be a list of space-separated symbols to be *always*
- # included in the symbol list
- include_expsyms_F77=
- # exclude_expsyms can be an extended regexp of symbols to exclude
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
- # as well as any symbol that contains `d'.
- exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
- # platforms (ab)use it in PIC code, but their linkers get confused if
- # the symbol is explicitly referenced. Since portable code cannot
- # rely on this symbol name, it's probably fine to never include it in
- # preloaded symbol tables.
- extract_expsyms_cmds=
- # Just being paranoid about ensuring that cc_basename is set.
- for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
-done
-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
-
- case $host_os in
- cygwin* | mingw* | pw32*)
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- if test "$GCC" != yes; then
- with_gnu_ld=no
- fi
- ;;
- interix*)
- # we just hope/assume this is gcc and not c89 (= MSVC++)
- with_gnu_ld=yes
- ;;
- openbsd*)
- with_gnu_ld=no
- ;;
- esac
-
- ld_shlibs_F77=yes
- if test "$with_gnu_ld" = yes; then
- # If archive_cmds runs LD, not CC, wlarc should be empty
- wlarc='${wl}'
-
- # Set some defaults for GNU ld with shared library support. These
- # are reset later if shared libraries are not supported. Putting them
- # here allows them to be overridden if necessary.
- runpath_var=LD_RUN_PATH
- hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec_F77='${wl}--export-dynamic'
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
- whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- whole_archive_flag_spec_F77=
- fi
- supports_anon_versioning=no
- case `$LD -v 2>/dev/null` in
- *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
- *\ 2.11.*) ;; # other 2.11 versions
- *) supports_anon_versioning=yes ;;
- esac
-
- # See if GNU ld supports shared libraries.
- case $host_os in
- aix3* | aix4* | aix5*)
- # On AIX/PPC, the GNU linker is very broken
- if test "$host_cpu" != ia64; then
- ld_shlibs_F77=no
- cat <<EOF 1>&2
-
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support. If you
-*** really care for shared libraries, you may want to modify your PATH
-*** so that a non-GNU linker is found, and then restart.
-
-EOF
- fi
- ;;
-
- amigaos*)
- archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- hardcode_libdir_flag_spec_F77='-L$libdir'
- hardcode_minus_L_F77=yes
-
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- # that the semantics of dynamic libraries on AmigaOS, at least up
- # to version 4, is to share data among multiple programs linked
- # with the same dynamic library. Since this doesn't match the
- # behavior of shared libraries on other platforms, we can't use
- # them.
- ld_shlibs_F77=no
- ;;
-
- beos*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- allow_undefined_flag_F77=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- ld_shlibs_F77=no
- fi
- ;;
-
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
- # as there is no search path for DLLs.
- hardcode_libdir_flag_spec_F77='-L$libdir'
- allow_undefined_flag_F77=unsupported
- always_export_symbols_F77=no
- enable_shared_with_static_runtimes_F77=yes
- export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
-
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- else
- ld_shlibs_F77=no
- fi
- ;;
-
- interix3*)
- hardcode_direct_F77=no
- hardcode_shlibpath_var_F77=no
- hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
- export_dynamic_flag_spec_F77='${wl}-E'
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
- # Instead, shared libraries are loaded at an image base (0x10000000 by
- # default) and relocated if they conflict, which is a slow very memory
- # consuming and fragmenting process. To avoid this, we pick a random,
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
- archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- ;;
-
- linux*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- tmp_addflag=
- case $cc_basename,$host_cpu in
- pgcc*) # Portland Group C compiler
- whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_addflag=' $pic_flag'
- ;;
- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
- whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_addflag=' $pic_flag -Mnomain' ;;
- ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
- tmp_addflag=' -i_dynamic' ;;
- efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
- tmp_addflag=' -i_dynamic -nofor_main' ;;
- ifc* | ifort*) # Intel Fortran compiler
- tmp_addflag=' -nofor_main' ;;
- esac
- archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-
- if test $supports_anon_versioning = yes; then
- archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
- $echo "local: *; };" >> $output_objdir/$libname.ver~
- $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
- fi
- else
- ld_shlibs_F77=no
- fi
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
- wlarc=
- else
- archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- fi
- ;;
-
- solaris*)
- if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
- ld_shlibs_F77=no
- cat <<EOF 1>&2
-
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
-*** create shared libraries on Solaris systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.9.1 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-EOF
- elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs_F77=no
- fi
- ;;
-
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
- case `$LD -v 2>&1` in
- *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
- ld_shlibs_F77=no
- cat <<_LT_EOF 1>&2
-
-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
-*** reliably create shared libraries on SCO systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-_LT_EOF
- ;;
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
- archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
- archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
- else
- ld_shlibs_F77=no
- fi
- ;;
- esac
- ;;
-
- sunos4*)
- archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- wlarc=
- hardcode_direct_F77=yes
- hardcode_shlibpath_var_F77=no
- ;;
-
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs_F77=no
- fi
- ;;
- esac
-
- if test "$ld_shlibs_F77" = no; then
- runpath_var=
- hardcode_libdir_flag_spec_F77=
- export_dynamic_flag_spec_F77=
- whole_archive_flag_spec_F77=
- fi
- else
- # PORTME fill in a description of your system's linker (not GNU ld)
- case $host_os in
- aix3*)
- allow_undefined_flag_F77=unsupported
- always_export_symbols_F77=yes
- archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
- # Note: this linker hardcodes the directories in LIBPATH if there
- # are no directories specified by -L.
- hardcode_minus_L_F77=yes
- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
- # Neither direct hardcoding nor static linking is supported with a
- # broken collect2.
- hardcode_direct_F77=unsupported
- fi
- ;;
-
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- else
- export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- fi
- aix_use_runtimelinking=no
-
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[23]|aix4.[23].*|aix5*)
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
- aix_use_runtimelinking=yes
- break
- fi
- done
- ;;
- esac
-
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
-
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
- archive_cmds_F77=''
- hardcode_direct_F77=yes
- hardcode_libdir_separator_F77=':'
- link_all_deplibs_F77=yes
-
- if test "$GCC" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- hardcode_direct_F77=yes
- else
- # We have old collect2
- hardcode_direct_F77=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- hardcode_minus_L_F77=yes
- hardcode_libdir_flag_spec_F77='-L$libdir'
- hardcode_libdir_separator_F77=
- fi
- ;;
- esac
- shared_flag='-shared'
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
-
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- always_export_symbols_F77=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- allow_undefined_flag_F77='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- cat >conftest.$ac_ext <<_ACEOF
- program main
-
- end
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_f77_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
-
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-
- hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
- archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
- allow_undefined_flag_F77="-z nodefs"
- archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- cat >conftest.$ac_ext <<_ACEOF
- program main
-
- end
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_f77_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
-
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-
- hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- no_undefined_flag_F77=' ${wl}-bernotok'
- allow_undefined_flag_F77=' ${wl}-berok'
- # Exported symbols can be pulled into shared objects from archives
- whole_archive_flag_spec_F77='$convenience'
- archive_cmds_need_lc_F77=yes
- # This is similar to how AIX traditionally builds its shared libraries.
- archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
-
- amigaos*)
- archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- hardcode_libdir_flag_spec_F77='-L$libdir'
- hardcode_minus_L_F77=yes
- # see comment about different semantics on the GNU ld section
- ld_shlibs_F77=no
- ;;
-
- bsdi[45]*)
- export_dynamic_flag_spec_F77=-rdynamic
- ;;
-
- cygwin* | mingw* | pw32*)
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- hardcode_libdir_flag_spec_F77=' '
- allow_undefined_flag_F77=unsupported
- # Tell ltmain to make .lib files, not .a files.
- libext=lib
- # Tell ltmain to make .dll files, not .so files.
- shrext_cmds=".dll"
- # FIXME: Setting linknames here is a bad hack.
- archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
- # The linker will automatically build a .lib file if we build a DLL.
- old_archive_From_new_cmds_F77='true'
- # FIXME: Should let the user specify the lib program.
- old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
- fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
- enable_shared_with_static_runtimes_F77=yes
- ;;
-
- darwin* | rhapsody*)
- case $host_os in
- rhapsody* | darwin1.[012])
- allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[012])
- allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- archive_cmds_need_lc_F77=no
- hardcode_direct_F77=no
- hardcode_automatic_F77=yes
- hardcode_shlibpath_var_F77=unsupported
- whole_archive_flag_spec_F77=''
- link_all_deplibs_F77=yes
- if test "$GCC" = yes ; then
- output_verbose_link_cmd='echo'
- archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- case $cc_basename in
- xlc*)
- output_verbose_link_cmd='echo'
- archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
- module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- ld_shlibs_F77=no
- ;;
- esac
- fi
- ;;
-
- dgux*)
- archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec_F77='-L$libdir'
- hardcode_shlibpath_var_F77=no
- ;;
-
- freebsd1*)
- ld_shlibs_F77=no
- ;;
-
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- # support. Future versions do this automatically, but an explicit c++rt0.o
- # does not break anything, and helps significantly (at the cost of a little
- # extra space).
- freebsd2.2*)
- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
- hardcode_libdir_flag_spec_F77='-R$libdir'
- hardcode_direct_F77=yes
- hardcode_shlibpath_var_F77=no
- ;;
-
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- freebsd2*)
- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct_F77=yes
- hardcode_minus_L_F77=yes
- hardcode_shlibpath_var_F77=no
- ;;
-
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- freebsd* | kfreebsd*-gnu | dragonfly*)
- archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
- hardcode_libdir_flag_spec_F77='-R$libdir'
- hardcode_direct_F77=yes
- hardcode_shlibpath_var_F77=no
- ;;
-
- hpux9*)
- if test "$GCC" = yes; then
- archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- fi
- hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_F77=:
- hardcode_direct_F77=yes
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L_F77=yes
- export_dynamic_flag_spec_F77='${wl}-E'
- ;;
-
- hpux10*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
- fi
- if test "$with_gnu_ld" = no; then
- hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_F77=:
-
- hardcode_direct_F77=yes
- export_dynamic_flag_spec_F77='${wl}-E'
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L_F77=yes
- fi
- ;;
-
- hpux11*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- case $host_cpu in
- hppa*64*)
- archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- ia64*)
- archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- else
- case $host_cpu in
- hppa*64*)
- archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- ia64*)
- archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- fi
- if test "$with_gnu_ld" = no; then
- hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_F77=:
-
- case $host_cpu in
- hppa*64*|ia64*)
- hardcode_libdir_flag_spec_ld_F77='+b $libdir'
- hardcode_direct_F77=no
- hardcode_shlibpath_var_F77=no
- ;;
- *)
- hardcode_direct_F77=yes
- export_dynamic_flag_spec_F77='${wl}-E'
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L_F77=yes
- ;;
- esac
- fi
- ;;
-
- irix5* | irix6* | nonstopux*)
- if test "$GCC" = yes; then
- archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
- fi
- hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_F77=:
- link_all_deplibs_F77=yes
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
- else
- archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
- fi
- hardcode_libdir_flag_spec_F77='-R$libdir'
- hardcode_direct_F77=yes
- hardcode_shlibpath_var_F77=no
- ;;
-
- newsos6)
- archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct_F77=yes
- hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_F77=:
- hardcode_shlibpath_var_F77=no
- ;;
-
- openbsd*)
- hardcode_direct_F77=yes
- hardcode_shlibpath_var_F77=no
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
- hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
- export_dynamic_flag_spec_F77='${wl}-E'
- else
- case $host_os in
- openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec_F77='-R$libdir'
- ;;
- *)
- archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
- ;;
- esac
- fi
- ;;
-
- os2*)
- hardcode_libdir_flag_spec_F77='-L$libdir'
- hardcode_minus_L_F77=yes
- allow_undefined_flag_F77=unsupported
- archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
- old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
- ;;
-
- osf3*)
- if test "$GCC" = yes; then
- allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- allow_undefined_flag_F77=' -expect_unresolved \*'
- archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- fi
- hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_F77=:
- ;;
-
- osf4* | osf5*) # as osf3* with the addition of -msym flag
- if test "$GCC" = yes; then
- allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
- else
- allow_undefined_flag_F77=' -expect_unresolved \*'
- archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
- $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
-
- # Both c and cxx compiler support -rpath directly
- hardcode_libdir_flag_spec_F77='-rpath $libdir'
- fi
- hardcode_libdir_separator_F77=:
- ;;
-
- solaris*)
- no_undefined_flag_F77=' -z text'
- if test "$GCC" = yes; then
- wlarc='${wl}'
- archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
- else
- wlarc=''
- archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- fi
- hardcode_libdir_flag_spec_F77='-R$libdir'
- hardcode_shlibpath_var_F77=no
- case $host_os in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *)
- # The compiler driver will combine linker options so we
- # cannot just pass the convience library names through
- # without $wl, iff we do not link with $LD.
- # Luckily, gcc supports the same syntax we need for Sun Studio.
- # Supported since Solaris 2.6 (maybe 2.5.1?)
- case $wlarc in
- '')
- whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
- *)
- whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
- esac ;;
- esac
- link_all_deplibs_F77=yes
- ;;
-
- sunos4*)
- if test "x$host_vendor" = xsequent; then
- # Use $CC to link under sequent, because it throws in some extra .o
- # files that make .init and .fini sections work.
- archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
- fi
- hardcode_libdir_flag_spec_F77='-L$libdir'
- hardcode_direct_F77=yes
- hardcode_minus_L_F77=yes
- hardcode_shlibpath_var_F77=no
- ;;
-
- sysv4)
- case $host_vendor in
- sni)
- archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct_F77=yes # is this really true???
- ;;
- siemens)
- ## LD is ld it makes a PLAMLIB
- ## CC just makes a GrossModule.
- archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- reload_cmds_F77='$CC -r -o $output$reload_objs'
- hardcode_direct_F77=no
- ;;
- motorola)
- archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
- ;;
- esac
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var_F77=no
- ;;
-
- sysv4.3*)
- archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var_F77=no
- export_dynamic_flag_spec_F77='-Bexport'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var_F77=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- ld_shlibs_F77=yes
- fi
- ;;
-
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
- no_undefined_flag_F77='${wl}-z,text'
- archive_cmds_need_lc_F77=no
- hardcode_shlibpath_var_F77=no
- runpath_var='LD_RUN_PATH'
-
- if test "$GCC" = yes; then
- archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- ;;
-
- sysv5* | sco3.2v5* | sco5v6*)
- # Note: We can NOT use -z defs as we might desire, because we do not
- # link with -lc, and that would cause any symbols used from libc to
- # always be unresolved, which means just about no library would
- # ever link correctly. If we're not using GNU ld we use -z text
- # though, which does catch some bad symbols but isn't as heavy-handed
- # as -z defs.
- no_undefined_flag_F77='${wl}-z,text'
- allow_undefined_flag_F77='${wl}-z,nodefs'
- archive_cmds_need_lc_F77=no
- hardcode_shlibpath_var_F77=no
- hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
- hardcode_libdir_separator_F77=':'
- link_all_deplibs_F77=yes
- export_dynamic_flag_spec_F77='${wl}-Bexport'
- runpath_var='LD_RUN_PATH'
-
- if test "$GCC" = yes; then
- archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- ;;
-
- uts4*)
- archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec_F77='-L$libdir'
- hardcode_shlibpath_var_F77=no
- ;;
-
- *)
- ld_shlibs_F77=no
- ;;
- esac
- fi
-
-{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
-echo "${ECHO_T}$ld_shlibs_F77" >&6; }
-test "$ld_shlibs_F77" = no && can_build_shared=no
-
-#
-# Do we need to explicitly link libc?
-#
-case "x$archive_cmds_need_lc_F77" in
-x|xyes)
- # Assume -lc should be added
- archive_cmds_need_lc_F77=yes
-
- if test "$enable_shared" = yes && test "$GCC" = yes; then
- case $archive_cmds_F77 in
- *'~'*)
- # FIXME: we may have to deal with multi-command sequences.
- ;;
- '$CC '*)
- # Test whether the compiler implicitly links with -lc since on some
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
- # to ld, don't add -lc before -lgcc.
- { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
-echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
- $rm conftest*
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } 2>conftest.err; then
- soname=conftest
- lib=conftest
- libobjs=conftest.$ac_objext
- deplibs=
- wl=$lt_prog_compiler_wl_F77
- pic_flag=$lt_prog_compiler_pic_F77
- compiler_flags=-v
- linker_flags=-v
- verstring=
- output_objdir=.
- libname=conftest
- lt_save_allow_undefined_flag=$allow_undefined_flag_F77
- allow_undefined_flag_F77=
- if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
- (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
- then
- archive_cmds_need_lc_F77=no
- else
- archive_cmds_need_lc_F77=yes
- fi
- allow_undefined_flag_F77=$lt_save_allow_undefined_flag
- else
- cat conftest.err 1>&5
- fi
- $rm conftest*
- { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
-echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
- ;;
- esac
- fi
- ;;
-esac
-
-{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
-echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-shrext_cmds=".so"
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
- # if the path contains ";" then we assume it to be the separator
- # otherwise default to the standard path separator (i.e. ":") - it is
- # assumed that no part of a normal pathname contains ";" but that should
- # okay in the real world where ";" in dirpaths is itself problematic.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
-else
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-fi
-need_lib_prefix=unknown
-hardcode_into_libs=no
-
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-need_version=unknown
-
-case $host_os in
-aix3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
- shlibpath_var=LIBPATH
-
- # AIX 3 has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
-
-aix4* | aix5*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- else
- # With GCC up to 2.95.x, collect2 would create an import file
- # for dependence libraries. The import file would start with
- # the line `#! .'. This would cause the generated library to
- # depend on `.', always an invalid library. This was fixed in
- # development snapshots of GCC prior to 3.0.
- case $host_os in
- aix4 | aix4.[01] | aix4.[01].*)
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- echo ' yes '
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- :
- else
- can_build_shared=no
- fi
- ;;
- esac
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
- # soname into executable. Probably we can add versioning support to
- # collect2, so additional links can be useful in future.
- if test "$aix_use_runtimelinking" = yes; then
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- # instead of lib<name>.a to let people know that these are not
- # typical AIX shared libraries.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- else
- # We preserve .a as extension for shared libraries through AIX4.2
- # and later when we are not doing run time linking.
- library_names_spec='${libname}${release}.a $libname.a'
- soname_spec='${libname}${release}${shared_ext}$major'
- fi
- shlibpath_var=LIBPATH
- fi
- ;;
-
-amigaos*)
- library_names_spec='$libname.ixlibrary $libname.a'
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
- ;;
-
-beos*)
- library_names_spec='${libname}${shared_ext}'
- dynamic_linker="$host_os ld.so"
- shlibpath_var=LIBRARY_PATH
- ;;
-
-bsdi[45]*)
- version_type=linux
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- # the default ld.so.conf also contains /usr/contrib/lib and
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- # libtool to hard-code these into programs
- ;;
-
-cygwin* | mingw* | pw32*)
- version_type=windows
- shrext_cmds=".dll"
- need_version=no
- need_lib_prefix=no
-
- case $GCC,$host_os in
- yes,cygwin* | yes,mingw* | yes,pw32*)
- library_names_spec='$libname.dll.a'
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
- postinstall_cmds='base_file=`basename \${file}`~
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
- dldir=$destdir/`dirname \$dlpath`~
- test -d \$dldir || mkdir -p \$dldir~
- $install_prog $dir/$dlname \$dldir/$dlname~
- chmod a+x \$dldir/$dlname'
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
- dlpath=$dir/\$dldll~
- $rm \$dlpath'
- shlibpath_overrides_runpath=yes
-
- case $host_os in
- cygwin*)
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
- ;;
- mingw*)
- # MinGW DLLs use traditional 'lib' prefix
- soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
- # It is most probably a Windows format PATH printed by
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
- # path with ; separators, and with drive letters. We can handle the
- # drive letters (cygwin fileutils understands them), so leave them,
- # especially as we might pass files found there to a mingw objdump,
- # which wouldn't understand a cygwinified path. Ahh.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
- ;;
- pw32*)
- # pw32 DLLs use 'pw' prefix rather than 'lib'
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- ;;
- esac
- ;;
-
- *)
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
- ;;
- esac
- dynamic_linker='Win32 ld.exe'
- # FIXME: first we should search . and the directory the executable is in
- shlibpath_var=PATH
- ;;
-
-darwin* | rhapsody*)
- dynamic_linker="$host_os dyld"
- version_type=darwin
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
- soname_spec='${libname}${release}${major}$shared_ext'
- shlibpath_overrides_runpath=yes
- shlibpath_var=DYLD_LIBRARY_PATH
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
- if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
- else
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
- fi
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
- ;;
-
-dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-freebsd1*)
- dynamic_linker=no
- ;;
-
-kfreebsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-freebsd* | dragonfly*)
- # DragonFly does not have aout. When/if they implement a new
- # versioning mechanism, adjust this.
- if test -x /usr/bin/objformat; then
- objformat=`/usr/bin/objformat`
- else
- case $host_os in
- freebsd[123]*) objformat=aout ;;
- *) objformat=elf ;;
- esac
- fi
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- need_version=no
- need_lib_prefix=no
- ;;
- freebsd-*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
- need_version=yes
- ;;
- esac
- shlibpath_var=LD_LIBRARY_PATH
- case $host_os in
- freebsd2*)
- shlibpath_overrides_runpath=yes
- ;;
- freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
- freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- freebsd*) # from 4.6 on
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- esac
- ;;
-
-gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- ;;
-
-hpux9* | hpux10* | hpux11*)
- # Give a soname corresponding to the major version so that dld.sl refuses to
- # link against other versions.
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- case $host_cpu in
- ia64*)
- shrext_cmds='.so'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.so"
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- if test "X$HPUX_IA64_MODE" = X32; then
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
- else
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
- fi
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- hppa*64*)
- shrext_cmds='.sl'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- *)
- shrext_cmds='.sl'
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- esac
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
- postinstall_cmds='chmod 555 $lib'
- ;;
-
-interix3*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $host_os in
- nonstopux*) version_type=nonstopux ;;
- *)
- if test "$lt_cv_prog_gnu_ld" = yes; then
- version_type=linux
- else
- version_type=irix
- fi ;;
- esac
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
- case $host_os in
- irix5* | nonstopux*)
- libsuff= shlibsuff=
- ;;
- *)
- case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
- libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
- libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
- *) libsuff= shlibsuff= libmagic=never-match;;
- esac
- ;;
- esac
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- hardcode_into_libs=yes
- ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux*oldld* | linux*aout* | linux*coff*)
- dynamic_linker=no
- ;;
-
-# This must be Linux ELF.
-linux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- # This implies no fast_install, which is unacceptable.
- # Some rework will be needed to allow for fast_install
- # before this can be enabled.
- hardcode_into_libs=yes
-
- # find out which ABI we are using
- libsuff=
- case "$host_cpu" in
- x86_64*|s390x*|powerpc64*)
- echo '#line 22942 "configure"' > conftest.$ac_ext
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- case `/usr/bin/file conftest.$ac_objext` in
- *64-bit*)
- libsuff=64
- sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
- esac
-
- # Append ld.so.conf contents to the search path
- if test -f /etc/ld.so.conf; then
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
- fi
-
- # We used to test for /lib/ld.so.1 and disable shared libraries on
- # powerpc, because MkLinux only supported shared libraries with the
- # GNU dynamic linker. Since this was broken with cross compilers,
- # most powerpc-linux boxes support dynamic linking these days and
- # people can always --disable-shared, the test was removed, and we
- # assume the GNU/Linux dynamic linker is in use.
- dynamic_linker='GNU/Linux ld.so'
- ;;
-
-knetbsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-netbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- dynamic_linker='NetBSD (a.out) ld.so'
- else
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='NetBSD ld.elf_so'
- fi
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
-
-newsos6)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-nto-qnx*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-openbsd*)
- version_type=sunos
- sys_lib_dlsearch_path_spec="/usr/lib"
- need_lib_prefix=no
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
- case $host_os in
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
- *) need_version=no ;;
- esac
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- case $host_os in
- openbsd2.[89] | openbsd2.[89].*)
- shlibpath_overrides_runpath=no
- ;;
- *)
- shlibpath_overrides_runpath=yes
- ;;
- esac
- else
- shlibpath_overrides_runpath=yes
- fi
- ;;
-
-os2*)
- libname_spec='$name'
- shrext_cmds=".dll"
- need_lib_prefix=no
- library_names_spec='$libname${shared_ext} $libname.a'
- dynamic_linker='OS/2 ld.exe'
- shlibpath_var=LIBPATH
- ;;
-
-osf3* | osf4* | osf5*)
- version_type=osf
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
-
-solaris*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- # ldd complains unless libraries are executable
- postinstall_cmds='chmod +x $lib'
- ;;
-
-sunos4*)
- version_type=sunos
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- fi
- need_version=yes
- ;;
-
-sysv4 | sysv4.3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- case $host_vendor in
- sni)
- shlibpath_overrides_runpath=no
- need_lib_prefix=no
- export_dynamic_flag_spec='${wl}-Blargedynsym'
- runpath_var=LD_RUN_PATH
- ;;
- siemens)
- need_lib_prefix=no
- ;;
- motorola)
- need_lib_prefix=no
- need_version=no
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- ;;
- esac
- ;;
-
-sysv4*MP*)
- if test -d /usr/nec ;then
- version_type=linux
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
- soname_spec='$libname${shared_ext}.$major'
- shlibpath_var=LD_LIBRARY_PATH
- fi
- ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
- version_type=freebsd-elf
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- if test "$with_gnu_ld" = yes; then
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
- shlibpath_overrides_runpath=no
- else
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
- shlibpath_overrides_runpath=yes
- case $host_os in
- sco3.2v5*)
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
- ;;
- esac
- fi
- sys_lib_dlsearch_path_spec='/usr/lib'
- ;;
-
-uts4*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-*)
- dynamic_linker=no
- ;;
-esac
-{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
-echo "${ECHO_T}$dynamic_linker" >&6; }
-test "$dynamic_linker" = no && can_build_shared=no
-
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$GCC" = yes; then
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
-fi
-
-{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
-echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
-hardcode_action_F77=
-if test -n "$hardcode_libdir_flag_spec_F77" || \
- test -n "$runpath_var_F77" || \
- test "X$hardcode_automatic_F77" = "Xyes" ; then
-
- # We can hardcode non-existant directories.
- if test "$hardcode_direct_F77" != no &&
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
- # have to relink, otherwise we might link with an installed library
- # when we should be linking with a yet-to-be-installed one
- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
- test "$hardcode_minus_L_F77" != no; then
- # Linking always hardcodes the temporary library directory.
- hardcode_action_F77=relink
- else
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
- hardcode_action_F77=immediate
- fi
-else
- # We cannot hardcode anything, or else we can only hardcode existing
- # directories.
- hardcode_action_F77=unsupported
-fi
-{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
-echo "${ECHO_T}$hardcode_action_F77" >&6; }
-
-if test "$hardcode_action_F77" = relink; then
- # Fast installation is not supported
- enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
- test "$enable_shared" = no; then
- # Fast installation is not necessary
- enable_fast_install=needless
-fi
-
-
-# The else clause should only fire when bootstrapping the
-# libtool distribution, otherwise you forgot to ship ltmain.sh
-# with your package, and you will get complaints that there are
-# no rules to generate ltmain.sh.
-if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of \ escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
- SED SHELL STRIP \
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
- deplibs_check_method reload_flag reload_cmds need_locks \
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
- lt_cv_sys_global_symbol_to_c_name_address \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- old_postinstall_cmds old_postuninstall_cmds \
- compiler_F77 \
- CC_F77 \
- LD_F77 \
- lt_prog_compiler_wl_F77 \
- lt_prog_compiler_pic_F77 \
- lt_prog_compiler_static_F77 \
- lt_prog_compiler_no_builtin_flag_F77 \
- export_dynamic_flag_spec_F77 \
- thread_safe_flag_spec_F77 \
- whole_archive_flag_spec_F77 \
- enable_shared_with_static_runtimes_F77 \
- old_archive_cmds_F77 \
- old_archive_from_new_cmds_F77 \
- predep_objects_F77 \
- postdep_objects_F77 \
- predeps_F77 \
- postdeps_F77 \
- compiler_lib_search_path_F77 \
- archive_cmds_F77 \
- archive_expsym_cmds_F77 \
- postinstall_cmds_F77 \
- postuninstall_cmds_F77 \
- old_archive_from_expsyms_cmds_F77 \
- allow_undefined_flag_F77 \
- no_undefined_flag_F77 \
- export_symbols_cmds_F77 \
- hardcode_libdir_flag_spec_F77 \
- hardcode_libdir_flag_spec_ld_F77 \
- hardcode_libdir_separator_F77 \
- hardcode_automatic_F77 \
- module_cmds_F77 \
- module_expsym_cmds_F77 \
- lt_cv_prog_compiler_c_o_F77 \
- exclude_expsyms_F77 \
- include_expsyms_F77; do
-
- case $var in
- old_archive_cmds_F77 | \
- old_archive_from_new_cmds_F77 | \
- archive_cmds_F77 | \
- archive_expsym_cmds_F77 | \
- module_cmds_F77 | \
- module_expsym_cmds_F77 | \
- old_archive_from_expsyms_cmds_F77 | \
- export_symbols_cmds_F77 | \
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
-
- case $lt_echo in
- *'\$0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
-
-cfgfile="$ofile"
-
- cat <<__EOF__ >> "$cfgfile"
-# ### BEGIN LIBTOOL TAG CONFIG: $tagname
-
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-
-# Shell to use when invoking shell scripts.
-SHELL=$lt_SHELL
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=$archive_cmds_need_lc_F77
-
-# Whether or not to disallow shared libs when runtime libs are static
-allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# The host system.
-host_alias=$host_alias
-host=$host
-host_os=$host_os
-
-# The build system.
-build_alias=$build_alias
-build=$build
-build_os=$build_os
-
-# An echo program that does not interpret backslashes.
-echo=$lt_echo
-
-# The archiver.
-AR=$lt_AR
-AR_FLAGS=$lt_AR_FLAGS
-
-# A C compiler.
-LTCC=$lt_LTCC
-
-# LTCC compiler flags.
-LTCFLAGS=$lt_LTCFLAGS
-
-# A language-specific compiler.
-CC=$lt_compiler_F77
-
-# Is the compiler the GNU C compiler?
-with_gcc=$GCC_F77
-
-# An ERE matcher.
-EGREP=$lt_EGREP
-
-# The linker used to build libraries.
-LD=$lt_LD_F77
-
-# Whether we need hard or soft links.
-LN_S=$lt_LN_S
-
-# A BSD-compatible nm program.
-NM=$lt_NM
-
-# A symbol stripping program
-STRIP=$lt_STRIP
-
-# Used to examine libraries when file_magic_cmd begins "file"
-MAGIC_CMD=$MAGIC_CMD
-
-# Used on cygwin: DLL creation program.
-DLLTOOL="$DLLTOOL"
-
-# Used on cygwin: object dumper.
-OBJDUMP="$OBJDUMP"
-
-# Used on cygwin: assembler.
-AS="$AS"
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# How to create reloadable object files.
-reload_flag=$lt_reload_flag
-reload_cmds=$lt_reload_cmds
-
-# How to pass a linker flag through the compiler.
-wl=$lt_lt_prog_compiler_wl_F77
-
-# Object file suffix (normally "o").
-objext="$ac_objext"
-
-# Old archive suffix (normally "a").
-libext="$libext"
-
-# Shared library suffix (normally ".so").
-shrext_cmds='$shrext_cmds'
-
-# Executable file suffix (normally "").
-exeext="$exeext"
-
-# Additional compiler flags for building library objects.
-pic_flag=$lt_lt_prog_compiler_pic_F77
-pic_mode=$pic_mode
-
-# What is the maximum length of a command?
-max_cmd_len=$lt_cv_sys_max_cmd_len
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
-
-# Must we lock files when doing compilation?
-need_locks=$lt_need_locks
-
-# Do we need the lib prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Whether dlopen is supported.
-dlopen_support=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$lt_lt_prog_compiler_static_F77
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
-
-# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
-
-# Library versioning type.
-version_type=$version_type
-
-# Format of library name prefix.
-libname_spec=$lt_libname_spec
-
-# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME.
-library_names_spec=$lt_library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$lt_soname_spec
-
-# Commands used to build and install an old-style archive.
-RANLIB=$lt_RANLIB
-old_archive_cmds=$lt_old_archive_cmds_F77
-old_postinstall_cmds=$lt_old_postinstall_cmds
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
-
-# Create a temporary old-style archive to link instead of a shared archive.
-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
-
-# Commands used to build and install a shared archive.
-archive_cmds=$lt_archive_cmds_F77
-archive_expsym_cmds=$lt_archive_expsym_cmds_F77
-postinstall_cmds=$lt_postinstall_cmds
-postuninstall_cmds=$lt_postuninstall_cmds
-
-# Commands used to build a loadable module (assumed same as above if empty)
-module_cmds=$lt_module_cmds_F77
-module_expsym_cmds=$lt_module_expsym_cmds_F77
-
-# Commands to strip libraries.
-old_striplib=$lt_old_striplib
-striplib=$lt_striplib
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predep_objects=$lt_predep_objects_F77
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdep_objects=$lt_postdep_objects_F77
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predeps=$lt_predeps_F77
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdeps=$lt_postdeps_F77
-
-# The library search path used internally by the compiler when linking
-# a shared library.
-compiler_lib_search_path=$lt_compiler_lib_search_path_F77
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$lt_deplibs_check_method
-
-# Command to use when deplibs_check_method == file_magic.
-file_magic_cmd=$lt_file_magic_cmd
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$lt_allow_undefined_flag_F77
-
-# Flag that forces no undefined symbols.
-no_undefined_flag=$lt_no_undefined_flag_F77
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$lt_finish_cmds
-
-# Same as above, but a single script fragment to be evaled but not shown.
-finish_eval=$lt_finish_eval
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
-
-# Transform the output of nm in a C name address pair
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
-
-# This is the shared library runtime path variable.
-runpath_var=$runpath_var
-
-# This is the shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$hardcode_action_F77
-
-# Whether we should hardcode library paths into libraries.
-hardcode_into_libs=$hardcode_into_libs
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
-
-# If ld is used when linking, flag to hardcode \$libdir into
-# a binary during linking. This must work even if \$libdir does
-# not exist.
-hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
-
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct=$hardcode_direct_F77
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L=$hardcode_minus_L_F77
-
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
-# the resulting binary.
-hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
-
-# Set to yes if building a shared library automatically hardcodes DIR into the library
-# and all subsequent libraries and executables linked against it.
-hardcode_automatic=$hardcode_automatic_F77
-
-# Variables whose values should be saved in libtool wrapper scripts and
-# restored at relink time.
-variables_saved_for_relink="$variables_saved_for_relink"
-
-# Whether libtool must link a program against all its dependency libraries.
-link_all_deplibs=$link_all_deplibs_F77
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
-
-# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$fix_srcfile_path_F77"
-
-# Set to yes if exported symbols are required.
-always_export_symbols=$always_export_symbols_F77
-
-# The commands to list exported symbols.
-export_symbols_cmds=$lt_export_symbols_cmds_F77
-
-# The commands to extract the exported symbol list from a shared archive.
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$lt_exclude_expsyms_F77
-
-# Symbols that must always be exported.
-include_expsyms=$lt_include_expsyms_F77
-
-# ### END LIBTOOL TAG CONFIG: $tagname
-
-__EOF__
-
-
-else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
-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
-
-CC="$lt_save_CC"
-
- else
- tagname=""
- fi
- ;;
-
- GCJ)
- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
-
-
-# Source file extension for Java test sources.
-ac_ext=java
-
-# Object file extension for compiled Java test sources.
-objext=o
-objext_GCJ=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="class foo {}\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# If no C compiler flags were specified, use CFLAGS.
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-
-
-# save warnings/boilerplate of simple test code
-ac_outfile=conftest.$ac_objext
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_compiler_boilerplate=`cat conftest.err`
-$rm conftest*
-
-ac_outfile=conftest.$ac_objext
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_linker_boilerplate=`cat conftest.err`
-$rm conftest*
-
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${GCJ-"gcj"}
-compiler=$CC
-compiler_GCJ=$CC
-for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
-done
-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
-
-
-# GCJ did not exist at the time GCC didn't implicitly link libc in.
-archive_cmds_need_lc_GCJ=no
-
-old_archive_cmds_GCJ=$old_archive_cmds
-
-
-lt_prog_compiler_no_builtin_flag_GCJ=
-
-if test "$GCC" = yes; then
- lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
-
-
-{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
-echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
-if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_cv_prog_compiler_rtti_exceptions=no
- ac_outfile=conftest.$ac_objext
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="-fno-rtti -fno-exceptions"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:23716: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&5
- echo "$as_me:23720: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings other than the usual output.
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_rtti_exceptions=yes
- fi
- fi
- $rm conftest*
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
-echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
-
-if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
- lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
-else
- :
-fi
-
-fi
-
-lt_prog_compiler_wl_GCJ=
-lt_prog_compiler_pic_GCJ=
-lt_prog_compiler_static_GCJ=
-
-{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
-echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
-
- if test "$GCC" = yes; then
- lt_prog_compiler_wl_GCJ='-Wl,'
- lt_prog_compiler_static_GCJ='-static'
-
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static_GCJ='-Bstatic'
- fi
- ;;
-
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
- ;;
-
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
- ;;
-
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- lt_prog_compiler_pic_GCJ='-fno-common'
- ;;
-
- interix3*)
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
- # Instead, we relocate shared libraries at runtime.
- ;;
-
- msdosdjgpp*)
- # Just because we use GCC doesn't mean we suddenly get shared libraries
- # on systems that don't support them.
- lt_prog_compiler_can_build_shared_GCJ=no
- enable_shared=no
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- lt_prog_compiler_pic_GCJ=-Kconform_pic
- fi
- ;;
-
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- lt_prog_compiler_pic_GCJ='-fPIC'
- ;;
- esac
- ;;
-
- *)
- lt_prog_compiler_pic_GCJ='-fPIC'
- ;;
- esac
- else
- # PORTME Check for flag to pass linker flags through the system compiler.
- case $host_os in
- aix*)
- lt_prog_compiler_wl_GCJ='-Wl,'
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static_GCJ='-Bstatic'
- else
- lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case $cc_basename in
- xlc*)
- lt_prog_compiler_pic_GCJ='-qnocommon'
- lt_prog_compiler_wl_GCJ='-Wl,'
- ;;
- esac
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
- ;;
-
- hpux9* | hpux10* | hpux11*)
- lt_prog_compiler_wl_GCJ='-Wl,'
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- lt_prog_compiler_pic_GCJ='+Z'
- ;;
- esac
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
- lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
- ;;
-
- irix5* | irix6* | nonstopux*)
- lt_prog_compiler_wl_GCJ='-Wl,'
- # PIC (with -KPIC) is the default.
- lt_prog_compiler_static_GCJ='-non_shared'
- ;;
-
- newsos6)
- lt_prog_compiler_pic_GCJ='-KPIC'
- lt_prog_compiler_static_GCJ='-Bstatic'
- ;;
-
- linux*)
- case $cc_basename in
- icc* | ecc*)
- lt_prog_compiler_wl_GCJ='-Wl,'
- lt_prog_compiler_pic_GCJ='-KPIC'
- lt_prog_compiler_static_GCJ='-static'
- ;;
- pgcc* | pgf77* | pgf90* | pgf95*)
- # Portland Group compilers (*not* the Pentium gcc compiler,
- # which looks to be a dead project)
- lt_prog_compiler_wl_GCJ='-Wl,'
- lt_prog_compiler_pic_GCJ='-fpic'
- lt_prog_compiler_static_GCJ='-Bstatic'
- ;;
- ccc*)
- lt_prog_compiler_wl_GCJ='-Wl,'
- # All Alpha code is PIC.
- lt_prog_compiler_static_GCJ='-non_shared'
- ;;
- esac
- ;;
-
- osf3* | osf4* | osf5*)
- lt_prog_compiler_wl_GCJ='-Wl,'
- # All OSF/1 code is PIC.
- lt_prog_compiler_static_GCJ='-non_shared'
- ;;
-
- solaris*)
- lt_prog_compiler_pic_GCJ='-KPIC'
- lt_prog_compiler_static_GCJ='-Bstatic'
- case $cc_basename in
- f77* | f90* | f95*)
- lt_prog_compiler_wl_GCJ='-Qoption ld ';;
- *)
- lt_prog_compiler_wl_GCJ='-Wl,';;
- esac
- ;;
-
- sunos4*)
- lt_prog_compiler_wl_GCJ='-Qoption ld '
- lt_prog_compiler_pic_GCJ='-PIC'
- lt_prog_compiler_static_GCJ='-Bstatic'
- ;;
-
- sysv4 | sysv4.2uw2* | sysv4.3*)
- lt_prog_compiler_wl_GCJ='-Wl,'
- lt_prog_compiler_pic_GCJ='-KPIC'
- lt_prog_compiler_static_GCJ='-Bstatic'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec ;then
- lt_prog_compiler_pic_GCJ='-Kconform_pic'
- lt_prog_compiler_static_GCJ='-Bstatic'
- fi
- ;;
-
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
- lt_prog_compiler_wl_GCJ='-Wl,'
- lt_prog_compiler_pic_GCJ='-KPIC'
- lt_prog_compiler_static_GCJ='-Bstatic'
- ;;
-
- unicos*)
- lt_prog_compiler_wl_GCJ='-Wl,'
- lt_prog_compiler_can_build_shared_GCJ=no
- ;;
-
- uts4*)
- lt_prog_compiler_pic_GCJ='-pic'
- lt_prog_compiler_static_GCJ='-Bstatic'
- ;;
-
- *)
- lt_prog_compiler_can_build_shared_GCJ=no
- ;;
- esac
- fi
-
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
-echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
-
-#
-# Check to make sure the PIC flag actually works.
-#
-if test -n "$lt_prog_compiler_pic_GCJ"; then
-
-{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
-echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
-if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_prog_compiler_pic_works_GCJ=no
- ac_outfile=conftest.$ac_objext
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:23984: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&5
- echo "$as_me:23988: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings other than the usual output.
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
- lt_prog_compiler_pic_works_GCJ=yes
- fi
- fi
- $rm conftest*
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
-echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
-
-if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
- case $lt_prog_compiler_pic_GCJ in
- "" | " "*) ;;
- *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
- esac
-else
- lt_prog_compiler_pic_GCJ=
- lt_prog_compiler_can_build_shared_GCJ=no
-fi
-
-fi
-case $host_os in
- # For platforms which do not support PIC, -DPIC is meaningless:
- *djgpp*)
- lt_prog_compiler_pic_GCJ=
- ;;
- *)
- lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
- ;;
-esac
-
-#
-# Check to make sure the static flag actually works.
-#
-wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
-{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
-echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
-if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_prog_compiler_static_works_GCJ=no
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
- # The linker can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- # Append any errors to the config.log.
- cat conftest.err 1>&5
- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if diff conftest.exp conftest.er2 >/dev/null; then
- lt_prog_compiler_static_works_GCJ=yes
- fi
- else
- lt_prog_compiler_static_works_GCJ=yes
- fi
- fi
- $rm conftest*
- LDFLAGS="$save_LDFLAGS"
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
-echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
-
-if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
- :
-else
- lt_prog_compiler_static_GCJ=
-fi
-
-
-{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
-echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
-if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- lt_cv_prog_compiler_c_o_GCJ=no
- $rm -r conftest 2>/dev/null
- mkdir conftest
- cd conftest
- mkdir out
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- lt_compiler_flag="-o out/conftest2.$ac_objext"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:24088: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>out/conftest.err)
- ac_status=$?
- cat out/conftest.err >&5
- echo "$as_me:24092: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
- then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_c_o_GCJ=yes
- fi
- fi
- chmod u+w . 2>&5
- $rm conftest*
- # SGI C++ compiler will create directory out/ii_files/ for
- # template instantiation
- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
- $rm out/* && rmdir out
- cd ..
- rmdir conftest
- $rm conftest*
-
-fi
-{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
-echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
-
-
-hard_links="nottested"
-if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
- # do not overwrite the value of need_locks provided by the user
- { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
-echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
- hard_links=yes
- $rm conftest*
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- touch conftest.a
- ln conftest.a conftest.b 2>&5 || hard_links=no
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- { echo "$as_me:$LINENO: result: $hard_links" >&5
-echo "${ECHO_T}$hard_links" >&6; }
- if test "$hard_links" = no; then
- { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
-echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
- need_locks=warn
- fi
-else
- need_locks=no
-fi
-
-{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
-echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
-
- runpath_var=
- allow_undefined_flag_GCJ=
- enable_shared_with_static_runtimes_GCJ=no
- archive_cmds_GCJ=
- archive_expsym_cmds_GCJ=
- old_archive_From_new_cmds_GCJ=
- old_archive_from_expsyms_cmds_GCJ=
- export_dynamic_flag_spec_GCJ=
- whole_archive_flag_spec_GCJ=
- thread_safe_flag_spec_GCJ=
- hardcode_libdir_flag_spec_GCJ=
- hardcode_libdir_flag_spec_ld_GCJ=
- hardcode_libdir_separator_GCJ=
- hardcode_direct_GCJ=no
- hardcode_minus_L_GCJ=no
- hardcode_shlibpath_var_GCJ=unsupported
- link_all_deplibs_GCJ=unknown
- hardcode_automatic_GCJ=no
- module_cmds_GCJ=
- module_expsym_cmds_GCJ=
- always_export_symbols_GCJ=no
- export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- # include_expsyms should be a list of space-separated symbols to be *always*
- # included in the symbol list
- include_expsyms_GCJ=
- # exclude_expsyms can be an extended regexp of symbols to exclude
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
- # as well as any symbol that contains `d'.
- exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
- # platforms (ab)use it in PIC code, but their linkers get confused if
- # the symbol is explicitly referenced. Since portable code cannot
- # rely on this symbol name, it's probably fine to never include it in
- # preloaded symbol tables.
- extract_expsyms_cmds=
- # Just being paranoid about ensuring that cc_basename is set.
- for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
-done
-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
-
- case $host_os in
- cygwin* | mingw* | pw32*)
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- if test "$GCC" != yes; then
- with_gnu_ld=no
- fi
- ;;
- interix*)
- # we just hope/assume this is gcc and not c89 (= MSVC++)
- with_gnu_ld=yes
- ;;
- openbsd*)
- with_gnu_ld=no
- ;;
- esac
-
- ld_shlibs_GCJ=yes
- if test "$with_gnu_ld" = yes; then
- # If archive_cmds runs LD, not CC, wlarc should be empty
- wlarc='${wl}'
-
- # Set some defaults for GNU ld with shared library support. These
- # are reset later if shared libraries are not supported. Putting them
- # here allows them to be overridden if necessary.
- runpath_var=LD_RUN_PATH
- hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
- whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- whole_archive_flag_spec_GCJ=
- fi
- supports_anon_versioning=no
- case `$LD -v 2>/dev/null` in
- *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
- *\ 2.11.*) ;; # other 2.11 versions
- *) supports_anon_versioning=yes ;;
- esac
-
- # See if GNU ld supports shared libraries.
- case $host_os in
- aix3* | aix4* | aix5*)
- # On AIX/PPC, the GNU linker is very broken
- if test "$host_cpu" != ia64; then
- ld_shlibs_GCJ=no
- cat <<EOF 1>&2
-
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support. If you
-*** really care for shared libraries, you may want to modify your PATH
-*** so that a non-GNU linker is found, and then restart.
-
-EOF
- fi
- ;;
-
- amigaos*)
- archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- hardcode_libdir_flag_spec_GCJ='-L$libdir'
- hardcode_minus_L_GCJ=yes
-
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- # that the semantics of dynamic libraries on AmigaOS, at least up
- # to version 4, is to share data among multiple programs linked
- # with the same dynamic library. Since this doesn't match the
- # behavior of shared libraries on other platforms, we can't use
- # them.
- ld_shlibs_GCJ=no
- ;;
-
- beos*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- allow_undefined_flag_GCJ=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- ld_shlibs_GCJ=no
- fi
- ;;
-
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
- # as there is no search path for DLLs.
- hardcode_libdir_flag_spec_GCJ='-L$libdir'
- allow_undefined_flag_GCJ=unsupported
- always_export_symbols_GCJ=no
- enable_shared_with_static_runtimes_GCJ=yes
- export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
-
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- else
- ld_shlibs_GCJ=no
- fi
- ;;
-
- interix3*)
- hardcode_direct_GCJ=no
- hardcode_shlibpath_var_GCJ=no
- hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
- export_dynamic_flag_spec_GCJ='${wl}-E'
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
- # Instead, shared libraries are loaded at an image base (0x10000000 by
- # default) and relocated if they conflict, which is a slow very memory
- # consuming and fragmenting process. To avoid this, we pick a random,
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
- archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- ;;
-
- linux*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- tmp_addflag=
- case $cc_basename,$host_cpu in
- pgcc*) # Portland Group C compiler
- whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_addflag=' $pic_flag'
- ;;
- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
- whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_addflag=' $pic_flag -Mnomain' ;;
- ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
- tmp_addflag=' -i_dynamic' ;;
- efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
- tmp_addflag=' -i_dynamic -nofor_main' ;;
- ifc* | ifort*) # Intel Fortran compiler
- tmp_addflag=' -nofor_main' ;;
- esac
- archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-
- if test $supports_anon_versioning = yes; then
- archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
- $echo "local: *; };" >> $output_objdir/$libname.ver~
- $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
- fi
- else
- ld_shlibs_GCJ=no
- fi
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
- wlarc=
- else
- archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- fi
- ;;
-
- solaris*)
- if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
- ld_shlibs_GCJ=no
- cat <<EOF 1>&2
-
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
-*** create shared libraries on Solaris systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.9.1 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-EOF
- elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs_GCJ=no
- fi
- ;;
-
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
- case `$LD -v 2>&1` in
- *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
- ld_shlibs_GCJ=no
- cat <<_LT_EOF 1>&2
-
-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
-*** reliably create shared libraries on SCO systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-_LT_EOF
- ;;
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
- archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
- archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
- else
- ld_shlibs_GCJ=no
- fi
- ;;
- esac
- ;;
-
- sunos4*)
- archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- wlarc=
- hardcode_direct_GCJ=yes
- hardcode_shlibpath_var_GCJ=no
- ;;
-
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs_GCJ=no
- fi
- ;;
- esac
-
- if test "$ld_shlibs_GCJ" = no; then
- runpath_var=
- hardcode_libdir_flag_spec_GCJ=
- export_dynamic_flag_spec_GCJ=
- whole_archive_flag_spec_GCJ=
- fi
- else
- # PORTME fill in a description of your system's linker (not GNU ld)
- case $host_os in
- aix3*)
- allow_undefined_flag_GCJ=unsupported
- always_export_symbols_GCJ=yes
- archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
- # Note: this linker hardcodes the directories in LIBPATH if there
- # are no directories specified by -L.
- hardcode_minus_L_GCJ=yes
- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
- # Neither direct hardcoding nor static linking is supported with a
- # broken collect2.
- hardcode_direct_GCJ=unsupported
- fi
- ;;
-
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- else
- export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- fi
- aix_use_runtimelinking=no
-
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[23]|aix4.[23].*|aix5*)
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
- aix_use_runtimelinking=yes
- break
- fi
- done
- ;;
- esac
-
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
-
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
- archive_cmds_GCJ=''
- hardcode_direct_GCJ=yes
- hardcode_libdir_separator_GCJ=':'
- link_all_deplibs_GCJ=yes
-
- if test "$GCC" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- hardcode_direct_GCJ=yes
- else
- # We have old collect2
- hardcode_direct_GCJ=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- hardcode_minus_L_GCJ=yes
- hardcode_libdir_flag_spec_GCJ='-L$libdir'
- hardcode_libdir_separator_GCJ=
- fi
- ;;
- esac
- shared_flag='-shared'
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
-
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- always_export_symbols_GCJ=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- allow_undefined_flag_GCJ='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
-
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-
- hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
- archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
- allow_undefined_flag_GCJ="-z nodefs"
- archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
-
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-
- hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- no_undefined_flag_GCJ=' ${wl}-bernotok'
- allow_undefined_flag_GCJ=' ${wl}-berok'
- # Exported symbols can be pulled into shared objects from archives
- whole_archive_flag_spec_GCJ='$convenience'
- archive_cmds_need_lc_GCJ=yes
- # This is similar to how AIX traditionally builds its shared libraries.
- archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
-
- amigaos*)
- archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- hardcode_libdir_flag_spec_GCJ='-L$libdir'
- hardcode_minus_L_GCJ=yes
- # see comment about different semantics on the GNU ld section
- ld_shlibs_GCJ=no
- ;;
-
- bsdi[45]*)
- export_dynamic_flag_spec_GCJ=-rdynamic
- ;;
-
- cygwin* | mingw* | pw32*)
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- hardcode_libdir_flag_spec_GCJ=' '
- allow_undefined_flag_GCJ=unsupported
- # Tell ltmain to make .lib files, not .a files.
- libext=lib
- # Tell ltmain to make .dll files, not .so files.
- shrext_cmds=".dll"
- # FIXME: Setting linknames here is a bad hack.
- archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
- # The linker will automatically build a .lib file if we build a DLL.
- old_archive_From_new_cmds_GCJ='true'
- # FIXME: Should let the user specify the lib program.
- old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
- fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
- enable_shared_with_static_runtimes_GCJ=yes
- ;;
-
- darwin* | rhapsody*)
- case $host_os in
- rhapsody* | darwin1.[012])
- allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[012])
- allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- archive_cmds_need_lc_GCJ=no
- hardcode_direct_GCJ=no
- hardcode_automatic_GCJ=yes
- hardcode_shlibpath_var_GCJ=unsupported
- whole_archive_flag_spec_GCJ=''
- link_all_deplibs_GCJ=yes
- if test "$GCC" = yes ; then
- output_verbose_link_cmd='echo'
- archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- case $cc_basename in
- xlc*)
- output_verbose_link_cmd='echo'
- archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
- module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- ld_shlibs_GCJ=no
- ;;
- esac
- fi
- ;;
-
- dgux*)
- archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec_GCJ='-L$libdir'
- hardcode_shlibpath_var_GCJ=no
- ;;
-
- freebsd1*)
- ld_shlibs_GCJ=no
- ;;
-
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- # support. Future versions do this automatically, but an explicit c++rt0.o
- # does not break anything, and helps significantly (at the cost of a little
- # extra space).
- freebsd2.2*)
- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
- hardcode_libdir_flag_spec_GCJ='-R$libdir'
- hardcode_direct_GCJ=yes
- hardcode_shlibpath_var_GCJ=no
- ;;
-
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- freebsd2*)
- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct_GCJ=yes
- hardcode_minus_L_GCJ=yes
- hardcode_shlibpath_var_GCJ=no
- ;;
-
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- freebsd* | kfreebsd*-gnu | dragonfly*)
- archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
- hardcode_libdir_flag_spec_GCJ='-R$libdir'
- hardcode_direct_GCJ=yes
- hardcode_shlibpath_var_GCJ=no
- ;;
-
- hpux9*)
- if test "$GCC" = yes; then
- archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- fi
- hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_GCJ=:
- hardcode_direct_GCJ=yes
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L_GCJ=yes
- export_dynamic_flag_spec_GCJ='${wl}-E'
- ;;
-
- hpux10*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
- fi
- if test "$with_gnu_ld" = no; then
- hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_GCJ=:
-
- hardcode_direct_GCJ=yes
- export_dynamic_flag_spec_GCJ='${wl}-E'
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L_GCJ=yes
- fi
- ;;
-
- hpux11*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- case $host_cpu in
- hppa*64*)
- archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- ia64*)
- archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- else
- case $host_cpu in
- hppa*64*)
- archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- ia64*)
- archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- fi
- if test "$with_gnu_ld" = no; then
- hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_GCJ=:
-
- case $host_cpu in
- hppa*64*|ia64*)
- hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
- hardcode_direct_GCJ=no
- hardcode_shlibpath_var_GCJ=no
- ;;
- *)
- hardcode_direct_GCJ=yes
- export_dynamic_flag_spec_GCJ='${wl}-E'
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L_GCJ=yes
- ;;
- esac
- fi
- ;;
-
- irix5* | irix6* | nonstopux*)
- if test "$GCC" = yes; then
- archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
- fi
- hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_GCJ=:
- link_all_deplibs_GCJ=yes
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
- else
- archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
- fi
- hardcode_libdir_flag_spec_GCJ='-R$libdir'
- hardcode_direct_GCJ=yes
- hardcode_shlibpath_var_GCJ=no
- ;;
-
- newsos6)
- archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct_GCJ=yes
- hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_GCJ=:
- hardcode_shlibpath_var_GCJ=no
- ;;
-
- openbsd*)
- hardcode_direct_GCJ=yes
- hardcode_shlibpath_var_GCJ=no
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
- hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
- export_dynamic_flag_spec_GCJ='${wl}-E'
- else
- case $host_os in
- openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec_GCJ='-R$libdir'
- ;;
- *)
- archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
- ;;
- esac
- fi
- ;;
-
- os2*)
- hardcode_libdir_flag_spec_GCJ='-L$libdir'
- hardcode_minus_L_GCJ=yes
- allow_undefined_flag_GCJ=unsupported
- archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
- old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
- ;;
-
- osf3*)
- if test "$GCC" = yes; then
- allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- allow_undefined_flag_GCJ=' -expect_unresolved \*'
- archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- fi
- hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_GCJ=:
- ;;
-
- osf4* | osf5*) # as osf3* with the addition of -msym flag
- if test "$GCC" = yes; then
- allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
- else
- allow_undefined_flag_GCJ=' -expect_unresolved \*'
- archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
- $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
-
- # Both c and cxx compiler support -rpath directly
- hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
- fi
- hardcode_libdir_separator_GCJ=:
- ;;
-
- solaris*)
- no_undefined_flag_GCJ=' -z text'
- if test "$GCC" = yes; then
- wlarc='${wl}'
- archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
- else
- wlarc=''
- archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- fi
- hardcode_libdir_flag_spec_GCJ='-R$libdir'
- hardcode_shlibpath_var_GCJ=no
- case $host_os in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *)
- # The compiler driver will combine linker options so we
- # cannot just pass the convience library names through
- # without $wl, iff we do not link with $LD.
- # Luckily, gcc supports the same syntax we need for Sun Studio.
- # Supported since Solaris 2.6 (maybe 2.5.1?)
- case $wlarc in
- '')
- whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
- *)
- whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
- esac ;;
- esac
- link_all_deplibs_GCJ=yes
- ;;
-
- sunos4*)
- if test "x$host_vendor" = xsequent; then
- # Use $CC to link under sequent, because it throws in some extra .o
- # files that make .init and .fini sections work.
- archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
- fi
- hardcode_libdir_flag_spec_GCJ='-L$libdir'
- hardcode_direct_GCJ=yes
- hardcode_minus_L_GCJ=yes
- hardcode_shlibpath_var_GCJ=no
- ;;
-
- sysv4)
- case $host_vendor in
- sni)
- archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct_GCJ=yes # is this really true???
- ;;
- siemens)
- ## LD is ld it makes a PLAMLIB
- ## CC just makes a GrossModule.
- archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- reload_cmds_GCJ='$CC -r -o $output$reload_objs'
- hardcode_direct_GCJ=no
- ;;
- motorola)
- archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
- ;;
- esac
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var_GCJ=no
- ;;
-
- sysv4.3*)
- archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var_GCJ=no
- export_dynamic_flag_spec_GCJ='-Bexport'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var_GCJ=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- ld_shlibs_GCJ=yes
- fi
- ;;
-
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
- no_undefined_flag_GCJ='${wl}-z,text'
- archive_cmds_need_lc_GCJ=no
- hardcode_shlibpath_var_GCJ=no
- runpath_var='LD_RUN_PATH'
-
- if test "$GCC" = yes; then
- archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- ;;
-
- sysv5* | sco3.2v5* | sco5v6*)
- # Note: We can NOT use -z defs as we might desire, because we do not
- # link with -lc, and that would cause any symbols used from libc to
- # always be unresolved, which means just about no library would
- # ever link correctly. If we're not using GNU ld we use -z text
- # though, which does catch some bad symbols but isn't as heavy-handed
- # as -z defs.
- no_undefined_flag_GCJ='${wl}-z,text'
- allow_undefined_flag_GCJ='${wl}-z,nodefs'
- archive_cmds_need_lc_GCJ=no
- hardcode_shlibpath_var_GCJ=no
- hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
- hardcode_libdir_separator_GCJ=':'
- link_all_deplibs_GCJ=yes
- export_dynamic_flag_spec_GCJ='${wl}-Bexport'
- runpath_var='LD_RUN_PATH'
-
- if test "$GCC" = yes; then
- archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- ;;
-
- uts4*)
- archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec_GCJ='-L$libdir'
- hardcode_shlibpath_var_GCJ=no
- ;;
-
- *)
- ld_shlibs_GCJ=no
- ;;
- esac
- fi
-
-{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
-echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
-test "$ld_shlibs_GCJ" = no && can_build_shared=no
-
-#
-# Do we need to explicitly link libc?
-#
-case "x$archive_cmds_need_lc_GCJ" in
-x|xyes)
- # Assume -lc should be added
- archive_cmds_need_lc_GCJ=yes
-
- if test "$enable_shared" = yes && test "$GCC" = yes; then
- case $archive_cmds_GCJ in
- *'~'*)
- # FIXME: we may have to deal with multi-command sequences.
- ;;
- '$CC '*)
- # Test whether the compiler implicitly links with -lc since on some
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
- # to ld, don't add -lc before -lgcc.
- { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
-echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
- $rm conftest*
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } 2>conftest.err; then
- soname=conftest
- lib=conftest
- libobjs=conftest.$ac_objext
- deplibs=
- wl=$lt_prog_compiler_wl_GCJ
- pic_flag=$lt_prog_compiler_pic_GCJ
- compiler_flags=-v
- linker_flags=-v
- verstring=
- output_objdir=.
- libname=conftest
- lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
- allow_undefined_flag_GCJ=
- if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
- (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
- then
- archive_cmds_need_lc_GCJ=no
- else
- archive_cmds_need_lc_GCJ=yes
- fi
- allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
- else
- cat conftest.err 1>&5
- fi
- $rm conftest*
- { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
-echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
- ;;
- esac
- fi
- ;;
-esac
-
-{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
-echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-shrext_cmds=".so"
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
- # if the path contains ";" then we assume it to be the separator
- # otherwise default to the standard path separator (i.e. ":") - it is
- # assumed that no part of a normal pathname contains ";" but that should
- # okay in the real world where ";" in dirpaths is itself problematic.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
-else
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-fi
-need_lib_prefix=unknown
-hardcode_into_libs=no
-
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-need_version=unknown
-
-case $host_os in
-aix3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
- shlibpath_var=LIBPATH
-
- # AIX 3 has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
-
-aix4* | aix5*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- else
- # With GCC up to 2.95.x, collect2 would create an import file
- # for dependence libraries. The import file would start with
- # the line `#! .'. This would cause the generated library to
- # depend on `.', always an invalid library. This was fixed in
- # development snapshots of GCC prior to 3.0.
- case $host_os in
- aix4 | aix4.[01] | aix4.[01].*)
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- echo ' yes '
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- :
- else
- can_build_shared=no
- fi
- ;;
- esac
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
- # soname into executable. Probably we can add versioning support to
- # collect2, so additional links can be useful in future.
- if test "$aix_use_runtimelinking" = yes; then
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- # instead of lib<name>.a to let people know that these are not
- # typical AIX shared libraries.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- else
- # We preserve .a as extension for shared libraries through AIX4.2
- # and later when we are not doing run time linking.
- library_names_spec='${libname}${release}.a $libname.a'
- soname_spec='${libname}${release}${shared_ext}$major'
- fi
- shlibpath_var=LIBPATH
- fi
- ;;
-
-amigaos*)
- library_names_spec='$libname.ixlibrary $libname.a'
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
- ;;
-
-beos*)
- library_names_spec='${libname}${shared_ext}'
- dynamic_linker="$host_os ld.so"
- shlibpath_var=LIBRARY_PATH
- ;;
-
-bsdi[45]*)
- version_type=linux
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- # the default ld.so.conf also contains /usr/contrib/lib and
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- # libtool to hard-code these into programs
- ;;
-
-cygwin* | mingw* | pw32*)
- version_type=windows
- shrext_cmds=".dll"
- need_version=no
- need_lib_prefix=no
-
- case $GCC,$host_os in
- yes,cygwin* | yes,mingw* | yes,pw32*)
- library_names_spec='$libname.dll.a'
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
- postinstall_cmds='base_file=`basename \${file}`~
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
- dldir=$destdir/`dirname \$dlpath`~
- test -d \$dldir || mkdir -p \$dldir~
- $install_prog $dir/$dlname \$dldir/$dlname~
- chmod a+x \$dldir/$dlname'
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
- dlpath=$dir/\$dldll~
- $rm \$dlpath'
- shlibpath_overrides_runpath=yes
-
- case $host_os in
- cygwin*)
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
- ;;
- mingw*)
- # MinGW DLLs use traditional 'lib' prefix
- soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
- # It is most probably a Windows format PATH printed by
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
- # path with ; separators, and with drive letters. We can handle the
- # drive letters (cygwin fileutils understands them), so leave them,
- # especially as we might pass files found there to a mingw objdump,
- # which wouldn't understand a cygwinified path. Ahh.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
- ;;
- pw32*)
- # pw32 DLLs use 'pw' prefix rather than 'lib'
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- ;;
- esac
- ;;
-
- *)
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
- ;;
- esac
- dynamic_linker='Win32 ld.exe'
- # FIXME: first we should search . and the directory the executable is in
- shlibpath_var=PATH
- ;;
-
-darwin* | rhapsody*)
- dynamic_linker="$host_os dyld"
- version_type=darwin
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
- soname_spec='${libname}${release}${major}$shared_ext'
- shlibpath_overrides_runpath=yes
- shlibpath_var=DYLD_LIBRARY_PATH
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
- if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
- else
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
- fi
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
- ;;
-
-dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-freebsd1*)
- dynamic_linker=no
- ;;
-
-kfreebsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-freebsd* | dragonfly*)
- # DragonFly does not have aout. When/if they implement a new
- # versioning mechanism, adjust this.
- if test -x /usr/bin/objformat; then
- objformat=`/usr/bin/objformat`
- else
- case $host_os in
- freebsd[123]*) objformat=aout ;;
- *) objformat=elf ;;
- esac
- fi
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- need_version=no
- need_lib_prefix=no
- ;;
- freebsd-*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
- need_version=yes
- ;;
- esac
- shlibpath_var=LD_LIBRARY_PATH
- case $host_os in
- freebsd2*)
- shlibpath_overrides_runpath=yes
- ;;
- freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
- freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- freebsd*) # from 4.6 on
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- esac
- ;;
-
-gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- ;;
-
-hpux9* | hpux10* | hpux11*)
- # Give a soname corresponding to the major version so that dld.sl refuses to
- # link against other versions.
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- case $host_cpu in
- ia64*)
- shrext_cmds='.so'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.so"
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- if test "X$HPUX_IA64_MODE" = X32; then
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
- else
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
- fi
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- hppa*64*)
- shrext_cmds='.sl'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- *)
- shrext_cmds='.sl'
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- esac
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
- postinstall_cmds='chmod 555 $lib'
- ;;
-
-interix3*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $host_os in
- nonstopux*) version_type=nonstopux ;;
- *)
- if test "$lt_cv_prog_gnu_ld" = yes; then
- version_type=linux
- else
- version_type=irix
- fi ;;
- esac
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
- case $host_os in
- irix5* | nonstopux*)
- libsuff= shlibsuff=
- ;;
- *)
- case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
- libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
- libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
- *) libsuff= shlibsuff= libmagic=never-match;;
- esac
- ;;
- esac
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- hardcode_into_libs=yes
- ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux*oldld* | linux*aout* | linux*coff*)
- dynamic_linker=no
- ;;
-
-# This must be Linux ELF.
-linux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- # This implies no fast_install, which is unacceptable.
- # Some rework will be needed to allow for fast_install
- # before this can be enabled.
- hardcode_into_libs=yes
-
- # find out which ABI we are using
- libsuff=
- case "$host_cpu" in
- x86_64*|s390x*|powerpc64*)
- echo '#line 25553 "configure"' > conftest.$ac_ext
- if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- case `/usr/bin/file conftest.$ac_objext` in
- *64-bit*)
- libsuff=64
- sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
- esac
-
- # Append ld.so.conf contents to the search path
- if test -f /etc/ld.so.conf; then
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
- fi
-
- # We used to test for /lib/ld.so.1 and disable shared libraries on
- # powerpc, because MkLinux only supported shared libraries with the
- # GNU dynamic linker. Since this was broken with cross compilers,
- # most powerpc-linux boxes support dynamic linking these days and
- # people can always --disable-shared, the test was removed, and we
- # assume the GNU/Linux dynamic linker is in use.
- dynamic_linker='GNU/Linux ld.so'
- ;;
-
-knetbsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-netbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- dynamic_linker='NetBSD (a.out) ld.so'
- else
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='NetBSD ld.elf_so'
- fi
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
-
-newsos6)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-nto-qnx*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-openbsd*)
- version_type=sunos
- sys_lib_dlsearch_path_spec="/usr/lib"
- need_lib_prefix=no
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
- case $host_os in
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
- *) need_version=no ;;
- esac
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- case $host_os in
- openbsd2.[89] | openbsd2.[89].*)
- shlibpath_overrides_runpath=no
- ;;
- *)
- shlibpath_overrides_runpath=yes
- ;;
- esac
- else
- shlibpath_overrides_runpath=yes
- fi
- ;;
-
-os2*)
- libname_spec='$name'
- shrext_cmds=".dll"
- need_lib_prefix=no
- library_names_spec='$libname${shared_ext} $libname.a'
- dynamic_linker='OS/2 ld.exe'
- shlibpath_var=LIBPATH
- ;;
-
-osf3* | osf4* | osf5*)
- version_type=osf
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
-
-solaris*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- # ldd complains unless libraries are executable
- postinstall_cmds='chmod +x $lib'
- ;;
-
-sunos4*)
- version_type=sunos
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- fi
- need_version=yes
- ;;
-
-sysv4 | sysv4.3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- case $host_vendor in
- sni)
- shlibpath_overrides_runpath=no
- need_lib_prefix=no
- export_dynamic_flag_spec='${wl}-Blargedynsym'
- runpath_var=LD_RUN_PATH
- ;;
- siemens)
- need_lib_prefix=no
- ;;
- motorola)
- need_lib_prefix=no
- need_version=no
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- ;;
- esac
- ;;
-
-sysv4*MP*)
- if test -d /usr/nec ;then
- version_type=linux
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
- soname_spec='$libname${shared_ext}.$major'
- shlibpath_var=LD_LIBRARY_PATH
- fi
- ;;
-
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
- version_type=freebsd-elf
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- if test "$with_gnu_ld" = yes; then
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
- shlibpath_overrides_runpath=no
- else
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
- shlibpath_overrides_runpath=yes
- case $host_os in
- sco3.2v5*)
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
- ;;
- esac
- fi
- sys_lib_dlsearch_path_spec='/usr/lib'
- ;;
-
-uts4*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-*)
- dynamic_linker=no
- ;;
-esac
-{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
-echo "${ECHO_T}$dynamic_linker" >&6; }
-test "$dynamic_linker" = no && can_build_shared=no
-
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$GCC" = yes; then
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
-fi
-
-{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
-echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
-hardcode_action_GCJ=
-if test -n "$hardcode_libdir_flag_spec_GCJ" || \
- test -n "$runpath_var_GCJ" || \
- test "X$hardcode_automatic_GCJ" = "Xyes" ; then
-
- # We can hardcode non-existant directories.
- if test "$hardcode_direct_GCJ" != no &&
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
- # have to relink, otherwise we might link with an installed library
- # when we should be linking with a yet-to-be-installed one
- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
- test "$hardcode_minus_L_GCJ" != no; then
- # Linking always hardcodes the temporary library directory.
- hardcode_action_GCJ=relink
- else
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
- hardcode_action_GCJ=immediate
- fi
-else
- # We cannot hardcode anything, or else we can only hardcode existing
- # directories.
- hardcode_action_GCJ=unsupported
-fi
-{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
-echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
-
-if test "$hardcode_action_GCJ" = relink; then
- # Fast installation is not supported
- enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
- test "$enable_shared" = no; then
- # Fast installation is not necessary
- enable_fast_install=needless
-fi
-
-
-# The else clause should only fire when bootstrapping the
-# libtool distribution, otherwise you forgot to ship ltmain.sh
-# with your package, and you will get complaints that there are
-# no rules to generate ltmain.sh.
-if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of \ escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
- SED SHELL STRIP \
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
- deplibs_check_method reload_flag reload_cmds need_locks \
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
- lt_cv_sys_global_symbol_to_c_name_address \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- old_postinstall_cmds old_postuninstall_cmds \
- compiler_GCJ \
- CC_GCJ \
- LD_GCJ \
- lt_prog_compiler_wl_GCJ \
- lt_prog_compiler_pic_GCJ \
- lt_prog_compiler_static_GCJ \
- lt_prog_compiler_no_builtin_flag_GCJ \
- export_dynamic_flag_spec_GCJ \
- thread_safe_flag_spec_GCJ \
- whole_archive_flag_spec_GCJ \
- enable_shared_with_static_runtimes_GCJ \
- old_archive_cmds_GCJ \
- old_archive_from_new_cmds_GCJ \
- predep_objects_GCJ \
- postdep_objects_GCJ \
- predeps_GCJ \
- postdeps_GCJ \
- compiler_lib_search_path_GCJ \
- archive_cmds_GCJ \
- archive_expsym_cmds_GCJ \
- postinstall_cmds_GCJ \
- postuninstall_cmds_GCJ \
- old_archive_from_expsyms_cmds_GCJ \
- allow_undefined_flag_GCJ \
- no_undefined_flag_GCJ \
- export_symbols_cmds_GCJ \
- hardcode_libdir_flag_spec_GCJ \
- hardcode_libdir_flag_spec_ld_GCJ \
- hardcode_libdir_separator_GCJ \
- hardcode_automatic_GCJ \
- module_cmds_GCJ \
- module_expsym_cmds_GCJ \
- lt_cv_prog_compiler_c_o_GCJ \
- exclude_expsyms_GCJ \
- include_expsyms_GCJ; do
-
- case $var in
- old_archive_cmds_GCJ | \
- old_archive_from_new_cmds_GCJ | \
- archive_cmds_GCJ | \
- archive_expsym_cmds_GCJ | \
- module_cmds_GCJ | \
- module_expsym_cmds_GCJ | \
- old_archive_from_expsyms_cmds_GCJ | \
- export_symbols_cmds_GCJ | \
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
-
- case $lt_echo in
- *'\$0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
-
-cfgfile="$ofile"
-
- cat <<__EOF__ >> "$cfgfile"
-# ### BEGIN LIBTOOL TAG CONFIG: $tagname
-
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-
-# Shell to use when invoking shell scripts.
-SHELL=$lt_SHELL
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=$archive_cmds_need_lc_GCJ
-
-# Whether or not to disallow shared libs when runtime libs are static
-allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# The host system.
-host_alias=$host_alias
-host=$host
-host_os=$host_os
-
-# The build system.
-build_alias=$build_alias
-build=$build
-build_os=$build_os
-
-# An echo program that does not interpret backslashes.
-echo=$lt_echo
-
-# The archiver.
-AR=$lt_AR
-AR_FLAGS=$lt_AR_FLAGS
-
-# A C compiler.
-LTCC=$lt_LTCC
-
-# LTCC compiler flags.
-LTCFLAGS=$lt_LTCFLAGS
-
-# A language-specific compiler.
-CC=$lt_compiler_GCJ
-
-# Is the compiler the GNU C compiler?
-with_gcc=$GCC_GCJ
-
-# An ERE matcher.
-EGREP=$lt_EGREP
-
-# The linker used to build libraries.
-LD=$lt_LD_GCJ
-
-# Whether we need hard or soft links.
-LN_S=$lt_LN_S
-
-# A BSD-compatible nm program.
-NM=$lt_NM
-
-# A symbol stripping program
-STRIP=$lt_STRIP
-
-# Used to examine libraries when file_magic_cmd begins "file"
-MAGIC_CMD=$MAGIC_CMD
-
-# Used on cygwin: DLL creation program.
-DLLTOOL="$DLLTOOL"
-
-# Used on cygwin: object dumper.
-OBJDUMP="$OBJDUMP"
-
-# Used on cygwin: assembler.
-AS="$AS"
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# How to create reloadable object files.
-reload_flag=$lt_reload_flag
-reload_cmds=$lt_reload_cmds
-
-# How to pass a linker flag through the compiler.
-wl=$lt_lt_prog_compiler_wl_GCJ
-
-# Object file suffix (normally "o").
-objext="$ac_objext"
-
-# Old archive suffix (normally "a").
-libext="$libext"
-
-# Shared library suffix (normally ".so").
-shrext_cmds='$shrext_cmds'
-
-# Executable file suffix (normally "").
-exeext="$exeext"
-
-# Additional compiler flags for building library objects.
-pic_flag=$lt_lt_prog_compiler_pic_GCJ
-pic_mode=$pic_mode
-
-# What is the maximum length of a command?
-max_cmd_len=$lt_cv_sys_max_cmd_len
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
-
-# Must we lock files when doing compilation?
-need_locks=$lt_need_locks
-
-# Do we need the lib prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Whether dlopen is supported.
-dlopen_support=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$lt_lt_prog_compiler_static_GCJ
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
-
-# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
-
-# Library versioning type.
-version_type=$version_type
-
-# Format of library name prefix.
-libname_spec=$lt_libname_spec
-
-# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME.
-library_names_spec=$lt_library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$lt_soname_spec
-
-# Commands used to build and install an old-style archive.
-RANLIB=$lt_RANLIB
-old_archive_cmds=$lt_old_archive_cmds_GCJ
-old_postinstall_cmds=$lt_old_postinstall_cmds
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
-
-# Create a temporary old-style archive to link instead of a shared archive.
-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
-
-# Commands used to build and install a shared archive.
-archive_cmds=$lt_archive_cmds_GCJ
-archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
-postinstall_cmds=$lt_postinstall_cmds
-postuninstall_cmds=$lt_postuninstall_cmds
-
-# Commands used to build a loadable module (assumed same as above if empty)
-module_cmds=$lt_module_cmds_GCJ
-module_expsym_cmds=$lt_module_expsym_cmds_GCJ
-
-# Commands to strip libraries.
-old_striplib=$lt_old_striplib
-striplib=$lt_striplib
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predep_objects=$lt_predep_objects_GCJ
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdep_objects=$lt_postdep_objects_GCJ
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predeps=$lt_predeps_GCJ
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdeps=$lt_postdeps_GCJ
-
-# The library search path used internally by the compiler when linking
-# a shared library.
-compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$lt_deplibs_check_method
-
-# Command to use when deplibs_check_method == file_magic.
-file_magic_cmd=$lt_file_magic_cmd
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$lt_allow_undefined_flag_GCJ
-
-# Flag that forces no undefined symbols.
-no_undefined_flag=$lt_no_undefined_flag_GCJ
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$lt_finish_cmds
-
-# Same as above, but a single script fragment to be evaled but not shown.
-finish_eval=$lt_finish_eval
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
-
-# Transform the output of nm in a C name address pair
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
-
-# This is the shared library runtime path variable.
-runpath_var=$runpath_var
-
-# This is the shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$hardcode_action_GCJ
-
-# Whether we should hardcode library paths into libraries.
-hardcode_into_libs=$hardcode_into_libs
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
-
-# If ld is used when linking, flag to hardcode \$libdir into
-# a binary during linking. This must work even if \$libdir does
-# not exist.
-hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
-
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct=$hardcode_direct_GCJ
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L=$hardcode_minus_L_GCJ
-
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
-# the resulting binary.
-hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
-
-# Set to yes if building a shared library automatically hardcodes DIR into the library
-# and all subsequent libraries and executables linked against it.
-hardcode_automatic=$hardcode_automatic_GCJ
-
-# Variables whose values should be saved in libtool wrapper scripts and
-# restored at relink time.
-variables_saved_for_relink="$variables_saved_for_relink"
-
-# Whether libtool must link a program against all its dependency libraries.
-link_all_deplibs=$link_all_deplibs_GCJ
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
-
-# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$fix_srcfile_path_GCJ"
-
-# Set to yes if exported symbols are required.
-always_export_symbols=$always_export_symbols_GCJ
-
-# The commands to list exported symbols.
-export_symbols_cmds=$lt_export_symbols_cmds_GCJ
-
-# The commands to extract the exported symbol list from a shared archive.
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$lt_exclude_expsyms_GCJ
-
-# Symbols that must always be exported.
-include_expsyms=$lt_include_expsyms_GCJ
-
-# ### END LIBTOOL TAG CONFIG: $tagname
-
-__EOF__
-
-
-else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
-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
-
-CC="$lt_save_CC"
-
- else
- tagname=""
- fi
- ;;
-
- RC)
-
-
-# Source file extension for RC test sources.
-ac_ext=rc
-
-# Object file extension for compiled RC test sources.
-objext=o
-objext_RC=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
-
-# Code to be used in simple link tests
-lt_simple_link_test_code="$lt_simple_compile_test_code"
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# If no C compiler flags were specified, use CFLAGS.
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-
-
-# save warnings/boilerplate of simple test code
-ac_outfile=conftest.$ac_objext
-printf "$lt_simple_compile_test_code" >conftest.$ac_ext
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_compiler_boilerplate=`cat conftest.err`
-$rm conftest*
-
-ac_outfile=conftest.$ac_objext
-printf "$lt_simple_link_test_code" >conftest.$ac_ext
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
-_lt_linker_boilerplate=`cat conftest.err`
-$rm conftest*
-
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${RC-"windres"}
-compiler=$CC
-compiler_RC=$CC
-for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
-done
-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
-
-lt_cv_prog_compiler_c_o_RC=yes
-
-# The else clause should only fire when bootstrapping the
-# libtool distribution, otherwise you forgot to ship ltmain.sh
-# with your package, and you will get complaints that there are
-# no rules to generate ltmain.sh.
-if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of \ escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
- SED SHELL STRIP \
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
- deplibs_check_method reload_flag reload_cmds need_locks \
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
- lt_cv_sys_global_symbol_to_c_name_address \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- old_postinstall_cmds old_postuninstall_cmds \
- compiler_RC \
- CC_RC \
- LD_RC \
- lt_prog_compiler_wl_RC \
- lt_prog_compiler_pic_RC \
- lt_prog_compiler_static_RC \
- lt_prog_compiler_no_builtin_flag_RC \
- export_dynamic_flag_spec_RC \
- thread_safe_flag_spec_RC \
- whole_archive_flag_spec_RC \
- enable_shared_with_static_runtimes_RC \
- old_archive_cmds_RC \
- old_archive_from_new_cmds_RC \
- predep_objects_RC \
- postdep_objects_RC \
- predeps_RC \
- postdeps_RC \
- compiler_lib_search_path_RC \
- archive_cmds_RC \
- archive_expsym_cmds_RC \
- postinstall_cmds_RC \
- postuninstall_cmds_RC \
- old_archive_from_expsyms_cmds_RC \
- allow_undefined_flag_RC \
- no_undefined_flag_RC \
- export_symbols_cmds_RC \
- hardcode_libdir_flag_spec_RC \
- hardcode_libdir_flag_spec_ld_RC \
- hardcode_libdir_separator_RC \
- hardcode_automatic_RC \
- module_cmds_RC \
- module_expsym_cmds_RC \
- lt_cv_prog_compiler_c_o_RC \
- exclude_expsyms_RC \
- include_expsyms_RC; do
-
- case $var in
- old_archive_cmds_RC | \
- old_archive_from_new_cmds_RC | \
- archive_cmds_RC | \
- archive_expsym_cmds_RC | \
- module_cmds_RC | \
- module_expsym_cmds_RC | \
- old_archive_from_expsyms_cmds_RC | \
- export_symbols_cmds_RC | \
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
-
- case $lt_echo in
- *'\$0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
-
-cfgfile="$ofile"
-
- cat <<__EOF__ >> "$cfgfile"
-# ### BEGIN LIBTOOL TAG CONFIG: $tagname
-
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-
-# Shell to use when invoking shell scripts.
-SHELL=$lt_SHELL
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=$archive_cmds_need_lc_RC
-
-# Whether or not to disallow shared libs when runtime libs are static
-allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# The host system.
-host_alias=$host_alias
-host=$host
-host_os=$host_os
-
-# The build system.
-build_alias=$build_alias
-build=$build
-build_os=$build_os
-
-# An echo program that does not interpret backslashes.
-echo=$lt_echo
-
-# The archiver.
-AR=$lt_AR
-AR_FLAGS=$lt_AR_FLAGS
-
-# A C compiler.
-LTCC=$lt_LTCC
-
-# LTCC compiler flags.
-LTCFLAGS=$lt_LTCFLAGS
-
-# A language-specific compiler.
-CC=$lt_compiler_RC
-
-# Is the compiler the GNU C compiler?
-with_gcc=$GCC_RC
-
-# An ERE matcher.
-EGREP=$lt_EGREP
-
-# The linker used to build libraries.
-LD=$lt_LD_RC
-
-# Whether we need hard or soft links.
-LN_S=$lt_LN_S
-
-# A BSD-compatible nm program.
-NM=$lt_NM
-
-# A symbol stripping program
-STRIP=$lt_STRIP
-
-# Used to examine libraries when file_magic_cmd begins "file"
-MAGIC_CMD=$MAGIC_CMD
-
-# Used on cygwin: DLL creation program.
-DLLTOOL="$DLLTOOL"
-
-# Used on cygwin: object dumper.
-OBJDUMP="$OBJDUMP"
-
-# Used on cygwin: assembler.
-AS="$AS"
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# How to create reloadable object files.
-reload_flag=$lt_reload_flag
-reload_cmds=$lt_reload_cmds
-
-# How to pass a linker flag through the compiler.
-wl=$lt_lt_prog_compiler_wl_RC
-
-# Object file suffix (normally "o").
-objext="$ac_objext"
-
-# Old archive suffix (normally "a").
-libext="$libext"
-
-# Shared library suffix (normally ".so").
-shrext_cmds='$shrext_cmds'
-
-# Executable file suffix (normally "").
-exeext="$exeext"
-
-# Additional compiler flags for building library objects.
-pic_flag=$lt_lt_prog_compiler_pic_RC
-pic_mode=$pic_mode
-
-# What is the maximum length of a command?
-max_cmd_len=$lt_cv_sys_max_cmd_len
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
-
-# Must we lock files when doing compilation?
-need_locks=$lt_need_locks
-
-# Do we need the lib prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Whether dlopen is supported.
-dlopen_support=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$lt_lt_prog_compiler_static_RC
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
-
-# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
-
-# Library versioning type.
-version_type=$version_type
-
-# Format of library name prefix.
-libname_spec=$lt_libname_spec
-
-# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME.
-library_names_spec=$lt_library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$lt_soname_spec
-
-# Commands used to build and install an old-style archive.
-RANLIB=$lt_RANLIB
-old_archive_cmds=$lt_old_archive_cmds_RC
-old_postinstall_cmds=$lt_old_postinstall_cmds
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
-
-# Create a temporary old-style archive to link instead of a shared archive.
-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
-
-# Commands used to build and install a shared archive.
-archive_cmds=$lt_archive_cmds_RC
-archive_expsym_cmds=$lt_archive_expsym_cmds_RC
-postinstall_cmds=$lt_postinstall_cmds
-postuninstall_cmds=$lt_postuninstall_cmds
-
-# Commands used to build a loadable module (assumed same as above if empty)
-module_cmds=$lt_module_cmds_RC
-module_expsym_cmds=$lt_module_expsym_cmds_RC
-
-# Commands to strip libraries.
-old_striplib=$lt_old_striplib
-striplib=$lt_striplib
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predep_objects=$lt_predep_objects_RC
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdep_objects=$lt_postdep_objects_RC
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predeps=$lt_predeps_RC
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdeps=$lt_postdeps_RC
-
-# The library search path used internally by the compiler when linking
-# a shared library.
-compiler_lib_search_path=$lt_compiler_lib_search_path_RC
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$lt_deplibs_check_method
-
-# Command to use when deplibs_check_method == file_magic.
-file_magic_cmd=$lt_file_magic_cmd
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$lt_allow_undefined_flag_RC
-
-# Flag that forces no undefined symbols.
-no_undefined_flag=$lt_no_undefined_flag_RC
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$lt_finish_cmds
-
-# Same as above, but a single script fragment to be evaled but not shown.
-finish_eval=$lt_finish_eval
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
-
-# Transform the output of nm in a C name address pair
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
-
-# This is the shared library runtime path variable.
-runpath_var=$runpath_var
-
-# This is the shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$hardcode_action_RC
-
-# Whether we should hardcode library paths into libraries.
-hardcode_into_libs=$hardcode_into_libs
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
-
-# If ld is used when linking, flag to hardcode \$libdir into
-# a binary during linking. This must work even if \$libdir does
-# not exist.
-hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
-
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct=$hardcode_direct_RC
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L=$hardcode_minus_L_RC
-
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
-# the resulting binary.
-hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
-
-# Set to yes if building a shared library automatically hardcodes DIR into the library
-# and all subsequent libraries and executables linked against it.
-hardcode_automatic=$hardcode_automatic_RC
-
-# Variables whose values should be saved in libtool wrapper scripts and
-# restored at relink time.
-variables_saved_for_relink="$variables_saved_for_relink"
-
-# Whether libtool must link a program against all its dependency libraries.
-link_all_deplibs=$link_all_deplibs_RC
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
-
-# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$fix_srcfile_path_RC"
-
-# Set to yes if exported symbols are required.
-always_export_symbols=$always_export_symbols_RC
-
-# The commands to list exported symbols.
-export_symbols_cmds=$lt_export_symbols_cmds_RC
-
-# The commands to extract the exported symbol list from a shared archive.
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$lt_exclude_expsyms_RC
-
-# Symbols that must always be exported.
-include_expsyms=$lt_include_expsyms_RC
-
-# ### END LIBTOOL TAG CONFIG: $tagname
-
-__EOF__
-
-
-else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
-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
-
-CC="$lt_save_CC"
-
- ;;
-
- *)
- { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
-echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
- { (exit 1); exit 1; }; }
- ;;
- esac
-
- # Append the new tag name to the list of available tags.
- if test -n "$tagname" ; then
- available_tags="$available_tags $tagname"
- fi
- fi
- done
- IFS="$lt_save_ifs"
-
- # Now substitute the updated list of available tags.
- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
- mv "${ofile}T" "$ofile"
- chmod +x "$ofile"
- else
- rm -f "${ofile}T"
- { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
-echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
- { (exit 1); exit 1; }; }
- fi
-fi
-
-
-
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-
-# Prevent multiple expansion
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- { echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
-echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6; }
-
-# Check whether --with-vrootdir was given.
-if test "${with_vrootdir+set}" = set; then
- withval=$with_vrootdir; case "$withval" in
- yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
-echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
- { (exit 1); exit 1; }; };;
- *) ensc_uv_path_vrootdir=$withval;;
- esac
-else
- ensc_uv_path_vrootdir=/vservers
-fi
-
- { echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
-echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6; }
-
- if test x"vserverdir" != x; then
- vserverdir=$ensc_uv_path_vrootdir
-
- fi
-
-
- for ac_prog in svn2cl
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_SVN2CL+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$SVN2CL"; then
- ac_cv_prog_SVN2CL="$SVN2CL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_SVN2CL="$ac_prog"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-SVN2CL=$ac_cv_prog_SVN2CL
-if test -n "$SVN2CL"; then
- { echo "$as_me:$LINENO: result: $SVN2CL" >&5
-echo "${ECHO_T}$SVN2CL" >&6; }
-else
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
- test -n "$SVN2CL" && break
-done
-
- if test x"$SVN2CL" != x; then
- HAVE_SVN2CL_TRUE=
- HAVE_SVN2CL_FALSE='#'
-else
- HAVE_SVN2CL_TRUE='#'
- HAVE_SVN2CL_FALSE=
-fi
-
-
-
-
-{ echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
-echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6; }
-# Check whether --enable-internal-headers was given.
-if test "${enable_internal_headers+set}" = set; then
- enableval=$enable_internal_headers; case "$enableval" in
- (yes|no) ;;
- (*) { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
-echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
- { (exit 1); exit 1; }; };;
- esac
-else
- enable_internal_headers=yes
-fi
-
-
- if test x"$enable_internal_headers" = xyes; then
- ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
- ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
-else
- ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
- ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
-fi
-
-{ echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
-echo "${ECHO_T}$enable_internal_headers" >&6; }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{ echo "$as_me:$LINENO: checking for supported APIs" >&5
-echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6; }
-# Check whether --enable-apis was given.
-if test "${enable_apis+set}" = set; then
- enableval=$enable_apis;
-else
- enable_apis=v13,net,v21,v22,v23,netv2
-fi
-
-
-test x"$enable_apis" != xALL || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2'
-test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21,v22,v23,netv2'
-enable_api_oldproc=
-enable_api_olduts=
-old_IFS=$IFS
-IFS=,;
-
-for i in $enable_apis; do
- case "$i" in
- (compat) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_COMPAT 1
-_ACEOF
-
- enable_api_oldproc=${enable_api_oldproc:-1}
- enable_api_olduts=${enable_api_olduts:-1}
- ;;
- (legacy) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_LEGACY 1
-_ACEOF
-
- enable_api_oldproc=${enable_api_oldproc:-1}
- enable_api_olduts=${enable_api_olduts:-1}
- ;;
- (v11) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_V11 1
-_ACEOF
-
- enable_api_oldproc=${enable_api_oldproc:-1}
- enable_api_olduts=${enable_api_olduts:-1}
- ;;
- (fscompat) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_FSCOMPAT 1
-_ACEOF
-;;
- (v13obs) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_V13OBS 1
-_ACEOF
-
- cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_V13 1
-_ACEOF
-;;
- (v13) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_V13 1
-_ACEOF
-;;
- (net) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_NET 1
-_ACEOF
-;;
- (v21) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_V21 1
-_ACEOF
-;;
- (v22) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_V22 1
-_ACEOF
-;;
- (v23) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_V23 1
-_ACEOF
-;;
- (netv2) cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_NETV2 1
-_ACEOF
-;;
- (oldproc) enable_api_oldproc=2;;
- (olduts) enable_api_olduts=2;;
- (*) { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
-echo "$as_me: error: '$i' is not a supported API" >&2;}
- { (exit 1); exit 1; }; };;
- esac
-done
-IFS=$old_IFS
-if test x"$enable_api_oldproc" != x; then
- cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_OLDPROC 1
-_ACEOF
-
- test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
-fi
-if test x"$enable_api_olduts" != x; then
- cat >>confdefs.h <<\_ACEOF
-#define VC_ENABLE_API_OLDUTS 1
-_ACEOF
-
- test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
-fi
-{ echo "$as_me:$LINENO: result: $enable_apis" >&5
-echo "${ECHO_T}$enable_apis" >&6; }
-
-
-
-
- ac_ext=cpp
-ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-
- { echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
-echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6; }
-if test "${ensc_cv_test_ext2fs_header+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ext2fs/ext2_fs.h>
- int main() { return 0; }
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ensc_cv_test_ext2fs_header=e2fsprogs
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <linux/ext2_fs.h>
- int main() { return 0; }
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ensc_cv_test_ext2fs_header=kernel
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
- ensc_cv_test_ext2fs_header=none
-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
-{ echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
-echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6; }
-
- case x"$ensc_cv_test_ext2fs_header" in
- (xe2fsprogs)
- if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
- { echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
-echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
-echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6; }
-else
- # Is the header compilable?
-{ echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
-echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <ext2fs/ext2_fs.h>
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
-echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ext2fs/ext2_fs.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- }; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: ext2fs/ext2_fs.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: ext2fs/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
- ( cat <<\_ASBOX
-## --------------------------------------------- ##
-## Report this to vserver@list.linux-vserver.org ##
-## --------------------------------------------- ##
-_ASBOX
- ) | sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-{ echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
-echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
-echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6; }
-
-fi
-if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
-_ACEOF
-
-else
- { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
-See \`config.log' for more details." >&5
-echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-
- ;;
- (xkernel)
- if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
- { echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
-echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
-echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6; }
-else
- # Is the header compilable?
-{ echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
-echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <linux/ext2_fs.h>
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
-echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <linux/ext2_fs.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- }; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: linux/ext2_fs.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: linux/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
- ( cat <<\_ASBOX
-## --------------------------------------------- ##
-## Report this to vserver@list.linux-vserver.org ##
-## --------------------------------------------- ##
-_ASBOX
- ) | sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-{ echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
-echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
-echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6; }
-
-fi
-if test $ac_cv_header_linux_ext2_fs_h = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define ENSC_HAVE_LINUX_EXT2_FS_H 1
-_ACEOF
-
-else
- { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
-See \`config.log' for more details." >&5
-echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-
- ;;
- (*)
- { { echo "$as_me:$LINENO: error:
-ext2fs headers were not found, or they are not usable. This can have
-the following reasons:
-
-* you have neither the e2fsprogs nor the kernel headers installed
-
-* kernel headers are broken (e.g. these of linux 2.6 are known to be)
- and you do not have e2fsprogs headers installed; please try to install
- - e2fsprogs-devel (for Red Hat), or
- - lib*ext2fs2-devel (for Mandriva), or
- - e2fslibs-dev (for Debian)
- in this case.
-
-* kernel headers are broken and your e2fsprogs headers are too old;
- until version 1.27 (inclusive), they are using reserved C++ keywords
-
-* kernel headers are broken and your e2fsprogs headers are too new;
- recent (January 2004) BK snapshots of e2fsprogs are unusable for
- C++, for details and a solution see
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
-
-
-In the latter two cases you have the following options:
-* fix the headers manually, or
-* install a stable version of e2fsprogs (e.g. 1.34), or
-* use good kernel headers (from linux 2.4.x)
-
-See \`config.log' for more details." >&5
-echo "$as_me: error:
-ext2fs headers were not found, or they are not usable. This can have
-the following reasons:
-
-* you have neither the e2fsprogs nor the kernel headers installed
-
-* kernel headers are broken (e.g. these of linux 2.6 are known to be)
- and you do not have e2fsprogs headers installed; please try to install
- - e2fsprogs-devel (for Red Hat), or
- - lib*ext2fs2-devel (for Mandriva), or
- - e2fslibs-dev (for Debian)
- in this case.
-
-* kernel headers are broken and your e2fsprogs headers are too old;
- until version 1.27 (inclusive), they are using reserved C++ keywords
-
-* kernel headers are broken and your e2fsprogs headers are too new;
- recent (January 2004) BK snapshots of e2fsprogs are unusable for
- C++, for details and a solution see
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
-
-
-In the latter two cases you have the following options:
-* fix the headers manually, or
-* install a stable version of e2fsprogs (e.g. 1.34), or
-* use good kernel headers (from linux 2.4.x)
-
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
- ;;
- 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
-
-
-
-for ac_func in vserver
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
-#define $ac_func innocuous_$ac_func
-
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef $ac_func
-
-/* 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 $ac_func ();
-/* 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_$ac_func || defined __stub___$ac_func
-choke me
-#endif
-
-int
-main ()
-{
-return $ac_func ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- eval "$as_ac_var=yes"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- eval "$as_ac_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-fi
-ac_res=`eval echo '${'$as_ac_var'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-done
-
-{ echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
-echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6; }
-if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <linux/fs.h>
-
-int
-main ()
-{
-#ifndef MS_MOVE
- (void) MS_MOVE;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_have_decl_MS_MOVE=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_have_decl_MS_MOVE=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
-echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6; }
-if test $ac_cv_have_decl_MS_MOVE = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_MS_MOVE 1
-_ACEOF
-
-
-else
- cat >>confdefs.h <<_ACEOF
-#define HAVE_DECL_MS_MOVE 0
-_ACEOF
-
-
-fi
-
-
-{ echo "$as_me:$LINENO: checking for xid_t" >&5
-echo $ECHO_N "checking for xid_t... $ECHO_C" >&6; }
-if test "${ac_cv_type_xid_t+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-
-typedef xid_t ac__type_new_;
-int
-main ()
-{
-if ((ac__type_new_ *) 0)
- return 0;
-if (sizeof (ac__type_new_))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_type_xid_t=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_type_xid_t=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
-echo "${ECHO_T}$ac_cv_type_xid_t" >&6; }
-if test $ac_cv_type_xid_t = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_XID_T 1
-_ACEOF
-
-
-fi
-
-{ echo "$as_me:$LINENO: checking for nid_t" >&5
-echo $ECHO_N "checking for nid_t... $ECHO_C" >&6; }
-if test "${ac_cv_type_nid_t+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-
-typedef nid_t ac__type_new_;
-int
-main ()
-{
-if ((ac__type_new_ *) 0)
- return 0;
-if (sizeof (ac__type_new_))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_type_nid_t=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_type_nid_t=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
-echo "${ECHO_T}$ac_cv_type_nid_t" >&6; }
-if test $ac_cv_type_nid_t = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_NID_T 1
-_ACEOF
-
-
-fi
-
-{ echo "$as_me:$LINENO: checking for tag_t" >&5
-echo $ECHO_N "checking for tag_t... $ECHO_C" >&6; }
-if test "${ac_cv_type_tag_t+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-
-typedef tag_t ac__type_new_;
-int
-main ()
-{
-if ((ac__type_new_ *) 0)
- return 0;
-if (sizeof (ac__type_new_))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_type_tag_t=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_type_tag_t=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_type_tag_t" >&5
-echo "${ECHO_T}$ac_cv_type_tag_t" >&6; }
-if test $ac_cv_type_tag_t = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_TAG_T 1
-_ACEOF
-
-
-fi
-
-
-
-for ac_header in sys/capability.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- { echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
- # Is the header compilable?
-{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <$ac_header>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
- ( cat <<\_ASBOX
-## --------------------------------------------- ##
-## Report this to vserver@list.linux-vserver.org ##
-## --------------------------------------------- ##
-_ASBOX
- ) | sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-if test x"$ensc_have_dietlibc" = xno; then
- { echo "$as_me:$LINENO: checking for openpty" >&5
-echo $ECHO_N "checking for openpty... $ECHO_C" >&6; }
-if test "${ac_cv_func_openpty+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
-#define openpty innocuous_openpty
-
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char openpty (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef openpty
-
-/* 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 openpty ();
-/* 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_openpty || defined __stub___openpty
-choke me
-#endif
-
-int
-main ()
-{
-return openpty ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_func_openpty=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_func_openpty=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
-echo "${ECHO_T}$ac_cv_func_openpty" >&6; }
-if test $ac_cv_func_openpty = yes; then
- :
-else
-
-{ echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
-echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
-if test "${ac_cv_lib_util_openpty+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lutil $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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 openpty ();
-int
-main ()
-{
-return openpty ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_util_openpty=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_lib_util_openpty=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
-echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
-if test $ac_cv_lib_util_openpty = yes; then
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBUTIL 1
-_ACEOF
-
- LIBS="-lutil $LIBS"
-
-else
- { { echo "$as_me:$LINENO: error:
-****
-**** openpty could not be found
-****" >&5
-echo "$as_me: error:
-****
-**** openpty could not be found
-****" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-fi
-
-fi
-
-
-if test x"$ensc_cv_c99_c99compiler" = xyes; then
- ensc_have_beecrypt=yes
-
- if test x"$ensc_have_beecrypt" = xyes; then
- if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
- { echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
-echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
-echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6; }
-else
- # Is the header compilable?
-{ echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
-echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <beecrypt/beecrypt.h>
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
-echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <beecrypt/beecrypt.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: beecrypt/beecrypt.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: beecrypt/beecrypt.h: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
- ( cat <<\_ASBOX
-## --------------------------------------------- ##
-## Report this to vserver@list.linux-vserver.org ##
-## --------------------------------------------- ##
-_ASBOX
- ) | sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-{ echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
-echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
-echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6; }
-
-fi
-if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
- :
-else
- ensc_have_beecrypt=no
-fi
-
-
- fi
-
- if test x"$ensc_have_beecrypt" = xyes; then
- { echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
-echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6; }
-if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lbeecrypt $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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 hashFunctionContextInit ();
-int
-main ()
-{
-return hashFunctionContextInit ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_beecrypt_hashFunctionContextInit=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_lib_beecrypt_hashFunctionContextInit=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
-echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6; }
-if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
- :
-else
- ensc_have_beecrypt=no
-fi
-
- fi
-
- if test x"$ensc_have_beecrypt" != xyes; then
- { echo "$as_me:$LINENO: WARNING:
-****
-**** 'beecrypt' could not be found;
-**** this will disable the build of 'vhashify'
-****" >&5
-echo "$as_me: WARNING:
-****
-**** 'beecrypt' could not be found;
-**** this will disable the build of 'vhashify'
-****" >&2;}
- fi
-else
- ensc_have_beecrypt=no
-fi
-
- if test x"$ensc_have_beecrypt" = xyes; then
- ENSC_HAVE_BEECRYPT_TRUE=
- ENSC_HAVE_BEECRYPT_FALSE='#'
-else
- ENSC_HAVE_BEECRYPT_TRUE='#'
- ENSC_HAVE_BEECRYPT_FALSE=
-fi
-
- if false; then
- ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
- ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
-else
- ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
- ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
-fi
-
-
-
-ensc_have_libnl=yes
-LIBNL_ROOT=`readlink -f ../libnl*/`
-if test -d "$LIBNL_ROOT"; then
- CFLAGS="$CFLAGS -I ${LIBNL_ROOT}/include"
- LDFLAGS="$LDFLAGS -L${LIBNL_ROOT}/lib"
-fi
-
-if test x"$ensc_have_libnl" = xyes; then
-
-
-for ac_header in asm/types.h stdint.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- { echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
- # Is the header compilable?
-{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <$ac_header>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
- ( cat <<\_ASBOX
-## --------------------------------------------- ##
-## Report this to vserver@list.linux-vserver.org ##
-## --------------------------------------------- ##
-_ASBOX
- ) | sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
- :
-else
- ensc_have_libnl=no
-fi
-
-done
-
- { echo "$as_me:$LINENO: checking for __s64" >&5
-echo $ECHO_N "checking for __s64... $ECHO_C" >&6; }
-if test "${ac_cv_type___s64+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#ifdef HAVE_ASM_TYPES_H
-# include <asm/types.h>
-#endif
-
-typedef __s64 ac__type_new_;
-int
-main ()
-{
-if ((ac__type_new_ *) 0)
- return 0;
-if (sizeof (ac__type_new_))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_type___s64=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_type___s64=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_type___s64" >&5
-echo "${ECHO_T}$ac_cv_type___s64" >&6; }
-if test $ac_cv_type___s64 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE___S64 1
-_ACEOF
-
- :
-else
-
-cat >>confdefs.h <<_ACEOF
-#define __s64 int64_t
-_ACEOF
-
-fi
-
- { echo "$as_me:$LINENO: checking for __u64" >&5
-echo $ECHO_N "checking for __u64... $ECHO_C" >&6; }
-if test "${ac_cv_type___u64+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#ifdef HAVE_ASM_TYPES_H
-# include <asm/types.h>
-#endif
-
-typedef __u64 ac__type_new_;
-int
-main ()
-{
-if ((ac__type_new_ *) 0)
- return 0;
-if (sizeof (ac__type_new_))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- ac_cv_type___u64=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_type___u64=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_type___u64" >&5
-echo "${ECHO_T}$ac_cv_type___u64" >&6; }
-if test $ac_cv_type___u64 = yes; then
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE___U64 1
-_ACEOF
-
- :
-else
-
-cat >>confdefs.h <<_ACEOF
-#define __u64 uint64_t
-_ACEOF
-
-fi
-
-fi
-
-if test x"$ensc_have_libnl" = xyes; then
-
-
-for ac_header in netlink/netlink.h netlink/route/addr.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#ifdef HAVE_ASM_TYPES_H
-# include <asm/types.h>
-#endif
-
-
-#include <$ac_header>
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then
- eval "$as_ac_Header=yes"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- eval "$as_ac_Header=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
- :
-else
- ensc_have_libnl=no
-fi
-
-done
-
-fi
-
-if test x"$ensc_have_libnl" = xyes; then
- { echo "$as_me:$LINENO: checking for nlmsg_get_src in -lnl" >&5
-echo $ECHO_N "checking for nlmsg_get_src in -lnl... $ECHO_C" >&6; }
-if test "${ac_cv_lib_nl_nlmsg_get_src+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lnl $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* 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 nlmsg_get_src ();
-int
-main ()
-{
-return nlmsg_get_src ();
- ;
- return 0;
-}
-_ACEOF
-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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_nl_nlmsg_get_src=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_lib_nl_nlmsg_get_src=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nlmsg_get_src" >&5
-echo "${ECHO_T}$ac_cv_lib_nl_nlmsg_get_src" >&6; }
-if test $ac_cv_lib_nl_nlmsg_get_src = yes; then
- :
-else
- ensc_have_libnl=no
-fi
-
-fi
-
-if test x"$ensc_have_libnl" != xyes; then
- { echo "$as_me:$LINENO: WARNING:
-****
-**** 'libnl' could not be found;
-**** this will disable the build of 'vip6-autod'
-****" >&5
-echo "$as_me: WARNING:
-****
-**** 'libnl' could not be found;
-**** this will disable the build of 'vip6-autod'
-****" >&2;}
-fi
-
- if test x"$ensc_have_libnl" = xyes; then
- ENSC_HAVE_LIBNL_TRUE=
- ENSC_HAVE_LIBNL_FALSE='#'
-else
- ENSC_HAVE_LIBNL_TRUE='#'
- ENSC_HAVE_LIBNL_FALSE=
-fi
-
-
-
-
-{ echo "$as_me:$LINENO: checking for python includes" >&5
-echo $ECHO_N "checking for python includes... $ECHO_C" >&6; }
-PYTHON_INCLUDES=`python-config --includes 2>/dev/null`
-if test x"$PYTHON_INCLUDES" = x; then
- python_inc_plat=`$PYTHON -c "from distutils.sysconfig import get_python_inc; print get_python_inc(1)"`
- python_inc=`$PYTHON -c "from distutils.sysconfig import get_python_inc; print get_python_inc()"`
- if test x"$python_inc_plat" != x; then
- PYTHON_INCLUDES="$PYTHON_INCLUDES -I$python_inc_plat"
- fi
- if test x"$python_inc" != x; then
- PYTHON_INCLUDES="$PYTHON_INCLUDES -I$python_inc"
- fi
-fi
-{ echo "$as_me:$LINENO: result: $PYTHON_INCLUDES" >&5
-echo "${ECHO_T}$PYTHON_INCLUDES" >&6; }
-
-
-
-{ echo "$as_me:$LINENO: checking for host initscripts" >&5
-echo $ECHO_N "checking for host initscripts... $ECHO_C" >&6; }
-
-# Check whether --with-initscripts was given.
-if test "${with_initscripts+set}" = set; then
- withval=$with_initscripts;
- case "$withval" in
- gentoo) ensc_with_init=gentoo;;
- sysv) ensc_with_init=sysv;;
- *) { { echo "$as_me:$LINENO: error: invalid initscripts value, only gentoo and sysv are supported" >&5
-echo "$as_me: error: invalid initscripts value, only gentoo and sysv are supported" >&2;}
- { (exit 1); exit 1; }; };;
- esac
-
-else
-
- if test -e /etc/gentoo-release; then
- ensc_with_init=gentoo
- else
- ensc_with_init=sysv
- fi
-
-fi
-
-{ echo "$as_me:$LINENO: result: $ensc_with_init" >&5
-echo "${ECHO_T}$ensc_with_init" >&6; }
- if test x"$ensc_with_init" = xgentoo; then
- HAVE_GENTOO_INIT_TRUE=
- HAVE_GENTOO_INIT_FALSE='#'
-else
- HAVE_GENTOO_INIT_TRUE='#'
- HAVE_GENTOO_INIT_FALSE=
-fi
-
- if test x"$ensc_with_init" = xsysv; then
- HAVE_SYSV_INIT_TRUE=
- HAVE_SYSV_INIT_FALSE='#'
-else
- HAVE_SYSV_INIT_TRUE='#'
- HAVE_SYSV_INIT_FALSE=
-fi
-
-
-
-
-cat >>confdefs.h <<\_ACEOF
-#define UTMP_GID 22
-_ACEOF
-
-
-if false; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_GROWING_STACK 1
-_ACEOF
-
-fi
-
-
-cat >>confdefs.h <<\_ACEOF
-#define _FILE_OFFSET_BITS 64
-_ACEOF
-
-
-ensc_cxx_affected=" (affected: vbuild, vcheck)"
-ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
-ensc_diet_msg=" (you have been warned)"
-ensc_diet_version_msg=" ($ensc_version_dietlibc)"
-ensc_diet_compat_msg=" (using -lcompat)"
-test x"$ensc_cv_cxx_cxxcompiler" = xno || ensc_cxx_affected=
-test x"$ensc_cv_c99_c99compiler" = xno || ensc_c99_affected=
-test x"$ensc_have_dietlibc" = xno || ensc_diet_msg=
-test x"$ensc_version_dietlibc" != x || ensc_diet_version_msg=
-test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
-
-
-
-
-
-ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile python/Makefile"
-
-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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
-echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
- esac
- case $ac_var in #(
- _ | IFS | as_nl) ;; #(
- *) $as_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
- test "x$cache_file" != "x/dev/null" &&
- { echo "$as_me:$LINENO: updating cache $cache_file" >&5
-echo "$as_me: updating cache $cache_file" >&6;}
- cat confcache >$cache_file
- else
- { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
-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=
-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=`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.
- ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
- ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
-done
-LIBOBJS=$ac_libobjs
-
-LTLIBOBJS=$ac_ltlibobjs
-
-
-if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"AMDEP\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${HAVE_SVN2CL_TRUE}" && test -z "${HAVE_SVN2CL_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"HAVE_SVN2CL\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"HAVE_SVN2CL\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${ENSC_HAVE_LIBNL_TRUE}" && test -z "${ENSC_HAVE_LIBNL_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_LIBNL\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"ENSC_HAVE_LIBNL\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${HAVE_GENTOO_INIT_TRUE}" && test -z "${HAVE_GENTOO_INIT_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-if test -z "${HAVE_SYSV_INIT_TRUE}" && test -z "${HAVE_SYSV_INIT_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSV_INIT\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"HAVE_SYSV_INIT\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
-
- FEATURES_TXT="\
-Features:
- CC: $CC, $($CC --version | sed -e '1p;d')
- CXX: $CXX, $($CXX --version | sed -e '1p;d')
- CPPFLAGS: '$CPPFLAGS'
- CFLAGS: '$CFLAGS'
- CXXFLAGS: '$CXXFLAGS'
- build/host: $build/$host
- Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
- Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
- Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
- Available APIs: $enable_apis
- ext2fs Source: $ensc_cv_test_ext2fs_header
- syscall(2) invocation: $with_syscall
- vserver(2) syscall#: $ensc_cv_value_syscall_vserver
-
-Paths:
- prefix: $prefix
- sysconf-Directory: $sysconfdir
- cfg-Directory: $sysconfdir/vservers
- initrd-Directory: $initrddir
- pkgstate-Directory: $localstatedir/run/vservers
- vserver-Rootdir: $vserverdir
-"
- echo "$FEATURES_TXT" >FEATURES.txt
-
-
-: ${CONFIG_STATUS=./config.status}
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
-echo "$as_me: creating $CONFIG_STATUS" >&6;}
-cat >$CONFIG_STATUS <<_ACEOF
-#! $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}
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-## --------------------- ##
-## 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=:
- # Zsh 3.x and 4.x performs 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
-
-
-
-
-# PATH needs CR
-# 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
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
-fi
-
-# Support unset when possible.
-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
- as_unset=unset
-else
- as_unset=false
-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.)
-as_nl='
-'
-IFS=" "" $as_nl"
-
-# Find who we are. Look in the path if we contain no directory separator.
-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
- echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- { (exit 1); exit 1; }
-fi
-
-# Work around bugs in pre-3.0 UWIN ksh.
-for as_var in ENV MAIL MAILPATH
-do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-for as_var in \
- LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
- LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
- LC_TELEPHONE LC_TIME
-do
- if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
- eval $as_var=C; export $as_var
- else
- ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
- fi
-done
-
-# Required to use basename.
-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
-
-
-# Name of the executable.
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
-
-# CDPATH.
-$as_unset CDPATH
-
-
-
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
-
- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
- # uniformly replaced by the line number. The first 'sed' inserts a
- # line-number line after each line using $LINENO; the second 'sed'
- # does the real work. The second script uses 'N' to pair each
- # line-number line with the line containing $LINENO, and appends
- # trailing '-' during substitution so that $LINENO is not a special
- # case at line end.
- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
- # scripts with optimization help from Paolo Bonzini. 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" ||
- { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
- { (exit 1); exit 1; }; }
-
- # 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
-}
-
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
-else
- as_dirname=false
-fi
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in
--n*)
- case `echo 'x\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- *) ECHO_C='\c';;
- esac;;
-*)
- ECHO_N='-n';;
-esac
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-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
-fi
-echo >conf$$.file
-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 -p'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -p'
-elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
-else
- as_ln_s='cp -p'
-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=:
-else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
-fi
-
-if test -x / >/dev/null 2>&1; then
- as_test_x='test -x'
-else
- if ls -dL / >/dev/null 2>&1; then
- as_ls_L_option=L
- else
- as_ls_L_option=
- fi
- as_test_x='
- eval sh -c '\''
- if test -d "$1"; then
- test -d "$1/.";
- else
- case $1 in
- -*)set "./$1";;
- esac;
- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
- ???[sx]*):;;*)false;;esac;fi
- '\'' sh
- '
-fi
-as_executable_p=$as_test_x
-
-# 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
-
-# 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 util-vserver $as_me 0.30.214, which was
-generated by GNU Autoconf 2.61. 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
-
-cat >>$CONFIG_STATUS <<_ACEOF
-# Files that config.status was made for.
-config_files="$ac_config_files"
-config_headers="$ac_config_headers"
-config_commands="$ac_config_commands"
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-ac_cs_usage="\
-\`$as_me' instantiates files from templates according to the
-current configuration.
-
-Usage: $0 [OPTIONS] [FILE]...
-
- -h, --help print this help, then exit
- -V, --version print version number and configuration settings, then exit
- -q, --quiet 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
-
-Configuration commands:
-$config_commands
-
-Report bugs to <bug-autoconf@gnu.org>."
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
-ac_cs_version="\\
-util-vserver config.status 0.30.214
-configured by $0, generated by GNU Autoconf 2.61,
- with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
-
-Copyright (C) 2006 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'
-MKDIR_P='$MKDIR_P'
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-# If no file are specified by the user, then we need to provide default
-# value. By we need to know if files were specified by the user.
-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=$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 )
- echo "$ac_cs_version"; exit ;;
- --debug | --debu | --deb | --de | --d | -d )
- debug=: ;;
- --file | --fil | --fi | --f )
- $ac_shift
- CONFIG_FILES="$CONFIG_FILES $ac_optarg"
- ac_need_defaults=false;;
- --header | --heade | --head | --hea )
- $ac_shift
- CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
- ac_need_defaults=false;;
- --he | --h)
- # Conflict between --help and --header
- { echo "$as_me: error: ambiguous option: $1
-Try \`$0 --help' for more information." >&2
- { (exit 1); exit 1; }; };;
- --help | --hel | -h )
- 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.
- -*) { echo "$as_me: error: unrecognized option: $1
-Try \`$0 --help' for more information." >&2
- { (exit 1); exit 1; }; } ;;
-
- *) ac_config_targets="$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
-if \$ac_cs_recheck; then
- echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
- CONFIG_SHELL=$SHELL
- export CONFIG_SHELL
- exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
-fi
-
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-exec 5>>config.log
-{
- echo
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
-## Running $as_me. ##
-_ASBOX
- echo "$ac_log"
-} >&5
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
-#
-# INIT-COMMANDS
-#
-AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-
-# Handling of arguments.
-for ac_config_target in $ac_config_targets
-do
- case $ac_config_target in
- "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
- "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
- "util-vserver.spec") CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
- "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
- "distrib/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
- "lib/apidoc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
- "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
-
- *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
-echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
- { (exit 1); exit 1; }; };;
- 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
- test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
-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=
- trap 'exit_status=$?
- { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
-' 0
- trap '{ (exit 1); exit 1; }' 1 2 13 15
-}
-# Create a (secure) tmp directory for tmp files.
-
-{
- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
- test -n "$tmp" && test -d "$tmp"
-} ||
-{
- tmp=./conf$$-$RANDOM
- (umask 077 && mkdir "$tmp")
-} ||
-{
- echo "$me: cannot create a temporary directory in ." >&2
- { (exit 1); exit 1; }
-}
-
-#
-# Set up the sed scripts for CONFIG_FILES section.
-#
-
-# No need to generate the scripts if there are no CONFIG_FILES.
-# This happens for instance when ./config.status config.h
-if test -n "$CONFIG_FILES"; then
-
-_ACEOF
-
-
-
-ac_delim='%!_!# '
-for ac_last_try in false false false false false :; do
- cat >conf$$subs.sed <<_ACEOF
-SHELL!$SHELL$ac_delim
-PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
-PACKAGE_NAME!$PACKAGE_NAME$ac_delim
-PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
-PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
-PACKAGE_STRING!$PACKAGE_STRING$ac_delim
-PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
-exec_prefix!$exec_prefix$ac_delim
-prefix!$prefix$ac_delim
-program_transform_name!$program_transform_name$ac_delim
-bindir!$bindir$ac_delim
-sbindir!$sbindir$ac_delim
-libexecdir!$libexecdir$ac_delim
-datarootdir!$datarootdir$ac_delim
-datadir!$datadir$ac_delim
-sysconfdir!$sysconfdir$ac_delim
-sharedstatedir!$sharedstatedir$ac_delim
-localstatedir!$localstatedir$ac_delim
-includedir!$includedir$ac_delim
-oldincludedir!$oldincludedir$ac_delim
-docdir!$docdir$ac_delim
-infodir!$infodir$ac_delim
-htmldir!$htmldir$ac_delim
-dvidir!$dvidir$ac_delim
-pdfdir!$pdfdir$ac_delim
-psdir!$psdir$ac_delim
-libdir!$libdir$ac_delim
-localedir!$localedir$ac_delim
-mandir!$mandir$ac_delim
-DEFS!$DEFS$ac_delim
-ECHO_C!$ECHO_C$ac_delim
-ECHO_N!$ECHO_N$ac_delim
-ECHO_T!$ECHO_T$ac_delim
-LIBS!$LIBS$ac_delim
-build_alias!$build_alias$ac_delim
-host_alias!$host_alias$ac_delim
-target_alias!$target_alias$ac_delim
-INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
-INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
-INSTALL_DATA!$INSTALL_DATA$ac_delim
-am__isrc!$am__isrc$ac_delim
-CYGPATH_W!$CYGPATH_W$ac_delim
-PACKAGE!$PACKAGE$ac_delim
-VERSION!$VERSION$ac_delim
-ACLOCAL!$ACLOCAL$ac_delim
-AUTOCONF!$AUTOCONF$ac_delim
-AUTOMAKE!$AUTOMAKE$ac_delim
-AUTOHEADER!$AUTOHEADER$ac_delim
-MAKEINFO!$MAKEINFO$ac_delim
-install_sh!$install_sh$ac_delim
-STRIP!$STRIP$ac_delim
-INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
-mkdir_p!$mkdir_p$ac_delim
-AWK!$AWK$ac_delim
-SET_MAKE!$SET_MAKE$ac_delim
-am__leading_dot!$am__leading_dot$ac_delim
-AMTAR!$AMTAR$ac_delim
-am__tar!$am__tar$ac_delim
-am__untar!$am__untar$ac_delim
-MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
-MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
-MAINT!$MAINT$ac_delim
-build!$build$ac_delim
-build_cpu!$build_cpu$ac_delim
-build_vendor!$build_vendor$ac_delim
-build_os!$build_os$ac_delim
-host!$host$ac_delim
-host_cpu!$host_cpu$ac_delim
-host_vendor!$host_vendor$ac_delim
-host_os!$host_os$ac_delim
-GPG_KEY!$GPG_KEY$ac_delim
-CXX!$CXX$ac_delim
-CXXFLAGS!$CXXFLAGS$ac_delim
-LDFLAGS!$LDFLAGS$ac_delim
-CPPFLAGS!$CPPFLAGS$ac_delim
-ac_ct_CXX!$ac_ct_CXX$ac_delim
-EXEEXT!$EXEEXT$ac_delim
-OBJEXT!$OBJEXT$ac_delim
-DEPDIR!$DEPDIR$ac_delim
-am__include!$am__include$ac_delim
-am__quote!$am__quote$ac_delim
-AMDEP_TRUE!$AMDEP_TRUE$ac_delim
-AMDEP_FALSE!$AMDEP_FALSE$ac_delim
-AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
-CXXDEPMODE!$CXXDEPMODE$ac_delim
-am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
-am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
-CC!$CC$ac_delim
-CFLAGS!$CFLAGS$ac_delim
-ac_ct_CC!$ac_ct_CC$ac_delim
-CCDEPMODE!$CCDEPMODE$ac_delim
-am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
-am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
-LN_S!$LN_S$ac_delim
-PYTHON!$PYTHON$ac_delim
-PYTHON_VERSION!$PYTHON_VERSION$ac_delim
-PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
-_ACEOF
-
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
- break
- elif $ac_last_try; then
- { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
-echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
- { (exit 1); exit 1; }; }
- else
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
- fi
-done
-
-ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
-if test -n "$ac_eof"; then
- ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
- ac_eof=`expr $ac_eof + 1`
-fi
-
-cat >>$CONFIG_STATUS <<_ACEOF
-cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-_ACEOF
-sed '
-s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
-s/^/s,@/; s/!/@,|#_!!_#|/
-:n
-t n
-s/'"$ac_delim"'$/,g/; t
-s/$/\\/; p
-N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
-' >>$CONFIG_STATUS <conf$$subs.sed
-rm -f conf$$subs.sed
-cat >>$CONFIG_STATUS <<_ACEOF
-CEOF$ac_eof
-_ACEOF
-
-
-ac_delim='%!_!# '
-for ac_last_try in false false false false false :; do
- cat >conf$$subs.sed <<_ACEOF
-PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
-PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
-pythondir!$pythondir$ac_delim
-pkgpythondir!$pkgpythondir$ac_delim
-pyexecdir!$pyexecdir$ac_delim
-pkgpyexecdir!$pkgpyexecdir$ac_delim
-ENSC_HAVE_CXX_COMPILER_TRUE!$ENSC_HAVE_CXX_COMPILER_TRUE$ac_delim
-ENSC_HAVE_CXX_COMPILER_FALSE!$ENSC_HAVE_CXX_COMPILER_FALSE$ac_delim
-ENSC_HAVE_C99_COMPILER_TRUE!$ENSC_HAVE_C99_COMPILER_TRUE$ac_delim
-ENSC_HAVE_C99_COMPILER_FALSE!$ENSC_HAVE_C99_COMPILER_FALSE$ac_delim
-ENSC_PATHPROG_SED!$ENSC_PATHPROG_SED$ac_delim
-CAT!$CAT$ac_delim
-CHOWN!$CHOWN$ac_delim
-CMP!$CMP$ac_delim
-CP!$CP$ac_delim
-DIRNAME!$DIRNAME$ac_delim
-EGREP!$EGREP$ac_delim
-ENV!$ENV$ac_delim
-GREP!$GREP$ac_delim
-LN!$LN$ac_delim
-MKDIR!$MKDIR$ac_delim
-MKFIFO!$MKFIFO$ac_delim
-MKTEMP!$MKTEMP$ac_delim
-MOUNT!$MOUNT$ac_delim
-MV!$MV$ac_delim
-NICE!$NICE$ac_delim
-PS!$PS$ac_delim
-RM!$RM$ac_delim
-RMDIR!$RMDIR$ac_delim
-SED!$SED$ac_delim
-SH!$SH$ac_delim
-TAC!$TAC$ac_delim
-TAR!$TAR$ac_delim
-TOUCH!$TOUCH$ac_delim
-TTY!$TTY$ac_delim
-UMOUNT!$UMOUNT$ac_delim
-WC!$WC$ac_delim
-IP!$IP$ac_delim
-IPTABLES!$IPTABLES$ac_delim
-MODPROBE!$MODPROBE$ac_delim
-NAMEIF!$NAMEIF$ac_delim
-NOHUP!$NOHUP$ac_delim
-RMMOD!$RMMOD$ac_delim
-VCONFIG!$VCONFIG$ac_delim
-WGET!$WGET$ac_delim
-FILE!$FILE$ac_delim
-GZIP!$GZIP$ac_delim
-BZIP2!$BZIP2$ac_delim
-CPIO!$CPIO$ac_delim
-RESTORE!$RESTORE$ac_delim
-RSYNC!$RSYNC$ac_delim
-STRACE!$STRACE$ac_delim
-DOXYGEN!$DOXYGEN$ac_delim
-XSLTP!$XSLTP$ac_delim
-XSLTPROC!$XSLTPROC$ac_delim
-HAVE_XSLTP_TRUE!$HAVE_XSLTP_TRUE$ac_delim
-HAVE_XSLTP_FALSE!$HAVE_XSLTP_FALSE$ac_delim
-HAVE_XSLTPROC_TRUE!$HAVE_XSLTPROC_TRUE$ac_delim
-HAVE_XSLTPROC_FALSE!$HAVE_XSLTPROC_FALSE$ac_delim
-LIB_DEBUG_CPPFLAGS!$LIB_DEBUG_CPPFLAGS$ac_delim
-ENSC_USE_EXPENSIVE_TESTS!$ENSC_USE_EXPENSIVE_TESTS$ac_delim
-initrddir!$initrddir$ac_delim
-RELEASE_CPPFLAGS!$RELEASE_CPPFLAGS$ac_delim
-CPP!$CPP$ac_delim
-DIET!$DIET$ac_delim
-DIETFLAGS!$DIETFLAGS$ac_delim
-USE_DIETLIBC_TRUE!$USE_DIETLIBC_TRUE$ac_delim
-USE_DIETLIBC_FALSE!$USE_DIETLIBC_FALSE$ac_delim
-USE_DIETLIBC_COMPAT_TRUE!$USE_DIETLIBC_COMPAT_TRUE$ac_delim
-USE_DIETLIBC_COMPAT_FALSE!$USE_DIETLIBC_COMPAT_FALSE$ac_delim
-ENSC_USE_DIETLIBC_TRUE!$ENSC_USE_DIETLIBC_TRUE$ac_delim
-ENSC_USE_DIETLIBC_FALSE!$ENSC_USE_DIETLIBC_FALSE$ac_delim
-ENSC_USE_GLIBC_TRUE!$ENSC_USE_GLIBC_TRUE$ac_delim
-ENSC_USE_GLIBC_FALSE!$ENSC_USE_GLIBC_FALSE$ac_delim
-ECHO!$ECHO$ac_delim
-AR!$AR$ac_delim
-RANLIB!$RANLIB$ac_delim
-CXXCPP!$CXXCPP$ac_delim
-F77!$F77$ac_delim
-FFLAGS!$FFLAGS$ac_delim
-ac_ct_F77!$ac_ct_F77$ac_delim
-LIBTOOL!$LIBTOOL$ac_delim
-vserverdir!$vserverdir$ac_delim
-SVN2CL!$SVN2CL$ac_delim
-HAVE_SVN2CL_TRUE!$HAVE_SVN2CL_TRUE$ac_delim
-HAVE_SVN2CL_FALSE!$HAVE_SVN2CL_FALSE$ac_delim
-ENSC_ENABLE_INTERNAL_HEADERS_TRUE!$ENSC_ENABLE_INTERNAL_HEADERS_TRUE$ac_delim
-ENSC_ENABLE_INTERNAL_HEADERS_FALSE!$ENSC_ENABLE_INTERNAL_HEADERS_FALSE$ac_delim
-ENSC_HAVE_BEECRYPT_TRUE!$ENSC_HAVE_BEECRYPT_TRUE$ac_delim
-ENSC_HAVE_BEECRYPT_FALSE!$ENSC_HAVE_BEECRYPT_FALSE$ac_delim
-ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE!$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE$ac_delim
-ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE!$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE$ac_delim
-ENSC_HAVE_LIBNL_TRUE!$ENSC_HAVE_LIBNL_TRUE$ac_delim
-ENSC_HAVE_LIBNL_FALSE!$ENSC_HAVE_LIBNL_FALSE$ac_delim
-PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
-HAVE_GENTOO_INIT_TRUE!$HAVE_GENTOO_INIT_TRUE$ac_delim
-HAVE_GENTOO_INIT_FALSE!$HAVE_GENTOO_INIT_FALSE$ac_delim
-_ACEOF
-
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
- break
- elif $ac_last_try; then
- { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
-echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
- { (exit 1); exit 1; }; }
- else
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
- fi
-done
-
-ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
-if test -n "$ac_eof"; then
- ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
- ac_eof=`expr $ac_eof + 1`
-fi
-
-cat >>$CONFIG_STATUS <<_ACEOF
-cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-_ACEOF
-sed '
-s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
-s/^/s,@/; s/!/@,|#_!!_#|/
-:n
-t n
-s/'"$ac_delim"'$/,g/; t
-s/$/\\/; p
-N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
-' >>$CONFIG_STATUS <conf$$subs.sed
-rm -f conf$$subs.sed
-cat >>$CONFIG_STATUS <<_ACEOF
-CEOF$ac_eof
-_ACEOF
-
-
-ac_delim='%!_!# '
-for ac_last_try in false false false false false :; do
- cat >conf$$subs.sed <<_ACEOF
-HAVE_SYSV_INIT_TRUE!$HAVE_SYSV_INIT_TRUE$ac_delim
-HAVE_SYSV_INIT_FALSE!$HAVE_SYSV_INIT_FALSE$ac_delim
-LIBOBJS!$LIBOBJS$ac_delim
-LTLIBOBJS!$LTLIBOBJS$ac_delim
-_ACEOF
-
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
- break
- elif $ac_last_try; then
- { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
-echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
- { (exit 1); exit 1; }; }
- else
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
- fi
-done
-
-ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
-if test -n "$ac_eof"; then
- ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
- ac_eof=`expr $ac_eof + 1`
-fi
-
-cat >>$CONFIG_STATUS <<_ACEOF
-cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
-_ACEOF
-sed '
-s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
-s/^/s,@/; s/!/@,|#_!!_#|/
-:n
-t n
-s/'"$ac_delim"'$/,g/; t
-s/$/\\/; p
-N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
-' >>$CONFIG_STATUS <conf$$subs.sed
-rm -f conf$$subs.sed
-cat >>$CONFIG_STATUS <<_ACEOF
-:end
-s/|#_!!_#|//g
-CEOF$ac_eof
-_ACEOF
-
-
-# VPATH may cause trouble with some makes, so we remove $(srcdir),
-# ${srcdir} and @srcdir@ 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[ ]*=/{
-s/:*\$(srcdir):*/:/
-s/:*\${srcdir}:*/:/
-s/:*@srcdir@:*/:/
-s/^\([^=]*=[ ]*\):*/\1/
-s/:*$//
-s/^[^=]*=[ ]*$//
-}'
-fi
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-fi # test -n "$CONFIG_FILES"
-
-
-for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
-do
- case $ac_tag in
- :[FHLC]) ac_mode=$ac_tag; continue;;
- esac
- case $ac_mode$ac_tag in
- :[FHL]*:*);;
- :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
-echo "$as_me: error: Invalid tag $ac_tag." >&2;}
- { (exit 1); exit 1; }; };;
- :[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="$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 ||
- { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
-echo "$as_me: error: cannot find input file: $ac_f" >&2;}
- { (exit 1); exit 1; }; };;
- esac
- ac_file_inputs="$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 "`IFS=:
- echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
- if test x"$ac_file" != x-; then
- configure_input="$ac_file. $configure_input"
- { echo "$as_me:$LINENO: creating $ac_file" >&5
-echo "$as_me: creating $ac_file" >&6;}
- fi
-
- case $ac_tag in
- *:-:* | *:-) cat >"$tmp/stdin";;
- 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 ||
-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"
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`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 ||
-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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
-echo "$as_me: error: cannot create directory $as_dir" >&2;}
- { (exit 1); exit 1; }; }; }
- ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`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
- ac_MKDIR_P=$MKDIR_P
- case $MKDIR_P in
- [\\/$]* | ?:[\\/]* ) ;;
- */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
- esac
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-# 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=
-
-case `sed -n '/datarootdir/ {
- p
- q
-}
-/@datadir@/p
-/@docdir@/p
-/@infodir@/p
-/@localedir@/p
-/@mandir@/p
-' $ac_file_inputs` in
-*datarootdir*) ac_datarootdir_seen=yes;;
-*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
- { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
-echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
- 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
- sed "$ac_vpsub
-$extrasub
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-:t
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-s&@configure_input@&$configure_input&;t t
-s&@top_builddir@&$ac_top_builddir_sub&;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
-s&@MKDIR_P@&$ac_MKDIR_P&;t t
-$ac_datarootdir_hack
-" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
-
-test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
- { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
- { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined. Please make sure it is defined." >&5
-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 "$tmp/stdin"
- case $ac_file in
- -) cat "$tmp/out"; rm -f "$tmp/out";;
- *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
- esac
- ;;
- :H)
- #
- # CONFIG_HEADER
- #
-_ACEOF
-
-# Transform confdefs.h into a sed script `conftest.defines', that
-# substitutes the proper values into config.h.in to produce config.h.
-rm -f conftest.defines conftest.tail
-# First, append a space to every undef/define line, to ease matching.
-echo 's/$/ /' >conftest.defines
-# Then, protect against being on the right side of a sed subst, or in
-# an unquoted here document, in config.status. If some macros were
-# called several times there might be several #defines for the same
-# symbol, which is useless. But do not sort them, since the last
-# AC_DEFINE must be honored.
-ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
-# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
-# NAME is the cpp macro being defined, VALUE is the value it is being given.
-# PARAMS is the parameter list in the macro definition--in most cases, it's
-# just an empty string.
-ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
-ac_dB='\\)[ (].*,\\1define\\2'
-ac_dC=' '
-ac_dD=' ,'
-
-uniq confdefs.h |
- sed -n '
- t rset
- :rset
- s/^[ ]*#[ ]*define[ ][ ]*//
- t ok
- d
- :ok
- s/[\\&,]/\\&/g
- s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
- s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
- ' >>conftest.defines
-
-# Remove the space that was appended to ease matching.
-# Then 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.
-# (The regexp can be short, since the line contains either #define or #undef.)
-echo 's/ $//
-s,^[ #]*u.*,/* & */,' >>conftest.defines
-
-# Break up conftest.defines:
-ac_max_sed_lines=50
-
-# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
-# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
-# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
-# et cetera.
-ac_in='$ac_file_inputs'
-ac_out='"$tmp/out1"'
-ac_nxt='"$tmp/out2"'
-
-while :
-do
- # Write a here document:
- cat >>$CONFIG_STATUS <<_ACEOF
- # First, check the format of the line:
- cat >"\$tmp/defines.sed" <<\\CEOF
-/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
-/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
-b
-:def
-_ACEOF
- sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
- echo 'CEOF
- sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
- ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
- sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
- grep . conftest.tail >/dev/null || break
- rm -f conftest.defines
- mv conftest.tail conftest.defines
-done
-rm -f conftest.defines conftest.tail
-
-echo "ac_result=$ac_in" >>$CONFIG_STATUS
-cat >>$CONFIG_STATUS <<\_ACEOF
- if test x"$ac_file" != x-; then
- echo "/* $configure_input */" >"$tmp/config.h"
- cat "$ac_result" >>"$tmp/config.h"
- if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
- { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
-echo "$as_me: $ac_file is unchanged" >&6;}
- else
- rm -f $ac_file
- mv "$tmp/config.h" $ac_file
- fi
- else
- echo "/* $configure_input */"
- cat "$ac_result"
- fi
- rm -f "$tmp/out12"
-# Compute $ac_file's index in $config_headers.
-_am_stamp_count=1
-for _am_header in $config_headers :; do
- case $_am_header in
- $ac_file | $ac_file:* )
- break ;;
- * )
- _am_stamp_count=`expr $_am_stamp_count + 1` ;;
- esac
-done
-echo "timestamp for $ac_file" >`$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 ||
-echo X$ac_file |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`/stamp-h$_am_stamp_count
- ;;
-
- :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
-echo "$as_me: executing $ac_file commands" >&6;}
- ;;
- esac
-
-
- case $ac_file$ac_mode in
- "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
- # Strip MF so we end up with the name of the file.
- mf=`echo "$mf" | sed -e 's/:.*$//'`
- # Check whether this is an Automake generated Makefile or not.
- # We used to match only the files named `Makefile.in', but
- # some people rename them; so instead we look at the file content.
- # Grep'ing the first line is not enough: some people post-process
- # each Makefile.in and add a new line on top of each file to say so.
- # Grep'ing the whole file is not good either: AIX grep has a line
- # limit of 2048, but all sed's we know have understand at least 4000.
- if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
- dirpart=`$as_dirname -- "$mf" ||
-$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$mf" : 'X\(//\)[^/]' \| \
- X"$mf" : 'X\(//\)$' \| \
- X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
-echo X"$mf" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- else
- continue
- fi
- # Extract the definition of DEPDIR, am__include, and am__quote
- # from the Makefile without running `make'.
- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
- test -z "$DEPDIR" && continue
- am__include=`sed -n 's/^am__include = //p' < "$mf"`
- test -z "am__include" && continue
- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
- # When using ansi2knr, U may be empty or an underscore; expand it
- U=`sed -n 's/^U = //p' < "$mf"`
- # Find all dependency output files, they are included files with
- # $(DEPDIR) in their names. We invoke sed twice because it is the
- # simplest approach to changing $(DEPDIR) to its actual value in the
- # expansion.
- for file in `sed -n "
- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
- # Make sure the directory exists.
- test -f "$dirpart/$file" && continue
- fdir=`$as_dirname -- "$file" ||
-$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$file" : 'X\(//\)[^/]' \| \
- X"$file" : 'X\(//\)$' \| \
- X"$file" : 'X\(/\)' \| . 2>/dev/null ||
-echo X"$file" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- { as_dir=$dirpart/$fdir
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`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 ||
-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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
-echo "$as_me: error: cannot create directory $as_dir" >&2;}
- { (exit 1); exit 1; }; }; }
- # echo "creating $dirpart/$file"
- echo '# dummy' > "$dirpart/$file"
- done
-done
- ;;
-
- esac
-done # for ac_tag
-
-
-{ (exit 0); exit 0; }
-_ACEOF
-chmod +x $CONFIG_STATUS
-ac_clean_files=$ac_clean_files_save
-
-
-# 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 || { (exit 1); exit 1; }
-fi
-
-
-{ echo "$as_me:$LINENO:
-
-$PACKAGE_STRING
-
-$FEATURES_TXT" >&5
-echo "$as_me:
-
-$PACKAGE_STRING
-
-$FEATURES_TXT" >&6;}
+++ /dev/null
-dnl $Id: configure.ac 2604 2007-09-02 20:03:17Z dhozac $
-
-dnl Copyright (C) 2003,2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 2, or (at your option)
-dnl any later version.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-dnl
-dnl
-dnl As a special exception to the GNU General Public License, if you
-dnl distribute this file as part of a program that contains a configuration
-dnl script generated by Autoconf, you may include it under the same
-dnl distribution terms that you use for the rest of that program.
-dnl
-
-AC_PREREQ(2.57)
-AC_INIT(util-vserver, 0.30.214, vserver@list.linux-vserver.org)
-AC_CONFIG_SRCDIR([src/capchroot.c])
-AC_CONFIG_HEADER([config.h])
-
-AM_INIT_AUTOMAKE([1.8.3 gnits dist-bzip2 subdir-objects])
-AM_MAINTAINER_MODE
-
-AC_CANONICAL_BUILD
-AC_CANONICAL_HOST
-
-AC_SUBST(GPG_KEY, "0xFFD316AC53ACA43A!")
-
-# Checks for programs.
-AC_PROG_CXX
-AC_PROG_CC
-AC_PROG_INSTALL
-AC_PROG_LN_S
-AM_PROG_CC_C_O
-AM_PATH_PYTHON(2.3)
-ENSC_CXXCOMPILER
-ENSC_C99COMPILER
-
-ENSC_SET_SEARCHPATH([$PATH:/sbin:/usr/sbin:/usr/local/sbin])
-ENSC_PATHPROG_STANDARD_TOOLS
-
-ENSC_PATHPROG(IP, ip,, [Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution])
-ENSC_PATHPROG(IPTABLES, iptables)
-ENSC_PATHPROG(MODPROBE, modprobe)
-ENSC_PATHPROG(NAMEIF, nameif)
-ENSC_PATHPROG(NOHUP, nohup)
-ENSC_PATHPROG(RMMOD, rmmod)
-ENSC_PATHPROG(VCONFIG, vconfig,, [See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution])
-ENSC_PATHPROG(WGET, wget)
-ENSC_PATHPROG(FILE, file, [file])
-ENSC_PATHPROG(GZIP, gzip, [gzip])
-ENSC_PATHPROG(BZIP2, bzip2, [bzip2])
-ENSC_PATHPROG(CPIO, cpio, [cpio])
-ENSC_PATHPROG(RESTORE, restore, [restore])
-ENSC_PATHPROG(RSYNC, rsync, [rsync])
-ENSC_PATHPROG(STRACE, strace, [strace])
-
-ENSC_PATHPROG(DOXYGEN, doxygen, [:])
-ENSC_PATHPROG(XSLTP, xsltp, [:])
-ENSC_PATHPROG(XSLTPROC, xsltproc, [:])
-
-
-AM_CONDITIONAL(HAVE_XSLTP, test "$XSLTP" != ':')
-AM_CONDITIONAL(HAVE_XSLTPROC, test "$XSLTPROC" != ':')
-
-if test x"$prefix" = x/; then
- prefix=
-fi
-
-ENSC_CHECK_CC_FLAG([-std=c99 -Wall -pedantic -W])
-ENSC_CHECK_CXX_FLAG([-ansi -Wall -pedantic -W -fmessage-length=0])
-
-AC_MSG_CHECKING([whether to enable extra optimizations])
-AC_ARG_ENABLE([extra-optimizations],
- [AC_HELP_STRING([--disable-extra-optimizations],
- [disable certain extra optimizations (default: no)])],
- [case "$enableval" in
- (yes) use_extra_optimizations=1;;
- (no) use_extra_optimizations=;;
- (*) AC_MSG_ERROR(['$enableval' is not a valid value for '--disable-extra-optimizations']);;
- esac],
- [use_extra_optimizations=1])
-
-if test x"$use_extra_optimizations" = x; then
- AC_MSG_RESULT(no)
-else
- AC_MSG_RESULT(yes)
- ENSC_CHECK_CC_FLAG([-funit-at-a-time])
- ENSC_CHECK_CXX_FLAG([-funit-at-a-time])
-fi
-
-AC_MSG_CHECKING([whether to enable debug-code in library])
-AC_ARG_ENABLE([lib-debug],
- [AC_HELP_STRING([--enable-lib-debug],
- [enable additional debug code in library (default: no)])],
- [case "$enableval" in
- (yes) use_lib_debug=1;;
- (no) use_lib_debug=;;
- (*) AC_MSG_ERROR(['$enableval' is not a valid value for '--enable-lib-debug']);;
- esac],
- [ use_lib_debug= ])
-
-if test x"$use_lib_debug" = x; then
- AC_SUBST(LIB_DEBUG_CPPFLAGS, [-DNDEBUG])
- AC_MSG_RESULT(no)
-else
- AC_SUBST(LIB_DEBUG_CPPFLAGS, [])
- AC_MSG_RESULT(yes)
-fi
-
-AC_MSG_CHECKING([whether to enable expensive tests])
-AC_ARG_ENABLE([expensive-tests],
- [AC_HELP_STRING([--enable-expensive-tests],
- [disable tests which might be expensive on some systems (default: no)])],
- [case "$enableval" in
- (yes|no) use_expensive_tests=$enableval;;
- (*) AC_MSG_ERROR(['$enableval' is not a valid value for '--enable-expensive-tests']);;
- esac],
- [ use_expensive_tests=no ])
-AC_MSG_RESULT($use_expensive_tests)
-
-AC_SUBST(ENSC_USE_EXPENSIVE_TESTS, "$use_expensive_tests")
-
-
-ENSC_CHECK_PERSONALITY_FLAGS
-
-AC_ARG_VAR(CC, [The C compiler])
-
-ENSC_INITRDDIR(initrddir)
-ENSC_RELEASE(RELEASE_CPPFLAGS)
-
-# HACK: This needs to be before ENSC_DIETLIBC_NEED_COMPAT, or the alternative
-# syscalls will never be enabled for glibc.
-ENSC_SYSCALLNR(vserver,273,[lib/syscall-fallback.h])
-ENSC_SYSCALL
-
-dnl ###########################
-dnl
-dnl {some dietlibc related tests
-dnl
-
-case $host_cpu in
- (i*86|athlon) min_diet_ver=0.25;;
- (ia64|hppa*) min_diet_ver=0.29;;
- (sparc*) min_diet_ver=0.30;;
- (x86_64) min_diet_ver=0.27;;
- (*) min_diet_ver=0.28;;
-esac
-
-ENSC_ENABLE_DIETLIBC(USE_DIETLIBC, [$min_diet_ver])
-
-if test x"$ensc_have_dietlibc" = xno; then
- AC_MSG_WARN([*** ***])
- AC_MSG_WARN([*** it is strongly recommended to link util-vserver against ***])
- AC_MSG_WARN([*** dietlibc; glibc's NSS functions are very unreliable in ***])
- AC_MSG_WARN([*** chroot() environments, so you have to expect problems ***])
- AC_MSG_WARN([*** there. ***])
- AC_MSG_WARN([*** ***])
- AM_CONDITIONAL(USE_DIETLIBC_COMPAT, false)
-else
- # HACK: libtool does not have cmdline options to build only
- # dynamic libraries; this can be done with the
- # '--disable-static' ./configure option only. As our static
- # libraries will be build with dietlibc, we have to do set
- # this option which is evaluated by 'AC_PROG_LIBTOOL'
- # below. Therefore, this macro must not be called earlier.
- enable_static=no
-
- ENSC_DIETLIBC_NEED_COMPAT(USE_DIETLIBC_COMPAT)
-fi
-
-AM_CONDITIONAL(ENSC_USE_DIETLIBC, test x"$ensc_have_dietlibc" = xyes)
-AM_CONDITIONAL(ENSC_USE_GLIBC, true)
-
-# HACK: see comments at 'enable_static' above
-AC_PROG_LIBTOOL
-dnl
-dnl dietlibc stuff ends here}
-dnl
-dnl ##########################
-
-
-ENSC_UV_VROOTDIR(vserverdir)
-ENSC_CHANGELOG
-
-
-dnl ##########################
-dnl
-dnl {Check whether to use external kernel headers
-dnl
-AC_MSG_CHECKING([whether to use internal kernel headers])
-AC_ARG_ENABLE([internal-headers],
- [AC_HELP_STRING([--disable-internal-headers],
- [use vserver specific headers from the kernel instead of the shipped versions (default: no)])],
- [case "$enableval" in
- (yes|no) ;;
- (*) AC_MSG_ERROR(['$i' is not a supported value for '--disable-internal-headers']);;
- esac],
- [enable_internal_headers=yes])
-
-AM_CONDITIONAL(ENSC_ENABLE_INTERNAL_HEADERS, [test x"$enable_internal_headers" = xyes])
-AC_MSG_RESULT([$enable_internal_headers])
-dnl
-dnl the check regarding external kernel headers ends here}
-dnl
-dnl ##########################
-
-dnl ##########################
-dnl
-dnl {Check for the APIs to be used
-dnl
-AH_TEMPLATE(VC_ENABLE_API_COMPAT, [Enable support for compatibility syscall API])
-AH_TEMPLATE(VC_ENABLE_API_LEGACY, [Enable support for old, /proc parsing API])
-AH_TEMPLATE(VC_ENABLE_API_V11, [Enable support for API of vserver 1.1.x])
-AH_TEMPLATE(VC_ENABLE_API_FSCOMPAT, [Enable support for filesystem compatibility API])
-AH_TEMPLATE(VC_ENABLE_API_V13OBS, [Enable support for some obsoleted API of vserver 1.3.x])
-AH_TEMPLATE(VC_ENABLE_API_V13, [Enable support for API of vserver 1.3.x])
-AH_TEMPLATE(VC_ENABLE_API_NET, [Enable support for network context API])
-AH_TEMPLATE(VC_ENABLE_API_V21, [Enable support for API of vserver 2.1.x])
-AH_TEMPLATE(VC_ENABLE_API_V22, [Enable support for API of vserver 2.2.x])
-AH_TEMPLATE(VC_ENABLE_API_V23, [Enable support for API of vserver 2.3.x])
-AH_TEMPLATE(VC_ENABLE_API_NETV2, [Enable support for new networking API])
-AH_TEMPLATE(VC_ENABLE_API_OLDPROC, [Enable API for a backward compatible /proc parsing])
-AH_TEMPLATE(VC_ENABLE_API_OLDUTS, [Enable API for a backward compatible uts handling])
-
-AC_MSG_CHECKING([for supported APIs])
-AC_ARG_ENABLE([apis],
- [AC_HELP_STRING([--enable-apis=APIS],
- [enable support for the given apis; possible values are: legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2 ALL,NOLEGACY (default: v13,net,v21,v22,v23,netv2)])],
- [],
- [enable_apis=v13,net,v21,v22,v23,netv2])
-
-test x"$enable_apis" != xALL || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2'
-test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21,v22,v23,netv2'
-enable_api_oldproc=
-enable_api_olduts=
-old_IFS=$IFS
-IFS=,;
-
-for i in $enable_apis; do
- case "$i" in
- (compat) AC_DEFINE(VC_ENABLE_API_COMPAT, 1)
- enable_api_oldproc=${enable_api_oldproc:-1}
- enable_api_olduts=${enable_api_olduts:-1}
- ;;
- (legacy) AC_DEFINE(VC_ENABLE_API_LEGACY, 1)
- enable_api_oldproc=${enable_api_oldproc:-1}
- enable_api_olduts=${enable_api_olduts:-1}
- ;;
- (v11) AC_DEFINE(VC_ENABLE_API_V11, 1)
- enable_api_oldproc=${enable_api_oldproc:-1}
- enable_api_olduts=${enable_api_olduts:-1}
- ;;
- (fscompat) AC_DEFINE(VC_ENABLE_API_FSCOMPAT, 1);;
- (v13obs) AC_DEFINE(VC_ENABLE_API_V13OBS, 1)
- AC_DEFINE(VC_ENABLE_API_V13, 1);;
- (v13) AC_DEFINE(VC_ENABLE_API_V13, 1);;
- (net) AC_DEFINE(VC_ENABLE_API_NET, 1);;
- (v21) AC_DEFINE(VC_ENABLE_API_V21, 1);;
- (v22) AC_DEFINE(VC_ENABLE_API_V22, 1);;
- (v23) AC_DEFINE(VC_ENABLE_API_V23, 1);;
- (netv2) AC_DEFINE(VC_ENABLE_API_NETV2, 1);;
- (oldproc) enable_api_oldproc=2;;
- (olduts) enable_api_olduts=2;;
- (*) AC_MSG_ERROR(['$i' is not a supported API]);;
- esac
-done
-IFS=$old_IFS
-if test x"$enable_api_oldproc" != x; then
- AC_DEFINE(VC_ENABLE_API_OLDPROC, 1)
- test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
-fi
-if test x"$enable_api_olduts" != x; then
- AC_DEFINE(VC_ENABLE_API_OLDUTS, 1)
- test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
-fi
-AC_MSG_RESULT([$enable_apis])
-dnl
-dnl the check for used APIs ends here}
-dnl
-dnl ##########################
-
-
-ENSC_CHECK_EXT2FS_HEADER
-AC_CHECK_FUNCS([vserver])
-AC_CHECK_DECLS(MS_MOVE,,,[#include <linux/fs.h>])
-AC_CHECK_TYPES(xid_t,,,[#include <sys/types.h>])
-AC_CHECK_TYPES(nid_t,,,[#include <sys/types.h>])
-AC_CHECK_TYPES(tag_t,,,[#include <sys/types.h>])
-
-AC_CHECK_HEADERS([sys/capability.h])
-
-dnl vlogin might need -lutil
-if test x"$ensc_have_dietlibc" = xno; then
- AC_CHECK_FUNC([openpty],, [AC_CHECK_LIB([util], [openpty],, [AC_MSG_ERROR([
-****
-**** openpty could not be found
-****])])])
-fi
-
-
-dnl ########################
-dnl
-dnl {check for beecrypt
-dnl
-if test x"$ensc_cv_c99_c99compiler" = xyes; then
- ensc_have_beecrypt=yes
-
- if test x"$ensc_have_beecrypt" = xyes; then
- AC_CHECK_HEADER([beecrypt/beecrypt.h], [ : ],
- [ ensc_have_beecrypt=no ])
- fi
-
- if test x"$ensc_have_beecrypt" = xyes; then
- AC_CHECK_LIB(beecrypt, hashFunctionContextInit, [ : ],
- [ ensc_have_beecrypt=no ])
- fi
-
- if test x"$ensc_have_beecrypt" != xyes; then
- AC_MSG_WARN([
-****
-**** 'beecrypt' could not be found;
-**** this will disable the build of 'vhashify'
-****])
- fi
-else
- ensc_have_beecrypt=no
-fi
-
-AM_CONDITIONAL(ENSC_HAVE_BEECRYPT, test x"$ensc_have_beecrypt" = xyes)
-AM_CONDITIONAL(ENSC_CAN_BEECRYPT_WITH_DIETLIBC, false)
-dnl
-dnl beecrypt stuff ends here}
-dnl
-dnl ########################
-
-dnl ########################
-dnl
-dnl {check for libnl
-dnl
-
-ensc_have_libnl=yes
-LIBNL_ROOT=`readlink -f ../libnl*/`
-if test -d "$LIBNL_ROOT"; then
- CFLAGS="$CFLAGS -I ${LIBNL_ROOT}/include"
- LDFLAGS="$LDFLAGS -L${LIBNL_ROOT}/lib"
-fi
-
-if test x"$ensc_have_libnl" = xyes; then
- AC_CHECK_HEADERS([asm/types.h stdint.h], [ : ],
- [ ensc_have_libnl=no ])
- AC_CHECK_TYPES([__s64], [ : ], [AC_DEFINE_UNQUOTED([__s64], [int64_t],
- [Define this to a signed 64-bit integer type])],
- [AC_INCLUDES_DEFAULT()
-#ifdef HAVE_ASM_TYPES_H
-# include <asm/types.h>
-#endif])
- AC_CHECK_TYPES([__u64], [ : ], [AC_DEFINE_UNQUOTED([__u64], [uint64_t],
- [Define this to an unsigned 64-bit integer type])],
- [AC_INCLUDES_DEFAULT()
-#ifdef HAVE_ASM_TYPES_H
-# include <asm/types.h>
-#endif])
-fi
-
-if test x"$ensc_have_libnl" = xyes; then
- AC_CHECK_HEADERS([netlink/netlink.h netlink/route/addr.h], [ : ],
- [ ensc_have_libnl=no ], [AC_INCLUDES_DEFAULT()
-#ifdef HAVE_ASM_TYPES_H
-# include <asm/types.h>
-#endif]
- )
-fi
-
-if test x"$ensc_have_libnl" = xyes; then
- AC_CHECK_LIB(nl, nlmsg_get_src, [ : ],
- [ ensc_have_libnl=no ])
-fi
-
-if test x"$ensc_have_libnl" != xyes; then
- AC_MSG_WARN([
-****
-**** 'libnl' could not be found;
-**** this will disable the build of 'vip6-autod'
-****])
-fi
-
-AM_CONDITIONAL(ENSC_HAVE_LIBNL, test x"$ensc_have_libnl" = xyes)
-
-dnl
-dnl libnl stuff ends here}
-dnl
-dnl #######################
-
-dnl
-dnl Get python includes
-dnl
-
-AC_MSG_CHECKING([for python includes])
-PYTHON_INCLUDES=`python-config --includes 2>/dev/null`
-if test x"$PYTHON_INCLUDES" = x; then
- python_inc_plat=`$PYTHON -c "from distutils.sysconfig import get_python_inc; print get_python_inc(1)"`
- python_inc=`$PYTHON -c "from distutils.sysconfig import get_python_inc; print get_python_inc()"`
- if test x"$python_inc_plat" != x; then
- PYTHON_INCLUDES="$PYTHON_INCLUDES -I$python_inc_plat"
- fi
- if test x"$python_inc" != x; then
- PYTHON_INCLUDES="$PYTHON_INCLUDES -I$python_inc"
- fi
-fi
-AC_MSG_RESULT([$PYTHON_INCLUDES])
-AC_SUBST(PYTHON_INCLUDES)
-
-
-dnl Check what distro this is, use Gentoo initscripts if appropriate
-AC_MSG_CHECKING([for host initscripts])
-AC_ARG_WITH(initscripts, AC_HELP_STRING([--with-initscripts=TYPE], [force host initscripts; valid values are 'gentoo' and 'sysv' (default: guess)]), [
- case "$withval" in
- gentoo) ensc_with_init=gentoo;;
- sysv) ensc_with_init=sysv;;
- *) AC_MSG_ERROR([invalid initscripts value, only gentoo and sysv are supported]);;
- esac
- ], [
- if test -e /etc/gentoo-release; then
- ensc_with_init=gentoo
- else
- ensc_with_init=sysv
- fi
- ])
-AC_MSG_RESULT([$ensc_with_init])
-AM_CONDITIONAL(HAVE_GENTOO_INIT, test x"$ensc_with_init" = xgentoo)
-AM_CONDITIONAL(HAVE_SYSV_INIT, test x"$ensc_with_init" = xsysv)
-
-
-dnl BIG HACK! Do some autodetection here!
-AC_DEFINE(UTMP_GID, [22], [The utmp gid-number])
-
-if false; then
- AC_DEFINE(HAVE_GROWING_STACK, [1], [Define to 1 if the stack is on growing addresses])
-fi
-
-AC_DEFINE(_FILE_OFFSET_BITS, [64], [Use 64bit interface for filesystem operations])
-
-dnl ########################
-dnl
-dnl {The final info-page
-dnl
-ensc_cxx_affected=" (affected: vbuild, vcheck)"
-ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
-ensc_diet_msg=" (you have been warned)"
-ensc_diet_version_msg=" ($ensc_version_dietlibc)"
-ensc_diet_compat_msg=" (using -lcompat)"
-test x"$ensc_cv_cxx_cxxcompiler" = xno || ensc_cxx_affected=
-test x"$ensc_cv_c99_c99compiler" = xno || ensc_c99_affected=
-test x"$ensc_have_dietlibc" = xno || ensc_diet_msg=
-test x"$ensc_version_dietlibc" != x || ensc_diet_version_msg=
-test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
-
-AH_BOTTOM([#include "compat.h"
-])
-AC_CONFIG_COMMANDS_PRE([
- FEATURES_TXT="\
-Features:
- CC: $CC, $($CC --version | sed -e '1p;d')
- CXX: $CXX, $($CXX --version | sed -e '1p;d')
- CPPFLAGS: '$CPPFLAGS'
- CFLAGS: '$CFLAGS'
- CXXFLAGS: '$CXXFLAGS'
- build/host: $build/$host
- Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
- Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
- Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
- Available APIs: $enable_apis
- ext2fs Source: $ensc_cv_test_ext2fs_header
- syscall(2) invocation: $with_syscall
- vserver(2) syscall#: $ensc_cv_value_syscall_vserver
-
-Paths:
- prefix: $prefix
- sysconf-Directory: $sysconfdir
- cfg-Directory: $sysconfdir/vservers
- initrd-Directory: $initrddir
- pkgstate-Directory: $localstatedir/run/vservers
- vserver-Rootdir: $vserverdir
-"
- echo "$FEATURES_TXT" >FEATURES.txt
- ])
-dnl
-dnl final info-page ends here}
-dnl
-dnl ########################
-
-AC_CONFIG_FILES([util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile python/Makefile])
-AC_OUTPUT
-
-AC_MSG_NOTICE([
-
-$PACKAGE_STRING
-
-$FEATURES_TXT])
+++ /dev/null
-.manifest.dat.pathsubst.stamp
-manifest.dat
+++ /dev/null
-## $Id: Makefile-files 2556 2007-07-07 15:24:07Z ensc $ -*- makefile -*-
-
-## Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-
-contrib_gen_DTA = contrib/manifest.dat
-contrib_subst_SRCS = contrib/manifest.dat.pathsubst
-
-
-noinst_DATA += $(contrib_gen_DTA)
-CLEANFILES += $(contrib_gen_DTA)
-
-EXTRA_DIST += $(contrib_subst_SRCS) \
- contrib/yum-2.2.1-chroot.patch \
- contrib/yum-2.3.2-chroot.patch \
- contrib/yum-2.3.3-chroot.patch \
- contrib/yum-2.3.4-chroot.patch \
- contrib/yum-2.6.0-chroot.patch \
- contrib/yum-2.9.6-chroot.patch \
- contrib/yum-3.0.3-chroot.patch \
- contrib/yum-3.0.5-chroot.patch \
- contrib/yum-3.2.0-chroot.patch \
- contrib/yum-3.2.1-chroot.patch \
- contrib/make-manifest
-
-contrib/manifest.dat: contrib/.manifest.dat.pathsubst.stamp
+++ /dev/null
-#! /bin/bash
-
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-## Usage: make-manifest <basename> <destdir> <datfile>
-
-name=$1
-dest=$2
-data=$3
-
-for i in $name-{core,devel,base,build,legacy,lib,sysv}.list; do
- echo '%defattr(-,root,root,-)' >$i
-done
-
-sed -e "s!@CONFIG@!$MANIFEST_CONFIG!g;
- s!@CONFIG_NOREPLACE@!$MANIFEST_CONFIG_NOREPLACE!g" \
- $data | \
-while read style file; do
- test "$file" || continue
- case "$style" in
- (\#*) continue;;
- esac
- echo "$file" >>$name-$style.list
-done
+++ /dev/null
-lib @LIBDIR@/libvserver.so.*
-devel @LIBDIR@/libvserver.a
-devel @LIBDIR@/libvserver.so
-base @PKGLIBDIR@/functions
-build @PKGLIBDIR@/vserver-build.apt-rpm
-build @PKGLIBDIR@/vserver-build.skeleton
-build @PKGLIBDIR@/vserver-build.debootstrap
-build @PKGLIBDIR@/vserver-build.fai
-build @PKGLIBDIR@/vserver-build.yum
-build @PKGLIBDIR@/vserver-build.rpm
-build @PKGLIBDIR@/vserver-build.template
-build @PKGLIBDIR@/vserver-build.rsync
-build @PKGLIBDIR@/vserver-build.clone
-build @PKGLIBDIR@/vserver-build.functions
-build @PKGLIBDIR@/vserver-build.functions.apt
-build @PKGLIBDIR@/vserver-build.functions.rpm
-build @PKGLIBDIR@/vserver-build.functions.yum
-build @PKGLIBDIR@/vserver-build.functions.pkgmgmt
-build @PKGLIBDIR@/vserver-setup.functions
-base @PKGLIBDIR@/vserver.functions
-base @PKGLIBDIR@/vserver.start
-@ENSC_HAVE_C99_COMPILER_TRUE@base @PKGLIBDIR@/vserver.start.bin
-base @PKGLIBDIR@/vserver.stop
-base @PKGLIBDIR@/vserver.suexec
-base @PKGLIBDIR@/vserver.delete
-legacy @PKGLIBDIR@/vserver.convert
-sysv @PKGLIBDIR@/vserver-init.functions
-core @PKGLIBDIR@/util-vserver-vars
-build @PKGLIBDIR@/rpm-fake.so
-legacy @LEGACYDIR@/save_s_context
-legacy @LEGACYDIR@/vps
-legacy @LEGACYDIR@/vserver
-legacy @LEGACYDIR@/vserverkillall
-legacy @LEGACYDIR@/distrib-info
-legacy @LEGACYDIR@/ifspec
-legacy @LEGACYDIR@/listdevip
-legacy @LEGACYDIR@/parserpmdump
-legacy @LEGACYDIR@/rebootmgr
-legacy @LEGACYDIR@/rootshell
-legacy @LEGACYDIR@/showperm
-legacy @LEGACYDIR@/vreboot
-core @PKGLIBDIR@/FEATURES.txt
-base @PKGLIBDIR@/defaults/mtab
-base @PKGLIBDIR@/defaults/vprocunhide-files
-base @PKGLIBDIR@/defaults/environment
-build @PKGLIBDIR@/defaults/fstab
-build @PKGLIBDIR@/defaults/debootstrap.uri
-build @PKGLIBDIR@/defaults/context.start
-build @PKGLIBDIR@/defaults/debootstrap.mirror
-@ENSC_HAVE_C99_COMPILER_TRUE@build @PKGLIBDIR@/defaults/vunify-exclude
-build @PKGLIBDIR@/defaults/h2ext.desc
-base @PKGLIBDIR@/capchroot
-base @PKGLIBDIR@/chain-echo
-core @PKGLIBDIR@/chcontext-compat
-core @PKGLIBDIR@/chbind-compat
-base @PKGLIBDIR@/check-unixfile
-base @PKGLIBDIR@/chroot-sh
-base @PKGLIBDIR@/exec-ulimit
-base @PKGLIBDIR@/fakerunlevel
-base @PKGLIBDIR@/filetime
-build @PKGLIBDIR@/h2ext
-build @PKGLIBDIR@/h2ext-worker
-base @PKGLIBDIR@/lockfile
-base @PKGLIBDIR@/keep-ctx-alive
-base @PKGLIBDIR@/mask2prefix
-build @PKGLIBDIR@/pkgmgmt
-base @PKGLIBDIR@/readlink
-build @PKGLIBDIR@/rpm-fake-resolver
-base @PKGLIBDIR@/save_ctxinfo
-base @PKGLIBDIR@/secure-mount
-base @PKGLIBDIR@/sigexec
-base @PKGLIBDIR@/start-vservers
-build @PKGLIBDIR@/vapt-get-worker
-build @PKGLIBDIR@/vyum-worker
-build @PKGLIBDIR@/vpkg
-base @PKGLIBDIR@/vprocunhide
-build @PKGLIBDIR@/vrpm-preload
-build @PKGLIBDIR@/vrpm-worker
-build @PKGLIBDIR@/vserver-build
-sysv @PKGLIBDIR@/vserver-wrapper
-base @PKGLIBDIR@/vshelper
-base @PKGLIBDIR@/vshelper-sync
-base @PKGLIBDIR@/vsysctl
-sysv @PKGLIBDIR@/vsysvwrapper
-@ENSC_HAVE_C99_COMPILER_TRUE@build @PKGLIBDIR@/vcopy
-@ENSC_HAVE_C99_COMPILER_TRUE@build @PKGLIBDIR@/vunify
-@ENSC_HAVE_C99_COMPILER_TRUE@build @PKGLIBDIR@/vhashify
-@ENSC_HAVE_C99_COMPILER_TRUE@build @PKGLIBDIR@/vclone
-base @PKGLIBDIR@/vservers.grabinfo.sh
-build @PKGLIBDIR@/distributions
-devel @LIBDIR@/pkgconfig/util-vserver.pc
-core @SBINDIR@/chbind
-core @SBINDIR@/chcontext
-core @SBINDIR@/chxid
-legacy @SBINDIR@/convert-vserver-configs
-base @SBINDIR@/exec-cd
-core @SBINDIR@/lsxid
-core @SBINDIR@/naddress
-core @SBINDIR@/nattribute
-core @SBINDIR@/ncontext
-core @SBINDIR@/reducecap
-core @SBINDIR@/setattr
-core @SBINDIR@/showattr
-build @SBINDIR@/vapt-get
-core @SBINDIR@/vattribute
-core @SBINDIR@/vcontext
-core @SBINDIR@/vdevmap
-build @SBINDIR@/vdispatch-conf
-core @SBINDIR@/vdlimit
-base @SBINDIR@/vdu
-build @SBINDIR@/vemerge
-build @SBINDIR@/vesync
-@ENSC_HAVE_LIBNL_TRUE@core @SBINDIR@/vip6-autod
-core @SBINDIR@/vkill
-core @SBINDIR@/vlimit
-core @SBINDIR@/vnamespace
-base @SBINDIR@/vps
-base @SBINDIR@/vpstree
-build @SBINDIR@/vrpm
-core @SBINDIR@/vrsetup
-core @SBINDIR@/vsched
-base @SBINDIR@/vserver
-legacy @SBINDIR@/vserver-copy
-core @SBINDIR@/vserver-info
-base @SBINDIR@/vserver-stat
-base @SBINDIR@/vsomething
-core @SBINDIR@/vtag
-base @SBINDIR@/vtop
-core @SBINDIR@/vuname
-build @SBINDIR@/vupdateworld
-core @SBINDIR@/vwait
-build @SBINDIR@/vyum
-devel @INCLUDEDIR@/vserver.h
-core @MANDIR@/*/chbind*
-core @MANDIR@/*/chcontext*
-core @MANDIR@/*/reducecap*
-legacy @MANDIR@/*/distrib-info*
-legacy @MANDIR@/*/vserver-copy*
-legacy @MANDIR@/*/rebootmgr*
-legacy @MANDIR@/*/vps.*
-base @MANDIR@/*/vpstree.*
-base @MANDIR@/*/vserver-stat*
-base @MANDIR@/*/vserver.*
-base @MANDIR@/*/vtop*
-legacy @CONFIG@ @INITRDDIR@/v_gated
-legacy @CONFIG@ @INITRDDIR@/v_httpd
-legacy @CONFIG@ @INITRDDIR@/v_named
-legacy @CONFIG@ @INITRDDIR@/v_portmap
-legacy @CONFIG@ @INITRDDIR@/v_sendmail
-legacy @CONFIG@ @INITRDDIR@/v_smb
-legacy @CONFIG@ @INITRDDIR@/v_sshd
-legacy @CONFIG@ @INITRDDIR@/v_xinetd
-sysv @CONFIG@ @INITRDDIR@/vip6-autod
-sysv @CONFIG@ @INITRDDIR@/vprocunhide
-sysv @CONFIG@ @INITRDDIR@/vservers-default
-sysv @CONFIG@ @INITRDDIR@/util-vserver
-legacy @CONFIG@ @INITRDDIR@/rebootmgr
-legacy @CONFIG@ @INITRDDIR@/vservers-legacy
-legacy @CONFIG_NOREPLACE@ @SYSCONFDIR@/vservers.conf
-build @CONFIG_NOREPLACE@ @CONFDIR@/.distributions/*/apt/sources.list
-core %attr(4755,root,root) @SBINDIR@/vsh
-core /bin/vsh
-core @SBINDIR@/vuseradd
-core @SBINDIR@/vuserdel
-core @SBINDIR@/vadduser
-core @SBINDIR@/vdeluser
-core @SBINDIR@/vcached
-core @SYSCONFDIR@/cron.d/vcached
-core @SYSCONFDIR@/logrotate.d/vcached
+++ /dev/null
---- yum-2.2.1/docs/yum.conf.5.chroot 2005-02-19 23:30:54.000000000 +0100
-+++ yum-2.2.1/docs/yum.conf.5 2005-04-08 19:53:02.000000000 +0200
-@@ -23,8 +23,10 @@
- following options:
-
- .IP \fBcachedir\fR
--Directory where yum should store its cache and db files. The default is
--`/var/cache/yum'.
-+Directory where yum should store its cache and db files. The default
-+is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://'
-+are used, some magic will be applied to determine the real path in
-+combination with `--installroot'.
-
- .IP \fBreposdir\fR
- Directory where yum should look for .repo files for its configuration
-@@ -33,6 +35,10 @@
- repository options below. These will be merged with the repositories defined
- in /etc/yum.conf to form the complete set of repositories that yum will use.
-
-+Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic
-+will be applied to determine the real path in combination with
-+`--installroot'.
-+
- .IP \fBdebuglevel\fR
- Debug message output level. Practical range is 0\-10. Default is `2'.
-
-@@ -40,7 +46,10 @@
- Error message output level. Practical range is 0\-10. Default is `2'.
-
- .IP \fBlogfile\fR
--Full directory and file name for where yum should write its log file.
-+Full directory and file name for where yum should write its log
-+file. Unless the prefixes `hostfs://' or `chrootfs://' are used,
-+some magic will be applied to determine the real path in combination
-+with `--installroot'.
-
- .IP \fBgpgcheck\fR
- Either `1' or `0'. This tells yum whether or not it should perform a GPG
---- yum-2.2.1/yum/__init__.py.chroot 2005-03-15 08:34:03.000000000 +0100
-+++ yum-2.2.1/yum/__init__.py 2005-04-08 20:10:36.000000000 +0200
-@@ -298,19 +298,22 @@
- self.log(3, 'Arch Excluding %s' % po)
- self.pkgSack.delPackage(po)
- self.log(2, 'Finished')
-+
-+ def __getLockfileName(self):
-+ lockfile = self.conf.configdata['lockfile']
-+ return self.conf.getRootedPath(lockfile,
-+ enforce_default = True,
-+ defaults_to_host = False)
-
--
--
-- def doLock(self, lockfile):
-+ def doLock(self):
- """perform the yum locking, raise yum-based exceptions, not OSErrors"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.getConfigOption('uid') != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
--
-+ lockfile=self.__getLockfileName()
-+
- mypid=str(os.getpid())
- while not self._lock(lockfile, mypid, 0644):
- fd = open(lockfile, 'r')
-@@ -333,15 +336,14 @@
- msg = 'Existing lock %s: another copy is running. Aborting.' % lockfile
- raise Errors.LockError(0, msg)
-
-- def doUnlock(self, lockfile):
-+ def doUnlock(self):
- """do the unlock for yum"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.getConfigOption('uid') != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-+ lockfile=self.__getLockfileName()
-
- self._unlock(lockfile)
-
---- yum-2.2.1/yum/config.py.chroot 2005-03-15 07:09:18.000000000 +0100
-+++ yum-2.2.1/yum/config.py 2005-04-08 19:53:02.000000000 +0200
-@@ -194,7 +194,8 @@
-
- #defaults -either get them or set them
- optionstrings = [('cachedir', '/var/cache/yum'),
-- ('logfile', '/var/log/yum.log'),
-+ ('logfile', '/var/log/yum.log'),
-+ ('lockfile', '/var/run/yum.pid'),
- ('reposdir', '/etc/yum.repos.d'),
- ('rss-filename', 'yum-rss.xml'),
- ('pkgpolicy', 'newest'),
-@@ -270,9 +271,7 @@
-
- # do the dirs - set the root if there is one (grumble)
- for option in ['cachedir', 'logfile']:
-- path = self.configdata[option]
-- root = self.configdata['installroot']
-- rootedpath = root + path
-+ rootedpath = self.getRootedPath(self.configdata[option])
- self.configdata[option] = rootedpath
- setattr(self, option, rootedpath)
-
-@@ -314,8 +313,7 @@
- # read each of them in using confpp, then parse them same as any other repo
- # section - as above.
- reposdir = self.getConfigOption('reposdir')
-- if os.path.exists(self.getConfigOption('installroot') + '/' + reposdir):
-- reposdir = self.getConfigOption('installroot') + '/' + reposdir
-+ reposdir = self.getRootedPath(reposdir)
-
- reposglob = reposdir + '/*.repo'
- if os.path.exists(reposdir) and os.path.isdir(reposdir):
-@@ -334,6 +332,23 @@
- print e
-
-
-+ def getRootedPath(self, path, enforce_default=False, defaults_to_host=False):
-+ instroot = self.configdata['installroot']
-+ if path.startswith('hostfs://'): res = path[9:]
-+ elif path.startswith('chrootfs://'): res = instroot + '/' + path[11:]
-+ else:
-+ tmp = instroot + '/' +path
-+
-+ if enforce_default:
-+ if defaults_to_host: res = path
-+ else: res = tmp
-+ else:
-+ if os.path.exists(tmp): res = tmp
-+ elif defaults_to_host: res = path
-+ else: res = tmp
-+
-+ return res
-+
- def listConfigOptions(self):
- """return list of options available for global config"""
- return self.configdata.keys()
---- yum-2.2.1/cli.py.chroot 2005-03-15 08:19:11.000000000 +0100
-+++ yum-2.2.1/cli.py 2005-04-08 19:53:02.000000000 +0200
-@@ -126,7 +126,7 @@
- sleeptime=0
- root = '/'
- installroot = None
-- conffile = '/etc/yum.conf'
-+ conffile = None
-
- try:
- for o,a in gopts:
-@@ -140,12 +140,14 @@
-
- # if the conf file is inside the installroot - use that.
- # otherwise look for it in the normal root
-- if installroot:
-- if os.access(installroot + '/' + conffile, os.R_OK):
-+ if conffile==None:
-+ conffile = '/etc/yum.conf'
-+ if installroot and os.access(installroot + '/' + conffile, os.R_OK):
- conffile = installroot + '/' + conffile
--
-+
-+ if installroot:
- root = installroot
--
-+
- try:
- self.conf = yumconf(configfile = conffile, root = root)
- except yum.Errors.ConfigError, e:
---- yum-2.2.1/yummain.py.chroot 2005-01-07 14:45:50.000000000 +0100
-+++ yum-2.2.1/yummain.py 2005-04-08 19:53:02.000000000 +0200
-@@ -41,7 +41,7 @@
- def unlock():
- try:
- base.closeRpmDB()
-- base.doUnlock('/var/run/yum.pid')
-+ base.doUnlock()
- except Errors.LockError, e:
- sys.exit(200)
-
-@@ -58,7 +58,7 @@
- sys.exit(1)
-
- try:
-- base.doLock('/var/run/yum.pid')
-+ base.doLock()
- except Errors.LockError, e:
- base.errorlog(0,'%s' % e.msg)
- sys.exit(200)
+++ /dev/null
---- yum-2.3.2/docs/yum.conf.5.chroot 2005-03-25 11:12:20.000000000 +0100
-+++ yum-2.3.2/docs/yum.conf.5 2005-04-08 18:27:12.000000000 +0200
-@@ -23,8 +23,10 @@
- following options:
-
- .IP \fBcachedir\fR
--Directory where yum should store its cache and db files. The default is
--`/var/cache/yum'.
-+Directory where yum should store its cache and db files. The default
-+is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://'
-+are used, some magic will be applied to determine the real path in
-+combination with `--installroot'.
-
- .IP \fBreposdir\fR
- A list of directories where yum should look for .repo files which define
-@@ -34,6 +36,10 @@
- repositories defined in /etc/yum.conf to form the complete set of repositories
- that yum will use.
-
-+Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic
-+will be applied to determine the real path in combination with
-+`--installroot'.
-+
- .IP \fBdebuglevel\fR
- Debug message output level. Practical range is 0\-10. Default is `2'.
-
-@@ -41,7 +47,10 @@
- Error message output level. Practical range is 0\-10. Default is `2'.
-
- .IP \fBlogfile\fR
--Full directory and file name for where yum should write its log file.
-+Full directory and file name for where yum should write its log
-+file. Unless the prefixes `hostfs://' or `chrootfs://' are used,
-+some magic will be applied to determine the real path in combination
-+with `--installroot'.
-
- .IP \fBgpgcheck\fR
- Either `1' or `0'. This tells yum whether or not it should perform a GPG
---- yum-2.3.2/yum/__init__.py.chroot 2005-04-04 20:14:18.000000000 +0200
-+++ yum-2.3.2/yum/__init__.py 2005-04-08 20:11:06.000000000 +0200
-@@ -97,9 +97,8 @@
- # read each of them in using confpp, then parse them same as any other repo
- # section - as above.
- for reposdir in self.conf.reposdir:
-- if os.path.exists(self.conf.installroot + '/' + reposdir):
-- reposdir = self.conf.installroot + '/' + reposdir
--
-+ reposdir = self.conf.getRootedPath(reposdir)
-+
- if os.path.isdir(reposdir):
- repofn = glob.glob(reposdir+'/*.repo')
- repofn.sort()
-@@ -405,17 +404,20 @@
- self.pkgSack.excludeArchs(archlist)
- self.log(3, 'Finished')
-
-+ def __getLockfileName(self):
-+ lockfile = self.conf.configdata['lockfile']
-+ return self.conf.getRootedPath(lockfile,
-+ enforce_default = True,
-+ defaults_to_host = False)
-
--
-- def doLock(self, lockfile):
-+ def doLock(self):
- """perform the yum locking, raise yum-based exceptions, not OSErrors"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.getConfigOption('uid') != 0:
- return
--
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-+
-+ lockfile=self.__getLockfileName()
-
- mypid=str(os.getpid())
- while not self._lock(lockfile, mypid, 0644):
-@@ -439,15 +441,14 @@
- msg = 'Existing lock %s: another copy is running. Aborting.' % lockfile
- raise Errors.LockError(0, msg)
-
-- def doUnlock(self, lockfile):
-+ def doUnlock(self):
- """do the unlock for yum"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.getConfigOption('uid') != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-+ lockfile=self.__getLockfileName()
-
- self._unlock(lockfile)
-
---- yum-2.3.2/yum/config.py.chroot 2005-03-28 00:01:22.000000000 +0200
-+++ yum-2.3.2/yum/config.py 2005-04-08 20:09:25.000000000 +0200
-@@ -193,7 +193,8 @@
-
- #defaults -either get them or set them
- optionstrings = [('cachedir', '/var/cache/yum'),
-- ('logfile', '/var/log/yum.log'),
-+ ('logfile', '/var/log/yum.log'),
-+ ('lockfile', '/var/run/yum.pid'),
- ('reposdir', ['/etc/yum/repos.d', '/etc/yum.repos.d']),
- ('syslog_ident', None),
- ('syslog_facility', 'LOG_USER'),
-@@ -304,9 +305,7 @@
-
- # do the dirs - set the root if there is one (grumble)
- for option in ['cachedir', 'logfile']:
-- path = self.configdata[option]
-- root = self.configdata['installroot']
-- rootedpath = root + path
-+ rootedpath = self.getRootedPath(self.configdata[option])
- self.configdata[option] = rootedpath
- setattr(self, option, rootedpath)
-
-@@ -339,6 +338,23 @@
- "All plugin search paths must be absolute")
-
-
-+ def getRootedPath(self, path, enforce_default=False, defaults_to_host=False):
-+ instroot = self.configdata['installroot']
-+ if path.startswith('hostfs://'): res = path[9:]
-+ elif path.startswith('chrootfs://'): res = instroot + '/' + path[11:]
-+ else:
-+ tmp = instroot + '/' +path
-+
-+ if enforce_default:
-+ if defaults_to_host: res = path
-+ else: res = tmp
-+ else:
-+ if os.path.exists(tmp): res = tmp
-+ elif defaults_to_host: res = path
-+ else: res = tmp
-+
-+ return res
-+
- def listConfigOptions(self):
- """return list of options available for global config"""
- return self.configdata.keys()
-@@ -717,9 +733,7 @@
- # read each of them in using confpp, then parse them same as any other repo
- # section - as above.
-
-- reposdir = conf.reposdir
-- if os.path.exists(conf.installroot + '/' + reposdir):
-- reposdir = conf.installroot + '/' + reposdir
-+ reposdir = conf.getRootedPath(conf.reposdir)
-
- reposglob = reposdir + '/*.repo'
- if os.path.exists(reposdir) and os.path.isdir(reposdir):
---- yum-2.3.2/cli.py.chroot 2005-03-28 05:18:03.000000000 +0200
-+++ yum-2.3.2/cli.py 2005-04-08 18:27:12.000000000 +0200
-@@ -115,7 +115,7 @@
- sleeptime=0
- root = '/'
- installroot = None
-- conffile = '/etc/yum.conf'
-+ conffile = None
-
- try:
- for o,a in gopts:
-@@ -129,12 +129,14 @@
-
- # if the conf file is inside the installroot - use that.
- # otherwise look for it in the normal root
-+ if conffile==None:
-+ conffile = '/etc/yum.conf'
-+ if installroot and os.access(installroot + '/' + conffile, os.R_OK):
-+ conffile = installroot + '/' + conffile
-+
- if installroot:
-- if os.access(installroot + '/' + conffile, os.R_OK):
-- conffile = installroot + '/' + conffile
--
-- root = installroot
--
-+ root = installroot
-+
- try:
- self.doConfigSetup(fn = conffile, root = root)
- except yum.Errors.ConfigError, e:
---- yum-2.3.2/yummain.py.chroot 2005-03-27 07:39:17.000000000 +0200
-+++ yum-2.3.2/yummain.py 2005-04-08 18:27:12.000000000 +0200
-@@ -41,7 +41,7 @@
- def unlock():
- try:
- base.closeRpmDB()
-- base.doUnlock('/var/run/yum.pid')
-+ base.doUnlock()
- except Errors.LockError, e:
- sys.exit(200)
-
-@@ -58,7 +58,7 @@
- sys.exit(1)
-
- try:
-- base.doLock('/var/run/yum.pid')
-+ base.doLock()
- except Errors.LockError, e:
- base.errorlog(0,'%s' % e.msg)
- sys.exit(200)
+++ /dev/null
---- yum-2.3.3/docs/yum.conf.5.chroot
-+++ yum-2.3.3/docs/yum.conf.5
-@@ -23,8 +23,10 @@
- following options:
-
- .IP \fBcachedir\fR
--Directory where yum should store its cache and db files. The default is
--`/var/cache/yum'.
-+Directory where yum should store its cache and db files. The default
-+is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://'
-+are used, some magic will be applied to determine the real path in
-+combination with `--installroot'.
-
- .IP \fBreposdir\fR
- A list of directories where yum should look for .repo files which define
-@@ -34,6 +36,10 @@
- repositories defined in /etc/yum.conf to form the complete set of repositories
- that yum will use.
-
-+Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic
-+will be applied to determine the real path in combination with
-+`--installroot'.
-+
- .IP \fBdebuglevel\fR
- Debug message output level. Practical range is 0\-10. Default is `2'.
-
-@@ -41,7 +47,10 @@
- Error message output level. Practical range is 0\-10. Default is `2'.
-
- .IP \fBlogfile\fR
--Full directory and file name for where yum should write its log file.
-+Full directory and file name for where yum should write its log
-+file. Unless the prefixes `hostfs://' or `chrootfs://' are used,
-+some magic will be applied to determine the real path in combination
-+with `--installroot'.
-
- .IP \fBgpgcheck\fR
- Either `1' or `0'. This tells yum whether or not it should perform a GPG
---- yum-2.3.3/yum/__init__.py.chroot
-+++ yum-2.3.3/yum/__init__.py
-@@ -101,9 +101,8 @@
- # read each of them in using confpp, then parse them same as any other repo
- # section - as above.
- for reposdir in self.conf.reposdir:
-- if os.path.exists(self.conf.installroot + '/' + reposdir):
-- reposdir = self.conf.installroot + '/' + reposdir
--
-+ reposdir = self.conf.getRootedPath(reposdir)
-+
- if os.path.isdir(reposdir):
- repofn = glob.glob(reposdir+'/*.repo')
- repofn.sort()
-@@ -425,17 +424,20 @@
- self.pkgSack.excludeArchs(archlist)
- self.log(3, 'Finished')
-
-+ def __getLockfileName(self):
-+ lockfile = self.conf.configdata['lockfile']
-+ return self.conf.getRootedPath(lockfile,
-+ enforce_default = True,
-+ defaults_to_host = False)
-
--
-- def doLock(self, lockfile):
-+ def doLock(self):
- """perform the yum locking, raise yum-based exceptions, not OSErrors"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.getConfigOption('uid') != 0:
- return
--
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-+
-+ lockfile=self.__getLockfileName()
-
- mypid=str(os.getpid())
- while not self._lock(lockfile, mypid, 0644):
-@@ -459,15 +461,14 @@
- msg = 'Existing lock %s: another copy is running. Aborting.' % lockfile
- raise Errors.LockError(0, msg)
-
-- def doUnlock(self, lockfile):
-+ def doUnlock(self):
- """do the unlock for yum"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.getConfigOption('uid') != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-+ lockfile=self.__getLockfileName()
-
- self._unlock(lockfile)
-
---- yum-2.3.3/yum/config.py.chroot
-+++ yum-2.3.3/yum/config.py
-@@ -193,7 +193,8 @@
-
- #defaults -either get them or set them
- optionstrings = [('cachedir', '/var/cache/yum'),
-- ('logfile', '/var/log/yum.log'),
-+ ('logfile', '/var/log/yum.log'),
-+ ('lockfile', '/var/run/yum.pid'),
- ('reposdir', ['/etc/yum/repos.d', '/etc/yum.repos.d']),
- ('syslog_ident', None),
- ('syslog_facility', 'LOG_USER'),
-@@ -305,9 +306,7 @@
-
- # do the dirs - set the root if there is one (grumble)
- for option in ['cachedir', 'logfile']:
-- path = self.configdata[option]
-- root = self.configdata['installroot']
-- rootedpath = root + path
-+ rootedpath = self.getRootedPath(self.configdata[option])
- self.configdata[option] = rootedpath
- setattr(self, option, rootedpath)
-
-@@ -340,6 +339,23 @@
- "All plugin search paths must be absolute")
-
-
-+ def getRootedPath(self, path, enforce_default=False, defaults_to_host=False):
-+ instroot = self.configdata['installroot']
-+ if path.startswith('hostfs://'): res = path[9:]
-+ elif path.startswith('chrootfs://'): res = instroot + '/' + path[11:]
-+ else:
-+ tmp = instroot + '/' +path
-+
-+ if enforce_default:
-+ if defaults_to_host: res = path
-+ else: res = tmp
-+ else:
-+ if os.path.exists(tmp): res = tmp
-+ elif defaults_to_host: res = path
-+ else: res = tmp
-+
-+ return res
-+
- def listConfigOptions(self):
- """return list of options available for global config"""
- return self.configdata.keys()
-@@ -719,9 +735,7 @@
- # read each of them in using confpp, then parse them same as any other repo
- # section - as above.
-
-- reposdir = conf.reposdir
-- if os.path.exists(conf.installroot + '/' + reposdir):
-- reposdir = conf.installroot + '/' + reposdir
-+ reposdir = conf.getRootedPath(conf.reposdir)
-
- reposglob = reposdir + '/*.repo'
- if os.path.exists(reposdir) and os.path.isdir(reposdir):
---- yum-2.3.3/cli.py.chroot
-+++ yum-2.3.3/cli.py
-@@ -108,7 +108,7 @@
- action="store_true", default=False,
- help="run entirely from cache, don't update cache")
- self.optparser.add_option("-c", "", dest="conffile", action="store",
-- default='/etc/yum.conf', help="config file location",
-+ default=None, help="config file location",
- metavar=' [config file]')
- self.optparser.add_option("-R", "", dest="sleeptime", action="store",
- type='int', default=None, help="maximum command wait time",
-@@ -161,9 +161,12 @@
- try:
- # If the conf file is inside the installroot - use that.
- # otherwise look for it in the normal root
-- if opts.installroot:
-- if os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
-+ if opts.conffile==None:
-+ opts.conffile = '/etc/yum.conf'
-+ if opts.installroot and os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
- opts.conffile = opts.installroot+'/'+opts.conffile
-+
-+ if opts.installroot:
- root=opts.installroot
- else:
- root = '/'
---- yum-2.3.3/yummain.py.chroot
-+++ yum-2.3.3/yummain.py
-@@ -60,7 +60,7 @@
- def unlock():
- try:
- base.closeRpmDB()
-- base.doUnlock(YUM_PID_FILE)
-+ base.doUnlock()
- except Errors.LockError, e:
- sys.exit(200)
-
-@@ -78,7 +78,7 @@
- except Errors.YumBaseError, e:
- exFatal(e)
- try:
-- base.doLock(YUM_PID_FILE)
-+ base.doLock()
- except Errors.LockError, e:
- base.errorlog(0,'%s' % e.msg)
- sys.exit(200)
+++ /dev/null
---- yum-2.3.4/docs/yum.conf.5.chroot
-+++ yum-2.3.4/docs/yum.conf.5
-@@ -23,8 +23,10 @@
- following options:
-
- .IP \fBcachedir\fR
--Directory where yum should store its cache and db files. The default is
--`/var/cache/yum'.
-+Directory where yum should store its cache and db files. The default
-+is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://'
-+are used, some magic will be applied to determine the real path in
-+combination with `--installroot'.
-
- .IP \fBreposdir\fR
- A list of directories where yum should look for .repo files which define
-@@ -34,6 +36,10 @@
- repositories defined in /etc/yum.conf to form the complete set of repositories
- that yum will use.
-
-+Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic
-+will be applied to determine the real path in combination with
-+`--installroot'.
-+
- .IP \fBdebuglevel\fR
- Debug message output level. Practical range is 0\-10. Default is `2'.
-
-@@ -41,7 +47,10 @@
- Error message output level. Practical range is 0\-10. Default is `2'.
-
- .IP \fBlogfile\fR
--Full directory and file name for where yum should write its log file.
-+Full directory and file name for where yum should write its log
-+file. Unless the prefixes `hostfs://' or `chrootfs://' are used,
-+some magic will be applied to determine the real path in combination
-+with `--installroot'.
-
- .IP \fBgpgcheck\fR
- Either `1' or `0'. This tells yum whether or not it should perform a GPG
---- yum-2.3.4/yum/__init__.py.chroot
-+++ yum-2.3.4/yum/__init__.py
-@@ -102,9 +102,8 @@
- # read each of them in using confpp, then parse them same as any other repo
- # section - as above.
- for reposdir in self.conf.reposdir:
-- if os.path.exists(self.conf.installroot + '/' + reposdir):
-- reposdir = self.conf.installroot + '/' + reposdir
--
-+ reposdir = self.conf.getRootedPath(reposdir)
-+
- if os.path.isdir(reposdir):
- repofn = glob.glob(reposdir+'/*.repo')
- repofn.sort()
-@@ -426,18 +425,20 @@
- self.pkgSack.excludeArchs(archlist)
- self.log(3, 'Finished')
-
-+ def __getLockfileName(self):
-+ lockfile = self.conf.configdata['lockfile']
-+ return self.conf.getRootedPath(lockfile,
-+ enforce_default = True,
-+ defaults_to_host = False)
-
--
-- def doLock(self, lockfile):
-+ def doLock(self):
- """perform the yum locking, raise yum-based exceptions, not OSErrors"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.getConfigOption('uid') != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-- lockfile = os.path.normpath(lockfile) # get rid of silly preceding extra /
-+ lockfile = self.__getLockfileName()
-
- mypid=str(os.getpid())
- while not self._lock(lockfile, mypid, 0644):
-@@ -461,15 +462,14 @@
- msg = 'Existing lock %s: another copy is running. Aborting.' % lockfile
- raise Errors.LockError(0, msg)
-
-- def doUnlock(self, lockfile):
-+ def doUnlock(self):
- """do the unlock for yum"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.getConfigOption('uid') != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-+ lockfile=self.__getLockfileName()
-
- self._unlock(lockfile)
-
---- yum-2.3.4/yum/config.py.chroot
-+++ yum-2.3.4/yum/config.py
-@@ -205,7 +205,8 @@
-
- #defaults -either get them or set them
- optionstrings = [('cachedir', '/var/cache/yum'),
-- ('logfile', '/var/log/yum.log'),
-+ ('logfile', '/var/log/yum.log'),
-+ ('lockfile', '/var/run/yum.pid'),
- ('reposdir', ['/etc/yum/repos.d', '/etc/yum.repos.d']),
- ('syslog_ident', None),
- ('syslog_facility', 'LOG_USER'),
-@@ -318,9 +319,7 @@
-
- # do the dirs - set the root if there is one (grumble)
- for option in ['cachedir', 'logfile']:
-- path = self.configdata[option]
-- root = self.configdata['installroot']
-- rootedpath = root + path
-+ rootedpath = self.getRootedPath(self.configdata[option])
- self.configdata[option] = rootedpath
- setattr(self, option, rootedpath)
-
-@@ -358,6 +357,23 @@
- "All plugin search paths must be absolute")
-
-
-+ def getRootedPath(self, path, enforce_default=False, defaults_to_host=False):
-+ instroot = self.configdata['installroot']
-+ if path.startswith('hostfs://'): res = path[9:]
-+ elif path.startswith('chrootfs://'): res = instroot + '/' + path[11:]
-+ else:
-+ tmp = instroot + '/' +path
-+
-+ if enforce_default:
-+ if defaults_to_host: res = path
-+ else: res = tmp
-+ else:
-+ if os.path.exists(tmp): res = tmp
-+ elif defaults_to_host: res = path
-+ else: res = tmp
-+
-+ return res
-+
- def listConfigOptions(self):
- """return list of options available for global config"""
- return self.configdata.keys()
-@@ -749,8 +765,7 @@
-
- reposdirs = []
- for dir in conf.reposdir:
-- if os.path.exists(conf.installroot + '/' + dir):
-- reposdirs.append(conf.installroot + '/' + dir)
-+ reposdirs.append(conf.getRootedPath(dir))
-
- repofn = []
- for reposdir in reposdirs:
---- yum-2.3.4/cli.py.chroot
-+++ yum-2.3.4/cli.py
-@@ -105,7 +105,7 @@
- action="store_true", default=False,
- help="run entirely from cache, don't update cache")
- self.optparser.add_option("-c", "", dest="conffile", action="store",
-- default='/etc/yum.conf', help="config file location",
-+ default=None, help="config file location",
- metavar=' [config file]')
- self.optparser.add_option("-R", "", dest="sleeptime", action="store",
- type='int', default=None, help="maximum command wait time",
-@@ -158,9 +158,12 @@
- try:
- # If the conf file is inside the installroot - use that.
- # otherwise look for it in the normal root
-- if opts.installroot:
-- if os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
-+ if opts.conffile==None:
-+ opts.conffile = '/etc/yum.conf'
-+ if opts.installroot and os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
- opts.conffile = opts.installroot+'/'+opts.conffile
-+
-+ if opts.installroot:
- root=opts.installroot
- else:
- root = '/'
---- yum-2.3.4/yummain.py.chroot
-+++ yum-2.3.4/yummain.py
-@@ -60,7 +60,7 @@
- def unlock():
- try:
- base.closeRpmDB()
-- base.doUnlock(YUM_PID_FILE)
-+ base.doUnlock()
- except Errors.LockError, e:
- sys.exit(200)
-
-@@ -78,7 +78,7 @@
- except Errors.YumBaseError, e:
- exFatal(e)
- try:
-- base.doLock(YUM_PID_FILE)
-+ base.doLock()
- except Errors.LockError, e:
- base.errorlog(0,'%s' % e.msg)
- sys.exit(200)
+++ /dev/null
---- yum-2.6.0/docs/yum.conf.5.chroot 2006-03-07 04:40:08.000000000 +0100
-+++ yum-2.6.0/docs/yum.conf.5 2006-03-26 13:21:35.000000000 +0200
-@@ -23,8 +23,10 @@
- following options:
-
- .IP \fBcachedir\fR
--Directory where yum should store its cache and db files. The default is
--`/var/cache/yum'.
-+Directory where yum should store its cache and db files. The default
-+is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://'
-+are used, some magic will be applied to determine the real path in
-+combination with `--installroot'.
-
- .IP \fBkeepcache\fR
- Either `1' or `0'. Determines whether or not yum keeps the cache
-@@ -40,6 +42,10 @@
- repositories defined in /etc/yum.conf to form the complete set of repositories
- that yum will use.
-
-+Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic
-+will be applied to determine the real path in combination with
-+`--installroot'.
-+
- .IP \fBdebuglevel\fR
- Debug message output level. Practical range is 0\-10. Default is `2'.
-
-@@ -47,7 +53,10 @@
- Error message output level. Practical range is 0\-10. Default is `2'.
-
- .IP \fBlogfile\fR
--Full directory and file name for where yum should write its log file.
-+Full directory and file name for where yum should write its log
-+file. Unless the prefixes `hostfs://' or `chrootfs://' are used,
-+some magic will be applied to determine the real path in combination
-+with `--installroot'.
-
- .IP \fBgpgcheck\fR
- Either `1' or `0'. This tells yum whether or not it should perform a GPG
---- yum-2.6.0/yum/__init__.py.chroot 2006-03-07 05:38:00.000000000 +0100
-+++ yum-2.6.0/yum/__init__.py 2006-03-26 13:21:35.000000000 +0200
-@@ -125,8 +125,7 @@
- # (typically /etc/yum.repos.d and /etc/yum/repos.d)
- parser = config.IncludedDirConfigParser(vars=self.yumvar)
- for reposdir in self.conf.reposdir:
-- if os.path.exists(self.conf.installroot+'/'+reposdir):
-- reposdir = self.conf.installroot + '/' + reposdir
-+ reposdir = self.conf.getRootedPath(reposdir)
-
- if os.path.isdir(reposdir):
- #XXX: why can't we just pass the list of files?
-@@ -482,16 +481,14 @@
-
- self.log(2, 'Finished')
-
-- def doLock(self, lockfile):
-+ def doLock(self):
- """perform the yum locking, raise yum-based exceptions, not OSErrors"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-- lockfile = os.path.normpath(lockfile) # get rid of silly preceding extra /
-+ lockfile = self.conf.lockfile
-
- mypid=str(os.getpid())
- while not self._lock(lockfile, mypid, 0644):
-@@ -515,15 +518,14 @@
- msg = 'Existing lock %s: another copy is running. Aborting.' % lockfile
- raise Errors.LockError(0, msg)
-
-- def doUnlock(self, lockfile):
-+ def doUnlock(self):
- """do the unlock for yum"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-+ lockfile=self.conf.lockfile
-
- self._unlock(lockfile)
-
---- yum-2.6.0/yum/config.py.chroot 2006-03-07 04:40:08.000000000 +0100
-+++ yum-2.6.0/yum/config.py 2006-03-26 13:22:41.000000000 +0200
-@@ -450,6 +450,27 @@
- else:
- raise Errors.ConfigError, 'No such option %s' % option
-
-+ def getRootedPath(self, path, enforce_default=False, defaults_to_host=False):
-+ instroot = getattr(self, 'installroot', None)
-+ if instroot==None:
-+ return path
-+
-+ if path.startswith('hostfs://'): res = path[9:]
-+ elif path.startswith('chrootfs://'): res = instroot + '/' + path[11:]
-+ else:
-+ tmp = instroot + '/' +path
-+
-+ if enforce_default:
-+ if defaults_to_host: res = path
-+ else: res = tmp
-+ else:
-+ if os.path.exists(tmp): res = tmp
-+ elif defaults_to_host: res = path
-+ else: res = tmp
-+
-+ return res
-+
-+
- class EarlyConf(BaseConfig):
- '''
- Configuration option definitions for yum.conf's [main] section that are
-@@ -474,6 +495,7 @@
- cachedir = Option('/var/cache/yum')
- keepcache = BoolOption(True)
- logfile = Option('/var/log/yum.log')
-+ lockfile = Option('/var/run/yum.pid')
- reposdir = ListOption(['/etc/yum/repos.d', '/etc/yum.repos.d'])
- syslog_ident = Option()
- syslog_facility = Option('LOG_DAEMON')
-@@ -580,9 +602,9 @@
- yumconf.populate(confparser, 'main')
-
- # Apply the installroot to directory options
-- for option in ('cachedir', 'logfile'):
-+ for option in ('cachedir', 'logfile', 'lockfile'):
- path = getattr(yumconf, option)
-- setattr(yumconf, option, yumconf.installroot + path)
-+ setattr(yumconf, option, yumconf.getRootedPath(path))
-
- # Check that plugin paths are all absolute
- for path in yumconf.pluginpath:
---- yum-2.6.0/cli.py.chroot 2006-02-22 22:16:13.000000000 +0100
-+++ yum-2.6.0/cli.py 2006-03-26 13:21:35.000000000 +0200
-@@ -112,7 +112,7 @@
- action="store_true", default=False,
- help="run entirely from cache, don't update cache")
- self.optparser.add_option("-c", "", dest="conffile", action="store",
-- default='/etc/yum.conf', help="config file location",
-+ default=None, help="config file location",
- metavar=' [config file]')
- self.optparser.add_option("-R", "", dest="sleeptime", action="store",
- type='int', default=None, help="maximum command wait time",
-@@ -165,9 +165,12 @@
- try:
- # If the conf file is inside the installroot - use that.
- # otherwise look for it in the normal root
-- if opts.installroot:
-- if os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
-+ if opts.conffile==None:
-+ opts.conffile = '/etc/yum.conf'
-+ if opts.installroot and os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
- opts.conffile = opts.installroot+'/'+opts.conffile
-+
-+ if opts.installroot:
- root=opts.installroot
- else:
- root = '/'
---- yum-2.6.0/yummain.py.chroot 2005-12-13 09:35:41.000000000 +0100
-+++ yum-2.6.0/yummain.py 2006-03-26 13:21:35.000000000 +0200
-@@ -60,7 +60,7 @@
- def unlock():
- try:
- base.closeRpmDB()
-- base.doUnlock(YUM_PID_FILE)
-+ base.doUnlock()
- except Errors.LockError, e:
- sys.exit(200)
-
-@@ -83,7 +83,7 @@
- except Errors.YumBaseError, e:
- exFatal(e)
- try:
-- base.doLock(YUM_PID_FILE)
-+ base.doLock()
- except Errors.LockError, e:
- base.errorlog(0,'%s' % e.msg)
- sys.exit(200)
+++ /dev/null
-diff -Nurp yum-2.9.6.orig/cli.py yum-2.9.6/cli.py
---- yum-2.9.6.orig/cli.py 2006-09-06 06:15:49.000000000 +0200
-+++ yum-2.9.6/cli.py 2006-09-25 09:08:06.000000000 +0200
-@@ -123,7 +123,7 @@ yum [options] < update | install | info
- action="store_true", default=False,
- help="run entirely from cache, don't update cache")
- self.optparser.add_option("-c", "", dest="conffile", action="store",
-- default='/etc/yum.conf', help="config file location",
-+ default=None, help="config file location",
- metavar=' [config file]')
- self.optparser.add_option("-R", "", dest="sleeptime", action="store",
- type='int', default=None, help="maximum command wait time",
-@@ -175,9 +175,12 @@ yum [options] < update | install | info
-
- # If the conf file is inside the installroot - use that.
- # otherwise look for it in the normal root
-- if opts.installroot:
-- if os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
-+ if opts.conffile==None:
-+ opts.conffile = '/etc/yum.conf'
-+ if opts.installroot and os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
- opts.conffile = opts.installroot+'/'+opts.conffile
-+
-+ if opts.installroot:
- root=opts.installroot
- else:
- root = '/'
-diff -Nurp yum-2.9.6.orig/docs/yum.conf.5 yum-2.9.6/docs/yum.conf.5
---- yum-2.9.6.orig/docs/yum.conf.5 2006-06-19 03:28:22.000000000 +0200
-+++ yum-2.9.6/docs/yum.conf.5 2006-09-25 09:02:50.000000000 +0200
-@@ -23,8 +23,10 @@ The [main] section must exist for yum to
- following options:
-
- .IP \fBcachedir\fR
--Directory where yum should store its cache and db files. The default is
--`/var/cache/yum'.
-+Directory where yum should store its cache and db files. The default
-+is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://'
-+are used, some magic will be applied to determine the real path in
-+combination with `--installroot'.
-
- .IP \fBkeepcache\fR
- Either `1' or `0'. Determines whether or not yum keeps the cache
-@@ -40,6 +42,10 @@ documented in \fB[repository] options\fR
- repositories defined in /etc/yum.conf to form the complete set of repositories
- that yum will use.
-
-+Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic
-+will be applied to determine the real path in combination with
-+`--installroot'.
-+
- .IP \fBdebuglevel\fR
- Debug message output level. Practical range is 0\-10. Default is `2'.
-
-@@ -47,7 +53,10 @@ Debug message output level. Practical ra
- Error message output level. Practical range is 0\-10. Default is `2'.
-
- .IP \fBlogfile\fR
--Full directory and file name for where yum should write its log file.
-+Full directory and file name for where yum should write its log
-+file. Unless the prefixes `hostfs://' or `chrootfs://' are used,
-+some magic will be applied to determine the real path in combination
-+with `--installroot'.
-
- .IP \fBgpgcheck\fR
- Either `1' or `0'. This tells yum whether or not it should perform a GPG
-diff -Nurp yum-2.9.6.orig/yum/config.py yum-2.9.6/yum/config.py
---- yum-2.9.6.orig/yum/config.py 2006-06-19 03:28:22.000000000 +0200
-+++ yum-2.9.6/yum/config.py 2006-09-25 09:12:36.000000000 +0200
-@@ -481,6 +481,26 @@ class StartupConf(BaseConfig):
- pluginpath = ListOption(['/usr/lib/yum-plugins'])
- pluginconfpath = ListOption(['/etc/yum/pluginconf.d'])
-
-+ def getRootedPath(self, path, enforce_default=False, defaults_to_host=False):
-+ instroot = getattr(self, 'installroot', None)
-+ if instroot==None:
-+ return path
-+
-+ if path.startswith('hostfs://'): res = path[9:]
-+ elif path.startswith('chrootfs://'): res = instroot + '/' + path[11:]
-+ else:
-+ tmp = instroot + '/' + path
-+
-+ if enforce_default:
-+ if defaults_to_host: res = path
-+ else: res = tmp
-+ else:
-+ if os.path.exists(tmp): res = tmp
-+ elif defaults_to_host: res = path
-+ else: res = tmp
-+
-+ return res
-+
- class YumConf(StartupConf):
- '''
- Configuration option definitions for yum.conf\'s [main] section.
-@@ -493,6 +513,7 @@ class YumConf(StartupConf):
- cachedir = Option('/var/cache/yum')
- keepcache = BoolOption(True)
- logfile = Option('/var/log/yum.log')
-+ lockfile = Option('/var/run/yum.pid')
- reposdir = ListOption(['/etc/yum/repos.d', '/etc/yum.repos.d'])
- syslog_ident = Option()
- syslog_facility = Option('LOG_DAEMON')
-@@ -616,9 +637,9 @@ def readMainConfig(startupconf):
- yumconf.populate(startupconf._parser, 'main')
-
- # Apply the installroot to directory options
-- for option in ('cachedir', 'logfile'):
-+ for option in ('cachedir', 'logfile', 'lockfile'):
- path = getattr(yumconf, option)
-- setattr(yumconf, option, yumconf.installroot + path)
-+ setattr(yumconf, option, yumconf.getRootedPath(path))
-
- # Add in some extra attributes which aren't actually configuration values
- yumconf.yumvar = vars
-diff -Nurp yum-2.9.6.orig/yum/__init__.py yum-2.9.6/yum/__init__.py
---- yum-2.9.6.orig/yum/__init__.py 2006-09-06 06:18:20.000000000 +0200
-+++ yum-2.9.6/yum/__init__.py 2006-09-25 09:02:50.000000000 +0200
-@@ -171,8 +171,7 @@ class YumBase(depsolve.Depsolve):
- # (typically /etc/yum.repos.d and /etc/yum/repos.d)
- parser = config.IncludedDirConfigParser(vars=self.yumvar)
- for reposdir in self.conf.reposdir:
-- if os.path.exists(self.conf.installroot+'/'+reposdir):
-- reposdir = self.conf.installroot + '/' + reposdir
-+ reposdir = self.conf.getRootedPath(reposdir)
-
- if os.path.isdir(reposdir):
- #XXX: why can't we just pass the list of files?
-@@ -502,16 +501,14 @@ class YumBase(depsolve.Depsolve):
-
- self.verbose_logger.log(logginglevels.INFO_2, 'Finished')
-
-- def doLock(self, lockfile):
-+ def doLock(self):
- """perform the yum locking, raise yum-based exceptions, not OSErrors"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-- lockfile = os.path.normpath(lockfile) # get rid of silly preceding extra /
-+ lockfile = self.conf.lockfile
-
- mypid=str(os.getpid())
- while not self._lock(lockfile, mypid, 0644):
-@@ -537,15 +540,14 @@ class YumBase(depsolve.Depsolve):
- msg = 'Existing lock %s: another copy is running. Aborting.' % lockfile
- raise Errors.LockError(0, msg)
-
-- def doUnlock(self, lockfile):
-+ def doUnlock(self):
- """do the unlock for yum"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-+ lockfile=self.conf.lockfile
-
- self._unlock(lockfile)
-
-diff -Nurp yum-2.9.6.orig/yummain.py yum-2.9.6/yummain.py
---- yum-2.9.6.orig/yummain.py 2006-08-19 22:04:33.000000000 +0200
-+++ yum-2.9.6/yummain.py 2006-09-25 09:02:50.000000000 +0200
-@@ -62,7 +62,7 @@ def main(args):
- def unlock():
- try:
- base.closeRpmDB()
-- base.doUnlock(YUM_PID_FILE)
-+ base.doUnlock()
- except Errors.LockError, e:
- sys.exit(200)
-
-@@ -88,7 +88,7 @@ def main(args):
- except Errors.YumBaseError, e:
- exFatal(e)
- try:
-- base.doLock(YUM_PID_FILE)
-+ base.doLock()
- except Errors.LockError, e:
- logger.critical('%s', e.msg)
- sys.exit(200)
+++ /dev/null
---- yum-3.0.3/docs/yum.conf.5.chroot 2006-11-17 08:10:32.000000000 +0100
-+++ yum-3.0.3/docs/yum.conf.5 2007-01-16 20:28:39.000000000 +0100
-@@ -23,8 +23,10 @@
- following options:
-
- .IP \fBcachedir\fR
--Directory where yum should store its cache and db files. The default is
--`/var/cache/yum'.
-+Directory where yum should store its cache and db files. The default
-+is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://'
-+are used, some magic will be applied to determine the real path in
-+combination with `--installroot'.
-
- .IP \fBkeepcache\fR
- Either `1' or `0'. Determines whether or not yum keeps the cache
-@@ -40,6 +42,10 @@
- repositories defined in /etc/yum.conf to form the complete set of repositories
- that yum will use.
-
-+Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic
-+will be applied to determine the real path in combination with
-+`--installroot'.
-+
- .IP \fBdebuglevel\fR
- Debug message output level. Practical range is 0\-10. Default is `2'.
-
-@@ -47,7 +53,10 @@
- Error message output level. Practical range is 0\-10. Default is `2'.
-
- .IP \fBlogfile\fR
--Full directory and file name for where yum should write its log file.
-+Full directory and file name for where yum should write its log
-+file. Unless the prefixes `hostfs://' or `chrootfs://' are used,
-+some magic will be applied to determine the real path in combination
-+with `--installroot'.
-
- .IP \fBgpgcheck\fR
- Either `1' or `0'. This tells yum whether or not it should perform a GPG
---- yum-3.0.3/yum/config.py.chroot 2006-12-07 18:25:02.000000000 +0100
-+++ yum-3.0.3/yum/config.py 2007-01-16 20:28:39.000000000 +0100
-@@ -464,6 +464,26 @@
- pluginpath = ListOption(['/usr/lib/yum-plugins'])
- pluginconfpath = ListOption(['/etc/yum/pluginconf.d'])
-
-+ def getRootedPath(self, path, enforce_default=False, defaults_to_host=False):
-+ instroot = getattr(self, 'installroot', None)
-+ if instroot==None:
-+ return path
-+
-+ if path.startswith('hostfs://'): res = path[9:]
-+ elif path.startswith('chrootfs://'): res = instroot + '/' + path[11:]
-+ else:
-+ tmp = instroot + '/' + path
-+
-+ if enforce_default:
-+ if defaults_to_host: res = path
-+ else: res = tmp
-+ else:
-+ if os.path.exists(tmp): res = tmp
-+ elif defaults_to_host: res = path
-+ else: res = tmp
-+
-+ return res
-+
- class YumConf(StartupConf):
- '''
- Configuration option definitions for yum.conf\'s [main] section.
-@@ -476,6 +496,7 @@
- cachedir = Option('/var/cache/yum')
- keepcache = BoolOption(True)
- logfile = Option('/var/log/yum.log')
-+ lockfile = Option('/var/run/yum.pid')
- reposdir = ListOption(['/etc/yum/repos.d', '/etc/yum.repos.d'])
- syslog_ident = Option()
- syslog_facility = Option('LOG_DAEMON')
-@@ -602,9 +623,9 @@
- yumconf.populate(startupconf._parser, 'main')
-
- # Apply the installroot to directory options
-- for option in ('cachedir', 'logfile'):
-+ for option in ('cachedir', 'logfile', 'lockfile'):
- path = getattr(yumconf, option)
-- setattr(yumconf, option, yumconf.installroot + path)
-+ setattr(yumconf, option, yumconf.getRootedPath(path))
-
- # Add in some extra attributes which aren't actually configuration values
- yumconf.yumvar = yumvars
---- yum-3.0.3/yum/__init__.py.chroot 2007-01-07 21:09:27.000000000 +0100
-+++ yum-3.0.3/yum/__init__.py 2007-01-16 20:32:04.000000000 +0100
-@@ -169,8 +169,7 @@
- # (typically /etc/yum.repos.d and /etc/yum/repos.d)
- parser = ConfigParser()
- for reposdir in self.conf.reposdir:
-- if os.path.exists(self.conf.installroot+'/'+reposdir):
-- reposdir = self.conf.installroot + '/' + reposdir
-+ reposdir = self.conf.getRootedPath(reposdir)
-
- if os.path.isdir(reposdir):
- for repofn in glob.glob('%s/*.repo' % reposdir):
-@@ -523,17 +522,15 @@
-
- self.verbose_logger.log(logginglevels.INFO_2, 'Finished')
-
-- def doLock(self, lockfile = YUM_PID_FILE):
-+ def doLock(self):
- """perform the yum locking, raise yum-based exceptions, not OSErrors"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
--
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-- lockfile = os.path.normpath(lockfile) # get rid of silly preceding extra /
--
-+
-+ lockfile = self.conf.lockfile
-+
- mypid=str(os.getpid())
- while not self._lock(lockfile, mypid, 0644):
- fd = open(lockfile, 'r')
-@@ -558,16 +555,15 @@
- msg = 'Existing lock %s: another copy is running. Aborting.' % lockfile
- raise Errors.LockError(0, msg)
-
-- def doUnlock(self, lockfile = YUM_PID_FILE):
-+ def doUnlock(self):
- """do the unlock for yum"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
--
-+ lockfile=self.conf.lockfile
-+
- self._unlock(lockfile)
-
- def _lock(self, filename, contents='', mode=0777):
---- yum-3.0.3/cli.py.chroot 2006-12-08 00:27:08.000000000 +0100
-+++ yum-3.0.3/cli.py 2007-01-16 20:28:39.000000000 +0100
-@@ -131,7 +131,7 @@
- action="store_true", default=False,
- help="run entirely from cache, don't update cache")
- self.optparser.add_option("-c", "", dest="conffile", action="store",
-- default='/etc/yum.conf', help="config file location",
-+ default=None, help="config file location",
- metavar=' [config file]')
- self.optparser.add_option("-R", "", dest="sleeptime", action="store",
- type='int', default=None, help="maximum command wait time",
-@@ -188,9 +188,12 @@
-
- # If the conf file is inside the installroot - use that.
- # otherwise look for it in the normal root
-- if opts.installroot:
-- if os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
-+ if opts.conffile==None:
-+ opts.conffile = '/etc/yum.conf'
-+ if opts.installroot and os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
- opts.conffile = opts.installroot+'/'+opts.conffile
-+
-+ if opts.installroot:
- root=opts.installroot
- else:
- root = '/'
+++ /dev/null
---- yum-3.0.5/docs/yum.conf.5.chroot 2007-01-31 22:41:38.000000000 +0100
-+++ yum-3.0.5/docs/yum.conf.5 2007-03-31 10:29:52.000000000 +0200
-@@ -23,8 +23,10 @@
- following options:
-
- .IP \fBcachedir\fR
--Directory where yum should store its cache and db files. The default is
--`/var/cache/yum'.
-+Directory where yum should store its cache and db files. The default
-+is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://'
-+are used, some magic will be applied to determine the real path in
-+combination with `--installroot'.
-
- .IP \fBkeepcache\fR
- Either `1' or `0'. Determines whether or not yum keeps the cache
-@@ -40,6 +42,10 @@
- repositories defined in /etc/yum.conf to form the complete set of repositories
- that yum will use.
-
-+Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic
-+will be applied to determine the real path in combination with
-+`--installroot'.
-+
- .IP \fBdebuglevel\fR
- Debug message output level. Practical range is 0\-10. Default is `2'.
-
-@@ -47,7 +53,10 @@
- Error message output level. Practical range is 0\-10. Default is `2'.
-
- .IP \fBlogfile\fR
--Full directory and file name for where yum should write its log file.
-+Full directory and file name for where yum should write its log
-+file. Unless the prefixes `hostfs://' or `chrootfs://' are used,
-+some magic will be applied to determine the real path in combination
-+with `--installroot'.
-
- .IP \fBgpgcheck\fR
- Either `1' or `0'. This tells yum whether or not it should perform a GPG
---- yum-3.0.5/yum/config.py.chroot 2007-01-31 22:41:38.000000000 +0100
-+++ yum-3.0.5/yum/config.py 2007-03-31 10:29:52.000000000 +0200
-@@ -464,6 +464,26 @@
- pluginpath = ListOption(['/usr/lib/yum-plugins'])
- pluginconfpath = ListOption(['/etc/yum/pluginconf.d'])
-
-+ def getRootedPath(self, path, enforce_default=False, defaults_to_host=False):
-+ instroot = getattr(self, 'installroot', None)
-+ if instroot==None:
-+ return path
-+
-+ if path.startswith('hostfs://'): res = path[9:]
-+ elif path.startswith('chrootfs://'): res = instroot + '/' + path[11:]
-+ else:
-+ tmp = instroot + '/' + path
-+
-+ if enforce_default:
-+ if defaults_to_host: res = path
-+ else: res = tmp
-+ else:
-+ if os.path.exists(tmp): res = tmp
-+ elif defaults_to_host: res = path
-+ else: res = tmp
-+
-+ return res
-+
- class YumConf(StartupConf):
- '''
- Configuration option definitions for yum.conf\'s [main] section.
-@@ -476,6 +496,7 @@
- cachedir = Option('/var/cache/yum')
- keepcache = BoolOption(True)
- logfile = Option('/var/log/yum.log')
-+ lockfile = Option('/var/run/yum.pid')
- reposdir = ListOption(['/etc/yum/repos.d', '/etc/yum.repos.d'])
- syslog_ident = Option()
- syslog_facility = Option('LOG_DAEMON')
-@@ -602,9 +623,9 @@
- yumconf.populate(startupconf._parser, 'main')
-
- # Apply the installroot to directory options
-- for option in ('cachedir', 'logfile'):
-+ for option in ('cachedir', 'logfile', 'lockfile'):
- path = getattr(yumconf, option)
-- setattr(yumconf, option, yumconf.installroot + path)
-+ setattr(yumconf, option, yumconf.getRootedPath(path))
-
- # Add in some extra attributes which aren't actually configuration values
- yumconf.yumvar = yumvars
---- yum-3.0.5/yum/__init__.py.chroot 2007-03-14 20:49:53.000000000 +0100
-+++ yum-3.0.5/yum/__init__.py 2007-03-31 10:29:52.000000000 +0200
-@@ -176,8 +176,7 @@
- # (typically /etc/yum.repos.d and /etc/yum/repos.d)
- parser = ConfigParser()
- for reposdir in self.conf.reposdir:
-- if os.path.exists(self.conf.installroot+'/'+reposdir):
-- reposdir = self.conf.installroot + '/' + reposdir
-+ reposdir = self.conf.getRootedPath(reposdir)
-
- if os.path.isdir(reposdir):
- for repofn in glob.glob('%s/*.repo' % reposdir):
-@@ -530,17 +529,15 @@
-
- self.verbose_logger.log(logginglevels.INFO_2, 'Finished')
-
-- def doLock(self, lockfile = YUM_PID_FILE):
-+ def doLock(self):
- """perform the yum locking, raise yum-based exceptions, not OSErrors"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
--
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-- lockfile = os.path.normpath(lockfile) # get rid of silly preceding extra /
--
-+
-+ lockfile = self.conf.lockfile
-+
- mypid=str(os.getpid())
- while not self._lock(lockfile, mypid, 0644):
- fd = open(lockfile, 'r')
-@@ -565,16 +562,15 @@
- msg = 'Existing lock %s: another copy is running. Aborting.' % lockfile
- raise Errors.LockError(0, msg)
-
-- def doUnlock(self, lockfile = YUM_PID_FILE):
-+ def doUnlock(self):
- """do the unlock for yum"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
--
-+ lockfile=self.conf.lockfile
-+
- self._unlock(lockfile)
-
- def _lock(self, filename, contents='', mode=0777):
---- yum-3.0.5/cli.py.chroot 2007-03-12 21:35:46.000000000 +0100
-+++ yum-3.0.5/cli.py 2007-03-31 10:31:23.000000000 +0200
-@@ -132,7 +132,7 @@
- action="store_true", default=False,
- help="run entirely from cache, don't update cache")
- self.optparser.add_option("-c", "", dest="conffile", action="store",
-- default='/etc/yum.conf', help="config file location",
-+ default=None, help="config file location",
- metavar=' [config file]')
- self.optparser.add_option("-R", "", dest="sleeptime", action="store",
- type='int', default=None, help="maximum command wait time",
-@@ -189,9 +189,12 @@
-
- # If the conf file is inside the installroot - use that.
- # otherwise look for it in the normal root
-- if opts.installroot:
-- if os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
-+ if opts.conffile==None:
-+ opts.conffile = '/etc/yum.conf'
-+ if opts.installroot and os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
- opts.conffile = opts.installroot+'/'+opts.conffile
-+
-+ if opts.installroot:
- root=opts.installroot
- else:
- root = '/'
+++ /dev/null
---- yum-3.2.0/yum/__init__.py.chroot 2007-05-16 16:57:12.000000000 -0400
-+++ yum-3.2.0/yum/__init__.py 2007-06-20 20:33:35.000000000 -0400
-@@ -201,8 +201,7 @@ class YumBase(depsolve.Depsolve):
- # (typically /etc/yum/repos.d)
- parser = ConfigParser()
- for reposdir in self.conf.reposdir:
-- if os.path.exists(self.conf.installroot+'/'+reposdir):
-- reposdir = self.conf.installroot + '/' + reposdir
-+ reposdir = self.conf.getRootedPath(reposdir)
-
- if os.path.isdir(reposdir):
- for repofn in glob.glob('%s/*.repo' % reposdir):
-@@ -632,17 +631,15 @@ class YumBase(depsolve.Depsolve):
-
- self.verbose_logger.log(logginglevels.INFO_2, 'Finished')
-
-- def doLock(self, lockfile = YUM_PID_FILE):
-+ def doLock(self):
- """perform the yum locking, raise yum-based exceptions, not OSErrors"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
--
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-- lockfile = os.path.normpath(lockfile) # get rid of silly preceding extra /
--
-+
-+ lockfile = self.conf.lockfile
-+
- mypid=str(os.getpid())
- while not self._lock(lockfile, mypid, 0644):
- fd = open(lockfile, 'r')
-@@ -667,16 +664,15 @@ class YumBase(depsolve.Depsolve):
- msg = 'Existing lock %s: another copy is running as pid %s. Aborting.' % (lockfile, oldpid)
- raise Errors.LockError(0, msg)
-
-- def doUnlock(self, lockfile = YUM_PID_FILE):
-+ def doUnlock(self):
- """do the unlock for yum"""
-
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
--
-+ lockfile=self.conf.lockfile
-+
- self._unlock(lockfile)
-
- def _lock(self, filename, contents='', mode=0777):
---- yum-3.2.0/yum/config.py.chroot 2007-04-26 10:12:30.000000000 -0400
-+++ yum-3.2.0/yum/config.py 2007-06-20 20:33:35.000000000 -0400
-@@ -464,6 +464,26 @@ class StartupConf(BaseConfig):
- pluginpath = ListOption(['/usr/share/yum-plugins', '/usr/lib/yum-plugins'])
- pluginconfpath = ListOption(['/etc/yum/pluginconf.d'])
-
-+ def getRootedPath(self, path, enforce_default=False, defaults_to_host=False):
-+ instroot = getattr(self, 'installroot', None)
-+ if instroot==None:
-+ return path
-+
-+ if path.startswith('hostfs://'): res = path[9:]
-+ elif path.startswith('chrootfs://'): res = instroot + '/' + path[11:]
-+ else:
-+ tmp = instroot + '/' + path
-+
-+ if enforce_default:
-+ if defaults_to_host: res = path
-+ else: res = tmp
-+ else:
-+ if os.path.exists(tmp): res = tmp
-+ elif defaults_to_host: res = path
-+ else: res = tmp
-+
-+ return res
-+
- class YumConf(StartupConf):
- '''
- Configuration option definitions for yum.conf\'s [main] section.
-@@ -476,6 +496,7 @@ class YumConf(StartupConf):
- cachedir = Option('/var/cache/yum')
- keepcache = BoolOption(True)
- logfile = Option('/var/log/yum.log')
-+ lockfile = Option('/var/run/yum.pid')
- reposdir = ListOption(['/etc/yum/repos.d', '/etc/yum.repos.d'])
- syslog_ident = Option()
- syslog_facility = Option('LOG_DAEMON')
-@@ -605,9 +626,9 @@ def readMainConfig(startupconf):
- yumconf.populate(startupconf._parser, 'main')
-
- # Apply the installroot to directory options
-- for option in ('cachedir', 'logfile'):
-+ for option in ('cachedir', 'logfile', 'lockfile'):
- path = getattr(yumconf, option)
-- setattr(yumconf, option, yumconf.installroot + path)
-+ setattr(yumconf, option, yumconf.getRootedPath(path))
-
- # Add in some extra attributes which aren't actually configuration values
- yumconf.yumvar = yumvars
---- yum-3.2.0/docs/yum.conf.5.chroot 2007-02-18 19:14:56.000000000 -0500
-+++ yum-3.2.0/docs/yum.conf.5 2007-06-20 20:33:35.000000000 -0400
-@@ -23,8 +23,10 @@ The [main] section must exist for yum to
- following options:
-
- .IP \fBcachedir\fR
--Directory where yum should store its cache and db files. The default is
--`/var/cache/yum'.
-+Directory where yum should store its cache and db files. The default
-+is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://'
-+are used, some magic will be applied to determine the real path in
-+combination with `--installroot'.
-
- .IP \fBkeepcache\fR
- Either `1' or `0'. Determines whether or not yum keeps the cache
-@@ -40,6 +42,10 @@ documented in \fB[repository] options\fR
- repositories defined in /etc/yum/yum.conf to form the complete set of
- repositories that yum will use.
-
-+Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic
-+will be applied to determine the real path in combination with
-+`--installroot'.
-+
- .IP \fBdebuglevel\fR
- Debug message output level. Practical range is 0\-10. Default is `2'.
-
-@@ -47,7 +53,10 @@ Debug message output level. Practical ra
- Error message output level. Practical range is 0\-10. Default is `2'.
-
- .IP \fBlogfile\fR
--Full directory and file name for where yum should write its log file.
-+Full directory and file name for where yum should write its log
-+file. Unless the prefixes `hostfs://' or `chrootfs://' are used,
-+some magic will be applied to determine the real path in combination
-+with `--installroot'.
-
- .IP \fBgpgcheck\fR
- Either `1' or `0'. This tells yum whether or not it should perform a GPG
---- yum-3.2.0/cli.py.chroot 2007-05-15 08:18:07.000000000 -0400
-+++ yum-3.2.0/cli.py 2007-06-20 20:33:35.000000000 -0400
-@@ -1166,13 +1166,14 @@ class YumOptionParser(OptionParser):
- def getRoot(self,opts):
- # If the conf file is inside the installroot - use that.
- # otherwise look for it in the normal root
-+ if opts.conffile==None:
-+ opts.conffile = '/etc/yum/yum.conf'
-+ if opts.installroot:
-+ if os.access(opts.installroot+opts.conffile, os.R_OK):
-+ opts.conffile = opts.installroot+opts.conffile
-+ elif os.access(opts.installroot+'/etc/yum.conf', os.R_OK):
-+ opts.conffile = opts.installroot+'/etc/yum.conf'
- if opts.installroot:
-- if os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
-- opts.conffile = opts.installroot+'/'+opts.conffile
-- elif opts.conffile == '/etc/yum/yum.conf':
-- # check if /installroot/etc/yum.conf exists.
-- if os.access(opts.installroot+'/etc/yum.conf', os.R_OK):
-- opts.conffile = opts.installroot+'/etc/yum.conf'
- root=opts.installroot
- else:
- root = '/'
-@@ -1195,7 +1196,7 @@ class YumOptionParser(OptionParser):
- action="store_true", default=False,
- help="run entirely from cache, don't update cache")
- self.add_option("-c", "", dest="conffile", action="store",
-- default='/etc/yum/yum.conf', help="config file location",
-+ default=None, help="config file location",
- metavar=' [config file]')
- self.add_option("-R", "", dest="sleeptime", action="store",
- type='int', default=None, help="maximum command wait time",
+++ /dev/null
---- yum-3.2.1/yum/__init__.py.chroot
-+++ yum-3.2.1/yum/__init__.py
-@@ -201,8 +201,7 @@ class YumBase(depsolve.Depsolve):
- # (typically /etc/yum/repos.d)
- parser = ConfigParser()
- for reposdir in self.conf.reposdir:
-- if os.path.exists(self.conf.installroot+'/'+reposdir):
-- reposdir = self.conf.installroot + '/' + reposdir
-+ reposdir = self.conf.getRootedPath(reposdir)
-
- if os.path.isdir(reposdir):
- for repofn in glob.glob('%s/*.repo' % reposdir):
-@@ -616,11 +615,9 @@ class YumBase(depsolve.Depsolve):
- # if we're not root then we don't lock - just return nicely
- if self.conf.uid != 0:
- return
--
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
-- lockfile = os.path.normpath(lockfile) # get rid of silly preceding extra /
--
-+
-+ lockfile = self.conf.lockfile
-+
- mypid=str(os.getpid())
- while not self._lock(lockfile, mypid, 0644):
- fd = open(lockfile, 'r')
-@@ -652,9 +649,8 @@ class YumBase(depsolve.Depsolve):
- if self.conf.uid != 0:
- return
-
-- root = self.conf.installroot
-- lockfile = root + '/' + lockfile # lock in the chroot
--
-+ lockfile=self.conf.lockfile
-+
- self._unlock(lockfile)
-
- def _lock(self, filename, contents='', mode=0777):
---- yum-3.2.1/yum/config.py.chroot
-+++ yum-3.2.1/yum/config.py
-@@ -464,6 +464,26 @@ class StartupConf(BaseConfig):
- pluginpath = ListOption(['/usr/share/yum-plugins', '/usr/lib/yum-plugins'])
- pluginconfpath = ListOption(['/etc/yum/pluginconf.d'])
-
-+ def getRootedPath(self, path, enforce_default=False, defaults_to_host=False):
-+ instroot = getattr(self, 'installroot', None)
-+ if instroot==None:
-+ return path
-+
-+ if path.startswith('hostfs://'): res = path[9:]
-+ elif path.startswith('chrootfs://'): res = instroot + '/' + path[11:]
-+ else:
-+ tmp = instroot + '/' + path
-+
-+ if enforce_default:
-+ if defaults_to_host: res = path
-+ else: res = tmp
-+ else:
-+ if os.path.exists(tmp): res = tmp
-+ elif defaults_to_host: res = path
-+ else: res = tmp
-+
-+ return res
-+
- class YumConf(StartupConf):
- '''
- Configuration option definitions for yum.conf\'s [main] section.
-@@ -476,6 +496,7 @@ class YumConf(StartupConf):
- cachedir = Option('/var/cache/yum')
- keepcache = BoolOption(True)
- logfile = Option('/var/log/yum.log')
-+ lockfile = Option('/var/run/yum.pid')
- reposdir = ListOption(['/etc/yum/repos.d', '/etc/yum.repos.d'])
- syslog_ident = Option()
- syslog_facility = Option('LOG_DAEMON')
-@@ -605,9 +626,9 @@ def readMainConfig(startupconf):
- yumconf.populate(startupconf._parser, 'main')
-
- # Apply the installroot to directory options
-- for option in ('cachedir', 'logfile'):
-+ for option in ('cachedir', 'logfile', 'lockfile'):
- path = getattr(yumconf, option)
-- setattr(yumconf, option, yumconf.installroot + path)
-+ setattr(yumconf, option, yumconf.getRootedPath(path))
-
- # Add in some extra attributes which aren't actually configuration values
- yumconf.yumvar = yumvars
---- yum-3.2.1/docs/yum.conf.5.chroot
-+++ yum-3.2.1/docs/yum.conf.5
-@@ -23,8 +23,10 @@ The [main] section must exist for yum to
- following options:
-
- .IP \fBcachedir\fR
--Directory where yum should store its cache and db files. The default is
--`/var/cache/yum'.
-+Directory where yum should store its cache and db files. The default
-+is `/var/cache/yum'. Unless the prefixes `hostfs://' or `chrootfs://'
-+are used, some magic will be applied to determine the real path in
-+combination with `--installroot'.
-
- .IP \fBkeepcache\fR
- Either `1' or `0'. Determines whether or not yum keeps the cache
-@@ -40,6 +42,10 @@ documented in \fB[repository] options\fR
- repositories defined in /etc/yum/yum.conf to form the complete set of
- repositories that yum will use.
-
-+Unless the prefixes `hostfs://' or `chrootfs://' are used, some magic
-+will be applied to determine the real path in combination with
-+`--installroot'.
-+
- .IP \fBdebuglevel\fR
- Debug message output level. Practical range is 0\-10. Default is `2'.
-
-@@ -47,7 +53,10 @@ Debug message output level. Practical ra
- Error message output level. Practical range is 0\-10. Default is `2'.
-
- .IP \fBlogfile\fR
--Full directory and file name for where yum should write its log file.
-+Full directory and file name for where yum should write its log
-+file. Unless the prefixes `hostfs://' or `chrootfs://' are used,
-+some magic will be applied to determine the real path in combination
-+with `--installroot'.
-
- .IP \fBgpgcheck\fR
- Either `1' or `0'. This tells yum whether or not it should perform a GPG
---- yum-3.2.1/cli.py.chroot
-+++ yum-3.2.1/cli.py
-@@ -1168,13 +1168,14 @@ class YumOptionParser(OptionParser):
- def getRoot(self,opts):
- # If the conf file is inside the installroot - use that.
- # otherwise look for it in the normal root
-+ if opts.conffile==None:
-+ opts.conffile = '/etc/yum/yum.conf'
-+ if opts.installroot:
-+ if os.access(opts.installroot+opts.conffile, os.R_OK):
-+ opts.conffile = opts.installroot+opts.conffile
-+ elif os.access(opts.installroot+'/etc/yum.conf', os.R_OK):
-+ opts.conffile = opts.installroot+'/etc/yum.conf'
- if opts.installroot:
-- if os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
-- opts.conffile = opts.installroot+'/'+opts.conffile
-- elif opts.conffile == '/etc/yum/yum.conf':
-- # check if /installroot/etc/yum.conf exists.
-- if os.access(opts.installroot+'/etc/yum.conf', os.R_OK):
-- opts.conffile = opts.installroot+'/etc/yum.conf'
- root=opts.installroot
- else:
- root = '/'
-@@ -1195,7 +1196,7 @@ class YumOptionParser(OptionParser):
- help="be tolerant of errors")
- self.add_option("-C", dest="cacheonly", action="store_true",
- help="run entirely from cache, don't update cache")
-- self.add_option("-c", dest="conffile", default='/etc/yum/yum.conf',
-+ self.add_option("-c", dest="conffile", default=None,
- help="config file location", metavar=' [config file]')
- self.add_option("-R", dest="sleeptime", type='int', default=None,
- help="maximum command wait time", metavar=' [minutes]')
+++ /dev/null
-#! /bin/sh
-# depcomp - compile a program generating dependencies as side-effects
-
-scriptversion=2006-10-15.18
-
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
-
-case $1 in
- '')
- echo "$0: No command. Try \`$0 --help' for more information." 1>&2
- exit 1;
- ;;
- -h | --h*)
- cat <<\EOF
-Usage: depcomp [--help] [--version] PROGRAM [ARGS]
-
-Run PROGRAMS ARGS to compile a file, generating dependencies
-as side-effects.
-
-Environment variables:
- depmode Dependency tracking mode.
- source Source file read by `PROGRAMS ARGS'.
- object Object file output by `PROGRAMS ARGS'.
- DEPDIR directory where to store dependencies.
- depfile Dependency file to output.
- tmpdepfile Temporary file to use when outputing dependencies.
- libtool Whether libtool is used (yes/no).
-
-Report bugs to <bug-automake@gnu.org>.
-EOF
- exit $?
- ;;
- -v | --v*)
- echo "depcomp $scriptversion"
- exit $?
- ;;
-esac
-
-if test -z "$depmode" || test -z "$source" || test -z "$object"; then
- echo "depcomp: Variables source, object and depmode must be set" 1>&2
- exit 1
-fi
-
-# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
-depfile=${depfile-`echo "$object" |
- sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
-tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
-
-rm -f "$tmpdepfile"
-
-# Some modes work just like other modes, but use different flags. We
-# parameterize here, but still list the modes in the big case below,
-# to make depend.m4 easier to write. Note that we *cannot* use a case
-# here, because this file can only contain one case statement.
-if test "$depmode" = hp; then
- # HP compiler uses -M and no extra arg.
- gccflag=-M
- depmode=gcc
-fi
-
-if test "$depmode" = dashXmstdout; then
- # This is just like dashmstdout with a different argument.
- dashmflag=-xM
- depmode=dashmstdout
-fi
-
-case "$depmode" in
-gcc3)
-## gcc 3 implements dependency tracking that does exactly what
-## we want. Yay! Note: for some reason libtool 1.4 doesn't like
-## it if -MD -MP comes after the -MF stuff. Hmm.
-## Unfortunately, FreeBSD c89 acceptance of flags depends upon
-## the command line argument order; so add the flags where they
-## appear in depend2.am. Note that the slowdown incurred here
-## affects only configure: in makefiles, %FASTDEP% shortcuts this.
- for arg
- do
- case $arg in
- -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
- *) set fnord "$@" "$arg" ;;
- esac
- shift # fnord
- shift # $arg
- done
- "$@"
- stat=$?
- if test $stat -eq 0; then :
- else
- rm -f "$tmpdepfile"
- exit $stat
- fi
- mv "$tmpdepfile" "$depfile"
- ;;
-
-gcc)
-## There are various ways to get dependency output from gcc. Here's
-## why we pick this rather obscure method:
-## - Don't want to use -MD because we'd like the dependencies to end
-## up in a subdir. Having to rename by hand is ugly.
-## (We might end up doing this anyway to support other compilers.)
-## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
-## -MM, not -M (despite what the docs say).
-## - Using -M directly means running the compiler twice (even worse
-## than renaming).
- if test -z "$gccflag"; then
- gccflag=-MD,
- fi
- "$@" -Wp,"$gccflag$tmpdepfile"
- stat=$?
- if test $stat -eq 0; then :
- else
- rm -f "$tmpdepfile"
- exit $stat
- fi
- rm -f "$depfile"
- echo "$object : \\" > "$depfile"
- alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
-## The second -e expression handles DOS-style file names with drive letters.
- sed -e 's/^[^:]*: / /' \
- -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
-## This next piece of magic avoids the `deleted header file' problem.
-## The problem is that when a header file which appears in a .P file
-## is deleted, the dependency causes make to die (because there is
-## typically no way to rebuild the header). We avoid this by adding
-## dummy dependencies for each header file. Too bad gcc doesn't do
-## this for us directly.
- tr ' ' '
-' < "$tmpdepfile" |
-## Some versions of gcc put a space before the `:'. On the theory
-## that the space means something, we add a space to the output as
-## well.
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly. Breaking it into two sed invocations is a workaround.
- sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-hp)
- # This case exists only to let depend.m4 do its work. It works by
- # looking at the text of this script. This case will never be run,
- # since it is checked for above.
- exit 1
- ;;
-
-sgi)
- if test "$libtool" = yes; then
- "$@" "-Wp,-MDupdate,$tmpdepfile"
- else
- "$@" -MDupdate "$tmpdepfile"
- fi
- stat=$?
- if test $stat -eq 0; then :
- else
- rm -f "$tmpdepfile"
- exit $stat
- fi
- rm -f "$depfile"
-
- if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
- echo "$object : \\" > "$depfile"
-
- # Clip off the initial element (the dependent). Don't try to be
- # clever and replace this with sed code, as IRIX sed won't handle
- # lines with more than a fixed number of characters (4096 in
- # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
- # the IRIX cc adds comments like `#:fec' to the end of the
- # dependency line.
- tr ' ' '
-' < "$tmpdepfile" \
- | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
- tr '
-' ' ' >> $depfile
- echo >> $depfile
-
- # The second pass generates a dummy entry for each header file.
- tr ' ' '
-' < "$tmpdepfile" \
- | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
- >> $depfile
- else
- # The sourcefile does not contain any dependencies, so just
- # store a dummy comment line, to avoid errors with the Makefile
- # "include basename.Plo" scheme.
- echo "#dummy" > "$depfile"
- fi
- rm -f "$tmpdepfile"
- ;;
-
-aix)
- # The C for AIX Compiler uses -M and outputs the dependencies
- # in a .u file. In older versions, this file always lives in the
- # current directory. Also, the AIX compiler puts `$object:' at the
- # start of each line; $object doesn't have directory information.
- # Version 6 uses the directory in both cases.
- stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
- tmpdepfile="$stripped.u"
- if test "$libtool" = yes; then
- "$@" -Wc,-M
- else
- "$@" -M
- fi
- stat=$?
-
- if test -f "$tmpdepfile"; then :
- else
- stripped=`echo "$stripped" | sed 's,^.*/,,'`
- tmpdepfile="$stripped.u"
- fi
-
- if test $stat -eq 0; then :
- else
- rm -f "$tmpdepfile"
- exit $stat
- fi
-
- if test -f "$tmpdepfile"; then
- outname="$stripped.o"
- # Each line is of the form `foo.o: dependent.h'.
- # Do two passes, one to just change these to
- # `$object: dependent.h' and one to simply `dependent.h:'.
- sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
- sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
- else
- # The sourcefile does not contain any dependencies, so just
- # store a dummy comment line, to avoid errors with the Makefile
- # "include basename.Plo" scheme.
- echo "#dummy" > "$depfile"
- fi
- rm -f "$tmpdepfile"
- ;;
-
-icc)
- # Intel's C compiler understands `-MD -MF file'. However on
- # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
- # ICC 7.0 will fill foo.d with something like
- # foo.o: sub/foo.c
- # foo.o: sub/foo.h
- # which is wrong. We want:
- # sub/foo.o: sub/foo.c
- # sub/foo.o: sub/foo.h
- # sub/foo.c:
- # sub/foo.h:
- # ICC 7.1 will output
- # foo.o: sub/foo.c sub/foo.h
- # and will wrap long lines using \ :
- # foo.o: sub/foo.c ... \
- # sub/foo.h ... \
- # ...
-
- "$@" -MD -MF "$tmpdepfile"
- stat=$?
- if test $stat -eq 0; then :
- else
- rm -f "$tmpdepfile"
- exit $stat
- fi
- rm -f "$depfile"
- # Each line is of the form `foo.o: dependent.h',
- # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
- # Do two passes, one to just change these to
- # `$object: dependent.h' and one to simply `dependent.h:'.
- sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
- # Some versions of the HPUX 10.20 sed can't process this invocation
- # correctly. Breaking it into two sed invocations is a workaround.
- sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
- sed -e 's/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-hp2)
- # The "hp" stanza above does not work with aCC (C++) and HP's ia64
- # compilers, which have integrated preprocessors. The correct option
- # to use with these is +Maked; it writes dependencies to a file named
- # 'foo.d', which lands next to the object file, wherever that
- # happens to be.
- # Much of this is similar to the tru64 case; see comments there.
- dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
- test "x$dir" = "x$object" && dir=
- base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
- if test "$libtool" = yes; then
- tmpdepfile1=$dir$base.d
- tmpdepfile2=$dir.libs/$base.d
- "$@" -Wc,+Maked
- else
- tmpdepfile1=$dir$base.d
- tmpdepfile2=$dir$base.d
- "$@" +Maked
- fi
- stat=$?
- if test $stat -eq 0; then :
- else
- rm -f "$tmpdepfile1" "$tmpdepfile2"
- exit $stat
- fi
-
- for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
- do
- test -f "$tmpdepfile" && break
- done
- if test -f "$tmpdepfile"; then
- sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
- # Add `dependent.h:' lines.
- sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
- else
- echo "#dummy" > "$depfile"
- fi
- rm -f "$tmpdepfile" "$tmpdepfile2"
- ;;
-
-tru64)
- # The Tru64 compiler uses -MD to generate dependencies as a side
- # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
- # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
- # dependencies in `foo.d' instead, so we check for that too.
- # Subdirectories are respected.
- dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
- test "x$dir" = "x$object" && dir=
- base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
-
- if test "$libtool" = yes; then
- # With Tru64 cc, shared objects can also be used to make a
- # static library. This mechanism is used in libtool 1.4 series to
- # handle both shared and static libraries in a single compilation.
- # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
- #
- # With libtool 1.5 this exception was removed, and libtool now
- # generates 2 separate objects for the 2 libraries. These two
- # compilations output dependencies in $dir.libs/$base.o.d and
- # in $dir$base.o.d. We have to check for both files, because
- # one of the two compilations can be disabled. We should prefer
- # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
- # automatically cleaned when .libs/ is deleted, while ignoring
- # the former would cause a distcleancheck panic.
- tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
- tmpdepfile2=$dir$base.o.d # libtool 1.5
- tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
- tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
- "$@" -Wc,-MD
- else
- tmpdepfile1=$dir$base.o.d
- tmpdepfile2=$dir$base.d
- tmpdepfile3=$dir$base.d
- tmpdepfile4=$dir$base.d
- "$@" -MD
- fi
-
- stat=$?
- if test $stat -eq 0; then :
- else
- rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
- exit $stat
- fi
-
- for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
- do
- test -f "$tmpdepfile" && break
- done
- if test -f "$tmpdepfile"; then
- sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
- # That's a tab and a space in the [].
- sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
- else
- echo "#dummy" > "$depfile"
- fi
- rm -f "$tmpdepfile"
- ;;
-
-#nosideeffect)
- # This comment above is used by automake to tell side-effect
- # dependency tracking mechanisms from slower ones.
-
-dashmstdout)
- # Important note: in order to support this mode, a compiler *must*
- # always write the preprocessed file to stdout, regardless of -o.
- "$@" || exit $?
-
- # Remove the call to Libtool.
- if test "$libtool" = yes; then
- while test $1 != '--mode=compile'; do
- shift
- done
- shift
- fi
-
- # Remove `-o $object'.
- IFS=" "
- for arg
- do
- case $arg in
- -o)
- shift
- ;;
- $object)
- shift
- ;;
- *)
- set fnord "$@" "$arg"
- shift # fnord
- shift # $arg
- ;;
- esac
- done
-
- test -z "$dashmflag" && dashmflag=-M
- # Require at least two characters before searching for `:'
- # in the target name. This is to cope with DOS-style filenames:
- # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
- "$@" $dashmflag |
- sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
- rm -f "$depfile"
- cat < "$tmpdepfile" > "$depfile"
- tr ' ' '
-' < "$tmpdepfile" | \
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly. Breaking it into two sed invocations is a workaround.
- sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-dashXmstdout)
- # This case only exists to satisfy depend.m4. It is never actually
- # run, as this mode is specially recognized in the preamble.
- exit 1
- ;;
-
-makedepend)
- "$@" || exit $?
- # Remove any Libtool call
- if test "$libtool" = yes; then
- while test $1 != '--mode=compile'; do
- shift
- done
- shift
- fi
- # X makedepend
- shift
- cleared=no
- for arg in "$@"; do
- case $cleared in
- no)
- set ""; shift
- cleared=yes ;;
- esac
- case "$arg" in
- -D*|-I*)
- set fnord "$@" "$arg"; shift ;;
- # Strip any option that makedepend may not understand. Remove
- # the object too, otherwise makedepend will parse it as a source file.
- -*|$object)
- ;;
- *)
- set fnord "$@" "$arg"; shift ;;
- esac
- done
- obj_suffix="`echo $object | sed 's/^.*\././'`"
- touch "$tmpdepfile"
- ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
- rm -f "$depfile"
- cat < "$tmpdepfile" > "$depfile"
- sed '1,2d' "$tmpdepfile" | tr ' ' '
-' | \
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly. Breaking it into two sed invocations is a workaround.
- sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile" "$tmpdepfile".bak
- ;;
-
-cpp)
- # Important note: in order to support this mode, a compiler *must*
- # always write the preprocessed file to stdout.
- "$@" || exit $?
-
- # Remove the call to Libtool.
- if test "$libtool" = yes; then
- while test $1 != '--mode=compile'; do
- shift
- done
- shift
- fi
-
- # Remove `-o $object'.
- IFS=" "
- for arg
- do
- case $arg in
- -o)
- shift
- ;;
- $object)
- shift
- ;;
- *)
- set fnord "$@" "$arg"
- shift # fnord
- shift # $arg
- ;;
- esac
- done
-
- "$@" -E |
- sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
- -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
- sed '$ s: \\$::' > "$tmpdepfile"
- rm -f "$depfile"
- echo "$object : \\" > "$depfile"
- cat < "$tmpdepfile" >> "$depfile"
- sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-msvisualcpp)
- # Important note: in order to support this mode, a compiler *must*
- # always write the preprocessed file to stdout, regardless of -o,
- # because we must use -o when running libtool.
- "$@" || exit $?
- IFS=" "
- for arg
- do
- case "$arg" in
- "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
- set fnord "$@"
- shift
- shift
- ;;
- *)
- set fnord "$@" "$arg"
- shift
- shift
- ;;
- esac
- done
- "$@" -E |
- sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
- rm -f "$depfile"
- echo "$object : \\" > "$depfile"
- . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
- echo " " >> "$depfile"
- . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-none)
- exec "$@"
- ;;
-
-*)
- echo "Unknown depmode $depmode" 1>&2
- exit 1
- ;;
-esac
-
-exit 0
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End:
+++ /dev/null
-## $Id: Makefile.am 2601 2007-08-27 10:19:24Z dhozac $
-
-## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-confdir = $(sysconfdir)/vservers
-defaultsdir = $(pkglibdir)/defaults
-distribdir = $(pkglibdir)/distributions
-confdistribdir = $(confdir)/.distributions
-confdefaultsdir = $(confdir)/.defaults
-
-defaults_DATA = misc/debootstrap.mirror \
- misc/debootstrap.uri \
- misc/fstab \
- misc/mtab \
- misc/vprocunhide-files \
- misc/vunify-exclude \
- misc/environment \
- misc/context.start \
- misc/context.start \
- misc/h2ext.desc
-
-nobase_distrib_SCRIPTS = redhat/initpost \
- redhat/initpre \
- redhat/rc.sysinit \
- gentoo/initpost \
- gentoo/initpre \
- debian/initpost
-
-nobase_distrib_DATA = defaults/devs \
- defaults/apt.conf \
- defaults/rpm/macros \
- defaults/apt/apt.conf \
- template/initpost template/initpre \
- rh9/apt/rpmpriorities rh9/pkgs/01 rh9/pkgs/02 \
- fc1/apt/rpmpriorities fc1/pkgs/01 fc1/pkgs/02 \
- fc2/apt/rpmpriorities fc2/pkgs/01 fc2/pkgs/02 \
- fc3/apt/rpmpriorities fc3/pkgs/01 fc3/pkgs/02 fc3/pkgs/03 \
- fc3/yum/yum.conf $(wildcard fc3/yum.repos.d/*.repo) \
- $(wildcard fc3/rpmlist.d/*.lst) $(wildcard fc3/rpmlist.d/*.opt) \
- fc4/apt/rpmpriorities fc4/pkgs/01 fc4/pkgs/02 fc4/pkgs/03 \
- fc4/yum/yum.conf $(wildcard fc4/yum.repos.d/*.repo) \
- $(wildcard fc4/rpmlist.d/*.lst) $(wildcard fc4/rpmlist.d/*.opt) \
- fc5/apt/rpmpriorities fc5/pkgs/01 fc5/pkgs/02 fc5/pkgs/03 \
- fc5/yum/yum.conf $(wildcard fc5/yum.repos.d/*.repo) \
- $(wildcard fc5/rpmlist.d/*.lst) $(wildcard fc5/rpmlist.d/*.opt) \
- fc6/apt/rpmpriorities fc6/pkgs/01 fc6/pkgs/02 fc6/pkgs/03 \
- fc6/yum/yum.conf $(wildcard fc6/yum.repos.d/*.repo) \
- $(wildcard fc6/rpmlist.d/*.lst) $(wildcard fc6/rpmlist.d/*.opt) \
- f7/apt/rpmpriorities f7/pkgs/01 f7/pkgs/02 f7/pkgs/03 \
- f7/yum/yum.conf $(wildcard f7/yum.repos.d/*.repo) \
- $(wildcard f7/rpmlist.d/*.lst) $(wildcard f7/rpmlist.d/*.opt) \
- centos4/pkgs/01 centos4/pkgs/02 centos4/pkgs/03 \
- centos4/yum/yum.conf $(wildcard centos4/yum.repos.d/*.repo) \
- centos5/pkgs/01 centos5/pkgs/02 centos5/pkgs/03 \
- centos5/yum/yum.conf $(wildcard centos5/yum.repos.d/*.repo) \
- suse91/apt/rpmpriorities suse91/pkgs/01 suse91/pkgs/02 \
- suse91/rpm/macros \
- gentoo/init-vserver.sh gentoo/net.vserver \
- gentoo/reboot.sh gentoo/shutdown.sh \
- debian/debootstrap.script \
- breezy/debootstrap.script dapper/debootstrap.script \
- edgy/debootstrap.script feisty/debootstrap.script \
- gutsy/debootstrap.script hoary/debootstrap.script \
- warty/debootstrap.script
-
-nobase_confdistrib_DATA = rh9/apt/sources.list \
- fc1/apt/sources.list \
- fc2/apt/sources.list \
- fc3/apt/sources.list \
- fc4/apt/sources.list \
- fc5/apt/sources.list \
- fc6/apt/sources.list \
- f7/apt/sources.list \
- suse91/apt/sources.list
-
-AM_INSTALLCHECK_STD_OPTIONS_EXEMPT \
- = $(nobase_distrib_SCRIPTS)
-
-EXTRA_DIST = $(nobase_distrib_DATA) \
- $(nobase_distrib_SCRIPTS) \
- $(nobase_confdistrib_DATA) \
- $(defaults_DATA)
-
-redhat_style = rh9 fc1 fc2 fc3 fc4 fc5 fc6 f7 centos4 centos5
-sid_style = etch lenny sid
-
-install-exec-hook: install-notify-xtra
-install-data-hook: install-data-xtras
-
-install-data-xtras:
- l="$(redhat_style)"; for i in $$l; do \
- ln -sf ../redhat/initpost $(DESTDIR)$(distribdir)/$$i/ && \
- ln -sf ../redhat/initpre $(DESTDIR)$(distribdir)/$$i/; \
- done
- l="$(sid_style)"; for i in $$l; do \
- ln -sf debian $(DESTDIR)$(distribdir)/$$i; \
- done
- $(mkinstalldirs) $(DESTDIR)$(confdir) \
- $(DESTDIR)$(confdistribdir)/.common/pubkeys \
- $(DESTDIR)$(confdefaultsdir) \
- $(DESTDIR)$(confdefaultsdir)/apps/vunify/hash \
- $(DESTDIR)$(confdefaultsdir)/files
-
-
-include $(top_srcdir)/m4/install-notify.am
+++ /dev/null
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
- $(top_srcdir)/m4/install-notify.am
-subdir = distrib
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ensc_cflags.m4 \
- $(top_srcdir)/m4/ensc_changelog.m4 \
- $(top_srcdir)/m4/ensc_cxxcompiler.m4 \
- $(top_srcdir)/m4/ensc_dietlibc.m4 \
- $(top_srcdir)/m4/ensc_dietlibc_compat.m4 \
- $(top_srcdir)/m4/ensc_e2fscheck.m4 \
- $(top_srcdir)/m4/ensc_initrddir.m4 \
- $(top_srcdir)/m4/ensc_pathprog.m4 \
- $(top_srcdir)/m4/ensc_personality.m4 \
- $(top_srcdir)/m4/ensc_release.m4 \
- $(top_srcdir)/m4/ensc_syscall.m4 \
- $(top_srcdir)/m4/ensc_syscallnr.m4 \
- $(top_srcdir)/m4/ensc_uv_vrootdir.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
-am__installdirs = "$(DESTDIR)$(distribdir)" "$(DESTDIR)$(defaultsdir)" \
- "$(DESTDIR)$(confdistribdir)" "$(DESTDIR)$(distribdir)"
-nobase_distribSCRIPT_INSTALL = $(install_sh_SCRIPT)
-SCRIPTS = $(nobase_distrib_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-defaultsDATA_INSTALL = $(INSTALL_DATA)
-nobase_confdistribDATA_INSTALL = $(install_sh_DATA)
-nobase_distribDATA_INSTALL = $(install_sh_DATA)
-DATA = $(defaults_DATA) $(nobase_confdistrib_DATA) \
- $(nobase_distrib_DATA)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BZIP2 = @BZIP2@
-CAT = @CAT@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CHOWN = @CHOWN@
-CMP = @CMP@
-CP = @CP@
-CPIO = @CPIO@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DIET = @DIET@
-DIETFLAGS = @DIETFLAGS@
-DIRNAME = @DIRNAME@
-DOXYGEN = @DOXYGEN@
-ECHO = @ECHO@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-ENSC_PATHPROG_SED = @ENSC_PATHPROG_SED@
-ENSC_USE_EXPENSIVE_TESTS = @ENSC_USE_EXPENSIVE_TESTS@
-ENV = @ENV@
-EXEEXT = @EXEEXT@
-F77 = @F77@
-FFLAGS = @FFLAGS@
-FILE = @FILE@
-GPG_KEY = @GPG_KEY@
-GREP = @GREP@
-GZIP = @GZIP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-IP = @IP@
-IPTABLES = @IPTABLES@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIB_DEBUG_CPPFLAGS = @LIB_DEBUG_CPPFLAGS@
-LN = @LN@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR = @MKDIR@
-MKDIR_P = @MKDIR_P@
-MKFIFO = @MKFIFO@
-MKTEMP = @MKTEMP@
-MODPROBE = @MODPROBE@
-MOUNT = @MOUNT@
-MV = @MV@
-NAMEIF = @NAMEIF@
-NICE = @NICE@
-NOHUP = @NOHUP@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PS = @PS@
-PYTHON = @PYTHON@
-PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
-PYTHON_INCLUDES = @PYTHON_INCLUDES@
-PYTHON_PLATFORM = @PYTHON_PLATFORM@
-PYTHON_PREFIX = @PYTHON_PREFIX@
-PYTHON_VERSION = @PYTHON_VERSION@
-RANLIB = @RANLIB@
-RELEASE_CPPFLAGS = @RELEASE_CPPFLAGS@
-RESTORE = @RESTORE@
-RM = @RM@
-RMDIR = @RMDIR@
-RMMOD = @RMMOD@
-RSYNC = @RSYNC@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SH = @SH@
-SHELL = @SHELL@
-STRACE = @STRACE@
-STRIP = @STRIP@
-SVN2CL = @SVN2CL@
-TAC = @TAC@
-TAR = @TAR@
-TOUCH = @TOUCH@
-TTY = @TTY@
-UMOUNT = @UMOUNT@
-VCONFIG = @VCONFIG@
-VERSION = @VERSION@
-WC = @WC@
-WGET = @WGET@
-XSLTP = @XSLTP@
-XSLTPROC = @XSLTPROC@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_F77 = @ac_ct_F77@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-initrddir = @initrddir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-pkgpyexecdir = @pkgpyexecdir@
-pkgpythondir = @pkgpythondir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-pyexecdir = @pyexecdir@
-pythondir = @pythondir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-vserverdir = @vserverdir@
-confdir = $(sysconfdir)/vservers
-defaultsdir = $(pkglibdir)/defaults
-distribdir = $(pkglibdir)/distributions
-confdistribdir = $(confdir)/.distributions
-confdefaultsdir = $(confdir)/.defaults
-defaults_DATA = misc/debootstrap.mirror \
- misc/debootstrap.uri \
- misc/fstab \
- misc/mtab \
- misc/vprocunhide-files \
- misc/vunify-exclude \
- misc/environment \
- misc/context.start \
- misc/context.start \
- misc/h2ext.desc
-
-nobase_distrib_SCRIPTS = redhat/initpost \
- redhat/initpre \
- redhat/rc.sysinit \
- gentoo/initpost \
- gentoo/initpre \
- debian/initpost
-
-nobase_distrib_DATA = defaults/devs \
- defaults/apt.conf \
- defaults/rpm/macros \
- defaults/apt/apt.conf \
- template/initpost template/initpre \
- rh9/apt/rpmpriorities rh9/pkgs/01 rh9/pkgs/02 \
- fc1/apt/rpmpriorities fc1/pkgs/01 fc1/pkgs/02 \
- fc2/apt/rpmpriorities fc2/pkgs/01 fc2/pkgs/02 \
- fc3/apt/rpmpriorities fc3/pkgs/01 fc3/pkgs/02 fc3/pkgs/03 \
- fc3/yum/yum.conf $(wildcard fc3/yum.repos.d/*.repo) \
- $(wildcard fc3/rpmlist.d/*.lst) $(wildcard fc3/rpmlist.d/*.opt) \
- fc4/apt/rpmpriorities fc4/pkgs/01 fc4/pkgs/02 fc4/pkgs/03 \
- fc4/yum/yum.conf $(wildcard fc4/yum.repos.d/*.repo) \
- $(wildcard fc4/rpmlist.d/*.lst) $(wildcard fc4/rpmlist.d/*.opt) \
- fc5/apt/rpmpriorities fc5/pkgs/01 fc5/pkgs/02 fc5/pkgs/03 \
- fc5/yum/yum.conf $(wildcard fc5/yum.repos.d/*.repo) \
- $(wildcard fc5/rpmlist.d/*.lst) $(wildcard fc5/rpmlist.d/*.opt) \
- fc6/apt/rpmpriorities fc6/pkgs/01 fc6/pkgs/02 fc6/pkgs/03 \
- fc6/yum/yum.conf $(wildcard fc6/yum.repos.d/*.repo) \
- $(wildcard fc6/rpmlist.d/*.lst) $(wildcard fc6/rpmlist.d/*.opt) \
- f7/apt/rpmpriorities f7/pkgs/01 f7/pkgs/02 f7/pkgs/03 \
- f7/yum/yum.conf $(wildcard f7/yum.repos.d/*.repo) \
- $(wildcard f7/rpmlist.d/*.lst) $(wildcard f7/rpmlist.d/*.opt) \
- centos4/pkgs/01 centos4/pkgs/02 centos4/pkgs/03 \
- centos4/yum/yum.conf $(wildcard centos4/yum.repos.d/*.repo) \
- centos5/pkgs/01 centos5/pkgs/02 centos5/pkgs/03 \
- centos5/yum/yum.conf $(wildcard centos5/yum.repos.d/*.repo) \
- suse91/apt/rpmpriorities suse91/pkgs/01 suse91/pkgs/02 \
- suse91/rpm/macros \
- gentoo/init-vserver.sh gentoo/net.vserver \
- gentoo/reboot.sh gentoo/shutdown.sh \
- debian/debootstrap.script \
- breezy/debootstrap.script dapper/debootstrap.script \
- edgy/debootstrap.script feisty/debootstrap.script \
- gutsy/debootstrap.script hoary/debootstrap.script \
- warty/debootstrap.script
-
-nobase_confdistrib_DATA = rh9/apt/sources.list \
- fc1/apt/sources.list \
- fc2/apt/sources.list \
- fc3/apt/sources.list \
- fc4/apt/sources.list \
- fc5/apt/sources.list \
- fc6/apt/sources.list \
- f7/apt/sources.list \
- suse91/apt/sources.list
-
-EXTRA_DIST = $(nobase_distrib_DATA) \
- $(nobase_distrib_SCRIPTS) \
- $(nobase_confdistrib_DATA) \
- $(defaults_DATA)
-
-redhat_style = rh9 fc1 fc2 fc3 fc4 fc5 fc6 f7 centos4 centos5
-sid_style = etch lenny sid
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/m4/install-notify.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits distrib/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnits distrib/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-install-nobase_distribSCRIPTS: $(nobase_distrib_SCRIPTS)
- @$(NORMAL_INSTALL)
- test -z "$(distribdir)" || $(MKDIR_P) "$(DESTDIR)$(distribdir)"
- @$(am__vpath_adj_setup) \
- list='$(nobase_distrib_SCRIPTS)'; for p in $$list; do \
- $(am__vpath_adj) p=$$f; \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- if test -f $$d$$p; then \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- f=`echo "$$p" | sed 's|[^/]*$$||'`"$$f"; \
- echo " $(nobase_distribSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(distribdir)/$$f'"; \
- $(nobase_distribSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(distribdir)/$$f"; \
- else :; fi; \
- done
-
-uninstall-nobase_distribSCRIPTS:
- @$(NORMAL_UNINSTALL)
- @$(am__vpath_adj_setup) \
- list='$(nobase_distrib_SCRIPTS)'; for p in $$list; do \
- $(am__vpath_adj) p=$$f; \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- f=`echo "$$p" | sed 's|[^/]*$$||'`"$$f"; \
- echo " rm -f '$(DESTDIR)$(distribdir)/$$f'"; \
- rm -f "$(DESTDIR)$(distribdir)/$$f"; \
- done
-
-installcheck-nobase_distribSCRIPTS: $(nobase_distrib_SCRIPTS)
- bad=0; pid=$$$$; list="$(nobase_distrib_SCRIPTS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | sed 's,^.*/,,;$(transform)'`; \
- f=`echo "$$p" | sed 's|[^/]*$$||'`"$$f"; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(distribdir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-install-defaultsDATA: $(defaults_DATA)
- @$(NORMAL_INSTALL)
- test -z "$(defaultsdir)" || $(MKDIR_P) "$(DESTDIR)$(defaultsdir)"
- @list='$(defaults_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
- echo " $(defaultsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(defaultsdir)/$$f'"; \
- $(defaultsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(defaultsdir)/$$f"; \
- done
-
-uninstall-defaultsDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(defaults_DATA)'; for p in $$list; do \
- f=$(am__strip_dir) \
- echo " rm -f '$(DESTDIR)$(defaultsdir)/$$f'"; \
- rm -f "$(DESTDIR)$(defaultsdir)/$$f"; \
- done
-install-nobase_confdistribDATA: $(nobase_confdistrib_DATA)
- @$(NORMAL_INSTALL)
- test -z "$(confdistribdir)" || $(MKDIR_P) "$(DESTDIR)$(confdistribdir)"
- @$(am__vpath_adj_setup) \
- list='$(nobase_confdistrib_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- $(am__vpath_adj) \
- echo " $(nobase_confdistribDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(confdistribdir)/$$f'"; \
- $(nobase_confdistribDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(confdistribdir)/$$f"; \
- done
-
-uninstall-nobase_confdistribDATA:
- @$(NORMAL_UNINSTALL)
- @$(am__vpath_adj_setup) \
- list='$(nobase_confdistrib_DATA)'; for p in $$list; do \
- $(am__vpath_adj) \
- echo " rm -f '$(DESTDIR)$(confdistribdir)/$$f'"; \
- rm -f "$(DESTDIR)$(confdistribdir)/$$f"; \
- done
-install-nobase_distribDATA: $(nobase_distrib_DATA)
- @$(NORMAL_INSTALL)
- test -z "$(distribdir)" || $(MKDIR_P) "$(DESTDIR)$(distribdir)"
- @$(am__vpath_adj_setup) \
- list='$(nobase_distrib_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- $(am__vpath_adj) \
- echo " $(nobase_distribDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(distribdir)/$$f'"; \
- $(nobase_distribDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(distribdir)/$$f"; \
- done
-
-uninstall-nobase_distribDATA:
- @$(NORMAL_UNINSTALL)
- @$(am__vpath_adj_setup) \
- list='$(nobase_distrib_DATA)'; for p in $$list; do \
- $(am__vpath_adj) \
- echo " rm -f '$(DESTDIR)$(distribdir)/$$f'"; \
- rm -f "$(DESTDIR)$(distribdir)/$$f"; \
- done
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(SCRIPTS) $(DATA)
-installdirs:
- for dir in "$(DESTDIR)$(distribdir)" "$(DESTDIR)$(defaultsdir)" "$(DESTDIR)$(confdistribdir)" "$(DESTDIR)$(distribdir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am: install-defaultsDATA install-nobase_confdistribDATA \
- install-nobase_distribDATA install-nobase_distribSCRIPTS
- @$(NORMAL_INSTALL)
- $(MAKE) $(AM_MAKEFLAGS) install-data-hook
-
-install-dvi: install-dvi-am
-
-install-exec-am:
- @$(NORMAL_INSTALL)
- $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am: installcheck-nobase_distribSCRIPTS
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-defaultsDATA uninstall-nobase_confdistribDATA \
- uninstall-nobase_distribDATA uninstall-nobase_distribSCRIPTS
-
-.MAKE: install-am install-data-am install-exec-am install-strip
-
-.PHONY: all all-am check check-am clean clean-generic clean-libtool \
- distclean distclean-generic distclean-libtool distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-data-hook \
- install-defaultsDATA install-dvi install-dvi-am install-exec \
- install-exec-am install-exec-hook install-html install-html-am \
- install-info install-info-am install-man \
- install-nobase_confdistribDATA install-nobase_distribDATA \
- install-nobase_distribSCRIPTS install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installcheck-nobase_distribSCRIPTS installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- uninstall uninstall-am uninstall-defaultsDATA \
- uninstall-nobase_confdistribDATA uninstall-nobase_distribDATA \
- uninstall-nobase_distribSCRIPTS
-
-
-AM_INSTALLCHECK_STD_OPTIONS_EXEMPT \
- = $(nobase_distrib_SCRIPTS)
-
-install-exec-hook: install-notify-xtra
-install-data-hook: install-data-xtras
-
-install-data-xtras:
- l="$(redhat_style)"; for i in $$l; do \
- ln -sf ../redhat/initpost $(DESTDIR)$(distribdir)/$$i/ && \
- ln -sf ../redhat/initpre $(DESTDIR)$(distribdir)/$$i/; \
- done
- l="$(sid_style)"; for i in $$l; do \
- ln -sf debian $(DESTDIR)$(distribdir)/$$i; \
- done
- $(mkinstalldirs) $(DESTDIR)$(confdir) \
- $(DESTDIR)$(confdistribdir)/.common/pubkeys \
- $(DESTDIR)$(confdefaultsdir) \
- $(DESTDIR)$(confdefaultsdir)/apps/vunify/hash \
- $(DESTDIR)$(confdefaultsdir)/files
-
-install-exec-hook install-data-hook: install-notify-xtra
-
-install-notify-xtra:
- @echo
- @echo
- @echo '***************************'
- @echo '*'
- @echo '* NOTE: a plain "make install" installs only the files under $$(prefix)'
- @echo '* which might be insufficient. To complete the installation,'
- @echo '* "make install-distribution" should be executed. See README,'
- @echo '* "Notes for distributors" for details.'
- @echo '*'
- @echo '***************************'
- @echo
- @echo
-
-.PHONY: install-notify-xtra
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
+++ /dev/null
-default_mirror http://old-releases.ubuntu.com/ubuntu
-mirror_style release
-download_style apt
-finddebs_style from-indices
-variants - buildd
-
-work_out_debs () {
- LIBC6=libc6
- if [ "$ARCH" = "alpha" -o "$ARCH" = "ia64" ]; then LIBC6="libc6.1"; fi
-
- required="$(get_debs Priority: required)"
-
- if doing_variant -; then
- #required="$required $(get_debs Priority: important)"
- # ^^ should be getting debconf here somehow maybe
- base="$(get_debs Priority: important)"
- elif doing_variant buildd; then
- # TODO: add Build-Essential: yes extraoverrides
- #base="$(get_debs Build-Essential: yes)"
-
- add () { if [ "$ARCH" = "$1" ]; then eval "$2=\"\$$2 $3\""; fi; }
-
- base="apt binutils cpio cpp cpp-4.0 dpkg-dev g++ g++-4.0 gcc gcc-4.0 gcc-4.0-base ${LIBC6}-dev libdb4.2 libgdbm3 libstdc++6 libstdc++6-4.0-dev linux-kernel-headers make patch perl perl-modules"
-
- add ia64 base "libunwind7-dev"
- add sparc base "lib64gcc1"
- add sparc base "libc6-dev-sparc64"
- add sparc base "libc6-sparc64"
- fi
-}
-
-first_stage_install () {
- extract $required
-
- mkdir -p "$TARGET/var/lib/dpkg"
- : >"$TARGET/var/lib/dpkg/status"
- echo >"$TARGET/var/lib/dpkg/available"
-
- setup_etc
- if [ ! -e "$TARGET/etc/fstab" ]; then
- echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
- chown 0.0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
- fi
-
- setup_devices
-
- x_feign_install () {
- local pkg="$1"
- local deb="$(debfor $pkg)"
- local ver="$(
- ar -p "$TARGET/$deb" control.tar.gz | zcat |
- tar -O -xf - control ./control 2>/dev/null |
- sed -ne 's/^Version: *//Ip' | head -n 1
- )"
-
- mkdir -p "$TARGET/var/lib/dpkg/info"
-
- echo \
-"Package: $pkg
-Version: $ver
-Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
-
- touch "$TARGET/var/lib/dpkg/info/${pkg}.list"
- }
-
- x_feign_install dpkg
-}
-
-second_stage_install () {
- x_core_install () {
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
- }
-
- p () {
- baseprog="$(($baseprog + ${1:-1}))"
- }
-
- setup_proc
- in_target /sbin/ldconfig
-
- DEBIAN_FRONTEND=noninteractive
- DEBCONF_NONINTERACTIVE_SEEN=true
- export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
-
- baseprog=0
- bases=7
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #1
- info INSTCORE "Installing core packages..."
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #2
- ln -sf mawk $TARGET/usr/bin/awk
- x_core_install base-files base-passwd
- p; progress $baseprog $bases INSTCORE "Installing core packages" #3
- x_core_install dpkg
-
- if [ ! -e "$TARGET/etc/localtime" ]; then
- ln -sf /usr/share/zoneinfo/UTC "$TARGET/etc/localtime"
- fi
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #4
- x_core_install $LIBC6
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #5
- x_core_install perl-base
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #6
- rm $TARGET/usr/bin/awk
- x_core_install mawk
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #7
- if doing_variant -; then
- x_core_install debconf
- fi
-
- baseprog=0
- bases=$(set -- $required; echo $#)
-
- info UNPACKREQ "Unpacking required packages..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages. This will be attempted up to five times." "" \
- dpkg --status-fd 8 --force-depends --unpack $(debfor $required) 8>&1 1>&7 |
- dpkg_progress $baseprog $bases UNPACKREQ "Unpacking required packages" UNPACKING) 7>&1
-
- info CONFREQ "Configuring required packages..."
-
- mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
- echo \
-"#!/bin/sh
-echo
-echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
- chmod 755 "$TARGET/sbin/start-stop-daemon"
-
- setup_dselect_method apt
-
- smallyes '' |
- (in_target_failmsg CONF_REQ_FAIL "Failure while configuring required packages." "" \
- dpkg --status-fd 8 --configure --pending --force-configure-any --force-depends 8>&1 1>&7 |
- dpkg_progress $baseprog $bases CONFREQ "Configuring required packages" CONFIGURING) 7>&1
-
- baseprog=0
- bases="$(set -- $base; echo $#)"
-
- info UNPACKBASE "Unpacking the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages. This will be re-attempted up to five times." "" \
- dpkg --status-fd 8 --force-auto-select --force-overwrite --force-confold --skip-same-version --unpack $(debfor $base) 8>&1 1>&7 |
- dpkg_progress $baseprog $bases UNPACKBASE "Unpacking base system" UNPACKING) 7>&1
-
- info CONFBASE "Configuring the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be attempted 5 times." "" \
- dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 |
- dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING) 7>&1
-
- mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
-
- progress $bases $bases CONFBASE "Configuring base system"
- info BASESUCCESS "Base system installed successfully."
-}
+++ /dev/null
---reinstall
-
-filesystem
+++ /dev/null
-coreutils
-setup
+++ /dev/null
-[base]
-name=CentOS-4 - Base
-baseurl=http://mirror.centos.org/centos/4/os/$basearch/
-gpgcheck=1
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
-
-#released updates
-[update]
-name=CentOS-4 - Updates
-baseurl=http://mirror.centos.org/centos/4/updates/$basearch/
-gpgcheck=1
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
-
-#packages used/produced in the build but not released
-[addons]
-name=CentOS-4 - Addons
-baseurl=http://mirror.centos.org/centos/4/addons/$basearch/
-gpgcheck=1
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
-
-#additional packages that may be useful
-[extras]
-name=CentOS-4 - Extras
-baseurl=http://mirror.centos.org/centos/4/extras/$basearch/
-gpgcheck=1
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
-
-#additional packages that extend functionality of existing packages
-[centosplus]
-name=CentOS-4 - Plus
-baseurl=http://mirror.centos.org/centos/4/centosplus/$basearch/
-gpgcheck=1
-enabled=0
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
-
-#contrib - packages by Centos Users
-[contrib]
-name=CentOS-4 - Contrib
-baseurl=http://mirror.centos.org/centos/4/contrib/$basearch/
-gpgcheck=1
-enabled=0
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
-
-#packages in testing
-[testing]
-name=CentOS-4 - Testing
-baseurl=http://mirror.centos.org/centos/4/testing/$basearch/
-gpgcheck=1
-enabled=0
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
+++ /dev/null
-[main]
-cachedir=@YUMCACHEDIR@
-reposdir=@YUMETCDIR@/yum.repos.d
-debuglevel=1
-logfile=@YUMLOGDIR@/log
-lockfile=@YUMLOCKDIR@/yum.pid
-pkgpolicy=newest
-distroverpkg=centos-release
-installonlypkgs=
-exactarch=0
+++ /dev/null
---reinstall
-
-filesystem
+++ /dev/null
-coreutils
-setup
+++ /dev/null
-# CentOS-Base.repo
-#
-# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
-# The mirror system uses the connecting IP address of the client and the
-# update status of each mirror to pick mirrors that are updated to and
-# geographically close to the client. You should use this for CentOS updates
-# unless you are manually picking other mirrors.
-#
-# If the mirrorlist= does not work for you, as a fall back you can try the
-# remarked out baseurl= line instead.
-#
-#
-
-[base]
-name=CentOS-5 - Base
-mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=os
-#baseurl=http://mirror.centos.org/centos/5/os/$basearch/
-gpgcheck=1
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
-
-#released updates
-[updates]
-name=CentOS-5 - Updates
-mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=updates
-#baseurl=http://mirror.centos.org/centos/5/updates/$basearch/
-gpgcheck=1
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
-
-#packages used/produced in the build but not released
-[addons]
-name=CentOS-5 - Addons
-mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=addons
-#baseurl=http://mirror.centos.org/centos/5/addons/$basearch/
-gpgcheck=1
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
-
-#additional packages that may be useful
-[extras]
-name=CentOS-5 - Extras
-mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=extras
-#baseurl=http://mirror.centos.org/centos/5/extras/$basearch/
-gpgcheck=1
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
-
-#additional packages that extend functionality of existing packages
-[centosplus]
-name=CentOS-5 - Plus
-mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=centosplus
-#baseurl=http://mirror.centos.org/centos/5/centosplus/$basearch/
-gpgcheck=1
-enabled=0
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
-
-#contrib - packages by Centos Users
-[contrib]
-name=CentOS-5 - Contrib
-mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=contrib
-#baseurl=http://mirror.centos.org/centos/5/contrib/$basearch/
-gpgcheck=1
-enabled=0
-gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
+++ /dev/null
-[main]
-cachedir=@YUMCACHEDIR@
-reposdir=@YUMETCDIR@/yum.repos.d
-debuglevel=1
-logfile=@YUMLOGDIR@/log
-lockfile=@YUMLOCKDIR@/yum.pid
-pkgpolicy=newest
-distroverpkg=centos-release
-installonlypkgs=
-exactarch=0
+++ /dev/null
-case $ARCH in
- amd64|i386|powerpc|sparc)
- default_mirror http://archive.ubuntu.com/ubuntu
- ;;
- *)
- default_mirror http://ports.ubuntu.com/ubuntu-ports
- ;;
-esac
-mirror_style release
-download_style apt
-finddebs_style from-indices
-variants - buildd
-
-work_out_debs () {
- LIBC6=libc6
- if [ "$ARCH" = "alpha" -o "$ARCH" = "ia64" ]; then LIBC6="libc6.1"; fi
-
- required="$(get_debs Priority: required)"
-
- if doing_variant -; then
- #required="$required $(get_debs Priority: important)"
- # ^^ should be getting debconf here somehow maybe
- base="$(get_debs Priority: important)"
- elif doing_variant buildd; then
- # TODO: add Build-Essential: yes extraoverrides
- #base="$(get_debs Build-Essential: yes)"
-
- add () { if [ "$ARCH" = "$1" ]; then eval "$2=\"\$$2 $3\""; fi; }
-
- base="apt binutils cpio cpp cpp-4.0 dpkg-dev g++ g++-4.0 gcc gcc-4.0 ${LIBC6}-dev libgdbm3 libstdc++6 libstdc++6-4.0-dev linux-kernel-headers make patch perl perl-modules"
-
- add ia64 base "libunwind7-dev"
- add sparc base "lib64gcc1"
- add sparc base "libc6-dev-sparc64"
- add sparc base "libc6-sparc64"
- fi
-}
-
-first_stage_install () {
- extract $required
-
- mkdir -p "$TARGET/var/lib/dpkg"
- : >"$TARGET/var/lib/dpkg/status"
- : >"$TARGET/var/lib/dpkg/available"
-
- setup_etc
- if [ ! -e "$TARGET/etc/fstab" ]; then
- echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
- chown 0.0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
- fi
-
- setup_devices
-
- x_feign_install () {
- local pkg="$1"
- local deb="$(debfor $pkg)"
- local ver="$(
- ar -p "$TARGET/$deb" control.tar.gz | zcat |
- tar -O -xf - control ./control 2>/dev/null |
- sed -ne 's/^Version: *//Ip' | head -n 1
- )"
-
- mkdir -p "$TARGET/var/lib/dpkg/info"
-
- echo \
-"Package: $pkg
-Version: $ver
-Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
-
- touch "$TARGET/var/lib/dpkg/info/${pkg}.list"
- }
-
- x_feign_install dpkg
-}
-
-second_stage_install () {
- x_core_install () {
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
- }
-
- p () {
- baseprog="$(($baseprog + ${1:-1}))"
- }
-
- setup_proc
- in_target /sbin/ldconfig
-
- DEBIAN_FRONTEND=noninteractive
- DEBCONF_NONINTERACTIVE_SEEN=true
- export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
-
- baseprog=0
- bases=7
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #1
- info INSTCORE "Installing core packages..."
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #2
- ln -sf mawk $TARGET/usr/bin/awk
- x_core_install base-files base-passwd
- p; progress $baseprog $bases INSTCORE "Installing core packages" #3
- x_core_install dpkg
-
- if [ ! -e "$TARGET/etc/localtime" ]; then
- ln -sf /usr/share/zoneinfo/UTC "$TARGET/etc/localtime"
- fi
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #4
- x_core_install $LIBC6
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #5
- x_core_install perl-base
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #6
- rm $TARGET/usr/bin/awk
- x_core_install mawk
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #7
- if doing_variant -; then
- x_core_install debconf
- fi
-
- baseprog=0
- bases=$(set -- $required; echo $#)
-
- info UNPACKREQ "Unpacking required packages..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages. This will be attempted up to five times." "" \
- dpkg --status-fd 8 --force-depends --unpack $(debfor $required) 8>&1 1>&7 |
- dpkg_progress $baseprog $bases UNPACKREQ "Unpacking required packages" UNPACKING) 7>&1
-
- info CONFREQ "Configuring required packages..."
-
- mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
- echo \
-"#!/bin/sh
-echo
-echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
- chmod 755 "$TARGET/sbin/start-stop-daemon"
-
- setup_dselect_method apt
-
- smallyes '' |
- (in_target_failmsg CONF_REQ_FAIL "Failure while configuring required packages." "" \
- dpkg --status-fd 8 --configure --pending --force-configure-any --force-depends 8>&1 1>&7 |
- dpkg_progress $baseprog $bases CONFREQ "Configuring required packages" CONFIGURING) 7>&1
-
- baseprog=0
- bases="$(set -- $base; echo $#)"
-
- info UNPACKBASE "Unpacking the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages. This will be re-attempted up to five times." "" \
- dpkg --status-fd 8 --force-auto-select --force-overwrite --force-confold --skip-same-version --unpack $(debfor $base) 8>&1 1>&7 |
- dpkg_progress $baseprog $bases UNPACKBASE "Unpacking base system" UNPACKING) 7>&1
-
- info CONFBASE "Configuring the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be attempted 5 times." "" \
- dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 |
- dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING) 7>&1
-
- mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
-
- progress $bases $bases CONFBASE "Configuring base system"
- info BASESUCCESS "Base system installed successfully."
-}
+++ /dev/null
-case $ARCH in
- amd64|i386)
- ;;
- *)
- # ftp.debian.org only has amd64 and i386
- default_mirror http://ftp.us.debian.org/debian
- ;;
-esac
-mirror_style release
-download_style apt
-finddebs_style from-indices
-variants - buildd fakechroot
-
-if doing_variant fakechroot; then
- test "$FAKECHROOT" = "true" || error 1 FAKECHROOTREQ "This variant requires fakechroot environment to be started"
-fi
-
-work_out_debs () {
- LIBC6=libc6
- if [ "$ARCH" = "alpha" -o "$ARCH" = "ia64" ]; then LIBC6="libc6.1"; fi
-
- required="$(get_debs Priority: required)"
-
- if doing_variant - || doing_variant fakechroot; then
- #required="$required $(get_debs Priority: important)"
- # ^^ should be getting debconf here somehow maybe
- base="$(get_debs Priority: important)"
- elif doing_variant buildd; then
- base="$(get_debs Build-Essential: yes)"
- fi
-
- if doing_variant fakechroot; then
- # ldd.fake needs binutils
- required="$required binutils"
- fi
-}
-
-first_stage_install () {
- extract $required
-
- mkdir -p "$TARGET/var/lib/dpkg"
- : >"$TARGET/var/lib/dpkg/status"
- echo >"$TARGET/var/lib/dpkg/available"
-
- setup_etc
- if [ ! -e "$TARGET/etc/fstab" ]; then
- echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
- chown 0.0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
- fi
-
- if [ -x $TARGET/usr/bin/md5sum.textutils -a \! -e $TARGET/usr/bin/md5sum ]; then
- cp $TARGET/usr/bin/md5sum.textutils $TARGET/usr/bin/md5sum
- fi
-
- if doing_variant fakechroot; then
- setup_devices_fakechroot
- else
- setup_devices
- fi
-
- x_feign_install () {
- local pkg="$1"
- local deb="$(debfor $pkg)"
- local ver="$(
- ar -p "$TARGET/$deb" control.tar.gz | zcat |
- tar -O -xf - control ./control 2>/dev/null |
- sed -ne 's/^Version: *//Ip' | head -n 1
- )"
-
- mkdir -p "$TARGET/var/lib/dpkg/info"
-
- echo \
-"Package: $pkg
-Version: $ver
-Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
-
- touch "$TARGET/var/lib/dpkg/info/${pkg}.list"
- }
-
- x_feign_install dpkg
-}
-
-second_stage_install () {
- x_core_install () {
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
- }
-
- p () {
- baseprog="$(($baseprog + ${1:-1}))"
- }
-
- if doing_variant fakechroot; then
- setup_proc_fakechroot
- else
- setup_proc
- in_target /sbin/ldconfig
- fi
-
- DEBIAN_FRONTEND=noninteractive
- DEBCONF_NONINTERACTIVE_SEEN=true
- export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
-
- baseprog=0
- bases=7
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #1
- info INSTCORE "Installing core packages..."
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #2
- ln -sf mawk $TARGET/usr/bin/awk
- x_core_install base-files base-passwd
- p; progress $baseprog $bases INSTCORE "Installing core packages" #3
- x_core_install dpkg
-
- if [ ! -e "$TARGET/etc/localtime" ]; then
- ln -sf /usr/share/zoneinfo/UTC "$TARGET/etc/localtime"
- fi
-
- if doing_variant fakechroot; then
- install_fakechroot_tools
- fi
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #4
- x_core_install $LIBC6
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #5
- x_core_install perl-base
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #6
- rm $TARGET/usr/bin/awk
- x_core_install mawk
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #7
- if doing_variant -; then
- x_core_install debconf
- fi
-
- baseprog=0
- bases=$(set -- $required; echo $#)
-
- info UNPACKREQ "Unpacking required packages..."
-
- exec 7>&1
-
- smallyes '' |
- (repeat 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages. This will be attempted up to five times." "" \
- dpkg --status-fd 8 --force-depends --unpack $(debfor $required) 8>&1 1>&7 || echo EXITCODE $?) |
- dpkg_progress $baseprog $bases UNPACKREQ "Unpacking required packages" UNPACKING
-
- info CONFREQ "Configuring required packages..."
-
- mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
- echo \
-"#!/bin/sh
-echo
-echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
- chmod 755 "$TARGET/sbin/start-stop-daemon"
-
- setup_dselect_method apt
-
- smallyes '' |
- (in_target_failmsg CONF_REQ_FAIL "Failure while configuring required packages." "" \
- dpkg --status-fd 8 --configure --pending --force-configure-any --force-depends 8>&1 1>&7 || echo EXITCODE $?) |
- dpkg_progress $baseprog $bases CONFREQ "Configuring required packages" CONFIGURING
-
- baseprog=0
- bases="$(set -- $base; echo $#)"
-
- info UNPACKBASE "Unpacking the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages. This will be re-attempted up to five times." "" \
- dpkg --status-fd 8 --force-overwrite --force-confold --skip-same-version --unpack $(debfor $base) 8>&1 1>&7 || echo EXITCODE $?) |
- dpkg_progress $baseprog $bases UNPACKBASE "Unpacking base system" UNPACKING
-
- info CONFBASE "Configuring the base system..."
-
- smallyes '' |
- (repeat 5 \
- in_target_failmsg CONF_BASE_FAIL "Failure while configuring base packages." "" \
- dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 || echo EXITCODE $?) |
- dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING
-
- mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
-
- progress $bases $bases CONFBASE "Configuring base system"
- info BASESUCCESS "Base system installed successfully."
-}
+++ /dev/null
-#!/bin/bash
-
-# Copyright (C) 2006 Benedikt Boehm <hollow@gentoo.org>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-## Called as: initpost <cfgdir> <path of util-vserver-vars>
-
-# setup environment
-cfgdir="$1"
-vdir="$cfgdir"/vdir
-. "$2"
-
-
-# vserver name
-NAME="$cfgdir"
-
-
-# go to vdir for chroot-sh
-pushd "$vdir" &>/dev/null
-
-
-# helper for sed in chroot
-chrootsed() {
- local file="$1"
- shift
-
- sedtmp=$($_MKTEMP chrootsed.XXXXXX)
-
- $_CHROOT_SH cat "$file" | $_SED "$@" > $sedtmp
- $_CHROOT_SH truncate "$file" < $sedtmp
-
- $_RM -f $sedtmp
-}
-
-
-# create a locale.gen if needed.
-if test -n "$LANG" && test "$LANG" != "C"; then
- echo $LANG $(locale charmap) | $_CHROOT_SH append /etc/locale.gen
-fi
-
-
-# make apt and friends work
-$_CHROOT_SH truncate /etc/apt/sources.list <<EOF
-deb $MIRROR/ $DISTRIBUTION main
-deb-src $MIRROR/ $DISTRIBUTION main
-
-deb http://security.debian.org $DISTRIBUTION/updates main
-EOF
-
-
-# setting hostname
-if test -r "$cfgdir"/uts/nodename; then
- $_CHROOT_SH truncate /etc/hostname < "$cfgdir"/uts/nodename
-fi
-
-
-# setting default /etc/hosts
-$_CHROOT_SH truncate /etc/hosts <<EOF
-# /etc/hosts
-
-127.0.0.1 localhost
-
-# The following lines are desirable for IPv6 capable hosts
-# (added automatically by netbase upgrade)
-
-::1 ip6-localhost ip6-loopback
-fe00::0 ip6-localnet
-ff00::0 ip6-mcastprefix
-ff02::1 ip6-allnodes
-ff02::2 ip6-allrouters
-ff02::3 ip6-allhosts
-EOF
-
-
-# copy proxy server statement from host if any
-if test -f /etc/apt/apt.conf; then
- $_CHROOT_SH truncate /etc/apt/apt.conf < /etc/apt/apt.conf
-fi
-
-
-# fix gettys in inittab
-if $_CHROOT_SH testfile /etc/inittab; then
- chrootsed /etc/inittab \
- -e 's/\(^[^#].*getty.*$\)/#\1/'
-fi
-
-
-# fix /proc/cmdline in sendsigs
-if $_CHROOT_SH testfile /etc/init.d/sendsigs; then
- chrootsed /etc/init.d/sendsigs \
- -e 's/^\(\s\+splash_back\)$/#\1/'
-fi
-
-echo
-echo ">>> Executing post install script ... "
-echo
-
-# start vserver before we can exec anything inside it
-$_VSERVER "$NAME" stop &>/dev/null || :
-$_VSERVER "$NAME" start --rescue --rescue-init bash -c '
- exec > /dev/null
- exec 2> /dev/null
-
- set -x
- f=/tmp/startwait
- trap "rm -f $f" EXIT
- mkfifo $f
- ( sleep 15; kill -s 9 -- -1 ) &
- cat "$f"
- kill -s 9 -- -1
- wait
-'
-
-# run the configure commands from within the server
-export LANG=C LC_ALL=C
-
-$_CHROOT_SH testfile /usr/sbin/locale-gen && \
- $_VSERVER "$NAME" exec /usr/sbin/locale-gen
-
-for i in bootlogd checkfs checkroot halt hwclock.sh ifupdown klogd \
- libdevmapper1.02 makedev module-init-tools mountall.sh \
- mountdevsubfs.sh mountnfs.sh mountkernfs.sh mountvirtfs \
- networking reboot setserial single stop-bootlogd \
- stop-bootlogd-single umountfs umountnfs.sh umountroot \
- urandom; do
- $_VSERVER "$NAME" exec update-rc.d -f "$i" remove
-done
-
-# stop the vserver
-$_VSERVER "$NAME" exec bash -c ': >/tmp/startwait' &>/dev/null || :
-$_VSERVER "$NAME" stop &>/dev/null || :
-
-popd &>/dev/null
+++ /dev/null
-RPM {
- Ignore { "gpg-pubkey"; };
-}
+++ /dev/null
-// Do not remove 'autogenerated' tags and keep them on an own line
-// which can be commented out
-
-Dir {
- Etc "@APTETCDIR@"; // @autogenerated@: APTETCDIR
-}
+++ /dev/null
-null c 1 3 666
-zero c 1 5 666
-full c 1 7 666
-random c 1 8 644
-urandom c 1 9 644
-tty c 5 0 666
-ptmx c 5 2 666
+++ /dev/null
-# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
-# you have to use at least one language beside 'C'
-%_install_langs C:de:en:es:fr
-%_netsharedpath /dev:/etc/rc.d/init.d/halt:/sbin/new-kernel-pkg:/usr/bin/rhgb-client
+++ /dev/null
-case $ARCH in
- amd64|i386|powerpc|sparc)
- default_mirror http://archive.ubuntu.com/ubuntu
- ;;
- *)
- default_mirror http://ports.ubuntu.com/ubuntu-ports
- ;;
-esac
-mirror_style release
-download_style apt
-finddebs_style from-indices
-variants - buildd
-
-work_out_debs () {
- LIBC6=libc6
- if [ "$ARCH" = "alpha" -o "$ARCH" = "ia64" ]; then LIBC6="libc6.1"; fi
-
- required="$(get_debs Priority: required)"
-
- if doing_variant -; then
- #required="$required $(get_debs Priority: important)"
- # ^^ should be getting debconf here somehow maybe
- base="$(get_debs Priority: important)"
- elif doing_variant buildd; then
- # TODO: add Build-Essential: yes extraoverrides
- #base="$(get_debs Build-Essential: yes)"
-
- add () { if [ "$ARCH" = "$1" ]; then eval "$2=\"\$$2 $3\""; fi; }
-
- base="apt binutils cpio cpp cpp-4.1 dpkg-dev g++ g++-4.1 gcc gcc-4.1 ${LIBC6}-dev libdb4.4 libgdbm3 libstdc++6 libstdc++6-4.1-dev linux-libc-dev make patch perl perl-modules"
-
- add ia64 base "libunwind7-dev"
- add sparc base "lib64gcc1"
- add sparc base "libc6-dev-sparc64"
- add sparc base "libc6-sparc64"
- fi
-}
-
-first_stage_install () {
- extract $required
-
- mkdir -p "$TARGET/var/lib/dpkg"
- : >"$TARGET/var/lib/dpkg/status"
- : >"$TARGET/var/lib/dpkg/available"
-
- setup_etc
- if [ ! -e "$TARGET/etc/fstab" ]; then
- echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
- chown 0.0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
- fi
-
- setup_devices
-
- x_feign_install () {
- local pkg="$1"
- local deb="$(debfor $pkg)"
- local ver="$(
- ar -p "$TARGET/$deb" control.tar.gz | zcat |
- tar -O -xf - control ./control 2>/dev/null |
- sed -ne 's/^Version: *//Ip' | head -n 1
- )"
-
- mkdir -p "$TARGET/var/lib/dpkg/info"
-
- echo \
-"Package: $pkg
-Version: $ver
-Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
-
- touch "$TARGET/var/lib/dpkg/info/${pkg}.list"
- }
-
- x_feign_install dpkg
-}
-
-second_stage_install () {
- x_core_install () {
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
- }
-
- p () {
- baseprog="$(($baseprog + ${1:-1}))"
- }
-
- setup_proc
- in_target /sbin/ldconfig
-
- DEBIAN_FRONTEND=noninteractive
- DEBCONF_NONINTERACTIVE_SEEN=true
- export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
-
- baseprog=0
- bases=7
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #1
- info INSTCORE "Installing core packages..."
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #2
- ln -sf mawk $TARGET/usr/bin/awk
- x_core_install base-files base-passwd
- p; progress $baseprog $bases INSTCORE "Installing core packages" #3
- x_core_install dpkg
-
- if [ ! -e "$TARGET/etc/localtime" ]; then
- ln -sf /usr/share/zoneinfo/UTC "$TARGET/etc/localtime"
- fi
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #4
- x_core_install $LIBC6
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #5
- x_core_install perl-base
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #6
- rm $TARGET/usr/bin/awk
- x_core_install mawk
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #7
- if doing_variant -; then
- x_core_install debconf
- fi
-
- baseprog=0
- bases=$(set -- $required; echo $#)
-
- info UNPACKREQ "Unpacking required packages..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages. This will be attempted up to five times." "" \
- dpkg --status-fd 8 --force-depends --unpack $(debfor $required) 8>&1 1>&7 |
- dpkg_progress $baseprog $bases UNPACKREQ "Unpacking required packages" UNPACKING) 7>&1
-
- info CONFREQ "Configuring required packages..."
-
- mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
- echo \
-"#!/bin/sh
-echo
-echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
- chmod 755 "$TARGET/sbin/start-stop-daemon"
-
- setup_dselect_method apt
-
- smallyes '' |
- (in_target_failmsg CONF_REQ_FAIL "Failure while configuring required packages." "" \
- dpkg --status-fd 8 --configure --pending --force-configure-any --force-depends 8>&1 1>&7 |
- dpkg_progress $baseprog $bases CONFREQ "Configuring required packages" CONFIGURING) 7>&1
-
- baseprog=0
- bases="$(set -- $base; echo $#)"
-
- info UNPACKBASE "Unpacking the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages. This will be re-attempted up to five times." "" \
- dpkg --status-fd 8 --force-overwrite --force-confold --skip-same-version --unpack $(debfor $base) 8>&1 1>&7 |
- dpkg_progress $baseprog $bases UNPACKBASE "Unpacking base system" UNPACKING) 7>&1
-
- info CONFBASE "Configuring the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be attempted 5 times." "" \
- dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 |
- dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING) 7>&1
-
- mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
-
- progress $bases $bases CONFBASE "Configuring base system"
- info BASESUCCESS "Base system installed successfully."
-}
+++ /dev/null
-Essential:
- basesystem
- coreutils
- filesystem
- glibc
- setup
- fedora-release
+++ /dev/null
-# rpm http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/fedora/core/.apt 3/i386 os patches updates
-
-# rpm ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
-# rpm ftp://ftp.tu-chemnitz.de/pub/linux/fedora/fedora 3/i386 os updates
-# rpm http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
-# rpm http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/fedora 3/i386 os updates
-# rpm http://download.fedora.us/fedora/fedora 3/i386 os updates
+++ /dev/null
---reinstall
-
-filesystem
+++ /dev/null
-coreutils
-initscripts
+++ /dev/null
-basesystem-*.rpm
-filesystem-*.rpm
-glibc-common-*.rpm
-glibc-[0-9]*.rpm
-libgcc-[0-9]*.rpm
-setup-*.rpm
-tzdata-*.rpm
+++ /dev/null
-# These packages are untested and still under development. This
-# repository is used for updates to test releases, and for
-# development of new releases.
-#
-# This repository can see significant daily turnover and major
-# functionality changes which cause unexpected problems with other
-# development packages. Please use these packages if you want to work
-# with the Fedora developers by testing these new development packages.
-#
-# fedora-test-list@redhat.com is available as a discussion forum for
-# testing and troubleshooting for development packages in conjunction
-# with new test releases.
-#
-# More information is available at http://fedoraproject.org/wiki/Testing
-#
-# Reproducible and reportable issues should be filed at
-# http://bugzilla.redhat.com/.
-#
-# Product: Fedora
-# Version: devel
-
-[development]
-name=Fedora - Development
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/$basearch/os/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
-enabled=0
-gpgcheck=0
-
-[development-debuginfo]
-name=Fedora - Development - Debug
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/$basearch/debug/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-debug&arch=$basearch
-enabled=0
-gpgcheck=0
-
-[development-source]
-name=Fedora - Development - Source
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-source&arch=$basearch
-enabled=0
-gpgcheck=0
-
+++ /dev/null
-[updates-testing]
-name=Fedora 7 - $basearch - Test Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/7/$basearch/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f7&arch=$basearch
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/releases/7/Everything/$basearch/os/RPM-GPG-KEY-fedora-test
-
-[updates-testing-debuginfo]
-name=Fedora 7 - $basearch - Test Updates Debug
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/7/$basearch/debug/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-debug-f7&arch=$basearch
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/releases/7/Everything/$basearch/os/RPM-GPG-KEY-fedora-test
-
-[updates-testing-source]
-name=Fedora 7 - Test Updates Source
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/7/SRPMS/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-source-f7&arch=$basearch
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/releases/7/Everything/$basearch/os/RPM-GPG-KEY-fedora-test
+++ /dev/null
-[updates]
-name=Fedora 7 - $basearch - Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/7/$basearch/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f7&arch=$basearch
-enabled=1
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/releases/7/Everything/$basearch/os/RPM-GPG-KEY-fedora
-
-[updates-debuginfo]
-name=Fedora 7 - $basearch - Updates - Debug
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/7/$basearch/debug/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f7&arch=$basearch
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/releases/7/Everything/$basearch/os/RPM-GPG-KEY-fedora
-
-[updates-source]
-name=Fedora 7 - Updates Source
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/7/SRPMS/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f7&arch=$basearch
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/releases/7/Everything/$basearch/os/RPM-GPG-KEY-fedora
+++ /dev/null
-[fedora]
-name=Fedora 7 - $basearch
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Everything/$basearch/os/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-7&arch=$basearch
-enabled=1
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/releases/7/Everything/$basearch/os/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
-
-[fedora-debuginfo]
-name=Fedora 7 - $basearch - Debug
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Everything/$basearch/debug/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-7&arch=$basearch
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/releases/7/Everything/$basearch/os/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
-
-[fedora-source]
-name=Fedora 7 - Source
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Everything/source/SRPMS/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-7&arch=$basearch
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/releases/7/Everything/$basearch/os/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
+++ /dev/null
-[main]
-cachedir=@YUMCACHEDIR@
-reposdir=@YUMETCDIR@/yum.repos.d
-debuglevel=1
-logfile=@YUMLOGDIR@/log
-lockfile=@YUMLOCKDIR@/yum.pid
-pkgpolicy=newest
-distroverpkg=fedora-release
-installonlypkgs=
-exactarch=0
+++ /dev/null
-Essential:
- basesystem
- coreutils
- filesystem
- glibc
- setup
- fedora-release
+++ /dev/null
-# rpm http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/fedora/core/.apt 1/i386 os patches updates
-# rpm-src http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/fedora/core/.apt 1/i386 os patches updates
-
-# rpm ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/fedora 1/i386 os updates
-# rpm ftp://ftp.tu-chemnitz.de/pub/linux/fedora/fedora 1/i386 os updates
-# rpm http://mirrors.usc.edu/pub/linux/fedora/fedora 1/i386 os updates
-# rpm http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/fedora 1/i386 os updates
-# rpm http://download.fedora.us/fedora/fedora 1/i386 os updates
+++ /dev/null
---reinstall
-
-filesystem
+++ /dev/null
-Essential:
- basesystem
- coreutils
- filesystem
- glibc
- setup
- fedora-release
+++ /dev/null
-# rpm http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/fedora/core/.apt 2/i386 os patches updates
-# rpm-src http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/fedora/core/.apt 2/i386 os patches updates
-
-# rpm ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/fedora 2/i386 os updates
-# rpm ftp://ftp.tu-chemnitz.de/pub/linux/fedora/fedora 2/i386 os updates
-# rpm http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora 2/i386 os updates
-# rpm http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/fedora 2/i386 os updates
-# rpm http://download.fedora.us/fedora/fedora 2/i386 os updates
+++ /dev/null
---reinstall
-
-filesystem
+++ /dev/null
-Essential:
- basesystem
- coreutils
- filesystem
- glibc
- setup
- fedora-release
+++ /dev/null
-# rpm http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/fedora/core/.apt 3/i386 os patches updates
-
-# rpm ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
-# rpm ftp://ftp.tu-chemnitz.de/pub/linux/fedora/fedora 3/i386 os updates
-# rpm http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
-# rpm http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/fedora 3/i386 os updates
-# rpm http://download.fedora.us/fedora/fedora 3/i386 os updates
+++ /dev/null
---reinstall
-
-filesystem
+++ /dev/null
-coreutils
-setup
+++ /dev/null
-basesystem-*.rpm
-filesystem-*.rpm
-glibc-common-*.rpm
-glibc-[0-9]*.rpm
-libgcc-[0-9]*.rpm
-setup-*.rpm
-tzdata-*.rpm
+++ /dev/null
-[development]
-name=Fedora Core 3 - Development Tree
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-rawhide
-enabled=0
+++ /dev/null
-[updates-testing]
-name=Fedora Core 3 - $basearch - Test Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/3/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/updates-testing-fc3
-enabled=0
-gpgcheck=1
+++ /dev/null
-[updates-released]
-name=Fedora Core 3 - $basearch - Released Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc3
-enabled=1
-gpgcheck=1
+++ /dev/null
-[base]
-name=Fedora Core 3 - $basearch - Base
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/3/$basearch/os/
-mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-3
-enabled=1
-gpgcheck=1
+++ /dev/null
-[main]
-cachedir=@YUMCACHEDIR@
-reposdir=@YUMETCDIR@/yum.repos.d
-debuglevel=1
-logfile=@YUMLOGDIR@/log
-lockfile=@YUMLOCKDIR@/yum.pid
-pkgpolicy=newest
-distroverpkg=fedora-release
-installonlypkgs=
-exactarch=0
+++ /dev/null
-Essential:
- basesystem
- coreutils
- filesystem
- glibc
- setup
- fedora-release
+++ /dev/null
-# rpm http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/fedora/core/.apt 3/i386 os patches updates
-
-# rpm ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
-# rpm ftp://ftp.tu-chemnitz.de/pub/linux/fedora/fedora 3/i386 os updates
-# rpm http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
-# rpm http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/fedora 3/i386 os updates
-# rpm http://download.fedora.us/fedora/fedora 3/i386 os updates
+++ /dev/null
---reinstall
-
-filesystem
+++ /dev/null
-coreutils
-setup
+++ /dev/null
-basesystem-*.rpm
-filesystem-*.rpm
-glibc-common-*.rpm
-glibc-[0-9]*.rpm
-libgcc-[0-9]*.rpm
-setup-*.rpm
-tzdata-*.rpm
+++ /dev/null
-[development]
-name=Fedora Core 4 - Development Tree
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-rawhide
-enabled=0
+++ /dev/null
-[updates-testing]
-name=Fedora Core 4 - $basearch - Test Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/4/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/updates-testing-fc4
-enabled=0
-gpgcheck=1
+++ /dev/null
-[updates-released]
-name=Fedora Core 4 - $basearch - Released Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc4
-enabled=1
-gpgcheck=1
+++ /dev/null
-[base]
-name=Fedora Core 4 - $basearch - Base
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/4/$basearch/os/
-mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-4
-enabled=1
-gpgcheck=1
+++ /dev/null
-[main]
-cachedir=@YUMCACHEDIR@
-reposdir=@YUMETCDIR@/yum.repos.d
-debuglevel=1
-logfile=@YUMLOGDIR@/log
-lockfile=@YUMLOCKDIR@/yum.pid
-pkgpolicy=newest
-distroverpkg=fedora-release
-installonlypkgs=
-exactarch=0
+++ /dev/null
-Essential:
- basesystem
- coreutils
- filesystem
- glibc
- setup
- fedora-release
+++ /dev/null
-# rpm http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/fedora/core/.apt 3/i386 os patches updates
-
-# rpm ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
-# rpm ftp://ftp.tu-chemnitz.de/pub/linux/fedora/fedora 3/i386 os updates
-# rpm http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
-# rpm http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/fedora 3/i386 os updates
-# rpm http://download.fedora.us/fedora/fedora 3/i386 os updates
+++ /dev/null
---reinstall
-
-filesystem
+++ /dev/null
-coreutils
-initscripts
+++ /dev/null
-basesystem-*.rpm
-filesystem-*.rpm
-glibc-common-*.rpm
-glibc-[0-9]*.rpm
-libgcc-[0-9]*.rpm
-setup-*.rpm
-tzdata-*.rpm
+++ /dev/null
-[core]
-name=Fedora Core 5 - $basearch
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/5/$basearch/os/
-mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-5
-enabled=1
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY
-
-[core-debuginfo]
-name=Fedora Core 5 - $basearch - Debug
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/5/$basearch/debug/
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY
-
-[core-source]
-name=Fedora Core 5 - Source
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/5/source/SRPMS/
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY
+++ /dev/null
-# These packages are untested and still under development. This
-# repository is used for updates to test releases, and for
-# development of new releases.
-#
-# This repository can see significant daily turnover and major
-# functionality changes which cause unexpected problems with other
-# development packages. Please use these packages if you want to work
-# with the Fedora developers by testing these new development packages.
-#
-# fedora-test-list@redhat.com is available as a discussion forum for
-# testing and troubleshooting for development packages in conjunction
-# with new test releases.
-#
-# fedora-devel-list@redhat.com is available as a discussion forum for
-# testing and troubleshooting for development packages in conjunction
-# with developing new releases.
-#
-# More information is available at http://fedoraproject.org/wiki/Testing
-#
-# Reproducible and reportable issues should be filed at
-# http://bugzilla.redhat.com/.
-#
-# Product: Fedora Core
-# Version: devel
-
-[development]
-name=Fedora Core - Development
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-rawhide
-enabled=0
-gpgcheck=0
-
-[development-debuginfo]
-name=Fedora Core - Development - Debug
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/debug/
-enabled=0
-gpgcheck=0
-
-[development-source]
-name=Fedora Core - Development - Source
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/
-enabled=0
-gpgcheck=0
-
+++ /dev/null
-[extras-development]
-name=Fedora Extras - Development Tree
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-devel
-enabled=0
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
-
-[extras-development-debuginfo]
-name=Fedora Extras - Development - Debug
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$basearch/debug/
-enabled=0
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
-
-[extras-development-source]
-name=Fedora Extras - Development - Source
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/SRPMS/
-enabled=0
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
+++ /dev/null
-[extras]
-name=Fedora Extras 5 - $basearch
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/5/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-5
-enabled=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
-
-[extras-debuginfo]
-name=Fedora Extras 5 - $basearch - Debug
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/5/$basearch/debug/
-enabled=0
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
-
-[extras-source]
-name=Fedora Extras 5 - Source
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/5/SRPMS/
-enabled=0
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
+++ /dev/null
-[legacy-updates]
-name=Fedora Legacy 5 - $basearch - Updates
-mirrorlist=http://fedora.redhat.com/download/mirrors/legacy-updates-released-fc5
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-legacy
-
-[legacy-testing]
-name=Fedora Legacy 5 - $basearch - Updates Testing
-mirrorlist=http://fedora.redhat.com/download/mirrors/legacy-updates-testing-fc5
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-legacy
+++ /dev/null
-[updates-testing]
-name=Fedora Core 5 - $basearch - Test Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/5/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/updates-testing-fc5
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-test
-
-[updates-testing-debuginfo]
-name=Fedora Core 5 - $basearch - Test Updates Debug
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/5/$basearch/debug/
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-test
-
-[updates-testing-source]
-name=Fedora Core 5 - Test Updates Source
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/5/SRPMS/
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora-test
+++ /dev/null
-[updates]
-name=Fedora Core 5 - $basearch - Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/$basearch/
-mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc5
-enabled=1
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora
-
-[updates-debuginfo]
-name=Fedora Core 5 - $basearch - Updates - Debug
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/$basearch/debug/
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora
-
-[updates-source]
-name=Fedora Core 5 - Updates Source
-baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/SRPMS/
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/5/$basearch/os/RPM-GPG-KEY-fedora
+++ /dev/null
-[main]
-cachedir=@YUMCACHEDIR@
-reposdir=@YUMETCDIR@/yum.repos.d
-debuglevel=1
-logfile=@YUMLOGDIR@/log
-lockfile=@YUMLOCKDIR@/yum.pid
-pkgpolicy=newest
-distroverpkg=fedora-release
-installonlypkgs=
-exactarch=0
+++ /dev/null
-Essential:
- basesystem
- coreutils
- filesystem
- glibc
- setup
- fedora-release
+++ /dev/null
-# rpm http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/fedora/core/.apt 3/i386 os patches updates
-
-# rpm ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
-# rpm ftp://ftp.tu-chemnitz.de/pub/linux/fedora/fedora 3/i386 os updates
-# rpm http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
-# rpm http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/fedora 3/i386 os updates
-# rpm http://download.fedora.us/fedora/fedora 3/i386 os updates
+++ /dev/null
---reinstall
-
-filesystem
+++ /dev/null
-coreutils
-initscripts
+++ /dev/null
-basesystem-*.rpm
-filesystem-*.rpm
-glibc-common-*.rpm
-glibc-[0-9]*.rpm
-libgcc-[0-9]*.rpm
-setup-*.rpm
-tzdata-*.rpm
+++ /dev/null
-[core]
-name=Fedora Core 6 - $basearch
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/6/$basearch/os/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-6&arch=$basearch
-enabled=1
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY
-
-[core-debuginfo]
-name=Fedora Core 6 - $basearch - Debug
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/6/$basearch/debug/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-debug-6&arch=$basearch
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY
-
-[core-source]
-name=Fedora Core 6 - Source
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/6/source/SRPMS/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-source-6&arch=$basearch
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY
+++ /dev/null
-# These packages are untested and still under development. This
-# repository is used for updates to test releases, and for
-# development of new releases.
-#
-# This repository can see significant daily turnover and major
-# functionality changes which cause unexpected problems with other
-# development packages. Please use these packages if you want to work
-# with the Fedora developers by testing these new development packages.
-#
-# fedora-test-list@redhat.com is available as a discussion forum for
-# testing and troubleshooting for development packages in conjunction
-# with new test releases.
-#
-# fedora-devel-list@redhat.com is available as a discussion forum for
-# testing and troubleshooting for development packages in conjunction
-# with developing new releases.
-#
-# More information is available at http://fedoraproject.org/wiki/Testing
-#
-# Reproducible and reportable issues should be filed at
-# http://bugzilla.redhat.com/.
-#
-# Product: Fedora Core
-# Version: devel
-
-[development]
-name=Fedora Core - Development
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/os/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
-enabled=0
-gpgcheck=0
-
-[development-debuginfo]
-name=Fedora Core - Development - Debug
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/debug/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-debug&arch=$basearch
-enabled=0
-gpgcheck=0
-
-[development-source]
-name=Fedora Core - Development - Source
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-source&arch=$basearch
-enabled=0
-gpgcheck=0
-
+++ /dev/null
-# These packages are untested and still under development. This
-# repository is used for updates to test releases, and for
-# development of new releases.
-#
-# This repository can see significant daily turnover and major
-# functionality changes which cause unexpected problems with other
-# development packages. Please use these packages if you want to work
-# with the Fedora developers by testing these new development packages.
-#
-# More information is available at http://fedoraproject.org/wiki/Testing
-
-[extras-development]
-name=Fedora Extras - Development Tree
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$basearch/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-devel&arch=$basearch
-enabled=0
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
-
-[extras-development-debuginfo]
-name=Fedora Extras - Development - Debug
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$basearch/debug/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-devel-debug&arch=$basearch
-enabled=0
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
-
-[extras-development-source]
-name=Fedora Extras - Development - Source
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/SRPMS/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-devel-source&arch=$basearch
-enabled=0
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
+++ /dev/null
-[extras]
-name=Fedora Extras 6 - $basearch
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/6/$basearch/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-6&arch=$basearch
-enabled=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
-
-[extras-debuginfo]
-name=Fedora Extras 6 - $basearch - Debug
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/6/$basearch/debug/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-debug-6&arch=$basearch
-enabled=0
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
-
-[extras-source]
-name=Fedora Extras 6 - Source
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/6/SRPMS/
-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-source-6&arch=$basearch
-enabled=0
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-extras
-gpgcheck=1
+++ /dev/null
-[legacy-updates]
-name=Fedora Legacy 6 - $basearch - Updates
-mirrorlist=http://fedora.redhat.com/Download/mirrors/legacy-updates-released-fc6
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-legacy
-
-[legacy-testing]
-name=Fedora Legacy 6 - $basearch - Updates Testing
-mirrorlist=http://fedora.redhat.com/Download/mirrors/legacy-updates-testing-fc6
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-legacy
+++ /dev/null
-[updates-testing]
-name=Fedora Core 6 - $basearch - Test Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/6/$basearch/
-mirrorlist=http://fedora.redhat.com/Download/mirrors/updates-testing-fc6
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-test
-
-[updates-testing-debuginfo]
-name=Fedora Core 6 - $basearch - Test Updates Debug
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/6/$basearch/debug/
-mirrorlist=http://fedora.redhat.com/Download/mirrors/updates-testing-debug-fc6
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-test
-
-[updates-testing-source]
-name=Fedora Core 6 - Test Updates Source
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/6/SRPMS/
-mirrorlist=http://fedora.redhat.com/Download/mirrors/updates-testing-source-fc6
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora-test
+++ /dev/null
-[updates]
-name=Fedora Core 6 - $basearch - Updates
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/6/$basearch/
-mirrorlist=http://fedora.redhat.com/Download/mirrors/updates-released-fc6
-enabled=1
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora
-
-[updates-debuginfo]
-name=Fedora Core 6 - $basearch - Updates - Debug
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/6/$basearch/debug/
-mirrorlist=http://fedora.redhat.com/Download/mirrors/updates-released-debug-fc6
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora
-
-[updates-source]
-name=Fedora Core 6 - Updates Source
-#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/6/SRPMS/
-mirrorlist=http://fedora.redhat.com/Download/mirrors/updates-released-source-fc6
-enabled=0
-gpgcheck=1
-gpgkey=http://redhat.download.fedoraproject.org/pub/fedora/linux/core/6/$basearch/os/RPM-GPG-KEY-fedora
+++ /dev/null
-[main]
-cachedir=@YUMCACHEDIR@
-reposdir=@YUMETCDIR@/yum.repos.d
-debuglevel=1
-logfile=@YUMLOGDIR@/log
-lockfile=@YUMLOCKDIR@/yum.pid
-pkgpolicy=newest
-distroverpkg=fedora-release
-installonlypkgs=
-exactarch=0
+++ /dev/null
-case $ARCH in
- amd64|i386|powerpc|sparc)
- default_mirror http://archive.ubuntu.com/ubuntu
- ;;
- *)
- default_mirror http://ports.ubuntu.com/ubuntu-ports
- ;;
-esac
-mirror_style release
-download_style apt
-finddebs_style from-indices
-variants - buildd
-
-work_out_debs () {
- LIBC6=libc6
- if [ "$ARCH" = "alpha" -o "$ARCH" = "ia64" ]; then LIBC6="libc6.1"; fi
-
- required="$(get_debs Priority: required)"
-
- if doing_variant -; then
- #required="$required $(get_debs Priority: important)"
- # ^^ should be getting debconf here somehow maybe
- base="$(get_debs Priority: important)"
- elif doing_variant buildd; then
- # TODO: add Build-Essential: yes extraoverrides
- #base="$(get_debs Build-Essential: yes)"
-
- add () { if [ "$ARCH" = "$1" ]; then eval "$2=\"\$$2 $3\""; fi; }
-
- base="apt binutils cpio cpp cpp-4.1 dpkg-dev g++ g++-4.1 gcc gcc-4.1 ${LIBC6}-dev libdb4.4 libgdbm3 libstdc++6 libstdc++6-4.1-dev linux-libc-dev make patch perl perl-modules"
-
- add ia64 base "libunwind7-dev"
- add sparc base "lib64gcc1"
- add sparc base "libc6-dev-sparc64"
- add sparc base "libc6-sparc64"
- fi
-}
-
-first_stage_install () {
- extract $required
-
- mkdir -p "$TARGET/var/lib/dpkg"
- : >"$TARGET/var/lib/dpkg/status"
- : >"$TARGET/var/lib/dpkg/available"
-
- setup_etc
- if [ ! -e "$TARGET/etc/fstab" ]; then
- echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
- chown 0.0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
- fi
-
- setup_devices
-
- x_feign_install () {
- local pkg="$1"
- local deb="$(debfor $pkg)"
- local ver="$(
- ar -p "$TARGET/$deb" control.tar.gz | zcat |
- tar -O -xf - control ./control 2>/dev/null |
- sed -ne 's/^Version: *//Ip' | head -n 1
- )"
-
- mkdir -p "$TARGET/var/lib/dpkg/info"
-
- echo \
-"Package: $pkg
-Version: $ver
-Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
-
- touch "$TARGET/var/lib/dpkg/info/${pkg}.list"
- }
-
- x_feign_install dpkg
-}
-
-second_stage_install () {
- x_core_install () {
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
- }
-
- p () {
- baseprog="$(($baseprog + ${1:-1}))"
- }
-
- setup_proc
- in_target /sbin/ldconfig
-
- DEBIAN_FRONTEND=noninteractive
- DEBCONF_NONINTERACTIVE_SEEN=true
- export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
-
- baseprog=0
- bases=7
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #1
- info INSTCORE "Installing core packages..."
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #2
- ln -sf mawk $TARGET/usr/bin/awk
- x_core_install base-files base-passwd
- p; progress $baseprog $bases INSTCORE "Installing core packages" #3
- x_core_install dpkg
-
- if [ ! -e "$TARGET/etc/localtime" ]; then
- ln -sf /usr/share/zoneinfo/UTC "$TARGET/etc/localtime"
- fi
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #4
- x_core_install $LIBC6
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #5
- x_core_install perl-base
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #6
- rm $TARGET/usr/bin/awk
- x_core_install mawk
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #7
- if doing_variant -; then
- x_core_install debconf
- fi
-
- baseprog=0
- bases=$(set -- $required; echo $#)
-
- info UNPACKREQ "Unpacking required packages..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages. This will be attempted up to five times." "" \
- dpkg --status-fd 8 --force-depends --unpack $(debfor $required) 8>&1 1>&7 |
- dpkg_progress $baseprog $bases UNPACKREQ "Unpacking required packages" UNPACKING) 7>&1
-
- info CONFREQ "Configuring required packages..."
-
- mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
- echo \
-"#!/bin/sh
-echo
-echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
- chmod 755 "$TARGET/sbin/start-stop-daemon"
-
- setup_dselect_method apt
-
- smallyes '' |
- (in_target_failmsg CONF_REQ_FAIL "Failure while configuring required packages." "" \
- dpkg --status-fd 8 --configure --pending --force-configure-any --force-depends 8>&1 1>&7 |
- dpkg_progress $baseprog $bases CONFREQ "Configuring required packages" CONFIGURING) 7>&1
-
- baseprog=0
- bases="$(set -- $base; echo $#)"
-
- info UNPACKBASE "Unpacking the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages. This will be re-attempted up to five times." "" \
- dpkg --status-fd 8 --force-overwrite --force-confold --skip-same-version --unpack $(debfor $base) 8>&1 1>&7 |
- dpkg_progress $baseprog $bases UNPACKBASE "Unpacking base system" UNPACKING) 7>&1
-
- info CONFBASE "Configuring the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be attempted 5 times." "" \
- dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 |
- dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING) 7>&1
-
- mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
-
- progress $bases $bases CONFBASE "Configuring base system"
- info BASESUCCESS "Base system installed successfully."
-}
+++ /dev/null
-#!/bin/bash
-#
-# Copyright (C) 2006 Benedikt Boehm <hollow@gentoo.org>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#
-# BIG FAT WARNING:
-#
-# Do not remove this file if you are using gentoo init style!
-# Your vserver will not boot anymore!
-#
-# You have been warned...
-
-# Force TERM=linux for baselayout-2
-
-RUNLEVEL=1 /sbin/rc sysinit || exit 1
-/sbin/rc boot || exit 1
-/sbin/rc ${1:-default}
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# Copyright (C) 2006 Benedikt Boehm <hollow@gentoo.org>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-## Called as: initpost <cfgdir> <path of util-vserver-vars>
-
-# finish notice from initpre
-echo "ok"
-
-
-#setup environment
-cfgdir="$1"
-vdir="$cfgdir"/vdir
-. "$2"
-
-
-# go to vdir for chroot-sh
-pushd "$vdir" &>/dev/null
-
-
-# helper for sed in chroot
-chrootsed() {
- local file="$1"
- shift
-
- sedtmp=$($_MKTEMP chrootsed.XXXXXX)
-
- $_CHROOT_SH cat "$file" | $_SED "$@" > $sedtmp
- $_CHROOT_SH truncate "$file" < $sedtmp
-
- $_RM -f $sedtmp
-}
-
-
-# portage stuff
-$_CHROOT_SH mkdir /usr 2>/dev/null || :
-$_CHROOT_SH mkdir /usr/portage 2>/dev/null || :
-$_CHROOT_SH mkdir /usr/portage/distfiles 2>/dev/null || :
-
-
-# gentoo initstyle magic
-initstyle=sysv
-test -e "$cfgdir"/apps/init/style && initstyle=$(<"$cfgdir"/apps/init/style)
-
-if test "$initstyle" == "gentoo"; then
- echo ">>> Installing special init-style magic ... "
-
- $_CAT "$__DISTRIBDIR"/gentoo/init-vserver.sh | \
- $_CHROOT_SH truncate /lib/rcscripts/sh/init-vserver.sh
- $_CHROOT_SH chmod 0755 /lib/rcscripts/sh/init-vserver.sh
-
- $_CAT "$__DISTRIBDIR"/gentoo/reboot.sh | \
- $_CHROOT_SH truncate /etc/init.d/reboot.sh
- $_CHROOT_SH chmod 0755 /etc/init.d/reboot.sh
-
- $_CAT "$__DISTRIBDIR"/gentoo/shutdown.sh | \
- $_CHROOT_SH truncate /etc/init.d/shutdown.sh
- $_CHROOT_SH chmod 0755 /etc/init.d/shutdown.sh
-
- echo "!!!"
- echo "!!! You have to install a service (e.g. syslog/cron) and add it to the"
- echo "!!! default runlevel before you start the guest the first time!"
- echo "!!! Otherwise the guest will die as soon as it has finished booting."
- echo "!!!"
- echo "!!! Consult the Gentoo Handbook on how to chroot and install"
- echo "!!! packages into the guest environment."
- echo "!!!"
-fi
-
-
-# unneeded runlevel scripts
-echo ">>> Fixing default runlevel scripts ... "
-$_CHROOT_SH rm /etc/runlevels/boot/{clock,consolefont,keymaps,modules,net.lo} 2>/dev/null || :
-$_CHROOT_SH rm /etc/runlevels/default/{hdparm,netmount} 2>/dev/null || :
-
-
-# setting hostname
-if test -r "$cfgdir"/uts/nodename && $_CHROOT_SH testfile /etc/conf.d/hostname; then
- echo ">>> Setting hostname ... "
- chrootsed /etc/conf.d/hostname \
- -e "s:HOSTNAME=\"\(.*\)\":HOSTNAME=\"$(< "$cfgdir"/uts/nodename)\":"
-fi
-
-
-# fix syslog-ng.conf
-if $_CHROOT_SH testfile /etc/syslog-ng/syslog-ng.conf; then
- echo ">>> Fixing syslog-ng.conf ... "
- chrootsed /etc/syslog-ng/syslog-ng.conf \
- -e 's:pipe("/proc/kmsg"); ::' \
- -e 's:\(.*console_all.*\):#\1:g'
-fi
-
-
-# fix gettys in inittab
-if $_CHROOT_SH testfile /etc/inittab; then
- echo ">>> Fixing inittab ... "
- chrootsed /etc/inittab \
- -e 's/\(^[^#].*getty.*$\)/#\1/'
-fi
-
-
-# fix fstab for checkfs/localmount in baselayout-2
-# (does not affect any previous versions)
-echo ">>> Fixing fstab ... "
-echo "/dev/hdv1 / ufs defaults 0 0" | $_CHROOT_SH truncate /etc/fstab
-
-
-# always satisfy net dependency in baselayout-2
-# (does not affect any previous versions)
-echo ">>> Providing dummy net dependency ... "
-$_CAT "$__DISTRIBDIR"/gentoo/net.vserver | \
-$_CHROOT_SH truncate /etc/init.d/net.vserver
-$_CHROOT_SH chmod 0755 /etc/init.d/net.vserver
-$_CHROOT_SH link /etc/init.d/net.vserver /etc/runlevels/boot/net.vserver
-
-popd &>/dev/null
+++ /dev/null
-#!/bin/bash
-
-# Copyright (C) 2006 Benedikt Boehm <hollow@gentoo.org>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-## Called as: initpost <cfgdir> <path of util-vserver-vars>
-
-vdir="$1"/vdir
-. "$2"
-
-# portage stuff
-echo ">>> Adding shared /usr/portage to fstab ... "
-
-hash portageq &>/dev/null
-
-if test $? -eq 0; then
- _PORTDIR=$(portageq portdir)
- _DISTDIR=$(portageq distdir)
-else
- _PORTDIR=/usr/portage
- _DISTDIR=/usr/portage/distfiles
-fi
-
-if test -d $_PORTDIR; then
- ( echo
- echo "# shared portage tree"
- echo "${_PORTDIR} /usr/portage none bind,ro 0 0"
- ) >> "$1"/fstab
-else
- echo "!!! Cannot find a portage tree! You should definitely use a"
- echo "!!! shared portage tree if you have multiple Gentoo guests!"
-fi
-
-if test -d $_DISTDIR; then
- echo "${_DISTDIR} /usr/portage/distfiles none bind,rw 0 0" >> "$1"/fstab
-else
- echo "!!! Cannot find distfiles directory! You should definitely use a"
- echo "!!! shared distfiles directory if you have multiple Gentoo guests!"
-fi
-
-
-# initstyle sanity
-initstyle=sysv
-test -e "$1"/apps/init/style && initstyle=$(<"$1"/apps/init/style)
-
-echo ">>> Checking init-style ... $initstyle"
-
-if test "$initstyle" != "gentoo" -a "$initstyle" != "plain"; then
- echo "!!! The init-style you specified is not supported for Gentoo"
- echo "!!! Please use one of: plain, gentoo"
-fi
-
-echo -n ">>> Unpacking template ... "
+++ /dev/null
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-depend() {
- provide net
-}
-
-start() {
- return 0
-}
-
-stop() {
- return 0
-}
+++ /dev/null
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# gentoo init style needs this (and nothing else)
-exit 0
+++ /dev/null
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# gentoo init style needs this (and nothing else)
-exit 0
+++ /dev/null
-case $ARCH in
- amd64|i386|sparc)
- default_mirror http://archive.ubuntu.com/ubuntu
- ;;
- *)
- default_mirror http://ports.ubuntu.com/ubuntu-ports
- ;;
-esac
-mirror_style release
-download_style apt
-finddebs_style from-indices
-variants - buildd
-
-work_out_debs () {
- LIBC6=libc6
- if [ "$ARCH" = "alpha" -o "$ARCH" = "ia64" ]; then LIBC6="libc6.1"; fi
-
- required="$(get_debs Priority: required)"
-
- if doing_variant -; then
- #required="$required $(get_debs Priority: important)"
- # ^^ should be getting debconf here somehow maybe
- base="$(get_debs Priority: important)"
- elif doing_variant buildd; then
- # TODO: add Build-Essential: yes extraoverrides
- #base="$(get_debs Build-Essential: yes)"
-
- add () { if [ "$ARCH" = "$1" ]; then eval "$2=\"\$$2 $3\""; fi; }
-
- base="apt binutils cpio cpp cpp-4.1 dpkg-dev g++ g++-4.1 gcc gcc-4.1 ${LIBC6}-dev libdb4.4 libgdbm3 libstdc++6 libstdc++6-4.1-dev linux-libc-dev make patch perl perl-modules"
-
- add hppa base "libgcc4"
- add ia64 base "libunwind7-dev"
- add sparc base "lib64gcc1"
- add sparc base "libc6-dev-sparc64"
- add sparc base "libc6-sparc64"
- fi
-}
-
-first_stage_install () {
- extract $required
-
- mkdir -p "$TARGET/var/lib/dpkg"
- : >"$TARGET/var/lib/dpkg/status"
- : >"$TARGET/var/lib/dpkg/available"
-
- setup_etc
- if [ ! -e "$TARGET/etc/fstab" ]; then
- echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
- chown 0.0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
- fi
-
- setup_devices
-
- x_feign_install () {
- local pkg="$1"
- local deb="$(debfor $pkg)"
- local ver="$(
- ar -p "$TARGET/$deb" control.tar.gz | zcat |
- tar -O -xf - control ./control 2>/dev/null |
- sed -ne 's/^Version: *//Ip' | head -n 1
- )"
-
- mkdir -p "$TARGET/var/lib/dpkg/info"
-
- echo \
-"Package: $pkg
-Version: $ver
-Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
-
- touch "$TARGET/var/lib/dpkg/info/${pkg}.list"
- }
-
- x_feign_install dpkg
-}
-
-second_stage_install () {
- x_core_install () {
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
- }
-
- p () {
- baseprog="$(($baseprog + ${1:-1}))"
- }
-
- setup_proc
- in_target /sbin/ldconfig
-
- DEBIAN_FRONTEND=noninteractive
- DEBCONF_NONINTERACTIVE_SEEN=true
- export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
-
- baseprog=0
- bases=7
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #1
- info INSTCORE "Installing core packages..."
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #2
- ln -sf mawk $TARGET/usr/bin/awk
- x_core_install base-files base-passwd
- p; progress $baseprog $bases INSTCORE "Installing core packages" #3
- x_core_install dpkg
-
- if [ ! -e "$TARGET/etc/localtime" ]; then
- ln -sf /usr/share/zoneinfo/Etc/UTC "$TARGET/etc/localtime"
- fi
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #4
- x_core_install $LIBC6
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #5
- x_core_install perl-base
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #6
- rm $TARGET/usr/bin/awk
- x_core_install mawk
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #7
- if doing_variant -; then
- x_core_install debconf
- fi
-
- baseprog=0
- bases=$(set -- $required; echo $#)
-
- info UNPACKREQ "Unpacking required packages..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages. This will be attempted up to five times." "" \
- dpkg --status-fd 8 --force-depends --unpack $(debfor $required) 8>&1 1>&7 |
- dpkg_progress $baseprog $bases UNPACKREQ "Unpacking required packages" UNPACKING) 7>&1
-
- info CONFREQ "Configuring required packages..."
-
- mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
- echo \
-"#!/bin/sh
-echo
-echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
- chmod 755 "$TARGET/sbin/start-stop-daemon"
-
- setup_dselect_method apt
-
- smallyes '' |
- (in_target_failmsg CONF_REQ_FAIL "Failure while configuring required packages." "" \
- dpkg --status-fd 8 --configure --pending --force-configure-any --force-depends 8>&1 1>&7 |
- dpkg_progress $baseprog $bases CONFREQ "Configuring required packages" CONFIGURING) 7>&1
-
- baseprog=0
- bases="$(set -- $base; echo $#)"
-
- info UNPACKBASE "Unpacking the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages. This will be re-attempted up to five times." "" \
- dpkg --status-fd 8 --force-overwrite --force-confold --skip-same-version --unpack $(debfor $base) 8>&1 1>&7 |
- dpkg_progress $baseprog $bases UNPACKBASE "Unpacking base system" UNPACKING) 7>&1
-
- info CONFBASE "Configuring the base system..."
-
- smallyes '' |
- (repeat 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be attempted 5 times." "" \
- dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 |
- dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING) 7>&1
-
- mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
-
- progress $bases $bases CONFBASE "Configuring base system"
- info BASESUCCESS "Base system installed successfully."
-}
+++ /dev/null
-default_mirror http://old-releases.ubuntu.com/ubuntu
-mirror_style release
-download_style apt
-
-work_out_debs () {
-
- required="base-files base-passwd bash bsdutils coreutils libacl1 libattr1 debconf debconf-i18n liblocale-gettext-perl libtext-iconv-perl libtext-wrapi18n-perl libtext-charwidth-perl debianutils diff dpkg dselect libblkid1 e2fsprogs e2fslibs libcomerr2 libss2 libuuid1 findutils grep gzip hostname libcap1 libdb1-compat libdb3 libncurses5 libnewt0.51 libpam-modules libpam-runtime libpam0g libpopt0 login makedev mawk mount ncurses-base ncurses-bin passwd perl-base procps python-minimal python2.4-minimal sed slang1a-utf8 lsb-base initscripts sysvinit sysv-rc tar util-linux zlib1g whiptail libgcc1 gcc-3.3-base libstdc++5"
-
- base="adduser alsa-base alsa-utils apt apt-utils aptitude at base-config bind9-host bsdmainutils bzip2 console-common console-data console-tools cpio cramfsprogs cron dash dhcp3-client dhcp3-common discover1 discover1-data dmsetup dnsutils dosfstools ed eject ethtool evms evms-ncurses fdutils file ftp gettext-base gnupg grepmap groff-base hdparm hotplug ifrename ifupdown info initrd-tools iproute iptables iputils-arping iputils-ping iputils-tracepath jfsutils klogd less libasound2 libbz2-1.0 libconsole libdb4.2 libdevmapper1.00 libdiscover1 libdns16 libevms-2.5 libfribidi0 libgc1 libgcrypt11 libgdbm3 libgnutls11 libgpg-error0 libgpmg1 libidn11 libisc7 libiw27 libldap2 liblockfile1 liblwres1 liblzo1 libmagic1 libncursesw5 libopencdk8 libparted1.6-12 libpcap0.8 libreiserfs0.3-0 libsasl2 libsasl2-modules libsigc++-1.2-5c102 libssl0.9.7 libtasn1-2 libusb-0.1-4 libwrap0 locales logrotate lsb-release lshw lsof lvm-common lvm10 lvm2 mailx man-db manpages mdadm mii-diag mime-support module-init-tools mtr-tiny mutt nano net-tools netbase netcat netkit-inetd ntp ntpdate openssh-client parted pciutils popularity-contest postfix postfix-tls ppp pppconfig pppoeconf psmisc python python2.4 reiser4progs reiserfsprogs reportbug rsync strace sudo sysklogd tcpd tcpdump telnet time ubuntu-base ubuntu-keyring udev usbutils vim vim-common w3m wget wireless-tools xfsprogs"
-
- without_package () {
- echo "$2" | tr ' ' '\n' | grep -v "^$1$" | tr '\n' ' '
- }
- subst_package () {
- echo "$3" | tr ' ' '\n' | sed "s/^$1$/$2/" | tr '\n' ' '
- }
-
- LIBC6=libc6
-
- case $ARCH in
- "i386")
- required="$required libc6 libc6-i686"
- base="$base dmidecode libelfg0 ltrace memtest86+ libreadline4"
- ;;
- "powerpc")
- required="$required libc6 libreadline4"
- base="$base hfsplus hfsutils libelfg0 libhfsp0 ltrace mac-fdisk pmac-fdisk powerpc-utils"
- ;;
- "amd64")
- required="$required libc6"
- base="$base dmidecode libelfg0 ltrace memtest86+ libreadline4"
- ;;
- "ia64")
- required="$required libc6.1 libunwind7"
- base="$base dmidecode libreadline4"
- LIBC6="libc6.1"
- ;;
- "sparc")
- required="$required libc6"
- base="$base lib64gcc1 libc6-sparc64 libreadline4"
- ;;
- *)
- # who knows?
- ;;
- esac
-}
-
-install_debs () {
- first_stage_install
- second_stage_install
-}
-
-first_stage_install () {
- extract $required
-
- mkdir -p "$TARGET/var/lib/dpkg"
- : >"$TARGET/var/lib/dpkg/status"
- echo >"$TARGET/var/lib/dpkg/available"
-
- setup_etc
- if [ ! -e "$TARGET/etc/fstab" ]; then
- echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
- chown 0.0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
- fi
-
- setup_devices
-
- x_feign_install () {
- local pkg="$1"
- local deb="$(debfor $pkg)"
- local ver="$(
- ar -p "$TARGET/$deb" control.tar.gz | zcat |
- tar -O -xf - control ./control 2>/dev/null |
- sed -ne 's/^Version: *//Ip' | head -n 1
- )"
-
- mkdir -p "$TARGET/var/lib/dpkg/info"
-
- echo \
-"Package: $pkg
-Version: $ver
-Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
-
- touch "$TARGET/var/lib/dpkg/info/${pkg}.list"
- }
-
- x_feign_install dpkg
-}
-
-second_stage_install () {
- x_core_install () {
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
- }
- p () {
- baseprog="$(($baseprog + ${1:-1}))"
- }
-
- DEBIAN_FRONTEND=noninteractive
- DEBCONF_NONINTERACTIVE_SEEN=true
- export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
-
- baseprog=0
- bases=7
-
- setup_proc
- in_target /sbin/ldconfig
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #1
- info INSTCORE "Installing core packages..."
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #2
- ln -sf mawk $TARGET/usr/bin/awk
- x_core_install base-files base-passwd
- p; progress $baseprog $bases INSTCORE "Installing core packages" #3
- x_core_install dpkg
-
- if [ ! -e "$TARGET/etc/localtime" ]; then
- ln -sf /usr/share/zoneinfo/UTC "$TARGET/etc/localtime"
- fi
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #4
- x_core_install $LIBC6
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #5
- x_core_install perl-base
- p; progress $baseprog $bases INSTCORE "Installing core packages" #6
- rm $TARGET/usr/bin/awk
- x_core_install mawk
- p; progress $baseprog $bases INSTCORE "Installing core packages" #7
- x_core_install debconf
-
- baseprog=0
- bases="$(set -- $required; echo $#)"
-
- info UNPACKREQ "Unpacking required packages..."
-
- smallyes '' | (repeat 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages. This will be attempted up to five times." "" dpkg --status-fd 8 --force-depends --unpack $(debfor $required) 8>&1 1>&7 | dpkg_progress $baseprog $bases UNPACKREQ "Unpacking required packages" UNPACKING) 7>&1
-
- baseprog=0
-
- info CONFREQ "Configuring required packages..."
-
- mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
- echo \
-"#!/bin/sh
-echo
-echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
- chmod 755 "$TARGET/sbin/start-stop-daemon"
-
- setup_dselect_method apt
- #on_exit "(in_target_nofail umount /dev/pts) || true"
-
- smallyes '' | (in_target_failmsg CONF_REQ_FAIL "Failure while configuring required packages." "" dpkg --status-fd 8 --configure --pending --force-configure-any --force-depends 8>&1 1>&7 | dpkg_progress $baseprog $bases CONFREQ "Configuring required packages" CONFIGURING) 7>&1
-
- baseprog=0
- bases="$(set -- $base; echo $#)"
-
- info UNPACKBASE "Unpacking the base system..."
-
- smallyes '' | (repeat 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages. This will be re-attempted up to five times." "" dpkg --status-fd 8 --force-auto-select --force-overwrite --force-confold --skip-same-version --unpack $(debfor $base) 8>&1 1>&7 | dpkg_progress $baseprog $bases UNPACKBASE "Unpacking base system" UNPACKING) 7>&1
-
- baseprog=0
-
- info CONFBASE "Configuring the base system..."
-
- mv "$TARGET/usr/sbin/sendmail" "$TARGET/usr/sbin/sendmail.REAL"
- ln -s /bin/true "$TARGET/usr/sbin/sendmail"
-
- smallyes '' | (repeat 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be attempted 5 times." "" dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 | dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING) 7>&1
-
- rm -f "$TARGET/usr/sbin/sendmail"
- mv "$TARGET/usr/sbin/sendmail.REAL" "$TARGET/usr/sbin/sendmail"
-
- mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
-
- progress $bases $bases CONFBASE "Configuring base system"
- info BASESUCCESS "Base system installed successfully."
-}
-
+++ /dev/null
-http://ftp.debian.org/debian
+++ /dev/null
-http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.3_all.deb
+++ /dev/null
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
+++ /dev/null
-none /proc proc defaults 0 0
-none /tmp tmpfs size=16m,mode=1777 0 0
-none /dev/pts devpts gid=5,mode=620 0 0
+++ /dev/null
-# Borrowed from file(1)
-# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
-0 string \037\213 gzip -d -c 1
-# tar posix
-257 string ustar\0 tar -x 0
-# tar gnu
-257 string ustar\040\040\0 tar -x 0
-# cpio
-0 short 070707 cpio -i 0
-# cpio swapped
-0 short 0143561 cpio -i 0
-# bzip2
-0 string BZh bzip2 -d -c 1
-# dump/restore new-fs big and little endian
-24 belong 60012 restore -rf - 0
-24 lelong 60012 restore -rf - 0
-# dump/restore old-fs big and little endian
-24 belong 60011 restore -rf - 0
-24 lelong 60011 restore -rf - 0
+++ /dev/null
-/dev/hdv1 / ufs defaults 0 0
+++ /dev/null
-/proc/net/
--/proc/net/rpc/
-/proc/sys/
--/proc/sys/debug/
--/proc/sys/dev/
-/proc/sysvipc/
-/proc/tty/
-/proc/cpuinfo
-/proc/crypto
-/proc/devices
-/proc/execdomains
-/proc/filesystems
-/proc/interrupts
-/proc/iomem
-/proc/ioports
-/proc/kcore
-/proc/kmsg
-/proc/ksyms
-/proc/loadavg
-/proc/locks
-/proc/meminfo
-/proc/misc
-/proc/modules
-/proc/pci
-/proc/slabinfo
-/proc/stat
-/proc/swaps
-/proc/uptime
--/proc/cmdline
-/proc/version
+++ /dev/null
-/.rpmdb
-/dev
-~/etc/shadow
-~/etc/passwd
-~/etc/group
-+/etc/termcap
-+/etc/gconf
-+/etc/gconf/schemas
-/etc/gconf/*
-/etc/*
-/home
-/proc
-/mnt
-+/root/.ssh
-~/root/.ssh/id*
--/root/.ssh/*
-+/root/.gnupg
-~/root/.gnupg/secring*
--/root/.gnupg/*
--/root/*
-/selinux
-/sys
-~/tmp/*
-/tmp
-~/var/tmp/*
-/var
+++ /dev/null
-#! /bin/bash
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-## HACK: this script is full of races...
-
-vdir=$1/vdir
-. "$2"
-
-function relink
-{
- test ! -e "$2" -o -L "$2" || mv -f "$2"{,.orig}
- ln -sf "$1" "$2"
-}
-
-## Usage: subst <file> <regexp>
-function subst
-{
- tmp=$(mktemp /tmp/initpost-subst.XXXXXX)
-
- case "$1" in
- (/*|./*) cat "$1";;
- (*) $_CHROOT_SH cat "$1";;
- esac | sed -e "$2" >$tmp
- cmp -s $tmp "$1" || $_CHROOT_SH truncate "$1" <$tmp
-
- rm -f $tmp
-}
-
-vserver=$1
-
-## Do some magic to set the vserver into a defined state
-$_VSERVER "$vserver" stop &>/dev/null || :
-$_VSERVER "$vserver" start --rescue --rescue-init bash -c '
- exec >/dev/null
- exec 2>/dev/null
-
- set -x
- f=/tmp/startwait
- trap "rm -f $f" EXIT
- mkfifo $f
- ( sleep 15; kill -s 9 -- -1 ) &
- cat "$f" >/dev/null
- kill -s 9 -- -1
- wait
-'
-
-pushd "$vdir"/etc/init.d &>/dev/null ||
- pushd "$vdir"/etc/rc.d/init.d &>/dev/null || exit 1
-
- for i in *; do
- test -e "$i" || continue
- case "$i" in
- functions|halt|killall|single) ;;
- syslog) ;;
- *)
- $_VSERVER "$1" chkconfig "$i" off
- ;;
- esac
- done
-
-popd >/dev/null
-
-pushd "$vdir"/sbin &>/dev/null
- relink /bin/true new-kernel-pkg
-popd >/dev/null
-
-pushd "$vdir"/usr/bin &>/dev/null
- relink /bin/true rhgb-client
-popd >/dev/null
-
-pushd "$vdir" &>/dev/null
- echo 'NETWORKING=yes' | $_CHROOT_SH append /etc/sysconfig/network
-popd >/dev/null
-
-pushd "$vdir" &>/dev/null
- cat <<EOF | $_CHROOT_SH truncate /etc/init.d/halt
-#! /bin/bash
-
-exec /sbin/killall5 -15
-EOF
- $_CHROOT_SH chmod 0755 /etc/init.d/halt
-
- : | $_CHROOT_SH truncate /etc/sysctl.conf
- echo "none / none defaults" | $_CHROOT_SH truncate /etc/fstab
- cat "$__DISTRIBDIR"/redhat/rc.sysinit | $_CHROOT_SH truncate /etc/rc.d/rc.sysinit.vserver
- $_CHROOT_SH chmod 0755 /etc/rc.d/rc.sysinit.vserver
- subst etc/inittab 's!^\([^#].*:respawn:.* tty\)!#\1!;
- s!si::sysinit:/etc/rc.d/rc.sysinit!si::sysinit:/etc/rc.d/rc.sysinit.vserver!'
-popd >/dev/null
-
-$_VSERVER "$vserver" exec bash -c ': >/tmp/startwait' &>/dev/null || :
-$_VSERVER "$vserver" stop &>/dev/null || :
+++ /dev/null
-#! /bin/bash
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-vdir=$1/vdir
-. "$2"
-
-## Fix/workaround the misclassification of %_netsharedpath's parent directories
-mkdir -p "$vdir"/{etc/rc.d/init.d,/sbin,/usr/bin}
-
-## Workaround broken kernel %post scripts
-ln -s ../bin/true "$vdir"/sbin/new-kernel-pkg
+++ /dev/null
-#! /bin/sh
-
-rm -f /var/lock/subsys/* /var/run/* /var/run/*/* 2>/dev/null
-true
+++ /dev/null
-Essential:
- basesystem
- coreutils
- filesystem
- glibc
- setup
- redhat-release
+++ /dev/null
-# rpm http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/RedHat/.apt redhat/9 os errata
-# rpm-src http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/RedHat/.apt redhat/9 os errata
-
-# rpm ftp://ftp.tu-chemnitz.de/pub/linux/fedora/redhat 9/i386 os updates
-# rpm ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/redhat 9/i386 os updates
-# rpm http://mirrors.usc.edu/pub/linux/fedora/redhat 9/i386 os updates
-# rpm http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/redhat 9/i386 os updates
+++ /dev/null
---reinstall
-
-filesystem
+++ /dev/null
-Essential:
- aaa_base
+++ /dev/null
-# rpm http://ftp.tu-chemnitz.de/pub/linux/suse/apt/SuSE 9.1-i386 base
+++ /dev/null
---reinstall
-filesystem
-pam
+++ /dev/null
-# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
-# you have to use at least one language beside 'C'
-%_install_langs C:de:en:es:fr
-%_netsharedpath /dev
+++ /dev/null
-#! /bin/bash
-
-# Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-## Called as: initpost <cfgdir> <path of util-vserver-vars>
-
-. "$2"
-
-true
+++ /dev/null
-#! /bin/bash
-
-# Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-## Called as: initpre <cfgdir> <path of util-vserver-vars>
-
-. "$2"
-
-true
+++ /dev/null
-default_mirror http://old-releases.ubuntu.com/ubuntu
-mirror_style release
-download_style apt
-
-work_out_debs () {
-
- required="base-files base-passwd bash bsdutils coreutils libacl1 libattr1 debconf debconf-i18n liblocale-gettext-perl libtext-iconv-perl libtext-wrapi18n-perl libtext-charwidth-perl debianutils diff dpkg dselect libblkid1 e2fsprogs e2fslibs libcomerr2 libss2 libuuid1 findutils grep gzip hostname libcap1 libc6 libdb1-compat libdb3 libncurses5 libnewt0.51 libpam-modules libpam-runtime libpam0g libpopt0 login makedev mawk modutils mount ncurses-base ncurses-bin passwd perl-base procps sed slang1a-utf8 lsb-base initscripts sysvinit sysv-rc tar util-linux zlib1g whiptail libgcc1 gcc-3.3-base libstdc++5"
-
- base="adduser alsa-base alsa-utils apt apt-utils aptitude at base-config bind9-host bsdmainutils bzip2 console-common console-data console-tools cpio cramfsprogs cron dash dbus-1 dhcp3-client dhcp3-common discover1 discover1-data dmsetup dnsutils dosfstools ed eject evms evms-ncurses fdutils file ftp gettext-base gnupg groff-base hdparm hotplug ifrename ifupdown info initrd-tools iproute iptables iputils-arping iputils-ping iputils-tracepath jfsutils klogd less libasound2 libatm1 libbz2-1.0 libconsole libdb4.2 libdevmapper1.00 libdiscover1 libdns16 libevms-2.3 libexpat1 libfribidi0 libgc1 libgcrypt7 libgdbm3 libgnutls10 libgpg-error0 libgpmg1 libidn11 libisc7 libiw27 libldap2 liblockfile1 liblwres1 liblzo1 libmagic1 libncursesw5 libopencdk8 libparted1.6-0 libpcap0.7 libpcap0.8 libreiserfs0.3-0 libsasl2 libsigc++-1.2-5c102 libssl0.9.7 libtasn1-2 libusb-0.1-4 libwrap0 locales logrotate lshw lsof ltrace lvm-common lvm10 lvm2 mailx man-db manpages mdadm mii-diag mime-support module-init-tools mtr-tiny mutt nano net-tools netbase netcat netkit-inetd ntp ntpdate openssh-client parted pciutils popularity-contest postfix postfix-tls ppp pppconfig pppoeconf psmisc python python2.3 reiser4progs reiserfsprogs reportbug rsync strace sudo sysklogd tcpd tcpdump telnet time ubuntu-base udev usbutils vim vim-common w3m wget wireless-tools xfsprogs"
-
- without_package () {
- echo "$2" | tr ' ' '\n' | grep -v "^$1$" | tr '\n' ' '
- }
- subst_package () {
- echo "$3" | tr ' ' '\n' | sed "s/^$1$/$2/" | tr '\n' ' '
- }
-
- LIBC6=libc6
-
- case $ARCH in
- "i386")
- required="$required libc6-i686"
- base="$base dmidecode memtest86+ libreadline4"
- ;;
- "powerpc")
- required="$required libreadline4"
- base="$base hfsplus hfsutils libhfsp0 mac-fdisk pmac-fdisk powerpc-utils"
- ;;
- "amd64")
- base="$base dmidecode libreadline4"
- ;;
- *)
- # who knows?
- ;;
- esac
-}
-
-install_debs () {
- first_stage_install
- second_stage_install
-}
-
-first_stage_install () {
- extract $required
-
- mkdir -p "$TARGET/var/lib/dpkg"
- : >"$TARGET/var/lib/dpkg/status"
- echo >"$TARGET/var/lib/dpkg/available"
-
- setup_etc
- if [ ! -e "$TARGET/etc/fstab" ]; then
- echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab"
- chown 0.0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
- fi
-
- setup_devices
-
- x_feign_install () {
- local pkg="$1"
- local deb="$(debfor $pkg)"
- local ver="$(
- ar -p "$TARGET/$deb" control.tar.gz | zcat |
- tar -O -xf - control ./control 2>/dev/null |
- sed -ne 's/^Version: *//Ip' | head -n 1
- )"
-
- mkdir -p "$TARGET/var/lib/dpkg/info"
-
- echo \
-"Package: $pkg
-Version: $ver
-Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
-
- touch "$TARGET/var/lib/dpkg/info/${pkg}.list"
- }
-
- x_feign_install dpkg
-}
-
-second_stage_install () {
- x_core_install () {
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
- }
-
- p () {
- baseprog="$(($baseprog + ${1:-1}))"
- }
-
- DEBIAN_FRONTEND=noninteractive
- DEBCONF_NONINTERACTIVE_SEEN=true
- export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN
-
- setup_proc
- in_target /sbin/ldconfig
-
- baseprog=0
- bases=7
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #1
- info INSTCORE "Installing core packages..."
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #2
- ln -sf mawk $TARGET/usr/bin/awk
- x_core_install base-files base-passwd
- p; progress $baseprog $bases INSTCORE "Installing core packages" #3
- x_core_install dpkg
-
- if [ ! -e "$TARGET/etc/localtime" ]; then
- ln -sf /usr/share/zoneinfo/UTC "$TARGET/etc/localtime"
- fi
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #4
- x_core_install $LIBC6
-
- p; progress $baseprog $bases INSTCORE "Installing core packages" #5
- x_core_install perl-base
- p; progress $baseprog $bases INSTCORE "Installing core packages" #6
- rm $TARGET/usr/bin/awk
- x_core_install mawk
- p; progress $baseprog $bases INSTCORE "Installing core packages" #7
- x_core_install debconf
-
- baseprog=0
- bases="$(set -- $required; echo $#)"
-
- info UNPACKREQ "Unpacking required packages..."
-
- smallyes '' | (repeat 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages. This will be attempted up to five times." "" dpkg --status-fd 8 --force-depends --unpack $(debfor $required) 8>&1 1>&7 | dpkg_progress $baseprog $bases UNPACKREQ "Unpacking required packages" UNPACKING) 7>&1
-
- baseprog=0
-
- info CONFREQ "Configuring required packages..."
-
- mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
- echo \
-"#!/bin/sh
-echo
-echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
- chmod 755 "$TARGET/sbin/start-stop-daemon"
-
- setup_dselect_method apt
- #on_exit "(in_target_nofail umount /dev/pts) || true"
-
- smallyes '' | (in_target_failmsg CONF_REQ_FAIL "Failure while configuring required packages." "" dpkg --status-fd 8 --configure --pending --force-configure-any --force-depends 8>&1 1>&7 | dpkg_progress $baseprog $bases CONFREQ "Configuring required packages" CONFIGURING) 7>&1
-
- baseprog=0
- bases="$(set -- $base; echo $#)"
-
- info UNPACKBASE "Unpacking the base system..."
-
- smallyes '' | (repeat 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages. This will be re-attempted up to five times." "" dpkg --status-fd 8 --force-auto-select --force-overwrite --force-confold --skip-same-version --unpack $(debfor $base) 8>&1 1>&7 | dpkg_progress $baseprog $bases UNPACKBASE "Unpacking base system" UNPACKING) 7>&1
-
- baseprog=0
-
- info CONFBASE "Configuring the base system..."
-
- mv "$TARGET/usr/sbin/sendmail" "$TARGET/usr/sbin/sendmail.REAL"
- ln -s /bin/true "$TARGET/usr/sbin/sendmail"
-
- smallyes '' | (repeat 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be attempted 5 times." "" dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 | dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING) 7>&1
-
- rm -f "$TARGET/usr/sbin/sendmail"
- mv "$TARGET/usr/sbin/sendmail.REAL" "$TARGET/usr/sbin/sendmail"
-
- mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
-
- progress $bases $bases CONFBASE "Configuring base system"
- info BASESUCCESS "Base system installed successfully."
-}
-
+++ /dev/null
-## $Id: Makefile-files 2338 2006-09-28 22:39:19Z dhozac $ -*- makefile -*-
-
-## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-doc_old_doc = doc/intro.txt
-
-XSLT_AMFLAGS = --stringparam confdir '$(sysconfdir)/vservers'
-XSLTP_AMFLAGS = -param confdir '$(sysconfdir)/vservers'
-
-doc_gen_DOCS = doc/configuration.html \
- doc/compatibility.html
-
-doc_configuration_SRCS = doc/configuration.xml \
- doc/configuration.xsd \
- doc/configuration.dtd \
- doc/configuration.css \
- doc/configuration-xhtml.xsl \
- doc/configuration-wiki.xsl
-
-doc_compatibility_SRCS = doc/compatibility.xml \
- doc/compatibility.dtd \
- doc/compatibility-xhtml.xsl
-
-EXTRA_DIST += $(doc_compatibility_SRCS) \
- $(doc_configuration_SRCS) \
- $(doc_old_doc) \
- $(doc_gen_DOCS)
-
-CLEANFILES += doc/*.raw.html* doc/*.html.tmp
-
-doc/configuration.html: STYLESHEET=$(srcdir)/doc/configuration-xhtml.xsl
-doc/configuration.html: $(srcdir)/doc/configuration-xhtml.xsl
-
-doc/compatibility.html: STYLESHEET=$(srcdir)/doc/compatibility-xhtml.xsl
-doc/compatibility.html: $(srcdir)/doc/compatibility-xhtml.xsl
-
-doc: doc_doc
-doc_doc: $(doc_gen_DOCS)
-
-if HAVE_XSLTP
-CLEANFILES += $(doc_gen_DOCS)
-%.html: %.xml $(STYLESHEET)
- @-rm -f '$@.tmp' '$@'
- LANG=C $(XSLTP) $(XSLTP_AMFLAGS) -in '$<' -xsl $(STYLESHEET) -out '$@.tmp'
- @mv -f '$@.tmp' '$@'
-else !HAVE_XSLTP
-if HAVE_XSLTPROC
-CLEANFILES += $(doc_gen_DOCS)
-%.html: %.xml $(STYLESHEET)
- @-rm -f '$@.tmp' '$@'
- $(XSLTPROC) $(XSLT_FLAGS) $(XSLT_AMFLAGS) -o '$@.tmp' "$(STYLESHEET)" "$<"
- @mv -f '$@.tmp' '$@'
-endif HAVE_XSLTPROC
-endif !HAVE_XSLTP
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
- <xsl:output method="xml"
- indent="yes"
- doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
-
- <xsl:template match="/">
- <html>
- <head>
- <title><xsl:apply-templates select="compatibility/title"/></title>
- <link rel="stylesheet" type="text/css" href="compatibility.css" />
- </head>
- <body>
- <h1><xsl:apply-templates select="compatibility/title"/></h1>
- <xsl:apply-templates select="compatibility/program">
- <xsl:sort select="compatibility/program/location"/>
- <xsl:sort select="compatibility/program[name]"/>
- </xsl:apply-templates>
- </body>
- </html>
- </xsl:template>
-
- <xsl:template name="compat">
- <xsl:variable name="name" select="name()"/>
- <xsl:variable name="descr">
- <xsl:choose>
- <xsl:when test="$name = 'clicompat'">
- <xsl:text>Command line interface compatibility</xsl:text>
- </xsl:when>
- <xsl:when test="$name = 'funccompat'">
- <xsl:text>Functional compatibility</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$name"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <div class="{$name}">
- <xsl:value-of select="$descr"/>: <xsl:value-of select="@status"/>
- <xsl:if test="text">
- <div class="text">
- <xsl:apply-templates select="text"/>
- </div>
- </xsl:if>
- </div>
- </xsl:template>
-
- <xsl:template match="clicompat|funccompat">
- <xsl:call-template name="compat" />
- </xsl:template>
-
- <xsl:template match="program">
- <div class="program">
- <div class="name">
- <xsl:value-of select="location"/>/<xsl:value-of select="@name"/>
- <xsl:if test="@status">
- <xsl:text> (</xsl:text>
- <xsl:value-of select="@status"/>
- <xsl:text>)</xsl:text>
- </xsl:if>
- </div>
- <xsl:apply-templates select="clicompat|funccompat"/>
- </div>
- </xsl:template>
-
-</xsl:stylesheet>
+++ /dev/null
-<!ELEMENT compatibility (title,program*)>
-
-<!ELEMENT program (location,clicompat?,funccompat?)>
-<!ATTLIST program
- name CDATA #REQUIRED
- status (removed|rewritten|renamed|broken|new) #IMPLIED>
-
-<!ELEMENT location (#PCDATA)>
-
-<!ELEMENT clicompat (text?)>
-<!ATTLIST clicompat
- status (yes|no|limited) #REQUIRED>
-
-<!ELEMENT funccompat (text?)>
-<!ATTLIST funccompat
- status (yes|no|limited) #REQUIRED>
-
-<!ELEMENT text ANY>
-<!ELEMENT pref (#PCDATA)>
-
-<!ELEMENT title (#PCDATA)>
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>compatibility of util-vserver alpha branch</title>
- <link rel="stylesheet" type="text/css" href="compatibility.css" />
- </head>
- <body>
- <h1>compatibility of util-vserver alpha branch</h1>
- <div class="program">
- <div class="name">LIBDIR/capchroot</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/distrib-info (removed)</div>
- <div class="clicompat">Command line interface compatibility: no<div class="text">replaced by vpkg</div></div>
- <div class="funccompat">Functional compatibility: no</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/fakerunlevel</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/filetime</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/ifspec</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/install-* (removed)</div>
- <div class="clicompat">Command line interface compatibility: no<div class="text">Replaced by more general build-methods which are building vservers from apt-repositories.</div></div>
- <div class="funccompat">Functional compatibility: no</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/listdevip</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/parserpmdump</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/readlink</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/rootshell</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/sample.sh (removed)</div>
- <div class="clicompat">Command line interface compatibility: no<div class="text">incompatible with recent configuration style.</div></div>
- <div class="funccompat">Functional compatibility: no</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/save_s_context (removed)</div>
- <div class="clicompat">Command line interface compatibility: no<div class="text">incompatible with recent configuration style; partially replaced by save_ctxinfo.</div></div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/setattr</div>
- <div class="clicompat">Command line interface compatibility: no<div class="text">Has been moved into SBINDIR. Lots of new option were added to support new functionality.</div></div>
- <div class="funccompat">Functional compatibility: no<div class="text">It is possible to recurse directories and it supports
- all vserver related attributes (admin, hide, watch, barrier,
- iunlink).</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/showattr</div>
- <div class="clicompat">Command line interface compatibility: no<div class="text">Has been moved into SBINDIR. Lots of new option were added to support new functionality.</div></div>
- <div class="funccompat">Functional compatibility: no<div class="text">It is possible to recurse directories and it supports all
- vserver related attributes (admin, hide, watch, barrier,
- iunlink). The output has been changed: the flags are now in the
- first column and they are displayed in a symbolic manner.</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/showperm</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vbuild (broken)</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: no<div class="text">will be removed/rewritten soon.</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vcheck (broken)</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: no<div class="text">will be removed/rewritten soon.</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vprofile (removed)</div>
- <div class="clicompat">Command line interface compatibility: no<div class="text">incompatible with recent configuration style.</div></div>
- <div class="funccompat">Functional compatibility: no</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vreboot</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vserverkillall (removed)</div>
- <div class="clicompat">Command line interface compatibility: no<div class="text">vkill contains the needed functionality
- already.</div></div>
- <div class="funccompat">Functional compatibility: no</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vservers.grabinfo.sh</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vunify (rewritten)</div>
- <div class="clicompat">Command line interface compatibility: no<div class="text">CLI has been changed to reflect new functionality. Now, it
- accepts either a single vserver, or (directory,excludelist)
- pairs as arguments. The old "refserver vserver1 vserver2 ..."
- syntax is gone.</div></div>
- <div class="funccompat">Functional compatibility: limited<div class="text">vunify allows to unify generic paths, or vservers with
- preconfigured reference vservers. The filelist is not taken from
- packagemanagement anymore, but every file which has a counterpart
- in the reference-path(s)/vserver(s) and is not in an excludelist
- will be unified. A part of the excludelist will be generated
- dynamically with information from the packagemanagement about
- configfiles.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/chbind</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/chcontext</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">Return code in '--disconnect' case is now more correctly.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/rebootmgr</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/reducecap</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vdu</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vfiles (broken)</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: no<div class="text">will be removed/rewritten soon.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vkill (rewritten)</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: limited<div class="text">It uses native kernel interface now and is secure (in
- opposite to the old perl implementation).</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vps (rewritten)</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: limited<div class="text">It has been rewritten into C and output might have been changed slightly.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vpstree</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vrpm (rewritten)</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: limited<div class="text">It has been rewritten into a secure, native C
- implementation. Unpacking of files happens in host-ctx, but
- scriptlets are executed in vserver context. The rpm database
- will/can be hold outside of the vserver and there will never be
- access on it from the inside (neither direct, nor by
- scriptlets). This is implemented through an LD_PRELOAD wrapper
- which provides own, secure NSS functions too.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vserver (rewritten)</div>
- <div class="clicompat">Command line interface compatibility: limited<div class="text">It accepts all the old arguments, but adds lots of new
- ones. This program is intended as the basic vserver management
- tool; e.g. to unify a vserver you can execute "vserver XX unify",
- to install a package "vserver XX install PKG" and so on.</div></div>
- <div class="funccompat">Functional compatibility: limited<div class="text">This tool is rewritten to completely and is now resistant
- against symlink attacks. It uses the new configuration scheme
- and the iproute2 tools instead of ifconfig for network
- setup. Old-style vserver can be still started through this tool,
- but modifications/building of them is not possible
- anymore.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vserver-copy (broken)</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: no<div class="text">will be removed/rewritten soon.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vserver-stat (rewritten)</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">It has been rewritten to use the new libvserver API. The
- output has been changed slightly.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vtop</div>
- <div class="clicompat">Command line interface compatibility: yes</div>
- <div class="funccompat">Functional compatibility: yes</div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/exec-cd (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">changes into a directory in a secure manner and executes a
- program there.</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/rpm-fake-resolver (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">NSS resolver; used by vrpm and executed in
- vserver-ctx.</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/rpm-fake.so (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">LD_PRELOAD wrapper; used by vrpm.</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vapt-get-worker (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">Helper script for vapt-get.</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vpkg (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">Generic interface for package management; it allows
- to install, remove or query packages in a distribution
- independent manner. It can be seen as the successor of
- distrib-info.</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vrpm-preload (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">Helper script for vrpm.</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vrpm-worker (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">Helper script for vrpm.</div></div>
- </div>
- <div class="program">
- <div class="name">LIBDIR/vserver-build (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">Builds a vserver from scratch and allows to select the
- used method. It will be called by the "vserver XY build"
- command.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vapt-get (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">Wrapper for apt-get; currently only the apt-rpm port
- is supported. Metadata will/can be stored outside of the
- vserver. This program call vrpm.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/chxid (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">This program assigns the associated context of an inode. It
- replaces parts of the vserver-quota tools.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/lsxid (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">This program shows the associated context of an inode. It
- replaces parts of the vserver-quota tools.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/new-namespace (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">This program starts a program within a new namespace which is
- created with CLONE_NEWNS. It is used e.g. by vrpm to
- map the rpm-database into the vserver in a secure manner.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vlimit (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">This is an interface to the rlimit syscalls which allow to
- limit resource-usage of contexts.</div></div>
- </div>
- <div class="program">
- <div class="name">SBINDIR/vrsetup (new)</div>
- <div class="funccompat">Functional compatibility: yes<div class="text">This program allows to setup vroot devices. It replaces
- vrsetup from the vr-tools</div></div>
- </div>
- </body>
-</html>
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE compatibility SYSTEM "compatibility.dtd" []>
-
-<compatibility>
- <title>compatibility of util-vserver alpha branch</title>
-
- <program name="capchroot">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="distrib-info" status="removed">
- <location>LIBDIR</location>
- <clicompat status="no">
- <text>replaced by <pref>vpkg</pref></text>
- </clicompat>
- <funccompat status="no"/>
- </program>
-
- <program name="fakerunlevel">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="filetime">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="ifspec">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="install-*" status="removed">
- <location>LIBDIR</location>
- <clicompat status="no">
- <text>Replaced by more general build-methods which are building vservers from apt-repositories.</text>
- </clicompat>
- <funccompat status="no"/>
- </program>
-
- <program name="listdevip">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="parserpmdump">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="readlink">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="rootshell">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="sample.sh" status="removed">
- <location>LIBDIR</location>
- <clicompat status="no">
- <text>incompatible with recent configuration style.</text>
- </clicompat>
- <funccompat status="no"/>
- </program>
-
- <program name="save_s_context" status="removed">
- <location>LIBDIR</location>
- <clicompat status="no">
- <text>incompatible with recent configuration style; partially replaced by <pref>save_ctxinfo</pref>.</text>
- </clicompat>
- <funccompat status="yes"/>
- </program>
-
- <program name="setattr">
- <location>LIBDIR</location>
- <clicompat status="no">
- <text>Has been moved into SBINDIR. Lots of new option were added to support new functionality.</text>
- </clicompat>
- <funccompat status="no">
- <text>It is possible to recurse directories and it supports
- all vserver related attributes (admin, hide, watch, barrier,
- iunlink).</text>
- </funccompat>
- </program>
-
- <program name="showattr">
- <location>LIBDIR</location>
- <clicompat status="no">
- <text>Has been moved into SBINDIR. Lots of new option were added to support new functionality.</text>
- </clicompat>
- <funccompat status="no">
- <text>It is possible to recurse directories and it supports all
- vserver related attributes (admin, hide, watch, barrier,
- iunlink). The output has been changed: the flags are now in the
- first column and they are displayed in a symbolic manner.</text>
- </funccompat>
- </program>
-
- <program name="showperm">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="vbuild" status="broken">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="no">
- <text>will be removed/rewritten soon.</text>
- </funccompat>
- </program>
-
- <program name="vcheck" status="broken">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="no">
- <text>will be removed/rewritten soon.</text>
- </funccompat>
- </program>
-
- <program name="vprofile" status="removed">
- <location>LIBDIR</location>
- <clicompat status="no">
- <text>incompatible with recent configuration style.</text>
- </clicompat>
- <funccompat status="no"/>
- </program>
-
- <program name="vreboot">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="vserverkillall" status="removed">
- <location>LIBDIR</location>
- <clicompat status="no">
- <text><pref>vkill</pref> contains the needed functionality
- already.</text>
- </clicompat>
- <funccompat status="no"/>
- </program>
-
- <program name="vservers.grabinfo.sh">
- <location>LIBDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="vunify" status="rewritten">
- <location>LIBDIR</location>
- <clicompat status="no">
- <text>CLI has been changed to reflect new functionality. Now, it
- accepts either a single vserver, or (directory,excludelist)
- pairs as arguments. The old "refserver vserver1 vserver2 ..."
- syntax is gone.</text>
- </clicompat>
- <funccompat status="limited">
- <text>vunify allows to unify generic paths, or vservers with
- preconfigured reference vservers. The filelist is not taken from
- packagemanagement anymore, but every file which has a counterpart
- in the reference-path(s)/vserver(s) and is not in an excludelist
- will be unified. A part of the excludelist will be generated
- dynamically with information from the packagemanagement about
- configfiles.</text>
- </funccompat>
- </program>
-
- <program name="chbind">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="chcontext">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes">
- <text>Return code in '--disconnect' case is now more correctly.</text>
- </funccompat>
- </program>
-
- <program name="rebootmgr">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="reducecap">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="vdu">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="vfiles" status="broken">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="no">
- <text>will be removed/rewritten soon.</text>
- </funccompat>
- </program>
-
- <program name="vkill" status="rewritten">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="limited">
- <text>It uses native kernel interface now and is secure (in
- opposite to the old perl implementation).</text>
- </funccompat>
- </program>
-
- <program name="vps" status="rewritten">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="limited">
- <text>It has been rewritten into C and output might have been changed slightly.</text>
- </funccompat>
- </program>
-
- <program name="vpstree">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="vrpm" status="rewritten">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="limited">
- <text>It has been rewritten into a secure, native C
- implementation. Unpacking of files happens in host-ctx, but
- scriptlets are executed in vserver context. The rpm database
- will/can be hold outside of the vserver and there will never be
- access on it from the inside (neither direct, nor by
- scriptlets). This is implemented through an LD_PRELOAD wrapper
- which provides own, secure NSS functions too.</text>
- </funccompat>
- </program>
-
- <program name="vserver" status="rewritten">
- <location>SBINDIR</location>
- <clicompat status="limited">
- <text>It accepts all the old arguments, but adds lots of new
- ones. This program is intended as the basic vserver management
- tool; e.g. to unify a vserver you can execute "vserver XX unify",
- to install a package "vserver XX install PKG" and so on.</text>
- </clicompat>
- <funccompat status="limited">
- <text>This tool is rewritten to completely and is now resistant
- against symlink attacks. It uses the new configuration scheme
- and the iproute2 tools instead of ifconfig for network
- setup. Old-style vserver can be still started through this tool,
- but modifications/building of them is not possible
- anymore.</text>
- </funccompat>
- </program>
-
- <program name="vserver-copy" status="broken">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="no">
- <text>will be removed/rewritten soon.</text>
- </funccompat>
- </program>
-
- <program name="vserver-stat" status="rewritten">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes">
- <text>It has been rewritten to use the new libvserver API. The
- output has been changed slightly.</text>
- </funccompat>
- </program>
-
- <program name="vtop">
- <location>SBINDIR</location>
- <clicompat status="yes"/>
- <funccompat status="yes"/>
- </program>
-
- <program name="exec-cd" status="new">
- <location>SBINDIR</location>
- <funccompat status="yes">
- <text>changes into a directory in a secure manner and executes a
- program there.</text>
- </funccompat>
- </program>
-
- <program name="rpm-fake-resolver" status="new">
- <location>LIBDIR</location>
- <funccompat status="yes">
- <text>NSS resolver; used by <pref>vrpm</pref> and executed in
- vserver-ctx.</text>
- </funccompat>
- </program>
-
- <program name="rpm-fake.so" status="new">
- <location>LIBDIR</location>
- <funccompat status="yes">
- <text>LD_PRELOAD wrapper; used by <pref>vrpm</pref>.</text>
- </funccompat>
- </program>
-
- <program name="vapt-get-worker" status="new">
- <location>LIBDIR</location>
- <funccompat status="yes">
- <text>Helper script for <pref>vapt-get</pref>.</text>
- </funccompat>
- </program>
-
- <program name="vpkg" status="new">
- <location>LIBDIR</location>
- <funccompat status="yes">
- <text>Generic interface for package management; it allows
- to install, remove or query packages in a distribution
- independent manner. It can be seen as the successor of
- <pref>distrib-info</pref>.</text>
- </funccompat>
- </program>
-
- <program name="vrpm-preload" status="new">
- <location>LIBDIR</location>
- <funccompat status="yes">
- <text>Helper script for <pref>vrpm</pref>.</text>
- </funccompat>
- </program>
-
- <program name="vrpm-worker" status="new">
- <location>LIBDIR</location>
- <funccompat status="yes">
- <text>Helper script for <pref>vrpm</pref>.</text>
- </funccompat>
- </program>
-
- <program name="vserver-build" status="new">
- <location>LIBDIR</location>
- <funccompat status="yes">
- <text>Builds a vserver from scratch and allows to select the
- used method. It will be called by the "vserver XY build"
- command.</text>
- </funccompat>
- </program>
-
- <program name="vapt-get" status="new">
- <location>SBINDIR</location>
- <funccompat status="yes">
- <text>Wrapper for apt-get; currently only the apt-rpm port
- is supported. Metadata will/can be stored outside of the
- vserver. This program call <pref>vrpm</pref>.</text>
- </funccompat>
- </program>
-
-
- <program name="chxid" status="new">
- <location>SBINDIR</location>
- <funccompat status="yes">
- <text>This program assigns the associated context of an inode. It
- replaces parts of the vserver-quota tools.</text>
- </funccompat>
- </program>
-
- <program name="lsxid" status="new">
- <location>SBINDIR</location>
- <funccompat status="yes">
- <text>This program shows the associated context of an inode. It
- replaces parts of the vserver-quota tools.</text>
- </funccompat>
- </program>
-
- <program name="new-namespace" status="new">
- <location>SBINDIR</location>
- <funccompat status="yes">
- <text>This program starts a program within a new namespace which is
- created with CLONE_NEWNS. It is used e.g. by <pref>vrpm</pref> to
- map the rpm-database into the vserver in a secure manner.</text>
- </funccompat>
- </program>
-
- <program name="vlimit" status="new">
- <location>SBINDIR</location>
- <funccompat status="yes">
- <text>This is an interface to the rlimit syscalls which allow to
- limit resource-usage of contexts.</text>
- </funccompat>
- </program>
-
- <program name="vrsetup" status="new">
- <location>SBINDIR</location>
- <funccompat status="yes">
- <text>This program allows to setup vroot devices. It replaces
- vrsetup from the vr-tools</text>
- </funccompat>
- </program>
-</compatibility>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="2.0">
- <xsl:output method="html" indent="yes" omit-xml-declaration="yes" encoding="ISO-8859-1"/>
- <xsl:param name="confdir" select="'/etc/vservers'"/>
- <!-- set following parameter to anything else than 'true' to use a symbolic character to mark up file types -->
- <xsl:param name="printstylename" select="'true'"/>
-
- <xsl:template match="/database">
- <h1>The contents of the <xsl:value-of select="$confdir"/> directory</h1>
- This page is automatically created by XSL transformation of configuration.xml. Additions, corrections, etc. should be made in that file, not in the Wiki page.
- <xsl:choose>
- <xsl:when test="$printstylename = 'true'">
- Directory names are written in <b>bold</b> letters.
-
- Boolean files are files without content. Only existence matters.
-
- Scalar files are files with only one line (one value).
-
- List files are files with multiple values. One value per line.
-
- Hash files are files with multiple key/value pairs. One key/value pair per line.
-
- Symbolic names (variables) are written in <i>italic</i> letters.
- </xsl:when>
- <xsl:otherwise>
- Directories are marked with a trailing / and <b>bold</b> letters.
-
- Scripts are marked with a trailing superscript <sup>*</sup>.
-
- Hash files (with key/value pairs) are marked with a trailing superscript <sup>#</sup>.
-
- Boolean files (without content) are marked with a trailing superscript <sup>0</sup>.
-
- Scalar files (with only one line) are marked with a trailing superscript <sup>1</sup>.
-
- List files (with multiple lines) are marked with a trailing superscript <sup>min - max</sup> sequence, where min is the minimum and max the maximum number of lines.
-
- Symlinks are marked with a trailing superscript <sup>@</sup>.
-
- Data files have no special mark up.
-
- Symbolic names (variables) are written in <i>italic</i> letters.
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:call-template name="collection">
- <xsl:with-param name="thisdir"><xsl:value-of select="$confdir"/></xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="collection">
- <xsl:param name="thisdir"/>
- <xsl:if test="count(scalar) + count(link) + count(program) + count(data) + count(hash) + count(list) + count(boolean) + count(collection)>0">
- <ul>
- <xsl:if test="@id"><span><xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute></span></xsl:if>
- <xsl:call-template name="dir-iterate">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- </xsl:call-template>
- </ul>
- </xsl:if>
- </xsl:template>
-
- <xsl:template name="dir-iterate">
- <xsl:param name="thisdir"/>
- <xsl:apply-templates select="scalar|link|program|data|hash|list|boolean">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
-
- <xsl:apply-templates select="collection">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
- </xsl:template>
-
- <xsl:template match="program">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">script</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="hash">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">hash</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="scalar">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">file</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="data">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">data</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="list">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">list</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="link">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">symlink</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="boolean">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">boolean</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="collection">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">directory</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
-
- <xsl:call-template name="collection">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/>/<xsl:call-template name="printdirname"/></xsl:with-param>
- </xsl:call-template>
- </li>
- </xsl:template>
-
- <xsl:template match="collection" mode="printrpath">
- <xsl:text>/</xsl:text>
- <span class="{@type}">
- <xsl:value-of select="@name"/>
- </span>
- </xsl:template>
-
- <xsl:template name="printname">
- <xsl:param name="thisdir"/>
- <xsl:param name="style"/>
- <xsl:if test="@id"><span><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></span></xsl:if>
- <xsl:if test="$style = 'directory'">'''</xsl:if>
- <xsl:value-of select="$thisdir"/>/<xsl:if test="@type = 'symbolic'">''</xsl:if><xsl:value-of select="@name"/><xsl:if test="@type = 'symbolic'">''</xsl:if>
- <xsl:choose>
- <xsl:when test="$printstylename = 'true'">
- <xsl:if test="$style = 'directory'">'''</xsl:if>
- <xsl:value-of select="concat(' [',$style,']')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$style = 'directory'">/'''</xsl:when>
- <xsl:when test="$style = 'symlink'"><sup>@</sup></xsl:when>
- <xsl:when test="$style = 'boolean'"><sup>0</sup></xsl:when>
- <xsl:when test="$style = 'list'"><sup><xsl:choose>
- <xsl:when test="minElements"><xsl:value-of select="minElements"/></xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose><xsl:value-of select="0 + minElements"/>-<xsl:choose>
- <xsl:when test="maxElements"><xsl:value-of select="maxElements"/></xsl:when>
- <xsl:otherwise>∞</xsl:otherwise>
- </xsl:choose></sup></xsl:when>
- <xsl:when test="$style = 'file'"><sup>1</sup></xsl:when>
- <xsl:when test="$style = 'script'"><sup>*</sup></xsl:when>
- <xsl:when test="$style = 'hash'"><sup>#</sup></xsl:when>
- <xsl:when test="$style = 'data'"></xsl:when>
- <xsl:otherwise><sup>???</sup></xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="printcontent">
- <br/>
- <xsl:apply-templates select="description"/>
- <xsl:call-template name="since"/>
- <xsl:apply-templates select="default"/>
- <xsl:call-template name="default"/>
- <xsl:if test="$printstylename = 'true'">
- <xsl:apply-templates select="minElements"/>
- <xsl:apply-templates select="maxElements"/>
- </xsl:if>
- <xsl:apply-templates select="restriction"/>
- <xsl:apply-templates select="elements"/>
- <xsl:apply-templates select="parameterList"/>
- <xsl:apply-templates select="keys"/>
- </xsl:template>
-
- <!-- Extra content for scalar nodes -->
-
- <xsl:template match="restriction">
- <ul>
- <ul>
- Allowed values:
- <xsl:apply-templates select="enumeration">
- <xsl:sort select="@value"/>
- </xsl:apply-templates>
- </ul>
- </ul>
- </xsl:template>
-
- <xsl:template match="restriction/enumeration">
- <xsl:value-of select="concat(' ; ',@value)"/>
- </xsl:template>
-
- <!-- Extra content for hash nodes -->
-
- <xsl:template match="keys">
- <ul>
- <ul>
- <xsl:apply-templates select="key">
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
- </ul>
- </ul>
- </xsl:template>
-
- <xsl:template match="keys/key">
- <xsl:value-of select="concat(' ; ',@name,' : ',replace(description,'[\r\n]+',' '))"/>
- </xsl:template>
-
- <!-- Extra content for list nodes -->
- <xsl:template match="minElements">
- <ul>
- <ul>
- <xsl:value-of select="concat(' ; minimum number of Elements : ',replace('[\r\n]+',' '))"/>
- </ul>
- </ul>
- </xsl:template>
-
- <xsl:template match="maxElements">
- <ul>
- <ul>
- <xsl:value-of select="concat(' ; maximum number of Elements : ',replace('[\r\n]+',' '))"/>
- </ul>
- </ul>
- </xsl:template>
-
- <xsl:template match="elements">
- <ul>
- <ul>
- Possible values:
- <xsl:apply-templates select="element">
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
- </ul>
- </ul>
- </xsl:template>
-
- <xsl:template match="elements/element">
- <xsl:value-of select="concat(' ; ',@name,' : ',replace(description,'[\r\n]+',' '))"/>
- </xsl:template>
-
- <!-- Extra content for program nodes -->
-
- <xsl:template match="parameterList">
- <ul>
- <ul>
- Will be called with the following parameters:
- <xsl:apply-templates select="parameter"/>
- </ul>
- </ul>
- </xsl:template>
-
- <xsl:template match="parameterList/parameter">
- <xsl:value-of select="concat(' ; ',@name,' : ',replace(description,'[\r\n]+',' '))"/>
- </xsl:template>
-
- <!-- Extra content for all nodes -->
-
- <xsl:template match="default">
- <ul><ul><xsl:value-of select="concat(' ; Default : ',replace(.,'[\r\n]+',' '))"/></ul></ul>
- </xsl:template>
-
- <xsl:template name="default"><xsl:if test="@default">
- <ul><ul> ; Default : <xsl:value-of select="@default"/></ul></ul>
- </xsl:if></xsl:template>"
-
- <xsl:template name="since"><xsl:if test="@since">
- <ul><ul> ; Since Version : <xsl:value-of select="@since"/></ul></ul>
- </xsl:if></xsl:template>
-
- <!-- -->
-
- <xsl:template name="printdirname"><xsl:if test="@type='symbolic'">''</xsl:if><xsl:value-of select="@name"/><xsl:if test="@type='symbolic'">''</xsl:if></xsl:template>
- <xsl:template match="description"><xsl:apply-templates/></xsl:template>
- <xsl:template match="ulink">[<xsl:value-of select="@url"/><xsl:value-of select="concat(' ',replace(.,'[\r\n]+',' '))"/>]</xsl:template>
- <xsl:template match="br"><br /></xsl:template>
- <xsl:template match="p"><div><xsl:apply-templates/></div></xsl:template>
- <xsl:template match="tool"><code><xsl:apply-templates/></code></xsl:template>
- <xsl:template match="command"><code><xsl:apply-templates/></code></xsl:template>
- <xsl:template match="directory"><xsl:apply-templates/></xsl:template>
- <xsl:template match="optionref">[[#<xsl:choose>
- <xsl:when test="@ref"><xsl:value-of select="@ref"/></xsl:when>
- <xsl:otherwise><xsl:apply-templates/></xsl:otherwise>
- </xsl:choose>|<xsl:apply-templates/>]]</xsl:template>
-
- <xsl:template match="filename">[file://<xsl:value-of select="text()"/>]</xsl:template>
-
-</xsl:stylesheet>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml"
- version="1.0">
-
- <xsl:output method="xml"
- indent="yes"
- doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
-
- <xsl:param name="confdir"/>
-
- <xsl:template match="/">
- <html>
- <xsl:apply-templates/>
- </html>
- </xsl:template>
-
- <xsl:template match="database">
- <head>
- <title>The <xsl:value-of select="$confdir"/> directory</title>
- <link rel="alternate stylesheet" title="gras" type="text/css" href="css/configuration-lsd.css" />
- <link rel="alternate stylesheet" title="gras1" type="text/css" href="css/configuration-lsd1.css" />
- <link rel="alternate stylesheet" title="flower" type="text/css" href="css/configuration-flower.css" />
- <link rel="alternate stylesheet" title="boring" type="text/css" href="configuration.css" />
- <link rel="stylesheet" title="weedpage" type="text/css" href="css/WeedPageStyle.css" />
- </head>
- <body>
- <h1>The content of the <xsl:value-of select="$confdir"/> directory</h1>
-
- <xsl:call-template name="collection">
- <xsl:with-param name="thisdir"><xsl:value-of select="$confdir"/></xsl:with-param>
- </xsl:call-template>
- </body>
- </xsl:template>
-
- <xsl:template name="collection">
- <xsl:param name="thisdir"/>
- <xsl:if test="count(scalar) + count(link) + count(program) + count(data) + count(hash) + count(list) + count(boolean) + count(collection)>0">
- <ul>
- <xsl:if test="@id"><xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute></xsl:if>
- <xsl:call-template name="dir-iterate">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- </xsl:call-template>
- </ul>
- </xsl:if>
- </xsl:template>
-
- <xsl:template name="dir-iterate">
- <xsl:param name="thisdir"/>
- <xsl:apply-templates select="scalar|link|program|data|hash|list|boolean">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
-
- <xsl:apply-templates select="collection">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
- </xsl:template>
-
- <xsl:template match="program">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">script</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="hash">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">hash</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="scalar">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">file</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="data">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">data</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="list">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">list</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="link">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">symlink</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="boolean">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">boolean</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
- </li>
- </xsl:template>
-
- <xsl:template match="collection">
- <xsl:param name="thisdir"/>
- <li>
- <xsl:call-template name="printfullname">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
- <xsl:with-param name="style">directory</xsl:with-param>
- </xsl:call-template>
- <xsl:call-template name="printcontent"/>
-
- <xsl:call-template name="collection">
- <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/>/<xsl:call-template name="printdirname"/></xsl:with-param>
- </xsl:call-template>
- </li>
- </xsl:template>
-
- <xsl:template match="collection" mode="printrpath">
- <xsl:text>/</xsl:text>
- <span class="{@type}">
- <xsl:value-of select="@name"/>
- </span>
- </xsl:template>
-
- <xsl:template match="elements">
- <div class="elements">
- <dl>
- <xsl:apply-templates select="element">
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
- </dl>
- </div>
- </xsl:template>
-
- <xsl:template match="elements/element">
- <dt class="elements">
- <xsl:if test="@id"><xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute></xsl:if>
- <xsl:value-of select="@name"/>
- </dt>
- <dd class="elements"><xsl:apply-templates select="description"/></dd>
- </xsl:template>
-
- <xsl:template name="printfullname">
- <xsl:param name="thisdir"/>
- <xsl:param name="style"/>
- <xsl:if test="@id"><xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute></xsl:if>
- <span class="{$style}">
- <xsl:value-of select="$confdir"/>
- <xsl:apply-templates select="ancestor-or-self::collection" mode="printrpath"/>
- </span>
- </xsl:template>
-
- <xsl:template name="printname">
- <xsl:param name="thisdir"/>
- <xsl:param name="style"/>
- <xsl:if test="@id"><xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute></xsl:if>
- <span class="{$style}">
- <xsl:attribute name="title">
- <xsl:value-of select="$thisdir"/>/<xsl:call-template name="printdirname"/>
- </xsl:attribute>
- <xsl:value-of select="@name"/>
- </span>
- </xsl:template>
-
- <xsl:template name="printcontent">
- <br/>
- <xsl:apply-templates select="description"/>
- <xsl:apply-templates select="elements"/>
- </xsl:template>
-
- <xsl:template name="printdirname">
- <xsl:if test="@type='symbolic'">$</xsl:if>
- <xsl:value-of select="@name"/>
- </xsl:template>
-
- <xsl:template match="description">
- <div class="description">
- <xsl:apply-templates/>
- </div>
- </xsl:template>
-
- <xsl:template match="ulink">
- <a href="{@url}"><xsl:apply-templates/></a>
- </xsl:template>
-
- <xsl:template match="br">
- <br />
- </xsl:template>
-
- <xsl:template match="p">
- <div><xsl:apply-templates/></div>
- </xsl:template>
-
- <xsl:template match="tool">
- <code class="tool"><xsl:apply-templates/></code>
- </xsl:template>
-
- <xsl:template match="command">
- <code class="command"><xsl:apply-templates/></code>
- </xsl:template>
-
- <xsl:template match="directory">
- <span class="directoryname"><xsl:apply-templates/></span>
- </xsl:template>
-
- <xsl:template match="filename">
- <a class="filename">
- <xsl:attribute name="href">file://<xsl:value-of select="text()"/></xsl:attribute>
- <xsl:apply-templates/>
- </a>
- </xsl:template>
-
- <xsl:template match="optionref">
- <a class="optionref">
- <xsl:attribute name="href">
- <xsl:choose>
- <xsl:when test="@ref">#<xsl:value-of select="@ref"/></xsl:when>
- <xsl:otherwise>#<xsl:value-of select="text()"/></xsl:otherwise>
- </xsl:choose>
- </xsl:attribute><xsl:apply-templates/>
- </a>
- </xsl:template>
-</xsl:stylesheet>
+++ /dev/null
-body {
- font-size: 12pt;
- background-color: white;
- margin: 10px;
-}
-
-span.directory {
- //text-decoration: underline;
-}
-
-
-span.symlink:after {
- content: " [symlink]";
- font-size: 8pt;
- font-style: normal;
-}
-
-span.symlink {
- text-decoration: none;
- font-style: italic;
-}
-
-span.script:after {
- content: " [script]";
- font-size: 8pt;
- font-style: normal;
-}
-
-span.script {
- color: gray;
-}
-
-span.symbolic:before { content: "<"; }
-span.symbolic:after { content: ">"; }
-
-span.symbolic {
- font-style: italic;
- text-decoration: none;
-}
-
-div.description {
- background-color: #ffffdd;
-}
-
-
-div.elements {
- padding-left: 1em;
-}
-
-dd.elements {
-}
-
-dt.elements {
-}
+++ /dev/null
-<!ELEMENT database (collection*)>
-
-<!ELEMENT collection (collection?,data?,link?,scalar?,program?,boolean?,list?,description?,hash?)*>
-<!ATTLIST collection
- id CDATA #IMPLIED
- name CDATA #REQUIRED
- type CDATA #IMPLIED
- use CDATA #IMPLIED
- since CDATA #IMPLIED>
-
-<!ELEMENT data (description?)>
-<!ATTLIST data
- id CDATA #IMPLIED
- name CDATA #REQUIRED>
-
-
-<!ELEMENT link (default?,description?)>
-<!ATTLIST link
- id CDATA #IMPLIED
- name CDATA #REQUIRED
- type CDATA #IMPLIED
- since CDATA #IMPLIED>
-<!ELEMENT default (#PCDATA)>
-
-
-<!ELEMENT scalar (default?,description?,restriction?)>
-<!ATTLIST scalar
- id CDATA #IMPLIED
- name CDATA #REQUIRED
- type CDATA #IMPLIED
- since CDATA #IMPLIED>
-
-
-<!ELEMENT description ANY>
-
-<!ELEMENT program (description?,parameterList?)>
-<!ATTLIST program
- id CDATA #IMPLIED
- name CDATA #REQUIRED
- type CDATA #IMPLIED
- since CDATA #IMPLIED>
-
-<!ELEMENT boolean (description?)>
-<!ATTLIST boolean
- id CDATA #IMPLIED
- name CDATA #REQUIRED
- default (on|off) #IMPLIED
- since CDATA #IMPLIED>
-
-<!ELEMENT list (description?,elements?)>
-<!ATTLIST list
- id CDATA #IMPLIED
- name CDATA #REQUIRED
- since CDATA #IMPLIED>
-
-
-<!ELEMENT parameterList (parameter*)>
-<!ELEMENT parameter (description?)>
-<!ATTLIST parameter
- id CDATA #IMPLIED
- name CDATA #REQUIRED
- since CDATA #IMPLIED>
-
-
-<!ELEMENT ulink (#PCDATA)>
-<!ATTLIST ulink
- url CDATA #REQUIRED
- since CDATA #IMPLIED>
-
-<!ELEMENT hash (description?,keys*)>
-<!ATTLIST hash
- id CDATA #IMPLIED
- name CDATA #REQUIRED
- since CDATA #IMPLIED>
-
-<!ELEMENT keys (key*)>
-<!ELEMENT key (description?)>
-<!ATTLIST key
- id CDATA #IMPLIED
- name CDATA #REQUIRED
- since CDATA #IMPLIED>
-
-
-<!ELEMENT elements (element*)>
-<!ELEMENT element (description?)>
-<!ATTLIST element
- name CDATA #REQUIRED
- since CDATA #IMPLIED>
-
-<!ELEMENT restriction (enumeration*)>
-<!ELEMENT enumeration EMPTY>
-<!ATTLIST enumeration
- value CDATA #REQUIRED
- since CDATA #IMPLIED>
-
-<!ELEMENT directory (#PCDATA)>
-<!ELEMENT filename (#PCDATA)>
-
-<!ELEMENT optionref (#PCDATA)>
-<!ATTLIST optionref
- ref CDATA #IMPLIED>
-
-<!ELEMENT br EMPTY>
-<!ELEMENT p ANY>
-<!ELEMENT tool (#PCDATA)>
-<!ELEMENT command (#PCDATA)>
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>The /etc/vservers directory</title>
- <link rel="alternate stylesheet" title="gras" type="text/css" href="css/configuration-lsd.css" />
- <link rel="alternate stylesheet" title="gras1" type="text/css" href="css/configuration-lsd1.css" />
- <link rel="alternate stylesheet" title="flower" type="text/css" href="css/configuration-flower.css" />
- <link rel="alternate stylesheet" title="boring" type="text/css" href="configuration.css" />
- <link rel="stylesheet" title="weedpage" type="text/css" href="css/WeedPageStyle.css" />
- </head>
- <body>
- <h1>The content of the /etc/vservers directory</h1>
- <ul>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span></span>
- <br />
- <ul>
- <li>
- <span class="symlink" title="/etc/vservers/.defaults/cachebase">cachebase</span>
- <br />
- <div class="description">
-A link to the directory which will hold cached information about
-vservers.
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/.defaults/context.dynamic">context.dynamic</span>
- <br />
- <div class="description">
-If this file exists, kernel-side dynamic contexts will be used by the "vserver
-... build" command. Otherwise a context will be generated, based on the
-contents of <a class="optionref" href="#context.next">context.next</a>.
- </div>
- </li>
- <li id="context.next">
- <span class="file" title="/etc/vservers/.defaults/context.next">context.next</span>
- <br />
- <div class="description">
-The context id to use for the next guest created by "vserver ... build".
- </div>
- </li>
- <li>
- <span class="data" title="/etc/vservers/.defaults/fstab">fstab</span>
- <br />
- <div class="description">
-The default fstab file to put in newly built guests.
- </div>
- </li>
- <li id="global-namespace-cleanup-skip">
- <span class="list" title="/etc/vservers/.defaults/namespace-cleanup-skip">namespace-cleanup-skip</span>
- <br />
- <div class="description">
-List of paths to skip during namespace cleanup.
- </div>
- </li>
- <li id="global-nonamespace">
- <span class="boolean" title="/etc/vservers/.defaults/nonamespace">nonamespace</span>
- <br />
- <div class="description">
-Disable namespace usage globally. It can be overridden for a single vserver
-by setting the <a class="optionref" href="#global-namespace">namespace</a> flag
-there.
-
-In this mode the <span class="directoryname">/vservers</span> directory must have
-the 'barrier' attribute. Else, common chroot(2) exploits are possible.
- </div>
- </li>
- <li id="global-nonamespace-cleanup">
- <span class="boolean" title="/etc/vservers/.defaults/nonamespace-cleanup">nonamespace-cleanup</span>
- <br />
- <div class="description">
-Disable namespace cleanup globally. It can be overridden for a single vserver
-by setting the <a class="optionref" href="#namespace-cleanup">namespace-cleanup</a> flag
-there.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/.defaults/run.rev">run.rev</span>
- <br />
- <div class="description">
-Path of the vserver run reverse directory. This directory contains
-symlinks named with XID numbers which point back to the configuration
-directory of vservers. Under kernel 2.4 this is required for the XID
-to VSERVER mapping; Under kernel 2.6 it is unused.
-
-NOTE: this link exists in 0.30.202+ only; in previous versions it was
-a vserver specific setting.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/.defaults/shell">shell</span>
- <br />
- <div class="description">
-Contains the pathname of the shell which will be used by the "vserver
-... enter" command. Can be overridden by the
-<a class="optionref" href="#shell">per-guest shell</a>.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/.defaults/vdirbase">vdirbase</span>
- <br />
- <div class="description">A link to the default vserver rootdirectory.</div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span></span>
- <br />
- <ul>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">build</span></span>
- <br />
- <ul>
- <li>
- <span class="list" title="/etc/vservers/.defaults/apps/build/options">options</span>
- <br />
- <div class="description">
-A list of default options to supply to vserver ... build, one option per line.
- </div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">debootstrap</span></span>
- <br />
- <ul>
- <li>
- <span class="file" title="/etc/vservers/.defaults/apps/debootstrap/mirror">mirror</span>
- <br />
- <div class="description">
-The Debian mirror to use with the <code class="tool">debootstrap</code> program
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/.defaults/apps/debootstrap/uri">uri</span>
- <br />
- <div class="description">
-When the <code class="tool">debootstrap</code> package is not installed; fetch it
-from this uri and install it at a temporary place.
- </div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">init</span></span>
- <br />
- <ul>
- <li id="global-environment">
- <span class="hash" title="/etc/vservers/.defaults/apps/init/environment">environment</span>
- <br />
- <div class="description">
-The environment to set when starting guests. Contains one VAR=VAL
-pair per line.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/.defaults/apps/init/tty">tty</span>
- <br />
- <div class="description">
-A symlink to the TTY device where input/output will be redirected from/to
-at startup via initscript.
- </div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">pkgmgmt</span></span>
- <br />
- <ul>
- <li>
- <span class="data" title="/etc/vservers/.defaults/apps/pkgmgmt/apt.conf">apt.conf</span>
- <br />
- <div class="description">The default apt.conf which is going to be used. It is overridden by
-distribution specific configuration file.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/.defaults/apps/pkgmgmt/base">base</span>
- <br />
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">vdevmap</span></span>
- <br />
- <ul>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">vdevmap</span>/<span class="sybmolic">x</span></span>
- <br />
- <div class="description">'x' is an arbitrary name, replace it with e.g. device names</div>
- <ul>
- <li>
- <span class="boolean" title="/etc/vservers/.defaults/apps/vdevmap/x/create">create</span>
- <br />
- <div class="description">When this file exists, the device can be created (if the guest has <a class="optionref" href="#bcapabilities">CAP_MKNOD</a>)</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/.defaults/apps/vdevmap/x/device">device</span>
- <br />
- <div class="description">Contains the name of a device node</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/.defaults/apps/vdevmap/x/flags">flags</span>
- <br />
- <div class="description">This file will let you specify unimplemented flags manually</div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/.defaults/apps/vdevmap/x/open">open</span>
- <br />
- <div class="description">When this file exists, the device can be opened</div>
- </li>
- <li id="vdevmap-remap">
- <span class="boolean" title="/etc/vservers/.defaults/apps/vdevmap/x/remap">remap</span>
- <br />
- <div class="description">
-When this file exists, <a class="optionref" href="#vdevmap-target">target</a> will
-have to exist as well and opening the device will in fact open the target device
- </div>
- </li>
- <li id="vdevmap-target">
- <span class="file" title="/etc/vservers/.defaults/apps/vdevmap/x/target">target</span>
- <br />
- <div class="description">Contains the device node of the target node to open instead of the device when <a class="optionref" href="#vdevmap-remap">remap</a> is set</div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">vlogin</span></span>
- <br />
- <ul>
- <li id="vlogin-disable">
- <span class="boolean" title="/etc/vservers/.defaults/apps/vlogin/disable">disable</span>
- <br />
- <div class="description">
-When this file exists, vlogin isn't used on vserver <guest> enter.
- </div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">vprocunhide</span></span>
- <br />
- <ul>
- <li>
- <span class="list" title="/etc/vservers/.defaults/apps/vprocunhide/files">files</span>
- <br />
- <div class="description">
-A list of files which will be made visible by vprocunhide. Wildcards are
-allowed and anything ending in '/' will be processed recursively. When this file exists,
-it overrides the defaults in SYSDEFAULTDIR/vprocunhide-files. The entries there must be
-absolute filenames inclusive the leading '/proc'.
- </div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">vshelper</span></span>
- <br />
- <ul>
- <li>
- <span class="boolean" title="/etc/vservers/.defaults/apps/vshelper/debug">debug</span>
- <br />
- <div class="description">
-When existing, the vshelper execution will be traced.
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/.defaults/apps/vshelper/disabled">disabled</span>
- <br />
- <div class="description">
-When existing, the vshelper functionality will be disabled for all
-vservers.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/.defaults/apps/vshelper/logfile">logfile</span>
- <br />
- <div class="description">
-The file where output will be logged to when <code class="tool">vshelper</code>
-is invoked from the kernel. This should point somewhere e.g. into
-<span class="directoryname">/var/log</span>.
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/.defaults/apps/vshelper/warning-disabled">warning-disabled</span>
- <br />
- <div class="description">
-When existing, sanity checks for the vshelper functionality will be
-skipped.
- </div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">vshelper</span>/<span class="">vshelper-methods</span></span>
- <br />
- <ul>
- <li>
- <span class="script" title="/etc/vservers/.defaults/apps/vshelper/vshelper-methods/$handler">handler</span>
- <br />
- <div class="description">
-See <a class="optionref" href="#vshelper-action">vshelper/action</a>.
- </div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">vunify</span></span>
- <br />
- <ul>
- <li>
- <span class="list" title="/etc/vservers/.defaults/apps/vunify/exclude">exclude</span>
- <br />
- <div class="description">Static list of excluded files.</div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/.defaults/apps/vunify/pgkmgmt-force">pgkmgmt-force</span>
- <br />
- <div class="description">
-When existing, information from packagemanagement will be used to
-create dynamic exclude-lists. This option requires that (a known)
-packagemanagement is configured for the vserver; else the requested
-operation will fail. Most tools assume 'on' as the default value.
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/.defaults/apps/vunify/pkgmgmt-ignore">pkgmgmt-ignore</span>
- <br />
- <div class="description">
-When existing, information from packagemanagement will not be used to
-create dynamic exclude-lists.
- </div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">apps</span>/<span class="">vunify</span>/<span class="">hash</span></span>
- <br />
- <div class="description">
-A directory which will be used as the storage place for the
-<code class="tool">vhashify</code> command.
- </div>
- <ul>
- <li>
- <span class="symlink" title="/etc/vservers/.defaults/apps/vunify/hash/$id">id</span>
- <br />
- <div class="description">
-Points to a directory within the filesystems which are used for the
-vservers. There must be not more than one of such a directory per
-filesystem.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/.defaults/apps/vunify/hash/method">method</span>
- <br />
- <div class="description">The used hash method.</div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">files</span></span>
- <br />
- <div class="description">This directory contains some files which will be copied to the guests during build.</div>
- <ul>
- <li>
- <span class="data" title="/etc/vservers/.defaults/files/hosts">hosts</span>
- <br />
- <div class="description">The default /etc/hosts file.</div>
- </li>
- <li>
- <span class="data" title="/etc/vservers/.defaults/files/krb.conf">krb.conf</span>
- <br />
- <div class="description">The default /etc/krb.conf file.</div>
- </li>
- <li>
- <span class="data" title="/etc/vservers/.defaults/files/krb.realms">krb.realms</span>
- <br />
- <div class="description">The default /etc/krb.realms file.</div>
- </li>
- <li>
- <span class="data" title="/etc/vservers/.defaults/files/krb5.conf">krb5.conf</span>
- <br />
- <div class="description">The default /etc/krb5.conf file.</div>
- </li>
- <li>
- <span class="data" title="/etc/vservers/.defaults/files/ldap.conf">ldap.conf</span>
- <br />
- <div class="description">The default /etc/ldap.conf file.</div>
- </li>
- <li>
- <span class="data" title="/etc/vservers/.defaults/files/localtime">localtime</span>
- <br />
- <div class="description">The default /etc/localtime file.</div>
- </li>
- <li>
- <span class="data" title="/etc/vservers/.defaults/files/nsswitch.conf">nsswitch.conf</span>
- <br />
- <div class="description">The default /etc/nsswitch.conf file.</div>
- </li>
- <li>
- <span class="data" title="/etc/vservers/.defaults/files/resolv.conf">resolv.conf</span>
- <br />
- <div class="description">The default /etc/resolv.conf file.</div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="fixed">init</span></span>
- <br />
- <ul>
- <li>
- <span class="data" title="/etc/vservers/.defaults/init/mtab">mtab</span>
- <br />
- <div class="description">Default mtab file</div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.defaults</span>/<span class="">interfaces</span></span>
- <br />
- <ul>
- <li id="global-vlandev">
- <span class="boolean" title="/etc/vservers/.defaults/interfaces/vlandev">vlandev</span>
- <br />
- <div class="description">
-When this file exists, the steps which setup and destroy a VLAN
-interface will be executed.
- </div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.distributions</span></span>
- <br />
- <ul>
- <li>
- <span class="directory">/etc/vservers/<span class="">.distributions</span>/<span class="symbolic">dist</span></span>
- <br />
- <ul>
- <li>
- <span class="data" title="/etc/vservers/.distributions/$dist/apt.conf">apt.conf</span>
- <br />
- <div class="description">
-The default apt.conf which is going to be used. It overrides the
-apt.conf from CONFDIR/.defaults/apps/pkgmgmt.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/.distributions/$dist/dev">dev</span>
- <br />
- <div class="description"></div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/.distributions/$dist/execdir">execdir</span>
- <br />
- <div class="description">
-Directory with all executables and libraries which are required for
-this distribution.
- </div>
- </li>
- <li>
- <span class="script" title="/etc/vservers/.distributions/$dist/initpost">initpost</span>
- <br />
- <div class="description">
-Script which will be executed after packages are installed.
- </div>
- </li>
- <li>
- <span class="script" title="/etc/vservers/.distributions/$dist/initpre">initpre</span>
- <br />
- <div class="description">
-Script which will be executed before packages will be installed.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/.distributions/$dist/rpmlib">rpmlib</span>
- <br />
- <div class="description">
-Directory which overrides <span class="directoryname">/usr/lib/rpm</span>.
- </div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.distributions</span>/<span class="symbolic">dist</span>/<span class="">apt</span></span>
- <br />
- <div class="description">
-Default content of the <span class="directoryname">/etc/apt/</span> directory.
- </div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.distributions</span>/<span class="symbolic">dist</span>/<span class="">pkgs</span></span>
- <br />
- <div class="description">
-Contains files with packagenames.
- </div>
- <ul>
- <li>
- <span class="list" title="/etc/vservers/.distributions/$dist/pkgs/list">list</span>
- <br />
- <div class="description">
-File which contains the name of packages. On top of file the special
-keywords '--reinstall' and '--can-fail' are possible.
- </div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.distributions</span>/<span class="symbolic">dist</span>/<span class="">pubkeys</span></span>
- <br />
- <div class="description">
-Directory with GPG pubkeys which are used to sign the packages of this
-distribution.
- </div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.distributions</span>/<span class="symbolic">dist</span>/<span class="">rpm</span></span>
- <br />
- <div class="description">
-Default content of the <span class="directoryname">/etc/rpm</span> directory.
- </div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.distributions</span>/<span class="symbolic">dist</span>/<span class="">yum</span></span>
- <br />
- <div class="description">
-The default, yum-related content of the <span class="directoryname">/etc</span>
-directory.
- </div>
- <ul>
- <li>
- <span class="file" title="/etc/vservers/.distributions/$dist/yum/yum.conf">yum.conf</span>
- <br />
- <div class="description">
-The master yum configuration file. It supports the @YUMETCDIR@,
-@YUMCACHEDIR@ and @YUMLOGDIR@ placeholder which will be replaced at
-<code class="command">vserver ... build</code> time.
- </div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="">.distributions</span>/<span class="symbolic">dist</span>/<span class="">yum.repos.d</span></span>
- <br />
- <div class="description">A directory with yum repositories.</div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span></span>
- <br />
- <div class="description">
-The configuration directory for the vserver vserver-name.
- </div>
- <ul>
- <li id="bcapabilities">
- <span class="list" title="/etc/vservers/$vserver-name/bcapabilities">bcapabilities</span>
- <br />
- <div class="description">
-Contains the system capabilities. See
-<a href="http://svn.linux-vserver.org/svn/util-vserver/trunk/lib/bcaps-v13.c">lib/bcaps-v13.c</a>
-for possible values.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/$vserver-name/cache">cache</span>
- <br />
- <div class="description">
-Path of the storage area for cached information about this vserver.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/capabilities">capabilities</span>
- <br />
- <div class="description">
-Contains per line a capability. This file is used for the 2.4 kernel
-only; for 2.6 use <a class="optionref" href="#bcapabilities">bcapabilities</a>.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/ccapabilities">ccapabilities</span>
- <br />
- <div class="description">
-Contains the context capabilities. See <a href="http://svn.linux-vserver.org/svn/util-vserver/trunk/lib/ccaps-v13.c">lib/ccaps-v13.c</a>
-for possible values.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/context">context</span>
- <br />
- <div class="description">
-Contains the context which shall be used for the vserver.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/flags">flags</span>
- <br />
- <div class="description">
-Contains per line a flag. See <a href="http://svn.linux-vserver.org/svn/util-vserver/trunk/lib/cflags-v13.c">lib/cflags-v13.c</a>
-for possible values.
- </div>
- </li>
- <li id="fstab">
- <span class="data" title="/etc/vservers/$vserver-name/fstab">fstab</span>
- <br />
- <div class="description">
-The fstab file for the vserver. Entries in this file will be mounted
-within the network context of the host. Use the
-<a class="optionref" href="#fstab.remote">fstab.remote</a> file when you want that the
-mounting happens in the network context of the vserver. In most cases
-the 'fstab' file should be used.
- </div>
- </li>
- <li id="fstab.remote">
- <span class="data" title="/etc/vservers/$vserver-name/fstab.remote">fstab.remote</span>
- <br />
- <div class="description">
-The fstab file for the vserver. Entries in this file will be mounted
-within the network context of the host; this means that mount will be
-called as <code class="command">chbind <options> mount ...</code>. See
-<a class="optionref" href="#fstab">fstab</a> also.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/name">name</span>
- <br />
- <div class="description">
-Contains the name of the vserver. When not given, the basename of the directory
-will be assumed as this name.
- </div>
- </li>
- <li id="global-namespace">
- <span class="boolean" title="/etc/vservers/$vserver-name/namespace">namespace</span>
- <br />
- <div class="description">
-Overrides the global <a class="optionref" href="#global-nonamespace">nonamespace</a> flag and enables
-namespace usage for the current vserver.
- </div>
- </li>
- <li id="namespace-cleanup">
- <span class="boolean" title="/etc/vservers/$vserver-name/namespace-cleanup">namespace-cleanup</span>
- <br />
- <div class="description">
-Overrides the global <a class="optionref" href="#global-nonamespace-cleanup">nonamespace-cleanup</a> flag and enables
-namespace cleanup for the current vserver.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/namespace-cleanup-skip">namespace-cleanup-skip</span>
- <br />
- <div class="description">
-List of paths to skip during namespace cleanup. This overrides the global
-<a class="optionref" href="#global-namespace-cleanup-skip">namespace-cleanup-skip</a>
-file.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/ncapabilities">ncapabilities</span>
- <br />
- <div class="description">
-Contains the network capabilities. See <a href="http://svn.linux-vserver.org/svn/util-vserver/trunk/lib/ncaps-net.c">lib/ncaps-net.c</a>
-for possible values.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/nflags">nflags</span>
- <br />
- <div class="description">
-Contains a network flag per line. See <a href="http://svn.linux-vserver.org/svn/util-vserver/trunk/lib/nflags-net.c">lib/nflags-net.c</a>
-for possible values.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/nice">nice</span>
- <br />
- <div class="description">
-The nice-level on which the vserver will be started.
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/nonamespace">nonamespace</span>
- <br />
- <div class="description">
-Disables namespace usage for the current vserver.
-
-In this mode the <span class="directoryname">/vservers</span> directory must have
-the 'barrier' attribute. Else, common chroot(2) exploits are possible.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/personality">personality</span>
- <br />
- <div class="description">
-Used to set the personality of the vserver. First line in the file
-is the personality-type followed by flags (one item per line). See
-<a class="filename" href="file:///usr/include/linux/personality.h">/usr/include/linux/personality.h</a> for possible
-values.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/$vserver-name/run">run</span>
- <br />
- <div class="description">
-Points to a file which will contain the XID of the running vserver. When
-the vserver is stopped, this can be a dangling symlink.
- </div>
- </li>
- <li>
- <span class="hash" title="/etc/vservers/$vserver-name/schedule">schedule</span>
- <br />
- <div class="description">
-[deprecated; use <a class="optionref" href="#sched">sched</a> instead] Contains the
-scheduler parameters, one per line.
-
-The Hard CPU limit uses a mechanism called a Token Bucket. the
-concept is simple: you have a bucket of a certain size which is
-filled with a specified amount R of tokens each interval T until the
-maximum is reached (excess tokens are spilled). At each timer tick,
-a running process consumes one token from the bucket, unless the
-bucket is empty. If the bucket is empty the process is put in the
-hold queue. When the bucket has been refilled to at least M tokens,
-all on hold processes are rescheduled.
-
-See the <a href="http://linux-vserver.org/Scheduler+Parameters">Linux
-VServer Wiki</a> for more information about this file.
- </div>
- </li>
- <li id="shell">
- <span class="file" title="/etc/vservers/$vserver-name/shell">shell</span>
- <br />
- <div class="description">
-Contains the pathname of the shell which will be used by the "vserver
-... enter" command.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/$vserver-name/vdir">vdir</span>
- <br />
- <div class="description">
-Path of the vserver root directory.
- </div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">apps</span></span>
- <br />
- <ul>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">apps</span>/<span class="">init</span></span>
- <br />
- <ul>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/apps/init/cmd.prepare">cmd.prepare</span>
- <br />
- <div class="description">
-The command which is used to setup the init-system (e.g. to set the
-runlevel in the utmp-file). Each option must be on a separate line.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/apps/init/cmd.start">cmd.start</span>
- <br />
- <div class="description">
-The command which is used to start the vserver. Each option must be on
-a separate line.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/apps/init/cmd.start-sync">cmd.start-sync</span>
- <br />
- <div class="description">
-The command which is used to wait on the vserver after it has been
-started. Each option must be on a separate line. This file will be
-ignored when the <a class="optionref" href="#sync">sync</a> flag does not exist and the
-'--sync' option was not used.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/apps/init/cmd.stop">cmd.stop</span>
- <br />
- <div class="description">
-The command which is used to stop the vserver. Each option must be on
-a separate line.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/apps/init/cmd.stop-sync">cmd.stop-sync</span>
- <br />
- <div class="description">
-The command which is used to wait on the vserver after it has been
-stopped. Each option must be on a separate line. This file will be
-ignored when the <a class="optionref" href="#sync">sync</a> flag does not exist and the
-'--sync' option was not used.
- </div>
- </li>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/apps/init/depends">depends</span>
- <br />
- <div class="description">
-This file is used to configure vservers which must be running before
-the current vserver can be started. At shutdown, the current vserver
-will be stopped before its dependencies. Content of this file are
-vserver ids (one name per line).
- </div>
- </li>
- <li>
- <span class="hash" title="/etc/vservers/$vserver-name/apps/init/environment">environment</span>
- <br />
- <div class="description">
-The environment to set when starting the guest. Contains one VAR=VAL
-pair per line.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/apps/init/killseq">killseq</span>
- <br />
- <div class="description">
-Contains the 'signal [wait signal]*' sequence which is used to stop
-the vserver.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/apps/init/mark">mark</span>
- <br />
- <div class="description">
-This file is used to mark group of vservers which shall be started/stopped
-together by the initscript. Content is a simple string like 'default'.
- </div>
- </li>
- <li>
- <span class="data" title="/etc/vservers/$vserver-name/apps/init/mtab">mtab</span>
- <br />
- <div class="description">
-The initial-mtab which will be used for the vserver.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/apps/init/runlevel">runlevel</span>
- <br />
- <div class="description">The start runlevel.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/apps/init/runlevel.start">runlevel.start</span>
- <br />
- <div class="description">The start runlevel.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/apps/init/runlevel.stop">runlevel.stop</span>
- <br />
- <div class="description">The stop runlevel.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/apps/init/style">style</span>
- <br />
- <div class="description">
-Contains the init-style.
- </div>
- </li>
- <li id="sync">
- <span class="boolean" title="/etc/vservers/$vserver-name/apps/init/sync">sync</span>
- <br />
- <div class="description">
-If this file is not present, all 'cmd.*-sync files will be ignored.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/$vserver-name/apps/init/tty">tty</span>
- <br />
- <div class="description">
-A symlink to the TTY device where input/output will be redirected
-from/to at startup via initscript.
- </div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">apps</span>/<span class="">vshelper</span></span>
- <br />
- <ul>
- <li id="vshelper-action">
- <span class="file" title="/etc/vservers/$vserver-name/apps/vshelper/action">action</span>
- <br />
- <div class="description">
-The action which is going to be executed when a vshelper event
-occurs. The default value is 'restart', but there can be defined own
-methods by placing scripts into the
-<a class="optionref" href="#vshelper-methods">vshelper-methods</a> directories. These scripts are
-fed with the same arguments as the <code class="tool">vshelper</code> script.
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/apps/vshelper/debug">debug</span>
- <br />
- <div class="description">
-When existing, the vshelper execution will be traced for this vserver.
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/apps/vshelper/disabled">disabled</span>
- <br />
- <div class="description">
-When existing, the vshelper functionality will be disabled for this
-vserver.
- </div>
- </li>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/apps/vshelper/$event">event</span>
- <br />
- <div class="description">
-When existing, these scripts will be executed *instead* of the default
-handler defined in 'action'. Their name must match the event which caused
-the execution of <code class="tool">vshelper</code>; e.g. 'restart' or 'poweroff'. See
-the vs_reboot() function in the kernel for more details.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/apps/vshelper/sync-timeout">sync-timeout</span>
- <br />
- <div class="description">
-The timeout in seconds which is used when synchronising vserver
-startup/shutdown with the vshelper. When not set, 30 seconds will be
-assumed.
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/apps/vshelper/warning-disabled">warning-disabled</span>
- <br />
- <div class="description">
-When existing, sanity checks for the vshelper functionality will be
-skipped.
- </div>
- </li>
- </ul>
- </li>
- <li id="vshelper-methods">
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">apps</span>/<span class="">vshelper-methods</span></span>
- <br />
- <ul id="vshelper-methods">
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/apps/vshelper-methods/$handler">handler</span>
- <br />
- <div class="description">
-See <a class="optionref" href="#vshelper-action">vshelper/action</a>.
- </div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">apps</span>/<span class="">vunify</span></span>
- <br />
- <div class="description">
-This directory contains configuration data required for vserver
-unification.
- </div>
- <ul>
- <li>
- <span class="list" title="/etc/vservers/$vserver-name/apps/vunify/exclude">exclude</span>
- <br />
- <div class="description">
-<div>Static list of files which are excluded for unification. This list
-supports an rsync-like syntax: when a file is prefixed by '+', it is a
-candidate for unification; when there is no prefix or a '-' or a '~' it
-will be excluded. Shell-wildcards are allowed for the filenames.</div>
-<div>When used with <code class="tool">vcopy</code>, the '~' prefix prevents copying
-of the file entirely (e.g. for keyfiles). With this tool, the file will
-be copied instead of hardlinked when the '-' prefix is used.</div>
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/apps/vunify/pgkmgmt-force">pgkmgmt-force</span>
- <br />
- <div class="description">
-When existing, information from packagemanagement will be used to
-create dynamic exclude-lists. This option requires that (a known)
-packagemanagement is configured for the vserver; else the requested
-operation will fail. Most tools assume 'on' as the default value.
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/apps/vunify/pkgmgmt-ignore">pkgmgmt-ignore</span>
- <br />
- <div class="description">
-When existing, information from packagemanagement will not be used to
-create dynamic exclude-lists.
- </div>
- </li>
- <li>
- <span class="symlink" title="/etc/vservers/$vserver-name/apps/vunify/$refserver.X">refserver.X</span>
- <br />
- <div class="description">
-These are symlinks to the configuration directory
-(e.g. CONFDIR/vservers/<id>) of a refserver. There may be
-multiple such symlinks but they must be prefixed by 'refserver.' and
-will be processed in alphanumerical order.
- </div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">apps</span>/<span class="">vunify</span>/<span class="">hash</span></span>
- <br />
- <div class="description">
-A directory which will be used as the storage place for the
-<code class="tool">vhashify</code> command.
- </div>
- <ul>
- <li>
- <span class="symlink" title="/etc/vservers/$vserver-name/apps/vunify/hash/$id">id</span>
- <br />
- <div class="description">
-Points to a directory within the filesystems which are used for the
-vservers. There must be not more than one of such a directory per
-filesystem.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/apps/vunify/hash/method">method</span>
- <br />
- <div class="description">The used hash method.</div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">cpuset</span></span>
- <br />
- <ul>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/cpuset/cpu_exclusive">cpu_exclusive</span>
- <br />
- <div class="description">Is the CPU assignment exclusive?</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/cpuset/cpus">cpus</span>
- <br />
- <div class="description">The list of CPUs in this cpuset</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/cpuset/mems">mems</span>
- <br />
- <div class="description">The list of Memory Nodes in this cpuset</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/cpuset/mems_exclusive">mems_exclusive</span>
- <br />
- <div class="description">Is the memory node assignment exclusive?</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/cpuset/name">name</span>
- <br />
- <div class="description">The name of the cpuset for this vserver</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/cpuset/nocreate">nocreate</span>
- <br />
- <div class="description">When this file exists, the cpuset will be assumed to exist already</div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">dlimits</span></span>
- <br />
- <ul>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">dlimits</span>/<span class="symbolic">dlimit</span></span>
- <br />
- <ul>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/dlimits/$dlimit/directory">directory</span>
- <br />
- <div class="description">The directory to which the limit should be applied</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/dlimits/$dlimit/inodes_total">inodes_total</span>
- <br />
- <div class="description">The amount of inodes this vserver should be limited to</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/dlimits/$dlimit/reserved">reserved</span>
- <br />
- <div class="description">How much space (percentage-wise) should be reserved for the root user</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/dlimits/$dlimit/space_total">space_total</span>
- <br />
- <div class="description">The amount of space this vserver should be limited to (measured in blocks of 1024 bytes)</div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">interfaces</span></span>
- <br />
- <ul>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/bcast">bcast</span>
- <br />
- <div class="description">The default broadcast address.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/dev">dev</span>
- <br />
- <div class="description">The default network device.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/mask">mask</span>
- <br />
- <div class="description">The default network mask.</div>
- </li>
- <li id="local-novlandev">
- <span class="boolean" title="/etc/vservers/$vserver-name/interfaces/novlandev">novlandev</span>
- <br />
- <div class="description">
-When this file exists, the steps which setup and destroy a VLAN
-interface will be skipped. This overrides the global
-<a class="optionref" href="#global-vlandev">vlandev</a> setting for
-this vserver.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/prefix">prefix</span>
- <br />
- <div class="description">The default network prefix-length.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/scope">scope</span>
- <br />
- <div class="description">The default scope of the network interfaces.</div>
- </li>
- <li id="local-vlandev">
- <span class="boolean" title="/etc/vservers/$vserver-name/interfaces/vlandev">vlandev</span>
- <br />
- <div class="description">
-When this file exists, the steps which setup and destroy a VLAN
-interface will be executed for all interfaces of this vserver.
- </div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">interfaces</span>/<span class="symbolic">iface</span></span>
- <br />
- <div class="description">
-'iface' is an arbitrary name for the interface; the value itself is
-not important but may be interesting regarding interface-creation and
-usage with <code class="tool">chbind</code>. Both happens in alphabetical order and
-numbers like '00' are good names for these directories.
- </div>
- <ul>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/$iface/bcast">bcast</span>
- <br />
- <div class="description">The broadcast address.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/$iface/dev">dev</span>
- <br />
- <div class="description">The network device.</div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/interfaces/$iface/disabled">disabled</span>
- <br />
- <div class="description">When this file exists, this interface will be ignored.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/$iface/ip">ip</span>
- <br />
- <div class="description">The ip which will be assigned to this interface.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/$iface/mask">mask</span>
- <br />
- <div class="description">The network mask.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/$iface/name">name</span>
- <br />
- <div class="description">
-When this file exists, the interface will be named with the text in
-this file. Without such an entry, the IP will not be shown by
-<code class="tool">ifconfig</code> but by <code class="command">ip addr ls</code> only. Such
-a labeled interface is known as an "alias" also (e.g. 'eth0:foo').
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/interfaces/$iface/nodev">nodev</span>
- <br />
- <div class="description">
-When this file exists, the interface will be assumed to exist
-already. This can be used to assign primary interfaces which are
-created by the host or another vserver.
- </div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/interfaces/$iface/novlandev">novlandev</span>
- <br />
- <div class="description">
-When this file exists, the steps which setup and destroy a VLAN
-interface will be skipped. This will override the global
-<a class="optionref" href="#global-vlandev">vlandev</a> and the per-guest
-<a class="optionref" href="#local-vlandev">vlandev</a>.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/$iface/prefix">prefix</span>
- <br />
- <div class="description">The network prefix-length.</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/interfaces/$iface/scope">scope</span>
- <br />
- <div class="description">The scope of the network interface.</div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/interfaces/$iface/vlandev">vlandev</span>
- <br />
- <div class="description">
-When this file exists, the steps which setup and destroy a VLAN
-interface will be executed.
- </div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">rlimits</span></span>
- <br />
- <div class="description">
-A directory with resource limits. Possible resources are cpu, fsize,
-data, stack, core, rss, nproc, nofile, memlock, as, locks, msgqueue,
-nsock, openfd, anon, shmem, semary, nsems and dentry. This
-configuration will be honored for kernel 2.6 only.
- </div>
- <ul>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/rlimits/$resource">resource</span>
- <br />
- <div class="description">
-A file which contains the hard- and soft-limit of the given resource
-in the first line. The special keyword 'inf' is recognized.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/rlimits/$resource.hard">resource.hard</span>
- <br />
- <div class="description">
-A file which contains the hard-limit of the given resource in the first
-line. The special keyword 'inf' is recognized.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/rlimits/$resource.min">resource.min</span>
- <br />
- <div class="description">
-A file which contains the guaranteed minimum of the given resource in
-the first line. The special keyword 'inf' is recognized.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/rlimits/$resource.soft">resource.soft</span>
- <br />
- <div class="description">
-A file which contains the soft-limit of the given resource in the first
-line. The special keyword 'inf' is recognized.
- </div>
- </li>
- </ul>
- </li>
- <li id="sched">
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">sched</span></span>
- <br />
- <ul id="sched">
- <li id="global-fill-rate">
- <span class="file" title="/etc/vservers/$vserver-name/sched/fill-rate">fill-rate</span>
- <br />
- <div class="description">Amount of tokens to add each <a class="optionref" href="#global-interval">interval</a></div>
- </li>
- <li id="global-fill-rate2">
- <span class="file" title="/etc/vservers/$vserver-name/sched/fill-rate2">fill-rate2</span>
- <br />
- <div class="description">Amount of tokens to add each <a class="optionref" href="#global-interval2">interval2</a> when advancing idle time</div>
- </li>
- <li id="global-idle-time">
- <span class="boolean" title="/etc/vservers/$vserver-name/sched/idle-time">idle-time</span>
- <br />
- <div class="description">When this file exists, advancing idle time is activated</div>
- </li>
- <li id="global-interval">
- <span class="file" title="/etc/vservers/$vserver-name/sched/interval">interval</span>
- <br />
- <div class="description">The interval between refills of the bucket</div>
- </li>
- <li id="global-interval2">
- <span class="file" title="/etc/vservers/$vserver-name/sched/interval2">interval2</span>
- <br />
- <div class="description">The interval between refills of the bucket when advancing idle time</div>
- </li>
- <li id="global-priority-bias">
- <span class="file" title="/etc/vservers/$vserver-name/sched/priority-bias">priority-bias</span>
- <br />
- <div class="description">Bias added to priorities calculated within the guest (result is clamped to -20/+19)</div>
- </li>
- <li id="global-tokens">
- <span class="file" title="/etc/vservers/$vserver-name/sched/tokens">tokens</span>
- <br />
- <div class="description">The initial amount of tokens to put in the bucket</div>
- </li>
- <li id="global-tokens-max">
- <span class="file" title="/etc/vservers/$vserver-name/sched/tokens-max">tokens-max</span>
- <br />
- <div class="description">The bucket's size</div>
- </li>
- <li id="global-tokens-min">
- <span class="file" title="/etc/vservers/$vserver-name/sched/tokens-min">tokens-min</span>
- <br />
- <div class="description">The minimum amount of tokens required to unhold the context</div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">sched</span>/<span class="symbolic">cpu-id</span></span>
- <br />
- <div class="description">This directory contains per-CPU and/or per-bucket specific settings. Remember to set the <a class="optionref" href="#cpu-id">cpu-id</a> file. All CPUs inherit the global settings.</div>
- <ul>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/sched/$cpu-id/bucket-id">bucket-id</span>
- <br />
- <div class="description">The bucket to apply these settings to</div>
- </li>
- <li id="cpu-id">
- <span class="file" title="/etc/vservers/$vserver-name/sched/$cpu-id/cpu-id">cpu-id</span>
- <br />
- <div class="description">The CPU to apply these settings to</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/sched/$cpu-id/fill-rate">fill-rate</span>
- <br />
- <div class="description">Amount of tokens to add each <a class="optionref" href="#local-interval">interval</a></div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/sched/$cpu-id/fill-rate2">fill-rate2</span>
- <br />
- <div class="description">Amount of tokens to add each <a class="optionref" href="#local-interval2">interval2</a> when advancing idle time</div>
- </li>
- <li>
- <span class="boolean" title="/etc/vservers/$vserver-name/sched/$cpu-id/idle-time">idle-time</span>
- <br />
- <div class="description">When this file exists, advancing idle time is activated</div>
- </li>
- <li id="local-interval">
- <span class="file" title="/etc/vservers/$vserver-name/sched/$cpu-id/interval">interval</span>
- <br />
- <div class="description">The interval between refills of the bucket</div>
- </li>
- <li id="local-interval2">
- <span class="file" title="/etc/vservers/$vserver-name/sched/$cpu-id/interval2">interval2</span>
- <br />
- <div class="description">The interval between refills of the bucket when advancing idle time</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/sched/$cpu-id/priority-bias">priority-bias</span>
- <br />
- <div class="description">Bias added to priorities calculated within the guest (result is clamped to -20/+19)</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/sched/$cpu-id/tokens">tokens</span>
- <br />
- <div class="description">The initial amount of tokens to put in the bucket</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/sched/$cpu-id/tokens-max">tokens-max</span>
- <br />
- <div class="description">The bucket's size</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/sched/$cpu-id/tokens-min">tokens-min</span>
- <br />
- <div class="description">The minimum amount of tokens required to unhold the context</div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">scripts</span></span>
- <br />
- <div class="description">
-A directory for scripts. By default, when one of these scripts will be
-executed, the execution of defaultscripts (within .../.defaults/scripts)
-will be skipped. To execute them nevertheless, the $DONT_SKIP_DEFAULTS
-environment variable must be set by one of the in-shellcontext scripts
-(the non-executable ones).
- </div>
- <ul>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/initialize">initialize</span>
- <br />
- <div class="description">
-The scriptlet which will be executed before the root filesystem is mounted and
-the configuration has been loaded. Before executing the script, the
-configuration directory will be made the working directory.
- </div>
- </li>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/post-start">post-start</span>
- <br />
- <div class="description">
-The scriptlet which will be executed after the vserver has been
-started. Before executing the script, the vserver root directory
-will be made the working directory.
- </div>
- </li>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/post-stop">post-stop</span>
- <br />
- <div class="description">
-The scriptlet which will be executed after the vserver has been
-stopped, but before the directories will be umounted and the the
-interfaces disabled. Before executing the script, the vserver root
-directory will be made the working directory.
- </div>
- </li>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/postpost-stop">postpost-stop</span>
- <br />
- <div class="description">
-The scriptlet which will be executed after the vserver has been stopped
-completely. Before executing the script, the vserver root directory
-will be made the working directory.
- </div>
- </li>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/pre-start">pre-start</span>
- <br />
- <div class="description">
-The scriptlet which will be executed after network-interfaces were
-enabled and the directories mounted, but before the vserver itself has
-been started. Before executing the script, the vserver root directory
-will be made the working directory.
- </div>
- </li>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/pre-stop">pre-stop</span>
- <br />
- <div class="description">
-The scriptlet which will be executed before the vserver will be
-stopped. Before executing the script, the vserver root directory
-will be made the working directory.
- </div>
- </li>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/prepre-start">prepre-start</span>
- <br />
- <div class="description">
-The scriptlet which will be executed before the network-interfaces are
-enabled and the directories are mounted. Before executing the script,
-the configuration directory will be made the working directory.
- </div>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">scripts</span>/<span class="">initialize.d</span></span>
- <br />
- <div class="description">
-Repository of initialize like scripts. Before executing the script,
-the configuration directory will be made the working directory.
- </div>
- <ul>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/initialize.d/$script">script</span>
- <br />
- <div class="description">See initialize.</div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">scripts</span>/<span class="">post-start.d</span></span>
- <br />
- <div class="description">
-Repository of post-start like scripts. Before executing these scripts,
-the vserver root directory will be made the working directory.
- </div>
- <ul>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/post-start.d/$script">script</span>
- <br />
- <div class="description">See post-start.</div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">scripts</span>/<span class="">post-stop.d</span></span>
- <br />
- <div class="description">
-Repository of post-stop like scripts. Before executing the script, the
-vserver root directory will be made the working directory.
- </div>
- <ul>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/post-stop.d/$script">script</span>
- <br />
- <div class="description">See post-stop.</div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">scripts</span>/<span class="">postpost-stop.d</span></span>
- <br />
- <div class="description">
-Repository of postpost-stop like scripts. Before executing the script,
-the vserver root directory will be made the working directory.
- </div>
- <ul>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/postpost-stop.d/$script">script</span>
- <br />
- <div class="description">See postpost-stop.</div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">scripts</span>/<span class="">pre-start.d</span></span>
- <br />
- <div class="description">
-Repository of pre-start like scripts. Before executing these scripts,
-the vserver root directory will be made the working directory.
- </div>
- <ul>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/pre-start.d/$script">script</span>
- <br />
- <div class="description">See pre-start.</div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">scripts</span>/<span class="">pre-stop.d</span></span>
- <br />
- <div class="description">
-Repository of pre-stop like scripts. Before executing the script, the
-vserver root directory will be made the working directory.
- </div>
- <ul>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/pre-stop.d/$script">script</span>
- <br />
- <div class="description">See pre-stop.</div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">scripts</span>/<span class="">prepre-start.d</span></span>
- <br />
- <div class="description">
-Repository of prepre-start like scripts. Before executing the script,
-the configuration directory will be made the working directory.
- </div>
- <ul>
- <li>
- <span class="script" title="/etc/vservers/$vserver-name/scripts/prepre-start.d/$script">script</span>
- <br />
- <div class="description">See prepre-start.</div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">sysctl</span></span>
- <br />
- <ul>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">sysctl</span>/<span class="symbolic">x</span></span>
- <br />
- <div class="description">'x' is an arbitrary name, replace it with e.g. integers</div>
- <ul>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/sysctl/$x/setting">setting</span>
- <br />
- <div class="description">The sysctl setting</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/sysctl/$x/value">value</span>
- <br />
- <div class="description">The value</div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">ulimits</span></span>
- <br />
- <div class="description">
-A directory with ulimits. Possible resources are cpu, data, fsize,
-locks, memlock, nofile, nproc, rss and/or stack.
- </div>
- <ul>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/ulimits/$resource">resource</span>
- <br />
- <div class="description">
-A file which contains the hard- and soft-limit of the given resource
-in the first line. The special keyword 'inf' is recognized.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/ulimits/$resource.hard">resource.hard</span>
- <br />
- <div class="description">
-A file which contains the hard-limit of the given resource in the first
-line. The special keyword 'inf' is recognized.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/ulimits/$resource.soft">resource.soft</span>
- <br />
- <div class="description">
-A file which contains the soft-limit of the given resource in the first
-line. The special keyword 'inf' is recognized.
- </div>
- </li>
- </ul>
- </li>
- <li>
- <span class="directory">/etc/vservers/<span class="symbolic">vserver-name</span>/<span class="">uts</span></span>
- <br />
- <ul>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/uts/context">context</span>
- <br />
- <div class="description">
-The context-name of the vserver. This file is listed for completeness
-only; the 'context' name is used and set internally by the util-vserver
-tools and can *not* be modified.
- </div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/uts/domainname">domainname</span>
- <br />
- <div class="description">The NIS domainname of the vserver</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/uts/machine">machine</span>
- <br />
- <div class="description">The machine-type of the vserver</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/uts/nodename">nodename</span>
- <br />
- <div class="description">The node-/hostname of the vserver</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/uts/release">release</span>
- <br />
- <div class="description">The OS-release of the vserver</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/uts/sysname">sysname</span>
- <br />
- <div class="description">The sysname of the vserver</div>
- </li>
- <li>
- <span class="file" title="/etc/vservers/$vserver-name/uts/version">version</span>
- <br />
- <div class="description">The OS-version of the vserver</div>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </body>
-</html>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE database SYSTEM "configuration.dtd" []>
-<!-- $Id: configuration.xml 2599 2007-08-26 21:30:50Z dhozac $ -->
-
-<database xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="file:configuration.xsd">
-
- <!-- Global configuration -->
- <collection name=".defaults" use="optional">
- <collection name="init" type="fixed">
- <data name="mtab">
- <description>Default mtab file</description>
- </data>
- </collection>
-
- <link name="vdirbase">
- <default>/vservers</default>
- <description>A link to the default vserver rootdirectory.</description>
- </link>
-
- <link name="cachebase">
- <default>/var/cache/vservers</default>
- <description>
-A link to the directory which will hold cached information about
-vservers.
- </description>
- </link>
-
- <boolean id="global-nonamespace" name="nonamespace">
- <description>
-Disable namespace usage globally. It can be overridden for a single vserver
-by setting the <optionref ref="global-namespace">namespace</optionref> flag
-there.
-
-In this mode the <directory>/vservers</directory> directory must have
-the 'barrier' attribute. Else, common chroot(2) exploits are possible.
- </description>
- </boolean>
-
- <boolean id="global-nonamespace-cleanup" name="nonamespace-cleanup">
- <description>
-Disable namespace cleanup globally. It can be overridden for a single vserver
-by setting the <optionref ref="namespace-cleanup">namespace-cleanup</optionref> flag
-there.
- </description>
- </boolean>
-
- <list id="global-namespace-cleanup-skip" name="namespace-cleanup-skip">
- <description>
-List of paths to skip during namespace cleanup.
- </description>
- </list>
-
- <link name="run.rev">
- <description>
-Path of the vserver run reverse directory. This directory contains
-symlinks named with XID numbers which point back to the configuration
-directory of vservers. Under kernel 2.4 this is required for the XID
-to VSERVER mapping; Under kernel 2.6 it is unused.
-
-NOTE: this link exists in 0.30.202+ only; in previous versions it was
-a vserver specific setting.
- </description>
- </link>
-
- <scalar name="shell">
- <description>
-Contains the pathname of the shell which will be used by the "vserver
-... enter" command. Can be overridden by the
-<optionref ref="shell">per-guest shell</optionref>.
- </description>
- </scalar>
-
- <data name="fstab">
- <description>
-The default fstab file to put in newly built guests.
- </description>
- </data>
-
- <boolean name="context.dynamic">
- <description>
-If this file exists, kernel-side dynamic contexts will be used by the "vserver
-... build" command. Otherwise a context will be generated, based on the
-contents of <optionref>context.next</optionref>.
- </description>
- </boolean>
-
- <scalar id="context.next" name="context.next">
- <description>
-The context id to use for the next guest created by "vserver ... build".
- </description>
- </scalar>
-
- <collection name="apps">
- <collection name="pkgmgmt">
- <link name="base">
- <default>/vservers/.pkg</default>
- </link>
- <data name="apt.conf">
- <description>The default apt.conf which is going to be used. It is overridden by
-distribution specific configuration file.
- </description>
- </data>
- </collection>
-
- <collection name="debootstrap">
- <scalar name="mirror">
- <description>
-The Debian mirror to use with the <tool>debootstrap</tool> program
- </description>
- </scalar>
- <scalar name="uri">
- <description>
-When the <tool>debootstrap</tool> package is not installed; fetch it
-from this uri and install it at a temporary place.
- </description>
- </scalar>
- </collection>
-
- <collection name="vdevmap">
- <collection name="x" type="sybmolic">
- <description>'x' is an arbitrary name, replace it with e.g. device names</description>
- <boolean name="open">
- <description>When this file exists, the device can be opened</description>
- </boolean>
- <boolean name="create">
- <description>When this file exists, the device can be created (if the guest has <optionref ref="bcapabilities">CAP_MKNOD</optionref>)</description>
- </boolean>
- <boolean id="vdevmap-remap" name="remap">
- <description>
-When this file exists, <optionref ref="vdevmap-target">target</optionref> will
-have to exist as well and opening the device will in fact open the target device
- </description>
- </boolean>
- <scalar name="flags">
- <description>This file will let you specify unimplemented flags manually</description>
- </scalar>
- <scalar name="device">
- <description>Contains the name of a device node</description>
- </scalar>
- <scalar id="vdevmap-target" name="target">
- <description>Contains the device node of the target node to open instead of the device when <optionref ref="vdevmap-remap">remap</optionref> is set</description>
- </scalar>
- </collection>
- </collection>
-
- <collection name="vshelper">
- <link name="logfile">
- <description>
-The file where output will be logged to when <tool>vshelper</tool>
-is invoked from the kernel. This should point somewhere e.g. into
-<directory>/var/log</directory>.
- </description>
- </link>
-
- <collection name="vshelper-methods">
- <program name="handler" type="symbolic">
- <description>
-See <optionref ref="vshelper-action">vshelper/action</optionref>.
- </description>
- </program>
- </collection>
-
- <boolean name="disabled">
- <description>
-When existing, the vshelper functionality will be disabled for all
-vservers.
- </description>
- </boolean>
-
- <boolean name="debug">
- <description>
-When existing, the vshelper execution will be traced.
- </description>
- </boolean>
-
- <boolean name="warning-disabled">
- <description>
-When existing, sanity checks for the vshelper functionality will be
-skipped.
- </description>
- </boolean>
-
- </collection>
-
- <collection name="vprocunhide">
- <list name="files">
- <description>
-A list of files which will be made visible by vprocunhide. Wildcards are
-allowed and anything ending in '/' will be processed recursively. When this file exists,
-it overrides the defaults in SYSDEFAULTDIR/vprocunhide-files. The entries there must be
-absolute filenames inclusive the leading '/proc'.
- </description>
- </list>
- </collection>
-
- <collection name="init">
- <link name="tty">
- <description>
-A symlink to the TTY device where input/output will be redirected from/to
-at startup via initscript.
- </description>
- </link>
-
- <hash id="global-environment" name="environment" since="0.30.211">
- <description>
-The environment to set when starting guests. Contains one VAR=VAL
-pair per line.
- </description>
- </hash>
- </collection>
-
- <collection name="vunify">
- <list name="exclude">
- <description>Static list of excluded files.</description>
- </list>
-
- <collection name="hash" since="0.30.205">
- <description>
-A directory which will be used as the storage place for the
-<tool>vhashify</tool> command.
- </description>
- <link name="id" type="symbolic">
- <description>
-Points to a directory within the filesystems which are used for the
-vservers. There must be not more than one of such a directory per
-filesystem.
- </description>
- </link>
-
- <scalar name="method" since="0.30.299">
- <default>SHA1</default>
- <description>The used hash method.</description>
- </scalar>
- </collection>
-
- <boolean name="pkgmgmt-ignore" default="off" since="0.30.205">
- <description>
-When existing, information from packagemanagement will not be used to
-create dynamic exclude-lists.
- </description>
- </boolean>
-
- <boolean name="pgkmgmt-force" default="off" since="0.30.205">
- <description>
-When existing, information from packagemanagement will be used to
-create dynamic exclude-lists. This option requires that (a known)
-packagemanagement is configured for the vserver; else the requested
-operation will fail. Most tools assume 'on' as the default value.
- </description>
- </boolean>
-
- </collection>
-
- <collection name="vlogin">
- <boolean id="vlogin-disable" name="disable" since="0.30.212">
- <description>
-When this file exists, vlogin isn't used on vserver <guest> enter.
- </description>
- </boolean>
- </collection>
-
- <collection name="build">
- <list name="options">
- <description>
-A list of default options to supply to vserver ... build, one option per line.
- </description>
- </list>
- </collection>
- </collection>
-
- <collection name="interfaces" use="optional">
- <boolean id="global-vlandev" name="vlandev" since="0.30.211">
- <description>
-When this file exists, the steps which setup and destroy a VLAN
-interface will be executed.
- </description>
- </boolean>
- </collection>
-
- <collection name="files">
- <description>This directory contains some files which will be copied to the guests during build.</description>
- <data name="hosts">
- <description>The default /etc/hosts file.</description>
- </data>
- <data name="nsswitch.conf">
- <description>The default /etc/nsswitch.conf file.</description>
- </data>
- <data name="krb5.conf">
- <description>The default /etc/krb5.conf file.</description>
- </data>
- <data name="krb.conf">
- <description>The default /etc/krb.conf file.</description>
- </data>
- <data name="krb.realms">
- <description>The default /etc/krb.realms file.</description>
- </data>
- <data name="ldap.conf">
- <description>The default /etc/ldap.conf file.</description>
- </data>
- <data name="localtime">
- <description>The default /etc/localtime file.</description>
- </data>
- <data name="resolv.conf">
- <description>The default /etc/resolv.conf file.</description>
- </data>
- </collection>
- </collection>
-
- <collection name=".distributions" use="optional">
- <collection name="dist" type="symbolic">
- <scalar name="dev">
- <description></description>
- </scalar>
- <collection name="yum">
- <description>
-The default, yum-related content of the <directory>/etc</directory>
-directory.
- </description>
- <scalar name="yum.conf">
- <description>
-The master yum configuration file. It supports the @YUMETCDIR@,
-@YUMCACHEDIR@ and @YUMLOGDIR@ placeholder which will be replaced at
-<command>vserver ... build</command> time.
- </description>
- </scalar>
- </collection>
- <collection name="yum.repos.d">
- <description>A directory with yum repositories.</description>
- </collection>
- <data name="apt.conf">
- <description>
-The default apt.conf which is going to be used. It overrides the
-apt.conf from CONFDIR/.defaults/apps/pkgmgmt.
- </description>
- </data>
- <program name="initpre">
- <description>
-Script which will be executed before packages will be installed.
- </description>
- <parameterList>
- <parameter name="confdir">
- <description>
-The configuration directory of the vserver which is going to be set up.
- </description>
- </parameter>
- <parameter name="util-vserver-vars">
- <description>
-The pathname of the util-vserver-vars file.
- </description>
- </parameter>
- </parameterList>
- </program>
- <program name="initpost">
- <description>
-Script which will be executed after packages are installed.
- </description>
- <parameterList>
- <parameter name="confdir">
- <description>
-The configuration directory of the vserver which is going to be set up.
- </description>
- </parameter>
- <parameter name="vserver">
- <description>
-The pathname of the util-vserver-vars file.
- </description>
- </parameter>
- </parameterList>
- </program>
-
- <collection name="pkgs">
- <description>
-Contains files with packagenames.
- </description>
- <list name="list">
- <description>
-File which contains the name of packages. On top of file the special
-keywords '--reinstall' and '--can-fail' are possible.
- </description>
- </list>
- </collection>
-
- <collection name="pubkeys">
- <description>
-Directory with GPG pubkeys which are used to sign the packages of this
-distribution.
- </description>
- </collection>
-
- <collection name="apt">
- <description>
-Default content of the <directory>/etc/apt/</directory> directory.
- </description>
- </collection>
-
- <collection name="rpm">
- <description>
-Default content of the <directory>/etc/rpm</directory> directory.
- </description>
- </collection>
-
- <link name="rpmlib">
- <description>
-Directory which overrides <directory>/usr/lib/rpm</directory>.
- </description>
- </link>
- <link name="execdir">
- <description>
-Directory with all executables and libraries which are required for
-this distribution.
- </description>
- </link>
- </collection>
- <link name="template">
- <description>
-Symlink to the default template for this distribution.
- </description>
- </link>
- </collection>
-
- <!-- Vserver configuration -->
- <collection name="vserver-name" type="symbolic">
- <description>
-The configuration directory for the vserver vserver-name.
- </description>
-
- <link name="cache">
- <default>../.defaults/cachebase/VSERVERNAME</default>
- <description>
-Path of the storage area for cached information about this vserver.
- </description>
- </link>
-
- <link name="vdir">
- <default>../.defaults/vdirbase/VSERVERNAME</default>
- <description>
-Path of the vserver root directory.
- </description>
- </link>
-
- <link name="run">
- <description>
-Points to a file which will contain the XID of the running vserver. When
-the vserver is stopped, this can be a dangling symlink.
- </description>
- </link>
-
- <list id="bcapabilities" name="bcapabilities">
- <description>
-Contains the system capabilities. See
-<ulink url="http://svn.linux-vserver.org/svn/util-vserver/trunk/lib/bcaps-v13.c">lib/bcaps-v13.c</ulink>
-for possible values.
- </description>
- </list>
- <list name="ccapabilities">
- <description>
-Contains the context capabilities. See <ulink
-url="http://svn.linux-vserver.org/svn/util-vserver/trunk/lib/ccaps-v13.c">lib/ccaps-v13.c</ulink>
-for possible values.
- </description>
- </list>
- <list name="ncapabilities" since="0.30.212">
- <description>
-Contains the network capabilities. See <ulink
-url="http://svn.linux-vserver.org/svn/util-vserver/trunk/lib/ncaps-net.c">lib/ncaps-net.c</ulink>
-for possible values.
- </description>
- </list>
-
- <boolean id="global-namespace" name="namespace">
- <description>
-Overrides the global <optionref ref="global-nonamespace">nonamespace</optionref> flag and enables
-namespace usage for the current vserver.
- </description>
- </boolean>
-
- <boolean name="nonamespace">
- <description>
-Disables namespace usage for the current vserver.
-
-In this mode the <directory>/vservers</directory> directory must have
-the 'barrier' attribute. Else, common chroot(2) exploits are possible.
- </description>
- </boolean>
-
- <boolean id="namespace-cleanup" name="namespace-cleanup">
- <description>
-Overrides the global <optionref ref="global-nonamespace-cleanup">nonamespace-cleanup</optionref> flag and enables
-namespace cleanup for the current vserver.
- </description>
- </boolean>
-
- <list name="namespace-cleanup-skip">
- <description>
-List of paths to skip during namespace cleanup. This overrides the global
-<optionref ref="global-namespace-cleanup-skip">namespace-cleanup-skip</optionref>
-file.
- </description>
- </list>
-
- <hash name="schedule">
- <description>
-[deprecated; use <optionref ref="sched">sched</optionref> instead] Contains the
-scheduler parameters, one per line.
-
-The Hard CPU limit uses a mechanism called a Token Bucket. the
-concept is simple: you have a bucket of a certain size which is
-filled with a specified amount R of tokens each interval T until the
-maximum is reached (excess tokens are spilled). At each timer tick,
-a running process consumes one token from the bucket, unless the
-bucket is empty. If the bucket is empty the process is put in the
-hold queue. When the bucket has been refilled to at least M tokens,
-all on hold processes are rescheduled.
-
-See the <ulink url="http://linux-vserver.org/Scheduler+Parameters">Linux
-VServer Wiki</ulink> for more information about this file.
- </description>
- <keys>
- <key id="fill_rate" name="fill-rate">
- <description>
-Amount of tokens append to the bucket each interval.
- </description>
- </key>
- <key name="interval">
- <description>
-The intervall between refills of amount <optionref>fill_rate</optionref>. This
-value is express in ticks.
- </description>
- </key>
- <key name="tokens">
- <description>
-Initial bucket contents.
- </description>
- </key>
- <key name="tokens-min">
- <description>
-The minimum amount of tokens required to unhold processes
- </description>
- </key>
- <key name="tokens-max">
- <description>
-The bucket size.
- </description>
- </key>
- <key name="priority-bias">
- <description>
-???
- </description>
- </key>
- </keys>
- </hash>
- <scalar name="name">
- <description>
-Contains the name of the vserver. When not given, the basename of the directory
-will be assumed as this name.
- </description>
- </scalar>
- <scalar name="nice">
- <description>
-The nice-level on which the vserver will be started.
- </description>
- </scalar>
- <list name="capabilities">
- <description>
-Contains per line a capability. This file is used for the 2.4 kernel
-only; for 2.6 use <optionref>bcapabilities</optionref>.
- </description>
- </list>
- <scalar id="shell" name="shell">
- <description>
-Contains the pathname of the shell which will be used by the "vserver
-... enter" command.
- </description>
- </scalar>
- <list name="personality">
- <description>
-Used to set the personality of the vserver. First line in the file
-is the personality-type followed by flags (one item per line). See
-<filename>/usr/include/linux/personality.h</filename> for possible
-values.
- </description>
- </list>
- <list name="flags">
- <description>
-Contains per line a flag. See <ulink
-url="http://svn.linux-vserver.org/svn/util-vserver/trunk/lib/cflags-v13.c">lib/cflags-v13.c</ulink>
-for possible values.
- </description>
- <!--
- <elements>
- <element name="fakeinit">
- <description>
-The new process will believe it is process number 1. Useful to run a
-real /sbin/init in a vserver. Warning: this flag should not be used
-unless you know what you are doing. Often, it is better to use the
-'plain' initstyle.
- </description>
- </element>
- <element name="lock">
- <description>
-The new process is trapped and can't use chcontext anymore.
- </description>
- </element>
- <element name="sched">
- <description>
-The new process and its children will share a common
- </description>
- </element>
- <element name="nproc">
- <description>
-Limit the number of process in the vserver according to
-ulimit setting. Normally, ulimit is a per user thing.
-With this flag, it becomes a per vserver thing.
- </description>
- </element>
- <element name="private">
- <description>
-No one can join this security context once created.
- </description>
- </element>
- <element name="ulimit">
- <description>
-Apply the current ulimit to the whole context
- </description>
- </element>
- </elements>
- -->
- </list>
- <list name="nflags" since="0.30.212">
- <description>
-Contains a network flag per line. See <ulink
-url="http://svn.linux-vserver.org/svn/util-vserver/trunk/lib/nflags-net.c">lib/nflags-net.c</ulink>
-for possible values.
- </description>
- </list>
- <scalar name="context">
- <description>
-Contains the context id which shall be used for the vserver. Valid range is 2 through 49151.
- </description>
- </scalar>
- <scalar name="ncontext">
- <description>
-Contains the network context id which shall be used for the vserver. Valid range is 2 through 49151.
- </description>
- </scalar>
- <scalar name="tag">
- <description>
-Contains the filesystem tag which shall be used for the vserver. Valid range is 2 through 49151.
- </description>
- </scalar>
- <data id="fstab" name="fstab">
- <description>
-The fstab file for the vserver. Entries in this file will be mounted
-within the network context of the host. Use the
-<optionref>fstab.remote</optionref> file when you want that the
-mounting happens in the network context of the vserver. In most cases
-the 'fstab' file should be used.
- </description>
- </data>
- <data id="fstab.remote" name="fstab.remote">
- <description>
-The fstab file for the vserver. Entries in this file will be mounted
-within the network context of the guest; this means that mount will be
-called as <command>chbind <options> mount ...</command>. See
-<optionref>fstab</optionref> also.
- </description>
- </data>
-
- <collection name="apps">
- <collection name="init">
- <data name="mtab">
- <description>
-The initial-mtab which will be used for the vserver.
- </description>
- </data>
-
- <scalar name="style">
- <description>
-Contains the init-style.
- </description>
- <restriction>
- <enumeration value="sysv"/>
- <enumeration value="plain"/>
- <enumeration value="minit"/>
- </restriction>
- </scalar>
-
- <scalar name="runlevel">
- <description>The start runlevel.</description>
- </scalar>
-
- <scalar name="runlevel.start">
- <description>The start runlevel.</description>
- </scalar>
-
- <scalar name="runlevel.stop">
- <description>The stop runlevel.</description>
- </scalar>
-
- <scalar name="killseq">
- <description>
-Contains the 'signal [wait signal]*' sequence which is used to stop
-the vserver.
- </description>
- </scalar>
-
- <list name="cmd.start">
- <description>
-The command which is used to start the vserver. Each option must be on
-a separate line.
- </description>
- </list>
-
- <list name="cmd.start-sync">
- <description>
-The command which is used to wait on the vserver after it has been
-started. Each option must be on a separate line. This file will be
-ignored when the <optionref>sync</optionref> flag does not exist and the
-'--sync' option was not used.
- </description>
- </list>
-
- <list name="cmd.stop">
- <description>
-The command which is used to stop the vserver. Each option must be on
-a separate line.
- </description>
- </list>
-
- <list name="cmd.stop-sync">
- <description>
-The command which is used to wait on the vserver after it has been
-stopped. Each option must be on a separate line. This file will be
-ignored when the <optionref>sync</optionref> flag does not exist and the
-'--sync' option was not used.
- </description>
- </list>
-
- <list name="cmd.prepare">
- <description>
-The command which is used to setup the init-system (e.g. to set the
-runlevel in the utmp-file). Each option must be on a separate line.
- </description>
- </list>
-
- <boolean id="sync" name="sync">
- <description>
-If this file is not present, all 'cmd.*-sync files will be ignored.
- </description>
- </boolean>
-
- <link name="tty">
- <description>
-A symlink to the TTY device where input/output will be redirected
-from/to at startup via initscript.
- </description>
- </link>
-
- <scalar name="mark">
- <description>
-This file is used to mark group of vservers which shall be started/stopped
-together by the initscript. Content is a simple string like 'default'.
- </description>
- </scalar>
-
- <list name="depends">
- <description>
-This file is used to configure vservers which must be running before
-the current vserver can be started. At shutdown, the current vserver
-will be stopped before its dependencies. Content of this file are
-vserver ids (one name per line).
- </description>
- </list>
-
- <hash name="environment" since="0.30.211">
- <description>
-The environment to set when starting the guest. Contains one VAR=VAL
-pair per line.
- </description>
- </hash>
- </collection>
-
- <collection name="vshelper">
- <scalar name="sync-timeout">
- <default>30</default>
- <description>
-The timeout in seconds which is used when synchronising vserver
-startup/shutdown with the vshelper. When not set, 30 seconds will be
-assumed.
- </description>
- </scalar>
-
- <scalar id="vshelper-action" name="action">
- <default>restart</default>
- <description>
-The action which is going to be executed when a vshelper event
-occurs. The default value is 'restart', but there can be defined own
-methods by placing scripts into the
-<optionref>vshelper-methods</optionref> directories. These scripts are
-fed with the same arguments as the <tool>vshelper</tool> script.
- </description>
- </scalar>
-
- <program name="event" type="symbolic">
- <description>
-When existing, these scripts will be executed *instead* of the default
-handler defined in 'action'. Their name must match the event which caused
-the execution of <tool>vshelper</tool>; e.g. 'restart' or 'poweroff'. See
-the vs_reboot() function in the kernel for more details.
- </description>
- <parameterList>
- <parameter name="xid">
- <description>
-The xid of the context calling the vshelper
- </description>
- </parameter>
- <parameter name="event">
- <description>
-The reboot-event.
- </description>
- </parameter>
- </parameterList>
- </program>
-
- <boolean name="disabled">
- <description>
-When existing, the vshelper functionality will be disabled for this
-vserver.
- </description>
- </boolean>
-
- <boolean name="debug">
- <description>
-When existing, the vshelper execution will be traced for this vserver.
- </description>
- </boolean>
-
- <boolean name="warning-disabled">
- <description>
-When existing, sanity checks for the vshelper functionality will be
-skipped.
- </description>
- </boolean>
-
- </collection>
-
- <collection id="vshelper-methods" name="vshelper-methods">
- <program name="handler" type="symbolic">
- <description>
-See <optionref ref="vshelper-action">vshelper/action</optionref>.
- </description>
- </program>
- </collection>
-
- <collection name="vunify">
- <description>
-This directory contains configuration data required for vserver
-unification.
- </description>
-
- <list name="exclude">
- <description>
-<p>Static list of files which are excluded for unification. This list
-supports an rsync-like syntax: when a file is prefixed by '+', it is a
-candidate for unification; when there is no prefix or a '-' or a '~' it
-will be excluded. Shell-wildcards are allowed for the filenames.</p>
-<p>When used with <tool>vcopy</tool>, the '~' prefix prevents copying
-of the file entirely (e.g. for keyfiles). With this tool, the file will
-be copied instead of hardlinked when the '-' prefix is used.</p>
- </description>
- </list>
-
- <link name="refserver.X" type="symbolic">
- <description>
-These are symlinks to the configuration directory
-(e.g. CONFDIR/vservers/<id>) of a refserver. There may be
-multiple such symlinks but they must be prefixed by 'refserver.' and
-will be processed in alphanumerical order.
- </description>
- </link>
-
- <collection name="hash" since="0.30.205">
- <description>
-A directory which will be used as the storage place for the
-<tool>vhashify</tool> command.
- </description>
- <link name="id" type="symbolic">
- <description>
-Points to a directory within the filesystems which are used for the
-vservers. There must be not more than one of such a directory per
-filesystem.
- </description>
- </link>
-
- <scalar name="method" since="0.30.299">
- <default>SHA1</default>
- <description>The used hash method.</description>
- </scalar>
- </collection>
-
- <boolean name="pkgmgmt-ignore" default="off" since="0.30.205">
- <description>
-When existing, information from packagemanagement will not be used to
-create dynamic exclude-lists.
- </description>
- </boolean>
-
- <boolean name="pgkmgmt-force" default="off" since="0.30.205">
- <description>
-When existing, information from packagemanagement will be used to
-create dynamic exclude-lists. This option requires that (a known)
-packagemanagement is configured for the vserver; else the requested
-operation will fail. Most tools assume 'on' as the default value.
- </description>
- </boolean>
-
- </collection>
- </collection>
-
- <collection name="scripts">
- <description>
-A directory for scripts. By default, when one of these scripts will be
-executed, the execution of defaultscripts (within .../.defaults/scripts)
-will be skipped. To execute them nevertheless, the $DONT_SKIP_DEFAULTS
-environment variable must be set by one of the in-shellcontext scripts
-(the non-executable ones).
- </description>
-
- <program name="initialize" since="0.30.211">
- <description>
-The scriptlet which will be executed before the root filesystem is mounted and
-the configuration has been loaded. Before executing the script, the
-configuration directory will be made the working directory.
- </description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- <collection name="initialize.d" since="0.30.211">
- <description>
-Repository of initialize like scripts. Before executing the script,
-the configuration directory will be made the working directory.
- </description>
- <program name="script" type="symbolic">
- <description>See initialize.</description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- </collection>
-
- <program name="prepre-start">
- <description>
-The scriptlet which will be executed before the network-interfaces are
-enabled and the directories are mounted. Before executing the script,
-the configuration directory will be made the working directory.
- </description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- <collection name="prepre-start.d">
- <description>
-Repository of prepre-start like scripts. Before executing the script,
-the configuration directory will be made the working directory.
- </description>
- <program name="script" type="symbolic">
- <description>See prepre-start.</description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- </collection>
-
- <program name="pre-start">
- <description>
-The scriptlet which will be executed after network-interfaces were
-enabled and the directories mounted, but before the vserver itself has
-been started. Before executing the script, the vserver root directory
-will be made the working directory.
- </description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- <collection name="pre-start.d">
- <description>
-Repository of pre-start like scripts. Before executing these scripts,
-the vserver root directory will be made the working directory.
- </description>
- <program name="script" type="symbolic">
- <description>See pre-start.</description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- </collection>
-
-
- <program name="post-start">
- <description>
-The scriptlet which will be executed after the vserver has been
-started. Before executing the script, the vserver root directory
-will be made the working directory.
- </description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- <collection name="post-start.d">
- <description>
-Repository of post-start like scripts. Before executing these scripts,
-the vserver root directory will be made the working directory.
- </description>
- <program name="script" type="symbolic">
- <description>See post-start.</description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- </collection>
-
-
- <program name="pre-stop">
- <description>
-The scriptlet which will be executed before the vserver will be
-stopped. Before executing the script, the vserver root directory
-will be made the working directory.
- </description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- <collection name="pre-stop.d">
- <description>
-Repository of pre-stop like scripts. Before executing the script, the
-vserver root directory will be made the working directory.
- </description>
- <program name="script" type="symbolic">
- <description>See pre-stop.</description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- </collection>
-
- <program name="post-stop">
- <description>
-The scriptlet which will be executed after the vserver has been
-stopped, but before the directories will be umounted and the the
-interfaces disabled. Before executing the script, the vserver root
-directory will be made the working directory.
- </description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- <collection name="post-stop.d">
- <description>
-Repository of post-stop like scripts. Before executing the script, the
-vserver root directory will be made the working directory.
- </description>
- <program name="script" type="symbolic">
- <description>See post-stop.</description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- </collection>
-
- <program name="postpost-stop">
- <description>
-The scriptlet which will be executed after the vserver has been stopped
-completely. Before executing the script, the vserver root directory
-will be made the working directory.
- </description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- <collection name="postpost-stop.d">
- <description>
-Repository of postpost-stop like scripts. Before executing the script,
-the vserver root directory will be made the working directory.
- </description>
- <program name="script" type="symbolic">
- <description>See postpost-stop.</description>
- <parameterList>
- <parameter name="action">
- <description>
-The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).
- </description>
- </parameter>
- <parameter name="vserver-name">
- <description>
-The name of the current vserver.
- </description>
- </parameter>
- </parameterList>
- </program>
- </collection>
- </collection>
-
- <collection name="interfaces">
- <scalar name="bcast">
- <description>The guest's broadcast address.</description>
- </scalar>
- <scalar name="lback">
- <description>The guest's loopback address.</description>
- </scalar>
- <scalar name="dev">
- <description>The default network device. See <optionref ref="per-if-dev">iface/dev</optionref> for more information.</description>
- </scalar>
- <scalar name="prefix">
- <description>The default network prefix-length.</description>
- </scalar>
- <scalar name="mask">
- <description>The default network mask.</description>
- </scalar>
- <scalar name="scope">
- <description>The default scope of the network interfaces.</description>
- </scalar>
- <boolean id="local-vlandev" name="vlandev" since="0.30.211">
- <description>
-When this file exists, the steps which setup and destroy a VLAN
-interface will be executed for all interfaces of this vserver.
- </description>
- </boolean>
- <boolean id="local-novlandev" name="novlandev">
- <description>
-When this file exists, the steps which setup and destroy a VLAN
-interface will be skipped. This overrides the global
-<optionref ref="global-vlandev">vlandev</optionref> setting for
-this vserver.
- </description>
- </boolean>
-
- <collection name="iface" type="symbolic">
- <description>
-'iface' is an arbitrary name for the interface; the value itself is
-not important but may be interesting regarding interface-creation and
-usage with <tool>chbind</tool>. Both happens in alphabetical order and
-numbers like '00' are good names for these directories.
- </description>
-
- <boolean name="disabled">
- <description>When this file exists, this interface will be ignored.</description>
- </boolean>
-
- <scalar name="ip">
- <description>The IP address which will be assigned to this interface.</description>
- </scalar>
- <scalar name="dev" id="per-if-dev">
- <description>The network device. When this is specified, the IP address will be assigned and removed when starting and stopping the guest.</description>
- </scalar>
- <scalar name="prefix">
- <description>The network prefix-length.</description>
- </scalar>
- <scalar name="mask">
- <description>The network mask.</description>
- </scalar>
- <scalar name="scope">
- <description>The scope of the network interface.</description>
- </scalar>
- <scalar name="name">
- <description>
-When this file exists, the interface will be named with the text in
-this file. Without such an entry, the IP will not be shown by
-<tool>ifconfig</tool> but by <command>ip addr ls</command> only. Such
-a labeled interface is known as an "alias" also (e.g. 'eth0:foo').
- </description>
- </scalar>
- <boolean name="nodev">
- <description>
-When this file exists, the interface will be assumed to exist
-already. This can be used to assign primary interfaces which are
-created by the host or another vserver.
- </description>
- </boolean>
- <boolean name="novlandev">
- <description>
-When this file exists, the steps which setup and destroy a VLAN
-interface will be skipped. This will override the global
-<optionref ref="global-vlandev">vlandev</optionref> and the per-guest
-<optionref ref="local-vlandev">vlandev</optionref>.
- </description>
- </boolean>
- <boolean name="vlandev" since="0.30.211">
- <description>
-When this file exists, the steps which setup and destroy a VLAN
-interface will be executed.
- </description>
- </boolean>
- </collection>
- </collection>
-
- <collection name="ulimits">
- <description>
-A directory with ulimits. Possible resources are cpu, data, fsize,
-locks, memlock, nofile, nproc, rss and/or stack.
- </description>
- <scalar name="resource" type="symbolic">
- <description>
-A file which contains the hard- and soft-limit of the given resource
-in the first line. The special keyword 'inf' is recognized.
- </description>
- </scalar>
- <scalar name="resource.hard" type="symbolic">
- <description>
-A file which contains the hard-limit of the given resource in the first
-line. The special keyword 'inf' is recognized.
- </description>
- </scalar>
- <scalar name="resource.soft" type="symbolic">
- <description>
-A file which contains the soft-limit of the given resource in the first
-line. The special keyword 'inf' is recognized.
- </description>
- </scalar>
- </collection>
-
- <collection name="rlimits">
- <description>
-A directory with resource limits. Possible resources are cpu, fsize,
-data, stack, core, rss, nproc, nofile, memlock, as, locks, msgqueue,
-nsock, openfd, anon, shmem, semary, nsems and dentry. This
-configuration will be honored for kernel 2.6 only.
- </description>
- <scalar name="resource" type="symbolic">
- <description>
-A file which contains the hard- and soft-limit of the given resource
-in the first line. The special keyword 'inf' is recognized.
- </description>
- </scalar>
- <scalar name="resource.hard" type="symbolic">
- <description>
-A file which contains the hard-limit of the given resource in the first
-line. The special keyword 'inf' is recognized.
- </description>
- </scalar>
- <scalar name="resource.soft" type="symbolic">
- <description>
-A file which contains the soft-limit of the given resource in the first
-line. The special keyword 'inf' is recognized.
- </description>
- </scalar>
- <scalar name="resource.min" type="symbolic">
- <description>
-A file which contains the guaranteed minimum of the given resource in
-the first line. The special keyword 'inf' is recognized.
- </description>
- </scalar>
- </collection>
-
- <collection name="uts">
- <scalar name="context">
- <description>
-The context-name of the vserver. This file is listed for completeness
-only; the 'context' name is used and set internally by the util-vserver
-tools and can *not* be modified.
- </description>
- </scalar>
- <scalar name="sysname">
- <description>The sysname of the vserver</description>
- </scalar>
- <scalar name="nodename">
- <description>The node-/hostname of the vserver</description>
- </scalar>
- <scalar name="release">
- <description>The OS-release of the vserver</description>
- </scalar>
- <scalar name="version">
- <description>The OS-version of the vserver</description>
- </scalar>
- <scalar name="machine">
- <description>The machine-type of the vserver</description>
- </scalar>
- <scalar name="domainname">
- <description>The NIS domainname of the vserver</description>
- </scalar>
- </collection>
-
- <collection name="dlimits" since="0.30.210">
- <collection name="dlimit" type="symbolic">
- <scalar name="directory">
- <description>The directory to which the limit should be applied</description>
- </scalar>
- <scalar name="inodes_total">
- <description>The amount of inodes this vserver should be limited to</description>
- </scalar>
- <scalar name="space_total">
- <description>The amount of space this vserver should be limited to (measured in blocks of 1024 bytes)</description>
- </scalar>
- <scalar name="reserved">
- <description>How much space (percentage-wise) should be reserved for the root user</description>
- </scalar>
- </collection>
- </collection>
-
- <collection name="sysctl" since="0.30.213">
- <collection name="x" type="symbolic">
- <description>'x' is an arbitrary name, replace it with e.g. integers</description>
- <scalar name="setting">
- <description>The sysctl setting</description>
- </scalar>
- <scalar name="value">
- <description>The value</description>
- </scalar>
- </collection>
- </collection>
-
- <collection name="cpuset" since="0.30.211">
- <scalar name="name">
- <description>The name of the cpuset for this vserver</description>
- </scalar>
- <scalar name="cpus">
- <description>The list of CPUs in this cpuset</description>
- </scalar>
- <scalar name="mems">
- <description>The list of Memory Nodes in this cpuset</description>
- </scalar>
- <scalar name="cpu_exclusive">
- <description>Is the CPU assignment exclusive?</description>
- </scalar>
- <scalar name="mems_exclusive">
- <description>Is the memory node assignment exclusive?</description>
- </scalar>
- <scalar name="nocreate">
- <description>When this file exists, the cpuset will be assumed to exist already</description>
- </scalar>
- </collection>
-
- <collection id="sched" name="sched" since="0.30.212">
- <scalar id="global-tokens" name="tokens">
- <description>The initial amount of tokens to put in the bucket</description>
- </scalar>
- <scalar id="global-tokens-min" name="tokens-min">
- <description>The minimum amount of tokens required to unhold the context</description>
- </scalar>
- <scalar id="global-tokens-max" name="tokens-max">
- <description>The bucket's size</description>
- </scalar>
- <scalar id="global-fill-rate" name="fill-rate">
- <description>Amount of tokens to add each <optionref ref="global-interval">interval</optionref></description>
- </scalar>
- <scalar id="global-interval" name="interval">
- <description>The interval between refills of the bucket</description>
- </scalar>
- <scalar id="global-priority-bias" name="priority-bias">
- <description>Bias added to priorities calculated within the guest (result is clamped to -20/+19)</description>
- </scalar>
- <scalar id="global-fill-rate2" name="fill-rate2">
- <description>Amount of tokens to add each <optionref ref="global-interval2">interval2</optionref> when advancing idle time</description>
- </scalar>
- <scalar id="global-interval2" name="interval2">
- <description>The interval between refills of the bucket when advancing idle time</description>
- </scalar>
- <boolean id="global-idle-time" name="idle-time">
- <description>When this file exists, advancing idle time is activated</description>
- </boolean>
- <collection name="cpu-id" type="symbolic">
- <description>This directory contains per-CPU and/or per-bucket specific settings. Remember to set the <optionref ref="cpu-id">cpu-id</optionref> file. All CPUs inherit the global settings.</description>
- <scalar name="tokens">
- <description>The initial amount of tokens to put in the bucket</description>
- </scalar>
- <scalar name="tokens-min">
- <description>The minimum amount of tokens required to unhold the context</description>
- </scalar>
- <scalar name="tokens-max">
- <description>The bucket's size</description>
- </scalar>
- <scalar name="fill-rate">
- <description>Amount of tokens to add each <optionref ref="local-interval">interval</optionref></description>
- </scalar>
- <scalar id="local-interval" name="interval">
- <description>The interval between refills of the bucket</description>
- </scalar>
- <scalar name="priority-bias">
- <description>Bias added to priorities calculated within the guest (result is clamped to -20/+19)</description>
- </scalar>
- <scalar name="fill-rate2">
- <description>Amount of tokens to add each <optionref ref="local-interval2">interval2</optionref> when advancing idle time</description>
- </scalar>
- <scalar id="local-interval2" name="interval2">
- <description>The interval between refills of the bucket when advancing idle time</description>
- </scalar>
- <boolean name="idle-time">
- <description>When this file exists, advancing idle time is activated</description>
- </boolean>
- <scalar id="cpu-id" name="cpu-id">
- <description>The CPU to apply these settings to</description>
- </scalar>
- <scalar name="bucket-id">
- <description>The bucket to apply these settings to</description>
- </scalar>
- </collection>
- </collection>
- </collection>
- </database>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
-<xsd:annotation>
- <xsd:documentation xml:lang="en">
- Filesystem Database schema writen by Olivier Poitrey on 4/20/2004
- Version $Id: configuration.xsd 1496 2004-04-22 19:24:05Z ensc $
- </xsd:documentation>
-</xsd:annotation>
-
-<xsd:group name="commonElements">
- <xsd:sequence>
- <xsd:element name="description" type="xsd:normalizedString" minOccurs="0"/>
- </xsd:sequence>
-</xsd:group>
-
-<xsd:attributeGroup name="commonAttributes">
- <xsd:attribute name="name" type="xsd:token" use="required"/>
- <xsd:attribute name="type" default="fixed">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="fixed"/>
- <xsd:enumeration value="symbolic"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:attribute>
- <xsd:attribute name="use" default="required">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="optional"/>
- <xsd:enumeration value="required"/>
- <xsd:enumeration value="prohibited"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:attribute>
-</xsd:attributeGroup>
-
-<xsd:simpleType name="quantityType">
- <xsd:union memberTypes="xsd:unsignedInt">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="unbounded"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:union>
-</xsd:simpleType>
-
-<xsd:complexType name="baseItem" abstract="true">
- <xsd:sequence>
- <xsd:group ref="commonElements"/>
- </xsd:sequence>
- <xsd:attributeGroup ref="commonAttributes"/>
-</xsd:complexType>
-
-<xsd:complexType name="baseNode" abstract="true">
- <xsd:sequence>
- <xsd:group ref="commonElements"/>
- <xsd:choice minOccurs="0" maxOccurs="unbounded">
- <xsd:element name="collection" type="collectionType">
- <xsd:unique name="collection">
- <xsd:annotation>
- <xsd:documentation xml:lang="en">
- Avoid duplicate element with same name attribute on the same level tree
- </xsd:documentation>
- </xsd:annotation>
- <xsd:selector xpath="*"/>
- <xsd:field xpath="@name"/>
- </xsd:unique>
- </xsd:element>
- <xsd:element name="scalar" type="scalarType"/>
- <xsd:element name="list" type="listType"/>
- <xsd:element name="hash" type="hashType"/>
- <xsd:element name="boolean" type="booleanType"/>
- <xsd:element name="data" type="dataType"/>
- <xsd:element name="link" type="linkType"/>
- <xsd:element name="program" type="programType"/>
- </xsd:choice>
- </xsd:sequence>
-</xsd:complexType>
-
-<xsd:complexType name="collectionType">
- <xsd:complexContent>
- <xsd:extension base="baseNode">
- <xsd:attributeGroup ref="commonAttributes"/>
- </xsd:extension>
- </xsd:complexContent>
-</xsd:complexType>
-
-<xsd:complexType name="scalarType">
- <xsd:complexContent>
- <xsd:extension base="baseItem">
- <xsd:sequence>
- <xsd:element name="default" type="xsd:normalizedString" minOccurs="0"/>
- <xsd:element name="restriction" minOccurs="0">
- <xsd:complexType>
- <xsd:choice>
- <xsd:element name="enumeration" minOccurs="0" maxOccurs="unbounded">
- <xsd:complexType>
- <xsd:attribute name="value" type="xsd:normalizedString"/>
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
-</xsd:complexType>
-
-<xsd:complexType name="listType">
- <xsd:complexContent>
- <xsd:extension base="baseItem">
- <xsd:sequence>
- <xsd:element name="minElements" type="quantityType" minOccurs="0" default="0"/>
- <xsd:element name="maxElements" type="quantityType" minOccurs="0" default="unbounded"/>
- <xsd:element name="elements" minOccurs="0">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="element" minOccurs="0" maxOccurs="unbounded">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:group ref="commonElements"/>
- <xsd:element name="default" type="xsd:boolean" minOccurs="0" default="0"/>
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:normalizedString" use="required"/>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
-</xsd:complexType>
-
-<xsd:complexType name="hashType">
- <xsd:complexContent>
- <xsd:extension base="baseItem">
- <xsd:sequence>
- <xsd:element name="keys" minOccurs="0">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="key" minOccurs="0" maxOccurs="unbounded">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:group ref="commonElements"/>
- <xsd:element name="default" type="xsd:normalizedString" minOccurs="0"/>
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:normalizedString" use="required"/>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
-</xsd:complexType>
-
-<xsd:complexType name="booleanType">
- <xsd:complexContent>
- <xsd:extension base="baseItem">
- <xsd:sequence>
- <xsd:element name="default" type="xsd:boolean" minOccurs="0"/>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
-</xsd:complexType>
-
-<xsd:complexType name="dataType">
- <xsd:complexContent>
- <xsd:extension base="baseItem">
- <xsd:sequence>
- <xsd:element name="default" type="xsd:string" minOccurs="0"/>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
-</xsd:complexType>
-
-<xsd:complexType name="linkType">
- <xsd:complexContent>
- <xsd:extension base="baseItem">
- <xsd:sequence>
- <xsd:element name="default" type="xsd:token" minOccurs="0"/>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
-</xsd:complexType>
-
-<xsd:complexType name="programType">
- <xsd:complexContent>
- <xsd:extension base="baseItem">
- <xsd:sequence>
- <xsd:element name="parameterList" minOccurs="0">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="parameter" minOccurs="0" maxOccurs="unbounded">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:group ref="commonElements"/>
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:normalizedString" use="required"/>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
-</xsd:complexType>
-
-<!-- root element -->
-<xsd:element name="database">
- <xsd:complexType>
- <xsd:complexContent>
- <xsd:extension base="baseNode"/>
- </xsd:complexContent>
- </xsd:complexType>
- <xsd:unique name="database">
- <xsd:annotation>
- <xsd:documentation xml:lang="en">
- Avoid duplicate element with same name attribute on the same level tree
- </xsd:documentation>
- </xsd:annotation>
- <xsd:selector xpath="*"/>
- <xsd:field xpath="@name"/>
- </xsd:unique>
-</xsd:element>
-
-</xsd:schema>
+++ /dev/null
-
- 1. [1]Introduction [new.gif]
- 1.1 [2]Who needs that [new.gif]
- 2. [3]Principles [new.gif]
- 2.1 [4]Non reversible isolation [new.gif]
- 2.2 [5]Isolation areas [new.gif]
- 2.3 [6]New system calls [new.gif]
- 2.4 [7]Limiting super-user: The capabilities system [new.gif]
- 2.5 [8]Enhancing the capability system [new.gif]
- 2.6 [9]Playing with the new system calls [new.gif]
- 2.6.1 [10]Playing with /usr/sbin/chcontext [new.gif]
- 2.6.2 [11]Playing with /usr/sbin/chcontext as root [new.gif]
- 2.6.3 [12]Playing with /usr/sbin/chbind [new.gif]
- 2.6.4 [13]Playing with /usr/sbin/reducecap [new.gif]
- 2.7 [14]Unification [new.gif]
- 3. [15]Applications [new.gif]
- 3.1 [16]Virtual server [new.gif]
- 3.2 [17]Per user fire-wall [new.gif]
- 3.3 [18]Secure server/Intrusion detection [new.gif]
- 3.4 [19]Fail over servers [new.gif]
- 4. [20]Installation [new.gif]
- 4.1 [21]The packages [new.gif]
- 4.2 [22]Setting a virtual server [new.gif]
- 4.3 [23]Basic configuration of the virtual server [new.gif]
- 4.4 [24]Entering the virtual server [new.gif]
- 4.5 [25]Configuring the services [new.gif]
- 4.6 [26]Starting/Stopping the virtual server [new.gif]
- 4.7 [27]Starting/Stopping all the virtual servers [new.gif]
- 4.8 [28]Restarting a virtual server from inside [new.gif]
- 4.9 [29]Executing tasks at vserver start/stop time [new.gif]
- 4.10 [30]Issues [new.gif]
- 4.11 [31]How real is it ? [new.gif]
- 5. [32]Features [new.gif]
- 6. [33]Future directions [new.gif]
- 6.1 [34]User controlled security box [new.gif]
- 6.2 [35]Kernel enhancements [new.gif]
- 6.2.1 [36]Per context disk quota [new.gif]
- 6.2.2 [37]Global limits [new.gif]
- 6.2.3 [38]Scheduler [new.gif]
- 6.2.4 [39]Security issues [new.gif]
- 6.2.4.1 [40]/dev/random [new.gif]
- 6.2.4.2 [41]/dev/pts [new.gif]
- 6.2.4.3 [42]Network devices [new.gif]
- 7. [43]Alternative technologies [new.gif]
- 7.1 [44]Virtual machines [new.gif]
- 7.2 [45]Partitioning [new.gif]
- 7.3 [46]Limitation of those technologies [new.gif]
- 8. [47]Conclusion [new.gif]
- 9. [48]Download [new.gif]
- 10. [49]References [new.gif]
-
- Virtual private servers and security contexts
-
- Running independent Linux servers inside a single PC is now possible.
- They offer many advantages, including higher security, flexibility and
- cost reduction.
-
- NEW
-
-Introduction
-
- Linux computers are getting faster every day. So we should probably
- end up with less, more powerful servers. Instead we are seeing more
- and more servers. While there are many reasons for this trend (more
- services offered), the major issue is more related to security and
- administrative concerns.
-
- Is it possible to split a Linux server into virtual ones with as much
- isolation as possible between each one, looking like real servers, yet
- sharing some common tasks (monitoring, backup, ups, hardware
- configuration, ...) ?
-
- We think so ... NEW
-
-Who needs that
-
- The short answer is everybody, or everybody managing a server. Here
- are some applications:
-
- * Hosting: Complete general purpose hosting (Running many
- independent servers in one box).
- * Experimentation: You are toying with a new services and do not
- want to impact the production services on the same machine.
- * Education: Each student has its own server with root password.
- * Personal security box: Run un-trusted applications with complete
- control over their interaction with the rest of the computer and
- the network.
- * Managing several "versions" of the same server/project and turning
- on/off each version independantly.
-
- Just think about all the viruses and worms out there, you end up with
- a big everybody using a computer needs this. :-) NEW
-
-Principles
-
- NEW
-
-Non reversible isolation
-
- Unix and Linux have always had the chroot() system call. This call was
- used to trap a process into a sub-directory. After the system-call,
- the process is led to believe that the sub-directory is now the root
- directory. This system call can't be reversed. In fact, the only thing
- a process can do is trap itself further and further in the file-system
- (calling chroot() again).
-
- The strategy is to introduce new system calls trapping the processes
- in other areas within the server. NEW
-
-Isolation areas
-
- A virtual server is isolated from the rest of the server in 5 areas:
-
- * File system
- The vserver is trapped into a sub-directory of the main server and
- can't escape. This is done by the standard chroot() system call
- found on all Unix and Linux boxes.
- * Processes
- The vserver can only see the processes in the same security
- context. Even the root server can't see the processes in vservers,
- making the root server less "dangerous" to use. A special
- mechanism (context number 1) exists to view all processes though
- (Limited to root in the root server).
- * Networking
- The vserver is assigned a host name and an IP number. The server
- can only use this IP number to establish services and client
- connection. Further, this restriction is transparent.
- * Super user capabilities
- The super user running in a vserver has less privileges than the
- normal Linux root user. For example, it can't reconfigure the
- networking and many aspect of the system. It can't mount devices,
- can't access block devices and so on.
- Roughly. the vserver super-user has full control over all files
- and processes in the vserver and that's pretty much it.
- * System V inter process communications
- Sysv IPC resources are private to each vserver. The security
- context is used as an extra key to select and assign resources.
-
- Those facilities are used together to create a runtime environment for
- virtual servers. But they can be used independently to achieve various
- goals. NEW
-
-New system calls
-
- The new system calls, as well as the existing chroot() system call are
- sharing one common feature: Their effect can't be reversed. Once you
- have executed one of those system call (chroot, new_s_context,
- set_ipv4root), you can't get back. This affects the current process
- and all the child processes. The parent process is not influenced.
-
- * new_s_context (int ctx)
- This system call sets a new security context for the current
- process. It will be inherited by all child processes. The security
- context is just an id, but the system call makes sure a new unused
- one is allocated.
- A process can only see other processes sharing the same security
- context. When the system boot, the original security context is 0.
- But this one is not privileged in anyway. Processes member of the
- security context 0 can only interact (and see) processes member of
- context 0.
- This system call isolates the processes space.
- * Setting the capabilities ceiling
- This is handle by the new_s_context system call as well. This
- reduces the ceiling capabilities of the current process. Even
- setuid sub-process can't grab more capabilities. The capability
- system found since Linux 2.2 is explained later in this document.
- * set_ipv4root(unsigned long ip)
- This system call locks the process (and children) into using a
- single IP when they communicate and when they installs a service.
- This system call is a one shot. Once a process have set its IPV4
- (Internet Protocol Version 4) address to something different from
- 0.0.0.0, it can't change it anymore. Children can't change it
- either.
- If a process tries to bind a specific IP number, it will succeed
- only if this corresponds to the ipv4root (if different from
- 0.0.0.0). If the process bind to any address, it will get the
- ipv4root.
- Basically, once a process is locked to a given ipv4root it is
- forced to use this IP address to establish a service and
- communicate. The restriction on services is handy: Most service
- (Web servers, SQL servers) are binding to address 0.0.0.0. With
- the ipv4root sets to a given IP you can have two virtual servers
- using the exact same general/vanilla configuration for a given
- services and running without any conflict.
- This system calls isolate the IP network space.
-
- Those system calls are not privileged. Any user may issue them. NEW
-
-Limiting super-user: The capabilities system
-
- Once you have created a virtual environment where processes have a
- limited view of the file-system, can't see processes outside of their
- world and can only use a single IP number, you still must limit the
- damages those processes can do. The goal is to run virtual
- environments and provide some root privileges.
-
- How do you limit those root processes from taking over the system, or
- even just re-booting it. Enter the capability system. This is not new,
- but we suspect many people have never heard of it.
-
- In the old Unix/Linux days, user root (user ID 0) could do things
- other user ID could not. All over the place in the kernel, system
- calls were denying access to some resources unless the user ID of the
- process (effective ID in fact) was 0. Plain zero.
-
- The only way a process with user ID 0 could loose some privileges was
- by changing to another ID. Unfortunately this was an all or nothing
- deal. Enter the capabilities.
-
- Today, the difference between root and the other users is the
- capability set. User root has all capabilities and the other users
- have none. The user ID 0 does not mean anything special anymore. There
- are around 30 capabilities defined currently. A process may request to
- loose a capability forever. It won't be able to get it back.
-
- Capabilities allows a root process to diminish its power. This is
- exactly what we need to create custom super-user. A super-user process
- in a virtual server would have some privileges such as binding port
- below 1024, but would not be able to reconfigure the network or reboot
- the machine. Check the file /usr/include/linux/capability.h to learn
- which one are available.
-
- Note that the new system calls (new_s_context and set_ipv4root) are
- not controlled by capabilities. They are by nature irreversible. Once
- a virtual server is trapped in a chroot/s_context/ipv4root box, it
- can't escape from the parameters of this trap.
-
- NEW
-
-Enhancing the capability system
-
- The Linux capability system, is still a work in progress. At some
- point, we expect to see capabilities attached to programs,
- generalizing the setuid concept. A setuid program would become a
- program with all capability granted.
-
- For now, this is not available. As explained above a process may
- request to loose capabilities and its child process will be trapped
- with a smaller capability set.
-
- Well, ..., it does not work that way. Unfortunately, until
- capabilities could be assigned to program, we still need a way to get
- back capabilities even in a child process. So the irreversible logic
- of the capabilities is kind of short circuited in the kernel.
-
- To solve this, we have introduced a new per-process capability ceiling
- (cap_bset). This one represents the capability set inherited by child
- process, including setuid root child process. Lowering this ceiling is
- irreversible for a process and all its child.
-
- This ceiling is handled by the new_s_context system call and the
- reducecap and chcontext utilities (part of the vserver package).
-
- Using this, we can setup a virtual server environment where root has
- less capabilities, so can't reconfigure the main server.
-
- NEW
-
-Playing with the new system calls
-
- The vserver package provides 3 utilities to make use of the new system
- calls. We will describe shortly how they work and provide few example.
- We invite the reader to try those example, so it has a better feel and
- trust.
-
- After re-booting with a kernel implementing the new system calls, and
- installing the vserver package, one is ready to do experiment. You do
- not need to be root to test those new utilities. None of them is
- setuid either. NEW
-
-Playing with /usr/sbin/chcontext
-
- The /usr/sbin/chcontext utility is used to enter into a new security
- context. The utility switch the security context and execute a
- program, specified on the command line. This program is now isolated
- and can't see the other processes running on the server.
-
- The experiment with this, start two command windows (xterm), as the
- same user ID. In each window execute the following commands:
-
- xterm
-
- Using chcontext: first window
-
-/usr/sbin/chcontext /bin/sh
-pstree
-killall xterm
-exit
-
- Using chcontext: second window
- In the first window, you start the xterm command (or any command you
- like). In the second window you execute chcontext. This starts a new
- shell. You execute pstree and see very little. You attempt to kill the
- xterm and you fail. You exit this shell and you are back seeing all
- processes.
-
- Here is another example. You switch context and you get a new shell.
- In this shell you start an xterm. Then you switch context again and
- start another sub-shell. Now the sub-shell is again isolated.
-
-/usr/sbin/chcontext /bin/sh
-pstree
-xterm &
-pstree
-# Ok now you see your xterm
-/usr/sbin/chcontext /bin/sh
-pstree
-# the xterm is not there, killall will fail
-killall xterm
-# Now we exit the shell
-exit
-pstree
-# the xterm is there
-killall xterm
-# Ok, it is gone
-exit
-# We are back to the initial security context
-
- Using chcontext several times
- Processes isolated using chcontext are doubly isolated: They can't see
- the other processes on the server, but the other processes can't see
- them either. The original security context (0) when you boot is no
- better than the other: It sees only process in security context 0.
-
- While playing with chcontext, you will notice an exception. The
- process 1 is visible from every security context. It is visible to
- please utilities like pstree. But only root processes in security
- context 0 are allowed to interact with it. NEW
-
-Playing with /usr/sbin/chcontext as root
-
- The new_s_context system call has a special semantic for root
- processes running in security context 0 and having the CAP_SYS_ADMIN
- capability: They can switch to any context they want.
-
- Normally, new_s_context allocates a new security context by selecting
- an unused one. It walks all processes and find an ID (an integer) not
- currently in use.
-
- But root in security context 0 is allowed to select the context it
- wants. This allow the main server to control the virtual server. The
- chcontext utility has the --ctx option to specify the context ID you
- want.
-
- To help manage several virtual server, given that the security context
- 0 can't see processes in other security context, it is a good thing
- root in the main server (security context 0) is allowed to select a
- specific context. Cool. But we also need a way to have a global
- picture showing all processes in all security context. The security
- context 1 is reserved for this. Security context 1 is allowed to see
- all processes on the server but is not allowed to interact with them
- (kill them).
-
- This special feature was allocated to security context 1 and not 0
- (the default when you boot) to isolate virtual servers from the main.
- This way, while maintaining services on the main server, you won't
- kill service in vservers accidentally.
-
- Here is an example showing those concepts:
-
-# You must be root, running X
-# We start an xterm in another security context
-/usr/sbin/chcontext xterm &
-# We check, there is no xterm running, yet we can
-# see it.
-ps ax | grep xterm
-# Are we running in security context 0
-# We check the s_context line in /proc/self/status
-cat /proc/self/status
-# Ok we in security context 0
-# Try the security context 1
-/usr/sbin/chcontext --ctx 1 ps ax | grep xterm
-# Ok, we see the xterm, we try to kill it
-/usr/sbin/chcontext --ctx 1 killall xterm
-# No, security context 1 can see, but can't kill
-# let's find out in which security context this
-# xterm is running
-/usr/sbin/chcontext --ctx 1 ps ax | grep xterm
-# Ok, this is PID XX. We need the security context
-/usr/sbin/chcontext --ctx 1 cat /proc/XX/status
-# We see the s_context, this is SS.
-# We want to kill this process
-/usr/sbin/chcontext --ctx SS killall xterm
-
- chcontext as root
- The /usr/sbin/vpstree and /usr/sbin/vps commands are supplied by the
- vserver package. They simply runs ps and pstree in security context 1.
- NEW
-
-Playing with /usr/sbin/chbind
-
- The chbind utility is used to lock a process and its children into
- using a specific IP number. This applies to services and client
- connection as well. Here are few examples. Execute them as root:
-
-# httpd is running
-netstat -atn | grep ":80 "
-# We see a line like this
-# tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
-# Now we restart httpd, but we lock it so it
-# uses only the main IP of eth0
-/usr/sbin/chbind --ip eth0 /etc/rc.d/init.d/httpd restart
-netstat -atn | grep ":80 "
-# Now we see a line like
-# tcp 0 192.168.1.1:80 0.0.0.0:* LISTEN
-# httpd.conf was not changed.
-# Now, restart it normally
-/etc/rc.d/init.d/httpd restart
-# Now we experiment with client socket
-# Log using telnet
-telnet localhost
-# Once logged in
-netstat -atn | grep ":23 "
-# You should see a line showing a connection from
-# 127.0.0.1 to 127.0.0.1 like this
-# tcp 0 0 127.0.0.1:23 127.0.0.1:32881 ESTABLISHED
-exit
-# Now we do the telnet again, bug forcing it to select a specific IP
-/usr/sbin/chbind --ip eth0 telnet localhost
-# Log in and then execute
-netstat -atn | grep ":23 "
-# You will get something like
-# tcp 0 0 127.0.0.1:23 192.168.3.9:32883 ESTABLISHED
-
- Using /usr/sbin/chbind
- NEW
-
-Playing with /usr/sbin/reducecap
-
- The reducecap utility is used to lower the capability ceiling of a
- process and child process. Even setuid program won't be able to grab
- more capabilities.
-
-# You are not root now
-# What is the current capability ceiling
-cat /proc/self/status
-# The capBset line presents mostly 1s.
-/usr/sbin/reducecap --secure /bin/sh
-cat /proc/self/status
-# The capBset now shows many more 0s.
-# The capEff shows all 0s, you have no privilege now
-# We su to root
-su
-cat /proc/self/status
-# capEff is much better now, but there are still many 0s
-# Now we try to see if we are really root
-tail /var/log/messages
-# So far so good, we see the content
-/sbin/ifconfig eth0
-/sbin/ifconfig eth0 down
-# No way, we can't configure the interface. In fact
-# we have lost most privilege normally assigned to root
-exit
-
- Using /usr/sbin/reducecap
- NEW
-
-Unification
-
- Installing a virtual private server copies a linux installation inside
- a sub-directory. It is a linux inside linux. If you intend to run
- several vservers on the same box (which you will certainly do :-) ),
- you will end up using a lot of disk space needlessly: Each vserver is
- made up hundreds of megabytes of the same stuff. This is a big waste
- of disk space.
-
- A solution is to use hard links to connect together common files.
- Using the package information, we can tell which packages are shared
- between various vservers, which files are configuration files and
- which are not (binaries, libraries, resource files, ...). Non
- configuration files may be linked together saving a huge amount of
- disk space: A 2 GIG rh7.2 installation shrinks to 38megs.
-
- Using hard links is cool, but may be a problem. If one vserver
- overwrite one file, say /bin/ls, then every vserver will inherit that
- change. Not fun! The solution is to set the immutable bit on every
- linked file. A file with such a bit on can't be modified, even by
- root. The only way to modify it is to turn off the bit first. But
- within a vserver environment, even root is not allowed to perform this
- task. So linked file, turned immutable, are now safe: They can be
- shared between vservers without side effects: Cool!
-
- Well, there is still another side effect. All vservers are now locked
- with the same files. We are saving a lot of disk space, but we pay a
- very heavy price for that: Vservers can't evolve independantly.
-
- A solution was found. A new bit call immutable-linkage-invert was
- added. Combined with the immutable bit, a file may not be modified,
- but may be unlinked. Unlinking a file in Unix/Linux means
- disconnecting the name from the data and removing the name from the
- directory. If the data is still referenced by one or more vservers, it
- continue to exist on disk. So doing "rm /bin/ls" on a vserver, removes
- the file /bin/ls for that vserver and that's all. If all vservers
- perform this task, then /bin/ls (the data) will be forgotten completly
- and the disk space will be recovered.
-
- Using this trick, a vserver gets back its independance. It becomes
- possible to update packages by using the unlink/update sequence:
- Unlink /bin/ls first and then put a new copy in place. Luckily,
- package manager works this way.
-
- To keep this story short (probably too late :-) ), a unified vserver:
- * Uses little disk space
- * Can't interfere with other vservers by changing one of its file.
- * Can perform package update/deletion normally using standard
- practice.
-
- NEW
-
-Applications
-
- NEW
-
-Virtual server
-
- The first goal of this project is to create virtual servers sharing
- the same machine. A virtual server operate like a normal Linux server.
- It runs normal services such as telnet, mail servers, web servers, SQL
- servers. In most cases, the services run using standard configuration:
- The services are running unaware of the virtual server concept.
-
- Normal system administration is performed with ordinary admin tool.
- Virtual servers have users account and a root account.
-
- Packages are installed using standard packages (RPMs for example).
-
- There are few exceptions. Some configuration can't be done inside a
- virtual server. Notably the network configuration and the file-system
- (mount/umount) can't be performed from a virtual server.
-
- NEW
-
-Per user fire-wall
-
- The set_ipv4root() system call may be used to differentiate the
- various users running on an application server. If you want to setup a
- fire-wall limiting what each user is doing, you have to assign one IP
- per user, even if they are running application on the same server. The
- chbind utility may be used to achieve that. NEW
-
-Secure server/Intrusion detection
-
- While it can be interesting to run several virtual servers in one box,
- there is one concept potentially more generally useful. Imagine a
- physical server running a single virtual server. The goal is isolate
- the main environment from any service, any network. You boot in the
- main environment, start very few services and then continue in the
- virtual server. The service in the main environment could be
-
- * Un-reachable from the network.
- * The system log daemon. While virtual server could log messages,
- they would be unable to change/erase the logs. So even a cracked
- virtual server would not be able the edit the log.
- * Some intrusion detection facilities, potentially spying the state
- of the virtual server. For example tripwire could run there and it
- would be impossible to circumvent its operation or trick it.
-
- NEW
-
-Fail over servers
-
- One key feature of a virtual server is the independence from the
- actual hardware. Most hardware issues are irrelevant for the virtual
- server installation. For example:
-
- * Disk layout, partitions and the /etc/fstab configuration. The
- virtual server has a dummy /etc/fstab.
- * Network devices.
- * Processor type, number of processor (kernel selection).
-
- The main server acts as a host and takes care of all those details.
- The virtual server is just a client and ignores all the details. As
- such, the client can be moved to another physical server will very few
- manipulations. For example, to move the virtual server v1 from one
- physical one computer to another, you do
-
- * Turn it off
- /usr/sbin/vserver v1 stop
- * Copy the file /etc/vservers/v1.conf to the new server.
- * Copy all files in /vservers/v1 to the new server
- * On the new server, start the vserver v1
- /usr/sbin/vserver v1 start
-
- As you see, there is no adjustment to do:
-
- * No user account merging.
- * No hardware configuration to fix.
-
- This opens the door to fail over servers. Imagine a backup server
- having a copy of many virtual servers. It can take over their tasks
- with a single command. Various options exists for managing this backup
- server:
-
- * rsync to synchronize the data.
- * Network block devices to synchronize the data in real time.
- * Sharing the installation over a SAN (storage area network).
- * Heartbeat for automatic monitoring/fail over.
-
- NEW
-
-Installation
-
- NEW
-
-The packages
-
- * The kernel
- We are supplying a patched 2.4.20 kernel. You will find [50]here
- the kernel, the .config and the patch.
- To install the kernel, just untar it. This will create a file
- /boot/kernel-2.4.20ctx-17 (ctx stands for security context) and a
- directory /lib/modules/2.4.20ctx-17.
- Then, you need to update your boot loader. For lilo, you add a
- section like this at the end of the file /etc/lilo.conf
-
-
-image=/boot/vmlinuz-2.4.20ctx-17
- label=linux2.4.20ctx-17
- read-only
- root=current
-
- lilo.conf section to add
- Change the /dev/XXXX to your root partition. Then execute
- /sbin/lilo.
- Reboot and select the proper kernel. This kernel is fully
- compatible with a normal 2.4.20 and will perform without any new
- configuration. Note that the supplied kernel does not carry all
- the features and modules found on the various distributions.
- * The vserver package
- This package provides the various utilities to make use of those
- new system calls. The package also provides a complete solution to
- implement virtual servers. We describe the major components here.
- + /usr/sbin/chcontext
- This is the utility to request a new security context. It can
- be used to lower the capability ceiling. Execute it to learn
- more.
- + /usr/sbin/chbind
- This is the utility to select one IP number and assign it to
- a process and its children.
- + /usr/sbin/newvserver (in vserver-admin)
- Front-end to help create new virtual servers.
- + /usr/sbin/reducecap
- This utility is used to lower the capability ceiling of
- children processes.
- + /usr/sbin/vdu
- A trimmed down "du" command reporting space usage of files
- with a single link. Useful to tell how much space a unified
- vserver is using.
- + /usr/sbin/vkill
- Locate the security context associated with a process, enter
- it and kill the process. Generally used after you have
- located a process with vtop, vpstree or vps.
- + /usr/sbin/vps
- Execute the ps command in security context 1 so all processes
- in all vservers are shown. The security context and vserver
- name are mapped inside the report.
- + /usr/sbin/vpstree
- Execute the pstree command in security context 1 so all
- processes in all vservers are shown.
- + /usr/sbin/vrpm
- Apply an rpm command in several (or all) vservers. Useful
- when you wish to update many vservers with the same package.
- /usr/sbin/vrpm server1 server2 -- -Uvh /tmp/*.rpm
- /usr/sbin/vrpm ALL -- -Uvh /tmp/*.rpm
- After updating many packages in different vservers you may
- want to re-unify them to recover disk space (and increase
- cache effectivity). You can do this using the vunify command,
- or simply by using the --unify option to the vrpm command.
- After performing the rpm updates, vrpm will trigger the
- vunify utility on the vservers for the updated packages.
- /usr/sbin/vrpm --unify server1 server2 -- -Uvh /tmp/*.rpm
- + /usr/sbin/vserver
- This is the wrapper to start, stop and administer virtual
- servers.
- + /usr/sbin/vserver-stat
- Produce a small report showing the activity in active
- security context. The report presents the number of process
- in each active security context as well as the name of the
- vserver associated with this context.
- + /usr/sbin/vtop
- Execute the top command in security context 1 so all
- processes in all vservers are shown.
- + /etc/rc.d/init.d/vservers
- This is an init script used to start all virtual servers at
- boot time and stop them at shutdown time. Only virtual
- servers with ONBOOT=yes are started at boot time. All
- vservers are stopped at shutdown time.
- + /etc/rc.d/init.d/rebootmgr
- This is a daemon listening to requests from virtual servers.
- It can either restart or stop a virtual server. The
- /sbin/vreboot and /sbin/vhalt utilities are used to send
- request to the reboot manager.
- + /sbin/vreboot and /sbin/vhalt
- Those utilities are copied in each virtual server. They
- connect to the reboot manager (rebootmgr) server using the
- /dev/reboot Unix domain socket and request either a restart
- or a stop of the virtual server. The reboot manager issue
- either a "/usr/sbin/vserver vserver restart" or
- "/usr/sbin/vserver vserver stop" command. This allows the
- virtual server administrator to test if all automatic service
- are properly restarted at boot time.
- + /usr/lib/vserver/vdu
- This is a limited clone of the du command. It skips file with
- more than one link. It is used to evaluate the disk usage of
- an unified vserver. Using the normal du for this task is
- misleading since it will count all unified files.
-
- NEW
-
-Setting a virtual server
-
- To set a virtual server, you need to copy in a sub-directory a Linux
- installation. One way to achieve that is to copy some parts of the the
- current server by issuing the command vserver XX build, where XX is
- the name of the virtual server (pick one). This basically does (Well,
- it does a little more than that, but this give you an idea):
-
-mkdir /vservers/XX
-cd /vservers/XX
-cp -ax /sbin /bin /etc /usr /var /dev /lib .
-mkdir proc tmp home
-chmod 1777 tmp
-
- Building a virtual server
-
- This is normally done using the command /usr/sbin/newvserver. This is
- a text mode/graphical front-end allowing to setup the vserver runtime
- and configure it. NEW
-
-Basic configuration of the virtual server
-
- A virtual private server has a few settings. They are defined in the
- file /etc/vservers/XX.conf where XX is the name of the virtual server.
- This is a simple script like configuration. Here are the various
- parameters:
-
- * IPROOT
- In general, each virtual server is tied to one IP using the new
- set_ipv4root system call. This way several servers may run the
- same services without conflict. Enter the IP number (a name is
- also valid if defined in the DNS).
- Since kernel ctx-12, you can assign more than one IP number to a
- vserver. Enter them separated by spaces and don't forget to
- enclose them with quotes.
- Bu default, all IPs are configured as an IP alias on the IPROOTDEV
- device (if defined). If you want to attach the various IP numbers
- to different devices, specify the device as a prefix to the IP
- number like this:
-
-IPROOT="eth0:192.168.1.2 eth1:192.168.3.1 192.168.1.4"
-
- IPROOT using multiple devices
- In the example above, the IP 192.168.1.4 will be installed as an
- IP alias on the device IPROOTDEV.
- Use "IPROOT=0.0.0.0" or "IPROOT=" if you do not want to tie the
- vserver at all. It will be allowed to use any IP available on the
- server.
- * IPROOTDEV
- This is the network device use to setup the IP alias defined by
- IPROOT. This is generally eth0. If you define this variable, the
- IP alias will be configured when you start the virtual server and
- un-configure when you stop it.
- * IPROOTMASK
- Netmask used to setup the IP alias. Uses the netmask of the
- IPROOTDEV device by default. Seldom used.
- If you have several IPs on one vserver and want to have different
- netmask for each, use the following syntax:
-
-IPROOT="eth0:192.168.1.2 eth1:192.168.3.1/255.255.255.192"
-
- IPROOT using different netmask
- 192.168.1.2 will use the netmask of eth0, while 192.168.3.1 will
- use the specified netmask: 255.255.255.192.
- * IPROOTBCAST
- Broadcast address used to setup the IP alias. Uses the broadcast
- of the IPROOTDEV device by default. Seldom used.
- * ONBOOT
- The vserver package supplies the vservers service. This service is
- installed in the main server. It is used to start and stop the
- virtual server at boot and shutdown time.
- Virtual server with ONBOOT=yes will be started and stopped
- properly like any other services of the main server.
- Once a virtual server is properly configured, it is a good idea to
- set this parameter to yes.
- * S_CAPS
- You enter here the various capability you want to grant to the
- vserver. By default, a vserver is left with much less capabilities
- than the root server. For example, a vserver is not allowed to use
- raw socket. This explains why the ping command fails. S_CAPS lets
- you enumerate the capability you want to keep in the vserver.
- CAP_NET_RAW will give back ping ability for example.
- * S_CONTEXT
- This is optional. In general the security context ID is selected
- by the kernel. An unused one is selected. If you select an ID (an
- integer greater than 1), make sure you select a different one for
- each server. Again, in most cases, you do not need to select one.
- Leave the line commented.
- * S_DOMAINNAME
- A virtual server may have a different NIS domainname than the main
- server. You set it here. If you leave the field empty, the vserver
- will inherit the same NIS domain as the root server. Enter "none"
- to reset the NIS domain name for this vserver.
- * S_HOSTNAME
- Many services (Apache for one) use the host name to setup some
- defaults. A virtual server may have a different host name than the
- main server. It is a good idea to fill this line.
- * S_NICE
- The is an optional priority level. It is an integer ranging
- between from -20 to 19. Well it is the nice level in fact, so -20
- means the highest priority and 19 the lowest (the highest nice
- level). All processes in the virtual server will be locked to this
- level (or higher niceness).
- Event root is locked and can't get more priority.
- Note that this has limited usefulness. The kernel does not
- differentiate processes running in different security context for
- scheduling (for now :-) ). This means that a virtual servers
- running many low priority processes may nevertheless claim a large
- share of CPU.
- * S_FLAGS
- This is used to set various flags. Here are the supported flags:
- + lock
- This flags prevents the vserver from setting new security
- contexts.
- + sched
- It kind of unifies the processes in a vserver from a
- scheduler view point. All processes are weighted as single
- one when compared to other processes in the real server. This
- prevents a vserver from taking to much CPU resources.
- + nproc
- Make the ulimit maximum user process global to the vserver.
- + private
- Once set on a vserver security context, no other process can
- enter it. Even the root server is unable to enter the
- context. It can see the process list using security context
- 1, but can't signal or trace the process.
- + fakeinit
- This assigned the current process so it works like the
- process number 1. Using this trick, a normal /sbin/init may
- be run in a vserver. The /usr/sbin/vserver command will use
- /sbin/init to start and stop a vserver. A properly configured
- /etc/inittab is needed though.
- o Processes loosing their parent are reparent to this
- process.
- o getppid() done by child process of this process returns
- 1.
- o getpid() done by this process returns 1.
- o This process is not shown in /proc since process number
- 1 is always shown.
- o An "initpid" entry is available in /proc/*/status to
- tell which process is the fake init process.
- * ULIMIT
- This contains the command line option to the ulimit shell command.
- You enter here whatever parameters accepted by ulimit. Here is the
- default when you create a new vserver:
-
-ULIMIT="-H -u 1000"
-
- Default vserver ulimit
- Normally ulimit settings only affects users independantly. So
- limiting a vserver this way, limit each user processes
- independantly in the vserver. Using special flags in the S_FLAGS
- option, you can make those ulimit settings global to the vserver.
- The example above used with the nproc parameter make the maximum
- number of process global. In this case, a maximum of 1000
- processes is available to all users in the vserver.
-
- NEW
-
-Entering the virtual server
-
- It is possible to enter a virtual server context from the main server
- just by executing /usr/sbin/vserver XX enter (where XX is the virtual
- server name).
-
- This creates a shell. From there you can execute anything
- administrative you normally do on a Linux server.
-
- NEW
-
-Configuring the services
-
- The virtual server can run pretty much any services. Many pseudo
- services, such as network configuration are useless (the server is
- already configured). After building the environment, enter it (without
- starting the virtual server) using the vserver name enter command.
- Then using a tool like Linuxconf (control/control service activity) ,
- or ntsysv, browse all service and keep only the needed ones.
-
- So after building the server, you enter it and you select the service
- you need in that server. Many services such as network, and apmd are
- either useless or won't run at all in the virtual server. They will
- fail to start completely. NEW
-
-Starting/Stopping the virtual server
-
- Virtual server with ONBOOT=yes will be started and stopped like any
- other services of the main server. But you can stop and start a
- virtual server at any time. Starting a server means that all
- configured service will be started. Stopping it means that all
- configured services will be stopped and then all remaining process
- will be killed.
-
- Oddly, starting a virtual server does not mean much. There is no
- overhead. No monitoring process or proxy or emulator. Starting a
- virtual server with 4 services is the same as running those 4 services
- in the main server, at least performance wise (the service inside a
- virtual server are locked inside the security context).
-
- The following commands may be used to control a virtual server:
-
- * /usr/sbin/vserver server start
- * /usr/sbin/vserver server stop
- * /usr/sbin/vserver server restart
- * /usr/sbin/vserver server running
- * /usr/sbin/vserver server enter
- * /usr/sbin/vserver server exec some commands ...
- * /usr/sbin/vserver server suexec user some commands ...
- * /usr/sbin/vserver server service service-name
- start/stop/restart/status
- * /usr/sbin/vserver server status
-
- The running command prints if there are any processes running in the
- virtual server context.
-
- Please note
-
- The processes running in a virtual server are invisible from the main
- server. The opposite is true. This is very important. Managing the
- main server must not cause problems to the various virtual servers.
- For example, doing killall httpd will kill all the httpd processes in
- the current context ( the main server or a virtual one).
-
- NEW
-
-Starting/Stopping all the virtual servers
-
- The sysv script /etc/rc.d/init.d/vserver is used to start and stop the
- virtual server at boot and shutdown time. It may be used at any time
- to operate all virtual servers. The following commands are supported:
-
- * /etc/rc.d/init.d/vservers start
- * /etc/rc.d/init.d/vservers stop
- * /etc/rc.d/init.d/vservers restart
- * /etc/rc.d/init.d/vservers status
-
- The status command reports the running status of every virtual server.
- NEW
-
-Restarting a virtual server from inside
-
- A virtual server administrator is not allowed to reboot the machine
- (the kernel). But it is useful to restart his virtual server from
- scratch. This allow him to make sure all the services are properly
- configured to start at boot time.
-
- The /sbin/vreboot and /sbin/vhalt utilities are installed in each
- virtual server so they can request a restart or stop.
-
- The rebootmgr service must be enabled in the main server.
-
- NEW
-
-Executing tasks at vserver start/stop time
-
- You can setup a script called /etc/vservers/XX.sh where XX is the name
- of the virtual server. This script will be called four time:
-
- * Before starting the vserver
- * After starting it.
- * Before stopping it.
- * After stopping it.
-
- You generally perform tasks such as mounting file system (mapping some
- directory in the vserver root using "mount --bind").
-
- Here is an example where you map the /home directory as the vserver
- /home directory.
-
-#!/bin/sh
-case $1 in
-pre-start)
- mount --bind /home /vservers/$2/home
- ;;
-post-start)
- ;;
-pre-stop)
- ;;
-post-stop)
- umount /vservers/$2/home
- ;;
-esac
-
- /etc/vservers/XX.sh
- NEW
-
-Issues
-
- There are some common problem you may encounter. Here they are.
-
- * The main server is not tied (by default) to any ipv4root. So if
- the main server has already some service running they are probably
- binding some UDP or TCP ports using the address 0.0.0.0. Once a
- process has bound a service with the address 0.0.0.0 (see the
- LISTEN lines when executing the "netstat -a" command), no other
- process can bind the same port, even with a specific address.
- The solution is to start the services of the main server using the
- chbind utility to trap them in one ipv4root. For example
-
-/sbin/chbind --ip eth0 /etc/rc.d/init.d/httpd start
-
- Assigning on IP to a service
- will limit Apache to the IP address of the eth0 interface. without
- configuration changes (in httpd.conf). It is probably a good idea
- to start the following services in the main server this way,
- because they will be run by virtual servers as well.
-
- * httpd
- * sshd
- * xinetd
-
- To ease this, the vserver package supplies the following services:
- v_httpd, v_sshd, v_smb and v_xinetd. Disable the corresponding
- services and enable the v_ services and you will lock those services
- on a single IP.
-
- Cleanup rc.local. This is probably not doing anything useful.
-
- NEW
-
-How real is it ?
-
- The project is new. So far, experiments have shown very little
- restrictions. Service works the same in a virtual server. Further,
- performance is the same. And there is a high level of isolation
- between the various virtual servers and the main server. NEW
-
-Features
-
- There are various tricks one can use to make the virtual servers more
- secure.
-
- * Putting a fire-wall on the box and limiting access to a virtual
- services from another one.
- * Using port redirection to allow one virtual server to logically
- bind several IPs. One virtual server could run several web virtual
- host this way.
-
- NEW
-
-Future directions
-
- NEW
-
-User controlled security box
-
- By combining the capabilities, the s_context, the ipv4root and the
- AclFS (component of the [51]virtualfs package), we can produce a user
- level tool allowing controlled access to the user own resources. For
- example the user may download any program he wants and execute them
- under control. Whenever the program tries to access something not
- specified by the user, a popup is presented and the user may choose to
- terminate the program or allow the access.
-
- NEW
-
-Kernel enhancements
-
- We expect to see some wider usage of the virtual servers. As usage
- grow, we expect to see needs for more control. Here are some ideas.
-
- NEW
-
-Per context disk quota
-
- If one installs virtual servers and grant access to less trusted
- users, he may want to limit the disk space used. Since a virtual
- server may create new user accounts and run processes with any user ID
- it wants, the current kernel disk quota is not powerful enough. First,
- it can't differentiate between user ID 100 in one virtual server and
- user ID 100 in another one.
-
- Further, the main administrator may want to control disk space
- allocated to the virtual server on a server per server basis,
- unrelated to the various user ID in use in those virtual servers.
-
- The kernel has already user and group disk quota. Adding security
- context disk quota should be easily done.
-
- To differentiate between user IDs in virtual servers, the kernel could
- coin together the security context and the user id to create a unique
- ID. The kernel 2.4 now supports 32 user ID, so combining security
- context and user ID in a single 32 bits number should be acceptable.
-
- NEW
-
-Global limits
-
- The kernel has supports for user limit (memory, processes file
- handles). With virtual server, we may want to limit the resources used
- by all processes in the virtual server. The security context would be
- used as the key here. The following resources could be limited on a
- security context basis (as opposed to user or process basis)
-
- * Memory used
- * Processes number
- (Done: This is now supported with the nproc flag in the kernel
- 2.4.16ctx-4. By default a new vserver is limited to 1000 processes
- maximum, configurable).
- * File handles
-
- NEW
-
-Scheduler
-
- The scheduler may become security context aware. It could potentially
- use this to provide some fairness and control priority based on
- context. Currently the scheduler is process oriented and does not
- group process together to qualify their priorities. For example, a
- user running 10 compilations will get more CPU than another user
- running a single compilation.
-
- Currently, it is possible to raise the nice (lower priority) for all
- processes in a virtual server. This can't be reversed, so you are
- setting an upper limit on priority (Just set the S_NICE variable in
- the vserver configuration file). Note that a virtual server may still
- start many low priority processes and this can grab significant share
- of the CPU. A global per security context might be needed to really
- provide more control and fairness between the various virtual servers.
-
- Done: The sched security context flag group all process in a vserver
- so their priority is kind of unified. If you have 50 processes running
- full speed in one vserver, they will take as much CPU resource than a
- single process in the root server. A vserver can't starve the other...
- NEW
-
-Security issues
-
- The current kernel + patch provides a fair level of isolation between
- the virtual servers. User root can't take over the system: He sees
- only his processes, has only access to his area of the file system
- (chroot) and can't reconfigure the kernel. Yet there are some
- potential problems. They are fixable. As usage grows, we will know if
- they are real problems. Comments are welcome:
-
- NEW
-
-/dev/random
-
- Writing to /dev/random is not limited by any capability. Any root user
- (virtual included) is allowed to write there. Is this a problem ?
-
- (kernel expert think it is ok) NEW
-
-/dev/pts
-
- /dev/pts is a virtual file-system used to allocate pseudo-tty. It
- presents all the pseudo-tty in use on the server (including all
- virtual server). User root is allowed to read and write to any
- pseudo-tty, potentially causing problems on other vservers.
-
- Starting with the ctx-6 patch, /dev/pts is virtualised. Although the
- file numbers are allocated from a single pool, a vserver only see the
- pseudo-tty it owns. NEW
-
-Network devices
-
- Anyone can list the network devices configurations. This may inform a
- virtual user that another vserver is on the same physical server. By
- using as much resources as possible in his own vservers, a malicious
- user could slow down the other server. Modification to the scheduler
- explained above could stop this.
-
- Starting with the ctx-6 patch, a vserver only see the device
- corresponding to its IP number. NEW
-
-Alternative technologies
-
- Using virtual servers may be a cost effective alternative to several
- independent real servers. You get the administrative independence of
- independent servers, but share some costs including operation costs.
-
- Other technologies exist offering some of the advantages talked in
- this document as well as other. Two technologies are available on
- various hardware platform: Virtual machines and partitioning, NEW
-
-Virtual machines
-
- This has been available for mainframes for a while now. You can boot
- several different OS at once on the same server. This is mainly used
- to isolate environments. For example, you can install the new version
- of an OS on the same server, even while the server is running the
- current version. This allows you to test and do a roll-out gracefully.
-
- The advantages of virtual machines are:
-
- * Total flexibility. You can run many different OS and different
- version of the same OS, all at once.
- * Robustness. You have total isolation. One OS may crash without
- affecting the other.
- * Resource management. You can effectively limit the resources taken
- by one OS.
- * Hardware Independence. The client OS is using virtual disks
- provided by the host OS.
-
- This technology is not directly available on PCs. The Intel x86
- architecture does not support visualization natively. Some products
- nevertheless have appeared and provide this. You can run Linux inside
- Linux, or this other OS (Which BTW has a logo showing a window flying
- in pieces, which quite frankly tells everything about it).
-
- The solutions available on PCs carry most of the advantages of the
- virtual machines found on mainframe, except for performance. You can't
- run that many virtual Linux's using this technology and expect it to
- fly. One example of this technology is [52]vmware, which is quite
- useful, especially if you must run this other OS... vmware may be used
- to run Linux inside Linux, even test Linux installation while running
- linux... NEW
-
-Partitioning
-
- Partitioning (domains ?) is a way to split the resources of a large
- server so you end up with independent servers. For example, you can
- take a 20 CPUs server and create 3 servers, two with 4 CPUs and one
- with 12. You can very easily re-assign CPUs to servers in case you
- need more for a given tasks.
-
- This technology provides full Independence, but much less flexibility.
- If your 12 CPUs server is not working much, the 4 CPUs one can't
- borrow some CPUs for 5 minutes. NEW
-
-Limitation of those technologies
-
- Oddly, one disadvantage of those technologies is a side effect of
- their major advantage: Total Independence. Each virtual server is
- running its own kernel. Cool. This makes the following tasks more
- difficult or impossible:
-
- * Sharing administrative tasks such as backup. The virtual servers
- are using volumes in the host server. The host server can't handle
- the files in those volumes directly without interfering with the
- client OS. It has to use some services of the client OS to access
- the file.
- The vserver solution does not have this limitation since the
- virtual servers are living in the same file-system, sharing the
- same kernel.
- * Task monitoring. The virtual servers run their own kernel. As
- such, the host OS can't spy on the tasks and check for intrusion
- for example.
- * Disk space. Virtual servers are using either volumes or full
- devices in the host server. This space is pre-allocated to the
- maximum needed by the server. You end up with a lot of wasted disk
- space. Imagine running 100 virtual servers this way and allocating
- say 10 gigs to each. You get the picture. The vserver solution is
- sharing a common file-system so the free disk space is available
- to all.
- Further, if you are running the same Linux distribution in the
- virtual servers, you can unify the disk space using hard link and
- immutable attributes. The /usr/lib/vserver/vunify was created to
- test that. Using information found in the rpm package the script
- links the files, except configuration ones.
- Testing vunify on a vserver installed with a RedHat 6.2
- distribution, unifying the packages glibc, binutils, perl, and
- bash saved 60 megs. Quite a few packages are not changing often
- and could be unified.
- Vservers do not need kernel packages and hardware configuration
- tools. This also contribute to save disk space.
- * File system sharing
- A little the same as above. You can't share file system easily
- between vservers unless you use network services (often slower).
- Using "mount --bind", it is very easy to "map" any directory of
- the root server in several vservers, providing raw speed access
- (and even sharing the disk cache).
-
- NEW
-
-Conclusion
-
- Virtual servers are interesting because they can provide a higher
- level of security while potentially reducing the administration task.
- Common operation such as backup, are shared between all servers.
- Services such as monitoring may be configured once.
-
- A Linux server can run many services at once with a high level of
- reliability. As servers are evolving, more and more services are
- added, often unrelated. Unfortunately there are few details here and
- there, making the server more complex than it is in reality. When one
- wants to move one service to another server, it is always a little
- pain: Some user accounts have to be moved and some configuration
- files. A lot of hand tweaking.
-
- By installing services in separate virtual servers, it becomes much
- easier to move services around (just by moving a directory although a
- big one).
-
- Virtual servers may become a preferred way to install common Linux
- servers. NEW
-
-Download
-
- The ftp site for this project is
- [53]ftp://ftp.solucorp.qc.ca/pub/vserver . You will find there the
- following components.
-
- * [54]kernel-2.4.20ctx-17.tar.gz
- [55]kernel-2.4.20ctxsmp-17.tar.gz
- A pre-compiled kernel for Pentium class machine and up. An SMP
- kernel is also supplied.
- * [56]vserver-0.22-1.src.rpm
- The source RPM for the vserver utilities
- * [57]vserver-0.22-1.i386.rpm
- A compiled rpm for RedHat 7.x and up. Should work on any recent
- distribution (glibc 2.2). You need a recent distribution to
- operate a kernel 2.4 anyway.
- * [58]vserver-admin-0.22-1.i386.rpm
- Contains the command /usr/sbin/newvserver. It is a GUI to create
- vservers. It requires the linuxconf-utils and linuxconf-lib
- packages. You can get them from [59]here. linuxconf itself is not
- needed though.
- * [60]vserver-0.22.src.tar.gz
- The vserver utilities source
- * [61]patch-2.4.20ctx-17.gz
- The patch against Linux 2.4.20
- * [62]patches
- The various relative patches (ctxN-ctxN+1)
-
- NEW
-
-References
-
- This project is maintained by Jacques Gelinas [63]jack@solucorp.qc.ca
-
- The vserver package is licensed under the GNU PUBLIC LICENSE.
-
- A FAQ can be found at
- [64]http://www.solucorp.qc.ca/howto.hc?projet=vserver
-
- A mailing list has been created to exchange about this project. It is
- [65]vserver@solucorp.qc.ca .You can subscribe [66]here
-
- The mailing list is archived [67]here.
-
- The change logs for the vserver package are [68]here .
-
- The official copy of this document is found at
- [69]http://www.solucorp.qc.ca/miscprj/s_context.hc
-
- This document was produced using the [70]TLMP documentation system
-
- [71]Top
- [72]Back to project page
- [73]About tlmpdoc and cookies
- Document maintained by Jacques Gélinas ([74]jack@solucorp.qc.ca)
- Last update: Wed Apr 16 11:22:22 2003
-
-Références
-
- 1. http://remtk/solucor/miscprj/s_context.hc?s1=1&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 2. http://remtk/solucor/miscprj/s_context.hc?s1=1&s2=1&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 3. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 4. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=1&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 5. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=2&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 6. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=3&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 7. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=4&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 8. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=5&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 9. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=6&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 10. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=6&s3=1&s4=0&full=0&prjstate=1&nodoc=0
- 11. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=6&s3=2&s4=0&full=0&prjstate=1&nodoc=0
- 12. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=6&s3=3&s4=0&full=0&prjstate=1&nodoc=0
- 13. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=6&s3=4&s4=0&full=0&prjstate=1&nodoc=0
- 14. http://remtk/solucor/miscprj/s_context.hc?s1=2&s2=7&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 15. http://remtk/solucor/miscprj/s_context.hc?s1=3&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 16. http://remtk/solucor/miscprj/s_context.hc?s1=3&s2=1&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 17. http://remtk/solucor/miscprj/s_context.hc?s1=3&s2=2&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 18. http://remtk/solucor/miscprj/s_context.hc?s1=3&s2=3&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 19. http://remtk/solucor/miscprj/s_context.hc?s1=3&s2=4&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 20. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 21. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=1&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 22. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=2&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 23. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=3&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 24. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=4&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 25. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=5&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 26. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=6&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 27. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=7&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 28. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=8&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 29. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=9&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 30. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=10&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 31. http://remtk/solucor/miscprj/s_context.hc?s1=4&s2=11&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 32. http://remtk/solucor/miscprj/s_context.hc?s1=5&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 33. http://remtk/solucor/miscprj/s_context.hc?s1=6&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 34. http://remtk/solucor/miscprj/s_context.hc?s1=6&s2=1&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 35. http://remtk/solucor/miscprj/s_context.hc?s1=6&s2=2&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 36. http://remtk/solucor/miscprj/s_context.hc?s1=6&s2=2&s3=1&s4=0&full=0&prjstate=1&nodoc=0
- 37. http://remtk/solucor/miscprj/s_context.hc?s1=6&s2=2&s3=2&s4=0&full=0&prjstate=1&nodoc=0
- 38. http://remtk/solucor/miscprj/s_context.hc?s1=6&s2=2&s3=3&s4=0&full=0&prjstate=1&nodoc=0
- 39. http://remtk/solucor/miscprj/s_context.hc?s1=6&s2=2&s3=4&s4=0&full=0&prjstate=1&nodoc=0
- 40. http://remtk/solucor/miscprj/s_context.hc?s1=6&s2=2&s3=4&s4=1&full=0&prjstate=1&nodoc=0
- 41. http://remtk/solucor/miscprj/s_context.hc?s1=6&s2=2&s3=4&s4=2&full=0&prjstate=1&nodoc=0
- 42. http://remtk/solucor/miscprj/s_context.hc?s1=6&s2=2&s3=4&s4=3&full=0&prjstate=1&nodoc=0
- 43. http://remtk/solucor/miscprj/s_context.hc?s1=7&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 44. http://remtk/solucor/miscprj/s_context.hc?s1=7&s2=1&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 45. http://remtk/solucor/miscprj/s_context.hc?s1=7&s2=2&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 46. http://remtk/solucor/miscprj/s_context.hc?s1=7&s2=3&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 47. http://remtk/solucor/miscprj/s_context.hc?s1=8&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 48. http://remtk/solucor/miscprj/s_context.hc?s1=9&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 49. http://remtk/solucor/miscprj/s_context.hc?s1=10&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 50. ftp://ftp.solucorp.qc.ca/pub/vserver
- 51. http://www.solucorp.qc.ca/virtualfs
- 52. http://www.vmware.com/
- 53. ftp://ftp.solucorp.qc.ca/pub/vserver
- 54. ftp://ftp.solucorp.qc.ca/pub/vserver/kernel-2.4.20ctx-17.tar.gz
- 55. ftp://ftp.solucorp.qc.ca/pub/vserver/kernel-2.4.20ctxsmp-17.tar.gz
- 56. ftp://ftp.solucorp.qc.ca/pub/vserver/vserver-0.22-1.src.rpm
- 57. ftp://ftp.solucorp.qc.ca/pub/vserver/vserver-0.22-1.i386.rpm
- 58. ftp://ftp.solucorp.qc.ca/pub/vserver/vserver-admin-0.22-1.i386.rpm
- 59. http://www.solucorp.qc.ca/linuxconf/download.hc
- 60. ftp://ftp.solucorp.qc.ca/pub/vserver/vserver-0.22.src.tar.gz
- 61. ftp://ftp.solucorp.qc.ca/pub/vserver/patch-2.4.20ctx-17.gz
- 62. ftp://ftp.solucorp.qc.ca/pub/vserver/patches
- 63. mailto:jack@solucorp.qc.ca
- 64. http://www.solucorp.qc.ca/howto.hc?projet=vserver
- 65. mailto:vserver@solucorp.qc.ca
- 66. http://www.solucorp.qc.ca/mlist/index.hc?list=vserver
- 67. http://www.paul.sladen.org/vserver/archives/
- 68. http://www.solucorp.qc.ca/changes.hc?projet=vserver
- 69. http://www.solucorp.qc.ca/miscprj/s_context.hc
- 70. http://www.solucorp.qc.ca/tlmp
- 71. http://remtk/solucor/miscprj/s_context.hc?s1=0&s2=0&s3=0&s4=0&full=0&prjstate=1&nodoc=0
- 72. http://remtk/solucor/miscprj/s_context.hc
- 73. http://www.solucorp.qc.ca/tlmp/tlmpdoc.hc
- 74. mailto:jack@solucorp.qc.ca
+++ /dev/null
-## $Id: Makefile-files 1583 2004-06-16 10:06:03Z ensc $ --*- makefile -*--
-
-## Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-ensc_fmt_SRCS = \
- ensc_fmt/fmt-32.c \
- ensc_fmt/fmt-64.c \
- ensc_fmt/fmtx-32.c \
- ensc_fmt/fmtx-64.c \
- ensc_fmt/fmt-tai64n.c \
- ensc_fmt/fmt.h \
- ensc_fmt/fmt.hc \
- ensc_fmt/fmtx.hc \
- ensc_fmt/fmt-internal.h
+++ /dev/null
-// $Id: fmt-32.c 1583 2004-06-16 10:06:03Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define FMT_BITSIZE 32
-#include "fmt.hc"
-
-#if __WORDSIZE==FMT_BITSIZE
-size_t FMT_P(ulong_base)(char *ptr, unsigned long val, char base) ALIASFUNC(uint32_base);
-size_t FMT_P( long_base)(char *ptr, long val, char base) ALIASFUNC( int32_base);
-#endif
-
-size_t FMT_P(uint_base)(char *ptr, unsigned int val, char base) ALIASFUNC(uint32_base);
-size_t FMT_P( int_base)(char *ptr, int val, char base) ALIASFUNC( int32_base);
+++ /dev/null
-// $Id: fmt-64.c 1583 2004-06-16 10:06:03Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define FMT_BITSIZE 64
-#include "fmt.hc"
-
-#if __WORDSIZE==64
-size_t FMT_P(ulong_base)(char *ptr, unsigned long val, char base) ALIASFUNC(uint64_base);
-size_t FMT_P( long_base)(char *ptr, long val, char base) ALIASFUNC( int64_base);
-#endif
+++ /dev/null
-// $Id: fmt-internal.h 1647 2004-08-19 13:53:54Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_FMT_COMMON_H
-#define H_UTIL_VSERVER_LIB_FMT_COMMON_H
-
-#define DIGITS "0123456789abcdefghijklmnopqrstuvwxyz"
-
-#define FMT_P__(X,Y) X ## Y
-#define FMT_P_(X,Y) FMT_P__(X,Y)
-#define FMT_P(X) FMT_P_(FMT_PREFIX, X)
-
-#define CONCAT__(x,y,z) x ## y ## z
-#define CONCAT_(x,y,z) CONCAT__(x,y,z)
-#define CONCAT(x,z) CONCAT_(x, FMT_BITSIZE, z)
-
-#define FMT_FN(BASE,SZ) \
- do { \
- register __typeof__(val) v = val; \
- register size_t l = 0; \
- \
- if (ptr==0) { \
- do { \
- ++l; \
- v /= BASE; \
- } while (v!=0); \
- } \
- else { \
- char buf[sizeof(val)*SZ]; \
- \
- do { \
- register unsigned int d = v%BASE; \
- v /= BASE; \
- ++l; \
- buf[sizeof(buf)-l] = DIGITS[d]; \
- } while (v!=0); \
- \
- memcpy(ptr, buf+sizeof(buf)-l, l); \
- } \
- \
- return l; \
- } while (0)
-
-
-#endif // H_UTIL_VSERVER_LIB_FMT_COMMON_H
+++ /dev/null
-// $Id: fmt-tai64n.c 1583 2004-06-16 10:06:03Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "fmt.h"
-#include "fmt-internal.h"
-
-#include <sys/time.h>
-#include <string.h>
-#include <assert.h>
-
-size_t
-FMT_P(tai64n)(char *buf, struct timeval const *now)
-{
- uint64_t tai_secs = 1ll << 62;
- char * ptr = buf;
- size_t l;
-
- tai_secs += now->tv_sec;
- *ptr++ = '@';
-
- l = FMT_P(xuint64)(ptr, tai_secs); // always 16 bytes
- assert(l==16);
- ptr += 16;
-
- memset(ptr, '0', 8);
- l = FMT_P(xuint32)(0, now->tv_usec*1000);
- FMT_P(xuint32)(ptr+8-l, now->tv_usec*1000);
-
- ptr += 8;
-
- return ptr-buf;
-}
+++ /dev/null
-// $Id: fmt.h 1890 2005-03-17 14:46:19Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/** \file fmt.h
- * \brief Declarations for some fmt_* functions
- */
-
-#ifndef H_ENSC_FMT_FMT_H
-#define H_ENSC_FMT_FMT_H
-
-#include <stdlib.h>
-#include <stdint.h>
-
-#ifndef FMT_PREFIX
-# define FMT_PREFIX fmt_
-#endif
-
-#define FMT_P__(X,Y) X ## Y
-#define FMT_P_(X,Y) FMT_P__(X,Y)
-#define FMT_P(X) FMT_P_(FMT_PREFIX, X)
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-size_t FMT_P(xuint64)(char *ptr, uint_least64_t val);
-size_t FMT_P( xint64)(char *ptr, int_least64_t val);
-
-size_t FMT_P(xuint32)(char *ptr, uint_least32_t val);
-size_t FMT_P( xint32)(char *ptr, int_least32_t val);
-
-size_t FMT_P(uint64_base)(char *ptr, uint_least64_t val, char base);
-size_t FMT_P( int64_base)(char *ptr, int_least64_t val, char base);
-
-size_t FMT_P(uint32_base)(char *ptr, uint_least32_t val, char base);
-size_t FMT_P( int32_base)(char *ptr, int_least32_t val, char base);
-
-size_t FMT_P(ulong_base)(char *ptr, unsigned long val, char base);
-size_t FMT_P( long_base)(char *ptr, long val, char base);
-size_t FMT_P(xulong) (char *ptr, unsigned long val);
-size_t FMT_P( xlong) (char *ptr, long val);
-
-size_t FMT_P(uint_base)(char *ptr, unsigned int val, char base);
-size_t FMT_P( int_base)(char *ptr, int val, char base);
-size_t FMT_P(xuint) (char *ptr, unsigned int val);
-size_t FMT_P( xint) (char *ptr, int val);
-
-struct timeval;
-size_t FMT_P(tai64n)(char *ptr, struct timeval const *now);
-
-inline static size_t
-FMT_P(uint64)(char *ptr, uint_least64_t val)
-{
- return FMT_P(uint64_base)(ptr, val, 10);
-}
-
-inline static size_t
-FMT_P(int64)(char *ptr, uint_least64_t val)
-{
- return FMT_P(int64_base)(ptr, val, 10);
-}
-
-inline static size_t
-FMT_P(uint32)(char *ptr, uint_least32_t val)
-{
- return FMT_P(uint32_base)(ptr, val, 10);
-}
-
-inline static size_t
-FMT_P(int32)(char *ptr, uint_least32_t val)
-{
- return FMT_P(int32_base)(ptr, val, 10);
-}
-
-inline static size_t
-FMT_P(ulong)(char *ptr, unsigned long val)
-{
- return FMT_P(ulong_base)(ptr, val, 10);
-}
-
-inline static size_t
-FMT_P(long)(char *ptr, long val)
-{
- return FMT_P(long_base)(ptr, val, 10);
-}
-
-
-inline static size_t
-FMT_P(uint)(char *ptr, unsigned int val)
-{
- return FMT_P(uint_base)(ptr, val, 10);
-}
-
-inline static size_t
-FMT_P(int)(char *ptr, int val)
-{
- return FMT_P(int_base)(ptr, val, 10);
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#undef FMT_P
-#undef FMT_P_
-#undef FMT_P__
-
-#endif // H_ENSC_FMT_FMT_H
+++ /dev/null
-// $Id: fmt.hc 1583 2004-06-16 10:06:03Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "fmt.h"
-#include "fmt-internal.h"
-#include <string.h>
-
-#define STRINGIFY_(X) #X
-#define STRINGIFY(X) STRINGIFY_(X)
-#define ALIASFUNC(X) __attribute__((__alias__(STRINGIFY(FMT_P(X)))))
-
-size_t
-CONCAT(FMT_P(uint),_base)(char *ptr, CONCAT(uint_least,_t) val, char base)
-{
- if (base==16) return CONCAT(FMT_P(xuint),)(ptr,val);
- FMT_FN(base,8);
-}
-
-size_t
-CONCAT(FMT_P(int),_base)(char *ptr,
- CONCAT(int_least,_t) val, char base)
-{
- size_t offset=0;
- if (val<0) {
- val = -val;
- offset = 1;
-
- if (ptr!=0)
- *ptr++ = '-';
- }
-
- return CONCAT(FMT_P(uint),_base)(ptr, val, base) + offset;
-}
+++ /dev/null
-// $Id: fmtx-32.c 1890 2005-03-17 14:46:19Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define FMT_BITSIZE 32
-#include "fmtx.hc"
-
-#if __WORDSIZE==FMT_BITSIZE
-size_t FMT_P(xulong)(char *ptr, unsigned long val) ALIASFUNC(xuint32);
-size_t FMT_P( xlong)(char *ptr, long val) ALIASFUNC( xint32);
-#endif
-
-size_t FMT_P(xuint) (char *ptr, unsigned int val) ALIASFUNC(xuint32);
-size_t FMT_P( xint) (char *ptr, int val) ALIASFUNC( xint32);
+++ /dev/null
-// $Id: fmtx-64.c 1583 2004-06-16 10:06:03Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define FMT_BITSIZE 64
-#include "fmtx.hc"
-
-#if __WORDSIZE==FMT_BITSIZE
-size_t FMT_P(xulong)(char *ptr, unsigned long val) ALIASFUNC(xuint64);
-size_t FMT_P( xlong)(char *ptr, long val) ALIASFUNC( xint64);
-#endif
+++ /dev/null
-// $Id: fmtx.hc 2179 2005-10-25 16:11:32Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "fmt.h"
-#include "fmt-internal.h"
-#include <string.h>
-
-#define STRINGIFY_(X) #X
-#define STRINGIFY(X) STRINGIFY_(X)
-#define ALIASFUNC(X) __attribute__((__alias__(STRINGIFY(FMT_P(X)))))
-
-
-size_t
-CONCAT(FMT_P(xuint),)(char *ptr, CONCAT(uint_least,_t) val)
-{
- FMT_FN(16,2);
-}
-
-size_t
-CONCAT(FMT_P(xint),)(char *ptr,
- CONCAT(int_least,_t) val)
-{
- size_t offset=0;
- if (val<0) {
- val = -val;
- offset = 1;
-
- if (ptr!=0)
- *ptr++ = '-';
- }
-
- return CONCAT(FMT_P(xuint),)(ptr, val) + offset;
-}
+++ /dev/null
-## $Id: Makefile-files 2113 2005-07-03 09:12:31Z ensc $ --*- makefile -*--
-
-## Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-ENSC_VECTOR_SRCS = ensc_vector/vector-clear.c \
- ensc_vector/vector-foreach.c \
- ensc_vector/vector-free.c \
- ensc_vector/vector-init.c \
- ensc_vector/vector-insert.c \
- ensc_vector/vector-internal.h \
- ensc_vector/vector-popback.c \
- ensc_vector/vector-pushback.c \
- ensc_vector/vector-resize.c \
- ensc_vector/vector-resizeinternal.hc \
- ensc_vector/vector-search.c \
- ensc_vector/vector-searchselforg.c \
- ensc_vector/vector-sort.c \
- ensc_vector/vector-unique.c \
- ensc_vector/vector-zeroend.c \
- ensc_vector/list-at.c \
- ensc_vector/list-add.c \
- ensc_vector/list-free.c \
- ensc_vector/list-init.c \
- ensc_vector/list-insertinternal.c \
- ensc_vector/list-internal.h \
- ensc_vector/list-search.c \
- ensc_vector/list-searchselforg.c
-
-ENSC_VECTOR_HDRS = ensc_vector/vector.h \
- ensc_vector/vector.hc \
- ensc_vector/list.h \
- ensc_vector/list.hc
-
-
-libensc_vector_glibc_a_SOURCES = $(ENSC_VECTOR_SRCS)
-libensc_vector_glibc_a_CPPFLAGS = $(AM_CPPFLAGS)
-
-libensc_vector_diet_a_SOURCES = $(ENSC_VECTOR_SRCS)
-libensc_vector_diet_a_CPPFLAGS = $(AM_CPPFLAGS)
-
-ENSC_VECTOR_LIBS =
-
-if ENSC_USE_GLIBC
-LIBENSCVECTOR_GLIBC = libensc_vector-glibc.a
-ENSC_VECTOR_LIBS += $(LIBENSCVECTOR_GLIBC)
-else
-LIBENSCVECTOR_GLIBC = lib-glibc-not-enabled-error.a
-endif
-
-if ENSC_USE_DIETLIBC
-LIBENSCVECTOR_DIET = libensc_vector-diet.a
-ENSC_VECTOR_LIBS += $(LIBENSCVECTOR_DIET)
-else
-LIBENSCVECTOR_DIET = lib-dietlibc-not-enabled-error.a
-endif
-
-
-if ENSC_USE_DIETLIBC
-LIBENSCVECTOR = $(LIBENSCVECTOR_DIET)
-else !ENSC_USE_DIETLIBC
-if ENSC_USE_GLIBC
-LIBENSCVECTOR = $(LIBENSCVECTOR_GLIBC)
-else !ENSC_USE_GLIBC
-LIBENSCVECTOR = lib-nolib-enabled-error.a
-endif !ENSC_USE_GLIBC
-endif !ENSC_USE_DIETLIBC
-
-CLEANFILES += libensc_vector-diet.a \
- libensc_vector-glibc.a
-
-include $(srcdir)/ensc_vector/testsuite/Makefile-files
+++ /dev/null
-// $Id: list-add.c 1896 2005-03-17 14:51:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "list.h"
-#include "list-internal.h"
-
-
-void *
-List_add(struct List *list, void const *data)
-{
- return List_insertInternal(list, data, &list->root, 0)->data;
-}
+++ /dev/null
-// $Id: list-at.c 1896 2005-03-17 14:51:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "list.h"
-#include "list-internal.h"
-
-void const *
-List_at_const(struct List const *l, size_t idx)
-{
- struct ListItem const *itm = l->root;
-
- for (; itm!=0 && idx>0; --idx)
- itm = itm->next;
-
- if (itm!=0) return itm->data;
- else return 0;
-}
+++ /dev/null
-// $Id: list-free.c 1935 2005-03-19 02:03:30Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "list.h"
-#include "list-internal.h"
-
-void
-List_free(struct List *list)
-{
- struct ListItem *itm;
-
- for (itm = list->root; itm!=0; /* noop */)
- {
- struct ListItem *next = itm->next;
-
- free(itm->data);
-#ifndef NDEBUG
- itm->data = (void *)(0xdeadbeaf);
-#endif
- free(itm);
-
- itm = next;
- }
-}
+++ /dev/null
-// $Id: list-init.c 1896 2005-03-17 14:51:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "list.h"
-
-void
-List_init(struct List *list, size_t elem_size)
-{
- list->root = 0;
- list->count = 0;
- list->elem_size = elem_size;
-}
+++ /dev/null
-// $Id: list-insertinternal.c 1896 2005-03-17 14:51:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "list.h"
-#include "list-internal.h"
-
-#include <assert.h>
-#include <string.h>
-
-#define ENSC_WRAPPERS_STDLIB 1
-#include <wrappers.h>
-
-struct ListItem *
-List_insertInternal(struct List *list, void const *data,
- struct ListItem **before_pos,
- struct ListItem *after_pos)
-{
- struct ListItem *item = Emalloc(sizeof(struct ListItem));
-
- assert((before_pos!=0 || after_pos!=0) &&
- (before_pos==0 || after_pos==0));
-
- item->data = Emalloc(list->elem_size);
- memcpy(item->data, data, list->elem_size);
-
- if (before_pos!=0) {
- item->next = *before_pos;
- *before_pos = item;
- }
- else {
- item->next = after_pos->next;
- after_pos->next = item;
- }
-
- ++list->count;
-
- return item;
-}
+++ /dev/null
-// $Id: list-internal.h 1896 2005-03-17 14:51:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifndef H_UTILVSERVER_VECTOR_LIST_INTERNAL_H
-#define H_UTILVSERVER_VECTOR_LIST_INTERNAL_H
-
-struct ListItem
-{
- void *data;
- struct ListItem *next;
-};
-
-struct ListItem * List_insertInternal(struct List *list,
- void const *data,
- struct ListItem **before_pos,
- struct ListItem *after_pos);
-
-#endif // H_UTILVSERVER_VECTOR_LIST_INTERNAL_H
+++ /dev/null
-// $Id: list-search.c 1896 2005-03-17 14:51:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "list.h"
-#include "list-internal.h"
-
-void const *
-List_search(struct List const *list, void const *key,
- int (*compare)(const void *, const void *))
-{
- struct ListItem const *itm = list->root;
-
- while (itm!=0 && compare(itm->data, key)!=0)
- itm = itm->next;
-
- if (itm!=0) return itm->data;
- else return 0;
-}
+++ /dev/null
-// $Id: list-searchselforg.c 1896 2005-03-17 14:51:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "list.h"
-#include "list-internal.h"
-
-#include <assert.h>
-#include <stdbool.h>
-
-void const *
-List_searchSelfOrg(struct List const *list, void const *key,
- int (*compare)(const void *, const void *),
- ListSelfOrgMethod method)
-{
- struct List *list_v = (struct List *)(list);
- struct ListItem **itm = &list_v->root;
-
- switch (method) {
- case listMOVE_FRONT :
- while (*itm!=0 && compare((*itm)->data, key)!=0)
- itm = &(*itm)->next;
-
- if (*itm && *itm!=list->root) {
- struct ListItem *res = *itm;
-
- *itm = res->next;
- res->next = list->root;
- list_v->root = res;
-
- itm = &list_v->root;
- }
- break;
-
- case listSHIFT_ONCE :
- if (*itm!=0 && compare((*itm)->data, key)!=0) {
- while ((*itm)->next!=0 &&
- compare((*itm)->next->data, key)!=0)
- itm = &(*itm)->next;
-
- if ((*itm)->next==0)
- itm = &(*itm)->next;
- else {
- struct ListItem *res = (*itm)->next;
-
- (*itm)->next = res->next;
- res->next = *itm;
- *itm = res;
- }
- }
- break;
-
- default : assert(false); return 0;
- }
-
- if (*itm!=0) return (*itm)->data;
- else return 0;
-}
+++ /dev/null
-// $Id: list.h 1896 2005-03-17 14:51:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifndef H_UTILVSERVER_VECTOR_LIST_H
-#define H_UTILVSERVER_VECTOR_LIST_H
-
-#include <stdlib.h>
-
-struct ListItem;
-struct List
-{
- struct ListItem *root;
- size_t count;
- size_t elem_size;
-};
-
-typedef enum { listMOVE_FRONT, listSHIFT_ONCE } ListSelfOrgMethod;
-
-void List_init(struct List *, size_t elem_size);
-void List_free(struct List *);
-void * List_add(struct List *, void const *key);
-void * List_at(struct List *, size_t idx);
-void const * List_at_const(struct List const *, size_t idx);
-
-void const * List_search(struct List const *, void const *key,
- int (*compare)(const void *, const void *));
-
-void const * List_searchSelfOrg(struct List const *, void const *key,
- int (*compare)(const void *, const void *),
- ListSelfOrgMethod method);
-
-#endif // H_UTILVSERVER_VECTOR_LIST_H
+++ /dev/null
-// $Id: list.hc 1896 2005-03-17 14:51:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-static inline UNUSED void *
-List_at(struct List *list, size_t idx)
-{
- return (void *)(List_at_const(list, idx));
-}
+++ /dev/null
-## $Id: Makefile-files 1907 2005-03-18 00:13:50Z ensc $ --*- makefile -*--
-
-## Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-check_PROGRAMS += ensc_vector/testsuite/test1 \
- ensc_vector/testsuite/test2
-
-TESTS += ensc_vector/testsuite/test1 \
- ensc_vector/testsuite/test2
-
-ensc_vector_testsuite_test1_SOURCES = ensc_vector/testsuite/test1.c
-ensc_vector_testsuite_test1_LDADD = $(LIBENSCVECTOR)
-
-ensc_vector_testsuite_test2_SOURCES = ensc_vector/testsuite/test2.c
-ensc_vector_testsuite_test2_LDADD = $(LIBENSCVECTOR)
+++ /dev/null
-// $Id: test1.c 1894 2005-03-17 14:49:01Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#undef NDEBUG
-
-#include "ensc_vector/vector.h"
-#include <assert.h>
-#include <stdbool.h>
-
-int wrapper_exit_code = 2;
-
-static int
-cmp(void const *lhs_v, void const *rhs_v)
-{
- int const * const lhs = lhs_v;
- int const * const rhs = rhs_v;
-
- return *lhs - *rhs;
-}
-
-struct Vector v;
-
-static void I(int val)
-{
- *(int *)Vector_insert(&v, &val, cmp) = val;
-}
-
-static void P(int val)
-{
- *(int *)Vector_pushback(&v) = val;
-}
-
-static int E(size_t idx)
-{
- return ((int const *)Vector_begin_const(&v))[idx];
-}
-
-static int const * S(int val)
-{
- return Vector_search_const(&v, &val, cmp);
-}
-
-static int const * S_F(int val)
-{
- return Vector_searchSelfOrg(&v, &val, cmp, vecMOVE_FRONT);
-}
-
-static int const * S_S(int val)
-{
- return Vector_searchSelfOrg(&v, &val, cmp, vecSHIFT_ONCE);
-}
-
-static bool CMP(int const *lhs, int val)
-{
- return (lhs!=0 && val==*lhs) || (lhs==0 && val==-1);
-}
-
-int main()
-{
- Vector_init(&v, sizeof(int));
-
- I(0); I(1); I(2); I(3);
- assert(Vector_count(&v)==4);
- assert(E(0)==0 && E(1)==1 && E(2)==2 && E(3)==3);
-
- // clear-test
- Vector_clear(&v);
- assert(Vector_count(&v)==0);
- I(1);
- assert(Vector_count(&v)==1);
- assert(E(0)==1);
-
-
- Vector_clear(&v);
- I(3); I(0); I(2); I(1); I(5); I(4); I(7); I(6);
- assert(Vector_count(&v)==8);
- assert((E(0)==0 && E(1)==1 && E(2)==2 && E(3)==3 &&
- E(4)==4 && E(5)==5 && E(6)==6 && E(7)==7));
-
- assert(S(0) && *S(0)==0);
-
-
- Vector_clear(&v);
- assert(Vector_count(&v)==0);
-
- P(3); P(0); P(2); P(1); P(5); P(4); P(7); P(6);
- assert(Vector_count(&v)==8);
- assert((E(0)==3 && E(1)==0 && E(2)==2 && E(3)==1 &&
- E(4)==5 && E(5)==4 && E(6)==7 && E(7)==6));
-
- Vector_sort(&v, cmp);
- assert(Vector_count(&v)==8);
- assert((E(0)==0 && E(1)==1 && E(2)==2 && E(3)==3 &&
- E(4)==4 && E(5)==5 && E(6)==6 && E(7)==7));
-
- Vector_popback(&v);
- assert(Vector_count(&v)==7);
- assert((E(0)==0 && E(1)==1 && E(2)==2 && E(3)==3 &&
- E(4)==4 && E(5)==5 && E(6)==6));
-
- Vector_unique(&v, cmp);
- assert(Vector_count(&v)==7);
- assert((E(0)==0 && E(1)==1 && E(2)==2 && E(3)==3 &&
- E(4)==4 && E(5)==5 && E(6)==6));
-
- Vector_clear(&v);
- assert(Vector_count(&v)==0);
-
- Vector_clear(&v);
- P(3); P(7); P(0); P(2); P(1); P(2); P(5); P(4); P(5); P(7); P(6);
- assert(Vector_count(&v)==11);
- Vector_sort(&v, cmp);
- assert(Vector_count(&v)==11);
- assert((E(0)==0 && E(1)==1 && E(2)==2 && E(3)==2 &&
- E(4)==3 && E(5)==4 && E(6)==5 && E(7)==5 &&
- E(8)==6 && E(9)==7 && E(10)==7));
-
- Vector_unique(&v, cmp);
- assert(Vector_count(&v)==8);
- assert((E(0)==0 && E(1)==1 && E(2)==2 && E(3)==3 &&
- E(4)==4 && E(5)==5 && E(6)==6 && E(7)==7));
-
- assert(CMP(S_F(0),0));
- assert((E(0)==0 && E(1)==1 && E(2)==2 && E(3)==3 && E(4)==4 && E(5)==5 && E(6)==6 && E(7)==7));
-
- assert(CMP(S_F(1),1));
- assert((E(0)==1 && E(1)==0 && E(2)==2 && E(3)==3 && E(4)==4 && E(5)==5 && E(6)==6 && E(7)==7));
-
- assert(CMP(S_F(7),7));
- assert((E(0)==7 && E(1)==1 && E(2)==0 && E(3)==2 && E(4)==3 && E(5)==4 && E(6)==5 && E(7)==6));
-
- assert(CMP(S_F(3),3));
- assert((E(0)==3 && E(1)==7 && E(2)==1 && E(3)==0 && E(4)==2 && E(5)==4 && E(6)==5 && E(7)==6));
-
- assert(CMP(S_F(3),3));
- assert((E(0)==3 && E(1)==7 && E(2)==1 && E(3)==0 && E(4)==2 && E(5)==4 && E(6)==5 && E(7)==6));
-
- assert(CMP(S_F(42), -1));
- assert((E(0)==3 && E(1)==7 && E(2)==1 && E(3)==0 && E(4)==2 && E(5)==4 && E(6)==5 && E(7)==6));
-
-
- assert(CMP(S_S(6), 6));
- assert((E(0)==3 && E(1)==7 && E(2)==1 && E(3)==0 && E(4)==2 && E(5)==4 && E(6)==6 && E(7)==5));
-
- assert(CMP(S_S(6), 6));
- assert((E(0)==3 && E(1)==7 && E(2)==1 && E(3)==0 && E(4)==2 && E(5)==6 && E(6)==4 && E(7)==5));
-
- assert(CMP(S_S(6), 6));
- assert((E(0)==3 && E(1)==7 && E(2)==1 && E(3)==0 && E(4)==6 && E(5)==2 && E(6)==4 && E(7)==5));
-
- assert(CMP(S_S(7), 7));
- assert((E(0)==7 && E(1)==3 && E(2)==1 && E(3)==0 && E(4)==6 && E(5)==2 && E(6)==4 && E(7)==5));
-
- assert(CMP(S_S(7), 7));
- assert((E(0)==7 && E(1)==3 && E(2)==1 && E(3)==0 && E(4)==6 && E(5)==2 && E(6)==4 && E(7)==5));
-
- assert(CMP(S_S(42), -1));
- assert((E(0)==7 && E(1)==3 && E(2)==1 && E(3)==0 && E(4)==6 && E(5)==2 && E(6)==4 && E(7)==5));
-
-
- Vector_free(&v);
-
- return 0;
-}
+++ /dev/null
-// $Id: test2.c 1975 2005-03-24 12:41:27Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#undef NDEBUG
-
-#include "ensc_vector/list.h"
-#include "ensc_vector/list-internal.h"
-
-#include <assert.h>
-#include <stdlib.h>
-#include <stdbool.h>
-
-int wrapper_exit_code = 2;
-
-static int
-cmp(void const *lhs_v, void const *rhs_v)
-{
- int const * const lhs = lhs_v;
- int const * const rhs = rhs_v;
-
- return *lhs - *rhs;
-}
-
-struct List l;
-
-
-static void A(int val)
-{
- int * res = List_add(&l, &val);
-
- assert(*res == val);
-}
-
-static int const * S(int val)
-{
- return List_search(&l, &val, cmp);
-}
-
-static int const * SSO_F(int val)
-{
- return List_searchSelfOrg(&l, &val, cmp, listMOVE_FRONT);
-}
-
-static int const * SSO_S(int val)
-{
- return List_searchSelfOrg(&l, &val, cmp, listSHIFT_ONCE);
-}
-
-static int P(size_t idx)
-{
- int const *res = List_at_const(&l, idx);
-
- assert(res!=0);
- return *res;
-}
-
-static bool P0(size_t idx)
-{
- return List_at_const(&l, idx) == 0;
-}
-
-static bool CMP(int const *lhs, int rhs)
-{
- return (lhs!=0 && *lhs==rhs) || (lhs==0 && rhs==-1);
-}
-
-
-int main()
-{
- List_init(&l, sizeof(int));
-
- A(5); A(4); A(3); A(2); A(1); A(0);
- assert(P(0)==0 && P(1)==1 && P(2)==2 && P(3)==3 && P(4)==4 && P(5)==5 && P0(6));
-
- assert(CMP(S(5), 5) && CMP(S(2), 2) && CMP(S(0), 0));
- assert(CMP(S(42),-1));
-
- assert(CMP(SSO_F(5), 5));
- assert(P(0)==5 && P(1)==0 && P(2)==1 && P(3)==2 && P(4)==3 && P(5)==4 && P0(6));
-
- assert(CMP(SSO_F(5), 5));
- assert(P(0)==5 && P(1)==0 && P(2)==1 && P(3)==2 && P(4)==3 && P(5)==4 && P0(6));
-
- assert(CMP(SSO_F(0), 0));
- assert(P(0)==0 && P(1)==5 && P(2)==1 && P(3)==2 && P(4)==3 && P(5)==4 && P0(6));
-
- assert(CMP(SSO_F(4), 4));
- assert(P(0)==4 && P(1)==0 && P(2)==5 && P(3)==1 && P(4)==2 && P(5)==3 && P0(6));
-
- assert(CMP(SSO_F(5), 5));
- assert(P(0)==5 && P(1)==4 && P(2)==0 && P(3)==1 && P(4)==2 && P(5)==3 && P0(6));
-
- assert(CMP(SSO_F(42),-1));
- assert(P(0)==5 && P(1)==4 && P(2)==0 && P(3)==1 && P(4)==2 && P(5)==3 && P0(6));
-
-
-
- assert(CMP(SSO_S(3), 3));
- assert(P(0)==5 && P(1)==4 && P(2)==0 && P(3)==1 && P(4)==3 && P(5)==2 && P0(6));
-
- assert(CMP(SSO_S(3), 3));
- assert(P(0)==5 && P(1)==4 && P(2)==0 && P(3)==3 && P(4)==1 && P(5)==2 && P0(6));
-
- assert(CMP(SSO_S(5), 5));
- assert(P(0)==5 && P(1)==4 && P(2)==0 && P(3)==3 && P(4)==1 && P(5)==2 && P0(6));
-
- assert(CMP(SSO_S(4), 4));
- assert(P(0)==4 && P(1)==5 && P(2)==0 && P(3)==3 && P(4)==1 && P(5)==2 && P0(6));
-
- assert(CMP(SSO_S(0), 0));
- assert(P(0)==4 && P(1)==0 && P(2)==5 && P(3)==3 && P(4)==1 && P(5)==2 && P0(6));
-
- assert(CMP(SSO_S(0), 0));
- assert(P(0)==0 && P(1)==4 && P(2)==5 && P(3)==3 && P(4)==1 && P(5)==2 && P0(6));
-
- assert(CMP(SSO_S(0), 0));
- assert(P(0)==0 && P(1)==4 && P(2)==5 && P(3)==3 && P(4)==1 && P(5)==2 && P0(6));
-
- assert(CMP(SSO_S(42), -1));
- assert(P(0)==0 && P(1)==4 && P(2)==5 && P(3)==3 && P(4)==1 && P(5)==2 && P0(6));
-
- List_free(&l);
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: vector-clear.c 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-#include <assert.h>
-
-void
-Vector_clear(struct Vector *vec)
-{
- assert(vec!=0);
- vec->count = 0;
-}
+++ /dev/null
-// $Id: vector-foreach.c 2113 2005-07-03 09:12:31Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-
-void
-Vector_foreach(struct Vector *vec, void (*func)(void *, void *), void *data)
-{
- char * ptr = Vector_begin(vec);
- char * const end = Vector_end(vec);
- size_t const step = vec->elem_size;
-
- for (; ptr<end; ptr += step)
- func(ptr, data);
-}
+++ /dev/null
-// $Id: vector-free.c 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-#include <assert.h>
-
-void
-Vector_free(struct Vector *vec)
-{
- assert(vec!=0);
- free(vec->data);
-
-#ifndef NDEBUG
- vec->count = 0xdeadbeef;
- vec->allocated = 0xdeadbeef;
- vec->elem_size = 0xdeadbeef;
- vec->data = (void *)(0xdeadbeef);
-#endif
-}
+++ /dev/null
-// $Id: vector-init.c 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-#include <assert.h>
-
-void
-Vector_init(struct Vector *vec, size_t elem_size)
-{
- assert(vec!=0);
- assert(elem_size!=0);
-
- vec->elem_size = elem_size;
- vec->data = 0;
- vec->count = 0;
- vec->allocated = 0;
-}
+++ /dev/null
-// $Id: vector-insert.c 824 2004-02-06 16:42:56Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-#include <string.h>
-
-void *
-Vector_insert(struct Vector *vec, void const *key,
- int (*compare)(const void *, const void *))
-{
- char * data;
- char * end_ptr = Vector_pushback(vec);
-
- for (data=vec->data; data<end_ptr; data += vec->elem_size) {
- if (compare(key, data)<0) {
- memmove(data+vec->elem_size, data,
- (char *)(end_ptr) - (char *)(data));
- return data;
- }
- }
-
- return end_ptr;
-}
+++ /dev/null
-// $Id: vector-internal.h 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_VECTOR_VECTOR_INTERNAL_H
-#define H_UTIL_VSERVER_SRC_VECTOR_VECTOR_INTERNAL_H
-
-#ifndef VECTOR_SET_THRESHOLD
-# define VECTOR_SET_THRESHOLD 20/16
-#endif
-
-#ifndef VECTOR_DEC_THRESHOLD
-# define VECTOR_DEC_THRESHOLD 24/16
-#endif
-
-
-
-#endif // H_UTIL_VSERVER_SRC_VECTOR_VECTOR_INTERNAL_H
+++ /dev/null
-// $Id: vector-popback.c 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-#include <assert.h>
-
-void
-Vector_popback(struct Vector *vec)
-{
- assert(vec->count>0);
-
- if (vec->count>0) --vec->count;
-}
+++ /dev/null
-// $Id: vector-pushback.c 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-#include "vector-resizeinternal.hc"
-
-void *
-Vector_pushback(struct Vector *vec)
-{
- ++vec->count;
- if (vec->allocated<vec->count)
- Vector_resizeInternal(vec);
-
- return (char *)(vec->data) + ((vec->count-1) * vec->elem_size);
-}
+++ /dev/null
-// $Id: vector-resize.c 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-#include "vector-resizeinternal.hc"
-
-void
-Vector_resize(struct Vector *vec)
-{
- if (vec->allocated * VECTOR_DEC_THRESHOLD > vec->count+1)
- Vector_resizeInternal(vec);
-}
+++ /dev/null
-// $Id: vector-resizeinternal.hc 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector-internal.h"
-#include <assert.h>
-
-#define ENSC_WRAPPERS_STDLIB 1
-#include <wrappers.h>
-
-static void
-Vector_resizeInternal(struct Vector *vec)
-{
- vec->allocated = vec->count * VECTOR_SET_THRESHOLD;
- ++vec->allocated;
-
- assert(vec->allocated >= vec->count);
-
- vec->data = Erealloc(vec->data, vec->allocated * vec->elem_size);
- assert(vec->data!=0);
-}
+++ /dev/null
-// $Id: vector-search.c 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-
-#include <stdlib.h>
-#include <assert.h>
-
-
-void *
-Vector_search(struct Vector *vec, void const *key,
- int (*compare)(const void *, const void *))
-{
- if (vec->count==0) return 0;
- assert(vec->data!=0);
-
- return bsearch(key, vec->data, vec->count, vec->elem_size, compare);
-}
+++ /dev/null
-// $Id: vector-searchselforg.c 1896 2005-03-17 14:51:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-#include "vector-internal.h"
-
-#include <string.h>
-#include <assert.h>
-#include <stdbool.h>
-
-void *
-Vector_searchSelfOrg(struct Vector *vec, void const *key,
- int (*compare)(const void *, const void *),
- VectorSelfOrgMethod method)
-{
- char * const start_ptr = vec->data;
- char * const end_ptr = start_ptr + vec->count*vec->elem_size;
- char *ptr = start_ptr;
-
- for (; ptr<end_ptr && compare(ptr, key)!=0; )
- ptr += vec->elem_size;
-
- if (end_ptr <= ptr) ptr = 0;
- else if (start_ptr < ptr) {
- char tmp[vec->elem_size];
- memcpy(tmp, ptr, vec->elem_size);
-
- assert(ptr >= start_ptr+vec->elem_size);
-
- switch (method) {
- case vecMOVE_FRONT :
- memmove(start_ptr+vec->elem_size, start_ptr, ptr - start_ptr);
-
- ptr = start_ptr;
- break;
-
- case vecSHIFT_ONCE :
- memmove(ptr, ptr - vec->elem_size, vec->elem_size);
- ptr -= vec->elem_size;
- break;
-
- default :
- assert(false);
- ptr = 0;
- }
-
- memcpy (ptr, tmp, vec->elem_size);
- }
-
- return ptr;
-}
-
+++ /dev/null
-// $Id: vector-sort.c 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-
-#include <stdlib.h>
-#include <assert.h>
-
-void
-Vector_sort(struct Vector *vec, int (*compare)(const void *, const void *))
-{
- if (vec->count==0) return;
-
- qsort(vec->data, vec->count, vec->elem_size, compare);
-}
+++ /dev/null
-// $Id: vector-unique.c 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-
-#include <assert.h>
-#include <string.h>
-
- // TODO: do not iterate from begin to end but in the reverse direction. This should be more
- // effective.
-void
-Vector_unique(struct Vector *vec, int (*compare)(const void *, const void *))
-{
- size_t idx;
-
- if (vec->count<2) return;
-
- for (idx=0; idx+1<vec->count; ++idx) {
- char *ptr = (char *)(vec->data) + idx*vec->elem_size;
- char *next_ptr = ptr + vec->elem_size;
- size_t next_idx = idx + 1;
-
- while (next_idx<vec->count &&
- compare(ptr, next_ptr)==0) {
- ++next_idx;
- next_ptr += vec->elem_size;
- }
-
- if (next_idx==vec->count)
- vec->count = idx+1;
- else if (next_idx-idx > 1) {
- memmove(ptr + vec->elem_size,
- next_ptr, (vec->count - next_idx)*vec->elem_size);
- vec->count -= (next_idx-idx-1);
- }
- }
-}
-
+++ /dev/null
-// $Id: vector-zeroend.c 1585 2004-06-16 10:10:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vector.h"
-#include <string.h>
-
-
-void
-Vector_zeroEnd(struct Vector *vec)
-{
- void * tmp;
-
- if (vec->allocated <= vec->count) {
- tmp = Vector_pushback(vec);
- Vector_popback(vec);
- }
- else
- tmp = Vector_end(vec);
-
- memset(tmp, 0, vec->elem_size);
-}
+++ /dev/null
-// $Id: vector.h 2113 2005-07-03 09:12:31Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2002,2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifndef H_UTILVSERVER_VECTOR_VECTOR_H
-#define H_UTILVSERVER_VECTOR_VECTOR_H
-
-#include <stdlib.h>
-
-struct Vector
-{
- void *data;
- size_t count;
- size_t allocated;
-
- size_t elem_size;
-};
-
-typedef enum { vecMOVE_FRONT, vecSHIFT_ONCE } VectorSelfOrgMethod;
-
-void Vector_init(struct Vector *, size_t elem_size);
-void Vector_free(struct Vector *);
-void * Vector_search(struct Vector *, void const *key, int (*compar)(const void *, const void *));
-void * Vector_searchSelfOrg(struct Vector *, void const *key,
- int (*compar)(const void *, const void *),
- VectorSelfOrgMethod method);
-void Vector_sort(struct Vector *, int (*compar)(const void *, const void *));
-void Vector_unique(struct Vector *, int (*compar)(const void *, const void *));
-void * Vector_pushback(struct Vector *);
-void * Vector_insert(struct Vector *, void const *key, int (*compar)(const void *, const void *));
-void Vector_popback(struct Vector *);
-void Vector_resize(struct Vector *vec);
-void Vector_clear(struct Vector *vec);
-void Vector_zeroEnd(struct Vector *vec);
-void Vector_foreach(struct Vector *vec, void (*func)(void *, void *), void *);
-
-static void Vector_foreach_const(struct Vector const *vec,
- void (*func)(void const *, void *),
- void *);
-static void const * Vector_searchSelfOrg_const(struct Vector const *, void const *key,
- int (*compar)(const void *, const void *),
- VectorSelfOrgMethod method);
-static void const * Vector_search_const(struct Vector const *, void const *key, int (*compar)(const void *, const void *));
-static void * Vector_begin(struct Vector *);
-static void * Vector_end(struct Vector *);
-static void const * Vector_begin_const(struct Vector const *);
-static void const * Vector_end_const(struct Vector const *);
-static size_t Vector_count(struct Vector const *vec);
-
-#include "vector.hc"
-
-#endif // H_UTILVSERVER_VECTOR_VECTOR_H
+++ /dev/null
-// $Id: vector.hc 2113 2005-07-03 09:12:31Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2002,2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-static inline UNUSED void *
-Vector_begin(struct Vector *vec)
-{
- return vec->data;
-}
-
-static inline UNUSED void *
-Vector_end(struct Vector *vec)
-{
- return (char *)(vec->data) + (vec->count * vec->elem_size);
-}
-
-static inline UNUSED void const *
-Vector_begin_const(struct Vector const *vec)
-{
- return vec->data;
-}
-
-static inline UNUSED void const *
-Vector_end_const(struct Vector const *vec)
-{
- return (char *)(vec->data) + (vec->count * vec->elem_size);
-}
-
-static inline UNUSED size_t
-Vector_count(struct Vector const *vec)
-{
- return vec->count;
-}
-
-static inline UNUSED void const *
-Vector_search_const(struct Vector const *vec, void const *key, int (*compar)(const void *, const void *))
-{
- return Vector_search((struct Vector *)(vec), key, compar);
-}
-
-static inline UNUSED void const *
-Vector_searchSelfOrg_const(struct Vector const *vec, void const *key,
- int (*compare)(const void *, const void *),
- VectorSelfOrgMethod method)
-{
- return Vector_searchSelfOrg((struct Vector *)(vec), key, compare, method);
-}
-
-static inline UNUSED void
-Vector_foreach_const(struct Vector const *vec, void (*func)(void const *, void *),
- void *data)
-{
- Vector_foreach((struct Vector *)(vec),
- (void (*)(void *, void *))(func),
- data);
-}
+++ /dev/null
-## $Id: Makefile-files 2323 2006-09-19 15:20:56Z dhozac $ --*- makefile -*--
-
-## Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-noinst_HEADERS += ensc_wrappers/wrappers-clone.hc \
- ensc_wrappers/wrappers-dirent.hc \
- ensc_wrappers/wrappers-fcntl.hc \
- ensc_wrappers/wrappers-io.hc \
- ensc_wrappers/wrappers-ioctl.hc \
- ensc_wrappers/wrappers-iosock.hc \
- ensc_wrappers/wrappers-mount.hc \
- ensc_wrappers/wrappers-pivot.hc \
- ensc_wrappers/wrappers-resource.hc \
- ensc_wrappers/wrappers-socket.hc \
- ensc_wrappers/wrappers-stat.hc \
- ensc_wrappers/wrappers-stdlib.hc \
- ensc_wrappers/wrappers-string.hc \
- ensc_wrappers/wrappers-termios.hc \
- ensc_wrappers/wrappers-unistd.hc \
- ensc_wrappers/wrappers-vserver.hc \
- ensc_wrappers/wrappers-wait.hc \
- ensc_wrappers/wrappers.h \
- ensc_wrappers/wrappers_handler.hc
+++ /dev/null
-// $Id: wrappers-clone.hc 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL pid_t
-Eclone(int (*fn)(void *), void *child_stack, int flags, void *arg)
-{
- pid_t res;
-#ifndef __dietlibc__
- res = clone(fn, child_stack, flags, arg);
-#else
- res = clone((void*(*)(void*))(fn), child_stack, flags, arg);
-#endif
- FatalErrnoError(res==-1, "clone()");
- return res;
-}
+++ /dev/null
-// $Id: wrappers-dirent.hc 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL DIR *
-Eopendir(const char *name)
-{
- DIR * res = opendir(name);
-
- FatalErrnoError(res==0, "opendir()");
- return res;
-}
-
-inline static WRAPPER_DECL struct dirent *
-Ereaddir(DIR *dir)
-{
- struct dirent *res;
-
- errno = 0;
- res = readdir(dir);
-
- FatalErrnoError(res==0 && errno!=0, "readdir()");
- return res;
-}
-
-#ifndef __dietlibc__
-inline static WRAPPER_DECL void
-Ereaddir_r(DIR *dir, struct dirent *entry, struct dirent **result)
-{
- errno = 0;
- FatalErrnoError(readdir_r(dir, entry, result)==0 && errno!=0, "readdir_r()");
-}
-#endif
-
-inline static WRAPPER_DECL void
-Eclosedir(DIR *dir)
-{
- FatalErrnoError(closedir(dir)==-1, "closedir()");
-}
+++ /dev/null
-// $Id: wrappers-fcntl.hc 1473 2004-04-20 17:57:12Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL int
-Eopen(char const *fname, int flags, mode_t mode)
-{
- int res = open(fname, flags, mode);
- FatalErrnoError(res==-1, "open()");
-
- return res;
-}
-
-inline static WRAPPER_DECL int
-EopenD(char const *fname, int flags, mode_t mode)
-{
- ENSC_DETAIL1(msg, "open", fname, 1);
-
- {
- int res = open(fname, flags, mode);
- FatalErrnoError(res==-1, msg);
- return res;
- }
-}
-
-
-inline static WRAPPER_DECL void
-Emkdir(const char *pathname, mode_t mode)
-{
- FatalErrnoError(mkdir(pathname,mode)==-1, "mkdir()");
-}
-
-inline static WRAPPER_DECL void
-EmkdirD(const char *pathname, mode_t mode)
-{
- ENSC_DETAIL1(msg, "mkdir", pathname, 1);
- FatalErrnoError(mkdir(pathname,mode)==-1, msg);
-}
-
-inline static WRAPPER_DECL int
-Efcntl(int fd, int cmd, long arg)
-{
- register int res = fcntl(fd, cmd, arg);
- FatalErrnoError(res==-1, "fcntl()");
-
- return res;
-}
+++ /dev/null
-// $Id: wrappers-io.hc 2116 2005-07-03 12:33:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-#include <stdbool.h>
-
-inline static UNUSED bool
-WwriteAll(int fd, void const *ptr_v, size_t len, int *err)
-{
- register char const *ptr = ptr_v;
-
- if (err) *err = 0;
-
- while (len>0) {
- ssize_t res = TEMP_FAILURE_RETRY(write(fd, ptr, len));
- if (res<=0) {
- if (err) *err = errno;
- return false;
- }
-
- ptr += res;
- len -= res;
- }
- return true;
-}
-
-inline static UNUSED void
-EwriteAll(int fd, void const *ptr_v, size_t len)
-{
- register char const *ptr = ptr_v;
-
- while (len>0) {
- ssize_t res = TEMP_FAILURE_RETRY(write(fd, ptr, len));
- FatalErrnoError(res==-1, "write()");
-
- ptr += res;
- len -= res;
- }
-}
-
-
-inline static UNUSED bool
-WreadAll(int fd, void *ptr_v, size_t len, int *err)
-{
- register char *ptr = ptr_v;
-
- if (err) *err = 0;
-
- while (len>0) {
- ssize_t res = TEMP_FAILURE_RETRY(read(fd, ptr, len));
- if (res==-1) {
- if (err) *err = errno;
- return false;
- }
-
- if (res==0) return false;
-
- ptr += res;
- len -= res;
- }
- return true;
-}
-
-inline static UNUSED bool
-EreadAll(int fd, void *ptr_v, size_t len)
-{
- register char *ptr = ptr_v;
-
- while (len>0) {
- ssize_t res = TEMP_FAILURE_RETRY(read(fd, ptr, len));
- FatalErrnoError(res==-1, "read()");
-
- if (res==0) return false;
-
- ptr += res;
- len -= res;
- }
-
- return true;
-}
+++ /dev/null
-// $Id: wrappers-ioctl.hc 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL void
-Eioctl(int fd, int request, void *p)
-{
- int res = ioctl(fd, request, p);
- FatalErrnoError(res<0, "ioctl()");
-}
-
+++ /dev/null
-// $Id: wrappers-iosock.hc 2116 2005-07-03 12:33:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-#include <stdbool.h>
-
-inline static WRAPPER_DECL bool
-WsendAll(int fd, void const *ptr_v, size_t len, int *err)
-{
- register char const *ptr = ptr_v;
- if (err) *err = 0;
-
- while (len>0) {
- ssize_t res = TEMP_FAILURE_RETRY(send(fd, ptr, len, MSG_NOSIGNAL));
- if (res==-1) {
- if (err) *err = errno;
- return false;
- }
-
- if (res==0) return false;
-
- ptr += res;
- len -= res;
- }
- return true;
-}
-
-inline static WRAPPER_DECL void
-EsendAll(int fd, void const *ptr_v, size_t len)
-{
- register char const *ptr = ptr_v;
-
- while (len>0) {
- ssize_t res = TEMP_FAILURE_RETRY(send(fd, ptr, len, MSG_NOSIGNAL));
- FatalErrnoError(res==-1, "send()");
-
- ptr += res;
- len -= res;
- }
-}
-
-
-inline static WRAPPER_DECL bool
-WrecvAll(int fd, void *ptr_v, size_t len, int *err)
-{
- register char *ptr = ptr_v;
- if (err) *err = 0;
-
- while (len>0) {
- ssize_t res = TEMP_FAILURE_RETRY(recv(fd, ptr, len, MSG_NOSIGNAL));
- if (res==-1) {
- if (err) *err = errno;
- return false;
- }
-
- if (res==0) return false;
-
- ptr += res;
- len -= res;
- }
- return true;
-}
-
-inline static WRAPPER_DECL bool
-ErecvAll(int fd, void *ptr_v, size_t len)
-{
- register char *ptr = ptr_v;
-
- while (len>0) {
- ssize_t res = TEMP_FAILURE_RETRY(recv(fd, ptr, len, MSG_NOSIGNAL));
- FatalErrnoError(res==-1, "recv()");
-
- if (res==0) return false;
-
- ptr += res;
- len -= res;
- }
-
- return true;
-}
+++ /dev/null
-// $Id: wrappers-mount.hc 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL void
-Eumount2(char const *path, int flag)
-{
- FatalErrnoError(umount2(path,flag)==-1, "umount2()");
-}
-
-inline static WRAPPER_DECL void
-Emount(const char *source, const char *target,
- const char *filesystemtype, unsigned long mountflags,
- const void *data)
-{
- FatalErrnoError(mount(source, target, filesystemtype,
- mountflags, data)==-1, "mount()");
-}
+++ /dev/null
-// $Id: wrappers-pivot.hc 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL void
-Epivot_root(const char *new_root, const char *put_old)
-{
- FatalErrnoError(pivot_root(new_root, put_old)==-1, "pivot_root()");
-}
+++ /dev/null
-// $Id: wrappers-resource.hc 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL void
-Egetrlimit(int resource, struct rlimit *rlim)
-{
- FatalErrnoError(getrlimit(resource, rlim)==-1, "getrlimit()");
-}
-
-inline static WRAPPER_DECL void
-Esetrlimit(int resource, struct rlimit const *rlim)
-{
- FatalErrnoError(setrlimit(resource, rlim)==-1, "setrlimit()");
-}
+++ /dev/null
-// $Id: wrappers-socket.hc 1649 2004-08-19 13:54:27Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers-socket.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL int
-Esocket(int domain, int type, int protocol)
-{
- register int res = socket(domain, type, protocol);
- FatalErrnoError(res==-1, "socket()");
- return res;
-}
-
-inline static WRAPPER_DECL void
-Econnect(int sockfd, void const *serv_addr, socklen_t addrlen)
-{
- FatalErrnoError(connect(sockfd, serv_addr, addrlen)==-1, "connect()");
-}
-
-inline static WRAPPER_DECL void
-Ebind(int sockfd, void *my_addr, socklen_t addrlen)
-{
- FatalErrnoError(bind(sockfd, my_addr, addrlen)==-1, "bind()");
-}
-
-inline static WRAPPER_DECL int
-Eaccept(int s, void *addr, socklen_t *addrlen)
-{
- register int res = accept(s,addr,addrlen);
- FatalErrnoError(res==-1, "accept()");
- return res;
-}
-
-inline static WRAPPER_DECL void
-Elisten(int sock, int backlog)
-{
- FatalErrnoError(listen(sock, backlog)==-1, "bind()");
-}
-
-inline static WRAPPER_DECL void
-Eshutdown(int s, int how)
-{
- FatalErrnoError(shutdown(s,how)==-1, "shutdown()");
-}
-
-inline static WRAPPER_DECL ssize_t
-Erecv(int s, void *buf, size_t len, int flags)
-{
- register ssize_t res = recv(s,buf,len,flags);
- FatalErrnoError(res==-1, "recv()");
- return res;
-}
-
-inline static WRAPPER_DECL ssize_t
-Esend(int s, void const *buf, size_t len, int flags)
-{
- register ssize_t res = send(s,buf,len,flags);
- FatalErrnoError(res==-1, "send()");
- return res;
-}
-
-inline static WRAPPER_DECL int
-Eselect(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
- struct timeval *timeout)
-{
- register int res = select(n, readfds,writefds,exceptfds, timeout);
- FatalErrnoError(res==-1, "select()");
- return res;
-}
-
-inline static WRAPPER_DECL void
-Esocketpair(int d, int type, int protocol, int sv[2])
-{
- FatalErrnoError(socketpair(d,type,protocol,sv)==-1, "socketpair()");
-}
+++ /dev/null
-// $Id: wrappers-stat.hc 2253 2006-01-22 11:18:14Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers-stat.hc can not be used in this way
-#endif
-
-#define ENSC_STAT_DECL(FUNC) \
- inline static WRAPPER_DECL void \
- E##FUNC(char const *filename, struct stat *buf) \
- { \
- FatalErrnoError(FUNC(filename, buf)==-1, #FUNC "()"); \
- } \
- \
- inline static WRAPPER_DECL void \
- E##FUNC##D(char const *filename, struct stat *buf) \
- { \
- ENSC_DETAIL1(msg, #FUNC, filename, 1); \
- FatalErrnoError(FUNC(filename, buf)==-1, msg); \
- }
-
-
-ENSC_STAT_DECL(stat)
-ENSC_STAT_DECL(lstat)
-
-#undef ENSC_STAT_DECL
-
- inline static WRAPPER_DECL void
-Efstat(int fd, struct stat *buf)
-{
- FatalErrnoError(fstat(fd, buf)==-1, "fstat()");
-}
+++ /dev/null
-// $Id: wrappers-stdlib.hc 1650 2004-08-19 13:54:45Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL void *
-Emalloc(size_t size)
-{
- register void *res = malloc(size);
- FatalErrnoError(res==0 && size!=0, "malloc()");
- return res;
-}
-
-/*@unused@*/
-inline static WRAPPER_DECL /*@null@*//*@only@*/ void *
-Erealloc(/*@only@*//*@out@*//*@null@*/ void *ptr,
- size_t new_size)
- /*@ensures maxSet(result) == new_size@*/
- /*@modifies *ptr@*/
-{
- register void *res = realloc(ptr, new_size);
- FatalErrnoError(res==0 && new_size!=0, "realloc()");
-
- return res;
-}
-
-inline static WRAPPER_DECL void
-Esetenv(char const *key, char const *val, int override)
-{
- FatalErrnoError(setenv(key,val,override)==-1, "setenv()");
-}
+++ /dev/null
-// $Id: wrappers-string.hc 1872 2005-02-25 23:31:19Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-/*@unused@*/
-inline static WRAPPER_DECL char *
-Estrdup(char const *s)
-{
- register char *res = strdup(s);
- FatalErrnoError(res==0, "strdup()");
- return res;
-}
+++ /dev/null
-// $Id: wrappers-termios.hc 2306 2006-09-12 16:55:42Z dhozac $ --*- c -*--
-
-// Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers-termios.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL void
-Etcgetattr(int fd, struct termios *termios_p)
-{
- FatalErrnoError(tcgetattr(fd, termios_p)==-1, "tcgetattr()");
-}
-
-inline static WRAPPER_DECL void
-Etcsetattr(int fd, int optional_actions, struct termios *termios_p)
-{
- FatalErrnoError(tcsetattr(fd, optional_actions, termios_p)==-1, "tcsetattr()");
-}
+++ /dev/null
-// $Id: wrappers-unistd.hc 2467 2007-01-21 18:26:45Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL void
-Eclose(int s)
-{
- FatalErrnoError(close(s)==-1, "close()");
-}
-
-inline static WRAPPER_DECL void
-Echdir(char const path[])
-{
- FatalErrnoError(chdir(path)==-1, "chdir()");
-}
-
-inline static WRAPPER_DECL void
-Efchdir(int fd)
-{
- FatalErrnoError(fchdir(fd)==-1, "fchdir()");
-}
-
-inline static WRAPPER_DECL void
-Echroot(char const path[])
-{
- FatalErrnoError(chroot(path)==-1, "chroot()");
-}
-
-inline static WRAPPER_DECL NORETURN void
-Eexecv(char const *path, char *argv[])
-{
- execv(path,argv);
- FatalErrnoErrorFail("execv()");
-}
-
-inline static WRAPPER_DECL NORETURN void
-Eexecvp(char const *path, char *argv[])
-{
- execvp(path,argv);
- FatalErrnoErrorFail("execvp()");
-}
-
-inline static WRAPPER_DECL NORETURN void
-EexecvpD(char const *path, char *argv[])
-{
- execvp(path,argv);
- {
- ENSC_DETAIL1(msg, "execvp", path, 1);
- FatalErrnoErrorFail(msg);
- }
-}
-
-inline static WRAPPER_DECL void
-Epipe(int filedes[2])
-{
- FatalErrnoError(pipe(filedes)==-1, "pipe()");
-}
-
-inline static WRAPPER_DECL pid_t
-Efork()
-{
- pid_t res;
- res = fork();
- FatalErrnoError(res==-1, "fork()");
- return res;
-}
-
-inline static WRAPPER_DECL size_t
-Eread(int fd, void *ptr, size_t len)
-{
- ssize_t res = read(fd, ptr, len);
- FatalErrnoError(res==-1, "read()");
-
- return res;
-}
-
-inline static WRAPPER_DECL size_t
-Ewrite(int fd, void const *ptr, size_t len)
-{
- ssize_t res = write(fd, ptr, len);
- FatalErrnoError(res==-1, "write()");
-
- return res;
-}
-
-inline static WRAPPER_DECL size_t
-Ereadlink(const char *path, char *buf, size_t bufsiz)
-{
- ssize_t res = readlink(path, buf, bufsiz);
- FatalErrnoError(res==-1, "readlink()");
-
- return res;
-}
-
-inline static WRAPPER_DECL size_t
-EreadlinkD(const char *path, char *buf, size_t bufsiz)
-{
- ssize_t res = readlink(path, buf, bufsiz);
- ENSC_DETAIL1(msg, "readlink", path, 1);
- FatalErrnoError((ssize_t)(res)==-1, msg);
-
- return res;
-}
-
-inline static WRAPPER_DECL void
-Esymlink(const char *oldpath, const char *newpath)
-{
- FatalErrnoError(symlink(oldpath, newpath)==-1, "symlink()");
-}
-
-inline static WRAPPER_DECL void
-EsymlinkD(const char *oldpath, const char *newpath)
-{
- ENSC_DETAIL2(msg, "symlink", oldpath, newpath, 1, 1);
- FatalErrnoError(symlink(oldpath, newpath)==-1, msg);
-}
-
-inline static WRAPPER_DECL void
-Eunlink(char const *pathname)
-{
- FatalErrnoError(unlink(pathname)==-1, "unlink()");
-}
-
-inline static WRAPPER_DECL void
-Elink(char const *oldpath, char const *newpath)
-{
- FatalErrnoError(link(oldpath, newpath)==-1, "link()");
-}
-
-inline static void
-Esetuid(uid_t uid)
-{
- FatalErrnoError(setuid(uid)==-1, "setuid()");
-}
-
-inline static void
-Esetgid(gid_t gid)
-{
- FatalErrnoError(setgid(gid)==-1, "setgid()");
-}
-
-#if defined(_GRP_H) && (defined(__USE_BSD) || defined(__dietlibc__))
-inline static void
-Esetgroups(size_t size, const gid_t *list)
-{
- FatalErrnoError(setgroups(size, list)==-1, "setgroups()");
-}
-
-inline static void
-Einitgroups(const char *user, gid_t group)
-{
- FatalErrnoError(initgroups(user, group)==-1, "initgroups()");
-}
-#endif
-
-inline static WRAPPER_DECL int
-Edup2(int oldfd, int newfd)
-{
- register int res = dup2(oldfd, newfd);
- FatalErrnoError(res==-1, "dup2()");
-
- return res;
-}
-
-inline static WRAPPER_DECL int
-Edup(int fd)
-{
- register int res = dup(fd);
- FatalErrnoError(res==-1, "dup()");
-
- return res;
-}
-
-inline static WRAPPER_DECL pid_t
-Esetsid()
-{
- register pid_t const res = setsid();
- FatalErrnoError(res==-1, "setsid()");
-
- return res;
-}
-
-inline static WRAPPER_DECL int
-Emkstemp(char *template)
-{
- int res = mkstemp(template);
- FatalErrnoError(res==-1, "mkstemp()");
- return res;
-}
-
-inline static WRAPPER_DECL off_t
-Elseek(int fildes, off_t offset, int whence)
-{
- off_t res = lseek(fildes, offset, whence);
- FatalErrnoError(res==(off_t)-1, "lseek()");
- return res;
-}
-
-inline static WRAPPER_DECL void
-Enice(int n)
-{
- FatalErrnoError(nice(n)==-1, "nice()");
-}
-
-inline static WRAPPER_DECL void
-Etruncate(const char *path, off_t length)
-{
- FatalErrnoError(truncate(path,length)==-1, "truncate()");
-}
-
-inline static WRAPPER_DECL void
-Eftruncate(int fd, off_t length)
-{
- FatalErrnoError(ftruncate(fd,length)==-1, "ftruncate()");
-}
+++ /dev/null
-// $Id: wrappers-vserver.hc 2589 2007-08-16 03:06:50Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
-
-inline static WRAPPER_DECL xid_t
-Evc_new_s_context(xid_t ctx, unsigned int remove_cap, unsigned int flags)
-{
- register xid_t res = vc_new_s_context(ctx,remove_cap,flags);
- FatalErrnoError(res==VC_NOCTX, "vc_new_s_context()");
- return res;
-}
-
-#endif
-
-inline static WRAPPER_DECL xid_t
-Evc_get_task_xid(pid_t pid)
-{
- register xid_t res = vc_get_task_xid(pid);
- FatalErrnoError(res==VC_NOCTX, "vc_get_task_xid()");
- return res;
-}
-
-inline static WRAPPER_DECL nid_t
-Evc_get_task_nid(pid_t pid)
-{
- register nid_t res = vc_get_task_nid(pid);
- FatalErrnoError(res==VC_NOCTX, "vc_get_task_nid()");
- return res;
-}
-
-inline static WRAPPER_DECL xid_t
-Evc_ctx_create(xid_t xid, struct vc_ctx_flags *flags)
-{
- register xid_t res = vc_ctx_create(xid, flags);
- FatalErrnoError(res==VC_NOCTX, "vc_ctx_create()");
- return res;
-}
-
-inline static WRAPPER_DECL nid_t
-Evc_net_create(nid_t nid)
-{
- register nid_t res = vc_net_create(nid);
- FatalErrnoError(res==VC_NOCTX, "vc_net_create()");
- return res;
-}
-
-inline static WRAPPER_DECL tag_t
-Evc_tag_create(tag_t tag)
-{
- register tag_t res = vc_tag_create(tag);
- FatalErrnoError(res==VC_NOCTX, "vc_tag_create()");
- return res;
-}
-
-inline static WRAPPER_DECL void
-Evc_ctx_migrate(xid_t xid, uint_least64_t flags)
-{
- FatalErrnoError(vc_ctx_migrate(xid, flags)==-1, "vc_ctx_migrate()");
-}
-
-inline static WRAPPER_DECL void
-Evc_net_migrate(nid_t nid)
-{
- FatalErrnoError(vc_net_migrate(nid)==-1, "vc_net_migrate()");
-}
-
-inline static WRAPPER_DECL void
-Evc_tag_migrate(tag_t tag)
-{
- FatalErrnoError(vc_tag_migrate(tag)==-1, "vc_tag_migrate()");
-}
-
-inline static WRAPPER_DECL void
-Evc_get_cflags(xid_t xid, struct vc_ctx_flags *flags)
-{
- FatalErrnoError(vc_get_cflags(xid, flags)==-1, "vc_get_cflags()");
-}
-
-inline static WRAPPER_DECL void
-Evc_set_cflags(xid_t xid, struct vc_ctx_flags const *flags)
-{
- FatalErrnoError(vc_set_cflags(xid, flags)==-1, "vc_set_cflags()");
-}
-
-inline static WRAPPER_DECL void
-Evc_get_nflags(nid_t nid, struct vc_net_flags *flags)
-{
- FatalErrnoError(vc_get_nflags(nid, flags)==-1, "vc_get_nflags()");
-}
-
-inline static WRAPPER_DECL void
-Evc_set_nflags(nid_t nid, struct vc_net_flags const *flags)
-{
- FatalErrnoError(vc_set_nflags(nid, flags)==-1, "vc_set_nflags()");
-}
-
-inline static WRAPPER_DECL void
-Evc_set_vhi_name(xid_t xid, vc_uts_type type,
- char const *val, size_t len)
-{
- FatalErrnoError(vc_set_vhi_name(xid,type,val,len)==-1, "vc_set_vhi_name()");
-}
-
-inline static WRAPPER_DECL void
-Evc_get_ccaps(xid_t xid, struct vc_ctx_caps *caps)
-{
- FatalErrnoError(vc_get_ccaps(xid, caps)==-1, "vc_get_ccaps()");
-}
-
-inline static WRAPPER_DECL void
-Evc_set_ccaps(xid_t xid, struct vc_ctx_caps const *caps)
-{
- FatalErrnoError(vc_set_ccaps(xid, caps)==-1, "vc_set_ccaps()");
-}
-
-inline static WRAPPER_DECL void
-Evc_get_ncaps(nid_t nid, struct vc_net_caps *caps)
-{
- FatalErrnoError(vc_get_ncaps(nid, caps)==-1, "vc_get_ncaps()");
-}
-
-inline static WRAPPER_DECL void
-Evc_set_ncaps(nid_t nid, struct vc_net_caps const *caps)
-{
- FatalErrnoError(vc_set_ncaps(nid, caps)==-1, "vc_set_ncaps()");
-}
-
-inline static WRAPPER_DECL void
-Evc_set_namespace(xid_t xid, uint_least64_t mask)
-{
- FatalErrnoError(vc_set_namespace(xid, mask)==-1, "vc_set_namespace()");
-}
-
-inline static WRAPPER_DECL void
-Evc_enter_namespace(xid_t xid, uint_least64_t mask)
-{
- FatalErrnoError(vc_enter_namespace(xid, mask)==-1, "vc_enter_namespace()");
-}
-
-inline static WRAPPER_DECL xid_t
-Evc_xidopt2xid(char const *id, bool honor_static)
-{
- char const * err;
- xid_t rc = vc_xidopt2xid(id, honor_static, &err);
- if (__builtin_expect(rc==VC_NOCTX,0)) {
- ENSC_DETAIL1(msg, "vc_xidopt2xid", id, 1);
-#if 1
- FatalErrnoErrorFail(msg);
-#else
- {
- size_t l1 = strlen(msg);
- size_t l2 = strlen(err);
- char buf[l1 + l2 + sizeof(": ")];
- memcpy(buf, msg, l1);
- memcpy(buf+l1, ": ", 2);
- memcpy(buf+l1+2, err, l2+1);
-
- FatalErrnoErrorFail(buf);
- }
-#endif
- }
-
- return rc;
-}
-
-inline static WRAPPER_DECL nid_t
-Evc_nidopt2nid(char const *id, bool honor_static)
-{
- char const * err;
- nid_t rc = vc_nidopt2nid(id, honor_static, &err);
- if (__builtin_expect(rc==VC_NOCTX,0)) {
- ENSC_DETAIL1(msg, "vc_nidopt2nid", id, 1);
- FatalErrnoErrorFail(msg);
- }
- return rc;
-}
-
-inline static WRAPPER_DECL tag_t
-Evc_tagopt2tag(char const *id, bool honor_static)
-{
- char const * err;
- tag_t rc = vc_tagopt2tag(id, honor_static, &err);
- if (__builtin_expect(rc==VC_NOCTX,0)) {
- ENSC_DETAIL1(msg, "vc_tagopt2tag", id, 1);
- FatalErrnoErrorFail(msg);
- }
- return rc;
-}
+++ /dev/null
-// $Id: wrappers-wait.hc 814 2004-02-06 14:47:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-inline static WRAPPER_DECL pid_t
-Ewait4(pid_t pid, int *status, int options,
- struct rusage *rusage)
-{
- pid_t res;
- res = wait4(pid, status, options, rusage);
- FatalErrnoError(res==-1, "wait4()");
- return res;
-}
+++ /dev/null
-// $Id: wrappers.h 2306 2006-09-12 16:55:42Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2003,2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_WRAPPERS_H
-#define H_UTIL_VSERVER_SRC_WRAPPERS_H
-
-#define WRAPPER_DECL UNUSED ALWAYSINLINE
-#define H_ENSC_IN_WRAPPERS_H 1
-
-#include "wrappers_handler.hc"
-
-#define ENSC_DOQUOTE_COND(PTR, VAL, LEN, DO_QUOTE) \
- if (DO_QUOTE) *PTR++ = '"'; \
- memcpy(PTR, VAL, LEN); PTR += LEN; \
- if (DO_QUOTE) *PTR++ = '"' \
-
-#define ENSC_DETAIL1(RES,FUNC,VAL,DO_QUOTE) \
- size_t l_ = strlen(VAL); \
- char RES[l_ + sizeof(FUNC "(\"\")")]; \
- char * ptr_ = RES; \
- memcpy(ptr_, FUNC "(", sizeof(FUNC)); ptr_ += sizeof(FUNC); \
- ENSC_DOQUOTE_COND(ptr_, VAL, l_, DO_QUOTE); \
- *ptr_++ = ')'; \
- *ptr_ = '\0';
-
-#define ENSC_DETAIL2(RES,FUNC, VAL0,VAL1, DO_QUOTE0,DO_QUOTE1) \
- size_t l0_ = strlen(VAL0); \
- size_t l1_ = strlen(VAL1); \
- char RES[l0_ + l1_ + sizeof(FUNC "('','')")]; \
- char * ptr_ = RES; \
- memcpy(ptr_, FUNC "(", sizeof(FUNC)); ptr_ += sizeof(FUNC); \
- ENSC_DOQUOTE_COND(ptr_, VAL0, l0_, DO_QUOTE0); \
- *ptr_++ = ','; \
- ENSC_DOQUOTE_COND(ptr_, VAL1, l1_, DO_QUOTE1); \
- *ptr_++ = ')'; \
- *ptr_ = '\0';
-
-
-#ifdef ENSC_WRAPPERS_UNISTD
-# include "wrappers-unistd.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_FCNTL
-# include "wrappers-fcntl.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_MOUNT
-# include "wrappers-mount.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_RESOURCE
-# include "wrappers-resource.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_IOCTL
-# include "wrappers-ioctl.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_WAIT
-# include "wrappers-wait.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_VSERVER
-# include "wrappers-vserver.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_IO
-# include "wrappers-io.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_IOSOCK
-# include "wrappers-iosock.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_DIRENT
-# include "wrappers-dirent.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_CLONE
-# include "wrappers-clone.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_STDLIB
-# include "wrappers-stdlib.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_STRING
-# include "wrappers-string.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_SOCKET
-# include "wrappers-socket.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_STAT
-# include "wrappers-stat.hc"
-#endif
-
-#ifdef ENSC_WRAPPERS_TERMIOS
-# include "wrappers-termios.hc"
-#endif
-
-#undef ENSC_DETAIL2
-#undef ENSC_DETAIL1
-#undef ENSC_DOQUOTE_COND
-#undef H_ENSC_IN_WRAPPERS_H
-#undef WRAPPER_DECL
-
-#endif // H_UTIL_VSERVER_SRC_WRAPPERS_H
+++ /dev/null
-// $Id: wrappers_handler.hc 1289 2004-03-18 05:27:10Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_IN_WRAPPERS_H
-# error wrappers_handler.hc can not be used in this way
-#endif
-
-#include <stdlib.h>
-#include <stdbool.h>
-#include <stdio.h>
-
-static inline ALWAYSINLINE NORETURN void
-FatalErrnoErrorFail(char const msg[])
-{
- extern int wrapper_exit_code;
-
-#ifdef ENSC_WRAPPERS_PREFIX
- {
- int old_errno = errno;
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX);
- errno = old_errno;
- }
-#endif
- perror(msg);
-
- exit(wrapper_exit_code);
-}
-
-static UNUSED void
-FatalErrnoError(bool condition, char const msg[]) /*@*/
-{
- if (__builtin_expect(!condition,true)) return;
- FatalErrnoErrorFail(msg);
-}
+++ /dev/null
-## $Id$ -*- makefile -*-
-
-## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-AM_INSTALLCHECK_STD_OPTIONS_EXEMPT += \
- $(gentoo_src_SCRPTS)
-
-gentoo_src_SCRPTS = gentoo/vprocunhide \
- gentoo/vservers.default \
- gentoo/util-vserver
-
-EXTRA_DIST += $(gentoo_src_SCRPTS) \
- gentoo/bash-wrapper
-
-if HAVE_GENTOO_INIT
-initrd_SCRIPTS += $(gentoo_src_SCRPTS)
-pkglib_SCRIPTS += gentoo/bash-wrapper
-endif
+++ /dev/null
-#! /bin/bash
-# $Id$
-
-# Copyright (C) 2007 Daniel Hokka Zakrisson
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-. "$__PKGLIBDIR/vserver.functions"
-
-
-function showHelp()
-{
- echo \
-$"Usage: $0 <statements>
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"bash-wrapper $PACKAGE_VERSION -- wrapper for bash snippets for Gentoo initscripts
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2007 Daniel Hokka Zakrisson
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-tmp=$(getopt -o +q --long help,version,debug -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--debug) set -x;;
- (--) shift; break;;
- (*) echo $"bash-wrapper: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-for i; do
- eval $i
-done
+++ /dev/null
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-set_helper() {
- local f="/proc/sys/kernel/vshelper"
- if [ -e "$f" ]; then
- echo "$_VSHELPER" > "$f"
- fi
- return 0
-}
-
-kill_contexts() {
- local xid
- for xid in `ls -1 /proc/virtual`; do
- [ "$xid" = "info" -o "$xid" = "status" ] && continue
- $_VATTRIBUTE --xid $xid --set --flag ~persistent
- $_VKILL --xid $xid -s 15
- sleep 3
- $_VKILL --xid $xid -s 9
- done
- local alive=0
- for xid in `ls -1 /proc/virtual`; do
- [ "$xid" = "info" -o "$xid" = "status" ] && continue
- let alive+=1
- done
- return $alive
-}
-
-start() {
- : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
- if [ ! -e ${UTIL_VSERVER_VARS} ]; then
- eerror "Cannot find util-vserver installation"
- eerror "(the file '$UTIL_VSERVER_VARS' would be expected)"
- return 1
- fi
-
- . ${UTIL_VSERVER_VARS}
-
- ebegin "Setting vshelper path to $_VSHELPER"
- set_helper
- eend $?
-
- ebegin "Loading default device map"
- $__PKGLIBDIR/bash-wrapper 'loadDeviceMap 0 "$__CONFDIR/.defaults/apps/vdevmap"'
- eend $?
-}
-
-stop() {
- : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
- if [ ! -e ${UTIL_VSERVER_VARS} ]; then
- eerror "Cannot find util-vserver installation"
- eerror "(the file '$UTIL_VSERVER_VARS' would be expected)"
- return 1
- fi
-
- . ${UTIL_VSERVER_VARS}
-
- ebegin "Stopping all running guests"
- $_START_VSERVERS -j 1 --all --stop
- eend $?
-
- ebegin "Killing all running contexts"
- kill_contexts
- eend $?
-}
-
-# vim:ts=4:filetype=gentoo-init-d
+++ /dev/null
-#!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-start() {
- : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
- if [ ! -e ${UTIL_VSERVER_VARS} ]; then
- eerror "Cannot find util-vserver installation"
- eerror "(the file '$UTIL_VSERVER_VARS' would be expected)"
- return 1
- fi
-
- . ${UTIL_VSERVER_VARS}
-
- ebegin "Fixing /proc entries visibility"
- ${_VPROCUNHIDE}
- eend $?
-}
-
-# vim:ts=4:filetype=gentoo-init-d
+++ /dev/null
-#!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- need util-vserver vprocunhide
-}
-
-start() {
- MARK=${SVCNAME#vservers.} /usr/lib/util-vserver/vserver-wrapper start
-}
-
-stop() {
- MARK=${SVCNAME#vservers.} /usr/lib/util-vserver/vserver-wrapper stop
-}
-
-
-
-# vim:ts=4:filetype=gentoo-init-d
+++ /dev/null
-#!/bin/sh
-# install - install a program, script, or datafile
-
-scriptversion=2006-10-14.15
-
-# This originates from X11R5 (mit/util/scripts/install.sh), which was
-# later released in X11R6 (xc/config/util/install.sh) with the
-# following copyright and license.
-#
-# Copyright (C) 1994 X Consortium
-#
-# 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
-# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
-# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-# Except as contained in this notice, the name of the X Consortium shall not
-# be used in advertising or otherwise to promote the sale, use or other deal-
-# ings in this Software without prior written authorization from the X Consor-
-# tium.
-#
-#
-# FSF changes to this file are in the public domain.
-#
-# Calling this script install-sh is preferred over install.sh, to prevent
-# `make' implicit rules from creating a file called install from it
-# when there is no Makefile.
-#
-# This script is compatible with the BSD install script, but was written
-# from scratch.
-
-nl='
-'
-IFS=" "" $nl"
-
-# set DOITPROG to echo to test this script
-
-# Don't use :- since 4.3BSD and earlier shells don't like it.
-doit="${DOITPROG-}"
-if test -z "$doit"; then
- doit_exec=exec
-else
- doit_exec=$doit
-fi
-
-# Put in absolute file names if you don't have them in your path;
-# or use environment vars.
-
-mvprog="${MVPROG-mv}"
-cpprog="${CPPROG-cp}"
-chmodprog="${CHMODPROG-chmod}"
-chownprog="${CHOWNPROG-chown}"
-chgrpprog="${CHGRPPROG-chgrp}"
-stripprog="${STRIPPROG-strip}"
-rmprog="${RMPROG-rm}"
-mkdirprog="${MKDIRPROG-mkdir}"
-
-posix_glob=
-posix_mkdir=
-
-# Desired mode of installed file.
-mode=0755
-
-chmodcmd=$chmodprog
-chowncmd=
-chgrpcmd=
-stripcmd=
-rmcmd="$rmprog -f"
-mvcmd="$mvprog"
-src=
-dst=
-dir_arg=
-dstarg=
-no_target_directory=
-
-usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
- or: $0 [OPTION]... SRCFILES... DIRECTORY
- or: $0 [OPTION]... -t DIRECTORY SRCFILES...
- or: $0 [OPTION]... -d DIRECTORIES...
-
-In the 1st form, copy SRCFILE to DSTFILE.
-In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
-In the 4th, create DIRECTORIES.
-
-Options:
--c (ignored)
--d create directories instead of installing files.
--g GROUP $chgrpprog installed files to GROUP.
--m MODE $chmodprog installed files to MODE.
--o USER $chownprog installed files to USER.
--s $stripprog installed files.
--t DIRECTORY install into DIRECTORY.
--T report an error if DSTFILE is a directory.
---help display this help and exit.
---version display version info and exit.
-
-Environment variables override the default commands:
- CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
-"
-
-while test $# -ne 0; do
- case $1 in
- -c) shift
- continue;;
-
- -d) dir_arg=true
- shift
- continue;;
-
- -g) chgrpcmd="$chgrpprog $2"
- shift
- shift
- continue;;
-
- --help) echo "$usage"; exit $?;;
-
- -m) mode=$2
- shift
- shift
- case $mode in
- *' '* | *' '* | *'
-'* | *'*'* | *'?'* | *'['*)
- echo "$0: invalid mode: $mode" >&2
- exit 1;;
- esac
- continue;;
-
- -o) chowncmd="$chownprog $2"
- shift
- shift
- continue;;
-
- -s) stripcmd=$stripprog
- shift
- continue;;
-
- -t) dstarg=$2
- shift
- shift
- continue;;
-
- -T) no_target_directory=true
- shift
- continue;;
-
- --version) echo "$0 $scriptversion"; exit $?;;
-
- --) shift
- break;;
-
- -*) echo "$0: invalid option: $1" >&2
- exit 1;;
-
- *) break;;
- esac
-done
-
-if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
- # When -d is used, all remaining arguments are directories to create.
- # When -t is used, the destination is already specified.
- # Otherwise, the last argument is the destination. Remove it from $@.
- for arg
- do
- if test -n "$dstarg"; then
- # $@ is not empty: it contains at least $arg.
- set fnord "$@" "$dstarg"
- shift # fnord
- fi
- shift # arg
- dstarg=$arg
- done
-fi
-
-if test $# -eq 0; then
- if test -z "$dir_arg"; then
- echo "$0: no input file specified." >&2
- exit 1
- fi
- # It's OK to call `install-sh -d' without argument.
- # This can happen when creating conditional directories.
- exit 0
-fi
-
-if test -z "$dir_arg"; then
- trap '(exit $?); exit' 1 2 13 15
-
- # Set umask so as not to create temps with too-generous modes.
- # However, 'strip' requires both read and write access to temps.
- case $mode in
- # Optimize common cases.
- *644) cp_umask=133;;
- *755) cp_umask=22;;
-
- *[0-7])
- if test -z "$stripcmd"; then
- u_plus_rw=
- else
- u_plus_rw='% 200'
- fi
- cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
- *)
- if test -z "$stripcmd"; then
- u_plus_rw=
- else
- u_plus_rw=,u+rw
- fi
- cp_umask=$mode$u_plus_rw;;
- esac
-fi
-
-for src
-do
- # Protect names starting with `-'.
- case $src in
- -*) src=./$src ;;
- esac
-
- if test -n "$dir_arg"; then
- dst=$src
- dstdir=$dst
- test -d "$dstdir"
- dstdir_status=$?
- else
-
- # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
- # might cause directories to be created, which would be especially bad
- # if $src (and thus $dsttmp) contains '*'.
- if test ! -f "$src" && test ! -d "$src"; then
- echo "$0: $src does not exist." >&2
- exit 1
- fi
-
- if test -z "$dstarg"; then
- echo "$0: no destination specified." >&2
- exit 1
- fi
-
- dst=$dstarg
- # Protect names starting with `-'.
- case $dst in
- -*) dst=./$dst ;;
- esac
-
- # If destination is a directory, append the input filename; won't work
- # if double slashes aren't ignored.
- if test -d "$dst"; then
- if test -n "$no_target_directory"; then
- echo "$0: $dstarg: Is a directory" >&2
- exit 1
- fi
- dstdir=$dst
- dst=$dstdir/`basename "$src"`
- dstdir_status=0
- else
- # Prefer dirname, but fall back on a substitute if dirname fails.
- dstdir=`
- (dirname "$dst") 2>/dev/null ||
- expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$dst" : 'X\(//\)[^/]' \| \
- X"$dst" : 'X\(//\)$' \| \
- X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
- echo X"$dst" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'
- `
-
- test -d "$dstdir"
- dstdir_status=$?
- fi
- fi
-
- obsolete_mkdir_used=false
-
- if test $dstdir_status != 0; then
- case $posix_mkdir in
- '')
- # Create intermediate dirs using mode 755 as modified by the umask.
- # This is like FreeBSD 'install' as of 1997-10-28.
- umask=`umask`
- case $stripcmd.$umask in
- # Optimize common cases.
- *[2367][2367]) mkdir_umask=$umask;;
- .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
-
- *[0-7])
- mkdir_umask=`expr $umask + 22 \
- - $umask % 100 % 40 + $umask % 20 \
- - $umask % 10 % 4 + $umask % 2
- `;;
- *) mkdir_umask=$umask,go-w;;
- esac
-
- # With -d, create the new directory with the user-specified mode.
- # Otherwise, rely on $mkdir_umask.
- if test -n "$dir_arg"; then
- mkdir_mode=-m$mode
- else
- mkdir_mode=
- fi
-
- posix_mkdir=false
- case $umask in
- *[123567][0-7][0-7])
- # POSIX mkdir -p sets u+wx bits regardless of umask, which
- # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
- ;;
- *)
- tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
- trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
-
- if (umask $mkdir_umask &&
- exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
- then
- if test -z "$dir_arg" || {
- # Check for POSIX incompatibilities with -m.
- # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
- # other-writeable bit of parent directory when it shouldn't.
- # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
- ls_ld_tmpdir=`ls -ld "$tmpdir"`
- case $ls_ld_tmpdir in
- d????-?r-*) different_mode=700;;
- d????-?--*) different_mode=755;;
- *) false;;
- esac &&
- $mkdirprog -m$different_mode -p -- "$tmpdir" && {
- ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
- test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
- }
- }
- then posix_mkdir=:
- fi
- rmdir "$tmpdir/d" "$tmpdir"
- else
- # Remove any dirs left behind by ancient mkdir implementations.
- rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
- fi
- trap '' 0;;
- esac;;
- esac
-
- if
- $posix_mkdir && (
- umask $mkdir_umask &&
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
- )
- then :
- else
-
- # The umask is ridiculous, or mkdir does not conform to POSIX,
- # or it failed possibly due to a race condition. Create the
- # directory the slow way, step by step, checking for races as we go.
-
- case $dstdir in
- /*) prefix=/ ;;
- -*) prefix=./ ;;
- *) prefix= ;;
- esac
-
- case $posix_glob in
- '')
- if (set -f) 2>/dev/null; then
- posix_glob=true
- else
- posix_glob=false
- fi ;;
- esac
-
- oIFS=$IFS
- IFS=/
- $posix_glob && set -f
- set fnord $dstdir
- shift
- $posix_glob && set +f
- IFS=$oIFS
-
- prefixes=
-
- for d
- do
- test -z "$d" && continue
-
- prefix=$prefix$d
- if test -d "$prefix"; then
- prefixes=
- else
- if $posix_mkdir; then
- (umask=$mkdir_umask &&
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
- # Don't fail if two instances are running concurrently.
- test -d "$prefix" || exit 1
- else
- case $prefix in
- *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
- *) qprefix=$prefix;;
- esac
- prefixes="$prefixes '$qprefix'"
- fi
- fi
- prefix=$prefix/
- done
-
- if test -n "$prefixes"; then
- # Don't fail if two instances are running concurrently.
- (umask $mkdir_umask &&
- eval "\$doit_exec \$mkdirprog $prefixes") ||
- test -d "$dstdir" || exit 1
- obsolete_mkdir_used=true
- fi
- fi
- fi
-
- if test -n "$dir_arg"; then
- { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
- { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
- test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
- else
-
- # Make a couple of temp file names in the proper directory.
- dsttmp=$dstdir/_inst.$$_
- rmtmp=$dstdir/_rm.$$_
-
- # Trap to clean up those temp files at exit.
- trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
-
- # Copy the file name to the temp name.
- (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
-
- # and set any options; do chmod last to preserve setuid bits.
- #
- # If any of these fail, we abort the whole thing. If we want to
- # ignore errors from any of these, just make sure not to ignore
- # errors from the above "$doit $cpprog $src $dsttmp" command.
- #
- { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
- && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
- && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
- && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
-
- # Now rename the file to the real destination.
- { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
- || {
- # The rename failed, perhaps because mv can't rename something else
- # to itself, or perhaps because mv is so ancient that it does not
- # support -f.
-
- # Now remove or move aside any old file at destination location.
- # We try this two ways since rm can't unlink itself on some
- # systems and the destination file might be busy for other
- # reasons. In this case, the final cleanup might fail but the new
- # file should still install successfully.
- {
- if test -f "$dst"; then
- $doit $rmcmd -f "$dst" 2>/dev/null \
- || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
- && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
- || {
- echo "$0: cannot unlink or rename $dst" >&2
- (exit 1); exit 1
- }
- else
- :
- fi
- } &&
-
- # Now rename the file to the real destination.
- $doit $mvcmd "$dsttmp" "$dst"
- }
- } || exit 1
-
- trap '' 0
- fi
-done
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End:
+++ /dev/null
-#ifndef _VX_CACCT_CMD_H
-#define _VX_CACCT_CMD_H
-
-
-/* virtual host info name commands */
-
-#define VCMD_sock_stat VC_CMD(VSTAT, 5, 0)
-
-struct vcmd_sock_stat_v0 {
- uint32_t field;
- uint32_t count[3];
- uint64_t total[3];
-};
-
-
-#endif /* _VX_CACCT_CMD_H */
+++ /dev/null
-#ifndef _VX_CONTEXT_CMD_H
-#define _VX_CONTEXT_CMD_H
-
-
-/* vinfo commands */
-
-#define VCMD_task_xid VC_CMD(VINFO, 1, 0)
-
-
-#define VCMD_vx_info VC_CMD(VINFO, 5, 0)
-
-struct vcmd_vx_info_v0 {
- uint32_t xid;
- uint32_t initpid;
- /* more to come */
-};
-
-
-#define VCMD_ctx_stat VC_CMD(VSTAT, 0, 0)
-
-struct vcmd_ctx_stat_v0 {
- uint32_t usecnt;
- uint32_t tasks;
- /* more to come */
-};
-
-
-/* context commands */
-
-#define VCMD_ctx_create_v0 VC_CMD(VPROC, 1, 0)
-#define VCMD_ctx_create VC_CMD(VPROC, 1, 1)
-
-struct vcmd_ctx_create {
- uint64_t flagword;
-};
-
-#define VCMD_ctx_migrate_v0 VC_CMD(PROCMIG, 1, 0)
-#define VCMD_ctx_migrate VC_CMD(PROCMIG, 1, 1)
-
-struct vcmd_ctx_migrate {
- uint64_t flagword;
-};
-
-
-
-/* flag commands */
-
-#define VCMD_get_cflags VC_CMD(FLAGS, 1, 0)
-#define VCMD_set_cflags VC_CMD(FLAGS, 2, 0)
-
-struct vcmd_ctx_flags_v0 {
- uint64_t flagword;
- uint64_t mask;
-};
-
-
-
-/* context caps commands */
-
-#define VCMD_get_ccaps_v0 VC_CMD(FLAGS, 3, 0)
-#define VCMD_set_ccaps_v0 VC_CMD(FLAGS, 4, 0)
-
-struct vcmd_ctx_caps_v0 {
- uint64_t bcaps;
- uint64_t ccaps;
- uint64_t cmask;
-};
-
-#define VCMD_get_ccaps VC_CMD(FLAGS, 3, 1)
-#define VCMD_set_ccaps VC_CMD(FLAGS, 4, 1)
-
-struct vcmd_ctx_caps_v1 {
- uint64_t ccaps;
- uint64_t cmask;
-};
-
-
-
-/* bcaps commands */
-
-#define VCMD_get_bcaps VC_CMD(FLAGS, 9, 0)
-#define VCMD_set_bcaps VC_CMD(FLAGS,10, 0)
-
-struct vcmd_bcaps {
- uint64_t bcaps;
- uint64_t bmask;
-};
-
-#endif /* _VX_CONTEXT_CMD_H */
+++ /dev/null
-#ifndef _VX_CVIRT_CMD_H
-#define _VX_CVIRT_CMD_H
-
-
-/* virtual host info name commands */
-
-#define VCMD_set_vhi_name VC_CMD(VHOST, 1, 0)
-#define VCMD_get_vhi_name VC_CMD(VHOST, 2, 0)
-
-struct vcmd_vhi_name_v0 {
- uint32_t field;
- char name[65];
-};
-
-
-enum vhi_name_field {
- VHIN_CONTEXT=0,
- VHIN_SYSNAME,
- VHIN_NODENAME,
- VHIN_RELEASE,
- VHIN_VERSION,
- VHIN_MACHINE,
- VHIN_DOMAINNAME,
-};
-
-
-
-#define VCMD_virt_stat VC_CMD(VSTAT, 3, 0)
-
-struct vcmd_virt_stat_v0 {
- uint64_t offset;
- uint64_t uptime;
- uint32_t nr_threads;
- uint32_t nr_running;
- uint32_t nr_uninterruptible;
- uint32_t nr_onhold;
- uint32_t nr_forks;
- uint32_t load[3];
-};
-
-#endif /* _VX_CVIRT_CMD_H */
+++ /dev/null
-#ifndef _VX_DEBUG_CMD_H
-#define _VX_DEBUG_CMD_H
-
-
-/* debug commands */
-
-#define VCMD_dump_history VC_CMD(DEBUG, 1, 0)
-
-#define VCMD_read_history VC_CMD(DEBUG, 5, 0)
-#define VCMD_read_monitor VC_CMD(DEBUG, 6, 0)
-
-struct vcmd_read_history_v0 {
- uint32_t index;
- uint32_t count;
- char *data;
-};
-
-struct vcmd_read_monitor_v0 {
- uint32_t index;
- uint32_t count;
- char *data;
-};
-
-
-#endif /* _VX_DEBUG_CMD_H */
+++ /dev/null
-#ifndef _VX_DEVICE_CMD_H
-#define _VX_DEVICE_CMD_H
-
-
-/* device vserver commands */
-
-#define VCMD_set_mapping VC_CMD(DEVICE, 1, 0)
-
-struct vcmd_set_mapping_v0 {
- const char *device;
- const char *target;
- uint32_t flags;
-};
-
-
-#endif /* _VX_DEVICE_CMD_H */
+++ /dev/null
-#ifndef _VX_DLIMIT_CMD_H
-#define _VX_DLIMIT_CMD_H
-
-
-/* dlimit vserver commands */
-
-#define VCMD_add_dlimit VC_CMD(DLIMIT, 1, 0)
-#define VCMD_rem_dlimit VC_CMD(DLIMIT, 2, 0)
-
-#define VCMD_set_dlimit VC_CMD(DLIMIT, 5, 0)
-#define VCMD_get_dlimit VC_CMD(DLIMIT, 6, 0)
-
-struct vcmd_ctx_dlimit_base_v0 {
- const char *name;
- uint32_t flags;
-};
-
-struct vcmd_ctx_dlimit_v0 {
- const char *name;
- uint32_t space_used; /* used space in kbytes */
- uint32_t space_total; /* maximum space in kbytes */
- uint32_t inodes_used; /* used inodes */
- uint32_t inodes_total; /* maximum inodes */
- uint32_t reserved; /* reserved for root in % */
- uint32_t flags;
-};
-
-#define CDLIM_UNSET ((uint32_t)0UL)
-#define CDLIM_INFINITY ((uint32_t)~0UL)
-#define CDLIM_KEEP ((uint32_t)~1UL)
-
-#endif /* _VX_DLIMIT_CMD_H */
+++ /dev/null
-#ifndef _VX_INODE_CMD_H
-#define _VX_INODE_CMD_H
-
-
-/* inode vserver commands */
-
-#define VCMD_get_iattr VC_CMD(INODE, 1, 1)
-#define VCMD_set_iattr VC_CMD(INODE, 2, 1)
-
-#define VCMD_fget_iattr VC_CMD(INODE, 3, 0)
-#define VCMD_fset_iattr VC_CMD(INODE, 4, 0)
-
-struct vcmd_ctx_iattr_v1 {
- const char *name;
- uint32_t xid;
- uint32_t flags;
- uint32_t mask;
-};
-
-struct vcmd_ctx_fiattr_v0 {
- uint32_t xid;
- uint32_t flags;
- uint32_t mask;
-};
-
-
-#endif /* _VX_INODE_CMD_H */
+++ /dev/null
-#ifndef _VX_LEGACY_H
-#define _VX_LEGACY_H
-
-#include "switch.h"
-
-
-/* compatibiliy vserver commands */
-
-#define VCMD_new_s_context VC_CMD(COMPAT, 1, 1)
-#define VCMD_set_ipv4root VC_CMD(COMPAT, 2, 3)
-
-#define VCMD_create_context VC_CMD(VSETUP, 1, 0)
-
-/* compatibiliy vserver arguments */
-
-struct vcmd_new_s_context_v1 {
- uint32_t remove_cap;
- uint32_t flags;
-};
-
-struct vcmd_set_ipv4root_v3 {
- /* number of pairs in id */
- uint32_t broadcast;
- struct {
- uint32_t ip;
- uint32_t mask;
- } nx_mask_pair[NB_IPV4ROOT];
-};
-
-
-#define VX_INFO_LOCK 1 /* Can't request a new vx_id */
-#define VX_INFO_NPROC 4 /* Limit number of processes in a context */
-#define VX_INFO_PRIVATE 8 /* Noone can join this security context */
-#define VX_INFO_INIT 16 /* This process wants to become the */
- /* logical process 1 of the security */
- /* context */
-#define VX_INFO_HIDEINFO 32 /* Hide some information in /proc */
-#define VX_INFO_ULIMIT 64 /* Use ulimit of the current process */
- /* to become the global limits */
- /* of the context */
-#define VX_INFO_NAMESPACE 128 /* save private namespace */
-
-
-#endif /* _VX_LEGACY_H */
+++ /dev/null
-#ifndef _VX_LIMIT_CMD_H
-#define _VX_LIMIT_CMD_H
-
-
-/* rlimit vserver commands */
-
-#define VCMD_get_rlimit VC_CMD(RLIMIT, 1, 0)
-#define VCMD_set_rlimit VC_CMD(RLIMIT, 2, 0)
-#define VCMD_get_rlimit_mask VC_CMD(RLIMIT, 3, 0)
-#define VCMD_reset_minmax VC_CMD(RLIMIT, 9, 0)
-
-struct vcmd_ctx_rlimit_v0 {
- uint32_t id;
- uint64_t minimum;
- uint64_t softlimit;
- uint64_t maximum;
-};
-
-struct vcmd_ctx_rlimit_mask_v0 {
- uint32_t minimum;
- uint32_t softlimit;
- uint32_t maximum;
-};
-
-#define VCMD_rlimit_stat VC_CMD(VSTAT, 1, 0)
-
-struct vcmd_rlimit_stat_v0 {
- uint32_t id;
- uint32_t hits;
- uint64_t value;
- uint64_t minimum;
- uint64_t maximum;
-};
-
-#define CRLIM_UNSET (0ULL)
-#define CRLIM_INFINITY (~0ULL)
-#define CRLIM_KEEP (~1ULL)
-
-#endif /* _VX_LIMIT_CMD_H */
+++ /dev/null
-#ifndef _VX_MONITOR_H
-#define _VX_MONITOR_H
-
-
-enum {
- VXM_UNUSED = 0,
-
- VXM_SYNC = 0x10,
-
- VXM_UPDATE = 0x20,
- VXM_UPDATE_1,
- VXM_UPDATE_2,
-
- VXM_RQINFO_1 = 0x24,
- VXM_RQINFO_2,
-
- VXM_ACTIVATE = 0x40,
- VXM_DEACTIVATE,
- VXM_IDLE,
-
- VXM_HOLD = 0x44,
- VXM_UNHOLD,
-
- VXM_MIGRATE = 0x48,
- VXM_RESCHED,
-
- /* all other bits are flags */
- VXM_SCHED = 0x80,
-};
-
-struct _vxm_update_1 {
- uint32_t tokens_max;
- uint32_t fill_rate;
- uint32_t interval;
-};
-
-struct _vxm_update_2 {
- uint32_t tokens_min;
- uint32_t fill_rate;
- uint32_t interval;
-};
-
-struct _vxm_rqinfo_1 {
- uint16_t running;
- uint16_t onhold;
- uint16_t iowait;
- uint16_t uintr;
- uint32_t idle_tokens;
-};
-
-struct _vxm_rqinfo_2 {
- uint32_t norm_time;
- uint32_t idle_time;
- uint32_t idle_skip;
-};
-
-struct _vxm_sched {
- uint32_t tokens;
- uint32_t norm_time;
- uint32_t idle_time;
-};
-
-struct _vxm_task {
- uint16_t pid;
- uint16_t state;
-};
-
-struct _vxm_event {
- uint32_t jif;
- union {
- uint32_t seq;
- uint32_t sec;
- };
- union {
- uint32_t tokens;
- uint32_t nsec;
- struct _vxm_task tsk;
- };
-};
-
-struct _vx_mon_entry {
- uint16_t type;
- uint16_t xid;
- union {
- struct _vxm_event ev;
- struct _vxm_sched sd;
- struct _vxm_update_1 u1;
- struct _vxm_update_2 u2;
- struct _vxm_rqinfo_1 q1;
- struct _vxm_rqinfo_2 q2;
- };
-};
-
-
-#endif /* _VX_MONITOR_H */
+++ /dev/null
-#ifndef _VX_NETWORK_H
-#define _VX_NETWORK_H
-
-#include <linux/types.h>
-
-
-#define MAX_N_CONTEXT 65535 /* Arbitrary limit */
-
-#define NB_IPV4ROOT 16
-
-
-/* network flags */
-
-#define NXF_INFO_PRIVATE 0x00000008
-
-#define NXF_SINGLE_IP 0x00000100
-
-#define NXF_HIDE_NETIF 0x02000000
-
-#define NXF_STATE_SETUP (1ULL << 32)
-#define NXF_STATE_ADMIN (1ULL << 34)
-
-#define NXF_SC_HELPER (1ULL << 36)
-#define NXF_PERSISTENT (1ULL << 38)
-
-#define NXF_ONE_TIME (0x0005ULL << 32)
-
-#define NXF_INIT_SET (NXF_STATE_ADMIN)
-
-
-/* address types */
-
-#define NXA_TYPE_IPV4 0x0001
-#define NXA_TYPE_IPV6 0x0002
-
-#define NXA_TYPE_NONE 0x0000
-#define NXA_TYPE_ANY 0x00FF
-#define NXA_MOD_ALL (1<<9)
-
-#define NXA_TYPE_ADDR 0x0003
-#define NXA_TYPE_MASK 0x0013
-#define NXA_TYPE_RANGE 0x0023
-
-#define NXA_MOD_BCAST 0x0100
-#define NXA_MOD_LBACK 0x0200
-
-
-#else /* _VX_NETWORK_H */
-#warning duplicate inclusion
-#endif /* _VX_NETWORK_H */
+++ /dev/null
-#ifndef _VX_NETWORK_CMD_H
-#define _VX_NETWORK_CMD_H
-
-
-/* vinfo commands */
-
-#define VCMD_task_nid VC_CMD(VINFO, 2, 0)
-
-
-#define VCMD_nx_info VC_CMD(VINFO, 6, 0)
-
-struct vcmd_nx_info_v0 {
- uint32_t nid;
- /* more to come */
-};
-
-
-#define VCMD_net_create_v0 VC_CMD(VNET, 1, 0)
-#define VCMD_net_create VC_CMD(VNET, 1, 1)
-
-struct vcmd_net_create {
- uint64_t flagword;
-};
-
-#define VCMD_net_migrate VC_CMD(NETMIG, 1, 0)
-
-#define VCMD_net_add_v0 VC_CMD(NETALT, 1, 0)
-#define VCMD_net_remove_v0 VC_CMD(NETALT, 2, 0)
-
-struct vcmd_net_addr_v0 {
- uint16_t type;
- uint16_t count;
- struct in_addr ip[4];
- struct in_addr mask[4];
-};
-
-#define VCMD_net_add_ipv4 VC_CMD(NETALT, 1, 1)
-#define VCMD_net_remove_ipv4 VC_CMD(NETALT, 2, 1)
-
-struct vcmd_net_addr_ipv4_v1 {
- uint16_t type;
- uint16_t flags;
- struct in_addr ip;
- struct in_addr mask;
-};
-
-#define VCMD_net_add_ipv6 VC_CMD(NETALT, 3, 1)
-#define VCMD_net_remove_ipv6 VC_CMD(NETALT, 4, 1)
-
-struct vcmd_net_addr_ipv6_v1 {
- uint16_t type;
- uint16_t flags;
- uint32_t prefix;
- struct in6_addr ip;
- struct in6_addr mask;
-};
-
-#define VCMD_add_match_ipv4 VC_CMD(NETALT, 5, 0)
-#define VCMD_get_match_ipv4 VC_CMD(NETALT, 6, 0)
-
-struct vcmd_match_ipv4_v0 {
- uint16_t type;
- uint16_t flags;
- uint16_t parent;
- uint16_t prefix;
- struct in_addr ip;
- struct in_addr ip2;
- struct in_addr mask;
-};
-
-#define VCMD_add_match_ipv6 VC_CMD(NETALT, 7, 0)
-#define VCMD_get_match_ipv6 VC_CMD(NETALT, 8, 0)
-
-struct vcmd_match_ipv6_v0 {
- uint16_t type;
- uint16_t flags;
- uint16_t parent;
- uint16_t prefix;
- struct in6_addr ip;
- struct in6_addr ip2;
- struct in6_addr mask;
-};
-
-
-
-
-/* flag commands */
-
-#define VCMD_get_nflags VC_CMD(FLAGS, 5, 0)
-#define VCMD_set_nflags VC_CMD(FLAGS, 6, 0)
-
-struct vcmd_net_flags_v0 {
- uint64_t flagword;
- uint64_t mask;
-};
-
-
-
-/* network caps commands */
-
-#define VCMD_get_ncaps VC_CMD(FLAGS, 7, 0)
-#define VCMD_set_ncaps VC_CMD(FLAGS, 8, 0)
-
-struct vcmd_net_caps_v0 {
- uint64_t ncaps;
- uint64_t cmask;
-};
-
-#endif /* _VX_CONTEXT_CMD_H */
+++ /dev/null
-#ifndef _VX_SCHED_CMD_H
-#define _VX_SCHED_CMD_H
-
-
-/* sched vserver commands */
-
-#define VCMD_set_sched_v2 VC_CMD(SCHED, 1, 2)
-#define VCMD_set_sched_v3 VC_CMD(SCHED, 1, 3)
-#define VCMD_set_sched_v4 VC_CMD(SCHED, 1, 4)
-
-struct vcmd_set_sched_v2 {
- int32_t fill_rate;
- int32_t interval;
- int32_t tokens;
- int32_t tokens_min;
- int32_t tokens_max;
- uint64_t cpu_mask;
-};
-
-struct vcmd_set_sched_v3 {
- uint32_t set_mask;
- int32_t fill_rate;
- int32_t interval;
- int32_t tokens;
- int32_t tokens_min;
- int32_t tokens_max;
- int32_t priority_bias;
-};
-
-struct vcmd_set_sched_v4 {
- uint32_t set_mask;
- int32_t fill_rate;
- int32_t interval;
- int32_t tokens;
- int32_t tokens_min;
- int32_t tokens_max;
- int32_t prio_bias;
- int32_t cpu_id;
- int32_t bucket_id;
-};
-
-#define VCMD_set_sched VC_CMD(SCHED, 1, 5)
-#define VCMD_get_sched VC_CMD(SCHED, 2, 5)
-
-struct vcmd_sched_v5 {
- uint32_t mask;
- int32_t cpu_id;
- int32_t bucket_id;
- int32_t fill_rate[2];
- int32_t interval[2];
- int32_t tokens;
- int32_t tokens_min;
- int32_t tokens_max;
- int32_t prio_bias;
-};
-
-#define VXSM_FILL_RATE 0x0001
-#define VXSM_INTERVAL 0x0002
-#define VXSM_FILL_RATE2 0x0004
-#define VXSM_INTERVAL2 0x0008
-#define VXSM_TOKENS 0x0010
-#define VXSM_TOKENS_MIN 0x0020
-#define VXSM_TOKENS_MAX 0x0040
-#define VXSM_PRIO_BIAS 0x0100
-
-#define VXSM_IDLE_TIME 0x0200
-#define VXSM_FORCE 0x0400
-
-#define VXSM_V3_MASK 0x0173
-#define VXSM_SET_MASK 0x01FF
-
-#define VXSM_CPU_ID 0x1000
-#define VXSM_BUCKET_ID 0x2000
-
-#define VXSM_MSEC 0x4000
-
-#define SCHED_KEEP (-2) /* only for v2 */
-
-
-#define VCMD_sched_info VC_CMD(SCHED, 3, 0)
-
-struct vcmd_sched_info {
- int32_t cpu_id;
- int32_t bucket_id;
- uint64_t user_msec;
- uint64_t sys_msec;
- uint64_t hold_msec;
- uint32_t token_usec;
- int32_t vavavoom;
-};
-
-#endif /* _VX_SCHED_CMD_H */
+++ /dev/null
-#ifndef _VX_SIGNAL_CMD_H
-#define _VX_SIGNAL_CMD_H
-
-
-/* signalling vserver commands */
-
-#define VCMD_ctx_kill VC_CMD(PROCTRL, 1, 0)
-#define VCMD_wait_exit VC_CMD(EVENT, 99, 0)
-
-struct vcmd_ctx_kill_v0 {
- int32_t pid;
- int32_t sig;
-};
-
-struct vcmd_wait_exit_v0 {
- int32_t reboot_cmd;
- int32_t exit_code;
-};
-
-
-/* process alteration commands */
-
-#define VCMD_get_pflags VC_CMD(PROCALT, 5, 0)
-#define VCMD_set_pflags VC_CMD(PROCALT, 6, 0)
-
-struct vcmd_pflags_v0 {
- uint32_t flagword;
- uint32_t mask;
-};
-
-#endif /* _VX_SIGNAL_CMD_H */
+++ /dev/null
-#ifndef _VX_SPACE_CMD_H
-#define _VX_SPACE_CMD_H
-
-
-#define VCMD_enter_space_v0 VC_CMD(PROCALT, 1, 0)
-#define VCMD_enter_space VC_CMD(PROCALT, 1, 1)
-
-/* XXX: This is not available in recent kernels */
-#define VCMD_cleanup_namespace VC_CMD(PROCALT, 2, 0)
-
-#define VCMD_set_space_v0 VC_CMD(PROCALT, 3, 0)
-#define VCMD_set_space VC_CMD(PROCALT, 3, 1)
-
-#define VCMD_get_space_mask VC_CMD(PROCALT, 4, 0)
-
-
-struct vcmd_space_mask {
- uint64_t mask;
-};
-
-
-#endif /* _VX_SPACE_CMD_H */
+++ /dev/null
-#ifndef _VX_SWITCH_H
-#define _VX_SWITCH_H
-
-#include <linux/types.h>
-
-
-#define VC_CATEGORY(c) (((c) >> 24) & 0x3F)
-#define VC_COMMAND(c) (((c) >> 16) & 0xFF)
-#define VC_VERSION(c) ((c) & 0xFFF)
-
-#define VC_CMD(c, i, v) ((((VC_CAT_ ## c) & 0x3F) << 24) \
- | (((i) & 0xFF) << 16) | ((v) & 0xFFF))
-
-/*
-
- Syscall Matrix V2.8
-
- |VERSION|CREATE |MODIFY |MIGRATE|CONTROL|EXPERIM| |SPECIAL|SPECIAL|
- |STATS |DESTROY|ALTER |CHANGE |LIMIT |TEST | | | |
- |INFO |SETUP | |MOVE | | | | | |
- -------+-------+-------+-------+-------+-------+-------+ +-------+-------+
- SYSTEM |VERSION|VSETUP |VHOST | | | | |DEVICE | |
- HOST | 00| 01| 02| 03| 04| 05| | 06| 07|
- -------+-------+-------+-------+-------+-------+-------+ +-------+-------+
- CPU | |VPROC |PROCALT|PROCMIG|PROCTRL| | |SCHED. | |
- PROCESS| 08| 09| 10| 11| 12| 13| | 14| 15|
- -------+-------+-------+-------+-------+-------+-------+ +-------+-------+
- MEMORY | | | | | | | |SWAP | |
- | 16| 17| 18| 19| 20| 21| | 22| 23|
- -------+-------+-------+-------+-------+-------+-------+ +-------+-------+
- NETWORK| |VNET |NETALT |NETMIG |NETCTL | | |SERIAL | |
- | 24| 25| 26| 27| 28| 29| | 30| 31|
- -------+-------+-------+-------+-------+-------+-------+ +-------+-------+
- DISK | | | |TAGMIG |DLIMIT | | |INODE | |
- VFS | 32| 33| 34| 35| 36| 37| | 38| 39|
- -------+-------+-------+-------+-------+-------+-------+ +-------+-------+
- OTHER |VSTAT | | | | | | |VINFO | |
- | 40| 41| 42| 43| 44| 45| | 46| 47|
- =======+=======+=======+=======+=======+=======+=======+ +=======+=======+
- SPECIAL|EVENT | | | |FLAGS | | | | |
- | 48| 49| 50| 51| 52| 53| | 54| 55|
- -------+-------+-------+-------+-------+-------+-------+ +-------+-------+
- SPECIAL|DEBUG | | | |RLIMIT |SYSCALL| | |COMPAT |
- | 56| 57| 58| 59| 60|TEST 61| | 62| 63|
- -------+-------+-------+-------+-------+-------+-------+ +-------+-------+
-
-*/
-
-#define VC_CAT_VERSION 0
-
-#define VC_CAT_VSETUP 1
-#define VC_CAT_VHOST 2
-
-#define VC_CAT_DEVICE 6
-
-#define VC_CAT_VPROC 9
-#define VC_CAT_PROCALT 10
-#define VC_CAT_PROCMIG 11
-#define VC_CAT_PROCTRL 12
-
-#define VC_CAT_SCHED 14
-
-#define VC_CAT_VNET 25
-#define VC_CAT_NETALT 26
-#define VC_CAT_NETMIG 27
-#define VC_CAT_NETCTRL 28
-
-#define VC_CAT_TAGMIG 35
-#define VC_CAT_DLIMIT 36
-#define VC_CAT_INODE 38
-
-#define VC_CAT_VSTAT 40
-#define VC_CAT_VINFO 46
-#define VC_CAT_EVENT 48
-
-#define VC_CAT_FLAGS 52
-#define VC_CAT_DEBUG 56
-#define VC_CAT_RLIMIT 60
-
-#define VC_CAT_SYSTEST 61
-#define VC_CAT_COMPAT 63
-
-/* query version */
-
-#define VCMD_get_version VC_CMD(VERSION, 0, 0)
-#define VCMD_get_vci VC_CMD(VERSION, 1, 0)
-
-
-#define __user
-
-#endif /* _VX_SWITCH_H */
+++ /dev/null
-#ifndef _VX_TAG_CMD_H
-#define _VX_TAG_CMD_H
-
-
-/* vinfo commands */
-
-#define VCMD_task_tag VC_CMD(VINFO, 3, 0)
-
-
-/* context commands */
-
-#define VCMD_tag_migrate VC_CMD(TAGMIG, 1, 0)
-
-#endif /* _VX_TAG_CMD_H */
+++ /dev/null
-.deps
-.dirstamp
-.libs
-*.lo
-libvserver.la
-util-vserver.pc
+++ /dev/null
-## $Id: Makefile-files 2589 2007-08-16 03:06:50Z dhozac $ -*- makefile -*-
-
-## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-lib_VERSION = 0.0.0
-
-lib_compat_SRCS = lib/cflags-compat.c \
- lib/cflags_list-compat.c
-lib_legacy_SRCS = lib/getprocentry-legacy.c
-lib_management_SRCS = lib/comparevserverbyid.c \
- lib/createskeleton.c \
- lib/getvserverbyctx.c \
- lib/getvserverbyctx-compat.hc \
- lib/getvserverbyctx-v13.hc \
- lib/getvservercfgstyle.c \
- lib/getvserverappdir.c \
- lib/getvservercfgdir.c \
- lib/getvserverctx.c \
- lib/getvservername.c \
- lib/getvservervdir.c \
- lib/xidopt2xid.c \
- lib/nidopt2nid.c \
- lib/tagopt2tag.c
-lib_v11_SRCS = lib/syscall_rlimit.c \
- lib/syscall_rlimit-v11.hc \
- lib/syscall_kill.c \
- lib/syscall_kill-v11.hc
-lib_v13_SRCS = lib/syscall_ctxcreate.c \
- lib/syscall_ctxcreate-v13.hc \
- lib/syscall_ctxmigrate.c \
- lib/syscall_ctxmigrate-v13.hc \
- lib/syscall_cleanupnamespace-v13.hc \
- lib/syscall_cleanupnamespace.c \
- lib/syscall_enternamespace-v13.hc \
- lib/syscall_enternamespace.c \
- lib/syscall_getccaps-v13.hc \
- lib/syscall_getccaps.c \
- lib/syscall_getcflags-v13.hc \
- lib/syscall_getcflags.c \
- lib/syscall_getiattr-fscompat.hc \
- lib/syscall_getiattr-v13.hc \
- lib/syscall_getiattr.c \
- lib/syscall_getncaps-net.hc \
- lib/syscall_getncaps.c \
- lib/syscall_getnflags-net.hc \
- lib/syscall_getnflags.c \
- lib/syscall_getnxinfo-net.hc \
- lib/syscall_getnxinfo.c \
- lib/syscall_gettasknid-net.hc \
- lib/syscall_gettasknid.c \
- lib/syscall_gettaskxid-oldproc.hc \
- lib/syscall_gettaskxid-v13.hc \
- lib/syscall_gettaskxid.c \
- lib/syscall_getvhiname-olduts.hc \
- lib/syscall_getvhiname-v13.hc \
- lib/syscall_getvhiname.c \
- lib/syscall_getvxinfo-oldproc.hc \
- lib/syscall_getvxinfo-v13.hc \
- lib/syscall_getvxinfo.c \
- lib/syscall_netadd-net.hc \
- lib/syscall_netadd.c \
- lib/syscall_netcreate-net.hc \
- lib/syscall_netcreate.c \
- lib/syscall_netmigrate-net.hc \
- lib/syscall_netmigrate.c \
- lib/syscall_netremove-net.hc \
- lib/syscall_netremove.c \
- lib/syscall_setccaps-v13.hc \
- lib/syscall_setccaps.c \
- lib/syscall_setcflags-v13.hc \
- lib/syscall_setcflags.c \
- lib/syscall_setiattr-fscompat.hc \
- lib/syscall_setiattr-v13.hc \
- lib/syscall_setiattr.c \
- lib/syscall_setnamespace-v13.hc \
- lib/syscall_setnamespace.c \
- lib/syscall_setncaps-net.hc \
- lib/syscall_setncaps.c \
- lib/syscall_setnflags-net.hc \
- lib/syscall_setnflags.c \
- lib/syscall_setsched-v13.hc \
- lib/syscall_setsched-v13obs.hc \
- lib/syscall_setsched.c \
- lib/syscall_setvhiname-olduts.hc \
- lib/syscall_setvhiname-v13.hc \
- lib/syscall_setvhiname.c \
- lib/syscall_waitexit.c \
- lib/syscall_waitexit-v13.hc \
- lib/bcaps-v13.c \
- lib/bcaps_list-v13.c \
- lib/ccaps-v13.c \
- lib/ccaps_list-v13.c \
- lib/cflags-v13.c \
- lib/cflags_list-v13.c \
- lib/ncaps-net.c \
- lib/ncaps_list-net.c \
- lib/nflags-net.c \
- lib/nflags_list-net.c
-lib_v21_SRCS = lib/syscall_setccaps-v21.hc \
- lib/syscall_setsched-v21.hc \
- lib/syscall_rlimitstat.c \
- lib/syscall_rlimitstat-v21.hc \
- lib/syscall_resetminmax.c \
- lib/syscall_resetminmax-v21.hc \
- lib/syscall_getvci.c \
- lib/syscall_getvci-v21.hc \
- lib/syscall_virtstat.c \
- lib/syscall_virtstat-v21.hc \
- lib/syscall_ctxstat.c \
- lib/syscall_ctxstat-v21.hc \
- lib/syscall_getspacemask.c \
- lib/syscall_getspacemask-v21.hc \
- lib/syscall_enternamespace-v21.hc \
- lib/syscall_setnamespace-v21.hc \
- lib/syscall_ctxmigrate-v21.hc \
- lib/syscall_setmapping.c \
- lib/syscall_setmapping-v21.hc \
- lib/syscall_schedinfo.c \
- lib/syscall_schedinfo-v21.hc \
- lib/syscall_getccaps-v21.hc \
- lib/syscall_getsched.c \
- lib/syscall_getsched-v21.hc \
- lib/syscall_ctxcreate-v21.hc
-
-lib_v22_SRCS = lib/syscall_setsched-v22.hc \
- lib/syscall_fsetiattr.c \
- lib/syscall_fsetiattr-v22.hc \
- lib/syscall_fgetiattr.c \
- lib/syscall_fgetiattr-v22.hc
-
-lib_netv2_SRCS = lib/syscall_netadd-netv2.hc \
- lib/syscall_netremove-netv2.hc
-
-lib_v23_SRCS = lib/syscall_tagmigrate-v23.hc \
- lib/syscall_tagmigrate.c \
- lib/syscall_tagcreate.c \
- lib/syscall_tasktag-v23.hc \
- lib/syscall_tasktag.c
-
-if ENSC_HAVE_C99_COMPILER
-lib_v13_SRCS += lib/syscall_adddlimit-v13.hc \
- lib/syscall_adddlimit.c \
- lib/syscall_getdlimit-v13.hc \
- lib/syscall_getdlimit.c \
- lib/syscall_remdlimit-v13.hc \
- lib/syscall_remdlimit.c \
- lib/syscall_setdlimit-v13.hc \
- lib/syscall_setdlimit.c
-endif
-
-PKGCONFIG_FILES = lib/util-vserver
-
-lib_SRCS = lib/syscall.c \
- lib/checkversion.c \
- lib/checkconfig.c \
- lib/isdirectory.c \
- lib/isfile.c \
- lib/islink.c \
- lib/getnbipv4root.c \
- lib/getversion.c \
- lib/capabilities.c \
- lib/getfilecontext.c \
- lib/getinsecurebcaps.c \
- lib/getxidtype.c \
- lib/isdynamicxid.c \
- lib/issupported.c \
- lib/issupportedstring.c \
- lib/listparser_uint32.c \
- lib/listparser_uint64.c \
- lib/personalityflag.c \
- lib/personalityflag_list.c \
- lib/personalitytype.c \
- lib/syscall-syscall.c \
- lib/val2text-t2v-uint32.c \
- lib/val2text-t2v-uint64.c \
- lib/val2text-v2t-uint32.c \
- lib/val2text-v2t-uint64.c \
- lib/parselimit.c \
- lib/planetlab.c \
- $(lib_legacy_SRCS) \
- $(lib_compat_SRCS) \
- $(lib_management_SRCS) \
- $(lib_v11_SRCS) \
- $(lib_v13_SRCS) \
- $(lib_v21_SRCS) \
- $(lib_v22_SRCS) \
- $(lib_netv2_SRCS) \
- $(lib_v23_SRCS) \
- $(ensc_fmt_SRCS)
-
-include_HEADERS += lib/vserver.h
-
-noinst_HEADERS += lib/syscall-compat.hc \
- lib/syscall-legacy.hc \
- lib/syscall-fallback.h \
- lib/createskeleton-full.hc \
- lib/createskeleton-short.hc \
- lib/fmt.h \
- lib/getversion-internal.hc \
- lib/safechroot-internal.hc \
- lib/ioctl-getext2flags.hc \
- lib/ioctl-getfilecontext.hc \
- lib/ioctl-setext2flags.hc \
- lib/ioctl-setfilecontext.hc \
- lib/ioctl-getxflg.hc \
- lib/ioctl-setxflg.hc \
- lib/ext2fs.h \
- lib/listparser.hc \
- lib/val2text.hc \
- lib/virtual.h \
- lib/internal.h \
- lib/syscall-alternative.h \
- lib/syscall-wrap.h \
- lib/utils-legacy.h \
- lib/planetlab.h \
- lib/vserver-internal.h
-
-LIBVSERVER_GLIBC = lib/libvserver.la
-lib_LTLIBRARIES += $(LIBVSERVER_GLIBC)
-
-if USE_DIETLIBC
-LIBVSERVER_DIET = lib/libvserver.a
-LIBVSERVER = $(LIBVSERVER_DIET)
-lib_LIBRARIES += $(LIBVSERVER_DIET)
-else
-LIBVSERVER_DIET = lib-dietlibc-not-enabled-error.a
-LIBVSERVER = lib/libvserver.la
-endif
-
-lib_libvserver_la_SOURCES = $(lib_SRCS)
-lib_libvserver_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
-lib_libvserver_la_LDFLAGS = -version $(lib_VERSION)
-
-lib_libvserver_a_SOURCES = $(lib_SRCS)
-lib_libvserver_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
-
-DIETPROGS += lib/lib_libvserver_a-% \
- ensc_fmt/lib_libvserver_a-%
-
-CLEANFILES += lib/libvserver.la \
- lib/libvserver.a
-
-include $(srcdir)/lib/apidoc/Makefile-files
-include $(srcdir)/lib/testsuite/Makefile-files
+++ /dev/null
-# Doxyfile 1.3.6
-
-#---------------------------------------------------------------------------
-# Project related configuration options
-#---------------------------------------------------------------------------
-PROJECT_NAME = "@PACKAGE@ (libvserver)"
-PROJECT_NUMBER = @PACKAGE_VERSION@
-OUTPUT_DIRECTORY =
-OUTPUT_LANGUAGE = English
-USE_WINDOWS_ENCODING = NO
-BRIEF_MEMBER_DESC = YES
-REPEAT_BRIEF = YES
-ABBREVIATE_BRIEF =
-ALWAYS_DETAILED_SEC = NO
-INLINE_INHERITED_MEMB = NO
-FULL_PATH_NAMES = NO
-STRIP_FROM_PATH =
-SHORT_NAMES = NO
-JAVADOC_AUTOBRIEF = NO
-MULTILINE_CPP_IS_BRIEF = NO
-DETAILS_AT_TOP = NO
-INHERIT_DOCS = YES
-DISTRIBUTE_GROUP_DOC = NO
-TAB_SIZE = 8
-ALIASES =
-OPTIMIZE_OUTPUT_FOR_C = YES
-OPTIMIZE_OUTPUT_JAVA = NO
-SUBGROUPING = YES
-#---------------------------------------------------------------------------
-# Build related configuration options
-#---------------------------------------------------------------------------
-EXTRACT_ALL = NO
-EXTRACT_PRIVATE = YES
-EXTRACT_STATIC = NO
-EXTRACT_LOCAL_CLASSES = YES
-HIDE_UNDOC_MEMBERS = NO
-HIDE_UNDOC_CLASSES = NO
-HIDE_FRIEND_COMPOUNDS = NO
-HIDE_IN_BODY_DOCS = NO
-INTERNAL_DOCS = NO
-CASE_SENSE_NAMES = YES
-HIDE_SCOPE_NAMES = NO
-SHOW_INCLUDE_FILES = YES
-INLINE_INFO = YES
-SORT_MEMBER_DOCS = YES
-SORT_BRIEF_DOCS = NO
-SORT_BY_SCOPE_NAME = NO
-GENERATE_TODOLIST = YES
-GENERATE_TESTLIST = YES
-GENERATE_BUGLIST = YES
-GENERATE_DEPRECATEDLIST= YES
-ENABLED_SECTIONS =
-MAX_INITIALIZER_LINES = 30
-SHOW_USED_FILES = YES
-#---------------------------------------------------------------------------
-# configuration options related to warning and progress messages
-#---------------------------------------------------------------------------
-QUIET = NO
-WARNINGS = YES
-WARN_IF_UNDOCUMENTED = YES
-WARN_IF_DOC_ERROR = YES
-WARN_FORMAT = "$file:$line: $text"
-WARN_LOGFILE =
-#---------------------------------------------------------------------------
-# configuration options related to the input files
-#---------------------------------------------------------------------------
-INPUT = @top_srcdir@/lib
-FILE_PATTERNS = vserver.h \
- internal.h
-RECURSIVE = NO
-EXCLUDE =
-EXCLUDE_SYMLINKS = NO
-EXCLUDE_PATTERNS =
-EXAMPLE_PATH = @top_srcdir@/lib/apidoc
-EXAMPLE_PATTERNS =
-EXAMPLE_RECURSIVE = NO
-IMAGE_PATH =
-INPUT_FILTER =
-FILTER_SOURCE_FILES = NO
-#---------------------------------------------------------------------------
-# configuration options related to source browsing
-#---------------------------------------------------------------------------
-SOURCE_BROWSER = YES
-INLINE_SOURCES = NO
-STRIP_CODE_COMMENTS = YES
-REFERENCED_BY_RELATION = YES
-REFERENCES_RELATION = YES
-VERBATIM_HEADERS = YES
-#---------------------------------------------------------------------------
-# configuration options related to the alphabetical class index
-#---------------------------------------------------------------------------
-ALPHABETICAL_INDEX = NO
-COLS_IN_ALPHA_INDEX = 5
-IGNORE_PREFIX =
-#---------------------------------------------------------------------------
-# configuration options related to the HTML output
-#---------------------------------------------------------------------------
-GENERATE_HTML = YES
-HTML_OUTPUT = html
-HTML_FILE_EXTENSION = .html
-HTML_HEADER =
-HTML_FOOTER =
-HTML_STYLESHEET =
-HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = NO
-CHM_FILE =
-HHC_LOCATION =
-GENERATE_CHI = NO
-BINARY_TOC = NO
-TOC_EXPAND = NO
-DISABLE_INDEX = NO
-ENUM_VALUES_PER_LINE = 4
-GENERATE_TREEVIEW = NO
-TREEVIEW_WIDTH = 250
-#---------------------------------------------------------------------------
-# configuration options related to the LaTeX output
-#---------------------------------------------------------------------------
-GENERATE_LATEX = YES
-LATEX_OUTPUT = latex
-LATEX_CMD_NAME = latex
-MAKEINDEX_CMD_NAME = makeindex
-COMPACT_LATEX = YES
-PAPER_TYPE = a4wide
-EXTRA_PACKAGES =
-LATEX_HEADER =
-PDF_HYPERLINKS = YES
-USE_PDFLATEX = YES
-LATEX_BATCHMODE = YES
-LATEX_HIDE_INDICES = NO
-#---------------------------------------------------------------------------
-# configuration options related to the RTF output
-#---------------------------------------------------------------------------
-GENERATE_RTF = NO
-RTF_OUTPUT = rtf
-COMPACT_RTF = NO
-RTF_HYPERLINKS = NO
-RTF_STYLESHEET_FILE =
-RTF_EXTENSIONS_FILE =
-#---------------------------------------------------------------------------
-# configuration options related to the man page output
-#---------------------------------------------------------------------------
-GENERATE_MAN = YES
-MAN_OUTPUT = man
-MAN_EXTENSION = .3
-MAN_LINKS = YES
-#---------------------------------------------------------------------------
-# configuration options related to the XML output
-#---------------------------------------------------------------------------
-GENERATE_XML = NO
-XML_OUTPUT = xml
-XML_SCHEMA =
-XML_DTD =
-XML_PROGRAMLISTING = YES
-#---------------------------------------------------------------------------
-# configuration options for the AutoGen Definitions output
-#---------------------------------------------------------------------------
-GENERATE_AUTOGEN_DEF = NO
-#---------------------------------------------------------------------------
-# configuration options related to the Perl module output
-#---------------------------------------------------------------------------
-GENERATE_PERLMOD = NO
-PERLMOD_LATEX = NO
-PERLMOD_PRETTY = YES
-PERLMOD_MAKEVAR_PREFIX =
-#---------------------------------------------------------------------------
-# Configuration options related to the preprocessor
-#---------------------------------------------------------------------------
-ENABLE_PREPROCESSING = YES
-MACRO_EXPANSION = YES
-EXPAND_ONLY_PREDEF = NO
-SEARCH_INCLUDES = YES
-INCLUDE_PATH =
-INCLUDE_FILE_PATTERNS =
-PREDEFINED = VC_ATTR_UNUSED= \
- VC_ATTR_NONNULL(X)= \
- VC_ATTR_NORETURN= \
- VC_ATTR_ALWAYSINLINE= \
- VC_ATTR_PURE= \
- IS_DOXYGEN=1
-EXPAND_AS_DEFINED =
-SKIP_FUNCTION_MACROS = YES
-#---------------------------------------------------------------------------
-# Configuration::additions related to external references
-#---------------------------------------------------------------------------
-TAGFILES =
-GENERATE_TAGFILE =
-ALLEXTERNALS = NO
-EXTERNAL_GROUPS = YES
-PERL_PATH = /usr/bin/perl
-#---------------------------------------------------------------------------
-# Configuration options related to the dot tool
-#---------------------------------------------------------------------------
-CLASS_DIAGRAMS = YES
-HIDE_UNDOC_RELATIONS = YES
-HAVE_DOT = YES
-CLASS_GRAPH = YES
-COLLABORATION_GRAPH = YES
-UML_LOOK = YES
-TEMPLATE_RELATIONS = NO
-INCLUDE_GRAPH = YES
-INCLUDED_BY_GRAPH = YES
-CALL_GRAPH = YES
-GRAPHICAL_HIERARCHY = YES
-DOT_IMAGE_FORMAT = png
-DOT_PATH =
-DOTFILE_DIRS =
-MAX_DOT_GRAPH_WIDTH = 1024
-MAX_DOT_GRAPH_HEIGHT = 1024
-MAX_DOT_GRAPH_DEPTH = 0
-GENERATE_LEGEND = YES
-DOT_CLEANUP = YES
-DOT_TRANSPARENT = YES
-DOT_MULTI_TARGETS = YES
-#---------------------------------------------------------------------------
-# Configuration::additions related to the search engine
-#---------------------------------------------------------------------------
-SEARCHENGINE = NO
+++ /dev/null
-## $Id: Makefile-files 1528 2004-04-28 18:12:54Z ensc $ --*- makefile -*--
-
-## Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-CLEANFILES += lib/apidoc/.apidoc
-EXTRA_DIST += lib/apidoc/list2xxx.syntax
-
-doc: lib/apidoc/.apidoc
-clean-local: clean_lib_apidoc
-
-clean_lib_apidoc:
- -rm -rf lib/apidoc/html lib/apidoc/latex lib/apidoc/man
-
-lib/apidoc/.apidoc: lib/apidoc/Doxyfile lib/vserver.h lib/internal.h
- -rm -rf lib/apidoc/html lib/apidoc/latex lib/apidoc/man
- cd "$$(dirname '$<')" && $(DOXYGEN) "$$(basename '$<')"
- $(MAKE) -j1 -C lib/apidoc/latex
- touch '$@'
+++ /dev/null
-LIST <- ELEM | ELEM ',' LIST
-ELEM <- '~' ELEM | MASK | NAME
-MASK <- NUMBER | '^' NUMBER
-NUMBER <- 0[0-7]* | [1-9][0-9]* | 0x[0-9,a-f]+
-NAME <- <literal name> | "all" | "any" | "none"
+++ /dev/null
-// $Id: bcaps-v13.c 2148 2005-07-15 16:27:37Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <ensc@delenn.intern.sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include <lib_internal/util-dimof.h>
-#include <linux/capability.h>
-
-#include <string.h>
-#include <strings.h>
-#include <assert.h>
-
-#define DECL(VAL) { #VAL, sizeof(#VAL)-1, 1 << (CAP_ ## VAL) }
-
-#ifndef CAP_AUDIT_WRITE
-# define CAP_AUDIT_WRITE 29
-#endif
-
-#ifndef CAP_AUDIT_CONTROL
-# define CAP_AUDIT_CONTROL 30
-#endif
-
-static struct Mapping_uint64 const VALUES[] = {
- DECL(CHOWN),
- DECL(DAC_OVERRIDE),
- DECL(DAC_READ_SEARCH),
- DECL(FOWNER),
- DECL(FSETID),
- DECL(KILL),
- DECL(SETGID),
- DECL(SETUID),
- DECL(SETPCAP),
- DECL(LINUX_IMMUTABLE),
- DECL(NET_BIND_SERVICE),
- DECL(NET_BROADCAST),
- DECL(NET_ADMIN),
- DECL(NET_RAW),
- DECL(IPC_LOCK),
- DECL(IPC_OWNER),
- DECL(SYS_MODULE),
- DECL(SYS_RAWIO),
- DECL(SYS_CHROOT),
- DECL(SYS_PTRACE),
- DECL(SYS_PACCT),
- DECL(SYS_ADMIN),
- DECL(SYS_BOOT),
- DECL(SYS_NICE),
- DECL(SYS_RESOURCE),
- DECL(SYS_TIME),
- DECL(SYS_TTY_CONFIG),
- DECL(MKNOD),
- DECL(LEASE),
- DECL(AUDIT_WRITE),
- DECL(AUDIT_CONTROL),
-};
-
-inline static char const *
-removePrefix(char const *str, size_t *len)
-{
- if ((len==0 || *len==0 || *len>4) &&
- strncasecmp("cap_", str, 4)==0) {
- if (len && *len>4) *len -= 4;
- return str+4;
- }
- else
- return str;
-}
-
-uint_least64_t
-vc_text2bcap(char const *str, size_t len)
-{
- char const * tmp = removePrefix(str, &len);
- ssize_t idx = utilvserver_value2text_uint64(tmp, len,
- VALUES, DIM_OF(VALUES));
- if (idx==-1) return 0;
- else return VALUES[idx].val;
-}
-
-char const *
-vc_lobcap2text(uint_least64_t *val)
-{
- ssize_t idx = utilvserver_text2value_uint64(val,
- VALUES, DIM_OF(VALUES));
-
- if (idx==-1) return 0;
- else return VALUES[idx].id;
-}
+++ /dev/null
-// $Id: bcaps_list-v13.c 2038 2005-04-24 20:24:36Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-
-#include <string.h>
-
-static uint_least64_t
-vc_text2bcap_err(char const *str, size_t len, bool *failed)
-{
- uint_least64_t res = vc_text2bcap(str, len);
- if (res==0) *failed = true;
- return res;
-}
-
-int
-vc_list2bcap(char const *str, size_t len,
- struct vc_err_listparser *err,
- struct vc_ctx_caps *caps)
-{
- return utilvserver_listparser_uint64(str, len,
- err ? &err->ptr : 0,
- err ? &err->len : 0,
- &caps->bcaps, &caps->bmask,
- vc_text2bcap_err);
-}
+++ /dev/null
-// $Id: capabilities.c 2150 2005-07-15 16:32:05Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-
-#include "vserver.h"
-#include <string.h>
-
-#if 1
-# define DECLARECAP(X,Y) { #X, VC_##X }
-#else
-# define DECLARECAP(X,Y) { #X, Y }
-#endif
-
-static struct {
- char const * const id;
- unsigned char bit;
-} const CAP2BIT[] = {
- DECLARECAP(CAP_CHOWN, 0),
- DECLARECAP(CAP_DAC_OVERRIDE, 1),
- DECLARECAP(CAP_DAC_READ_SEARCH, 2),
- DECLARECAP(CAP_FOWNER, 3),
- DECLARECAP(CAP_FSETID, 4),
- DECLARECAP(CAP_KILL, 5),
- DECLARECAP(CAP_SETGID, 6),
- DECLARECAP(CAP_SETUID, 7),
- DECLARECAP(CAP_SETPCAP, 8),
- DECLARECAP(CAP_LINUX_IMMUTABLE, 9),
- DECLARECAP(CAP_NET_BIND_SERVICE, 10),
- DECLARECAP(CAP_NET_BROADCAST, 11),
- DECLARECAP(CAP_NET_ADMIN, 12),
- DECLARECAP(CAP_NET_RAW, 13),
- DECLARECAP(CAP_IPC_LOCK, 14),
- DECLARECAP(CAP_IPC_OWNER, 15),
- DECLARECAP(CAP_SYS_MODULE, 16),
- DECLARECAP(CAP_SYS_RAWIO, 17),
- DECLARECAP(CAP_SYS_CHROOT, 18),
- DECLARECAP(CAP_SYS_PTRACE, 19),
- DECLARECAP(CAP_SYS_PACCT, 20),
- DECLARECAP(CAP_SYS_ADMIN, 21),
- DECLARECAP(CAP_SYS_BOOT, 22),
- DECLARECAP(CAP_SYS_NICE, 23),
- DECLARECAP(CAP_SYS_RESOURCE, 24),
- DECLARECAP(CAP_SYS_TIME, 25),
- DECLARECAP(CAP_SYS_TTY_CONFIG, 26),
- DECLARECAP(CAP_MKNOD, 27),
- DECLARECAP(CAP_LEASE, 28),
- { "CAP_QUOTACTL", 29 },
-};
-
-int
-vc_text2cap(char const *str)
-{
- size_t i;
- if (strncmp(str, "CAP_", 4)==0) str += 4;
-
- for (i=0; i<sizeof(CAP2BIT)/sizeof(CAP2BIT[0]); ++i)
- if (strcmp(CAP2BIT[i].id+4, str)==0) return CAP2BIT[i].bit;
-
- return -1;
-}
-
-char const *
-vc_cap2text(unsigned int bit)
-{
- if ((size_t)bit>=sizeof(CAP2BIT)/sizeof(CAP2BIT[0])) return 0;
- return CAP2BIT[bit].id;
-}
+++ /dev/null
-// $Id: ccaps-v13.c 2393 2006-11-23 18:30:29Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <ensc@delenn.intern.sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include <lib_internal/util-dimof.h>
-
-#include <string.h>
-#include <strings.h>
-#include <assert.h>
-
-#define DECL(STR, VAL) { STR, sizeof(STR)-1, VAL }
-
-static struct Mapping_uint64 const VALUES[] = {
- DECL("set_utsname", VC_VXC_SET_UTSNAME),
- DECL("set_rlimit", VC_VXC_SET_RLIMIT),
- DECL("raw_icmp", VC_VXC_RAW_ICMP),
- DECL("syslog", VC_VXC_SYSLOG),
- DECL("secure_mount", VC_VXC_SECURE_MOUNT),
- DECL("secure_remount", VC_VXC_SECURE_REMOUNT),
- DECL("binary_mount", VC_VXC_BINARY_MOUNT),
- DECL("quota_ctl", VC_VXC_QUOTA_CTL),
- DECL("admin_mapper", VC_VXC_ADMIN_MAPPER),
- DECL("admin_cloop", VC_VXC_ADMIN_CLOOP),
- // some deprecated values...
- DECL("mount", VC_VXC_SECURE_MOUNT),
- DECL("remount", VC_VXC_SECURE_REMOUNT),
- DECL("icmp", VC_VXC_RAW_ICMP),
- DECL("ping", VC_VXC_RAW_ICMP),
- DECL("utsname", VC_VXC_SET_UTSNAME),
- DECL("rlimit", VC_VXC_SET_RLIMIT),
-};
-
-inline static char const *
-removePrefix(char const *str, size_t *len)
-{
- if ((len==0 || *len==0 || *len>4) &&
- strncasecmp("vxc_", str, 4)==0) {
- if (len && *len>4) *len -= 4;
- return str+4;
- }
- else
- return str;
-}
-
-uint_least64_t
-vc_text2ccap(char const *str, size_t len)
-{
- char const * tmp = removePrefix(str, &len);
- ssize_t idx = utilvserver_value2text_uint64(tmp, len,
- VALUES, DIM_OF(VALUES));
- if (idx==-1) return 0;
- else return VALUES[idx].val;
-}
-
-char const *
-vc_loccap2text(uint_least64_t *val)
-{
- ssize_t idx = utilvserver_text2value_uint64(val,
- VALUES, DIM_OF(VALUES));
-
- if (idx==-1) return 0;
- else return VALUES[idx].id;
-}
+++ /dev/null
-// $Id: ccaps_list-v13.c 2038 2005-04-24 20:24:36Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-
-#include <string.h>
-
-static uint_least64_t
-vc_text2ccap_err(char const *str, size_t len, bool *failed)
-{
- uint_least64_t res = vc_text2ccap(str, len);
- if (res==0) *failed = true;
- return res;
-}
-
-int
-vc_list2ccap(char const *str, size_t len,
- struct vc_err_listparser *err,
- struct vc_ctx_caps *caps)
-{
- return utilvserver_listparser_uint64(str, len,
- err ? &err->ptr : 0,
- err ? &err->len : 0,
- &caps->ccaps, &caps->cmask,
- vc_text2ccap_err);
-}
+++ /dev/null
-// $Id: cflags-compat.c 1449 2004-04-14 23:19:51Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <ensc@delenn.intern.sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include <string.h>
-#include <assert.h>
-
-#define DECL(STR, VAL) { STR, sizeof(STR)-1, VAL }
-
-static struct {
- char const * const id;
- size_t len;
- unsigned char val;
-} const FLAGVALUES[] = {
- DECL("lock", S_CTX_INFO_LOCK),
- DECL("sched", S_CTX_INFO_SCHED),
- DECL("nproc", S_CTX_INFO_NPROC),
- DECL("private", S_CTX_INFO_PRIVATE),
- DECL("fakeinit", S_CTX_INFO_INIT),
- DECL("hideinfo", S_CTX_INFO_HIDEINFO),
- DECL("ulimit", S_CTX_INFO_ULIMIT),
- DECL("namespace", S_CTX_INFO_NAMESPACE),
-};
-
-uint_least32_t
-vc_text2cflag_compat(char const *str, size_t len)
-{
- size_t i;
- if (len==0) len=strlen(str);
-
- for (i=0; i<sizeof(FLAGVALUES)/sizeof(FLAGVALUES[0]); ++i)
- if (len==FLAGVALUES[i].len &&
- strncmp(FLAGVALUES[i].id, str, len)==0)
- return FLAGVALUES[i].val;
-
- return 0;
-}
-
-char const *
-vc_hicflag2text_compat(uint_least32_t val)
-{
- size_t i;
- size_t idx;
-
- assert(S_CTX_INFO_ULIMIT==64);
-
- for (i=S_CTX_INFO_ULIMIT, idx=6; i>0; i/=2, --idx)
- if (val & i) return FLAGVALUES[idx].id;
-
- return 0;
-}
+++ /dev/null
-// $Id: cflags-v13.c 2533 2007-04-21 14:06:26Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <ensc@delenn.intern.sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include <lib_internal/util-dimof.h>
-
-#include <string.h>
-#include <strings.h>
-#include <assert.h>
-
-#define DECL(STR, VAL) { STR, sizeof(STR)-1, VAL }
-
-static struct Mapping_uint64 const VALUES[] = {
- DECL("lock", VC_VXF_INFO_LOCK),
- DECL("nproc", VC_VXF_INFO_NPROC),
- DECL("private", VC_VXF_INFO_PRIVATE),
- DECL("fakeinit", VC_VXF_INFO_INIT),
-
- DECL("hideinfo", VC_VXF_INFO_HIDEINFO),
- DECL("ulimit", VC_VXF_INFO_ULIMIT),
- DECL("namespace", VC_VXF_INFO_NAMESPACE),
-
- DECL("sched_hard", VC_VXF_SCHED_HARD),
- DECL("sched_prio", VC_VXF_SCHED_PRIO),
- DECL("sched_pause", VC_VXF_SCHED_PAUSE),
- DECL("sched_share", VC_VXF_SCHED_SHARE),
-
- DECL("virt_mem", VC_VXF_VIRT_MEM),
- DECL("virt_uptime", VC_VXF_VIRT_UPTIME),
- DECL("virt_cpu", VC_VXF_VIRT_CPU),
- DECL("virt_load", VC_VXF_VIRT_LOAD),
- DECL("virt_time", VC_VXF_VIRT_TIME),
-
- DECL("hide_mount", VC_VXF_HIDE_MOUNT),
- DECL("hide_netif", VC_VXF_HIDE_NETIF),
- DECL("hide_vinfo", VC_VXF_HIDE_VINFO),
-
- DECL("state_setup", VC_VXF_STATE_SETUP),
- DECL("state_init", VC_VXF_STATE_INIT),
- DECL("state_admin", VC_VXF_STATE_ADMIN),
-
- DECL("sc_helper", VC_VXF_SC_HELPER),
- DECL("persistent", VC_VXF_PERSISTENT),
- DECL("reboot_kill", VC_VXF_REBOOT_KILL),
-
- DECL("fork_rss", VC_VXF_FORK_RSS),
- DECL("prolific", VC_VXF_PROLIFIC),
- DECL("igneg_nice", VC_VXF_IGNEG_NICE),
-
- // Some pseudo flags
- DECL("secure", VC_VXF_HIDE_NETIF),
- DECL("default", VC_VXF_VIRT_UPTIME|VC_VXF_SC_HELPER),
-
- // Aliases for the legacy flags
- DECL("info_lock", VC_VXF_INFO_LOCK),
- DECL("info_nproc", VC_VXF_INFO_NPROC),
- DECL("info_private", VC_VXF_INFO_PRIVATE),
- DECL("info_init", VC_VXF_INFO_INIT),
-
- DECL("info_hideinfo", VC_VXF_INFO_HIDEINFO),
- DECL("info_ulimit", VC_VXF_INFO_ULIMIT),
- DECL("info_namespace", VC_VXF_INFO_NAMESPACE),
- // 2.6 name
- DECL("info_nspace", VC_VXF_INFO_NAMESPACE),
-};
-
-inline static char const *
-removePrefix(char const *str, size_t *len)
-{
- if ((len==0 || *len==0 || *len>4) &&
- strncasecmp("vxf_", str, 4)==0) {
- if (len && *len>4) *len -= 4;
- return str+4;
- }
- else
- return str;
-}
-
-uint_least64_t
-vc_text2cflag(char const *str, size_t len)
-{
- char const * tmp = removePrefix(str, &len);
- ssize_t idx = utilvserver_value2text_uint64(tmp, len,
- VALUES, DIM_OF(VALUES));
- if (idx==-1) return 0;
- else return VALUES[idx].val;
-}
-
-char const *
-vc_locflag2text(uint_least64_t *val)
-{
- ssize_t idx = utilvserver_text2value_uint64(val,
- VALUES, DIM_OF(VALUES));
-
- if (idx==-1) return 0;
- else return VALUES[idx].id;
-}
+++ /dev/null
-// $Id: cflags_list-compat.c 1449 2004-04-14 23:19:51Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include <string.h>
-
-uint_least32_t
-vc_list2cflag_compat(char const *str, size_t len,
- struct vc_err_listparser *err)
-{
- uint32_t res = 0;
-
- if (len==0) len = strlen(str);
-
- for (;len>0;) {
- char const *ptr = strchr(str, ',');
- size_t cnt = ptr ? (size_t)(ptr-str) : len;
- unsigned int tmp;
-
- if (cnt>=len) { cnt=len; len=0; }
- else len-=(cnt+1);
-
- tmp = vc_text2cflag_compat(str,cnt);
-
- if (tmp!=0) res |= tmp;
- else {
- if (err) {
- err->ptr = str;
- err->len = cnt;
- }
- return res;
- }
-
- if (ptr==0) break;
- str = ptr+1;
- }
-
- if (err) {
- err->ptr = 0;
- err->len = 0;
- }
- return res;
-}
+++ /dev/null
-// $Id: cflags_list-v13.c 2057 2005-04-28 17:53:01Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-
-
-static uint_least64_t
-vc_text2cflag_err(char const *str, size_t len, bool *failed)
-{
- uint_least64_t res = vc_text2cflag(str, len);
- if (res==0) *failed = true;
- return res;
-}
-
-int
-vc_list2cflag(char const *str, size_t len,
- struct vc_err_listparser *err,
- struct vc_ctx_flags *flags)
-{
- return utilvserver_listparser_uint64(str, len,
- err ? &err->ptr : 0,
- err ? &err->len : 0,
- &flags->flagword, &flags->mask,
- vc_text2cflag_err);
-}
+++ /dev/null
-// $Id: checkconfig.c 2464 2007-01-20 13:55:42Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-
-uint_least32_t
-utilvserver_checkCompatConfig()
-{
-#ifdef VC_ENABLE_API_V21
- static uint32_t res=0;
- static int v_errno;
-
- if (res==0) {
- res = vc_get_vci();
- v_errno = errno;
- if (res==(uint32_t)-1) res=0;
- }
-
- errno = v_errno;
- return res;
-#else
- return 0;
-#endif
-}
+++ /dev/null
-// $Id: checkversion.c 2246 2006-01-18 23:34:36Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "getversion-internal.hc"
-
-int
-utilvserver_checkCompatVersion()
-{
- static int res=0;
- static int v_errno;
-
- if (res==0) {
- res = vc_get_version_internal(VC_CAT_COMPAT);
- v_errno = errno;
-#ifdef VC_ENABLE_API_LEGACY
- if (res==-1 && (errno==ENOSYS || errno==EINVAL)) res=0;
-#endif
- }
-
- errno = v_errno;
- return res;
-}
+++ /dev/null
-// $Id: comparevserverbyid.c 2180 2005-10-25 16:17:12Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "pathconfig.h"
-
-#include <sys/stat.h>
-#include <string.h>
-
-static char const *
-completePath(char const *id, size_t len, vcCfgStyle style, char *buf)
-{
- switch (style) {
- case vcCFG_RECENT_FULL : return id;
- case vcCFG_RECENT_SHORT :
- memcpy(buf, CONFDIR "/", sizeof(CONFDIR "/")-1);
- memcpy(buf+sizeof(CONFDIR "/")-1, id, len+1); // appends '\0' implicitly
- return buf;
- default : return 0;
- }
-}
-
-int
-vc_compareVserverById(char const *lhs, vcCfgStyle lhs_style,
- char const *rhs, vcCfgStyle rhs_style)
-{
- if (lhs_style==vcCFG_NONE || lhs_style==vcCFG_AUTO)
- lhs_style = vc_getVserverCfgStyle(lhs);
-
- if (rhs_style==vcCFG_NONE || rhs_style==vcCFG_AUTO)
- rhs_style = vc_getVserverCfgStyle(rhs);
-
- // compare legacy vservers by their names only resp. return false on mixed
- // styles
- if (lhs_style==vcCFG_LEGACY || rhs_style==vcCFG_LEGACY) {
- if (lhs_style!=rhs_style) return lhs_style - rhs_style;
- else return strcmp(lhs, rhs);
- }
-
- {
- size_t len_lhs = strlen(lhs);
- size_t len_rhs = strlen(rhs);
- char buf_lhs[sizeof(CONFDIR "//") + len_lhs];
- char buf_rhs[sizeof(CONFDIR "//") + len_rhs];
-
- char const * path_lhs = completePath(lhs, len_lhs, lhs_style, buf_lhs);
- char const * path_rhs = (path_lhs==0
- ? 0 // skip following calculation
- : completePath(rhs, len_rhs, rhs_style, buf_rhs));
-
- struct stat st_lhs;
- struct stat st_rhs;
-
- // this is true only iff both path_* are 0; compare ids in this case
- if (path_lhs==path_rhs) return strcmp(lhs, rhs);
- if (path_lhs==0) return -1; // path_rhs!=0 is implied by check above
- if (path_rhs==0) return +1;
-
- if (stat(path_lhs, &st_lhs)==-1 ||
- stat(path_rhs, &st_rhs)==-1) return strcmp(lhs,rhs);
-
- return (st_lhs.st_dev - st_rhs.st_dev) + (st_lhs.st_ino - st_rhs.st_ino);
- }
-}
+++ /dev/null
-// $Id: createskeleton-full.hc 1837 2005-02-01 00:55:51Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-
-#define CONCAT_TWO_ARGS(BUF, LHS,RHS) \
- size_t BUF ## l1 = strlen(LHS); \
- size_t BUF ## l2 = strlen(RHS); \
- char BUF[BUF##l1 + BUF##l2 + 2]; \
- \
- memcpy(BUF, LHS, BUF##l1 + 1); \
- if (BUF##l2 > 0) { \
- BUF[ BUF##l1 ] = '/'; \
- memcpy(BUF+ BUF##l1 + 1, RHS, BUF##l2 + 1); \
- }
-
-static inline int
-mkdir2(char const *lhs, char const *rhs, int mode)
-{
- CONCAT_TWO_ARGS(buf, lhs, rhs);
- return mkdir(buf, mode);
-}
-
-static inline int
-setIAttr2(char const *lhs, char const *rhs, int flags)
-{
- CONCAT_TWO_ARGS(buf, lhs, rhs);
-
- return vc_set_iattr(buf, 0, flags, VC_IMMUTABLE_ALL);
-}
-
-static inline int
-symlink2(char const *old_lhs, char const *old_rhs,
- char const *new_lhs, char const *new_rhs)
-{
- CONCAT_TWO_ARGS(old_buf, old_lhs, old_rhs);
-
- {
- CONCAT_TWO_ARGS(new_buf, new_lhs, new_rhs);
- return symlink(old_buf, new_buf);
- }
-}
-
-#undef CONCAT_TWO_ARGS
-
-static inline int
-vc_createSkeleton_full(char const *id, char const *name, int flags)
-{
- if (mkdir(id, 0755)==-1) return -1;
-
- if (mkdir2(id, "apps", 0755)==-1 ||
- ((flags&vcSKEL_INTERFACES) && mkdir2(id, "interfaces", 755)==-1) ||
- ((flags&vcSKEL_PKGMGMT) && (
- mkdir2(id, "apps/pkgmgmt", 0755)==-1)))
- return -1;
-
- for (;;) {
- char const *basedir = CONFDIR "/.defaults/run";
-
- if (!utilvserver_isDirectory(basedir, true)) basedir = DEFAULT_PKGSTATEDIR;
- if (!utilvserver_isDirectory(basedir, true)) break;
-
- if (symlink2(basedir, name, id, "run")==-1)
- return -1;
-
- break;
- }
-
- while (flags&vcSKEL_PKGMGMT) {
- char const *basedir = CONFDIR "/.defaults/apps/pkgmgmt/base";
-
- if (!utilvserver_isDirectory(basedir, true)) basedir = DEFAULT_VSERVERPKGDIR;
- if (!utilvserver_isDirectory(basedir, true)) break;
-
- if (mkdir2(basedir, name, 0755)==-1 ||
- symlink2(basedir, name, id, "apps/pkgmgmt/base")==-1)
- return -1;
-
- break;
- }
-
- while (flags&vcSKEL_FILESYSTEM) {
- char const *basedir = CONFDIR "/.defaults/vdirbase";
-
- if (!utilvserver_isDirectory(basedir, true)) basedir = DEFAULT_VSERVERDIR;
- if (!utilvserver_isDirectory(basedir, true)) break;
-
- if (mkdir2(basedir, name, 0755)==-1 ||
- setIAttr2(basedir, name, 0)==-1 ||
- symlink2(basedir, name, id, "vdir")==-1)
- return -1;
-
- break;
- }
-
- return 0;
-}
+++ /dev/null
-// $Id: createskeleton-short.hc 934 2004-02-18 04:42:38Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#include <stdlib.h>
-#include <string.h>
-
-static inline int
-vc_createSkeleton_short(char const *id, int flags)
-{
- size_t l = strlen(id);
- char buf[sizeof(CONFDIR "/") + l];
-
- memcpy(buf, CONFDIR "/", sizeof(CONFDIR "/")-1);
- memcpy(buf+sizeof(CONFDIR "/")-1, id, l+1);
-
- return vc_createSkeleton_full(buf, id, flags);
-}
+++ /dev/null
-// $Id: createskeleton.c 934 2004-02-18 04:42:38Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-
-#include "pathconfig.h"
-
-#include "createskeleton-full.hc"
-#include "createskeleton-short.hc"
-
-#include <errno.h>
-
-int
-vc_createSkeleton(char const *id, vcCfgStyle style, int flags)
-{
- if (style==vcCFG_NONE || style==vcCFG_AUTO) {
- if (strchr(id, '/')!=0) style = vcCFG_RECENT_FULL;
- else style = vcCFG_RECENT_SHORT;
- }
-
- switch (style) {
- case vcCFG_RECENT_SHORT : return vc_createSkeleton_short(id, flags);
- case vcCFG_RECENT_FULL : return vc_createSkeleton_full(id, 0, flags);
- default : ;
- }
-
- errno = EINVAL;
- return -1;
-}
+++ /dev/null
-// $Id: ext2fs.h 720 2004-01-29 11:00:41Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_EXT2FS_H
-#define H_UTIL_VSERVER_SRC_EXT2FS_H
-
-#include <stdint.h>
-#include <linux/types.h>
-#ifdef ENSC_HAVE_EXT2FS_EXT2_FS_H
-# include <ext2fs/ext2_fs.h>
-#elif defined(ENSC_HAVE_LINUX_EXT2_FS_H)
-# include <linux/ext2_fs.h>
-#else
-# error Do not know how to include <ext2_fs.h>
-#endif
-
-#endif // H_UTIL_VSERVER_SRC_EXT2FS_H
+++ /dev/null
-// $Id: fmt.h 1583 2004-06-16 10:06:03Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_FMT_H
-#define H_UTIL_VSERVER_LIB_FMT_H
-
-#include "../ensc_fmt/fmt.h"
-
-#endif // H_UTIL_VSERVER_LIB_FMT_H
+++ /dev/null
-// $Id: getfilecontext.c 1766 2004-12-09 13:05:41Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include <errno.h>
-
-xid_t vc_getfilecontext(char const *filename)
-{
- xid_t res;
- uint32_t mask = VC_IATTR_XID;
-
- if (vc_get_iattr(filename, &res, 0,&mask)==-1)
- return VC_NOCTX;
- else if ((mask&VC_IATTR_XID) && res!=VC_NOCTX)
- return res;
-
- errno = 0;
- return VC_NOCTX;
-}
+++ /dev/null
-// $Id: getinsecurebcaps.c 2154 2005-07-15 18:59:55Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-uint_least64_t
-vc_get_insecurebcaps()
-{
- return ( (1<<VC_CAP_LINUX_IMMUTABLE) | (1<<VC_CAP_NET_BROADCAST) |
- (1<<VC_CAP_NET_BIND_SERVICE) |
- (1<<VC_CAP_NET_ADMIN) | (1<<VC_CAP_NET_RAW) |
- (1<<VC_CAP_IPC_LOCK) | (1<<VC_CAP_IPC_OWNER) |
- (1<<VC_CAP_SYS_MODULE) | (1<<VC_CAP_SYS_RAWIO) |
- (1<<VC_CAP_SYS_PACCT) | (1<<VC_CAP_SYS_ADMIN) |
- (1<<VC_CAP_SYS_NICE) |
- (1<<VC_CAP_SYS_RESOURCE) | (1<<VC_CAP_SYS_TIME) |
- (1<<VC_CAP_MKNOD) | (1<<VC_CAP_AUDIT_CONTROL)
- | ~(0x7fffffff)
-
-#if defined(VC_ENABLE_API_COMPAT)
- | (vc_isSupported(vcFEATURE_VSHELPER) ? 0 : (1<<VC_CAP_SYS_BOOT))
- | (vc_isSupported(vcFEATURE_MIGRATE) ? 0 : (1<<29)) // formerly QUOTACTL
-#endif
- );
-}
+++ /dev/null
-// $Id: getnbipv4root.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-size_t
-vc_get_nb_ipv4root()
-{
- return NB_IPV4ROOT;
-}
+++ /dev/null
-// $Id: getprocentry-legacy.c 1091 2004-03-05 04:40:59Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "utils-legacy.h"
-#include "internal.h"
-#include "vserver-internal.h"
-
-#include <string.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <unistd.h>
-
-static volatile size_t proc_bufsize = 4097;
-
-size_t
-utilvserver_getProcEntryBufsize()
-{
- return proc_bufsize;
-}
-
-char *
-utilvserver_getProcEntry(pid_t pid,
- char *str,
- char *buf, size_t bufsize)
-{
- char status_name[ sizeof("/proc//status") + sizeof(unsigned int)*3 + 1 ];
- int fd;
- size_t len;
- char * res = 0;
-
- if (pid<0 || (uint32_t)(pid)>99999) {
- errno = EBADR;
- return 0;
- }
-
- if (pid==0) strcpy(status_name, "/proc/self/status");
- else {
- strcpy(status_name, "/proc/");
- len = utilvserver_fmt_uint(status_name+sizeof("/proc/")-1, pid);
- strcpy(status_name+sizeof("/proc/")+len-1, "/status");
- }
-
- fd = open(status_name, O_RDONLY);
- if (fd==-1) return 0;
-
- len = read(fd, buf, bufsize);
- close(fd);
-
- if (len<bufsize) {
- buf[len] = '\0';
- if (str)
- res = strstr(buf, str) + strlen(str);
- else
- res = buf;
- }
- else if (len!=(size_t)-1) {
- if (proc_bufsize==bufsize)
- proc_bufsize = bufsize * 2 - 1;
-
- errno = EAGAIN;
- }
-
- return res;
-}
+++ /dev/null
-// $Id: getversion-internal.hc 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_GETVERSION_INTERNAL_H
-#define H_UTIL_VSERVER_LIB_GETVERSION_INTERNAL_H
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define _LINUX_TYPES_H 1
-#include "virtual.h"
-
-static inline ALWAYSINLINE UNUSED int
-vc_get_version_internal(int cat)
-{
- return vserver(VCMD_get_version, cat, 0);
-}
-
-#endif // H_UTIL_VSERVER_LIB_GETVERSION_INTERNAL_H
+++ /dev/null
-// $Id: getversion.c 720 2004-01-29 11:00:41Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver-internal.h"
-#include "getversion-internal.hc"
-
-int
-vc_get_version()
-{
- return vc_get_version_internal(VC_CAT_COMPAT);
-}
+++ /dev/null
-// $Id: getvserverappdir.c 611 2004-01-16 18:00:11Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include "pathconfig.h"
-
-#include <string.h>
-
-char *
-vc_getVserverAppDir(char const *id, vcCfgStyle style, char const *app)
-{
- size_t l1 = strlen(id);
- size_t l2 = strlen(app);
- char *res = 0;
-
- if (style==vcCFG_NONE || style==vcCFG_AUTO)
- style = vc_getVserverCfgStyle(id);
-
- switch (style) {
- case vcCFG_NONE : return 0;
- case vcCFG_LEGACY : return 0;
- case vcCFG_RECENT_FULL :
- case vcCFG_RECENT_SHORT :
- {
- char buf[sizeof(CONFDIR) + l1 + l2 + sizeof("//apps/") - 1];
- char * ptr = buf;
-
- if (style==vcCFG_RECENT_FULL)
- memcpy(ptr, id, l1);
- else {
- memcpy(ptr, CONFDIR "/", sizeof(CONFDIR "/")-1);
- ptr += sizeof(CONFDIR "/")-1;
- memcpy(ptr, id, l1);
- }
-
- ptr += l1;
- memcpy(ptr, "/apps/", 6); ptr += 6;
- memcpy(ptr, app, l2); ptr += l2;
- *ptr = '\0';
-
- res = strdup(buf);
- break;
- }
- default : return 0;
- }
-
- if (!utilvserver_isDirectory(res, true)) {
- free(res);
- res = 0;
- }
-
- return res;
-}
+++ /dev/null
-// $Id: getvserverbyctx-compat.hc 2596 2007-08-25 16:56:12Z dhozac $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include "pathconfig.h"
-#include "compat-c99.h"
-
-#include <string.h>
-#include <unistd.h>
-
-#ifdef VC_ENABLE_API_COMPAT
-#include <dirent.h>
-#include <sys/types.h>
-
-
-static char *
-handleLegacy(xid_t xid)
-{
- DIR *dir = opendir(DEFAULT_PKGSTATEDIR);
- struct dirent *ep;
- char * result = 0;
-
- if (dir==0) return 0;
- while ((ep=readdir(dir))!=0) {
- char * const name = ep->d_name;
- size_t l = name ? strlen(name) : 0;
- xid_t cur_xid;
-
- if (l<=4 || strcmp(name+l-4, ".ctx")!=0) continue;
- name[l-4] = '\0';
- cur_xid = vc_getVserverCtx(name, vcCFG_LEGACY, false, 0, vcCTX_XID);
- if (cur_xid!=xid) continue;
-
- result = strdup(name);
- break;
- }
-
- closedir(dir);
- return result;
-}
-#else
-static inline char *
-handleLegacy(xid_t UNUSED xid)
-{
- return 0;
-}
-#endif
-
-static char *
-vc_getVserverByCtx_compat(xid_t ctx, vcCfgStyle *style, char const *revdir,
- bool validate_result)
-{
- if (revdir==0) revdir = DEFAULT_PKGSTATEREVDIR;
-
- {
- vcCfgStyle cur_style = vcCFG_NONE;
- size_t l = strlen(revdir);
- size_t l1;
- char path[l + sizeof(unsigned int)*3 + 3];
-
- strcpy(path, revdir);
- path[l] = '/';
- l1 = utilvserver_fmt_uint(path+l+1, ctx);
- path[l+1+l1] = '\0';
-
- if (style==0 || *style==vcCFG_AUTO) {
- if (access(path, F_OK)==0) cur_style = vcCFG_RECENT_FULL;
- else cur_style = vcCFG_LEGACY;
- }
- else
- cur_style = *style;
-
- switch (cur_style) {
- case vcCFG_RECENT_SHORT :
- case vcCFG_RECENT_FULL :
- // check if expected ctx == actual ctx (but only when this check is
- // request)
- if (validate_result &&
- vc_getVserverCtx(path, vcCFG_RECENT_FULL, false, 0, vcCTX_XID)!=ctx) return 0;
-
- if (style) *style = vcCFG_RECENT_FULL;
- return strdup(path);
- // TODO: handle legacy
- case vcCFG_LEGACY :
- {
- char * tmp = handleLegacy(ctx);
- if (tmp && style)
- *style = vcCFG_LEGACY;
-
- return tmp;
- }
-
- default :
- return 0;
- }
- }
-}
+++ /dev/null
-// $Id: getvserverbyctx-v13.hc 2589 2007-08-16 03:06:50Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static char *
-vc_getVserverByCtx_v13(xid_t ctx, vcCfgStyle *style, char const UNUSED *revdir,
- bool validate_result)
-{
- char buf[128];
-
- if (vc_get_vhi_name(ctx, vcVHI_CONTEXT, buf, sizeof buf)!=-1 &&
- (!validate_result ||
- vc_getVserverCtx(buf, vcCFG_RECENT_FULL, false, 0, vcCTX_XID)==ctx)) {
- if (style) *style = vcCFG_RECENT_FULL;
- return strdup(buf);
- }
- else
- return 0;
-}
+++ /dev/null
-// $Id: getvserverbyctx.c 2444 2007-01-03 11:55:04Z dhozac $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include "pathconfig.h"
-#include "compat-c99.h"
-
-#include <string.h>
-#include <unistd.h>
-
-#include "getvserverbyctx-compat.hc"
-#include "getvserverbyctx-v13.hc"
-
-
-char *
-vc_getVserverByCtx_Internal(xid_t ctx, /*@null@*/vcCfgStyle *style,
- /*@null@*/char const *revdir,
- bool validate_result)
-{
- char *ret;
- if (vc_isSupported(vcFEATURE_MIGRATE)) {
- ret = vc_getVserverByCtx_v13(ctx, style, revdir, validate_result);
- if (ret)
- return ret;
- }
- return vc_getVserverByCtx_compat(ctx, style, revdir, validate_result);
-}
-
-char *
-vc_getVserverByCtx(xid_t ctx, vcCfgStyle *style, char const *revdir)
-{
- return vc_getVserverByCtx_Internal(ctx, style, revdir, true);
-
-}
+++ /dev/null
-// $Id: getvservercfgdir.c 611 2004-01-16 18:00:11Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include "pathconfig.h"
-
-#include <string.h>
-
-char *
-vc_getVserverCfgDir(char const *id, vcCfgStyle style)
-{
- size_t l1 = strlen(id);
- char *res = 0;
-
- if (style==vcCFG_NONE || style==vcCFG_AUTO)
- style = vc_getVserverCfgStyle(id);
-
- switch (style) {
- case vcCFG_NONE : return 0;
- case vcCFG_LEGACY : return 0;
- case vcCFG_RECENT_FULL : res = strdup(id); break;
- case vcCFG_RECENT_SHORT :
- {
- char buf[sizeof(CONFDIR) + l1 + sizeof("/") - 1];
-
- strcpy(buf, CONFDIR "/");
- strcpy(buf+sizeof(CONFDIR "/") - 1, id);
-
- res = strdup(buf);
- break;
- }
- default : return 0;
- }
-
- if (!utilvserver_isDirectory(res, true)) {
- free(res);
- res = 0;
- }
-
- return res;
-}
+++ /dev/null
-// $Id: getvservercfgstyle.c 1804 2005-01-26 23:29:06Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "pathconfig.h"
-#include "internal.h"
-
-#include <string.h>
-#include <sys/param.h>
-#include <unistd.h>
-#include <assert.h>
-
-static inline bool
-isRelPath(char const *p)
-{
- return p[0]=='.' && (p[1]=='/' || (p[1]=='.' && p[2]=='/'));
-}
-
-static inline bool
-isAbsPath(char const *p)
-{
- return p[0]=='/';
-}
-
-#define ISDIR utilvserver_isDirectory(buf, true)
-#define ISFILE utilvserver_isFile(buf, true)
-#define ISLINK utilvserver_isLink(buf)
-
-vcCfgStyle
-vc_getVserverCfgStyle(char const *id)
-{
- vcCfgStyle res = vcCFG_NONE;
- size_t l1 = strlen(id);
- char buf[l1 +
- MAX(sizeof(CONFDIR "/"),sizeof(DEFAULT_VSERVERDIR "/")) +
- MAX(sizeof("/legacy"), sizeof(".conf")) - 1];
- char * marker = 0;
- bool is_path;
-
- strcpy(buf, id);
- marker = buf+l1;
- strcpy(marker, "/vdir");
-
- is_path = isAbsPath(buf) || isRelPath(buf);
- if (is_path && (ISDIR || ISLINK))
- res = vcCFG_RECENT_FULL;
- else if (!is_path) {
- strcpy(buf, CONFDIR "/");
- strcpy(buf+sizeof(CONFDIR "/") - 1, id);
- marker = buf+sizeof(CONFDIR "/")+l1 - 1;
- strcpy(marker, "/vdir");
-
- if (ISDIR) res = vcCFG_RECENT_SHORT;
- else {
- strcpy(buf, DEFAULT_VSERVERDIR "/");
- strcpy(buf+sizeof(DEFAULT_VSERVERDIR)+1 - 1, id);
-
- if (ISDIR) res = vcCFG_LEGACY;
- }
-
- if (res==vcCFG_LEGACY) {
- strcpy(buf, CONFDIR "/");
- strcpy(buf+sizeof(CONFDIR "/") - 1, id);
- strcpy(buf+sizeof(CONFDIR "/")+l1 - 1, ".conf");
-
- if (!ISFILE) res = vcCFG_NONE;
- }
- }
-
-
- if (res==vcCFG_RECENT_FULL || res==vcCFG_RECENT_SHORT) {
- assert(marker!=0);
- strcpy(marker, "/legacy");
- if (access(buf, F_OK)==0) res=vcCFG_LEGACY;
- }
-
- return res;
-}
+++ /dev/null
-// $Id: getvserverctx.c 2596 2007-08-25 16:56:12Z dhozac $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "pathconfig.h"
-#include "compat-c99.h"
-#include "lib_internal/util.h"
-#include "internal.h"
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <string.h>
-#include <unistd.h>
-
-#ifdef VC_ENABLE_API_COMPAT
-#include <fcntl.h>
-
-static xid_t
-extractLegacyXID(char const *dir, char const *basename)
-{
- size_t l1 = strlen(dir);
- size_t l2 = strlen(basename);
- char path[l1 + l2 + sizeof("/.ctx")];
- char * ptr = path;
- int fd;
- ssize_t len;
- xid_t result = VC_NOXID;
-
- ptr = Xmemcpy(ptr, dir, l1);
- *ptr++ = '/';
- ptr = Xmemcpy(ptr, basename, l2);
- ptr = Xmemcpy(ptr, ".ctx", 5);
-
- fd = open(path, O_RDONLY);
- if (fd==-1) return VC_NOXID;
-
- len = lseek(fd, 0, SEEK_END);
-
- if (len!=-1 && lseek(fd, 0, SEEK_SET)!=-1) {
- char buf[len+2];
- char const *pos = 0;
-
- buf[0] = '\n';
-
- if (read(fd, buf+1, len+1)==len) {
- buf[len+1] = '\0';
- pos = strstr(buf, "\nS_CONTEXT=");
- }
-
- if (pos) pos += 11;
- if (*pos>='1' && *pos<='9')
- result = atoi(pos);
- }
-
- close(fd);
- return result;
-}
-#else
-static xid_t
-extractLegacyXID(char const UNUSED *dir, char const UNUSED *basename)
-{
- return VC_NOXID;
-}
-#endif
-
-
-static xid_t
-getCtxFromFile(char const *pathname)
-{
- int fd;
- off_t len;
-
- fd = open(pathname, O_RDONLY);
-
- if (fd==-1) return VC_NOCTX;
- if ((len=lseek(fd, 0, SEEK_END))==-1 ||
- (len>50) ||
- (lseek(fd, 0, SEEK_SET)==-1)) {
- close(fd);
- return VC_NOCTX;
- }
-
- {
- char buf[len+1];
- char *errptr;
- xid_t res;
-
- if (TEMP_FAILURE_RETRY(read(fd, buf, len+1))!=len) res = VC_NOCTX;
- else {
- buf[len] = '\0';
-
- res = strtol(buf, &errptr, 10);
- if (*errptr!='\0' && *errptr!='\n') res = VC_NOCTX;
- }
-
- close(fd);
- return res;
- }
-}
-
-xid_t
-vc_getVserverCtx(char const *id, vcCfgStyle style, bool honor_static, bool *is_running,
- vcCtxType type)
-{
- size_t l1 = strlen(id);
- char buf[sizeof(CONFDIR "//") + l1 + sizeof("/ncontext")];
-
- if (style==vcCFG_NONE || style==vcCFG_AUTO)
- style = vc_getVserverCfgStyle(id);
-
- if (is_running) *is_running = false;
-
- switch (style) {
- case vcCFG_NONE : return VC_NOCTX;
- case vcCFG_LEGACY :
- return extractLegacyXID(DEFAULT_PKGSTATEDIR, id);
- case vcCFG_RECENT_SHORT :
- case vcCFG_RECENT_FULL : {
- size_t idx = 0;
- xid_t res = 0;
-
- if (style==vcCFG_RECENT_SHORT) {
- memcpy(buf, CONFDIR "/", sizeof(CONFDIR "/")-1);
- idx = sizeof(CONFDIR "/") - 1;
- }
- memcpy(buf+idx, id, l1); idx += l1;
- memcpy(buf+idx, "/run", 5); // appends '\0' too
-
- res = getCtxFromFile(buf);
-
- // when context information could be read, we have to verify that
- // it belongs to a running vserver and the both vservers are
- // identically
- if (res!=VC_NOCTX && type == vcCTX_XID) {
- char *cur_name;
- struct vc_vx_info info;
-
- // determine the vserver which is associated with the xid resp. skip
- // this step when the context does not exist. When checking whether
- // the context exists, do not rely on the success of
- // vc_get_vx_info() alone but check 'errno' for ESRCH also. Else,
- // wrong results will be caused e.g. for xid 1 which will fail with
- // ENOSYS.
- cur_name = (vc_get_vx_info(res, &info)!=-1 || errno!=ESRCH ?
- vc_getVserverByCtx_Internal(res, &style, 0, false) :
- 0);
-
- buf[idx] = '\0'; // cut off the '/run' from the vserver name
-
- res = ((cur_name!=0 &&
- vc_compareVserverById(buf, vcCFG_RECENT_FULL,
- cur_name, vcCFG_RECENT_FULL)==0)
- ? res
- : VC_NOCTX); // correct the value of 'res'
-
- free(cur_name);
-
- if (is_running) // fill 'is_running' information...
- *is_running = res!=VC_NOCTX;
- }
- else if (is_running)
- *is_running = false;
-
- if (res==VC_NOCTX && honor_static) {
-check_static:
- switch (type) {
- case vcCTX_XID:
- memcpy(buf+idx, "/context", 9); // appends '\0' too
- break;
- case vcCTX_NID:
- memcpy(buf+idx, "/ncontext", 10);
- break;
- case vcCTX_TAG:
- memcpy(buf+idx, "/tag", 5);
- break;
- }
-
- res = getCtxFromFile(buf);
- if (res==VC_NOCTX && type!=vcCTX_XID) {
- type = vcCTX_XID;
- goto check_static;
- }
- }
-
- return res;
- }
- default : return VC_NOCTX;
- }
-}
+++ /dev/null
-// $Id: getvservername.c 1543 2004-05-08 01:27:25Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "pathconfig.h"
-
-#include <string.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <libgen.h>
-#include <unistd.h>
-#include <limits.h>
-
-static char *
-getRecentName(char *start, char *end)
-{
- char *res = 0;
- int fd;
- char buf[PATH_MAX];
-
- strcpy(end, "/name");
- fd = open(start, O_RDONLY);
- if (fd!=-1) {
- off_t len;
-
- if ((len=lseek(fd, 0, SEEK_END))!=-1 &&
- (len<VC_LIMIT_VSERVER_NAME_LEN) &&
- (lseek(fd, 0, SEEK_SET)!=-1)) {
- char buf[len+1];
-
- if (TEMP_FAILURE_RETRY(read(fd, buf, len+1))==len) {
- while (len>0 && buf[len-1]=='\n') --len;
- buf[len] = '\0';
- if (len>0) res = buf;
- }
-
- close(fd);
- return strdup(res);
- }
-
- close(fd);
- }
-
- if (res==0) {
- *end = '\0';
- res = realpath(start, buf);
- //printf("start='%s', res='%s'\n", start,res);
- if (res==0) res = start;
-
- res = basename(res);
- }
-
- return strdup(res);
-}
-
-char *
-vc_getVserverName(char const *id, vcCfgStyle style)
-{
- size_t l1 = strlen(id);
-
- if (style==vcCFG_NONE || style==vcCFG_AUTO)
- style = vc_getVserverCfgStyle(id);
-
- switch (style) {
- case vcCFG_NONE : return 0;
- case vcCFG_LEGACY : return strdup(id);
- case vcCFG_RECENT_SHORT :
- {
- char buf[sizeof(CONFDIR "/") + l1 + sizeof("/name") - 1];
-
- strcpy(buf, CONFDIR "/");
- strcpy(buf+sizeof(CONFDIR "/") - 1, id);
-
- return getRecentName(buf, buf+sizeof(CONFDIR "/")+l1 - 1);
- }
- case vcCFG_RECENT_FULL :
- {
- char buf[l1 + sizeof("/name")];
- strcpy(buf, id);
-
- return getRecentName(buf, buf+l1);
- }
- default : return 0;
- }
-}
+++ /dev/null
-// $Id: getvservervdir.c 1954 2005-03-22 14:59:46Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include "pathconfig.h"
-
-#include <string.h>
-#include <unistd.h>
-#include <sys/param.h>
-#include <fcntl.h>
-
-static char *
-getDir(char *dir, bool physical)
-{
- int fd;
- char tmp[PATH_MAX];
-
- if (!physical) return strdup(dir);
-
- fd = open(".", O_RDONLY);
- if (fd==-1) return 0;
-
- if (chdir(dir)!=-1 &&
- getcwd(tmp, sizeof tmp)!=0)
- dir = strdup(tmp);
- else
- dir = 0;
-
- if (fchdir(fd)==-1) {
- if (write(2, "FATAL error: failed to restore directory\n", 41)!=41) { /*...*/ }
- abort();
- }
- close(fd);
- return dir;
-}
-
-char *
-vc_getVserverVdir(char const *id, vcCfgStyle style, bool physical)
-{
- size_t l1 = strlen(id);
- char *res = 0;
-
- if (style==vcCFG_NONE || style==vcCFG_AUTO)
- style = vc_getVserverCfgStyle(id);
-
- switch (style) {
- case vcCFG_NONE : return 0;
- case vcCFG_LEGACY :
- {
- char buf[sizeof(DEFAULT_VSERVERDIR "/") + l1];
-
- strcpy(buf, DEFAULT_VSERVERDIR "/");
- strcpy(buf+sizeof(DEFAULT_VSERVERDIR "/") - 1, id);
-
- res = getDir(buf, physical);
- break;
- }
-
- case vcCFG_RECENT_SHORT :
- {
- char buf[sizeof(CONFDIR) + l1 + sizeof("//vdir") - 1];
-
- strcpy(buf, CONFDIR "/");
- strcpy(buf+sizeof(CONFDIR "/") - 1, id);
- strcpy(buf+sizeof(CONFDIR "/")+l1 - 1, "/vdir");
-
- res = getDir(buf, physical);
- break;
- }
-
- case vcCFG_RECENT_FULL :
- {
- char buf[l1 + sizeof("/vdir")];
-
- strcpy(buf, id);
- strcpy(buf+l1, "/vdir");
-
- res = getDir(buf, physical);
- break;
- }
-
- default : return 0;
- }
-
- // ignore physical-case; we went into the directory while determining
- // the physical path so the directory exists
- if (!physical && !utilvserver_isDirectory(res, true)) {
- free(res);
- res = 0;
- }
-
- return res;
-}
+++ /dev/null
-// $Id: getxidtype.c 2493 2007-02-10 15:06:07Z dhozac $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-
-vcXidType
-vc_getXIDType(xid_t xid)
-{
- static xid_t MIN_D_CONTEXT = 0;
- const xid_t MAX_S_CONTEXT = 65535;
- if (MIN_D_CONTEXT == 0 && (utilvserver_checkCompatConfig() & VC_VCI_NO_DYNAMIC) == 0)
- MIN_D_CONTEXT = 49152;
- else
- MIN_D_CONTEXT = MAX_S_CONTEXT+1;
-
- if (xid==0) return vcTYPE_MAIN;
- if (xid==1) return vcTYPE_WATCH;
- if (xid>1 && xid<MIN_D_CONTEXT) return vcTYPE_STATIC;
- if (xid>=MIN_D_CONTEXT && xid<MAX_S_CONTEXT) return vcTYPE_DYNAMIC;
- return vcTYPE_INVALID;
-}
+++ /dev/null
-// $Id: internal.h 2415 2006-12-08 13:24:49Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/** \file internal.h
- * \brief Declarations which are used by util-vserver internally.
- */
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_H
-
-#include "fmt.h"
-#include "vserver.h"
-
-#include <stdlib.h>
-#include <stdbool.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-char * vc_getVserverByCtx_Internal(xid_t ctx, /*@null@*/vcCfgStyle *style,
- /*@null@*/char const *revdir,
- bool validate_result);
-
-
-int utilvserver_checkCompatVersion();
-uint_least32_t utilvserver_checkCompatConfig();
-bool utilvserver_isDirectory(char const *path, bool follow_link);
-bool utilvserver_isFile(char const *path, bool follow_link);
-bool utilvserver_isLink(char const *path);
-
-int utilvserver_listparser_uint32(char const *str, size_t len,
- char const **err_ptr, size_t *err_len,
- uint_least32_t *flag,
- uint_least32_t *mask,
- uint_least32_t (*func)(char const*,
- size_t, bool *
- )) NONNULL((1,5,7));
-
-int utilvserver_listparser_uint64(char const *str, size_t len,
- char const **err_ptr, size_t *err_len,
- uint_least64_t *flag,
- uint_least64_t *mask,
- uint_least64_t (*func)(char const*,
- size_t, bool *
- )) NONNULL((1,5,7));
-
-struct Mapping_uint32 {
- char const * const id;
- size_t len;
- uint_least32_t val;
-};
-
-struct Mapping_uint64 {
- char const * const id;
- size_t len;
- uint_least64_t val;
-};
-
-ssize_t utilvserver_value2text_uint32(char const *str, size_t len,
- struct Mapping_uint32 const *map,
- size_t map_len) NONNULL((1,3));
-
-ssize_t utilvserver_value2text_uint64(char const *str, size_t len,
- struct Mapping_uint64 const *map,
- size_t map_len) NONNULL((1,3));
-
-ssize_t utilvserver_text2value_uint32(uint_least32_t *val,
- struct Mapping_uint32 const *map,
- size_t map_len) NONNULL((1,2));
-
-ssize_t utilvserver_text2value_uint64(uint_least64_t *val,
- struct Mapping_uint64 const *map,
- size_t map_len) NONNULL((1,2));
-#ifdef __cplusplus
-}
-#endif
-
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_H
+++ /dev/null
-// $Id: ioctl-getext2flags.hc 702 2004-01-23 20:47:32Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "ext2fs.h"
-
-#include <sys/ioctl.h>
-
-#ifndef EXT2_IMMUTABLE_FILE_FL
-# define EXT2_IMMUTABLE_FILE_FL 0x00000010
-#endif
-
-#ifndef EXT2_IMMUTABLE_LINK_FL
-# define EXT2_IMMUTABLE_LINK_FL 0x08008000
-#endif
-
-static inline ALWAYSINLINE int
-vc_X_get_ext2flags(int fd, long *flags)
-{
- int rc;
-
- *flags = 0;
- rc = ioctl(fd, EXT2_IOC_GETFLAGS, flags);
- *flags = EXT2FLAGS_KERNEL2USER(*flags);
-
- ENSC_FIX_IOCTL(rc);
-
- return rc;
-}
+++ /dev/null
-// $Id: ioctl-getfilecontext.hc 702 2004-01-23 20:47:32Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "ext2fs.h"
-
-#include <sys/ioctl.h>
-
-static inline ALWAYSINLINE xid_t
-vc_X_get_filecontext(int fd)
-{
- int c;
- int rc = ioctl(fd, EXT2_IOC_GETCONTEXT, &c);
-
- ENSC_FIX_IOCTL(rc);
-
- if (rc==-1) return VC_NOCTX;
- else return c;
-}
+++ /dev/null
-// $Id: ioctl-getxflg.hc 685 2004-01-22 13:36:30Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "ext2fs.h"
-
-#include <sys/ioctl.h>
-
-#define FIOC_GETXFLG _IOR('x', 5, long)
-
-static inline ALWAYSINLINE int
-vc_X_get_xflg(int fd, long *flags)
-{
- int rc;
- *flags = 0;
- rc = ioctl(fd, FIOC_GETXFLG, flags);
-
- if (rc<-1) {
- errno = -rc;
- rc = -1;
- }
-
- return rc;
-}
+++ /dev/null
-// $Id: ioctl-setext2flags.hc 702 2004-01-23 20:47:32Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "ext2fs.h"
-
-#include <sys/ioctl.h>
-
-#ifndef EXT2_IMMUTABLE_FILE_FL
-# define EXT2_IMMUTABLE_FILE_FL 0x00000010
-#endif
-
-#ifndef EXT2_IMMUTABLE_LINK_FL
-# define EXT2_IMMUTABLE_LINK_FL 0x08008000
-#endif
-
-static inline ALWAYSINLINE int
-vc_X_set_ext2flags(int fd, long set_flags, long del_flags)
-{
- long old_flags = 0;
- int rc;
-
- set_flags = EXT2FLAGS_USER2KERNEL(set_flags);
- del_flags = EXT2FLAGS_USER2KERNEL(del_flags);
-
- if (del_flags!=-1) {
- if (ioctl(fd, EXT2_IOC_GETFLAGS, &old_flags)==-1) return -1;
- old_flags &= ~del_flags;
- }
-
- old_flags |= set_flags;
- rc = ioctl(fd, EXT2_IOC_SETFLAGS, &old_flags);
-
- ENSC_FIX_IOCTL(rc);
-
- return rc;
-}
+++ /dev/null
-// $Id: ioctl-setfilecontext.hc 702 2004-01-23 20:47:32Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "ext2fs.h"
-
-#include <sys/ioctl.h>
-
-static inline ALWAYSINLINE int
-vc_X_set_filecontext(int fd, xid_t ctx)
-{
- int c = ctx;
- int rc = ioctl(fd, EXT2_IOC_SETCONTEXT, &c);
-
- ENSC_FIX_IOCTL(rc);
-
- return rc;
-}
+++ /dev/null
-// $Id: ioctl-setxflg.hc 702 2004-01-23 20:47:32Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "ext2fs.h"
-
-#include <sys/ioctl.h>
-
-#define FIOC_SETXFLG _IOW('x', 6, long)
-
-static inline ALWAYSINLINE int
-vc_X_set_xflg(int fd, long flags)
-{
- int rc;
- rc = ioctl(fd, FIOC_SETXFLG, &flags);
-
- ENSC_FIX_IOCTL(rc);
-
- return rc;
-}
+++ /dev/null
-// $Id: isdirectory.c 611 2004-01-16 18:00:11Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "internal.h"
-
-#include <stdbool.h>
-#include <unistd.h>
-#include <sys/stat.h>
-
-bool
-utilvserver_isDirectory(char const *path, bool follow_link)
-{
- struct stat st;
- if ( ( follow_link && stat(path, &st)==-1) ||
- (!follow_link && lstat(path, &st)==-1) ) return false;
-
- return S_ISDIR(st.st_mode);
-}
+++ /dev/null
-// $Id: isdynamicxid.c 2415 2006-12-08 13:24:49Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-bool
-vc_is_dynamic_xid(xid_t xid)
-{
- return vc_getXIDType(xid) == vcTYPE_DYNAMIC;
-}
+++ /dev/null
-// $Id: isfile.c 1654 2004-08-19 13:56:47Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "internal.h"
-
-#include <stdbool.h>
-#include <unistd.h>
-#include <sys/stat.h>
-
-bool
-utilvserver_isFile(char const *path, bool follow_link)
-{
- struct stat st;
- if ( ( follow_link && stat(path, &st)==-1) ||
- (!follow_link && lstat(path, &st)==-1) ) return false;
-
- return S_ISREG(st.st_mode);
-}
+++ /dev/null
-// $Id: islink.c 1759 2004-10-21 19:01:26Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "internal.h"
-
-#include <stdbool.h>
-#include <unistd.h>
-#include <sys/stat.h>
-
-bool
-utilvserver_isLink(char const *path)
-{
- struct stat st;
- if (lstat(path, &st)==-1) return false;
-
- return S_ISLNK(st.st_mode);
-}
+++ /dev/null
-// $Id: issupported.c 2589 2007-08-16 03:06:50Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "assert.h"
-
-bool
-vc_isSupported(vcFeatureSet feature)
-{
- int ver = vc_get_version();
- vc_vci_t conf = vc_get_vci();
- if (ver==-1) return false;
- if (conf==(vc_vci_t)-1) conf = 0;
-
- switch (feature) {
- case vcFEATURE_COMPAT : return true;
- case vcFEATURE_VSHELPER0 : return ver >= 0x00010000 && ver < 0x00010010;
- case vcFEATURE_VSHELPER : return ver >= 0x00010000;
- case vcFEATURE_VKILL : return ver >= 0x00010004;
- case vcFEATURE_RLIMIT : return ver >= 0x00010004;
- case vcFEATURE_VINFO : return ver >= 0x00010010;
- case vcFEATURE_VHI : return ver >= 0x00010010;
- case vcFEATURE_IATTR : return ver >= 0x00010011;
- case vcFEATURE_MIGRATE : return ver >= 0x00010012;
- case vcFEATURE_NAMESPACE : return ver >= 0x00010012;
- case vcFEATURE_VWAIT : return ver >= 0x00010025;
- case vcFEATURE_SCHED : return ver >= 0x00020000; // todo
- case vcFEATURE_VNET : return ver >= 0x00020001;
- case vcFEATURE_VSTAT : return ver >= 0x00020103;
- case vcFEATURE_PPTAG : return conf & VC_VCI_PPTAG;
- default : assert(false);
- }
-
- return false;
-}
+++ /dev/null
-// $Id: issupportedstring.c 2589 2007-08-16 03:06:50Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "lib_internal/util-dimof.h"
-#include <strings.h>
-
-#define DECL(F) \
- { vcFEATURE_ ## F, #F }
-
-static struct {
- vcFeatureSet feature;
- char const * name;
-} FEATURES[] = {
- DECL(VKILL), DECL(IATTR), DECL(RLIMIT), DECL(COMPAT),
- DECL(MIGRATE), DECL(NAMESPACE), DECL(SCHED), DECL(VINFO),
- DECL(VHI), DECL(VSHELPER0), DECL(VSHELPER), DECL(VWAIT),
- DECL(VNET), DECL(VSTAT), DECL(PPTAG),
-};
-
-bool
-vc_isSupportedString(char const *str)
-{
- size_t i;
- for (i=0; i<DIM_OF(FEATURES); ++i) {
- if (strcasecmp(FEATURES[i].name, str)==0)
- return vc_isSupported(FEATURES[i].feature);
- }
-
- return false;
-}
+++ /dev/null
-// $Id: listparser.hc 2037 2005-04-24 20:23:11Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <strings.h>
-
-#define TONUMBER_uint64(S,E,B) strtoll(S,E,B)
-#define TONUMBER_uint32(S,E,B) strtol (S,E,B)
-
-#define ISNUMBER(TYPE,SHORT) \
- static inline ALWAYSINLINE bool \
- isNumber_##SHORT(char const **str,size_t *len,TYPE *res,char end_chr) \
- { \
- char *err_ptr; \
- if (**str=='^') { \
- *res = ((TYPE)(1)) << TONUMBER_##SHORT(++*str, &err_ptr, 0); \
- if (len) --*len; \
- } \
- else \
- *res = TONUMBER_##SHORT(*str, &err_ptr, 0); \
- return err_ptr>*str && *err_ptr==end_chr; \
- }
-
-
-#define LISTPARSER(TYPE,SHORT) \
- ISNUMBER(TYPE,SHORT) \
- int \
- utilvserver_listparser_ ## SHORT(char const *str, size_t len, \
- char const **err_ptr, \
- size_t *err_len, \
- TYPE * const flag, \
- TYPE * const mask, \
- TYPE (*func)(char const *, \
- size_t, bool *)) \
- { \
- if (len==0) len = strlen(str); \
- for (;len>0;) { \
- char const *ptr = strchr(str, ','); \
- size_t cnt; \
- TYPE tmp = 0; \
- bool is_neg = false; \
- bool failed = false; \
- \
- while (mask!=0 && len>0 && (*str=='!' || *str=='~')) { \
- is_neg = !is_neg; \
- ++str; \
- --len; \
- } \
- \
- cnt = ptr ? (size_t)(ptr-str) : len; \
- if (cnt>=len) { cnt=len; len=0; } \
- else len-=(cnt+1); \
- \
- if (cnt==0) \
- failed = true; \
- else if (mask!=0 && \
- (strncasecmp(str,"all",cnt)==0 || \
- strncasecmp(str,"any",cnt)==0)) \
- tmp = ~(TYPE)(0); \
- else if (mask!=0 && strncasecmp(str,"none",cnt)==0) {} \
- else if (!isNumber_##SHORT(&str, &cnt, &tmp, str[cnt])) \
- tmp = (*func)(str,cnt, &failed); \
- \
- if (!failed) { \
- if (!is_neg) *flag |= tmp; \
- else *flag &= ~tmp; \
- if (mask!=0) *mask |= tmp; \
- } \
- else { \
- if (err_ptr) *err_ptr = str; \
- if (err_len) *err_len = cnt; \
- return -1; \
- } \
- \
- if (ptr==0) break; \
- str = ptr+1; \
- } \
- \
- if (err_ptr) *err_ptr = 0; \
- if (err_len) *err_len = 0; \
- return 0; \
- }
+++ /dev/null
-// $Id: listparser_uint32.c 1067 2004-03-05 03:12:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "internal.h"
-#include "listparser.hc"
-
-LISTPARSER(uint_least32_t, uint32)
+++ /dev/null
-// $Id: listparser_uint64.c 1067 2004-03-05 03:12:18Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "internal.h"
-#include "listparser.hc"
-
-LISTPARSER(uint_least64_t, uint64)
+++ /dev/null
-// $Id: ncaps-net.c 2585 2007-08-12 00:13:31Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <ensc@delenn.intern.sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include <lib_internal/util-dimof.h>
-
-#include <string.h>
-#include <strings.h>
-#include <assert.h>
-
-#define DECL(STR, VAL) { STR, sizeof(STR)-1, VAL }
-
-static struct Mapping_uint64 const VALUES[] = {
- DECL("raw_icmp", VC_NXC_RAW_ICMP),
-};
-
-inline static char const *
-removePrefix(char const *str, size_t *len)
-{
- if ((len==0 || *len==0 || *len>4) &&
- strncasecmp("nxc_", str, 4)==0) {
- if (len && *len>4) *len -= 4;
- return str+4;
- }
- else
- return str;
-}
-
-uint_least64_t
-vc_text2ncap(char const *str, size_t len)
-{
- char const * tmp = removePrefix(str, &len);
- ssize_t idx = utilvserver_value2text_uint64(tmp, len,
- VALUES, DIM_OF(VALUES));
- if (idx==-1) return 0;
- else return VALUES[idx].val;
-}
-
-char const *
-vc_loncap2text(uint_least64_t *val)
-{
- ssize_t idx = utilvserver_text2value_uint64(val,
- VALUES, DIM_OF(VALUES));
-
- if (idx==-1) return 0;
- else return VALUES[idx].id;
-}
+++ /dev/null
-// $Id: ncaps_list-net.c 2038 2005-04-24 20:24:36Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-
-#include <string.h>
-
-static uint_least64_t
-vc_text2ncap_err(char const *str, size_t len, bool *failed)
-{
- uint_least64_t res = vc_text2ncap(str, len);
-
- if (res==0) *failed = true;
- return res;
-}
-
-int
-vc_list2ncap(char const *str, size_t len,
- struct vc_err_listparser *err,
- struct vc_net_caps *caps)
-{
- return utilvserver_listparser_uint64(str, len,
- err ? &err->ptr : 0,
- err ? &err->len : 0,
- &caps->ncaps, &caps->cmask,
- vc_text2ncap_err);
-}
+++ /dev/null
-// $Id: nflags-net.c 2597 2007-08-26 17:48:26Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <ensc@delenn.intern.sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include <lib_internal/util-dimof.h>
-
-#include <string.h>
-#include <strings.h>
-#include <assert.h>
-
-#define DECL(STR, VAL) { STR, sizeof(STR)-1, VAL }
-
-static struct Mapping_uint64 const VALUES[] = {
- DECL("lock", VC_NXF_INFO_LOCK),
- DECL("private", VC_NXF_INFO_PRIVATE),
-
- DECL("single_ip", VC_NXF_SINGLE_IP),
- DECL("lback_remap", VC_NXF_LBACK_REMAP),
- DECL("remap_lback", VC_NXF_LBACK_REMAP),
-
- DECL("hide_netif", VC_NXF_HIDE_NETIF),
- DECL("hide_lback", VC_NXF_HIDE_LBACK),
-
- DECL("state_setup", VC_NXF_STATE_SETUP),
- DECL("state_admin", VC_NXF_STATE_ADMIN),
-
- DECL("sc_helper", VC_NXF_SC_HELPER),
- DECL("persistent", VC_NXF_PERSISTENT),
-
- // Aliases for the legacy flags
- DECL("info_lock", VC_NXF_INFO_LOCK),
- DECL("info_private", VC_NXF_INFO_PRIVATE),
-};
-
-inline static char const *
-removePrefix(char const *str, size_t *len)
-{
- if ((len==0 || *len==0 || *len>4) &&
- strncasecmp("nxf_", str, 4)==0) {
- if (len && *len>4) *len -= 4;
- return str+4;
- }
- else
- return str;
-}
-
-uint_least64_t
-vc_text2nflag(char const *str, size_t len)
-{
- char const * tmp = removePrefix(str, &len);
- ssize_t idx = utilvserver_value2text_uint64(tmp, len,
- VALUES, DIM_OF(VALUES));
- if (idx==-1) return 0;
- else return VALUES[idx].val;
-}
-
-char const *
-vc_lonflag2text(uint_least64_t *val)
-{
- ssize_t idx = utilvserver_text2value_uint64(val,
- VALUES, DIM_OF(VALUES));
-
- if (idx==-1) return 0;
- else return VALUES[idx].id;
-}
+++ /dev/null
-// $Id: nflags_list-net.c 2038 2005-04-24 20:24:36Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-
-#include <string.h>
-
-static uint_least64_t
-vc_text2nflag_err(char const *str, size_t len, bool *failed)
-{
- uint_least64_t res = vc_text2nflag(str, len);
-
- if (res==0) *failed = true;
- return res;
-}
-
-int
-vc_list2nflag(char const *str, size_t len,
- struct vc_err_listparser *err,
- struct vc_net_flags *flags)
-{
- return utilvserver_listparser_uint64(str, len,
- err ? &err->ptr : 0,
- err ? &err->len : 0,
- &flags->flagword, &flags->mask,
- vc_text2nflag_err);
-}
+++ /dev/null
-// $Id: nidopt2nid.c 2589 2007-08-16 03:06:50Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include <string.h>
-#include <stdlib.h>
-
-static nid_t
-getVserverNid(char const *id, bool honor_static, char const **err)
-{
- *err = "vc_getVserverCtx";
- return vc_getVserverCtx(id, vcCFG_AUTO, honor_static, 0, vcCTX_NID);
-}
-
-nid_t
-vc_nidopt2nid(char const *str, bool honor_static, char const **err_info)
-{
- char const * err;
- nid_t res = VC_NOCTX;
-
- err = "vc_get_task_nid()";
- if (strcmp(str,"self")==0) res = vc_get_task_nid(0);
- else if (str[0]==':') res = getVserverNid(str+1, honor_static, &err);
- else {
- char * endptr;
- nid_t nid = strtol(str, &endptr, 10);
-
- if (endptr!=str && (*endptr=='\0' || *endptr=='\n'))
- res = nid;
- else
- res = getVserverNid(str, honor_static, &err);
- }
-
- if (res==VC_NOCTX && err_info) *err_info = err;
-
- return res;
-}
+++ /dev/null
-// $Id: parselimit.c 1101 2004-03-05 17:21:36Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include <string.h>
-#include <stdlib.h>
-
-bool
-vc_parseLimit(char const *buf, vc_limit_t *res)
-{
- char * errptr;
-
- if (strncmp(buf, "inf", 3)==0) {
- *res = VC_LIM_INFINITY;
- return true;
- }
-
- *res = strtoll(buf, &errptr, 0);
-
- if (errptr!=buf) {
- switch (*errptr) {
- case 'M' : *res *= 1024; /* fallthrough */
- case 'K' : *res *= 1024; ++errptr; break;
- case 'm' : *res *= 1000; /* fallthrough */
- case 'k' : *res *= 1000; ++errptr; break;
- default : break;
- }
- }
-
- return errptr!=buf && (*errptr=='\0' || *errptr=='\n');
-}
+++ /dev/null
-// $Id: personalityflag.c 2159 2005-07-15 19:40:15Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <ensc@delenn.intern.sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include <lib_internal/util-dimof.h>
-#include <linux/personality.h>
-
-#define DECL(VAL) { #VAL, sizeof(#VAL)-1, (VAL) }
-
-static struct Mapping_uint32 const VALUES[] = {
-#if HAVE_DECL_MMAP_PAGE_ZERO
- DECL(MMAP_PAGE_ZERO),
-#endif
-
-#if HAVE_DECL_ADDR_LIMIT_32BIT
- DECL(ADDR_LIMIT_32BIT),
-#endif
-
-#if HAVE_DECL_SHORT_INODE
- DECL(SHORT_INODE),
-#endif
-
-#if HAVE_DECL_WHOLE_SECONDS
- DECL(WHOLE_SECONDS),
-#endif
-
-#if HAVE_DECL_STICKY_TIMEOUTS
- DECL(STICKY_TIMEOUTS),
-#endif
-
-#if HAVE_DECL_ADDR_LIMIT_3GB
- DECL(ADDR_LIMIT_3GB),
-#endif
-};
-
-uint_least32_t
-vc_text2personalityflag(char const *str, size_t len)
-{
- ssize_t idx = utilvserver_value2text_uint32(str, len,
- VALUES, DIM_OF(VALUES));
-
- if (idx==-1) return 0;
- else return VALUES[idx].val;
-}
-
-char const *
-vc_lopersonality2text(uint_least32_t *val)
-{
- ssize_t idx = utilvserver_text2value_uint32(val, VALUES,
- DIM_OF(VALUES));
-
- if (idx==-1) return 0;
- else return VALUES[idx].id;
-}
-
-
+++ /dev/null
-// $Id: personalityflag_list.c 2055 2005-04-28 17:51:43Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-
-
-static uint_least32_t
-text2personalityflag_err(char const *str,
- size_t len, bool *failed)
-{
- uint_least32_t res = vc_text2personalityflag(str, len);
- if (res==0) *failed = true;
- return res;
-}
-
-int
-vc_list2personalityflag(char const *str, size_t len,
- uint_least32_t *personality,
- struct vc_err_listparser *err)
-{
- return utilvserver_listparser_uint32(str, len,
- err ? &err->ptr : 0,
- err ? &err->len : 0,
- personality, 0,
- text2personalityflag_err);
-}
+++ /dev/null
-// $Id: personalitytype.c 2159 2005-07-15 19:40:15Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "internal.h"
-#include <lib_internal/util-dimof.h>
-#include <linux/personality.h>
-
-#include <string.h>
-#include <strings.h>
-#include <assert.h>
-
-#define DECL(VAL) { #VAL, sizeof(#VAL)-1, (PER_ ## VAL) }
-
-static struct Mapping_uint32 const VALUES[] = {
-#if HAVE_DECL_PER_LINUX
- DECL(LINUX),
-#endif
-
-#if HAVE_DECL_PER_LINUX_32BIT
- DECL(LINUX_32BIT),
-#endif
-
-#if HAVE_DECL_PER_SVR4
- DECL(SVR4),
-#endif
-
-#if HAVE_DECL_PER_SVR3
- DECL(SVR3),
-#endif
-
-#if HAVE_DECL_PER_SCOSVR3
- DECL(SCOSVR3),
-#endif
-
-#if HAVE_DECL_PER_OSR5
- DECL(OSR5),
-#endif
-
-#if HAVE_DECL_PER_WYSEV386
- DECL(WYSEV386),
-#endif
-
-#if HAVE_DECL_PER_ISCR4
- DECL(ISCR4),
-#endif
-
-#if HAVE_DECL_PER_BSD
- DECL(BSD),
-#endif
-
-#if HAVE_DECL_PER_SUNOS
- DECL(SUNOS),
-#endif
-
-#if HAVE_DECL_PER_XENIX
- DECL(XENIX),
-#endif
-
-#if HAVE_DECL_PER_LINUX32
- DECL(LINUX32),
-#endif
-
-#if HAVE_DECL_PER_LINUX32_3GB
- DECL(LINUX32_3GB),
-#endif
-
-#if HAVE_DECL_PER_IRIX32
- DECL(IRIX32),
-#endif
-
-#if HAVE_DECL_PER_IRIXN32
- DECL(IRIXN32),
-#endif
-
-#if HAVE_DECL_PER_IRIX64
- DECL(IRIX64),
-#endif
-
-#if HAVE_DECL_PER_RISCOS
- DECL(RISCOS),
-#endif
-
-#if HAVE_DECL_PER_SOLARIS
- DECL(SOLARIS),
-#endif
-
-#if HAVE_DECL_PER_UW7
- DECL(UW7),
-#endif
-
-#if HAVE_DECL_PER_HPUX
- DECL(HPUX),
-#endif
-
-#if HAVE_DECL_PER_OSF4
- DECL(OSF4),
-#endif
-
-};
-
-static char const *
-removePrefix(char const *str, size_t *len)
-{
- if ((len==0 || *len==0 || *len>4) &&
- strncasecmp("per_", str, 4)==0) {
- if (len && *len>4) *len -= 4;
- return str+4;
- }
- else
- return str;
-}
-
-uint_least32_t
-vc_str2personalitytype(char const *str, size_t len)
-{
- char const *tmp = removePrefix(str, &len);
- ssize_t idx = utilvserver_value2text_uint32(tmp, len,
- VALUES, DIM_OF(VALUES));
-
- if (idx==-1) return VC_BAD_PERSONALITY;
- else return VALUES[idx].val;
-}
+++ /dev/null
-/* Copyright 2005 Princeton University
-
-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 the copyright holder 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 PRINCETON
-UNIVERSITY 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.
-
-*/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-#include <stdint.h>
-#include <stdarg.h>
-#include <unistd.h>
-#include <ctype.h>
-#include <sys/resource.h>
-#include <fcntl.h>
-
-#include "vserver.h"
-#include "planetlab.h"
-
-static int
-create_context(xid_t ctx, uint64_t bcaps)
-{
- struct vc_ctx_caps vc_caps;
- struct vc_net_flags vc_nf;
-
- /* Create network context */
- if (vc_net_create(ctx) == VC_NOCTX) {
- if (errno == EEXIST)
- goto process;
- return -1;
- }
-
- /* Make the network context persistent */
- vc_nf.mask = vc_nf.flagword = VC_NXF_PERSISTENT;
- if (vc_set_nflags(ctx, &vc_nf))
- return -1;
-
-process:
- /*
- * Create context info - this sets the STATE_SETUP and STATE_INIT flags.
- */
- if (vc_ctx_create(ctx, 0) == VC_NOCTX)
- return -1;
-
- /* Set capabilities - these don't take effect until SETUP flag is unset */
- vc_caps.bcaps = bcaps;
- vc_caps.bmask = ~0ULL; /* currently unused */
- vc_caps.ccaps = 0; /* don't want any of these */
- vc_caps.cmask = ~0ULL;
- if (vc_set_ccaps(ctx, &vc_caps))
- return -1;
-
- if (pl_setsched(ctx, 1, 0) < 0) {
- PERROR("pl_setsched(%u)", ctx);
- exit(1);
- }
-
- return 0;
-}
-
-int
-pl_setup_done(xid_t ctx)
-{
- struct vc_ctx_flags vc_flags;
-
- /* unset SETUP flag - this allows other processes to migrate */
- /* set the PERSISTENT flag - so the context doesn't vanish */
- /* Don't clear the STATE_INIT flag, as that would make us the init task. */
- vc_flags.mask = VC_VXF_STATE_SETUP|VC_VXF_PERSISTENT;
- vc_flags.flagword = VC_VXF_PERSISTENT;
- if (vc_set_cflags(ctx, &vc_flags))
- return -1;
-
- return 0;
-}
-
-#define RETRY_LIMIT 10
-
-int
-pl_chcontext(xid_t ctx, uint64_t bcaps, const struct sliver_resources *slr)
-{
- int retry_count = 0;
- int net_migrated = 0;
-
- pl_set_ulimits(slr);
-
- for (;;)
- {
- struct vc_ctx_flags vc_flags;
-
- if (vc_get_cflags(ctx, &vc_flags))
- {
- if (errno != ESRCH)
- return -1;
-
- /* context doesn't exist - create it */
- if (create_context(ctx, bcaps))
- {
- if (errno == EEXIST)
- /* another process beat us in a race */
- goto migrate;
- if (errno == EBUSY)
- /* another process is creating - poll the SETUP flag */
- continue;
- return -1;
- }
-
- /* created context and migrated to it i.e., we're done */
- return 1;
- }
-
- /* check the SETUP flag */
- if (vc_flags.flagword & VC_VXF_STATE_SETUP)
- {
- /* context is still being setup - wait a while then retry */
- if (retry_count++ >= RETRY_LIMIT)
- {
- errno = EBUSY;
- return -1;
- }
- sleep(1);
- continue;
- }
-
- /* context has been setup */
- migrate:
- if (net_migrated || !vc_net_migrate(ctx))
- {
- if (!vc_ctx_migrate(ctx, 0))
- break; /* done */
- net_migrated = 1;
- }
-
- /* context disappeared - retry */
- }
-
- return 0;
-}
-
-/* it's okay for a syscall to fail because the context doesn't exist */
-#define VC_SYSCALL(x) \
-do \
-{ \
- if (x) \
- return errno == ESRCH ? 0 : -1; \
-} \
-while (0)
-
-int
-pl_setsched(xid_t ctx, uint32_t cpu_share, uint32_t cpu_sched_flags)
-{
- struct vc_set_sched vc_sched;
- struct vc_ctx_flags vc_flags;
- uint32_t new_flags;
-
- vc_sched.set_mask = (VC_VXSM_FILL_RATE | VC_VXSM_INTERVAL | VC_VXSM_TOKENS |
- VC_VXSM_TOKENS_MIN | VC_VXSM_TOKENS_MAX | VC_VXSM_MSEC |
- VC_VXSM_FILL_RATE2 | VC_VXSM_INTERVAL2 | VC_VXSM_FORCE |
- VC_VXSM_IDLE_TIME);
- vc_sched.fill_rate = 0;
- vc_sched.fill_rate2 = cpu_share; /* tokens accumulated per interval */
- vc_sched.interval = vc_sched.interval2 = 1000; /* milliseconds */
- vc_sched.tokens = 100; /* initial allocation of tokens */
- vc_sched.tokens_min = 50; /* need this many tokens to run */
- vc_sched.tokens_max = 100; /* max accumulated number of tokens */
-
- if (cpu_share == (uint32_t)VC_LIM_KEEP)
- vc_sched.set_mask &= ~(VC_VXSM_FILL_RATE|VC_VXSM_FILL_RATE2);
-
- /* guaranteed CPU corresponds to SCHED_SHARE flag being cleared */
- if (cpu_sched_flags & VS_SCHED_CPU_GUARANTEED) {
- new_flags = 0;
- vc_sched.fill_rate = vc_sched.fill_rate2;
- }
- else
- new_flags = VC_VXF_SCHED_SHARE;
-
- VC_SYSCALL(vc_set_sched(ctx, &vc_sched));
-
- vc_flags.mask = VC_VXF_SCHED_FLAGS;
- vc_flags.flagword = new_flags | VC_VXF_SCHED_HARD;
- VC_SYSCALL(vc_set_cflags(ctx, &vc_flags));
-
- return 0;
-}
-
-struct pl_resources {
- char *name;
- unsigned long long *limit;
-};
-
-#define WHITESPACE(buffer,index,len) \
- while(isspace((int)buffer[index])) \
- if (index < len) index++; else goto out;
-
-#define VSERVERCONF "/etc/vservers/"
-void
-pl_get_limits(const char *context, struct sliver_resources *slr)
-{
- FILE *fb;
- int cwd;
- size_t len = strlen(VSERVERCONF) + strlen(context) + NULLBYTE_SIZE;
- char *conf = (char *)malloc(len + strlen("rlimits/openfd.hard"));
- struct pl_resources *r;
- struct pl_resources sliver_list[] = {
- {"sched/fill-rate2", &slr->vs_cpu},
-
- {"rlimits/nproc.hard", &slr->vs_nproc.hard},
- {"rlimits/nproc.soft", &slr->vs_nproc.soft},
- {"rlimits/nproc.min", &slr->vs_nproc.min},
-
- {"rlimits/rss.hard", &slr->vs_rss.hard},
- {"rlimits/rss.soft", &slr->vs_rss.soft},
- {"rlimits/rss.min", &slr->vs_rss.min},
-
- {"rlimits/as.hard", &slr->vs_as.hard},
- {"rlimits/as.soft", &slr->vs_as.soft},
- {"rlimits/as.min", &slr->vs_as.min},
-
- {"rlimits/openfd.hard", &slr->vs_openfd.hard},
- {"rlimits/openfd.soft", &slr->vs_openfd.soft},
- {"rlimits/openfd.min", &slr->vs_openfd.min},
-
- {0,0}
- };
-
- sprintf(conf, "%s%s", VSERVERCONF, context);
-
- slr->vs_rss.hard = VC_LIM_KEEP;
- slr->vs_rss.soft = VC_LIM_KEEP;
- slr->vs_rss.min = VC_LIM_KEEP;
-
- slr->vs_as.hard = VC_LIM_KEEP;
- slr->vs_as.soft = VC_LIM_KEEP;
- slr->vs_as.min = VC_LIM_KEEP;
-
- slr->vs_nproc.hard = VC_LIM_KEEP;
- slr->vs_nproc.soft = VC_LIM_KEEP;
- slr->vs_nproc.min = VC_LIM_KEEP;
-
- slr->vs_openfd.hard = VC_LIM_KEEP;
- slr->vs_openfd.soft = VC_LIM_KEEP;
- slr->vs_openfd.min = VC_LIM_KEEP;
-
- cwd = open(".", O_RDONLY);
- if (cwd == -1) {
- perror("cannot get a handle on .");
- goto out;
- }
- if (chdir(conf) == -1) {
- fprintf(stderr, "cannot chdir to ");
- perror(conf);
- goto out_fd;
- }
-
- for (r = &sliver_list[0]; r->name; r++) {
- char buf[1000];
- fb = fopen(r->name, "r");
- if (fb == NULL)
- continue;
- if (fgets(buf, sizeof(buf), fb) != NULL && isdigit(*buf))
- *r->limit = atoi(buf);
- fclose(fb);
- }
-
- fchdir(cwd);
-out_fd:
- close(cwd);
-out:
- free(conf);
-}
-
-int
-adjust_lim(const struct vc_rlimit *vcr, struct rlimit *lim)
-{
- int adjusted = 0;
- if (vcr->min != VC_LIM_KEEP) {
- if (vcr->min > lim->rlim_cur) {
- lim->rlim_cur = vcr->min;
- adjusted = 1;
- }
- if (vcr->min > lim->rlim_max) {
- lim->rlim_max = vcr->min;
- adjusted = 1;
- }
- }
-
- if (vcr->soft != VC_LIM_KEEP) {
- switch (vcr->min != VC_LIM_KEEP) {
- case 1:
- if (vcr->soft < vcr->min)
- break;
- case 0:
- lim->rlim_cur = vcr->soft;
- adjusted = 1;
- }
- }
-
- if (vcr->hard != VC_LIM_KEEP) {
- switch (vcr->min != VC_LIM_KEEP) {
- case 1:
- if (vcr->hard < vcr->min)
- break;
- case 0:
- lim->rlim_cur = vcr->hard;
- adjusted = 1;
- }
- }
- return adjusted;
-}
-
-static inline void
-set_one_ulimit(int resource, const struct vc_rlimit *limit)
-{
- struct rlimit lim;
- getrlimit(resource, &lim);
- adjust_lim(limit, &lim);
- setrlimit(resource, &lim);
-}
-
-void
-pl_set_ulimits(const struct sliver_resources *slr)
-{
- if (!slr)
- return;
-
- set_one_ulimit(RLIMIT_RSS, &slr->vs_rss);
- set_one_ulimit(RLIMIT_AS, &slr->vs_as);
- set_one_ulimit(RLIMIT_NPROC, &slr->vs_nproc);
- set_one_ulimit(RLIMIT_NOFILE, &slr->vs_openfd);
-}
+++ /dev/null
-/* Copyright 2005 Princeton University
-
-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 the copyright holder 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 PRINCETON
-UNIVERSITY 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.
-
-*/
-
-#ifndef _LIB_PLANETLAB_H_
-#define _LIB_PLANETLAB_H_
-
-#define VC_VXF_SCHED_FLAGS (VC_VXF_SCHED_HARD | VC_VXF_SCHED_SHARE)
-
-struct sliver_resources {
- unsigned long long vs_cpu;
- struct vc_rlimit vs_rss;
- struct vc_rlimit vs_as;
- struct vc_rlimit vs_nproc;
- struct vc_rlimit vs_openfd;
-};
-
-int adjust_lim(const struct vc_rlimit *vcr, struct rlimit *lim);
-
-int
-pl_chcontext(xid_t ctx, uint64_t bcaps, const struct sliver_resources *slr);
-
-int
-pl_setup_done(xid_t ctx);
-
-int
-pl_setsched(xid_t ctx, uint32_t cpu_share, uint32_t cpu_sched_flags);
-
-/* scheduler flags */
-#define VS_SCHED_CPU_GUARANTEED 1
-
-/* Null byte made explicit */
-#define NULLBYTE_SIZE 1
-
-void pl_get_limits(const char *, struct sliver_resources *);
-void pl_set_ulimits(const struct sliver_resources *);
-
-static inline int
-_PERROR(const char *format, char *file, int line, int _errno, ...)
-{
- va_list ap;
-
- va_start(ap, _errno);
- fprintf(stderr, "%s:%d: ", file, line);
- vfprintf(stderr, format, ap);
- if (_errno)
- fprintf(stderr, ": %s (%d)", strerror(_errno), _errno);
- fputs("\n", stderr);
- fflush(stderr);
-
- return _errno;
-}
-
-#define PERROR(format, args...) _PERROR(format, __FILE__, __LINE__, errno, ## args)
-#endif
+++ /dev/null
-// $Id: safechroot-internal.hc 147 2003-10-14 15:40:50Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_SAFECHROOT_INTERNAL_H
-#define H_UTIL_VSERVER_LIB_SAFECHROOT_INTERNAL_H
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "compat.h"
-
-#include <stdlib.h>
-#include <unistd.h>
-
-#ifndef NDEBUG
-static void
-vc_tell_unsafe_chroot()
-{
- static int flag = -1;
- if (flag==-1) {
- char const * const e = getenv("VC_TELL_UNSAFE_CHROOT");
- flag = e ? atoi(e) : 0;
- flag = flag ? 1 : 0;
- }
-
- if (flag) write(2, "Unsafe chroot() used\n", 23);
-}
-#else
-static ALWAYSINLINE UNUSED void vc_tell_unsafe_chroot() {}
-#endif
-
-
-#endif // H_UTIL_VSERVER_LIB_SAFECHROOT_INTERNAL_H
+++ /dev/null
-#ifndef _VX_SCHED_CMD_H
-#define _VX_SCHED_CMD_H
-
-/* sched vserver commands */
-
-#define VCMD_set_sched_v2 VC_CMD(SCHED, 1, 2)
-#define VCMD_set_sched VC_CMD(SCHED, 1, 3)
-
-struct vcmd_set_sched_v2 {
- int32_t fill_rate;
- int32_t interval;
- int32_t tokens;
- int32_t tokens_min;
- int32_t tokens_max;
- uint64_t cpu_mask;
-};
-
-struct vcmd_set_sched_v3 {
- uint32_t set_mask;
- int32_t fill_rate;
- int32_t interval;
- int32_t tokens;
- int32_t tokens_min;
- int32_t tokens_max;
- int32_t priority_bias;
-};
-
-
-#define VXSM_FILL_RATE 0x0001
-#define VXSM_INTERVAL 0x0002
-#define VXSM_TOKENS 0x0010
-#define VXSM_TOKENS_MIN 0x0020
-#define VXSM_TOKENS_MAX 0x0040
-#define VXSM_PRIO_BIAS 0x0100
-
-#define SCHED_KEEP (-2)
-
-#ifdef __KERNEL__
-
-#include <linux/compiler.h>
-
-extern int vc_set_sched_v1(uint32_t, void __user *);
-extern int vc_set_sched_v2(uint32_t, void __user *);
-extern int vc_set_sched(uint32_t, void __user *);
-
-#endif /* __KERNEL__ */
-#endif /* _VX_SCHED_CMD_H */
+++ /dev/null
- // from http://vserver.13thfloor.at/Experimental/SYSCALL/syscall_shiny17.h
-
-#ifndef __SYSCALL_NEW_H
-#define __SYSCALL_NEW_H
-
-/* Copyright (C) 2005-2007 Herbert Pötzl
-
- global config options
-
- __sysc_seterr ... set error value (def: errno)
- __sysc_cid(N) ... syscall 'name' id (def: __NR_<N>)
-
- arch specific config
-
- __sysc_regs ... the syscall registers (asm load)
- __sysc_cmd(n) ... the syscall
- __sysc_reg_cid ... syscall id register (asm load)
- __sysc_reg_ret ... syscall return register (asm out)
- __sysc_reg_err ... syscall error register (asm out)
-
- __sysc_clbrs ... the clobbered syscall registers
- __sysc_clobber ... clobbered registers (def: memory)
- __sysc_max_err ... maximum error number (def: separate)
- __sysc_errc(r,e)... error condition (def: e)
-
- __sysc_type ... type of syscall arguments (def: long)
- __sysc_acon(n) ... argument constraint (def: "r")
- __sysc_con_cid ... syscall id constraint (def: "i"/"r")
- __sysc_con_ret ... return value contraint (def: "=r")
- __sysc_con_err ... error value contraint (def: "=r")
-
- hard core replacements
-
- __sc_body(n,type,name,...)
- __sc_results
- __sc_cidvar(N)
- __sc_input(n,...)
- __sc_syscall(n,N,...)
- __sc_return(t)
-
-*/
-
- /* some fallback defaults */
-
-#ifndef __sysc_seterr
-#define __sysc_seterr(e) do { errno = (e); } while(0)
-#endif
-
-#ifndef __sysc_cid
-#define __sysc_cid(N) __NR_##N
-#endif
-
-
-/* *****************************************
- ALPHA ALPHA ALPHA ALPHA *
- alpha kernel interface */
-
-#if defined(__alpha__)
-
-/* The Alpha calling convention doesn't use the stack until
- after the first six arguments have been passed in registers.
-
- scnr: v0($0)
- args: a1($16), a2($17), a3($18), a4($19), a5($20), a6($21)
- sret: r0($0)
- serr: e0($19) (!=0, err=sret)
- call: callsys
- clob: memory
- move: mov $sR,$dR
- picr: pr($29) do we need to save that?
-*/
-
-#define __sysc_cmd(n) "callsys"
-
-#define __sysc_reg_cid "$0"
-#define __sysc_con_cid "v"
-#define __sysc_reg_ret "$0"
-#define __sysc_con_ret "=v"
-#define __sysc_reg_err "$19"
-
-#define __sysc_regs "$16", "$17", "$18", "$19", "$20", "$21"
-#define __sysc_clbrs "$16", "$17", "$18", "memory", "$20", "$21"
-#define __sysc_clobber "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", \
- "$22", "$23", "$24", "$25", "$27", "$28", "memory"
-
-
-/* *****************************************
- ARM ARM ARM ARM *
- arm kernel interface */
-
-#elif defined(__arm__)
-
-/* The Arm calling convention uses stack args after four arguments
- but the Linux kernel gets up to seven arguments in registers.
-
- scnr: imm
- args: a1(r0), a2(r1), a3(r2), a4(r3), a5(r4), a6(r5),
- sret: r0(r0)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: swi
- clob: memory
- move: mov $dR,$sR
-*/
-
-#define __sysc_max_err 125
-
-#define __sysc_cmd(n) "swi %1"
-
-#define __sysc_regs "r0", "r1", "r2", "r3", "r4", "r5"
-#define __sysc_reg_ret "r0"
-
-#warning syscall arch arm not tested yet
-
-
-
-/* *****************************************
- CRIS CRIS CRIS CRIS *
- cris v10 kernel interface */
-
-#elif defined(__cris__)
-
-/* The Cris calling convention uses stack args after four arguments
- but the Linux kernel gets up to six arguments in registers.
-
- scnr: id(r9)
- args: a1(r10), a2(r11), a3(r12), a4(r13), a5(mof), a6(srp),
- sret: r0(r10)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: break 13
- clob: memory
-*/
-
-#error syscall arch cris not implemented yet
-
-
-
-/* *****************************************
- FRV FRV FRV FRV *
- frv kernel interface */
-
-#elif defined(__frv__)
-
-/* The C calling convention on FR-V uses the gr8-gr13 registers
- for the first six arguments, the remainder is spilled onto the
- stack. the linux kernel syscall interface does so too.
-
- scnr: id(gr7)
- args: a1(gr8), a2(gr9), a3(gr10), a4(gr11), a5(gr12), a6(gr13)
- sret: r0(gr8)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: tra gr0,gr0
- clob: memory
-*/
-
-#error syscall arch frv not implemented yet
-
-
-
-/* *****************************************
- H8300 H8300 H8300 H8300 *
- h8/300 kernel interface */
-
-#elif defined(__H8300__)
-
-/* The H8/300 C calling convention passes the first three
- arguments in registers. However the linux kernel calling
- convention passes the first six arguments in registers
- er1-er6
-
- scnr: id(er0)
- args: a1(er1), a2(er2), a3(er3), a4(er4), a5(er5), a6(er6)
- sret: r0(er0)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: trapa #0
- clob: memory
-*/
-
-#error syscall arch h8300 not implemented yet
-
-
-
-/* *****************************************
- HPPA HPPA HPPA HPPA *
- hppa/64 kernel interface */
-
-#elif defined(__hppa__)
-
-/* The hppa calling convention uses r26-r23 for the first 4
- arguments, the rest is spilled onto the stack. However the
- Linux kernel passes the first six arguments in the registers
- r26-r21.
-
- The system call number MUST ALWAYS be loaded in the delay
- slot of the ble instruction, or restarting system calls
- WILL NOT WORK.
-
- scnr: id(r20)
- args: a1(r26), a2(r25), a3(r24), a4(r23), a5(r22), a6(r21)
- sret: r0(r28)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: ble 0x100(%%sr2, %%r0)
- clob: r1, r2, (r4), r20, r29, r31, memory
- picr: pr(r19) do we need to save that?
-*/
-
-#define __sysc_max_err 4095
-
-#define __sysc_cmd(n) \
- __pasm(n,1,1, "copy %%r19, %%r4" ,)\
- __casm(n,0,1, "ble 0x100(%%sr2,%%r0)" ,)\
- __casm(n,0,1, "ldi %1,%%r20" ,)\
- __pasm(n,1,1, "copy %%r4, %%r19" ,)
-
-#define __sysc_regs "r26", "r25", "r24", "r23", "r22", "r21"
-
-#ifndef __PIC__
-#define __sysc_clobber "r1", "r2", "r20", "r29", "r31", "memory"
-#else
-#define __sysc_clobber "r1", "r2", "r4", "r20", "r29", "r31", "memory"
-#endif
-
-#warning syscall arch hppa not tested yet
-
-
-
-/* *****************************************
- I386 I386 I386 I386 *
- i386 kernel interface */
-
-#elif defined(__i386__)
-
-/* The x86 calling convention uses stack args for all arguments,
- but the Linux kernel passes the first six arguments in the
- following registers: ebx, ecx, edx, esi, edi, ebp.
-
- scnr: id(eax)
- args: a1(ebx), a2(ecx), a3(edx), a4(esi), a5(edi), a6(ebp)
- sret: r0(eax)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: int 0x80
- picr: pr(ebx)
- clob: memory
- move: movl $sR,$dR
-*/
-
-#define __sysc_max_err 129
-
-#define __sc_reg1(...) __sc_cast(__arg_1(__VA_ARGS__,,,,,,))
-#define __sc_reg6(...) __sc_cast(__arg_6(__VA_ARGS__,,,,,,))
-
-#define __scsd struct { __sc_ldef(__a); __sc_ldef(__b); } __scs
-#define __scsa(n,...) \
- __scs.__a = __sc_reg1(__VA_ARGS__); \
- __scs.__b = __sc_reg6(__VA_ARGS__);
-
-#define __sc_input(n,...) __casm(n,6,0, \
- __scsd; __scsa(n,__VA_ARGS__), )
-
-#define __cm ,
-#define __sc_null(n) __arg_##n( \
- __cm,__cm,__cm,__cm,__cm,__cm)
-
-#define __sc_rvcs(r,v) r (__sc_cast(v))
-
-#define __sc_rvrd(n,N) __arg_##n(, \
- __cm __sc_rvcs("c", N), \
- __cm __sc_rvcs("d", N), \
- __cm __sc_rvcs("S", N), \
- __cm __sc_rvcs("D", N),)
-
-#define __sc_arg1(n,...) __Casm(n,1,6,0,, \
- __sc_rvcs(__pic("ri") __nopic("b"), \
- __sc_reg1(__VA_ARGS__)), \
- __sc_rvcs("0", &__scs))
-
-#define __sc_syscall(n,N,...) \
- __sc_asm_vol (__sysc_cmd(n) \
- : __sc_oregs \
- : __sc_cidval(N) __sc_null(n) \
- __sc_arg1(n,__VA_ARGS__) \
- __con_##n(__sc_rvrd,__VA_ARGS__) \
- : "memory" )
-
-#define __sysc_cmd(n) \
- __pasm(n,1,1, "pushl %%ebx" ,)\
- __Pasm(n,1,5,1,,"movl %2, %%ebx" ,)\
- __casm(n,6,1, "pushl %%ebp" ,)\
- __casm(n,6,1, "movl 0(%2), %%ebx" ,)\
- __casm(n,6,1, "movl 4(%2), %%ebp" ,)\
- __casm(n,0,1, "movl %1, %%eax" ,)\
- __casm(n,0,1, "int $0x80" ,)\
- __casm(n,6,1, "popl %%ebp" ,)\
- __pasm(n,1,1, "popl %%ebx" ,)
-
-#define __sysc_reg_ret "eax"
-#define __sysc_con_ret "=a"
-
-
-
-/* *****************************************
- IA64 IA64 IA64 IA64 *
- ia64 kernel interface */
-
-#elif defined(__ia64__)
-
-/* The ia64 calling convention uses out0-out7 to pass the first
- eight arguments (mapped via register windows).
-
- scnr: id(r15)
- args: a1(out0), a2(out1), ... a5(out4), a6(out5)
- sret: r0(r8)
- serr: e0(r10)
- call: break 0x100000
- clob: out6/7, r2/3/9, r11-r14, r16-r31, p6-p15, f6-f15, b6/7
- move: mov %dR = %sR
-*/
-
-#define __sysc_errc(r,e) ((e) == -1)
-
-#define __sysc_cmd(n) "break.i 0x100000"
-
-#define __sysc_regs "out0", "out1", "out2", "out3", "out4", "out5"
-#define __sysc_reg_cid "r15"
-#define __sysc_reg_ret "r8"
-#define __sysc_reg_err "r10"
-
-#define __sysc_clobber \
- "out6", "out7", "r2", "r3", "r9", "r11", "r12", "r13", \
- "r14", "r16", "r17", "r18", "r19", "r20", "r21", "r22", \
- "r23", "r24", "r25", "r26", "r27", "r28", "r29", "r30", \
- "r31", "p6", "p7", "p8", "p9", "p10", "p11", "p12", "p13", \
- "p14", "p15", "f6", "f7", "f8", "f9", "f10", "f11", "f12", \
- "f13", "f14", "f15", "f16", "b6", "b7", "cc", "memory"
-
-#warning syscall arch ia64 not tested yet
-
-
-
-/* *****************************************
- M32R M32R M32R M32R *
- m32r kernel interface */
-
-#elif defined(__M32R__)
-
-/* The m32r calling convention uses r0-r7 to pass the first
- eight arguments (mapped via register windows).
-
- scnr: id(r0)
- args: a1(r1), a2(r2), a3(r3), a4(r4), a5(r5), a6(r6)
- sret: r0(r0)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: trap #2
- clob: out6/7, r2/3/9, r11-r14, r16-r31, p6-p15, f6-f15, b6/7
- move: mv %dR,%sR
-*/
-
-#define __sysc_max_err 125
-
-#define __sysc_cmd(n) "trap #2"
-
-#define __sysc_regs "r0", "r1", "r2", "r3", "r4", "r5"
-#define __sysc_reg_cid "r7"
-#define __sysc_reg_ret "r0"
-
-#warning syscall arch m32r not tested yet
-
-
-
-/* *****************************************
- M68K M68K M68K M68K *
- m68k kernel interface */
-
-#elif defined(__m68000__)
-
-#error syscall arch m68k not implemented yet
-
-
-
-/* *****************************************
- MIPS MIPS MIPS MIPS *
- mips kernel interface */
-
-#elif defined(__mips__)
-
-/* The ABIO32 calling convention uses a0-a3 to pass the first
- four arguments, the rest is passed on the userspace stack.
- The 5th arg starts at 16($sp). The new mips calling abi uses
- registers a0-a5, restart requires a reload of v0 (#syscall)
-
- ABIN32 and ABI64 pass 6 args in a0-a3, t0-t1.
-
- scnr: id(v0)
- args: a1(a0), a2(a1), a3(a2), a4(a3), a5(t0), a6(t1)
- sret: r0(v0)
- serr: e0(a3)
- call: syscall
- clob: at, v1, t2-t7, t8-t9
- move: move %dR,%sR
-*/
-
-#define __sysc_cmd(n) \
- __casm(n,0,1, "ori $v0,$0,%2" ,)\
- __casm(n,0,1, "syscall" ,)
-
-#define __sysc_regs "a0","a1","a2","a3", "t0", "t1"
-#define __sysc_reg_ret "v0"
-#define __sysc_reg_err "a3"
-
-#define __sysc_clobber "$1", "$3", "$10", "$11", "$12", \
- "$13", "$14", "$15", "$24", "$25", "memory"
-
-#warning syscall arch mips not tested yet
-
-
-
-/* *****************************************
- PPC PPC PPC PPC *
- ppc/64 kernel interface */
-
-#elif defined(__powerpc__)
-
-/* The powerpc calling convention uses r3-r10 to pass the first
- eight arguments, the remainder is spilled onto the stack.
-
- scnr: id(r0)
- args: a1(r3), a2(r4), a3(r5), a4(r6), a5(r7), a6(r8)
- sret: r0(r3)
- serr: (carry)
- call: sc
- clob: r9-r12, cr0, ctr
- move: mr %dR,%sR
-*/
-
-#define __sysc_errc(r,e) ((e) & 0x10000000)
-
-#define __sysc_cmd(n) \
- __casm(n,0,1, "sc" ,)\
- __casm(n,0,1, "mfcr %1" ,)
-
-#define __sysc_regs "r3", "r4", "r5", "r6", "r7", "r8"
-#define __sysc_reg_cid "r0"
-#define __sysc_reg_ret "r3"
-
-#define __sysc_clobber "r9", "r10", "r11", "r12", "cr0", "ctr", "memory"
-
-
-
-/* *****************************************
- S390 S390 S390 S390 *
- s390/x kernel interface */
-
-#elif defined(__s390__)
-
-/* The s390x calling convention passes the first five arguments
- in r2-r6, the remainder is spilled onto the stack. However
- the Linux kernel passes the first six arguments in r2-r7.
-
- scnr: imm, id(r1)
- args: a1(r2), a2(r3), a3(r4), a4(r5), a5(r6), a6(r7)
- sret: r0(r2)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: svc
- clob: memory
-*/
-
-#define __sysc_max_err 4095
-
-#define __sysc_cmd(n) "svc 0"
-
-// #define __sysc_type unsigned long
-
-#define __sysc_regs "r2", "r3", "r4", "r5", "r6", "r7"
-#define __sysc_reg_cid "r1"
-#define __sysc_reg_ret "r2"
-
-#warning syscall arch s390 not tested yet
-
-
-
-/* *****************************************
- SH SH SH SH *
- sh kernel interface */
-
-#elif defined(__sh__) && !defined(__SH5__)
-
-/* The SuperH calling convention passes the first four arguments
- in r4-r7, the remainder is spilled onto the stack. However
- the Linux kernel passes the remainder in r0-r1.
-
- scnr: id(r3)
- args: a1(r4), a2(r5), a3(r6), a4(r7), a5(r0), a6(r1)
- sret: r0(r0)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: trapa #0x1x (x=#args)
- clob: memory
- move: ori %sR,0,%dR
-*/
-
-#ifdef __sh2__
-#define __sysc_arch "trapa #0x2"
-#else
-#define __sysc_arch "trapa #0x1"
-#endif
-
-#define __sysc_max_err 4095
-
-#define __sysc_cmd(n) __sysc_arch #n
-
-#define __sysc_regs "r4", "r5", "r6", "r7", "r0", "r1"
-#define __sysc_reg_cid "r3"
-#define __sysc_reg_ret "r0"
-
-#warning syscall arch sh not tested yet
-
-
-
-/* *****************************************
- SH64 SH64 SH64 SH64 *
- sh64 kernel interface */
-
-#elif defined(__sh__) && defined(__SH5__)
-
-/* The SuperH-5 calling convention passes the first eight
- arguments in r2-r9. The Linux kernel uses only six of
- them as arguments, and the last one for the syscall id.
-
- scnr: id(r9)
- args: a1(r2), a2(r3), a3(r4), a4(r5), a5(r6), a6(r7)
- sret: r0(r9)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: trapa #0x1x (x=#args)
- clob: memory
- move: ori %sR,0,%dR
-*/
-
-#define __sysc_max_err 4095
-
-#define __sysc_cmd(n) \
- __casm(n,0,1, "movi 0x1" #n ",r9" ,)\
- __casm(n,0,1, "shori %1,r9" ,)\
- __casm(n,0,1, "trapa r9" ,)
-
-#define __sysc_regs "r2", "r3", "r4", "r5", "r6", "r7"
-#define __sysc_reg_ret "r9"
-
-#warning syscall arch sh64 not tested yet
-
-
-
-/* *****************************************
- SPARC64 SPARC64 SPARC64 SPARC64 *
- sparc64 kernel interface */
-
-#elif defined(__sparc__)
-
-/* The sparc/64 calling convention uses o0-o5 to pass the first
- six arguments (mapped via register windows).
-
- scnr: id(g1)
- args: a1(o0), a2(o1), a3(o2), a4(o3), a5(o4), a6(o5)
- sret: r0(o0)
- serr: (carry)
- call: ta 0x6d, t 0x10
- clob: g1-g6, g7?, o7?, f0-f31, cc
- move: mov %sR,%dR
-*/
-
-#ifdef __arch64__
-#define __sysc_arch "ta 0x6d"
-#else
-#define __sysc_arch "ta 0x10"
-#endif
-
-#define __sysc_cmd(n) \
- __casm(n,0,1, __sysc_arch ,)\
- __casm(n,0,1, "addx %%g0,%%g0,%1" ,)
-
-#define __sysc_regs "o0", "o1", "o2", "o3", "o4", "o5"
-#define __sysc_reg_cid "g1"
-#define __sysc_reg_ret "o0"
-
-#define __sysc_clobber "g2", "g3", "g4", "g5", "g6", \
- "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", \
- "f9", "f10", "f11", "f12", "f13", "f14", "f15", "f16", \
- "f17", "f18", "f19", "f20", "f21", "f22", "f23", "f24", \
- "f25", "f26", "f27", "f28", "f29", "f30", "f31", "f32", \
- "f34", "f36", "f38", "f40", "f42", "f44", "f46", "f48", \
- "f50", "f52", "f54", "f56", "f58", "f60", "f62", \
- "cc", "memory"
-
-
-
-/* *****************************************
- V850 V850 V850 V850 *
- v850 kernel interface */
-
-#elif defined(__v850__)
-
-/* The V850 calling convention passes the first four arguments
- in registers r6-r9, the rest is spilled onto the stack.
- but the Linux kernel interface uses r6-r9 and r13/14.
-
- scnr: id(r12)
- args: a1(r6), a2(r7), a3(r8), a4(r9), a5(r13), a6(r14)
- sret: r0(r10)
- serr: (sret >= (unsigned)-EMAXERRNO)
- call: trap 0, trap 1
- clob: r1, r5, r11, r15-r19
-*/
-
-#define __sysc_max_err 515
-
-#define __sysc_cmd(n) \
- __casm(n,4,0, "trap 1" ,"trap 0" )
-
-#define __sysc_regs "r6", "r7", "r8", "r9", "r13", "r14"
-#define __sysc_reg_cid "r12"
-#define __sysc_reg_ret "r10"
-
-#define __sysc_clobber "r1", "r5", "r11", \
- "r15", "r16", "r17", "r18", "r19", "memory"
-
-#warning syscall arch v850 not tested yet
-
-
-
-/* *****************************************
- X86_64 X86_64 X86_64 X86_64 *
- x86_64 kernel interface */
-
-#elif defined(__x86_64__)
-
-/* The x86_64 calling convention uses rdi, rsi, rdx, rcx, r8, r9
- but the Linux kernel interface uses rdi, rsi, rdx, r10, r8, r9.
-
- scnr: id(rax)
- args: a1(rdi), a2(rsi), a3(rdx), a4(r10), a5(r8), a6(r9)
- sret: r0(rax)
- serr: (err= sret > (unsigned)-EMAXERRNO)
- call: syscall
- clob: rcx, r11
-*/
-
-#define __sysc_max_err 4095
-
-#define __sysc_cmd(n) "syscall"
-
-#define __sysc_regs "rdi", "rsi", "rdx", "r10", "r8", "r9"
-#define __sysc_reg_cid "rax"
-#define __sysc_reg_ret "rax"
-#define __sysc_con_ret "=a"
-
-#define __sysc_clobber "cc", "r11", "rcx", "memory"
-
-#else
-#error unknown kernel arch
-#endif
-
-
- /* implementation defaults */
-
-
-
-#ifndef __sysc_clobber
-#define __sysc_clobber "memory"
-#endif
-
-#ifndef __sysc_acon
-#define __sysc_acon(n) "r"
-#endif
-
-#ifndef __sysc_con_ret
-#define __sysc_con_ret "=r"
-#endif
-
-#ifndef __sysc_con_err
-#define __sysc_con_err "=r"
-#endif
-
-#ifndef __sysc_con_cid
-#ifdef __sysc_reg_cid
-#define __sysc_con_cid "r"
-#else
-#define __sysc_con_cid "i"
-#endif
-#endif
-
-#ifndef __sysc_type
-#define __sysc_type long
-#endif
-
-#ifdef __sysc_regs
-#define __sysc_rega(n,...) __arg_##n(__VA_ARGS__)
-#ifndef __sysc_reg
-#define __sysc_reg(n) __sysc_rega(n,__sysc_regs)
-#endif
-#endif
-
-
-
- /* argument list */
-
-#define __lst_6(x,a1,a2,a3,a4,a5,a6) __lst_5(x,a1,a2,a3,a4,a5),x(6,a6)
-#define __lst_5(x,a1,a2,a3,a4,a5) __lst_4(x,a1,a2,a3,a4),x(5,a5)
-#define __lst_4(x,a1,a2,a3,a4) __lst_3(x,a1,a2,a3),x(4,a4)
-#define __lst_3(x,a1,a2,a3) __lst_2(x,a1,a2),x(3,a3)
-#define __lst_2(x,a1,a2) __lst_1(x,a1),x(2,a2)
-#define __lst_1(x,a1) __lst_0(x,*),x(1,a1)
-#define __lst_0(x,a0)
-
- /* argument concatenation */
-
-#define __con_6(x,a1,a2,a3,a4,a5,a6) __con_5(x,a1,a2,a3,a4,a5)x(6,a6)
-#define __con_5(x,a1,a2,a3,a4,a5) __con_4(x,a1,a2,a3,a4)x(5,a5)
-#define __con_4(x,a1,a2,a3,a4) __con_3(x,a1,a2,a3)x(4,a4)
-#define __con_3(x,a1,a2,a3) __con_2(x,a1,a2)x(3,a3)
-#define __con_2(x,a1,a2) __con_1(x,a1)x(2,a2)
-#define __con_1(x,a1) __con_0(x,*)x(1,a1)
-#define __con_0(x,a0)
-
- /* argument selection */
-
-#define __arg_0(...)
-#define __arg_1(a1,...) a1
-#define __arg_2(a1,a2,...) a2
-#define __arg_3(a1,a2,a3,...) a3
-#define __arg_4(a1,a2,a3,a4,...) a4
-#define __arg_5(a1,a2,a3,a4,a5,...) a5
-#define __arg_6(a1,a2,a3,a4,a5,a6,...) a6
-
- /* list remainder */
-
-#define __rem_0(a1,a2,a3,a4,a5,a6) ,a1,a2,a3,a4,a5,a6
-#define __rem_1(a1,a2,a3,a4,a5,a6) ,a2,a3,a4,a5,a6
-#define __rem_2(a1,a2,a3,a4,a5,a6) ,a3,a4,a5,a6
-#define __rem_3(a1,a2,a3,a4,a5,a6) ,a4,a5,a6
-#define __rem_4(a1,a2,a3,a4,a5,a6) ,a5,a6
-#define __rem_5(a1,a2,a3,a4,a5,a6) ,a6
-#define __rem_6(...)
-
-
- /* conditional asm */
-
-#define __casm_use(q,r,v) v __casm_use_##q##r(__casm_nl(""))
-
-#define __casm_use_10(v)
-#define __casm_use_11(v) v
-#define __casm_use_12(v)
-#define __casm_use_13(v) v
-
-#define __casm_use_20(v)
-#define __casm_use_21(v)
-#define __casm_use_22(v) v
-#define __casm_use_23(v) v
-
-
-#define __casm_00(v,w,r) __casm_use(1,r,v)
-#define __casm_01(v,w,r) __casm_use(2,r,w)
-#define __casm_02(v,w,r) __casm_use(2,r,w)
-#define __casm_03(v,w,r) __casm_use(2,r,w)
-#define __casm_04(v,w,r) __casm_use(2,r,w)
-#define __casm_05(v,w,r) __casm_use(2,r,w)
-#define __casm_06(v,w,r) __casm_use(2,r,w)
-
-#define __casm_10(v,w,r) __casm_use(1,r,v)
-#define __casm_11(v,w,r) __casm_use(1,r,v)
-#define __casm_12(v,w,r) __casm_use(2,r,w)
-#define __casm_13(v,w,r) __casm_use(2,r,w)
-#define __casm_14(v,w,r) __casm_use(2,r,w)
-#define __casm_15(v,w,r) __casm_use(2,r,w)
-#define __casm_16(v,w,r) __casm_use(2,r,w)
-
-#define __casm_20(v,w,r) __casm_use(1,r,v)
-#define __casm_21(v,w,r) __casm_use(1,r,v)
-#define __casm_22(v,w,r) __casm_use(1,r,v)
-#define __casm_23(v,w,r) __casm_use(2,r,w)
-#define __casm_24(v,w,r) __casm_use(2,r,w)
-#define __casm_25(v,w,r) __casm_use(2,r,w)
-#define __casm_26(v,w,r) __casm_use(2,r,w)
-
-#define __casm_30(v,w,r) __casm_use(1,r,v)
-#define __casm_31(v,w,r) __casm_use(1,r,v)
-#define __casm_32(v,w,r) __casm_use(1,r,v)
-#define __casm_33(v,w,r) __casm_use(1,r,v)
-#define __casm_34(v,w,r) __casm_use(2,r,w)
-#define __casm_35(v,w,r) __casm_use(2,r,w)
-#define __casm_36(v,w,r) __casm_use(2,r,w)
-
-#define __casm_40(v,w,r) __casm_use(1,r,v)
-#define __casm_41(v,w,r) __casm_use(1,r,v)
-#define __casm_42(v,w,r) __casm_use(1,r,v)
-#define __casm_43(v,w,r) __casm_use(1,r,v)
-#define __casm_44(v,w,r) __casm_use(1,r,v)
-#define __casm_45(v,w,r) __casm_use(2,r,w)
-#define __casm_46(v,w,r) __casm_use(2,r,w)
-
-#define __casm_50(v,w,r) __casm_use(1,r,v)
-#define __casm_51(v,w,r) __casm_use(1,r,v)
-#define __casm_52(v,w,r) __casm_use(1,r,v)
-#define __casm_53(v,w,r) __casm_use(1,r,v)
-#define __casm_54(v,w,r) __casm_use(1,r,v)
-#define __casm_55(v,w,r) __casm_use(1,r,v)
-#define __casm_56(v,w,r) __casm_use(2,r,w)
-
-#define __casm_60(v,w,r) __casm_use(1,r,v)
-#define __casm_61(v,w,r) __casm_use(1,r,v)
-#define __casm_62(v,w,r) __casm_use(1,r,v)
-#define __casm_63(v,w,r) __casm_use(1,r,v)
-#define __casm_64(v,w,r) __casm_use(1,r,v)
-#define __casm_65(v,w,r) __casm_use(1,r,v)
-#define __casm_66(v,w,r) __casm_use(1,r,v)
-
-
- /* special PIC handling */
-
-#ifdef __PIC__
-#define __pic(v) v
-#define __nopic(v)
-#else
-#define __pic(v)
-#define __nopic(v) v
-#endif
-
-#define __casm_nl(v) v "\n\t"
-
-#define __casm(n,a,r,v,w) __casm_##n##a(v,w,r)
-#define __Casm(n,a,b,r,u,v,w) __casm_##n##b(w,__casm_##n##a(v,u,r),r)
-
-#define __pasm(n,a,r,v,w) __pic(__casm(n,a,r,v,w))
-#define __Pasm(n,a,b,r,u,v,w) __pic(__Casm(n,a,b,r,u,v,w))
-
-#define __nasm(n,a,r,v,w) __nopic(__casm(n,a,r,v,w))
-#define __Nasm(n,a,b,r,u,v,w) __nopic(__Casm(n,a,b,r,u,v,w))
-
-
-#define __sc_cast(v) (__sysc_type)(v)
-#define __sc_ldef(N) __sysc_type N
-#define __sc_rdef(N,R) register __sc_ldef(N) __sc_asm (R)
-
-#define __sc_scid(N,v) __sc_ldef(N) = __sc_cast(v)
-#define __sc_areg(N,R,v) __sc_rdef(N,R) = __sc_cast(v)
-
-#define __sc_rval(n,v) "r"(__sc_a##n)
-#define __sc_ival(n,v) __sysc_acon(n)(__sc_cast(v))
-#define __sc_idef(n,v) __sc_areg(__sc_a##n, __sysc_reg(n), v);
-
-#ifdef __sysc_clbrs
-#define __sc_cregs(n,...) __rem_##n(__VA_ARGS__)
-#else
-#define __sc_cregs(n,...)
-#endif
-
-#ifdef __sysc_regs
-#define __sc_input(n,...) __con_##n(__sc_idef,__VA_ARGS__)
-#define __sc_ivals(n,...) __lst_##n(__sc_rval,__VA_ARGS__)
-#else
-#define __sc_ivals(n,...) __lst_##n(__sc_ival,__VA_ARGS__)
-#endif
-
-#ifdef __sysc_reg_cid
-#define __sc_cidvar(N) __sc_areg(__sc_id, \
- __sysc_reg_cid, __sysc_cid(N))
-#define __sc_cidval(N) __sysc_con_cid (__sc_id)
-#endif
-
-#ifndef __sc_input
-#define __sc_input(n,...)
-#endif
-
-#ifndef __sc_cidval
-#define __sc_cidval(N) __sysc_con_cid (__sysc_cid(N))
-#endif
-
-#ifndef __sc_cidvar
-#define __sc_cidvar(N)
-#endif
-
-
-#ifdef __sysc_reg_ret
-#define __sc_ret __ret
-#define __sc_def_ret __sc_ldef(ret); __sc_rdef(__sc_ret,__sysc_reg_ret)
-#else
-#define __sc_ret ret
-#define __sc_def_ret __sc_ldef(__sc_ret)
-#endif
-
-#ifdef __sysc_reg_err
-#define __sc_err __err
-#define __sc_def_err __sc_ldef(err); __sc_rdef(__sc_err,__sysc_reg_err)
-#else
-#define __sc_err err
-#define __sc_def_err __sc_ldef(__sc_err)
-#endif
-
-
-#ifndef __sysc_max_err
-#define __sc_complex
-#endif
-
-#ifdef __sc_complex /* complex result */
-
-#ifndef __sc_results
-#define __sc_results __sc_def_ret; __sc_def_err
-#endif
-
-#ifndef __sysc_errc
-#define __sysc_errc(ret, err) (err)
-#endif
-
-#ifndef __sysc_retv
-#define __sysc_retv(type, ret, err) \
- if (__sysc_errc(ret, err)) { \
- __sysc_seterr(ret); \
- ret = -1; \
- } \
- return (type)(ret)
-#endif
-
-#define __sc_oregs __sysc_con_ret (__sc_ret), \
- __sysc_con_err (__sc_err)
-#ifndef __sc_return
-#define __sc_return(t) ret = __sc_ret; err = __sc_err; \
- __sysc_retv(t, ret, err)
-#endif
-#else /* simple result */
-
-#ifndef __sc_results
-#define __sc_results __sc_def_ret
-#endif
-
-#ifndef __sysc_errc
-#define __sysc_errc(ret) \
- ((unsigned __sysc_type)(ret) >= \
- (unsigned __sysc_type)(-(__sysc_max_err)))
-#endif
-
-#ifndef __sysc_retv
-#define __sysc_retv(type, ret) \
- if (__sysc_errc(ret)) { \
- __sysc_seterr(-ret); \
- ret = -1; \
- } \
- return (type)(ret)
-#endif
-
-#define __sc_oregs __sysc_con_ret (__sc_ret)
-#ifndef __sc_return
-#define __sc_return(t) ret = __sc_ret; __sysc_retv(t, ret)
-#endif
-#endif /* simple/complex */
-
-
-
- /* the inline syscall */
-
-#define __sc_asm __asm__
-#define __sc_asm_vol __asm__ __volatile__
-
-#ifndef __sc_syscall
-#define __sc_syscall(n,N,...) \
- __sc_asm_vol (__sysc_cmd(n) \
- : __sc_oregs \
- : __sc_cidval(N) __sc_ivals(n,__VA_ARGS__) \
- : __sysc_clobber __sc_cregs(n,__sysc_clbrs))
-#endif
-
-#ifndef __sc_body
-#define __sc_body(n, type, name, ...) \
-{ \
- __sc_results;__sc_cidvar(name); \
- __sc_input(n,__VA_ARGS__) \
- __sc_syscall(n,name,__VA_ARGS__); \
- __sc_return(type); \
-}
-#endif
-
-#define _syscall0(type, name) \
-type name(void) \
-__sc_body(0, type, name, *)
-
-#define _syscall1(type, name, type1, arg1) \
-type name(type1 arg1) \
-__sc_body(1, type, name, arg1)
-
-#define _syscall2(type, name, type1, arg1, type2, arg2) \
-type name(type1 arg1, type2 arg2) \
-__sc_body(2, type, name, arg1, arg2)
-
-#define _syscall3(type, name, type1, arg1, type2, arg2, type3, arg3) \
-type name(type1 arg1, type2 arg2, type3 arg3) \
-__sc_body(3, type, name, arg1, arg2, arg3)
-
-#define _syscall4(type, name, type1, arg1, type2, arg2, type3, arg3, \
- type4, arg4) \
-type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
-__sc_body(4, type, name, arg1, arg2, arg3, arg4)
-
-#define _syscall5(type, name, type1, arg1, type2, arg2, type3, arg3, \
- type4, arg4, type5, arg5) \
-type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \
-__sc_body(5, type, name, arg1, arg2, arg3, arg4, arg5)
-
-#define _syscall6(type, name, type1, arg1, type2, arg2, type3, arg3, \
- type4, arg4, type5, arg5, type6, arg6) \
-type name(type1 arg1, type2 arg2, type3 arg3, \
- type4 arg4, type5 arg5, type6 arg6) \
-__sc_body(6, type, name, arg1, arg2, arg3, arg4, arg5, arg6)
-
-
-
-#endif /* __SYSCALL_NEW_H */
+++ /dev/null
-// $Id: syscall-compat.hc 1450 2004-04-14 23:21:23Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "compat.h"
-
-#include "safechroot-internal.hc"
-#include "vserver.h"
-
-#include <unistd.h>
-
-static inline ALWAYSINLINE xid_t
-vc_new_s_context_compat(xid_t ctx, unsigned int remove_cap, unsigned int flags)
-{
- struct vcmd_new_s_context_v1 msg;
- msg.remove_cap = remove_cap;
- msg.flags = flags;
-
- return vserver(VCMD_new_s_context, CTX_USER2KERNEL(ctx), &msg);
-}
-
-static inline ALWAYSINLINE int
-vc_set_ipv4root_compat(uint32_t bcast, size_t nb, struct vc_ip_mask_pair const *ips)
-{
- struct vcmd_set_ipv4root_v3 msg;
- size_t i;
-
- if (nb>NB_IPV4ROOT) {
- errno = -EOVERFLOW;
- return -1;
- }
-
- msg.broadcast = bcast;
-
- for (i=0; i<nb; ++i) {
- msg.nx_mask_pair[i].ip = ips[i].ip;
- msg.nx_mask_pair[i].mask = ips[i].mask;
- }
-
- return vserver(VCMD_set_ipv4root, nb, &msg);
-}
+++ /dev/null
-// $Id: syscall-fallback.h 2231 2005-12-31 10:48:24Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_ENSC_UTIL_VSERVER_LIB_SYSCALL_FALLBACK_H
-#define H_ENSC_UTIL_VSERVER_LIB_SYSCALL_FALLBACK_H
-
-
-#if defined(__alpha__)
-#define __NR_vserver 428
-#elif defined(__arm__)
-#define __NR_vserver 313
-#elif defined(__cris__)
-#define __NR_vserver 273
-#elif defined(__frv__)
-#define __NR_vserver 273
-#elif defined(__h8300__)
-#define __NR_vserver 273
-#elif defined(__i386__)
-#define __NR_vserver 273
-#elif defined(__ia64__)
-#define __NR_vserver 1269
-#elif defined(__m32r__)
-#define __NR_vserver 273
-#elif defined(__mc68000__)
-#define __NR_vserver 278
-#elif defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI32)
-#define __NR_vserver 277
-#elif defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI64)
-#define __NR_vserver 240
-#elif defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_NABI32)
-#define __NR_vserver 236
-#elif defined(__hppa__)
-#define __NR_vserver 263
-#elif defined(__powerpc__)
-#define __NR_vserver 257
-#elif defined(__s390__)
-#define __NR_vserver 263
-#elif defined(__sh__)
-#define __NR_vserver 273
-#elif defined(__sparc__)
-#define __NR_vserver 267
-#elif defined(__v850__)
-#define __NR_vserver *
-#elif defined(__x86_64__)
-#define __NR_vserver 236
-#endif
-
-
-
-#endif // H_ENSC_UTIL_VSERVER_LIB_SYSCALL_FALLBACK_H
+++ /dev/null
-// $Id: syscall-legacy.hc 2076 2005-05-02 21:42:05Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on syscall.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- This tells the system call number for new_s_context and set_ipv4root
- using /proc/self/status. This helps until the vserver project is
- included officially in the kernel (and has its own syscall).
-
- We rely on /proc/self/status to find the syscall number.
-
- If it is not there, we rely on adm/unistd.h.
-
- If this file does not have those system calls (not a patched kernel source)
- we rely on static values in this file.
-*/
-#include "safechroot-internal.hc"
-
-#include <string.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <asm/unistd.h>
-#include <stdbool.h>
-
-#include "syscall-wrap.h"
-
-// Here is the trick. We keep a copy of the define, then undef it
-// and then later, we try to locate the value reading /proc/self/status
-// If this fails, we have the old preserved copy.
-static int def_NR_set_ipv4root = 274;
-#undef __NR_set_ipv4root
-
-static int __NR_set_ipv4root_rev0;
-static int __NR_set_ipv4root_rev1;
-static int __NR_set_ipv4root_rev2;
-static int __NR_set_ipv4root_rev3;
-static int rev_ipv4root=0;
-
-#ifdef ENSC_SYSCALL_TRADITIONAL
-# if defined __dietlibc__
-extern long int syscall (long int __sysno, ...);
-# endif
-
-inline static int
-set_ipv4root_rev0(unsigned long ip)
-{
- return syscall(__NR_set_ipv4root_rev0, ip);
-}
-
-inline static int
-set_ipv4root_rev1(unsigned long ip, unsigned long bcast)
-{
- return syscall(__NR_set_ipv4root_rev1, ip, bcast);
-}
-
-inline static int
-set_ipv4root_rev2(unsigned long *ip, int nb, unsigned long bcast)
-{
- return syscall(__NR_set_ipv4root_rev2, ip, nb, bcast);
-}
-
-inline static int
-set_ipv4root_rev3(unsigned long *ip, int nb, unsigned long bcast, unsigned long * mask)
-{
- return syscall(__NR_set_ipv4root_rev3, ip, nb, bcast, mask);
-}
-
-#else // ENSC_SYSCALL_TRADITIONAL
-inline static _syscall1(int, set_ipv4root_rev0, unsigned long, ip)
-inline static _syscall2(int, set_ipv4root_rev1, unsigned long, ip, unsigned long, bcast)
-inline static _syscall3(int, set_ipv4root_rev2, unsigned long *, ip, int, nb, unsigned long, bcast)
-inline static _syscall4(int, set_ipv4root_rev3, unsigned long *, ip, int, nb, unsigned long, bcast, unsigned long *, mask)
-#endif // ENSC_SYSCALL_TRADITIONAL
-
-static int def_NR_new_s_context = 273;
-#undef __NR_new_s_context
-static int __NR_new_s_context_rev0;
-static int rev_s_context=0;
-
-
-#ifdef ENSC_SYSCALL_TRADITIONAL
-inline static xid_t
-new_s_context_rev0(int newctx, int remove_cap, int flags)
-{
- return syscall(__NR_new_s_context_rev0, newctx, remove_cap, flags);
-}
-#else // ENSC_SYSCALL_TRADITIONAL
-inline static _syscall3(int, new_s_context_rev0, int, newctx, int, remove_cap, int, flags)
-#endif // ENSC_SYSCALL_TRADITIONAL
-
-
-static bool is_init = false;
-
-#include "utils-legacy.h"
-
-#ifndef WRITE_MSG
-# define WRITE_MSG(FD,X) (void)(write(FD,X,sizeof(X)-1))
-#endif
-
-
-static bool
-getNumRevPair(char const *str, int *num, int *rev)
-{
- char const * blank_pos = strchr(str, ' ');
- char const * eol_pos = strchr(str, '\n');
-
- *num = atoi(str);
- if (*num==0) return false;
-
- if (blank_pos!=0 && eol_pos!=0 && blank_pos<eol_pos &&
- strncmp(blank_pos+1, "rev", 3)==0)
- *rev = atoi(blank_pos+4);
-
- return true;
-}
-
-#define SET_TAG_POS(TAG) \
- pos = strstr(buf, (TAG)); \
- if (pos) pos+=sizeof(TAG)-1
-
-static bool init_internal()
-{
- size_t bufsize = utilvserver_getProcEntryBufsize();
- char buf[bufsize];
- char const * pos = 0;
- pid_t pid = getpid();
- int num;
-
- errno = 0;
-
- pos=utilvserver_getProcEntry(pid, 0, buf, bufsize);
- if (pos==0 && errno==EAGAIN) return false;
-
- SET_TAG_POS("\n__NR_set_ipv4root: ");
- if ( pos!=0 && getNumRevPair(pos, &num, &rev_ipv4root) ) {
- __NR_set_ipv4root_rev0 =
- __NR_set_ipv4root_rev1 =
- __NR_set_ipv4root_rev2 =
- __NR_set_ipv4root_rev3 = num;
- }
-
- SET_TAG_POS("\n__NR_new_s_context: ");
- if ( pos!=0 && getNumRevPair(pos, &num, &rev_s_context) )
- __NR_new_s_context_rev0 = num;
-
- return true;
-}
-
-#undef SET_TAG_POS
-
-static void init()
-{
- if (!is_init){
- __NR_set_ipv4root_rev0 = def_NR_set_ipv4root;
- __NR_set_ipv4root_rev1 = def_NR_set_ipv4root;
- __NR_set_ipv4root_rev2 = def_NR_set_ipv4root;
- __NR_set_ipv4root_rev3 = def_NR_set_ipv4root;
- __NR_new_s_context_rev0 = def_NR_new_s_context;
-
- while (!init_internal() && errno==EAGAIN) {}
-
- is_init = true;
- }
-}
-
-void vc_init_legacy()
-{
- init();
-}
-
-void vc_init_internal_legacy(int ctx_rev, int ctx_number,
- int ipv4_rev, int ipv4_number)
-{
- rev_s_context = ctx_rev;
- __NR_new_s_context_rev0 = ctx_number;
-
- rev_ipv4root = ipv4_rev;
- __NR_set_ipv4root_rev0 = ipv4_number;
- __NR_set_ipv4root_rev1 = ipv4_number;
- __NR_set_ipv4root_rev2 = ipv4_number;
- __NR_set_ipv4root_rev3 = ipv4_number;
-
- is_init = true;
-}
-
-static ALWAYSINLINE xid_t
-vc_new_s_context_legacy(int ctx, int remove_cap, int flags)
-{
- xid_t ret = -1;
- init();
- if (rev_s_context == 0){
- return new_s_context_rev0(ctx, remove_cap, flags);
- }else{
- errno = -ENOSYS;
- ret = VC_NOCTX;
- }
- return ret;
-}
-
-static ALWAYSINLINE int
-vc_set_ipv4root_legacy_internal (
- unsigned long ip[],
- int nb,
- unsigned long bcast,
- unsigned long mask[])
-{
- init();
- if (rev_ipv4root == 0){
- if (nb > 1){
- WRITE_MSG(2,"set_ipv4root: Several IP number specified, but this kernel only supports one. Ignored\n");
- }
- return set_ipv4root_rev0 (ip[0]);
- }else if (rev_ipv4root == 1){
- if (nb > 1){
- WRITE_MSG(2,"set_ipv4root: Several IP number specified, but this kernel only supports one. Ignored\n");
- }
- return set_ipv4root_rev1 (ip[0],bcast);
- }else if (rev_ipv4root == 2){
- return set_ipv4root_rev2 (ip,nb,bcast);
- }else if (rev_ipv4root == 3){
- return set_ipv4root_rev3 (ip,nb,bcast,mask);
- }
- errno = EINVAL;
- return -1;
-}
-
-static ALWAYSINLINE int
-vc_set_ipv4root_legacy(uint32_t bcast, size_t nb, struct vc_ip_mask_pair const *ips)
-{
- unsigned long ip[nb];
- unsigned long mask[nb];
- size_t i;
-
- for (i=0; i<nb; ++i) {
- ip[i] = ips[i].ip;
- mask[i] = ips[i].mask;
- }
-
- return vc_set_ipv4root_legacy_internal(ip, nb, bcast, mask);
-}
+++ /dev/null
-// $Id: syscall-syscall.c 1655 2004-08-19 13:57:53Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver-internal.h"
-
-#if 0
-int
-vc_syscall(uint32_t cmd, xid_t xid, void *data) __attribute__((__alias__("vserver")));
-#else
-int
-vc_syscall(uint32_t cmd, xid_t xid, void *data)
-{
- return vserver(cmd, xid, data);
-}
-#endif
+++ /dev/null
-// $Id: syscall-wrap.h 2446 2007-01-09 13:22:11Z dhozac $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_SYSCALL_WRAP_H
-#define H_UTIL_VSERVER_LIB_SYSCALL_WRAP_H
-
-#include <sys/syscall.h>
-#include <syscall.h>
-#include <unistd.h>
-
-#ifdef ENSC_USE_ALTERNATIVE_SYSCALL_MACROS
-# undef _syscall0
-# undef _syscall1
-# undef _syscall2
-# undef _syscall3
-# undef _syscall4
-# undef _syscall5
-# undef _syscall6
-# undef _syscall7
-
-# include "syscall-alternative.h"
-#endif
-
-#if defined(ENSC_SYSCALL_TRADITIONAL) && defined(__dietlibc__) && !defined(ENSC_DIETLIBC_HAS_SYSCALL)
-extern long int syscall(long int __sysno, ...);
-#endif
-
-#endif // H_UTIL_VSERVER_LIB_SYSCALL_WRAP_H
+++ /dev/null
-// $Id: syscall.c 2448 2007-01-10 18:49:13Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "compat.h"
-#include "vserver.h"
-#include "internal.h"
-
-#define _LINUX_TYPES_H 1
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_COMPAT) && defined(VC_ENABLE_API_LEGACY)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_COMPAT
-# include "syscall-compat.hc"
-#endif
-
-#ifdef VC_ENABLE_API_LEGACY
-# include "syscall-legacy.hc"
-#endif
-
-#include <stdbool.h>
-#include <errno.h>
-
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
-
-xid_t
-vc_new_s_context(xid_t ctx, unsigned int remove_cap, unsigned int flags)
-{
- CALL_VC(CALL_VC_COMPAT(vc_new_s_context, ctx, remove_cap, flags),
- CALL_VC_LEGACY(vc_new_s_context, ctx, remove_cap, flags));
-}
-
-int
-vc_set_ipv4root(uint32_t bcast, size_t nb, struct vc_ip_mask_pair const *ips)
-{
- CALL_VC(CALL_VC_COMPAT(vc_set_ipv4root, bcast, nb, ips),
- CALL_VC_LEGACY(vc_set_ipv4root, bcast, nb, ips));
-}
-
-LINK_WARNING("vc_new_s_context", "warning: vc_new_s_context() is obsoleted; use vc_ctx_create() instead of");
-LINK_WARNING("vc_set_ipv4root", "warning: vc_set_ipv4root() is obsoleted; use vc_net_create() instead of");
-
-#endif
+++ /dev/null
-// $Id: syscall_adddlimit-v13.hc 1881 2005-03-02 01:29:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_add_dlimit_v13b(char const *filename, xid_t xid, uint32_t flags)
-{
- struct vcmd_ctx_dlimit_base_v0 init = {
- .name = filename,
- .flags = flags
- };
-
- return vserver(VCMD_add_dlimit, CTX_USER2KERNEL(xid), &init);
-}
+++ /dev/null
-// $Id: syscall_adddlimit.c 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_adddlimit-v13.hc"
-#endif
-
-int
-vc_add_dlimit(char const *filename, xid_t xid, uint32_t flags)
-{
- CALL_VC(CALL_VC_V13B(vc_add_dlimit, filename, xid, flags));
-}
+++ /dev/null
-// $Id: syscall_cleanupnamespace-v13.hc 1023 2004-02-27 04:42:25Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_cleanup_namespace_v13(int UNUSED tmp)
-{
- return vserver(VCMD_cleanup_namespace, 0, 0);
-}
+++ /dev/null
-// $Id: syscall_cleanupnamespace.c 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_cleanupnamespace-v13.hc"
-#endif
-
-int
-vc_cleanup_namespace()
-{
- CALL_VC(CALL_VC_V13(vc_cleanup_namespace,0));
-}
+++ /dev/null
-// $Id: syscall_ctxcreate-v13.hc 2578 2007-08-08 20:05:26Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE xid_t
-vc_ctx_create_v13(xid_t xid, struct vc_ctx_flags *flags)
-{
- xid_t res = vserver(VCMD_ctx_create_v0, CTX_USER2KERNEL(xid), 0);
-
- if (flags) {
- /* no sane way to report errors here */
- vc_set_cflags(xid, flags);
- }
-
- return CTX_KERNEL2USER(res);
-}
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include <lib_internal/sys_unshare.h>
-
-static inline ALWAYSINLINE xid_t
-vc_ctx_create_v21(xid_t xid, struct vc_ctx_flags *flags)
-{
- struct vcmd_ctx_create data = {
- .flagword = (VC_VXF_STATE_SETUP | VC_VXF_STATE_ADMIN |
- VC_VXF_STATE_INIT)
- };
- xid_t res;
-
- if (flags)
- data.flagword = flags->flagword & flags->mask;
-
- res = vserver(VCMD_ctx_create, CTX_USER2KERNEL(xid), &data);
- res = CTX_KERNEL2USER(res);
-
- if (res != VC_NOCTX) {
- if (utilvserver_checkCompatConfig() & VC_VCI_SPACES) {
- uint32_t spaces = vc_get_space_mask() & ~(CLONE_NEWNS|CLONE_FS);
- sys_unshare(spaces);
- vc_set_namespace(VC_SAMECTX, spaces);
- }
- }
-
- return res;
-}
+++ /dev/null
-// $Id: syscall_ctxcreate.c 2578 2007-08-08 20:05:26Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V13) && defined(VC_ENABLE_API_V21)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_V13)
-# include "syscall_ctxcreate-v13.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_ctxcreate-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V13) || defined(VC_ENABLE_API_V21)
-xid_t
-vc_ctx_create(xid_t xid, struct vc_ctx_flags *flags)
-{
- CALL_VC(CALL_VC_V21 (vc_ctx_create, xid, flags),
- CALL_VC_V13A(vc_ctx_create, xid, flags));
-}
-#endif
+++ /dev/null
-// $Id: syscall_ctxmigrate-v13.hc 2339 2006-09-29 22:15:14Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_ctx_migrate_v13(xid_t xid)
-{
- return vserver(VCMD_ctx_migrate_v0, CTX_USER2KERNEL(xid), NULL);
-}
+++ /dev/null
-// $Id: syscall_ctxmigrate-v21.hc 2501 2007-02-20 17:33:35Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_ctx_migrate_spaces(xid_t xid, uint_least64_t flags)
-{
- int ret;
- struct vcmd_ctx_migrate data = { .flagword = flags };
-
- ret = vc_getXIDType(xid);
- if (ret == vcTYPE_STATIC || ret == vcTYPE_DYNAMIC) {
- ret = vc_enter_namespace(xid, vc_get_space_mask() & ~(CLONE_NEWNS|CLONE_FS));
- if (ret)
- return ret;
- }
-
- return vserver(VCMD_ctx_migrate, CTX_USER2KERNEL(xid), &data);
-}
+++ /dev/null
-// $Id: syscall_ctxmigrate.c 2501 2007-02-20 17:33:35Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V13) && defined(VC_ENABLE_API_V21)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_V13)
-# include "syscall_ctxmigrate-v13.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_ctxmigrate-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V13) || defined(VC_ENABLE_API_V21)
-int
-vc_ctx_migrate(xid_t xid, uint_least64_t flags)
-{
- CALL_VC(CALL_VC_SPACES(vc_ctx_migrate, xid, flags),
- CALL_VC_V13A (vc_ctx_migrate, xid));
-}
-#endif
+++ /dev/null
-// $Id: syscall_ctxstat-v21.hc 2380 2006-11-15 20:14:00Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_ctx_stat_v21(xid_t ctx, struct vc_ctx_stat *stat)
-{
- int ret;
- struct vcmd_ctx_stat_v0 param;
-
- ret = vserver(VCMD_ctx_stat, CTX_USER2KERNEL(ctx), ¶m);
- if (ret)
- return ret;
-
- stat->usecnt = param.usecnt;
- stat->tasks = param.tasks;
- return 0;
-}
+++ /dev/null
-// $Id: syscall_ctxstat.c 2380 2006-11-15 20:14:00Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_ctxstat-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-
-int
-vc_ctx_stat(xid_t ctx, struct vc_ctx_stat *stat)
-{
- CALL_VC(CALL_VC_V21(vc_ctx_stat, ctx, stat));
-}
-
-#endif
+++ /dev/null
-// $Id: syscall_enternamespace-v13.hc 2415 2006-12-08 13:24:49Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_enter_namespace_v13(xid_t xid, uint_least64_t mask)
-{
- if ((mask & (CLONE_NEWNS|CLONE_FS)) == 0)
- return 0;
- return vserver(VCMD_enter_space_v0, CTX_USER2KERNEL(xid), 0);
-}
+++ /dev/null
-// $Id: syscall_enternamespace-v21.hc 2415 2006-12-08 13:24:49Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_enter_namespace_spaces(xid_t xid, uint_least64_t mask)
-{
- struct vcmd_space_mask data = { .mask = mask };
- return vserver(VCMD_enter_space, CTX_USER2KERNEL(xid), &data);
-}
+++ /dev/null
-// $Id: syscall_enternamespace.c 2415 2006-12-08 13:24:49Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V13) && defined(VC_ENABLE_API_V21)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_enternamespace-v13.hc"
-#endif
-
-#ifdef VC_ENABLE_API_V21
-# include "syscall_enternamespace-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V13) || defined(VC_ENABLE_API_V21)
-int
-vc_enter_namespace(xid_t xid, uint_least64_t mask)
-{
- CALL_VC(CALL_VC_SPACES(vc_enter_namespace, xid, mask),
- CALL_VC_V13 (vc_enter_namespace, xid, mask));
-}
-#endif
+++ /dev/null
-// $Id$ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_fget_iattr_v22(int fd, xid_t *ctx, uint_least32_t *flags,
- uint_least32_t *mask)
-{
- int ret;
- struct vcmd_ctx_fiattr_v0 data = { .mask = 0 };
-
- if (mask)
- data.mask = *mask;
- ret = vserver(VCMD_fget_iattr, fd, &data);
- if (ret)
- return ret;
-
- if (ctx)
- *ctx = data.xid;
- if (flags)
- *flags = data.flags;
- if (mask)
- *mask = data.mask;
-
- return 0;
-}
+++ /dev/null
-// $Id$ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_V22)
-# include "syscall_fgetiattr-v22.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V22)
-int
-vc_fget_iattr(int fd, xid_t *ctx, uint_least32_t *flags,
- uint_least32_t *mask)
-{
- CALL_VC(CALL_VC_V22(vc_fget_iattr, fd, ctx, flags, mask));
-}
-#endif
+++ /dev/null
-// $Id$ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_fset_iattr_v22(int fd, xid_t ctx, uint_least32_t flags,
- uint_least32_t mask)
-{
- struct vcmd_ctx_fiattr_v0 data = {
- .xid = ctx,
- .flags = flags,
- .mask = mask
- };
-
- return vserver(VCMD_fset_iattr, fd, &data);
-}
+++ /dev/null
-// $Id$ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_V22)
-# include "syscall_fsetiattr-v22.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V22)
-int
-vc_fset_iattr(int fd, xid_t ctx, uint_least32_t flags,
- uint_least32_t mask)
-{
- CALL_VC(CALL_VC_V22(vc_fset_iattr, fd, ctx, flags, mask));
-}
-#endif
+++ /dev/null
-// $Id: syscall_getccaps-v13.hc 2603 2007-09-02 19:51:14Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_get_ccaps_v13(xid_t xid, struct vc_ctx_caps *caps)
-{
- struct vcmd_ctx_caps_v0 k_caps;
- int res;
-
- res = vserver(VCMD_get_ccaps_v0, CTX_USER2KERNEL(xid), &k_caps);
- caps->bcaps = k_caps.bcaps;
- caps->bmask = ~0ull;
- caps->ccaps = k_caps.ccaps;
- caps->cmask = k_caps.cmask;
-
- return res;
-}
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_get_ccaps_v21(xid_t xid, struct vc_ctx_caps *caps)
-{
- struct vcmd_ctx_caps_v1 k_ccaps;
- struct vcmd_bcaps k_bcaps;
- int res;
-
- res = vserver(VCMD_get_ccaps, CTX_USER2KERNEL(xid), &k_ccaps);
- if (res)
- return res;
- res = vserver(VCMD_get_bcaps, CTX_USER2KERNEL(xid), &k_bcaps);
- if (res)
- return res;
-
- caps->bcaps = k_bcaps.bcaps;
- caps->bmask = k_bcaps.bmask;
- caps->ccaps = k_ccaps.ccaps;
- caps->cmask = k_ccaps.cmask;
-
- return res;
-}
+++ /dev/null
-// $Id: syscall_getccaps.c 2564 2007-07-16 15:10:08Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V13) && defined(VC_ENABLE_API_V21)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_V13)
-# include "syscall_getccaps-v13.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_getccaps-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V13) || defined(VC_ENABLE_API_V21)
-int
-vc_get_ccaps(xid_t xid, struct vc_ctx_caps *caps)
-{
- if (caps==0) {
- errno = EFAULT;
- return -1;
- }
-
- CALL_VC(CALL_VC_V21(vc_get_ccaps, xid, caps),
- CALL_VC_V13A(vc_get_ccaps, xid, caps));
-}
-#endif
+++ /dev/null
-// $Id: syscall_getcflags-v13.hc 1449 2004-04-14 23:19:51Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_get_cflags_v13(xid_t xid, struct vc_ctx_flags *flags)
-{
- struct vcmd_ctx_flags_v0 k_flags;
- int res;
-
- if (flags==0) {
- errno = EFAULT;
- return -1;
- }
-
- res = vserver(VCMD_get_cflags, CTX_USER2KERNEL(xid), &k_flags);
- flags->flagword = k_flags.flagword;
- flags->mask = k_flags.mask;
-
- return res;
-}
+++ /dev/null
-// $Id: syscall_getcflags.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V13)
-# include "syscall_getcflags-v13.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V13)
-int
-vc_get_cflags(xid_t xid, struct vc_ctx_flags *flags)
-{
- CALL_VC(CALL_VC_V13A(vc_get_cflags, xid, flags));
-}
-#endif
+++ /dev/null
-// $Id: syscall_getdlimit-v13.hc 1881 2005-03-02 01:29:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_get_dlimit_v13b(char const *filename, xid_t xid,
- uint_least32_t flags, struct vc_ctx_dlimit *limits)
-{
- int rc;
- struct vcmd_ctx_dlimit_v0 attr = {
- .name = filename,
- .flags = flags
- };
-
- rc = vserver(VCMD_get_dlimit, CTX_USER2KERNEL(xid), &attr);
-
- if (limits) {
- limits->space_used = CDLIM_KERNEL2USER(attr.space_used);
- limits->space_total = CDLIM_KERNEL2USER(attr.space_total);
- limits->inodes_used = CDLIM_KERNEL2USER(attr.inodes_used);
- limits->inodes_total = CDLIM_KERNEL2USER(attr.inodes_total);
- limits->reserved = CDLIM_KERNEL2USER(attr.reserved);
- }
-
- return rc;
-}
+++ /dev/null
-// $Id: syscall_getdlimit.c 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_getdlimit-v13.hc"
-#endif
-
-int
-vc_get_dlimit(char const *filename, xid_t xid,
- uint_least32_t flags, struct vc_ctx_dlimit *limits)
-{
- CALL_VC(CALL_VC_V13B(vc_get_dlimit, filename, xid, flags, limits));
-}
+++ /dev/null
-// $Id: syscall_getiattr-fscompat.hc 2151 2005-07-15 18:06:27Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "ioctl-getext2flags.hc"
-#include "ioctl-getfilecontext.hc"
-#include "ioctl-getxflg.hc"
-
-#include <fcntl.h>
-static inline ALWAYSINLINE int
-vc_get_iattr_fscompat(char const *filename,
- xid_t * /*@null@*/ xid,
- uint32_t * /*@null@*/ flags,
- uint32_t * mask)
-{
- struct stat st;
- int stat_rc;
- int fd;
- int old_mask = *mask;
-
- *mask = 0;
-
- if (lstat(filename, &st)==-1) return -1;
- if (!S_ISREG(st.st_mode) && !S_ISDIR(st.st_mode)) return 0;
-
- fd = open(filename, O_RDONLY|O_NONBLOCK);
- if (fd==-1) return -1;
-
- stat_rc = fstat(fd, &st);
- if (stat_rc==-1) goto err;
-
- if ( old_mask&VC_IATTR_XID ) {
- *xid = vc_X_get_filecontext(fd);
- if (*xid!=VC_NOCTX) *mask |= VC_IATTR_XID;
- }
-
- if ( old_mask&VC_IATTR_IUNLINK ) {
- long tmp;
- int rc = vc_X_get_ext2flags(fd, &tmp);
-
- if (rc!=-1) {
- *mask |= VC_IATTR_IUNLINK;
- if (tmp & (VC_IMMUTABLE_FILE_FL|VC_IMMUTABLE_LINK_FL))
- *flags |= VC_IATTR_IUNLINK;
- }
- }
-
- if ( (old_mask&VC_IATTR_BARRIER) && S_ISDIR(st.st_mode)) {
- long ext2_flags;
-
- *mask |= VC_IATTR_BARRIER;
- if ((st.st_mode&0777)==0 &&
- vc_X_get_ext2flags(fd, &ext2_flags)!=-1 &&
- (ext2_flags & VC_IMMUTABLE_LINK_FL))
- *flags |= VC_IATTR_BARRIER;
- }
-
- if ( (old_mask&(VC_IATTR_WATCH|VC_IATTR_HIDE)) ){
- long tmp;
- int rc = vc_X_get_xflg(fd, &tmp);
- if (rc!=-1) {
- *mask |= (VC_IATTR_WATCH|VC_IATTR_HIDE);
- if (tmp&1) *flags |= VC_IATTR_HIDE;
- if (tmp&2) *flags |= VC_IATTR_WATCH;
- }
- }
-
- close(fd);
- return 0;
- err:
- {
- int old_errno = errno;
- close(fd);
- errno = old_errno;
- return -1;
- }
-}
+++ /dev/null
-// $Id: syscall_getiattr-v13.hc 1216 2004-03-12 02:57:01Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_get_iattr_v13(char const *filename,
- xid_t *xid, uint32_t *flags, uint32_t *mask)
-{
- struct vcmd_ctx_iattr_v1 attr;
- int rc;
-
- attr.name = filename;
-
- rc = vserver(VCMD_get_iattr, 0, &attr);
- if (xid) *xid = CTX_KERNEL2USER(attr.xid);
- if (flags) *flags = attr.flags;
- if (mask) *mask = attr.mask;
-
- return rc;
-}
+++ /dev/null
-// $Id: syscall_getiattr.c 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_FSCOMPAT) && defined(VC_ENABLE_API_V13)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_getiattr-v13.hc"
-#endif
-
-#ifdef VC_ENABLE_API_FSCOMPAT
-# include "syscall_getiattr-fscompat.hc"
-#endif
-
-int
-vc_get_iattr(char const *filename, xid_t *xid, uint32_t *flags, uint32_t *mask)
-{
- if ( (mask==0) ||
- ((*mask&VC_IATTR_XID) && xid==0) ||
- ((*mask&~VC_IATTR_XID) && flags==0) ) {
- errno = EFAULT;
- return -1;
- }
- if ( flags ) *flags &= ~*mask;
-
- CALL_VC(CALL_VC_V13 (vc_get_iattr, filename, xid, flags, mask),
- CALL_VC_FSCOMPAT(vc_get_iattr, filename, xid, flags, mask));
-}
+++ /dev/null
-// $Id: syscall_getncaps-net.hc 1501 2004-04-22 20:46:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_get_ncaps_net(nid_t nid, struct vc_net_caps *caps)
-{
- struct vcmd_net_caps_v0 k_caps;
- int res;
-
- res = vserver(VCMD_get_ncaps, NID_USER2KERNEL(nid), &k_caps);
- caps->ncaps = k_caps.ncaps;
- caps->cmask = k_caps.cmask;
-
- return res;
-}
+++ /dev/null
-// $Id: syscall_getncaps.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_NET)
-# include "syscall_getncaps-net.hc"
-#endif
-
-#if defined(VC_ENABLE_API_NET)
-int
-vc_get_ncaps(nid_t nid, struct vc_net_caps *caps)
-{
- if (caps==0) {
- errno = EFAULT;
- return -1;
- }
-
- CALL_VC(CALL_VC_NET(vc_get_ncaps, nid, caps));
-}
-#endif
+++ /dev/null
-// $Id: syscall_getnflags-net.hc 1501 2004-04-22 20:46:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_get_nflags_net(nid_t nid, struct vc_net_flags *flags)
-{
- struct vcmd_net_flags_v0 k_flags;
- int res;
-
- res = vserver(VCMD_get_nflags, NID_USER2KERNEL(nid), &k_flags);
- flags->flagword = k_flags.flagword;
- flags->mask = k_flags.mask;
-
- return res;
-}
+++ /dev/null
-// $Id: syscall_getnflags.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_NET)
-# include "syscall_getnflags-net.hc"
-#endif
-
-#if defined(VC_ENABLE_API_NET)
-int
-vc_get_nflags(nid_t nid, struct vc_net_flags *flags)
-{
- if (flags==0) {
- errno = EFAULT;
- return -1;
- }
-
- CALL_VC(CALL_VC_NET(vc_get_nflags, nid, flags));
-}
-#endif
+++ /dev/null
-// $Id: syscall_getnxinfo-net.hc 1501 2004-04-22 20:46:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_get_nx_info_net(nid_t nid, struct vc_nx_info *info)
-{
- struct vcmd_nx_info_v0 res;
- int rc;
-
- rc = vserver(VCMD_nx_info, NID_USER2KERNEL(nid), &res);
- if (rc==-1) return -1;
-
- info->nid = NID_KERNEL2USER(res.nid);
- return rc;
-}
+++ /dev/null
-// $Id: syscall_getnxinfo.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_NET
-# include "syscall_getnxinfo-net.hc"
-#endif
-
-#ifdef VC_ENABLE_API_NET
-int
-vc_get_nx_info(nid_t nid, struct vc_nx_info *info)
-{
- if (info==0) {
- errno = EFAULT;
- return -1;
- }
-
- CALL_VC(CALL_VC_NET(vc_get_nx_info, nid, info));
-}
-#endif
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_get_sched_v21(xid_t xid, struct vc_set_sched *data)
-{
- struct vcmd_sched_v5 k_data = {
- .mask = data->set_mask,
- .cpu_id = data->cpu_id,
- .bucket_id = data->bucket_id,
- };
- int ret;
-
- ret = vserver(VCMD_get_sched, xid, &k_data);
- data->set_mask = k_data.mask;
- data->cpu_id = k_data.cpu_id;
- data->bucket_id = k_data.bucket_id;
- data->fill_rate = k_data.fill_rate[0];
- data->fill_rate2 = k_data.fill_rate[1];
- data->interval = k_data.interval[0];
- data->interval2 = k_data.interval[1];
- data->tokens = k_data.tokens;
- data->tokens_min = k_data.tokens_min;
- data->tokens_max = k_data.tokens_max;
- data->priority_bias = k_data.prio_bias;
-
- return ret;
-}
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_getsched-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-int
-vc_get_sched(xid_t xid, struct vc_set_sched *sched)
-{
- CALL_VC(CALL_VC_V21(vc_get_sched, xid, sched));
-}
-#endif
+++ /dev/null
-// $Id: syscall_getspacemask-v21.hc 2415 2006-12-08 13:24:49Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE uint_least64_t
-vc_get_space_mask_spaces(int UNUSED tmp)
-{
- struct vcmd_space_mask data = { .mask = 0 };
- int ret = vserver(VCMD_get_space_mask, 0, &data);
- if (ret)
- return ret;
- return data.mask;
-}
+++ /dev/null
-// $Id: syscall_getspacemask.c 2415 2006-12-08 13:24:49Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_getspacemask-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-uint_least64_t
-vc_get_space_mask()
-{
- CALL_VC(CALL_VC_SPACES(vc_get_space_mask, 0));
-}
-#endif
+++ /dev/null
-// $Id: syscall_gettasknid-net.hc 1501 2004-04-22 20:46:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE nid_t
-vc_get_task_nid_net(pid_t pid)
-{
- nid_t res=vserver(VCMD_task_nid, pid, 0);
- return NID_KERNEL2USER(res);
-}
+++ /dev/null
-// $Id: syscall_gettasknid.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_NET
-# include "syscall_gettasknid-net.hc"
-#endif
-
-#ifdef VC_ENABLE_API_NET
-nid_t
-vc_get_task_nid(pid_t pid)
-{
- CALL_VC(CALL_VC_NET(vc_get_task_nid, pid));
-}
-#endif
+++ /dev/null
-// $Id: syscall_gettaskxid-oldproc.hc 738 2004-02-02 18:58:00Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "utils-legacy.h"
-
-static xid_t
-getctx_legacy_internal(pid_t pid)
-{
- size_t bufsize = utilvserver_getProcEntryBufsize();
- char buf[bufsize];
- char *pos = 0;
-
- pos = utilvserver_getProcEntry(pid, "\ns_context: ", buf, bufsize);
-
- if (pos!=0) return atoi(pos);
- else return VC_NOCTX;
-}
-
-static inline ALWAYSINLINE xid_t
-vc_get_task_xid_oldproc(pid_t pid)
-{
- xid_t res;
- do {
- res = getctx_legacy_internal(pid);
- } while (res==VC_NOCTX && errno==EAGAIN);
-
- return res;
-}
+++ /dev/null
-// $Id: syscall_gettaskxid-v13.hc 701 2004-01-22 21:35:36Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE xid_t
-vc_get_task_xid_v13(pid_t pid)
-{
- xid_t res=vserver(VCMD_task_xid, pid, 0);
- return CTX_KERNEL2USER(res);
-}
+++ /dev/null
-// $Id: syscall_gettaskxid.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_OLDPROC) && defined(VC_ENABLE_API_V13)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_gettaskxid-v13.hc"
-#endif
-
-#ifdef VC_ENABLE_API_OLDPROC
-# include "syscall_gettaskxid-oldproc.hc"
-#endif
-
-xid_t
-vc_get_task_xid(pid_t pid)
-{
- CALL_VC(CALL_VC_V13 (vc_get_task_xid, pid),
- CALL_VC_OLDPROC(vc_get_task_xid, pid));
-}
+++ /dev/null
-// $Id: syscall_getvci-v21.hc 2589 2007-08-16 03:06:50Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE vc_vci_t
-vc_get_vci_v21(int UNUSED tmp)
-{
- return vserver(VCMD_get_vci, 0, 0);
-}
+++ /dev/null
-// $Id: syscall_getvci.c 2589 2007-08-16 03:06:50Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_getvci-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-
-vc_vci_t
-vc_get_vci()
-{
- CALL_VC(CALL_VC_V21(vc_get_vci, 0));
-}
-
-#endif
+++ /dev/null
-// $Id: syscall_getvhiname-olduts.hc 733 2004-02-02 18:32:53Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_get_vhi_name_olduts(xid_t xid, vc_uts_type type, char *val, size_t len)
-{
- if (xid!=VC_SAMECTX) {
- errno = ESRCH;
- return -1;
- }
-
- switch (type) {
- case vcVHI_NODENAME : return gethostname (val, len);
- case vcVHI_DOMAINNAME : return getdomainname(val, len);
- default :
- errno = ENOENT;
- return -1;
- }
-}
+++ /dev/null
-// $Id: syscall_getvhiname-v13.hc 2242 2006-01-04 12:29:15Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
- // HACK: workaround naming changes instead of defining yet another interface
- // version
-#if !defined(VCMD_get_vhi_name) && defined(VCMD_vx_get_vhi_name)
-# define VCMD_get_vhi_name VCMD_vx_get_vhi_name
-# define vcmd_vhi_name_v0 vcmd_vxi_vhi_name_v0
-#endif
-
-
-static inline ALWAYSINLINE int
-vc_get_vhi_name_v13(xid_t xid, vc_uts_type type, char *val, size_t len)
-{
- struct vcmd_vhi_name_v0 cmd;
- int rc;
- size_t l = sizeof(cmd.name);
-
- cmd.field = VHI_USER2KERNEL(type);
- rc = vserver(VCMD_get_vhi_name, CTX_USER2KERNEL(xid), &cmd);
- ENSC_FIX_IOCTL(rc);
- if (rc==-1) return -1;
-
- l = l>len ? len : l;
- strncpy(val, cmd.name, l);
- /* DO NOT terminate 'val' with '\0' explicitly */
- return 0;
-}
+++ /dev/null
-// $Id: syscall_getvhiname.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_OLDUTS) && defined(VC_ENABLE_API_V13)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_getvhiname-v13.hc"
-#endif
-
-#ifdef VC_ENABLE_API_OLDUTS
-# include "syscall_getvhiname-olduts.hc"
-#endif
-
-int
-vc_get_vhi_name(xid_t xid, vc_uts_type type, char *val, size_t len)
-{
- CALL_VC(CALL_VC_V13 (vc_get_vhi_name, xid, type, val, len),
- CALL_VC_OLDUTS(vc_get_vhi_name, xid, type, val, len));
-}
+++ /dev/null
-// $Id: syscall_getvxinfo-oldproc.hc 1091 2004-03-05 04:40:59Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_get_vx_info_oldproc(xid_t UNUSED xid, struct vc_vx_info UNUSED *info)
-{
- // TODO: ???
- errno = ENOSYS;
- return -1;
-}
+++ /dev/null
-// $Id: syscall_getvxinfo-v13.hc 970 2004-02-20 17:04:12Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_get_vx_info_v13(xid_t xid, struct vc_vx_info *info)
-{
- if (xid==0 || xid==1) {
- info->xid = xid;
- info->initpid = -1;
-
- return 0;
- }
- else {
- struct vcmd_vx_info_v0 res;
- int rc;
-
- rc = vserver(VCMD_vx_info, CTX_USER2KERNEL(xid), &res);
- if (rc==-1) return -1;
-
- info->xid = CTX_KERNEL2USER(res.xid);
- info->initpid = res.initpid;
-
- return rc;
- }
-}
+++ /dev/null
-// $Id: syscall_getvxinfo.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_OLDPROC) && defined(VC_ENABLE_API_V13)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_getvxinfo-v13.hc"
-#endif
-
-#ifdef VC_ENABLE_API_OLDPROC
-# include "syscall_getvxinfo-oldproc.hc"
-#endif
-
-int
-vc_get_vx_info(xid_t xid, struct vc_vx_info *info)
-{
- if (info==0) {
- errno = EFAULT;
- return -1;
- }
- CALL_VC(CALL_VC_V13 (vc_get_vx_info, xid, info),
- CALL_VC_OLDPROC(vc_get_vx_info, xid, info));
-}
+++ /dev/null
-// $Id: syscall_kill-v11.hc 736 2004-02-02 18:55:52Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_ctx_kill_v11(xid_t ctx, pid_t pid, int sig)
-{
- struct vcmd_ctx_kill_v0 param = { .pid = 0 };
- param.pid = pid;
- param.sig = sig;
-
- return vserver(VCMD_ctx_kill, CTX_USER2KERNEL(ctx), ¶m);
-}
+++ /dev/null
-// $Id: syscall_kill.c 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V11) || defined(VC_ENABLE_API_V13)
-# include "syscall_kill-v11.hc"
-#endif
-
-#ifdef VC_ENABLE_API_V13
-# define vc_ctx_kill_v13 vc_ctx_kill_v11
-#endif
-
-
-#if defined(VC_ENABLE_API_V11) || defined(VC_ENABLE_API_V13)
-
- // NOTICE: the reverse order of V11 -> V13 is correct here since these are
- // the same syscalls
-
-int
-vc_ctx_kill(xid_t ctx, pid_t pid, int sig)
-{
- CALL_VC(CALL_VC_V11(vc_ctx_kill, ctx, pid, sig),
- CALL_VC_V13(vc_ctx_kill, ctx, pid, sig));
-}
-
-#endif
+++ /dev/null
-// $Id: syscall_netadd-net.hc 2584 2007-08-10 15:28:42Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_net_add_net(nid_t nid, struct vc_net_addr const *info)
-{
- struct vcmd_net_addr_v0 k_info;
- size_t i;
-
- k_info.type = info->vna_type & (VC_NXA_TYPE_IPV4|VC_NXA_TYPE_IPV6|VC_NXA_MOD_BCAST);
- k_info.count = 1;
-
- if ((k_info.type | VC_NXA_TYPE_ADDR) != info->vna_type) {
- errno = EINVAL;
- return -1;
- }
-
- switch (k_info.type) {
- case VC_NXA_TYPE_IPV4:
- case VC_NXA_TYPE_IPV4 | VC_NXA_MOD_BCAST:
- k_info.ip[0].s_addr = info->vna_v4_ip.s_addr;
- k_info.mask[0].s_addr = info->vna_v4_mask.s_addr;
- break;
- case VC_NXA_TYPE_IPV6:
- for (i = 0; i < 4; i++)
- k_info.ip[i].s_addr = info->vna_v6_ip.s6_addr32[i];
- k_info.mask[0].s_addr = info->vna_prefix;
- break;
- }
-
- return vserver(VCMD_net_add_v0, NID_USER2KERNEL(nid), &k_info);
-}
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_net_add_netv2(nid_t nid, struct vc_net_addr const *info)
-{
- switch (info->vna_type & (VC_NXA_TYPE_IPV4 | VC_NXA_TYPE_IPV6)) {
- case VC_NXA_TYPE_IPV4: {
- struct vcmd_net_addr_ipv4_v1 k_info;
-
- k_info.type = info->vna_type & ~VC_NXA_TYPE_IPV4;
- k_info.flags = info->vna_flags;
- k_info.ip.s_addr = info->vna_v4_ip.s_addr;
- k_info.mask.s_addr = info->vna_v4_mask.s_addr;
-
- return vserver(VCMD_net_add_ipv4, NID_USER2KERNEL(nid), &k_info);
- }
- case VC_NXA_TYPE_IPV6: {
- struct vcmd_net_addr_ipv6_v1 k_info;
-
- k_info.type = info->vna_type & ~VC_NXA_TYPE_IPV6;
- k_info.flags = info->vna_flags;
- k_info.prefix = info->vna_prefix;
- memcpy(k_info.ip.s6_addr, info->vna_v6_ip.s6_addr, sizeof(struct in6_addr));
- memcpy(k_info.mask.s6_addr, info->vna_v6_mask.s6_addr, sizeof(struct in6_addr));
-
- return vserver(VCMD_net_add_ipv6, NID_USER2KERNEL(nid), &k_info);
- }
- default:
- errno = EINVAL;
- return -1;
- }
-}
+++ /dev/null
-// $Id: syscall_netadd.c 2578 2007-08-08 20:05:26Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_NET) && defined(VC_ENABLE_API_NETV2)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_NET)
-# include "syscall_netadd-net.hc"
-#endif
-
-#if defined(VC_ENABLE_API_NETV2)
-# include "syscall_netadd-netv2.hc"
-#endif
-
-#if defined(VC_ENABLE_API_NET) || defined(VC_ENABLE_API_NETV2)
-int
-vc_net_add(nid_t nid, struct vc_net_addr const *info)
-{
- if (info==0) {
- errno = EFAULT;
- return -1;
- }
-
- CALL_VC(CALL_VC_NETV2(vc_net_add, nid, info),
- CALL_VC_NET (vc_net_add, nid, info));
-}
-#endif
+++ /dev/null
-// $Id: syscall_netcreate-net.hc 1501 2004-04-22 20:46:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE nid_t
-vc_net_create_net(nid_t nid)
-{
- nid_t res = vserver(VCMD_net_create, NID_USER2KERNEL(nid), 0);
-
- return NID_KERNEL2USER(res);
-}
+++ /dev/null
-// $Id: syscall_netcreate.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_NET)
-# include "syscall_netcreate-net.hc"
-#endif
-
-#if defined(VC_ENABLE_API_NET)
-nid_t
-vc_net_create(nid_t nid)
-{
- CALL_VC(CALL_VC_NET(vc_net_create, nid));
-}
-#endif
+++ /dev/null
-// $Id: syscall_netmigrate-net.hc 1501 2004-04-22 20:46:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_net_migrate_net(nid_t nid)
-{
- return vserver(VCMD_net_migrate, NID_USER2KERNEL(nid), 0);
-}
+++ /dev/null
-// $Id: syscall_netmigrate.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_NET)
-# include "syscall_netmigrate-net.hc"
-#endif
-
-#if defined(VC_ENABLE_API_NET)
-int
-vc_net_migrate(nid_t nid)
-{
- CALL_VC(CALL_VC_NET(vc_net_migrate, nid));
-}
-#endif
+++ /dev/null
-// $Id: syscall_netremove-net.hc 2578 2007-08-08 20:05:26Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_net_remove_net(nid_t nid, struct vc_net_addr const *info)
-{
- struct vcmd_net_addr_v0 k_info;
- size_t i;
-
- k_info.type = info->vna_type & (VC_NXA_TYPE_IPV4|VC_NXA_TYPE_IPV6);
- k_info.count = 1;
- switch (info->vna_type) {
- case VC_NXA_TYPE_IPV4 | VC_NXA_TYPE_ADDR:
- k_info.ip[0].s_addr = info->vna_v4_ip.s_addr;
- k_info.mask[0].s_addr = info->vna_v4_mask.s_addr;
- break;
- case VC_NXA_TYPE_IPV6 | VC_NXA_TYPE_ADDR:
- for (i = 0; i < 4; i++)
- k_info.ip[i].s_addr = info->vna_v6_ip.s6_addr32[i];
- k_info.mask[0].s_addr = info->vna_prefix;
- break;
- case VC_NXA_TYPE_ANY:
- k_info.type = (uint16_t) -1;
- k_info.count = -1;
- break;
- default:
- errno = EINVAL;
- return -1;
- }
-
- return vserver(VCMD_net_remove_v0, NID_USER2KERNEL(nid), &k_info);
-}
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_net_remove_netv2(nid_t nid, struct vc_net_addr const *info)
-{
- if (info->vna_type == VC_NXA_TYPE_ANY) {
- struct vcmd_net_addr_ipv4_v1 k_ipv4;
- struct vcmd_net_addr_ipv6_v1 k_ipv6;
- int ret;
-
- k_ipv4.type = VC_NXA_TYPE_ANY;
- k_ipv6.type = VC_NXA_TYPE_ANY;
-
- ret = vserver(VCMD_net_remove_ipv4, NID_USER2KERNEL(nid), &k_ipv4);
- if (ret == -1)
- return -1;
- return vserver(VCMD_net_remove_ipv6, NID_USER2KERNEL(nid), &k_ipv6);
- }
- switch (info->vna_type & (VC_NXA_TYPE_IPV4 | VC_NXA_TYPE_IPV6)) {
- case VC_NXA_TYPE_IPV4: {
- struct vcmd_net_addr_ipv4_v1 k_info;
-
- k_info.type = info->vna_type & ~VC_NXA_TYPE_IPV4;
- k_info.flags = info->vna_flags;
- k_info.ip.s_addr = info->vna_v4_ip.s_addr;
- k_info.mask.s_addr = info->vna_v4_mask.s_addr;
-
- return vserver(VCMD_net_remove_ipv4, NID_USER2KERNEL(nid), &k_info);
- }
- case VC_NXA_TYPE_IPV6: {
- struct vcmd_net_addr_ipv6_v1 k_info;
-
- k_info.type = info->vna_type & ~VC_NXA_TYPE_IPV6;
- k_info.flags = info->vna_flags;
- k_info.prefix = info->vna_prefix;
- memcpy(k_info.ip.s6_addr, info->vna_v6_ip.s6_addr, sizeof(struct in6_addr));
- memcpy(k_info.mask.s6_addr, info->vna_v6_mask.s6_addr, sizeof(struct in6_addr));
-
- return vserver(VCMD_net_remove_ipv6, NID_USER2KERNEL(nid), &k_info);
- }
- default:
- errno = EINVAL;
- return -1;
- }
-}
+++ /dev/null
-// $Id: syscall_netremove.c 2578 2007-08-08 20:05:26Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_NET) && defined(VC_ENABLE_API_NETV2)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_NET)
-# include "syscall_netremove-net.hc"
-#endif
-
-#if defined(VC_ENABLE_API_NETV2)
-# include "syscall_netremove-netv2.hc"
-#endif
-
-#if defined(VC_ENABLE_API_NET) || defined(VC_ENABLE_API_NETV2)
-int
-vc_net_remove(nid_t nid, struct vc_net_addr const *info)
-{
- if (info==0) {
- errno = EFAULT;
- return -1;
- }
-
- CALL_VC(CALL_VC_NETV2(vc_net_remove, nid, info),
- CALL_VC_NET (vc_net_remove, nid, info));
-}
-#endif
+++ /dev/null
-// $Id: syscall_remdlimit-v13.hc 1881 2005-03-02 01:29:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_rem_dlimit_v13b(char const *filename, xid_t xid, uint32_t flags)
-{
- struct vcmd_ctx_dlimit_base_v0 init = {
- .name = filename,
- .flags = flags
- };
-
- return vserver(VCMD_rem_dlimit, CTX_USER2KERNEL(xid), &init);
-}
+++ /dev/null
-// $Id: syscall_remdlimit.c 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_remdlimit-v13.hc"
-#endif
-
-int
-vc_rem_dlimit(char const *filename, xid_t xid, uint32_t flags)
-{
- CALL_VC(CALL_VC_V13B(vc_rem_dlimit, filename, xid, flags));
-}
+++ /dev/null
-// $Id: syscall_resetminmax-v21.hc 2380 2006-11-15 20:14:00Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_reset_minmax_v21(xid_t ctx)
-{
- return vserver(VCMD_reset_minmax, CTX_USER2KERNEL(ctx), 0);
-}
+++ /dev/null
-// $Id: syscall_resetminmax.c 2380 2006-11-15 20:14:00Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_resetminmax-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-
-int
-vc_reset_minmax(xid_t ctx)
-{
- CALL_VC(CALL_VC_V21(vc_reset_minmax, ctx));
-}
-
-#endif
+++ /dev/null
-// $Id: syscall_rlimit-v11.hc 976 2004-02-20 19:03:24Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define KERN2USR(LIMIT) \
- (((LIMIT)==CRLIM_INFINITY) ? VC_LIM_INFINITY : \
- ((LIMIT)==CRLIM_KEEP) ? VC_LIM_KEEP : (LIMIT))
-
-#define USR2KERN(LIMIT) \
- (((LIMIT)==VC_LIM_INFINITY) ? CRLIM_INFINITY : \
- ((LIMIT)==VC_LIM_KEEP) ? CRLIM_KEEP : (LIMIT))
-
-static inline ALWAYSINLINE int
-vc_get_rlimit_v11(xid_t ctx, int resource, struct vc_rlimit *lim)
-{
- struct vcmd_ctx_rlimit_v0 vc_lim;
- int rc;
-
- vc_lim.id = resource;
- rc = vserver(VCMD_get_rlimit, CTX_USER2KERNEL(ctx), &vc_lim);
- lim->min = KERN2USR(vc_lim.minimum);
- lim->soft = KERN2USR(vc_lim.softlimit);
- lim->hard = KERN2USR(vc_lim.maximum);
-
- return rc;
-}
-
-static inline ALWAYSINLINE int
-vc_set_rlimit_v11(xid_t ctx, int resource, struct vc_rlimit const *lim)
-{
- struct vcmd_ctx_rlimit_v0 vc_lim;
-
- vc_lim.id = resource;
- vc_lim.minimum = USR2KERN(lim->min);
- vc_lim.softlimit = USR2KERN(lim->soft);
- vc_lim.maximum = USR2KERN(lim->hard);
-
- return vserver(VCMD_set_rlimit, CTX_USER2KERNEL(ctx), &vc_lim);
-}
-
-static inline ALWAYSINLINE int
-vc_get_rlimit_mask_v11(xid_t ctx, int UNUSED tmp, struct vc_rlimit_mask *lim)
-{
- struct vcmd_ctx_rlimit_mask_v0 vc_lim;
- int rc;
-
- rc = vserver(VCMD_get_rlimit_mask, CTX_USER2KERNEL(ctx), &vc_lim);
-
- lim->min = vc_lim.minimum;
- lim->soft = vc_lim.softlimit;
- lim->hard = vc_lim.maximum;
-
- return rc;
-}
-
-#undef KERN2USR
-#undef USR2KERN
+++ /dev/null
-// $Id: syscall_rlimit.c 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "compat.h"
-
-#include "vserver.h"
-#include "internal.h"
-#include "virtual.h"
-
-
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_V11) || defined(VC_ENABLE_API_V13)
-# include "syscall_rlimit-v11.hc"
-#endif
-
-#ifdef VC_ENABLE_API_V13
-# define vc_get_rlimit_v13 vc_get_rlimit_v11
-# define vc_set_rlimit_v13 vc_set_rlimit_v11
-# define vc_get_rlimit_mask_v13 vc_get_rlimit_mask_v11
-#endif
-
-
-#if defined(VC_ENABLE_API_V11) || defined(VC_ENABLE_API_V13)
-
- // NOTICE: the reverse order of V11 -> V13 is correct here since these are
- // the same syscalls
-
-int
-vc_get_rlimit(xid_t ctx, int resource, struct vc_rlimit *lim)
-{
- CALL_VC(CALL_VC_V11(vc_get_rlimit, ctx, resource, lim),
- CALL_VC_V13(vc_get_rlimit, ctx, resource, lim));
-}
-
-int
-vc_set_rlimit(xid_t ctx, int resource, struct vc_rlimit const *lim)
-{
- CALL_VC(CALL_VC_V11(vc_set_rlimit, ctx, resource, lim),
- CALL_VC_V13(vc_set_rlimit, ctx, resource, lim));
-}
-
-int
-vc_get_rlimit_mask(xid_t ctx, struct vc_rlimit_mask *lim)
-{
- CALL_VC(CALL_VC_V11(vc_get_rlimit_mask, ctx, 0, lim),
- CALL_VC_V13(vc_get_rlimit_mask, ctx, 0, lim));
-}
-
-
-#endif
+++ /dev/null
-// $Id: syscall_rlimitstat-v21.hc 2380 2006-11-15 20:14:00Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_rlimit_stat_v21(xid_t ctx, int resource, struct vc_rlimit_stat *stat)
-{
- struct vcmd_rlimit_stat_v0 param = { .id = resource };
- int ret;
-
- ret = vserver(VCMD_rlimit_stat, CTX_USER2KERNEL(ctx), ¶m);
- if (ret)
- return ret;
-
- stat->hits = param.hits;
- stat->value = param.value;
- stat->minimum = param.minimum;
- stat->maximum = param.maximum;
-
- return 0;
-}
+++ /dev/null
-// $Id: syscall_rlimitstat.c 2380 2006-11-15 20:14:00Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_rlimitstat-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-
-int
-vc_rlimit_stat(xid_t ctx, int resource, struct vc_rlimit_stat *stat)
-{
- CALL_VC(CALL_VC_V21(vc_rlimit_stat, ctx, resource, stat));
-}
-
-#endif
+++ /dev/null
-// $Id: syscall_schedinfo-v21.hc 2449 2007-01-10 18:53:07Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_sched_info_v21(xid_t ctx, struct vc_sched_info *info)
-{
- int ret;
- struct vcmd_sched_info param = { .cpu_id = info->cpu_id, .bucket_id = info->bucket_id };
-
- ret = vserver(VCMD_sched_info, CTX_USER2KERNEL(ctx), ¶m);
- if (ret)
- return ret;
-
-#define G(ATTR) info->ATTR = param.ATTR
- G(user_msec);
- G(sys_msec);
- G(hold_msec);
- G(token_usec);
- G(vavavoom);
-
- return 0;
-}
+++ /dev/null
-// $Id: syscall_schedinfo.c 2449 2007-01-10 18:53:07Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_schedinfo-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-
-int
-vc_sched_info(xid_t ctx, struct vc_sched_info *info)
-{
- CALL_VC(CALL_VC_V21(vc_sched_info, ctx, info));
-}
-
-#endif
+++ /dev/null
-// $Id: syscall_setccaps-v13.hc 2367 2006-11-03 19:59:15Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_set_ccaps_v13(xid_t xid, struct vc_ctx_caps const *caps)
-{
- struct vcmd_ctx_caps_v0 k_caps;
-
- k_caps.bcaps = (caps->bcaps & caps->bmask) | ~caps->bmask;
- k_caps.ccaps = caps->ccaps;
- k_caps.cmask = caps->cmask;
-
- return vserver(VCMD_set_ccaps_v0, CTX_USER2KERNEL(xid), &k_caps);
-}
+++ /dev/null
-// $Id: syscall_setccaps-v21.hc 2372 2006-11-05 17:48:24Z dhozac $ --*- c -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_set_ccaps_v21(xid_t xid, struct vc_ctx_caps const *caps)
-{
- struct vcmd_ctx_caps_v1 k_ccaps;
- struct vcmd_bcaps k_bcaps;
- int ret;
-
- k_bcaps.bcaps = caps->bcaps;
- k_bcaps.bmask = caps->bmask;
- k_ccaps.ccaps = caps->ccaps;
- k_ccaps.cmask = caps->cmask;
-
- ret = vserver(VCMD_set_ccaps, CTX_USER2KERNEL(xid), &k_ccaps);
- if (ret)
- return ret;
- return vserver(VCMD_set_bcaps, CTX_USER2KERNEL(xid), &k_bcaps);
-}
+++ /dev/null
-// $Id: syscall_setccaps.c 2367 2006-11-03 19:59:15Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V13) && defined(VC_ENABLE_API_V21)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_V13)
-# include "syscall_setccaps-v13.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_setccaps-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V13) || defined(VC_ENABLE_API_V21)
-int
-vc_set_ccaps(xid_t xid, struct vc_ctx_caps const *caps)
-{
- if (caps==0) {
- errno = EFAULT;
- return -1;
- }
-
- CALL_VC(CALL_VC_V21(vc_set_ccaps, xid, caps),
- CALL_VC_V13A(vc_set_ccaps, xid, caps));
-}
-#endif
+++ /dev/null
-// $Id: syscall_setcflags-v13.hc 1449 2004-04-14 23:19:51Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_set_cflags_v13(xid_t xid, struct vc_ctx_flags const *flags)
-{
- struct vcmd_ctx_flags_v0 k_flags;
-
- if (flags==0) {
- errno = EFAULT;
- return -1;
- }
-
- k_flags.flagword = flags->flagword;
- k_flags.mask = flags->mask;
-
- return vserver(VCMD_set_cflags, CTX_USER2KERNEL(xid), &k_flags);
-}
+++ /dev/null
-// $Id: syscall_setcflags.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V13)
-# include "syscall_setcflags-v13.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V13)
-int
-vc_set_cflags(xid_t xid, struct vc_ctx_flags const *flags)
-{
- if (flags==0) {
- errno = EFAULT;
- return -1;
- }
-
- CALL_VC(CALL_VC_V13A(vc_set_cflags, xid, flags));
-}
-#endif
+++ /dev/null
-// $Id: syscall_setdlimit-v13.hc 1881 2005-03-02 01:29:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_set_dlimit_v13b(char const *filename, xid_t xid,
- uint_least32_t flags, struct vc_ctx_dlimit const *limits)
-{
- struct vcmd_ctx_dlimit_v0 attr = {
- .name = filename,
- .flags = flags,
- .space_used = CDLIM_USER2KERNEL(limits->space_used),
- .space_total = CDLIM_USER2KERNEL(limits->space_total),
- .inodes_used = CDLIM_USER2KERNEL(limits->inodes_used),
- .inodes_total = CDLIM_USER2KERNEL(limits->inodes_total),
- .reserved = CDLIM_USER2KERNEL(limits->reserved),
- };
-
- return vserver(VCMD_set_dlimit, CTX_USER2KERNEL(xid), &attr);
-}
+++ /dev/null
-// $Id: syscall_setdlimit.c 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_setdlimit-v13.hc"
-#endif
-
-int
-vc_set_dlimit(char const *filename, xid_t xid,
- uint_least32_t flags, struct vc_ctx_dlimit const *limits)
-{
- CALL_VC(CALL_VC_V13B(vc_set_dlimit, filename, xid, flags, limits));
-}
+++ /dev/null
-// $Id: syscall_setiattr-fscompat.hc 2151 2005-07-15 18:06:27Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "ioctl-setext2flags.hc"
-#include "ioctl-setfilecontext.hc"
-#include "ioctl-setxflg.hc"
-#include "ioctl-getxflg.hc"
-
-#include <fcntl.h>
-
-static inline ALWAYSINLINE int
-vc_set_iattr_fscompat(char const *filename,
- xid_t xid,
- uint32_t flags, uint32_t mask)
-{
- int fd;
- struct stat st;
- int stat_rc;
-
- fd = open(filename, O_RDONLY|O_NONBLOCK);
- if (fd==-1) return -1;
-
- stat_rc = fstat(fd, &st);
- if (stat_rc==-1) goto err;
-
- if ( (mask&VC_IATTR_IUNLINK) ) {
- unsigned int const tmp = VC_IMMUTABLE_FILE_FL|VC_IMMUTABLE_LINK_FL;
- if (vc_X_set_ext2flags(fd,
- (flags&VC_IATTR_IUNLINK) ? tmp : 0,
- (flags&VC_IATTR_IUNLINK) ? 0 : tmp)==-1)
- goto err;
- }
-
- if ( (mask&VC_IATTR_BARRIER) ) {
- if ((flags&VC_IATTR_BARRIER)) {
- if (vc_X_set_ext2flags(fd, VC_IMMUTABLE_LINK_FL, 0)==-1 ||
- fchmod(fd, 0))
- goto err;
- }
- else {
- if (vc_X_set_ext2flags(fd, 0, VC_IMMUTABLE_LINK_FL)==-1 ||
- fchmod(fd, 0500))
- goto err;
- }
- }
-
- if ( (mask&VC_IATTR_XID) &&
- vc_X_set_filecontext(fd, xid)==-1)
- goto err;
-
- if ( (mask&(VC_IATTR_HIDE|VC_IATTR_WATCH)) ) {
- long tmp;
- if (vc_X_get_xflg(fd, &tmp)==-1) goto err;
-
- tmp &= ~( ((mask&VC_IATTR_HIDE) ? 1 : 0) |
- ((mask&VC_IATTR_WATCH) ? 2 : 0) );
- tmp |= ( ((flags&VC_IATTR_HIDE) ? 1 : 0) |
- ((flags&VC_IATTR_WATCH) ? 2 : 0) );
-
- if (vc_X_set_xflg(fd, tmp)==-1) goto err;
- }
-
- close(fd);
- return 0;
- err:
- {
- int old_errno = errno;
- close(fd);
- errno = old_errno;
- return -1;
- }
-}
+++ /dev/null
-// $Id: syscall_setiattr-v13.hc 1216 2004-03-12 02:57:01Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_set_iattr_v13(char const *filename, xid_t xid, uint32_t flags, uint32_t mask)
-{
- struct vcmd_ctx_iattr_v1 attr;
-
- attr.name = filename;
- attr.xid = CTX_USER2KERNEL(xid);
- attr.flags = flags;
- attr.mask = mask;
- return vserver(VCMD_set_iattr, 0, &attr);
-}
+++ /dev/null
-// $Id: syscall_setiattr.c 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_FSCOMPAT) && defined(VC_ENABLE_API_V13)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_setiattr-v13.hc"
-#endif
-
-#ifdef VC_ENABLE_API_FSCOMPAT
-# include "syscall_setiattr-fscompat.hc"
-#endif
-
-int
-vc_set_iattr(char const *filename, xid_t xid, uint32_t flags, uint32_t mask)
-{
- CALL_VC(CALL_VC_V13 (vc_set_iattr, filename, xid, flags, mask),
- CALL_VC_FSCOMPAT(vc_set_iattr, filename, xid, flags, mask));
-}
+++ /dev/null
-// $Id: syscall_setmapping-v21.hc 2427 2006-12-12 01:39:54Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_set_mapping_v21(xid_t xid, const char *device, const char *target, uint32_t flags)
-{
- struct vcmd_set_mapping_v0 data = { .device = device, .target = target, .flags = flags };
- return vserver(VCMD_set_mapping, xid, &data);
-}
+++ /dev/null
-// $Id: syscall_setmapping.c 2427 2006-12-12 01:39:54Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_setmapping-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-int
-vc_set_mapping(xid_t xid, const char *device, const char *target, uint32_t flags)
-{
- CALL_VC(CALL_VC_V21(vc_set_mapping, xid, device, target, flags));
-}
-#endif
+++ /dev/null
-// $Id: syscall_setnamespace-v13.hc 2415 2006-12-08 13:24:49Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_set_namespace_v13(xid_t xid, uint_least64_t mask)
-{
- if ((mask & (CLONE_NEWNS|CLONE_FS)) == 0)
- return 0;
- return vserver(VCMD_set_space_v0, CTX_USER2KERNEL(xid), 0);
-}
+++ /dev/null
-// $Id: syscall_setnamespace-v21.hc 2415 2006-12-08 13:24:49Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_set_namespace_spaces(xid_t xid, uint_least64_t mask)
-{
- struct vcmd_space_mask data = { .mask = mask };
- return vserver(VCMD_set_space, CTX_USER2KERNEL(xid), &data);
-}
+++ /dev/null
-// $Id: syscall_setnamespace.c 2415 2006-12-08 13:24:49Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V13) && defined(VC_ENABLE_API_V21)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_setnamespace-v13.hc"
-#endif
-
-#ifdef VC_ENABLE_API_V21
-# include "syscall_setnamespace-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V13) || defined(VC_ENABLE_API_V21)
-int
-vc_set_namespace(xid_t xid, uint_least64_t mask)
-{
- CALL_VC(CALL_VC_SPACES(vc_set_namespace, xid, mask),
- CALL_VC_V13 (vc_set_namespace, xid, mask));
-}
-#endif
+++ /dev/null
-// $Id: syscall_setncaps-net.hc 1501 2004-04-22 20:46:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_set_ncaps_net(nid_t nid, struct vc_net_caps const *caps)
-{
- struct vcmd_net_caps_v0 k_caps;
-
- k_caps.ncaps = caps->ncaps;
- k_caps.cmask = caps->cmask;
-
- return vserver(VCMD_set_ncaps, NID_USER2KERNEL(nid), &k_caps);
-}
+++ /dev/null
-// $Id: syscall_setncaps.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_NET)
-# include "syscall_setncaps-net.hc"
-#endif
-
-#if defined(VC_ENABLE_API_NET)
-int
-vc_set_ncaps(nid_t nid, struct vc_net_caps const *caps)
-{
- if (caps==0) {
- errno = EFAULT;
- return -1;
- }
-
- CALL_VC(CALL_VC_NET(vc_set_ncaps, nid, caps));
-}
-#endif
+++ /dev/null
-// $Id: syscall_setnflags-net.hc 1501 2004-04-22 20:46:44Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_set_nflags_net(nid_t nid, struct vc_net_flags const *flags)
-{
- struct vcmd_net_flags_v0 k_flags;
-
- if (flags==0) {
- errno = EFAULT;
- return -1;
- }
-
- k_flags.flagword = flags->flagword;
- k_flags.mask = flags->mask;
-
- return vserver(VCMD_set_nflags, NID_USER2KERNEL(nid), &k_flags);
-}
+++ /dev/null
-// $Id: syscall_setnflags.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_NET)
-# include "syscall_setnflags-net.hc"
-#endif
-
-#if defined(VC_ENABLE_API_NET)
-int
-vc_set_nflags(nid_t nid, struct vc_net_flags const *flags)
-{
- if (flags==0) {
- errno = EFAULT;
- return -1;
- }
-
- CALL_VC(CALL_VC_NET(vc_set_nflags, nid, flags));
-}
-#endif
+++ /dev/null
-// $Id: syscall_setsched-v13.hc,v 1.5 2007/06/28 15:20:17 dhozac Exp $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include <lib_internal/util.h>
-
-#define X(ATTR) ENSC_SAME_STRUCT_IDX(k_data, *data, ATTR)
-
-static inline ALWAYSINLINE int
-vc_set_sched_v13b(xid_t xid, struct vc_set_sched const *data)
-{
- struct vcmd_set_sched_v3 k_data;
-
- k_data.set_mask = data->set_mask & VC_VXSM_V3_MASK;
- k_data.fill_rate = data->fill_rate;
- k_data.interval = data->interval;
- k_data.tokens = data->tokens;
- k_data.tokens_min = data->tokens_min;
- k_data.tokens_max = data->tokens_max;
- k_data.priority_bias = data->priority_bias;
-
- return vserver(VCMD_set_sched_v3, CTX_USER2KERNEL(xid), &k_data);
-}
+++ /dev/null
-// $Id: syscall_setsched-v13obs.hc 2271 2006-01-22 18:18:28Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include <lib_internal/util.h>
-
-#define VCGET(MASK,VAL) ((data->set_mask & (MASK)) ? (VAL) : SCHED_KEEP);
-
-static inline ALWAYSINLINE int
-vc_set_sched_v13obs(xid_t xid, struct vc_set_sched const *data)
-{
-#warning vc_set_sched_v13() uses an obsolete interface; remove it in the final version
- struct vcmd_set_sched_v2 k_data;
-
-
- k_data.cpu_mask = 0;
- k_data.fill_rate = VCGET(VC_VXSM_FILL_RATE, data->fill_rate);
- k_data.interval = VCGET(VC_VXSM_INTERVAL, data->interval);
- k_data.tokens = VCGET(VC_VXSM_TOKENS, data->tokens);
- k_data.tokens_min = VCGET(VC_VXSM_TOKENS_MIN, data->tokens_min);
- k_data.tokens_max = VCGET(VC_VXSM_TOKENS_MAX, data->tokens_max);
-
- return vserver(VCMD_set_sched_v2, CTX_USER2KERNEL(xid), &k_data);
-}
+++ /dev/null
-// $Id: syscall_setsched-v21.hc 2454 2007-01-17 09:56:23Z dhozac $ --*- c -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_set_sched_v21(xid_t xid, struct vc_set_sched const *data)
-{
- struct vcmd_set_sched_v4 k_data;
- int ret;
-
- k_data.fill_rate = data->fill_rate;
- k_data.interval = data->interval;
- k_data.tokens = data->tokens;
- k_data.tokens_min = data->tokens_min;
- k_data.tokens_max = data->tokens_max;
- k_data.prio_bias = data->priority_bias;
- k_data.cpu_id = data->cpu_id;
- k_data.bucket_id = data->bucket_id;
-
- if ((data->set_mask & VC_VXSM_FILL_RATE2 && data->fill_rate != data->fill_rate2) ||
- (data->set_mask & VC_VXSM_INTERVAL2 && data->interval != data->interval2)) {
- /* first set the regular values */
- k_data.set_mask = data->set_mask & ~(VC_VXSM_FILL_RATE2|VC_VXSM_INTERVAL2|VC_VXSM_FORCE);
- ret = vserver(VCMD_set_sched_v4, CTX_USER2KERNEL(xid), &k_data);
- if (ret)
- return ret;
- /* then set idle time */
- k_data.set_mask = data->set_mask & (VC_VXSM_FILL_RATE2|VC_VXSM_INTERVAL2|VC_VXSM_FORCE|VC_VXSM_IDLE_TIME|VC_VXSM_CPU_ID|VC_VXSM_BUCKET_ID);
- k_data.fill_rate = data->fill_rate2;
- k_data.interval = data->interval2;
- return vserver(VCMD_set_sched_v4, CTX_USER2KERNEL(xid), &k_data);
- }
- else {
- k_data.set_mask = data->set_mask;
- return vserver(VCMD_set_sched_v4, CTX_USER2KERNEL(xid), &k_data);
- }
-}
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-static inline ALWAYSINLINE int
-vc_set_sched_v22(xid_t xid, struct vc_set_sched const *data)
-{
- struct vcmd_sched_v5 k_data;
-
- k_data.fill_rate[0] = data->fill_rate;
- k_data.interval[0] = data->interval;
- k_data.fill_rate[1] = data->fill_rate2;
- k_data.interval[1] = data->interval2;
- k_data.tokens = data->tokens;
- k_data.tokens_min = data->tokens_min;
- k_data.tokens_max = data->tokens_max;
- k_data.prio_bias = data->priority_bias;
- k_data.cpu_id = data->cpu_id;
- k_data.bucket_id = data->bucket_id;
- k_data.mask = data->set_mask;
-
- return vserver(VCMD_set_sched, CTX_USER2KERNEL(xid), &k_data);
-}
+++ /dev/null
-// $Id: syscall_setsched.c 2578 2007-08-08 20:05:26Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#define VC_MULTIVERSION_SYSCALL 1
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_setsched-v13.hc"
-#endif
-
-#ifdef VC_ENABLE_API_V13OBS
-# include "syscall_setsched-v13obs.hc"
-#endif
-
-#ifdef VC_ENABLE_API_V21
-# include "syscall_setsched-v21.hc"
-#endif
-
-#ifdef VC_ENABLE_API_V22
-# include "syscall_setsched-v22.hc"
-#endif
-
-int
-vc_set_sched(xid_t xid, struct vc_set_sched const *data)
-{
- CALL_VC(CALL_VC_V22 (vc_set_sched,xid,data),
- CALL_VC_V21 (vc_set_sched,xid,data),
- CALL_VC_V13B (vc_set_sched,xid,data),
- CALL_VC_V13OBS(vc_set_sched,xid,data));
-}
+++ /dev/null
-// $Id: syscall_setvhiname-olduts.hc 733 2004-02-02 18:32:53Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_set_vhi_name_olduts(xid_t xid, vc_uts_type type, char const *val, size_t len)
-{
- if (xid!=VC_SAMECTX) {
- errno = ESRCH;
- return -1;
- }
-
- switch (type) {
- case vcVHI_NODENAME : return sethostname (val, len);
- case vcVHI_DOMAINNAME : return setdomainname(val, len);
- default :
- errno = ENOENT;
- return -1;
- }
-}
+++ /dev/null
-// $Id: syscall_setvhiname-v13.hc 2133 2005-07-03 17:49:57Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
- // HACK: workaround naming changes instead of defining yet another interface
- // version
-#if !defined(VCMD_set_vhi_name) && defined(VCMD_vx_set_vhi_name)
-# define VCMD_set_vhi_name VCMD_vx_set_vhi_name
-# define vcmd_vhi_name_v0 vcmd_vxi_vhi_name_v0
-#endif
-
-static inline ALWAYSINLINE int
-vc_set_vhi_name_v13(xid_t xid, vc_uts_type type, char const *val, size_t len)
-{
- struct vcmd_vhi_name_v0 cmd;
- int rc;
-
- if (len>=sizeof(cmd.name)) {
- errno = E2BIG;
- return -1;
- }
-
- cmd.field = VHI_USER2KERNEL(type);
- memcpy(cmd.name, val, len);
- cmd.name[len] = '\0';
-
- rc = vserver(VCMD_set_vhi_name, CTX_USER2KERNEL(xid), &cmd);
- ENSC_FIX_IOCTL(rc);
-
- return rc;
-}
+++ /dev/null
-// $Id: syscall_setvhiname.c 2207 2005-10-29 10:31:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_OLDUTS) && defined(VC_ENABLE_API_V13)
-# define VC_MULTIVERSION_SYSCALL 1
-#endif
-#include "vserver-internal.h"
-
-#ifdef VC_ENABLE_API_V13
-# include "syscall_setvhiname-v13.hc"
-#endif
-
-#ifdef VC_ENABLE_API_OLDUTS
-# include "syscall_setvhiname-olduts.hc"
-#endif
-
-int
-vc_set_vhi_name(xid_t xid, vc_uts_type type, char const *val, size_t len)
-{
- if (len==(size_t)(-1)) len=strlen(val);
-
- CALL_VC(CALL_VC_V13 (vc_set_vhi_name, xid, type, val, len),
- CALL_VC_OLDUTS(vc_set_vhi_name, xid, type, val, len));
-}
+++ /dev/null
-// $Id$ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_V23)
-# include "syscall_tagmigrate-v23.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V23)
-
-int
-vc_tag_create(tag_t tag)
-{
- CALL_VC(CALL_VC_TAG(vc_tag_migrate, tag));
-}
-
-#endif
+++ /dev/null
-// $Id$ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_tag_migrate_tag(tag_t tag)
-{
- return vserver(VCMD_tag_migrate, TAG_USER2KERNEL(tag), NULL);
-}
+++ /dev/null
-// $Id$ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_V23)
-# include "syscall_tagmigrate-v23.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V23)
-
-int
-vc_tag_migrate(tag_t tag)
-{
- CALL_VC(CALL_VC_TAG(vc_tag_migrate, tag));
-}
-
-#endif
+++ /dev/null
-// $Id$ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE tag_t
-vc_get_task_tag_tag(pid_t pid)
-{
- return vserver(VCMD_task_tag, pid, NULL);
-}
+++ /dev/null
-// $Id$ --*- c++ -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "virtual.h"
-#include "vserver-internal.h"
-
-#if defined(VC_ENABLE_API_V23)
-# include "syscall_tasktag-v23.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V23)
-
-tag_t
-vc_get_task_tag(pid_t pid)
-{
- CALL_VC(CALL_VC_TAG(vc_get_task_tag, pid));
-}
-
-#endif
+++ /dev/null
-// $Id: syscall_virtstat-v21.hc 2380 2006-11-15 20:14:00Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_virt_stat_v21(xid_t ctx, struct vc_virt_stat *stat)
-{
- int ret;
- struct vcmd_virt_stat_v0 param;
-
- ret = vserver(VCMD_virt_stat, CTX_USER2KERNEL(ctx), ¶m);
- if (ret)
- return ret;
-
-#define G(ATTR) stat->ATTR = param.ATTR
- G(offset);
- G(uptime);
- G(nr_threads);
- G(nr_running);
- G(nr_uninterruptible);
- G(nr_onhold);
- G(nr_forks);
- G(load[0]);
- G(load[1]);
- G(load[2]);
- return 0;
-}
+++ /dev/null
-// $Id: syscall_virtstat.c 2380 2006-11-15 20:14:00Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V21)
-# include "syscall_virtstat-v21.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V21)
-
-int
-vc_virt_stat(xid_t ctx, struct vc_virt_stat *stat)
-{
- CALL_VC(CALL_VC_V21(vc_virt_stat, ctx, stat));
-}
-
-#endif
+++ /dev/null
-// $Id: syscall_waitexit-v13.hc 2317 2006-09-15 21:18:21Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-static inline ALWAYSINLINE int
-vc_wait_exit_v13b(xid_t ctx)
-{
- struct vcmd_wait_exit_v0 param = { .reboot_cmd = 0, .exit_code = 0 };
-
- return vserver(VCMD_wait_exit, CTX_USER2KERNEL(ctx), ¶m);
-}
+++ /dev/null
-// $Id: syscall_waitexit.c 2207 2005-10-29 10:31:42Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "vserver-internal.h"
-#include "virtual.h"
-
-#if defined(VC_ENABLE_API_V13)
-# include "syscall_waitexit-v13.hc"
-#endif
-
-#if defined(VC_ENABLE_API_V13)
-
-int
-vc_wait_exit(xid_t ctx)
-{
- CALL_VC(CALL_VC_V13B(vc_wait_exit, ctx));
-}
-
-#endif
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include <string.h>
-#include <stdlib.h>
-
-static tag_t
-getVserverTag(char const *id, bool honor_static, char const **err)
-{
- *err = "vc_getVserverCtx";
- return vc_getVserverCtx(id, vcCFG_AUTO, honor_static, 0, vcCTX_TAG);
-}
-
-tag_t
-vc_tagopt2tag(char const *str, bool honor_static, char const **err_info)
-{
- char const * err;
- tag_t res = VC_NOCTX;
-
- err = "vc_task_tag()";
- if (strcmp(str,"self")==0) res = vc_get_task_tag(0);
- else if (str[0]==':') res = getVserverTag(str+1, honor_static, &err);
- else {
- char * endptr;
- tag_t tag = strtol(str, &endptr, 10);
-
- if (endptr!=str && (*endptr=='\0' || *endptr=='\n'))
- res = tag;
- else
- res = getVserverTag(str, honor_static, &err);
- }
-
- if (res==VC_NOCTX && err_info) *err_info = err;
-
- return res;
-}
+++ /dev/null
-## $Id: Makefile-files 2060 2005-04-28 17:54:57Z ensc $ --*- makefile -*--
-
-## Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-DIETPROGS += lib/testsuite/cflags \
- lib/testsuite/personality \
- lib/testsuite/fmt
-
-check_PROGRAMS += lib/testsuite/cflags \
- lib/testsuite/personality \
- lib/testsuite/fmt \
- lib/testsuite/parselimit
-TESTS += lib/testsuite/cflags \
- lib/testsuite/personality \
- lib/testsuite/fmt \
- lib/testsuite/parselimit
-
-lib_testsuite_cflags_SOURCES = lib/testsuite/cflags.c
-lib_testsuite_cflags_LDADD = $(LIBVSERVER)
-lib_testsuite_cflags_LDFLAGS = $(VSERVER_LDFLGS)
-lib_testsuite_cflags_CPPFLAGS = $(AM_CPPFLAGS) -DENSC_TESTSUITE
-
-lib_testsuite_personality_SOURCES = lib/testsuite/personality.c
-lib_testsuite_personality_LDADD = $(LIBVSERVER)
-lib_testsuite_personality_LDFLAGS = $(VSERVER_LDFLGS)
-lib_testsuite_personality_CPPFLAGS = $(AM_CPPFLAGS) -DENSC_TESTSUITE
-
-lib_testsuite_fmt_SOURCES = lib/testsuite/fmt.c
-lib_testsuite_fmt_LDADD = $(LIBVSERVER)
-lib_testsuite_fmt_LDFLAGS = $(VSERVER_LDFLGS)
-lib_testsuite_fmt_CPPFLAGS = $(AM_CPPFLAGS) -DENSC_TESTSUITE
-
-lib_testsuite_parselimit_SOURCES = lib/testsuite/parselimit.c
-lib_testsuite_parselimit_LDADD = $(LIBVSERVER)
-lib_testsuite_parselimit_LDFLAGS = $(VSERVER_LDFLGS)
-lib_testsuite_parselimit_CPPFLAGS = $(AM_CPPFLAGS) -DENSC_TESTSUITE
+++ /dev/null
-// $Id: cflags.c 1879 2005-03-02 01:24:25Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <ensc@delenn.intern.sigma-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "lib_internal/coreassert.h"
-#include "vserver.h"
-
-#include <string.h>
-#include <unistd.h>
-
-
-#define TEST_T2F_C(X,Y,Z) assert(vc_text2cflag_compat(X,Y)==Z)
-#define TEST_F2T_C(Y,X) { \
- char const *x=vc_hicflag2text_compat(X); \
- assert((x==0 && Y==0) || (x!=0 && Y!=0)); \
- if (x!=0 && Y!=0) assert(strcmp(x, Y ? Y : "")==0); \
- }
-
-#define TEST_LIST_C(STR,LEN,EXP,ERR_POS,ERR_LEN) { \
- struct vc_err_listparser err; \
- char buf[] = STR; \
- uint32_t res; \
- res = vc_list2cflag_compat(buf, LEN, &err); \
- assert(res==(EXP)); \
- assert(err.len==ERR_LEN); \
- if (ERR_POS==-1) assert(err.ptr==0); \
- else assert(err.ptr==buf+(ERR_POS)); \
- }
-
-//----
-
-#define TEST_T2F(X,Y,Z) assert(vc_text2cflag(X,Y)==Z)
-#define TEST_F2T(Y,X) { \
- uint_least64_t x = (X); \
- char const *rc=vc_locflag2text(&x); \
- assert((rc==0 && Y==0) || (rc!=0 && Y!=0)); \
- if (rc!=0 && Y!=0) assert(strcmp(rc, Y ? Y : "")==0); \
- }
-#define TEST_LIST(STR,LEN,EXP_RES,EXP_FLAG,EXP_MASK,ERR_POS,ERR_LEN) { \
- struct vc_err_listparser err; \
- char buf[] = STR; \
- volatile int res; \
- struct vc_ctx_flags flags = {0,0}; \
- res = vc_list2cflag(buf, LEN, &err, &flags); \
- assert(res==(EXP_RES)); \
- assert(flags.flagword==(uint_least64_t)(EXP_FLAG)); \
- assert(flags.mask ==(uint_least64_t)(EXP_MASK)); \
- assert(err.len==ERR_LEN); \
- if (ERR_POS==-1) assert(err.ptr==0); \
- else assert(err.ptr==buf+(ERR_POS)); \
- }
-
-#define ALL64 (~(uint_least64_t)(0))
-
-int main()
-{
- TEST_T2F_C("lock", 0, S_CTX_INFO_LOCK);
- TEST_T2F_C("lockXXXX", 4, S_CTX_INFO_LOCK);
- TEST_T2F_C("locXXXXX", 3, 0);
- TEST_T2F_C("sched", 0, S_CTX_INFO_SCHED);
- TEST_T2F_C("nproc", 0, S_CTX_INFO_NPROC);
- TEST_T2F_C("private", 0, S_CTX_INFO_PRIVATE);
- TEST_T2F_C("fakeinit", 0, S_CTX_INFO_INIT);
- TEST_T2F_C("hideinfo", 0, S_CTX_INFO_HIDEINFO);
- TEST_T2F_C("ulimit", 0, S_CTX_INFO_ULIMIT);
- TEST_T2F_C("XXX", 0, 0);
- TEST_T2F_C("", 0, 0);
-
- TEST_F2T_C("lock", S_CTX_INFO_LOCK);
- TEST_F2T_C("sched", S_CTX_INFO_SCHED);
- TEST_F2T_C("nproc", S_CTX_INFO_NPROC);
- TEST_F2T_C("private", S_CTX_INFO_PRIVATE);
- TEST_F2T_C("fakeinit", S_CTX_INFO_INIT);
- TEST_F2T_C("hideinfo", S_CTX_INFO_HIDEINFO);
- TEST_F2T_C("ulimit", S_CTX_INFO_ULIMIT);
- TEST_F2T_C(0, 0);
- TEST_F2T_C("ulimit", 64 | 128 | 23 );
- TEST_F2T_C("fakeinit", 23);
-
- TEST_LIST_C("lock", 0, S_CTX_INFO_LOCK, -1,0);
- TEST_LIST_C("lock,sched,", 0, S_CTX_INFO_LOCK|S_CTX_INFO_SCHED, -1,0);
- TEST_LIST_C("lock,XXX", 0, S_CTX_INFO_LOCK, 5,3);
- TEST_LIST_C("", 0, 0, -1,0);
- TEST_LIST_C("X", 0, 0, 0,1);
- TEST_LIST_C("lock,sched,", 10, S_CTX_INFO_LOCK|S_CTX_INFO_SCHED, -1,0);
-
- //-------
-
- TEST_T2F("fakeinit", 0, VC_VXF_INFO_INIT);
- TEST_T2F("XXX", 0, 0);
- TEST_T2F("", 0, 0);
-
- TEST_F2T("fakeinit", VC_VXF_INFO_INIT);
- TEST_F2T(0, 0);
-
- TEST_LIST("fakeinit", 0, 0, VC_VXF_INFO_INIT, VC_VXF_INFO_INIT,-1,0);
- TEST_LIST("FaKeInIt", 0, 0, VC_VXF_INFO_INIT, VC_VXF_INFO_INIT,-1,0);
- TEST_LIST("~fakeinit", 0, 0, 0, VC_VXF_INFO_INIT,-1,0);
- TEST_LIST("!fakeinit", 0, 0, 0, VC_VXF_INFO_INIT,-1,0);
- TEST_LIST("fakeinit,XXX", 0, -1, VC_VXF_INFO_INIT, VC_VXF_INFO_INIT, 9,3);
- TEST_LIST("", 0, 0, 0, 0, -1,0);
- TEST_LIST("0", 0, 0, 0, 0, -1,0);
- TEST_LIST("00", 0, 0, 0, 0, -1,0);
- TEST_LIST("X", 0, -1, 0, 0, 0,1);
- TEST_LIST("all", 0, 0, ALL64, ALL64, -1,0);
- TEST_LIST("ALL", 0, 0, ALL64, ALL64, -1,0);
- TEST_LIST("any", 0, 0, ALL64, ALL64, -1,0);
- TEST_LIST("ANY", 0, 0, ALL64, ALL64, -1,0);
- TEST_LIST("~all", 0, 0, 0, ALL64, -1,0);
- TEST_LIST("~ALL", 0, 0, 0, ALL64, -1,0);
- TEST_LIST("none", 0, 0, 0, 0, -1,0);
- TEST_LIST("NONE", 0, 0, 0, 0, -1,0);
- TEST_LIST("~none", 0, 0, 0, 0, -1,0);
- TEST_LIST("~NONE", 0, 0, 0, 0, -1,0);
- TEST_LIST("all,~fakeinit",0, 0, ~VC_VXF_INFO_INIT,ALL64, -1,0);
- TEST_LIST("~all,fakeinit",0, 0, VC_VXF_INFO_INIT, ALL64, -1,0);
- TEST_LIST("fakeinit,~all",0, 0, 0, ALL64, -1,0);
- TEST_LIST("none,~lock", 0, 0, 0, VC_VXF_INFO_LOCK,-1,0);
- TEST_LIST("~none,lock", 0, 0, VC_VXF_INFO_LOCK,VC_VXF_INFO_LOCK,-1,0);
- TEST_LIST("lock,none", 0, 0, VC_VXF_INFO_LOCK,VC_VXF_INFO_LOCK,-1,0);
- TEST_LIST("lock,~none", 0, 0, VC_VXF_INFO_LOCK,VC_VXF_INFO_LOCK,-1,0);
- TEST_LIST("~", 0, -1, 0, 0, 1,0);
- TEST_LIST("~~", 0, -1, 0, 0, 2,0);
- TEST_LIST("!", 0, -1, 0, 0, 1,0);
- TEST_LIST("^", 0, -1, 0, 0, 1,0);
- TEST_LIST("fakeinit,~", 0, -1, VC_VXF_INFO_INIT, VC_VXF_INFO_INIT,10,0);
- TEST_LIST("1", 0, 0, 1, 1, -1,0);
- TEST_LIST("1,23,42", 0, 0, 1|23|42, 1|23|42, -1,0);
- TEST_LIST("~1", 0, 0, 0, 1, -1,0);
- TEST_LIST("!1", 0, 0, 0, 1, -1,0);
- TEST_LIST("~~1", 0, 0, 1, 1, -1,0);
- TEST_LIST("~~~1", 0, 0, 0, 1, -1,0);
- TEST_LIST("~!~1", 0, 0, 0, 1, -1,0);
- TEST_LIST("42,fakeinit", 0, 0, VC_VXF_INFO_INIT|42, VC_VXF_INFO_INIT|42, -1,0);
- TEST_LIST("42x,1", 0, -1, 0, 0, 0,3);
-
- TEST_LIST("^4,~^2", 0, 0, 0x10, 0x14, -1,0);
- TEST_LIST("^4,~~^2", 0, 0, 0x14, 0x14, -1,0);
- TEST_LIST("^4,~~~^2", 0, 0, 0x10, 0x14, -1,0);
- TEST_LIST("~^2,^4", 0, 0, 0x10, 0x14, -1,0);
- TEST_LIST("1,^1,~^2,8", 0, 0, 0x0b, 0x0f, -1,0);
-
- TEST_LIST("lock,nproc,private,fakeinit,hideinfo,ulimit,namespace,"
- "sched_hard,sched_prio,sched_pause,"
- "virt_mem,virt_uptime,virt_cpu,virt_load,"
- "hide_mount,hide_netif,state_setup,state_init,"
- "fork_rss,prolific,igneg_nice",
- 0, 0,
- VC_VXF_INFO_LOCK|VC_VXF_INFO_NPROC|VC_VXF_INFO_PRIVATE|VC_VXF_INFO_INIT|
- VC_VXF_INFO_HIDEINFO|VC_VXF_INFO_ULIMIT|VC_VXF_INFO_NAMESPACE|
- VC_VXF_SCHED_HARD|VC_VXF_SCHED_PRIO|VC_VXF_SCHED_PAUSE|
- VC_VXF_VIRT_MEM|VC_VXF_VIRT_UPTIME|VC_VXF_VIRT_CPU|VC_VXF_VIRT_LOAD|
- VC_VXF_HIDE_MOUNT|VC_VXF_HIDE_NETIF|
- VC_VXF_STATE_SETUP|VC_VXF_STATE_INIT|
- VC_VXF_FORK_RSS|VC_VXF_PROLIFIC|VC_VXF_IGNEG_NICE,
-
- VC_VXF_INFO_LOCK|VC_VXF_INFO_NPROC|VC_VXF_INFO_PRIVATE|VC_VXF_INFO_INIT|
- VC_VXF_INFO_HIDEINFO|VC_VXF_INFO_ULIMIT|VC_VXF_INFO_NAMESPACE|
- VC_VXF_SCHED_HARD|VC_VXF_SCHED_PRIO|VC_VXF_SCHED_PAUSE|
- VC_VXF_VIRT_MEM|VC_VXF_VIRT_UPTIME|VC_VXF_VIRT_CPU|VC_VXF_VIRT_LOAD|
- VC_VXF_HIDE_MOUNT|VC_VXF_HIDE_NETIF|
- VC_VXF_STATE_SETUP|VC_VXF_STATE_INIT|
- VC_VXF_FORK_RSS|VC_VXF_PROLIFIC|VC_VXF_IGNEG_NICE,
-
- -1,0);
-
- TEST_LIST("~lock,~nproc,~private,~fakeinit,~hideinfo,~ulimit,~namespace,"
- "~sched_hard,~sched_prio,~sched_pause,"
- "~virt_mem,~virt_uptime,~virt_cpu,~virt_load,"
- "~hide_mount,~hide_netif,~state_setup,~state_init,"
- "~fork_rss,~prolific,~igneg_nice",
- 0, 0,
- 0,
- VC_VXF_INFO_LOCK|VC_VXF_INFO_NPROC|VC_VXF_INFO_PRIVATE|VC_VXF_INFO_INIT|
- VC_VXF_INFO_HIDEINFO|VC_VXF_INFO_ULIMIT|VC_VXF_INFO_NAMESPACE|
- VC_VXF_SCHED_HARD|VC_VXF_SCHED_PRIO|VC_VXF_SCHED_PAUSE|
- VC_VXF_VIRT_MEM|VC_VXF_VIRT_UPTIME|VC_VXF_VIRT_CPU|VC_VXF_VIRT_LOAD|
- VC_VXF_HIDE_MOUNT|VC_VXF_HIDE_NETIF|
- VC_VXF_STATE_SETUP|VC_VXF_STATE_INIT|
- VC_VXF_FORK_RSS|VC_VXF_PROLIFIC|VC_VXF_IGNEG_NICE,
-
- -1,0);
-
-
- return 0;
-}
+++ /dev/null
-// $Id: fmt.c 2185 2005-10-25 16:23:45Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "lib_internal/coreassert.h"
-
-#include "lib/fmt.h"
-#include <string.h>
-
-#define TEST(VAL, EXP) { \
- char buf[512]; \
- size_t l; \
- memset(buf+1, '\23', sizeof(buf)-2); \
- buf[0] = buf[sizeof(EXP)] = '\42'; \
- l = FUNC(buf+1, VAL); \
- assert(l==sizeof(EXP)-1); \
- assert(memcmp(buf+1, EXP, l)==0); \
- assert(buf[0] =='\42'); \
- assert(buf[l+1]=='\42'); \
- assert(buf[l+2]=='\23'); \
- }
-
-int main()
-{
- #define FUNC utilvserver_fmt_xuint64
- TEST(0, "0");
- TEST(1, "1");
- TEST(15, "f");
- TEST(16, "10");
- TEST(100, "64");
- TEST(1000, "3e8");
- TEST(65535, "ffff");
- TEST(65536, "10000");
- TEST(68719476736ul, "1000000000");
-
- return 0;
-}
+++ /dev/null
-// $Id: parselimit.c 1521 2004-04-28 18:07:41Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "lib_internal/coreassert.h"
-#include "vserver.h"
-
-#define TEST(BUF, RES, VAL) \
- do { \
- vc_limit_t res = 0xdeadbeaf; \
- assert(vc_parseLimit(BUF, &res)==(RES)); \
- assert(res==(VAL)); \
- } while (0)
-
-#define TESTT(BUF,VAL) TEST(BUF, true, VAL)
-#define TESTF(BUF,VAL) TEST(BUF, false, VAL)
-
-int main()
-{
- TESTT("0", 0);
- TESTT("1", 1);
- TESTT("1k", 1000);
- TESTT("1K", 1024);
- TESTT("1m", 1000000);
- TESTT("1M", 1048576);
- TESTT("1234", 1234);
- TESTT("1234\n", 1234);
- TESTT("inf", VC_LIM_INFINITY);
-
- TESTF("x", 0);
- TESTF("k", 0);
- TESTF("1kX", 1000);
- TESTF("", 0);
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: personality.c 2060 2005-04-28 17:54:57Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "lib_internal/coreassert.h"
-#include "vserver.h"
-
-#include <string.h>
-#include <unistd.h>
-#include <linux/personality.h>
-
-
-#define TEST_T2PF(X,Y,Z) assert(vc_text2personalityflag(X,Y)==Z)
-#define TEST_PF2T(Y,X) { \
- uint_least32_t x = (X); \
- char const *rc=vc_lopersonality2text(&x); \
- assert((rc==0 && Y==0) || (rc!=0 && Y!=0)); \
- if (rc!=0 && Y!=0) assert(strcmp(rc, Y ? Y : "")==0); \
- }
-
-#define TEST_LIST(STR,LEN,EXP_RES,EXP_PERS,ERR_POS,ERR_LEN) { \
- struct vc_err_listparser err; \
- char buf[] = STR; \
- volatile int res; \
- uint_least32_t personality = 0; \
- res = vc_list2personalityflag(buf, LEN, &personality, &err); \
- assert(res==(EXP_RES)); \
- assert(personality==(uint_least32_t)(EXP_PERS)); \
- assert(err.len==ERR_LEN); \
- if (ERR_POS==-1) assert(err.ptr==0); \
- else assert(err.ptr==buf+(ERR_POS)); \
- }
-
-
-
-#define TEST_T2PT(X,Y,Z) assert(vc_str2personalitytype(X,Y)==Z)
-
-
-
-int main()
-{
- TEST_T2PF("mmap_page_zero", 0, MMAP_PAGE_ZERO);
- TEST_T2PF("MMAP_PAGE_ZERO", 0, MMAP_PAGE_ZERO);
- TEST_T2PF("MmAp_PaGe_ZeRo", 0, MMAP_PAGE_ZERO);
- TEST_T2PF("mmap_page_zero", 14, MMAP_PAGE_ZERO);
- TEST_T2PF("MMAP_PAGE_ZERO", 14, MMAP_PAGE_ZERO);
- TEST_T2PF("MMAP_PAGE_ZEROXXXX", 14, MMAP_PAGE_ZERO);
- TEST_T2PF("MMAP_PAGE_ZEROXXXX", 13, 0);
- TEST_T2PF("MMAP_PAGE_ZERO", 13, 0);
- TEST_T2PF("MMAP_PAGE_ZERXXX", 13, 0);
- TEST_T2PF("XXX", 0, 0);
- TEST_T2PF("", 0, 0);
-
- TEST_T2PF("ADDR_LIMIT_32BIT", 0, ADDR_LIMIT_32BIT);
- TEST_T2PF("SHORT_INODE", 0, SHORT_INODE);
- TEST_T2PF("WHOLE_SECONDS", 0, WHOLE_SECONDS);
- TEST_T2PF("STICKY_TIMEOUTS", 0, STICKY_TIMEOUTS);
- TEST_T2PF("ADDR_LIMIT_3GB", 0, ADDR_LIMIT_3GB);
-
-
- // the _loc* tests
- TEST_PF2T("MMAP_PAGE_ZERO", MMAP_PAGE_ZERO);
- TEST_PF2T("ADDR_LIMIT_32BIT", ADDR_LIMIT_32BIT);
- TEST_PF2T("SHORT_INODE", SHORT_INODE);
- TEST_PF2T("WHOLE_SECONDS", WHOLE_SECONDS);
- TEST_PF2T("STICKY_TIMEOUTS", STICKY_TIMEOUTS);
- TEST_PF2T("ADDR_LIMIT_3GB", ADDR_LIMIT_3GB);
-
-
-
- TEST_LIST("mmap_page_zero", 14, 0, MMAP_PAGE_ZERO, -1, 0);
- TEST_LIST("mmap_page_zero,XXX", 14, 0, MMAP_PAGE_ZERO, -1, 0);
- TEST_LIST("mmap_page_zero", 0, 0, MMAP_PAGE_ZERO, -1, 0);
- TEST_LIST("MmAp_pAgE_ZeRo", 0, 0, MMAP_PAGE_ZERO, -1, 0);
- TEST_LIST("mmap_page_zero,XXX", 0, -1, MMAP_PAGE_ZERO, 15, 3);
- TEST_LIST("~mmap_page_zero", 0, -1, 0, 0,15);
- TEST_LIST("!mmap_page_zero", 0, -1, 0, 0,15);
- TEST_LIST("", 0, 0, 0, -1, 0);
- TEST_LIST("0", 0, 0, 0, -1, 0);
- TEST_LIST("00", 0, 0, 0, -1, 0);
- TEST_LIST("1", 0, 0, 1, -1, 0);
- TEST_LIST("1,23,42", 0, 0, 1|23|42, -1, 0);
- TEST_LIST("^1", 0, 0, 2, -1, 0);
- TEST_LIST("^4,^2", 0, 0, 0x14, -1, 0);
- TEST_LIST("^2,^3", 0, 0, 0x0c, -1, 0);
- TEST_LIST("^2,~^3", 0, -1, 0x04, 3, 3);
- TEST_LIST("~0", 0, -1, 0, 0, 2);
- TEST_LIST("^", 0, -1, 0, 1, 0);
- TEST_LIST("~", 0, -1, 0, 0, 1);
- TEST_LIST("!", 0, -1, 0, 0, 1);
- TEST_LIST("X", 0, -1, 0, 0, 1);
- TEST_LIST("all", 0, -1, 0, 0, 3);
- TEST_LIST("ALL", 0, -1, 0, 0, 3);
- TEST_LIST("~all", 0, -1, 0, 0, 4);
- TEST_LIST("~ALL", 0, -1, 0, 0, 4);
- TEST_LIST("any", 0, -1, 0, 0, 3);
- TEST_LIST("ANY", 0, -1, 0, 0, 3);
- TEST_LIST("~any", 0, -1, 0, 0, 4);
- TEST_LIST("~ANY", 0, -1, 0, 0, 4);
- TEST_LIST("none", 0, -1, 0, 0, 4);
- TEST_LIST("NONE", 0, -1, 0, 0, 4);
- TEST_LIST("~none", 0, -1, 0, 0, 5);
- TEST_LIST("~NONE", 0, -1, 0, 0, 5);
- TEST_LIST("mmap_page_zero,all", 0, -1, MMAP_PAGE_ZERO, 15, 3);
- TEST_LIST("mmap_page_zero,any", 0, -1, MMAP_PAGE_ZERO, 15, 3);
-
- TEST_LIST("mmap_page_zero,addr_limit_32bit,short_inode,whole_seconds,"
- "sticky_timeouts,addr_limit_3gb",
- 0, 0,
- MMAP_PAGE_ZERO|ADDR_LIMIT_32BIT|SHORT_INODE|WHOLE_SECONDS|
- STICKY_TIMEOUTS|ADDR_LIMIT_3GB,
- -1, 0);
-
- TEST_T2PT("linux", 0, PER_LINUX);
- TEST_T2PT("LINUX", 0, PER_LINUX);
- TEST_T2PT("LiNuX", 0, PER_LINUX);
- TEST_T2PT("LiNuX", 5, PER_LINUX);
- TEST_T2PT("LiNuX", 4, VC_BAD_PERSONALITY);
- TEST_T2PT("LiNuXAAA", 5, PER_LINUX);
- TEST_T2PT("LiNuXAAA", 4, VC_BAD_PERSONALITY);
- TEST_T2PT("LiNuAAA", 4, VC_BAD_PERSONALITY);
- TEST_T2PT("XXX", 0, VC_BAD_PERSONALITY);
- TEST_T2PT("", 0, VC_BAD_PERSONALITY);
-
-
- return 0;
-}
+++ /dev/null
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: @PACKAGE@
-Description: vserver libraries
-Version: @VERSION@
-Requires:
-Libs: @libflags@-lvserver
-Cflags: @incflags@
+++ /dev/null
-// $Id: utils-legacy.h 177 2003-10-16 14:02:54Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_UTILS_COMPAT_H
-#define H_UTIL_VSERVER_LIB_UTILS_COMPAT_H
-
-#include <stdlib.h>
-#include <sys/types.h>
-
- // read /proc/<pid>/status into 'buf' which has the size bufsize. When 'str'
- // is non-null, search this string and return a pointer *after* it. When no
- // such string could be found, return 0. When 'str' is null return 'buf'.
- //
- // When this function fails (result==0) and errno is EAGAIN, the buffersize
- // was too small and this function should be called again with a larger
- // buffer.
-char * utilvserver_getProcEntry(pid_t pid, char *str,
- char *buf, size_t bufsize);
-
- // Returns the suggested buffersize for reading a /proc/.../status
- // file. Return-value can change when utilvserver_getProcEntry() was called.
-size_t utilvserver_getProcEntryBufsize();
-
-#endif // H_UTIL_VSERVER_LIB_UTILS_COMPAT_H
+++ /dev/null
-// $Id: val2text-t2v-uint32.c 1132 2004-03-07 19:35:59Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "internal.h"
-#include "val2text.hc"
-
-TEXT2VAL(uint_least32_t, uint32)
+++ /dev/null
-// $Id: val2text-t2v-uint64.c 1132 2004-03-07 19:35:59Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "internal.h"
-#include "val2text.hc"
-
-TEXT2VAL(uint_least64_t, uint64)
+++ /dev/null
-// $Id: val2text-v2t-uint32.c 1132 2004-03-07 19:35:59Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "internal.h"
-#include "val2text.hc"
-
-VAL2TEXT(uint_least32_t, uint32)
+++ /dev/null
-// $Id: val2text-v2t-uint64.c 1132 2004-03-07 19:35:59Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "internal.h"
-#include "val2text.hc"
-
-VAL2TEXT(uint_least64_t, uint64)
+++ /dev/null
-// $Id: val2text.hc 1544 2004-05-08 01:27:48Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <strings.h>
-
-#define VAL2TEXT(TYPE,SHORT) \
- ssize_t \
- utilvserver_value2text_##SHORT(char const *str, size_t len, \
- struct Mapping_ ##SHORT const *map, \
- size_t map_len) \
- { \
- size_t i; \
- if (len==0) len=strlen(str); \
- \
- for (i=0; i<map_len; ++i) \
- if (len==map[i].len && \
- strncasecmp(map[i].id, str, len)==0) \
- return i; \
- \
- return -1; \
- }
-
-#define TEXT2VAL(TYPE,SHORT) \
- static ssize_t \
- searchValue(TYPE val, \
- struct Mapping_##SHORT const *map, size_t map_len) \
- { \
- size_t i; \
- for (i=0; i<map_len; ++i) \
- if (val == map[i].val) return i; \
- return -1; \
- } \
- \
- ssize_t \
- utilvserver_text2value_##SHORT(TYPE *val, \
- struct Mapping_##SHORT const *map, \
- size_t map_len) \
- { \
- ssize_t idx; \
- TYPE del_val; \
- if (*val==0) \
- return -1; \
- \
- del_val = *val; \
- idx = searchValue(del_val, map, map_len); \
- \
- if (idx==-1) { \
- size_t i; \
- for (i=0; i<sizeof(*val)*8 && (*val&(1<<i))==0; ++i) {} \
- del_val = (1<<i); \
- idx = searchValue(del_val, map, map_len); \
- } \
- *val &= ~del_val; \
- return idx; \
- }
+++ /dev/null
-// $Id: virtual.h 2589 2007-08-16 03:06:50Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_VIRTUAL_H
-#define H_UTIL_VSERVER_LIB_VIRTUAL_H
-
-#include <kernel/context_cmd.h>
-#include <kernel/cvirt_cmd.h>
-#include <kernel/cvirt_cmd.h>
-#include <kernel/dlimit_cmd.h>
-#include <kernel/inode_cmd.h>
-#include <kernel/limit_cmd.h>
-#include <kernel/space_cmd.h>
-#include <kernel/network.h>
-#include <kernel/network_cmd.h>
-#include <kernel/sched_cmd.h>
-#include <kernel/signal_cmd.h>
-#include <kernel/device_cmd.h>
-#include <kernel/tag_cmd.h>
-
-#include <kernel/legacy.h>
-
-#endif // H_UTIL_VSERVER_LIB_VIRTUAL_H
+++ /dev/null
-// $Id: vserver-internal.h 2589 2007-08-16 03:06:50Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef H_VSERVER_SYSCALL_INTERNAL_H
-# error vserver-internal.h must not be included more than once
-#endif
-
-#ifndef H_VSERVER_SYSCALL_INTERNAL_H
-#define H_VSERVER_SYSCALL_INTERNAL_H
-
-#include <asm/unistd.h>
-#include <errno.h>
-#include <stdint.h>
-#include <unistd.h>
-
-#include "internal.h"
-#include "syscall-wrap.h"
-
-#if !defined(__NR_vserver) && defined(ENSC_SYSCALL__NR_vserver)
-# define __NR_vserver ENSC_SYSCALL__NR_vserver
-#endif
-
-inline static ALWAYSINLINE void vc_noop0() {}
-
-#define VC_PREFIX 0)
-#define VC_SUFFIX else (void)(vc_noop0()
-#define CALL_VC_NOOP vc_noop0()
-#define CALL_VC_GENERAL(ID, SUFFIX, FUNC, ...) \
- VC_PREFIX; VC_SELECT(ID) return FUNC ## _ ## SUFFIX(__VA_ARGS__); VC_SUFFIX
-#define CALL_VC_GENERAL_CONFIG(BIT, SUFFIX, FUNC, ...) \
- VC_PREFIX; VC_CBIT(BIT) return FUNC ## _ ## SUFFIX(__VA_ARGS__); VC_SUFFIX
-
-#ifdef VC_MULTIVERSION_SYSCALL
-# define VC_SELECT(ID) if (ver>=(ID))
-# define VC_CBIT(BIT) if ((conf&BIT) == BIT)
-# define CALL_VC(...) \
- do { \
- int ver = utilvserver_checkCompatVersion(); \
- vc_vci_t UNUSED conf = utilvserver_checkCompatConfig(); \
- if (ver==-1) return -1; \
- VC_SUFFIX, __VA_ARGS__, VC_PREFIX; \
- errno = ENOSYS; \
- return -1; \
- } while (0)
-#else
-# define VC_SELECT(ID) if (1)
-# define VC_CBIT(BIT) if (1)
-# define CALL_VC(...) \
- do { \
- if (1) {} VC_SUFFIX, __VA_ARGS__, VC_PREFIX; \
- errno = ENOSYS; return -1; \
- } while (0)
-#endif
-
-#ifdef VC_ENABLE_API_COMPAT
-# define CALL_VC_COMPAT(F,...) CALL_VC_GENERAL(0x00010000, compat, F, __VA_ARGS__)
-#else
-# define CALL_VC_COMPAT(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_LEGACY
-# define CALL_VC_LEGACY(F,...) CALL_VC_GENERAL(0x00000000, legacy, F, __VA_ARGS__)
-#else
-# define CALL_VC_LEGACY(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_V11
-# define CALL_VC_V11(F,...) CALL_VC_GENERAL(0x00010000, v11, F, __VA_ARGS__)
-#else
-# define CALL_VC_V11(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_V13
-# define CALL_VC_V13(F,...) CALL_VC_GENERAL(0x00010011, v13, F, __VA_ARGS__)
-#else
-# define CALL_VC_V13(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_V13
-# define CALL_VC_V13A(F,...) CALL_VC_GENERAL(0x00010012, v13, F, __VA_ARGS__)
-#else
-# define CALL_VC_V13A(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_V13
-# define CALL_VC_V13B(F,...) CALL_VC_GENERAL(0x00010021, v13b, F, __VA_ARGS__)
-#else
-# define CALL_VC_V13B(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_V13OBS
-# define CALL_VC_V13OBS(F,...) CALL_VC_GENERAL(0x00010011, v13obs, F, __VA_ARGS__)
-#else
-# define CALL_VC_V13OBS(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_V21
-# define CALL_VC_V21(F,...) CALL_VC_GENERAL(0x00020100, v21, F, __VA_ARGS__)
-#else
-# define CALL_VC_V21(F,...) CALL_VC_NOOP
-#endif
-
-#if defined(VC_ENABLE_API_V21) || defined(VC_ENABLE_API_V22) || defined(VC_ENABLE_API_V23)
-# define CALL_VC_SPACES(F,...) CALL_VC_GENERAL_CONFIG(VC_VCI_SPACES, spaces, F, __VA_ARGS__)
-#else
-# define CALL_VC_SPACES(F,...) CALL_VC_NOOP
-#endif
-
-#if defined(VC_ENABLE_API_V23)
-# define CALL_VC_TAG(F,...) CALL_VC_GENERAL_CONFIG(VC_VCI_PPTAG, tag, F, __VA_ARGS__)
-#else
-# define CALL_VC_TAG(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_V22
-# define CALL_VC_V22(F,...) CALL_VC_GENERAL(0x00020200, v22, F, __VA_ARGS__)
-#else
-# define CALL_VC_V22(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_V23
-# define CALL_VC_V23(F,...) CALL_VC_GENERAL(0x00020300, v23, F, __VA_ARGS__)
-#else
-# define CALL_VC_V23(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_NET
-# define CALL_VC_NET(F,...) CALL_VC_GENERAL(0x00010016, net, F, __VA_ARGS__)
-#else
-# define CALL_VC_NET(F,...) CALL_VC_NOOP
-#endif
-
-#if defined(VC_ENABLE_API_NETV2)
-# define CALL_VC_NETV2(F,...) CALL_VC_GENERAL_CONFIG(VC_VCI_NETV2, netv2, F, __VA_ARGS__)
-#else
-# define CALL_VC_NETV2(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_FSCOMPAT
-# define CALL_VC_FSCOMPAT(F,...) CALL_VC_GENERAL(0x00010000, fscompat, F, __VA_ARGS__)
-#else
-# define CALL_VC_FSCOMPAT(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_OLDPROC
-# define CALL_VC_OLDPROC(F,...) CALL_VC_GENERAL(0x00000000, oldproc, F, __VA_ARGS__)
-#else
-# define CALL_VC_OLDPROC(F,...) CALL_VC_NOOP
-#endif
-
-#ifdef VC_ENABLE_API_OLDUTS
-# define CALL_VC_OLDUTS(F,...) CALL_VC_GENERAL(0x00000000, olduts, F, __VA_ARGS__)
-#else
-# define CALL_VC_OLDUTS(F,...) CALL_VC_NOOP
-#endif
-
-
- // Some kernel <-> userspace wrappers; they should be noops in most cases
-
-#if 1
-# define CTX_KERNEL2USER(X) (((X)==(uint32_t)(-1)) ? VC_NOCTX : \
- ((X)==(uint32_t)(-2)) ? VC_SAMECTX : \
- (xid_t)(X))
-
-# define CTX_USER2KERNEL(X) (((X)==VC_DYNAMIC_XID) ? (uint32_t)(-1) : \
- ((X)==VC_SAMECTX) ? (uint32_t)(-2) : \
- (uint32_t)(X))
-#else
-# define CTX_USER2KERNEL(X) (X)
-# define CTX_KERNEL2USER(X) (X)
-#endif
-
-#if 1
-# define TAG_KERNEL2USER(X) (((X)==(uint32_t)(-1)) ? VC_NOCTX : \
- ((X)==(uint32_t)(-2)) ? VC_SAMECTX : \
- (tag_t)(X))
-
-# define TAG_USER2KERNEL(X) (((X)==VC_DYNAMIC_XID) ? (uint32_t)(-1) : \
- ((X)==VC_SAMECTX) ? (uint32_t)(-2) : \
- (uint32_t)(X))
-#else
-# define TAG_USER2KERNEL(X) (X)
-# define TAG_KERNEL2USER(X) (X)
-#endif
-
-#if 1
-# define EXT2FLAGS_USER2KERNEL(X) (((X) & ~(VC_IMMUTABLE_FILE_FL|VC_IMMUTABLE_LINK_FL)) | \
- ((X) & VC_IMMUTABLE_FILE_FL ? EXT2_IMMUTABLE_FILE_FL : 0) | \
- ((X) & VC_IMMUTABLE_LINK_FL ? EXT2_IMMUTABLE_LINK_FL : 0))
-# define EXT2FLAGS_KERNEL2USER(X) (((X) & ~(EXT2_IMMUTABLE_FILE_FL|EXT2_IMMUTABLE_LINK_FL)) | \
- ((X) & EXT2_IMMUTABLE_FILE_FL ? VC_IMMUTABLE_FILE_FL : 0) | \
- ((X) & EXT2_IMMUTABLE_LINK_FL ? VC_IMMUTABLE_LINK_FL : 0))
-#else
-# define EXT2FLAGS_KERNEL2USER(X) (X)
-# define EXT2FLAGS_USER2KERNEL(X) (X)
-#endif
-
-#if 1
-# define VHI_USER2KERNEL(X) ((((X)==vcVHI_CONTEXT) ? VHIN_CONTEXT : \
- ((X)==vcVHI_SYSNAME) ? VHIN_SYSNAME : \
- ((X)==vcVHI_NODENAME) ? VHIN_NODENAME : \
- ((X)==vcVHI_RELEASE) ? VHIN_RELEASE : \
- ((X)==vcVHI_VERSION) ? VHIN_VERSION : \
- ((X)==vcVHI_MACHINE) ? VHIN_MACHINE : \
- ((X)==vcVHI_DOMAINNAME) ? VHIN_DOMAINNAME : \
- (X)))
-# define VHI_KERNEL2USER(X) ((((X)==VHIN_CONTEXT) ? vcVHI_CONTEXT : \
- ((X)==VHIN_SYSNAME) ? vcVHI_SYSNAME : \
- ((X)==VHIN_NODENAME) ? vcVHI_NODENAME : \
- ((X)==VHIN_RELEASE) ? vcVHI_RELEASE : \
- ((X)==VHIN_VERSION) ? vcVHI_VERSION : \
- ((X)==VHIN_MACHINE) ? vcVHI_MACHINE : \
- ((X)==VHIN_DOMAINNAME) ? vcVHI_DOMAINNAME : \
- (X)))
-#else
-# define VHI_USER2KERNEL(X) (X)
-# define VHI_KERNEL2USER(X) (X)
-#endif
-
-#if 1
-# define NID_KERNEL2USER(X) (((X)==(uint32_t)(-1)) ? VC_NONID : \
- (xid_t)(X))
-
-# define NID_USER2KERNEL(X) (((X)==VC_DYNAMIC_NID) ? (uint32_t)(-1) : \
- (uint32_t)(X))
-#else
-# define NID_USER2KERNEL(X) (X)
-# define NID_KERNEL2USER(X) (X)
-#endif
-
-#define CDLIM_USER2KERNEL(X) ((X)==VC_CDLIM_UNSET ? CDLIM_UNSET : \
- (X)==VC_CDLIM_INFINITY ? CDLIM_INFINITY : \
- (X)==VC_CDLIM_KEEP ? CDLIM_KEEP : \
- (X))
-
- /// the __typeof__ thing is a hack to deal with the kernel interface
- /// using an unsigned long long value for a uint32_t type
-#define CDLIM_KERNEL2USER(X) ((X)==(__typeof__(X))CDLIM_UNSET ? VC_CDLIM_UNSET : \
- (X)==(__typeof__(X))CDLIM_INFINITY ? VC_CDLIM_INFINITY : \
- (X)==(__typeof__(X))CDLIM_KEEP ? VC_CDLIM_KEEP : \
- (X))
-
-
-#define ENSC_STRUCT_IDX(STRUCT,ATTR) \
- ((char*)(&(STRUCT).ATTR) - (char*)(&(STRUCT)))
-#define ENSC_SAME_STRUCT_IDX(LHS,RHS,ATTR) \
- (ENSC_STRUCT_IDX(LHS,ATTR) == ENSC_STRUCT_IDX(RHS,ATTR))
-#define ENSC_SAME_STRUCT_ITEM(LHS,RHS,ATTR) \
- (ENSC_SAME_STRUCT_IDX(LHS,RHS,ATTR) && \
- sizeof((LHS).ATTR)==sizeof((RHS).ATTR) && \
- sizeof(LHS)==sizeof(RHS))
-
-#define EXT2_IOC_GETCONTEXT _IOR('x', 1, long)
-#define EXT2_IOC_SETCONTEXT _IOW('x', 2, long)
-
-#ifndef HAVE_VSERVER
-#ifdef ENSC_SYSCALL_TRADITIONAL
-inline static UNUSED ALWAYSINLINE
-int vserver(uint32_t cmd, uint32_t id, void *data)
-{
- return syscall(__NR_vserver, cmd, id, data);
-}
-#else
-inline static UNUSED ALWAYSINLINE
-_syscall3(int, vserver,
- uint32_t, cmd, uint32_t, id, void *, data)
-#endif
-#endif
-
-#endif // H_VSERVER_SYSCALL_INTERNAL_H
+++ /dev/null
-/* $Id: vserver.h 2589 2007-08-16 03:06:50Z dhozac $
-
-* Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-*
-* This program is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 2, or (at your option)
-* any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
-
-/** \file vserver.h
- * \brief The public interface of the the libvserver library.
- */
-
-#ifndef H_VSERVER_SYSCALL_H
-#define H_VSERVER_SYSCALL_H
-
-#include <stdint.h>
-#include <stdlib.h>
-#include <stdbool.h>
-#include <sys/types.h>
-#include <sched.h>
-#include <netinet/in.h>
-
-#ifndef IS_DOXYGEN
-#if defined(__GNUC__)
-# define VC_ATTR_UNUSED __attribute__((__unused__))
-# define VC_ATTR_NORETURN __attribute__((__noreturn__))
-# define VC_ATTR_CONST __attribute__((__const__))
-# define VC_ATTR_DEPRECATED __attribute__((__deprecated__))
-# if __GNUC__*0x10000 + __GNUC_MINOR__*0x100 + __GNUC_PATCHLEVEL__ >= 0x30300
-# define VC_ATTR_NONNULL(ARGS) __attribute__((__nonnull__ ARGS))
-# define VC_ATTR_ALWAYSINLINE __attribute__((__always_inline__))
-# else
-# define VC_ATTR_NONNULL(ARGS)
-# define VC_ATTR_ALWAYSINLINE
-# endif
-# if __GNUC__*0x10000 + __GNUC_MINOR__*0x100 + __GNUC_PATCHLEVEL__ >= 0x30303
-# define VC_ATTR_PURE __attribute__((__pure__))
-# else
-# define VC_ATTR_PURE
-# endif
-#else
-# define VC_ATTR_NONNULL(ARGS)
-# define VC_ATTR_UNUSED
-# define VC_ATTR_NORETURN
-# define VC_ATTR_ALWAYSINLINE
-# define VC_ATTR_DEPRECATED
-# define VC_ATTR_PURE
-# define VC_ATTR_CONST
-#endif
-#endif // IS_DOXYGEN
-
-/** the value which is returned in error-case (no ctx found) */
-#define VC_NOCTX ((xid_t)(-1))
-#define VC_NOXID ((xid_t)(-1))
-/** the value which means a random (the next free) ctx */
-#define VC_DYNAMIC_XID ((xid_t)(-1))
-/** the value which means the current ctx */
-#define VC_SAMECTX ((xid_t)(-2))
-
-#define VC_NONID ((nid_t)(-1))
-#define VC_DYNAMIC_NID ((nid_t)(-1))
-
-#define VC_LIM_INFINITY (~0ULL)
-#define VC_LIM_KEEP (~1ULL)
-
-#define VC_CDLIM_UNSET (0U)
-#define VC_CDLIM_INFINITY (~0U)
-#define VC_CDLIM_KEEP (~1U)
-
-#ifndef S_CTX_INFO_LOCK
-# define S_CTX_INFO_LOCK 1
-#endif
-
-#ifndef S_CTX_INFO_SCHED
-# define S_CTX_INFO_SCHED 2
-#endif
-
-#ifndef S_CTX_INFO_NPROC
-# define S_CTX_INFO_NPROC 4
-#endif
-
-#ifndef S_CTX_INFO_PRIVATE
-# define S_CTX_INFO_PRIVATE 8
-#endif
-
-#ifndef S_CTX_INFO_INIT
-# define S_CTX_INFO_INIT 16
-#endif
-
-#ifndef S_CTX_INFO_HIDEINFO
-# define S_CTX_INFO_HIDEINFO 32
-#endif
-
-#ifndef S_CTX_INFO_ULIMIT
-# define S_CTX_INFO_ULIMIT 64
-#endif
-
-#ifndef S_CTX_INFO_NAMESPACE
-# define S_CTX_INFO_NAMESPACE 128
-#endif
-
-#define VC_CAP_CHOWN 0
-#define VC_CAP_DAC_OVERRIDE 1
-#define VC_CAP_DAC_READ_SEARCH 2
-#define VC_CAP_FOWNER 3
-#define VC_CAP_FSETID 4
-#define VC_CAP_KILL 5
-#define VC_CAP_SETGID 6
-#define VC_CAP_SETUID 7
-#define VC_CAP_SETPCAP 8
-#define VC_CAP_LINUX_IMMUTABLE 9
-#define VC_CAP_NET_BIND_SERVICE 10
-#define VC_CAP_NET_BROADCAST 11
-#define VC_CAP_NET_ADMIN 12
-#define VC_CAP_NET_RAW 13
-#define VC_CAP_IPC_LOCK 14
-#define VC_CAP_IPC_OWNER 15
-#define VC_CAP_SYS_MODULE 16
-#define VC_CAP_SYS_RAWIO 17
-#define VC_CAP_SYS_CHROOT 18
-#define VC_CAP_SYS_PTRACE 19
-#define VC_CAP_SYS_PACCT 20
-#define VC_CAP_SYS_ADMIN 21
-#define VC_CAP_SYS_BOOT 22
-#define VC_CAP_SYS_NICE 23
-#define VC_CAP_SYS_RESOURCE 24
-#define VC_CAP_SYS_TIME 25
-#define VC_CAP_SYS_TTY_CONFIG 26
-#define VC_CAP_MKNOD 27
-#define VC_CAP_LEASE 28
-#define VC_CAP_AUDIT_WRITE 29
-#define VC_CAP_AUDIT_CONTROL 30
-
-#define VC_IMMUTABLE_FILE_FL 0x0000010lu
-#define VC_IMMUTABLE_LINK_FL 0x0808000lu
-#define VC_IMMUTABLE_ALL (VC_IMMUTABLE_LINK_FL|VC_IMMUTABLE_FILE_FL)
-
-#define VC_IATTR_XID 0x01000000u
-
-#define VC_IATTR_ADMIN 0x00000001u
-#define VC_IATTR_WATCH 0x00000002u
-#define VC_IATTR_HIDE 0x00000004u
-#define VC_IATTR_FLAGS 0x00000007u
-
-#define VC_IATTR_BARRIER 0x00010000u
-#define VC_IATTR_IUNLINK 0x00020000u
-#define VC_IATTR_IMMUTABLE 0x00040000u
-
-
-// the flags
-#define VC_VXF_INFO_LOCK 0x00000001ull
-#define VC_VXF_INFO_NPROC 0x00000004ull
-#define VC_VXF_INFO_PRIVATE 0x00000008ull
-#define VC_VXF_INFO_INIT 0x00000010ull
-
-#define VC_VXF_INFO_HIDEINFO 0x00000020ull
-#define VC_VXF_INFO_ULIMIT 0x00000040ull
-#define VC_VXF_INFO_NAMESPACE 0x00000080ull
-
-#define VC_VXF_SCHED_HARD 0x00000100ull
-#define VC_VXF_SCHED_PRIO 0x00000200ull
-#define VC_VXF_SCHED_PAUSE 0x00000400ull
-#define VC_VXF_SCHED_SHARE 0x00000800ull
-
-#define VC_VXF_VIRT_MEM 0x00010000ull
-#define VC_VXF_VIRT_UPTIME 0x00020000ull
-#define VC_VXF_VIRT_CPU 0x00040000ull
-#define VC_VXF_VIRT_LOAD 0x00080000ull
-#define VC_VXF_VIRT_TIME 0x00100000ull
-
-#define VC_VXF_HIDE_MOUNT 0x01000000ull
-#define VC_VXF_HIDE_NETIF 0x02000000ull
-#define VC_VXF_HIDE_VINFO 0x04000000ull
-
-#define VC_VXF_STATE_SETUP (1ULL<<32)
-#define VC_VXF_STATE_INIT (1ULL<<33)
-#define VC_VXF_STATE_ADMIN (1ULL<<34)
-
-#define VC_VXF_SC_HELPER (1ULL<<36)
-#define VC_VXF_REBOOT_KILL (1ULL<<37)
-#define VC_VXF_PERSISTENT (1ULL<<38)
-
-#define VC_VXF_FORK_RSS (1ULL<<48)
-#define VC_VXF_PROLIFIC (1ULL<<49)
-
-#define VC_VXF_IGNEG_NICE (1ULL<<52)
-
-
-// the ccapabilities
-#define VC_VXC_SET_UTSNAME 0x00000001ull
-#define VC_VXC_SET_RLIMIT 0x00000002ull
-
-#define VC_VXC_RAW_ICMP 0x00000100ull
-#define VC_VXC_SYSLOG 0x00001000ull
-
-#define VC_VXC_SECURE_MOUNT 0x00010000ull
-#define VC_VXC_SECURE_REMOUNT 0x00020000ull
-#define VC_VXC_BINARY_MOUNT 0x00040000ull
-
-#define VC_VXC_QUOTA_CTL 0x00100000ull
-#define VC_VXC_ADMIN_MAPPER 0x00200000ull
-#define VC_VXC_ADMIN_CLOOP 0x00400000ull
-
-
-// the scheduler flags
-#define VC_VXSM_FILL_RATE 0x0001
-#define VC_VXSM_INTERVAL 0x0002
-#define VC_VXSM_FILL_RATE2 0x0004
-#define VC_VXSM_INTERVAL2 0x0008
-#define VC_VXSM_TOKENS 0x0010
-#define VC_VXSM_TOKENS_MIN 0x0020
-#define VC_VXSM_TOKENS_MAX 0x0040
-#define VC_VXSM_PRIO_BIAS 0x0100
-#define VC_VXSM_CPU_ID 0x1000
-#define VC_VXSM_BUCKET_ID 0x2000
-
-#define VC_VXSM_IDLE_TIME 0x0200
-#define VC_VXSM_FORCE 0x0400
-#define VC_VXSM_MSEC 0x4000
-
-#define VC_VXSM_V3_MASK 0x0173
-
-
-// the network flags
-#define VC_NXF_INFO_LOCK 0x00000001ull
-#define VC_NXF_INFO_PRIVATE 0x00000008ull
-
-#define VC_NXF_SINGLE_IP 0x00000100ull
-#define VC_NXF_LBACK_REMAP 0x00000200ull
-
-#define VC_NXF_HIDE_NETIF 0x02000000ull
-#define VC_NXF_HIDE_LBACK 0x04000000ull
-
-#define VC_NXF_STATE_SETUP (1ULL<<32)
-#define VC_NXF_STATE_ADMIN (1ULL<<34)
-
-#define VC_NXF_SC_HELPER (1ULL<<36)
-#define VC_NXF_PERSISTENT (1ULL<<38)
-
-
-// the network capabilities
-#define VC_NXC_RAW_ICMP 0x00000100ull
-
-
-// the vserver specific limits
-#define VC_VLIMIT_NSOCK 16
-#define VC_VLIMIT_OPENFD 17
-#define VC_VLIMIT_ANON 18
-#define VC_VLIMIT_SHMEM 19
-#define VC_VLIMIT_SEMARY 20
-#define VC_VLIMIT_NSEMS 21
-#define VC_VLIMIT_DENTRY 22
-#define VC_VLIMIT_MAPPED 23
-
-
-// the VCI bit values
-#define VC_VCI_NO_DYNAMIC (1 << 0)
-#define VC_VCI_SPACES (1 << 10)
-#define VC_VCI_NETV2 (1 << 11)
-#define VC_VCI_PPTAG (1 << 28)
-
-
-// the device mapping flags
-#define VC_DATTR_CREATE 0x00000001
-#define VC_DATTR_OPEN 0x00000002
-
-#define VC_DATTR_REMAP 0x00000010
-
-
-// the process context migration flags
-#define VC_VXM_SET_INIT 0x00000001
-#define VC_VXM_SET_REAPER 0x00000002
-
-
-// the network address flags
-#define VC_NXA_TYPE_IPV4 0x0001
-#define VC_NXA_TYPE_IPV6 0x0002
-
-#define VC_NXA_TYPE_NONE 0x0000
-#define VC_NXA_TYPE_ANY 0x00FF
-
-#define VC_NXA_TYPE_ADDR 0x0010
-#define VC_NXA_TYPE_MASK 0x0020
-#define VC_NXA_TYPE_RANGE 0x0040
-
-#define VC_NXA_MOD_BCAST 0x0100
-#define VC_NXA_MOD_LBACK 0x0200
-
-
-#ifndef CLONE_NEWNS
-# define CLONE_NEWNS 0x00020000
-#endif
-#ifndef CLONE_NEWUTS
-# define CLONE_NEWUTS 0x04000000
-#endif
-#ifndef CLONE_NEWIPC
-# define CLONE_NEWIPC 0x08000000
-#endif
-
-
-
-#define VC_BAD_PERSONALITY ((uint_least32_t)(-1))
-
-
-/** \defgroup syscalls Syscall wrappers
- * Functions which are calling the vserver syscall directly. */
-
-/** \defgroup helper Helper functions
- * Functions which are doing general helper tasks like parameter parsing. */
-
-/** \typedef an_unsigned_integer_type xid_t
- * The identifier of a context. */
-
-#ifdef IS_DOXYGEN
-typedef an_unsigned_integer_type xid_t;
-typedef an_unsigned_integer_type nid_t;
-typedef an_unsigned_integer_type tag_t;
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- /** \brief The generic vserver syscall
- * \ingroup syscalls
- *
- * This function executes the generic vserver syscall. It uses the
- * correct syscallnumber (which may differ between the different
- * architectures).
- *
- * \param cmd the command to be executed
- * \param xid the xid on which the cmd shall be applied
- * \param data additional arguments; depends on \c cmd
- * \returns depends on \c cmd; usually, -1 stands for an error
- */
- int vc_syscall(uint32_t cmd, xid_t xid, void *data);
-
- /** \brief Returns the version of the current kernel API.
- * \ingroup syscalls
- * \returns The versionnumber of the kernel API
- */
- int vc_get_version();
-
- typedef uint64_t vc_vci_t;
- /** \brief Returns the kernel configuration bits
- * \ingroup syscalls
- * \returns The kernel configuration bits
- */
- vc_vci_t vc_get_vci();
-
- /** \brief Moves current process into a context
- * \ingroup syscalls
- *
- * Puts current process into context \a ctx, removes the capabilities
- * given in \a remove_cap and sets \a flags.
- *
- * \param ctx The new context; special values for are
- * - VC_SAMECTX which means the current context (just for changing caps and flags)
- * - VC_DYNAMIC_XID which means the next free context; this value can be used by
- * ordinary users also
- * \param remove_cap The linux capabilities which will be \b removed.
- * \param flags Special flags which will be set.
- *
- * \returns The new context-id, or VC_NOCTX on errors; \c errno
- * will be set appropriately
- *
- * See http://vserver.13thfloor.at/Stuff/Logic.txt for details */
- xid_t vc_new_s_context(xid_t ctx, unsigned int remove_cap, unsigned int flags);
-
- struct vc_ip_mask_pair {
- uint32_t ip;
- uint32_t mask;
- };
-
- /** \brief Sets the ipv4root information.
- * \ingroup syscalls
- * \pre \a nb < NB_IPV4ROOT && \a ips != 0 */
- int vc_set_ipv4root(uint32_t bcast, size_t nb,
- struct vc_ip_mask_pair const *ips) VC_ATTR_NONNULL((3));
-
- /** \brief Returns the value of NB_IPV4ROOT.
- * \ingroup helper
- *
- * This function returns the value of NB_IPV4ROOT which was used when the
- * library was built, but \b not the value which is used by the currently
- * running kernel. */
- size_t vc_get_nb_ipv4root() VC_ATTR_CONST VC_ATTR_PURE;
-
- /* process context */
- /** \brief Flags of process-contexts
- */
- struct vc_ctx_flags {
- /** \brief Mask of set context flags */
- uint_least64_t flagword;
- /** \brief Mask of set and unset context flags when used by set
- * operations, or modifiable flags when used by get
- * operations */
- uint_least64_t mask;
- };
-
- /** \brief Creates a context without starting it.
- * \ingroup syscalls
- *
- * This functions initializes a new context. When already in a freshly
- * created context, this old context will be discarded.
- *
- * \param xid The new context; special values are:
- * - VC_DYNAMIC_XID which means to create a dynamic context
- *
- * \returns the xid of the created context, or VC_NOCTX on errors. \c errno
- * will be set appropriately. */
- xid_t vc_ctx_create(xid_t xid, struct vc_ctx_flags *flags);
-
- /** \brief Moves the current process into the specified context.
- * \ingroup syscalls
- *
- * \param xid The new context
- * \param flags The flags, see VC_VXM_*
- * \returns 0 on success, -1 on errors */
- int vc_ctx_migrate(xid_t xid, uint_least64_t flags);
-
- /** \brief Statistics about a context */
- struct vc_ctx_stat {
- uint_least32_t usecnt; ///< number of uses
- uint_least32_t tasks; ///< number of tasks
- };
-
- /** \brief Get some statistics about a context.
- * \ingroup syscalls
- *
- * \param xid The context to get stats about
- * \param stat Where to store the result
- *
- * \returns 0 on success, -1 on errors. */
- int vc_ctx_stat(xid_t xid, struct vc_ctx_stat /*@out@*/ *stat) VC_ATTR_NONNULL((2));
-
- /** \brief Contains further statistics about a context. */
- struct vc_virt_stat {
- uint_least64_t offset;
- uint_least64_t uptime;
- uint_least32_t nr_threads;
- uint_least32_t nr_running;
- uint_least32_t nr_uninterruptible;
- uint_least32_t nr_onhold;
- uint_least32_t nr_forks;
- uint_least32_t load[3];
- };
-
- /** \brief Get more statistics about a context.
- * \ingroup syscalls
- *
- * \param xid The context to get stats about
- * \param stat Where to store the result
- *
- * \returns 0 on success, -1 on errors. */
- int vc_virt_stat(xid_t xid, struct vc_virt_stat /*@out@*/ *stat) VC_ATTR_NONNULL((2));
-
- /** \brief Sends a signal to a context/pid
- * \ingroup syscalls
- *
- * Special values for \a pid are:
- * - -1 which means every process in ctx except the init-process
- * - 0 which means every process in ctx inclusive the init-process */
- int vc_ctx_kill(xid_t ctx, pid_t pid, int sig);
-
- int vc_get_cflags(xid_t xid, struct vc_ctx_flags /*@out@*/ *) VC_ATTR_NONNULL((2));
- int vc_set_cflags(xid_t xid, struct vc_ctx_flags /*@in@*/ const *) VC_ATTR_NONNULL((2));
-
- /** \brief Capabilities of process-contexts */
- struct vc_ctx_caps {
- /** \brief Mask of set common system capabilities */
- uint_least64_t bcaps;
- /** \brief Mask of set and unset common system capabilities when used by
- * set operations, or the modifiable capabilities when used by
- * get operations */
- uint_least64_t bmask;
- /** \brief Mask of set process context capabilities */
- uint_least64_t ccaps;
- /** \brief Mask of set and unset process context capabilities when used
- * by set operations, or the modifiable capabilities when used
- * by get operations */
- uint_least64_t cmask;
- };
-
- int vc_get_ccaps(xid_t xid, struct vc_ctx_caps *);
- int vc_set_ccaps(xid_t xid, struct vc_ctx_caps const *);
-
- struct vc_vx_info {
- xid_t xid;
- pid_t initpid;
- };
-
- int vc_get_vx_info(xid_t xid, struct vc_vx_info *info) VC_ATTR_NONNULL((2));
-
- /** \brief Returns the context of the given process.
- * \ingroup syscalls
- *
- * \param pid the process-id whose xid shall be determined;
- * pid==0 means the current process.
- * \returns the xid of process \c pid or -1 on errors
- */
- xid_t vc_get_task_xid(pid_t pid);
-
- /** \brief Waits for the end of a context
- * \ingroup syscalls
- */
- int vc_wait_exit(xid_t xid);
-
- /* rlimit related functions */
-
- /** \brief The type which is used for a single limit value.
- *
- * Special values are
- * - VC_LIM_INFINITY ... which is the infinite value
- * - VC_LIM_KEEP ... which is used to mark values which shall not be
- * modified by the vc_set_rlimit() operation.
- *
- * Else, the interpretation of the value depends on the corresponding
- * resource; it might be bytes, pages, seconds or litres of beer. */
- typedef uint_least64_t vc_limit_t;
-
- /** \brief Masks describing the supported limits. */
- struct vc_rlimit_mask {
- uint_least32_t min; ///< masks the resources supporting a minimum limit
- uint_least32_t soft; ///< masks the resources supporting a soft limit
- uint_least32_t hard; ///< masks the resources supporting a hard limit
- };
-
- /** \brief Returns the limits supported by the kernel */
- int vc_get_rlimit_mask(xid_t xid,
- struct vc_rlimit_mask /*@out@*/ *lim) VC_ATTR_NONNULL((2));
-
- /** \brief The limits of a resources.
- *
- * This is a triple consisting of a minimum, soft and hardlimit. */
- struct vc_rlimit {
- vc_limit_t min; ///< the guaranted minimum of a resources
- vc_limit_t soft; ///< the softlimit of a resource
- vc_limit_t hard; ///< the absolute hardlimit of a resource
- };
-
- /** \brief Returns the limits of \a resource.
- * \ingroup syscalls
- *
- * \param xid The id of the context
- * \param resource The resource which will be queried
- * \param lim The result which will be filled with the limits
- *
- * \returns 0 on success, and -1 on errors. */
- int vc_get_rlimit(xid_t xid, int resource,
- struct vc_rlimit /*@out@*/ *lim) VC_ATTR_NONNULL((3));
- /** \brief Sets the limits of \a resource.
- * \ingroup syscalls
- *
- * \param xid The id of the context
- * \param resource The resource which will be queried
- * \param lim The new limits
- *
- * \returns 0 on success, and -1 on errors. */
- int vc_set_rlimit(xid_t xid, int resource,
- struct vc_rlimit const /*@in@*/ *lim) VC_ATTR_NONNULL((3));
-
- /** \brief Statistics for a resource limit. */
- struct vc_rlimit_stat {
- uint_least32_t hits; ///< number of hits on the limit
- vc_limit_t value; ///< current value
- vc_limit_t minimum; ///< minimum value observed
- vc_limit_t maximum; ///< maximum value observed
- };
-
- /** \brief Returns the current stats of \a resource.
- * \ingroup syscalls
- *
- * \param xid The id of the context
- * \param resource The resource which will be queried
- * \param stat The result which will be filled with the stats
- *
- * \returns 0 on success, and -1 on errors. */
- int vc_rlimit_stat(xid_t xid, int resource,
- struct vc_rlimit_stat /*@out@*/ *stat) VC_ATTR_NONNULL((3));
-
- /** \brief Resets the minimum and maximum observed values of all resources.
- * \ingroup syscalls
- *
- * \param xid The id of the context
- *
- * \returns 0 on success, and -1 on errors. */
- int vc_reset_minmax(xid_t xid);
-
- /** \brief Parses a string describing a limit
- * \ingroup helper
- *
- * This function parses \a str and interprets special words like \p "inf"
- * or suffixes. Valid suffixes are
- * - \p k ... 1000
- * - \p m ... 1000000
- * - \p K ... 1024
- * - \p M ... 1048576
- *
- * \param str The string which shall be parsed
- * \param res Will be filled with the interpreted value; in errorcase,
- * this value is undefined.
- *
- * \returns \a true, iff the string \a str could be parsed. \a res will
- * be filled with the interpreted value in this case.
- *
- * \pre \a str!=0 && \a res!=0
- */
- bool vc_parseLimit(char const /*@in@*/ *str, vc_limit_t /*@out@*/ *res) VC_ATTR_NONNULL((1,2));
-
-
- /* network context */
- struct vc_nx_info {
- nid_t nid;
- };
-
- nid_t vc_get_task_nid(pid_t pid);
- int vc_get_nx_info(nid_t nid, struct vc_nx_info *) VC_ATTR_NONNULL((2));
-
- struct vc_net_addr {
- uint16_t vna_type;
- uint16_t vna_flags;
- uint16_t vna_prefix;
- uint16_t vna_parent;
- union {
- struct {
- struct in_addr ip;
- struct in_addr mask;
- } ipv4;
- struct {
- struct in6_addr ip;
- struct in6_addr mask;
- } ipv6;
- } u;
-#define vna_v4_ip u.ipv4.ip
-#define vna_v4_mask u.ipv4.mask
-#define vna_v6_ip u.ipv6.ip
-#define vna_v6_mask u.ipv6.mask
- };
-
- struct vc_net_flags {
- uint_least64_t flagword;
- uint_least64_t mask;
- };
-
- nid_t vc_net_create(nid_t nid);
- int vc_net_migrate(nid_t nid);
-
- int vc_net_add(nid_t nid, struct vc_net_addr const *info);
- int vc_net_remove(nid_t nid, struct vc_net_addr const *info);
-
- int vc_get_nflags(nid_t, struct vc_net_flags *);
- int vc_set_nflags(nid_t, struct vc_net_flags const *);
-
- struct vc_net_caps {
- uint_least64_t ncaps;
- uint_least64_t cmask;
- };
-
- int vc_get_ncaps(nid_t, struct vc_net_caps *);
- int vc_set_ncaps(nid_t, struct vc_net_caps const *);
-
-
- /* iattr related functions */
-
- int vc_set_iattr(char const *filename, xid_t xid,
- uint_least32_t flags, uint_least32_t mask) VC_ATTR_NONNULL((1));
-
- int vc_fset_iattr(int fd, xid_t xid,
- uint_least32_t flags, uint_least32_t mask);
-
- /** \brief Returns information about attributes and assigned context of a file.
- * \ingroup syscalls
- *
- * This function returns the VC_IATTR_XXX flags and about the assigned
- * context of a file. To request an information, the appropriate bit in
- * \c mask must be set and the corresponding parameter (\a xid or \a
- * flags) must not be NULL.
- *
- * E.g. to receive the assigned context, the \c VC_IATTR_XID bit must be
- * set in \a mask, and \a xid must point to valid memory.
- *
- * Possible flags are \c VC_IATTR_ADMIN, \c VC_IATTR_WATCH , \c VC_IATTR_HIDE,
- * \c VC_IATTR_BARRIER, \c VC_IATTR_IUNLINK and \c VC_IATTR_IMMUTABLE.
- *
- * \param filename The name of the file whose attributes shall be determined.
-
- * \param xid When non-zero and the VC_IATTR_XID bit is set in \a mask,
- * the assigned context of \a filename will be stored there.
- * \param flags When non-zero, a bitmask of current attributes will be
- * stored there. These attributes must be requested explicitly
- * by setting the appropriate bit in \a mask
- * \param mask Points to a bitmask which tells which attributes shall be
- * determined. On return, it will masquerade the attributes
- * which were determined.
- *
- * \pre mask!=0 && !((*mask&VC_IATTR_XID) && xid==0) && !((*mask&~VC_IATTR_XID) && flags==0) */
- int vc_get_iattr(char const *filename, xid_t * /*@null@*/ xid,
- uint_least32_t * /*@null@*/ flags,
- uint_least32_t * /*@null@*/ mask) VC_ATTR_NONNULL((1));
-
- int vc_fget_iattr(int fd, xid_t * /*@null@*/ xid,
- uint_least32_t * /*@null@*/ flags,
- uint_least32_t * /*@null@*/ mask) VC_ATTR_NONNULL((4));
-
- /** \brief Returns the context of \c filename
- * \ingroup syscalls
- *
- * This function calls vc_get_iattr() with appropriate arguments to
- * determine the context of \c filename. In error-case or when no context
- * is assigned, \c VC_NOCTX will be returned. To differ between both cases,
- * \c errno must be examined.
- *
- * \b WARNING: this function can modify \c errno although no error happened.
- *
- * \param filename The file to check
- * \returns The assigned context, or VC_NOCTX when an error occured or no
- * such assignment exists. \c errno will be 0 in the latter case */
- xid_t vc_getfilecontext(char const *filename) VC_ATTR_NONNULL((1));
-
-
- /* vhi related functions */
- typedef enum { vcVHI_CONTEXT, vcVHI_SYSNAME, vcVHI_NODENAME,
- vcVHI_RELEASE, vcVHI_VERSION, vcVHI_MACHINE,
- vcVHI_DOMAINNAME } vc_uts_type;
-
- int vc_set_vhi_name(xid_t xid, vc_uts_type type,
- char const *val, size_t len) VC_ATTR_NONNULL((3));
- int vc_get_vhi_name(xid_t xid, vc_uts_type type,
- char *val, size_t len) VC_ATTR_NONNULL((3));
-
- /* namespace related functions */
- int vc_enter_namespace(xid_t xid, uint_least64_t mask);
- int vc_set_namespace(xid_t xid, uint_least64_t mask);
- int vc_cleanup_namespace();
- uint_least64_t vc_get_space_mask();
-
-
- /* disk limit related things */
- struct vc_ctx_dlimit {
- uint_least32_t space_used;
- uint_least32_t space_total;
- uint_least32_t inodes_used;
- uint_least32_t inodes_total;
- uint_least32_t reserved;
- };
-
-
- /** Add a disk limit to a file system. */
- int vc_add_dlimit(char const *filename, xid_t xid,
- uint_least32_t flags) VC_ATTR_NONNULL((1));
- /** Remove a disk limit from a file system. */
- int vc_rem_dlimit(char const *filename, xid_t xid,
- uint_least32_t flags) VC_ATTR_NONNULL((1));
-
- /** Set a disk limit. */
- int vc_set_dlimit(char const *filename, xid_t xid,
- uint_least32_t flags,
- struct vc_ctx_dlimit const *limits) VC_ATTR_NONNULL((1,4));
- /** Get a disk limit. */
- int vc_get_dlimit(char const *filename, xid_t xid,
- uint_least32_t flags,
- struct vc_ctx_dlimit *limits) VC_ATTR_NONNULL((1));
-
- /** Get the filesystem tag for a process. */
- tag_t vc_get_task_tag(pid_t pid);
-
- /** Create a new filesystem tag space. */
- int vc_tag_create(tag_t tag);
-
- /** Migrate to an existing filesystem tag space. */
- int vc_tag_migrate(tag_t tag);
-
- /* scheduler related syscalls */
- struct vc_set_sched {
- uint_least32_t set_mask;
- int_least32_t fill_rate;
- int_least32_t interval;
- int_least32_t fill_rate2;
- int_least32_t interval2;
- int_least32_t tokens;
- int_least32_t tokens_min;
- int_least32_t tokens_max;
- int_least32_t priority_bias;
- int_least32_t cpu_id;
- int_least32_t bucket_id;
- };
-
- int vc_set_sched(xid_t xid, struct vc_set_sched const *) VC_ATTR_NONNULL((2));
- int vc_get_sched(xid_t xid, struct vc_set_sched *) VC_ATTR_NONNULL((2));
-
- struct vc_sched_info {
- int_least32_t cpu_id;
- int_least32_t bucket_id;
- uint_least64_t user_msec;
- uint_least64_t sys_msec;
- uint_least64_t hold_msec;
- uint_least32_t token_usec;
- int_least32_t vavavoom;
- };
-
- int vc_sched_info(xid_t xid, struct vc_sched_info *info) VC_ATTR_NONNULL((2));
-
- /* misc. syscalls */
- int vc_set_mapping(xid_t xid, const char *device, const char *target, uint32_t flags);
-
-
- /** \brief Information about parsing errors
- * \ingroup helper
- */
- struct vc_err_listparser {
- char const *ptr; ///< Pointer to the first character of an erroneous string
- size_t len; ///< Length of the erroneous string
- };
-
- /** \brief Converts a single string into bcapability
- * \ingroup helper
- *
- * \param str The string to be parsed;
- * both "CAP_xxx" and "xxx" will be accepted
- * \param len The length of the string, or \c 0 for automatic detection
- *
- * \returns 0 on error; a bitmask on success
- * \pre \a str != 0
- */
- uint_least64_t vc_text2bcap(char const *str, size_t len);
-
- /** \brief Converts the lowest bit of a bcapability or the entire value
- * (when possible) to a textual representation
- * \ingroup helper
- *
- * \param val The string to be converted; on success, the detected bit(s)
- * will be unset, in errorcase only the lowest set bit
- *
- * \returns A textual representation of \a val resp. of its lowest set bit;
- * or \c NULL in errorcase.
- * \pre \a val!=0
- * \post \a *val<sub>old</sub> \c != 0 \c <-->
- * \a *val<sub>old</sub> > \a *val<sub>new</sub>
- * \post \a *val<sub>old</sub> \c == 0 \c ---> \a result == 0
- */
- char const * vc_lobcap2text(uint_least64_t *val) VC_ATTR_NONNULL((1));
-
- /** \brief Converts a string into a bcapability-bitmask
- * \ingroup helper
- *
- * Syntax of \a str: \verbinclude list2xxx.syntax
- *
- * When the \c `~' prefix is used, the bits will be unset and a `~' after
- * another `~' will cancel both ones. The \c `^' prefix specifies a
- * bitnumber instead of a bitmask.
- *
- * "literal name" is everything which will be accepted by the
- * vc_text2bcap() function. The special values for \c NAME will be
- * recognized case insensitively
- *
- * \param str The string to be parsed
- * \param len The length of the string, or \c 0 for automatic detection
- * \param err Pointer to a structure for error-information, or \c NULL.
- * \param cap Pointer to a vc_ctx_caps structure holding the results;
- * only the \a bcaps and \a bmask fields will be changed and
- * already set values will not be honored. When an error
- * occured, \a cap will have the value of all processed valid
- * \c BCAP parts.
- *
- * \returns 0 on success, -1 on error. In error case, \a err will hold
- * position and length of the first not understood BCAP part
- * \pre \a str != 0 && \a cap != 0;
- * \a cap->bcaps and \a cap->bmask must be initialized
- */
- int vc_list2bcap(char const *str, size_t len,
- struct vc_err_listparser *err,
- struct vc_ctx_caps *cap) VC_ATTR_NONNULL((1,4));
-
- uint_least64_t vc_text2ccap(char const *, size_t len);
- char const * vc_loccap2text(uint_least64_t *);
- int vc_list2ccap(char const *, size_t len,
- struct vc_err_listparser *err,
- struct vc_ctx_caps *);
-
- int vc_list2cflag(char const *, size_t len,
- struct vc_err_listparser *err,
- struct vc_ctx_flags *flags);
- uint_least64_t vc_text2cflag(char const *, size_t len);
- char const * vc_locflag2text(uint_least64_t *);
-
- uint_least32_t vc_list2cflag_compat(char const *, size_t len,
- struct vc_err_listparser *err);
- uint_least32_t vc_text2cflag_compat(char const *, size_t len);
- char const * vc_hicflag2text_compat(uint_least32_t);
-
- int vc_text2cap(char const *);
- char const * vc_cap2text(unsigned int);
-
-
- int vc_list2nflag(char const *, size_t len,
- struct vc_err_listparser *err,
- struct vc_net_flags *flags);
- uint_least64_t vc_text2nflag(char const *, size_t len);
- char const * vc_lonflag2text(uint_least64_t *);
-
- uint_least64_t vc_text2ncap(char const *, size_t len);
- char const * vc_loncap2text(uint_least64_t *);
- int vc_list2ncap(char const *, size_t len,
- struct vc_err_listparser *err,
- struct vc_net_caps *);
-
- uint_least64_t vc_get_insecurebcaps() VC_ATTR_CONST;
- inline static uint_least64_t vc_get_insecureccaps() {
- return ~(VC_VXC_SET_UTSNAME|VC_VXC_RAW_ICMP);
- }
-
- inline static int vc_setfilecontext(char const *filename, xid_t xid) {
- return vc_set_iattr(filename, xid, 0, VC_IATTR_XID);
- }
-
-
- uint_least32_t vc_text2personalityflag(char const *str,
- size_t len) VC_ATTR_NONNULL((1));
-
- char const * vc_lopersonality2text(uint_least32_t *) VC_ATTR_NONNULL((1));
-
- int vc_list2personalityflag(char const /*@in@*/ *,
- size_t len,
- uint_least32_t /*@out@*/ *personality,
- struct vc_err_listparser /*@out@*/ *err) VC_ATTR_NONNULL((1,3));
-
- uint_least32_t vc_str2personalitytype(char const /*@in@*/*,
- size_t len) VC_ATTR_NONNULL((1));
-
-
- typedef enum { vcFEATURE_VKILL, vcFEATURE_IATTR, vcFEATURE_RLIMIT,
- vcFEATURE_COMPAT, vcFEATURE_MIGRATE, vcFEATURE_NAMESPACE,
- vcFEATURE_SCHED, vcFEATURE_VINFO, vcFEATURE_VHI,
- vcFEATURE_VSHELPER0, vcFEATURE_VSHELPER, vcFEATURE_VWAIT,
- vcFEATURE_VNET, vcFEATURE_VSTAT, vcFEATURE_PPTAG, }
- vcFeatureSet;
-
- bool vc_isSupported(vcFeatureSet) VC_ATTR_CONST;
- bool vc_isSupportedString(char const *);
-
-
- typedef enum { vcTYPE_INVALID, vcTYPE_MAIN, vcTYPE_WATCH,
- vcTYPE_STATIC, vcTYPE_DYNAMIC }
- vcXidType;
-
- vcXidType vc_getXIDType(xid_t xid) VC_ATTR_CONST;
-
- /** Returns true iff \a xid is a dynamic xid */
- bool vc_is_dynamic_xid(xid_t xid);
-
-
- /* The management part */
-
-#define VC_LIMIT_VSERVER_NAME_LEN 1024
-
- typedef enum { vcCFG_NONE, vcCFG_AUTO,
- vcCFG_LEGACY,
- vcCFG_RECENT_SHORT,
- vcCFG_RECENT_FULL } vcCfgStyle;
-
-
- /** Maps an xid given at '--xid' options to an xid_t */
- xid_t vc_xidopt2xid(char const *, bool honor_static, char const **err_info);
- /** Maps a nid given at '--nid' options to a nid_t */
- nid_t vc_nidopt2nid(char const *, bool honor_static, char const **err_info);
- /** Maps a tag given at '--tag' options to a tag_t */
- tag_t vc_tagopt2tag(char const *, bool honor_static, char const **err_info);
-
- vcCfgStyle vc_getVserverCfgStyle(char const *id);
-
- /** Resolves the name of the vserver. The result will be allocated and must
- be freed by the caller. */
- char * vc_getVserverName(char const *id, vcCfgStyle style);
-
- /** Returns the path of the vserver configuration directory. When the given
- * vserver does not exist, or when it does not have such a directory, NULL
- * will be returned. Else, the result will be allocated and must be freed
- * by the caller. */
- char * vc_getVserverCfgDir(char const *id, vcCfgStyle style);
-
- /** Returns the path of the configuration directory for the given
- * application. The result will be allocated and must be freed by the
- * caller. */
- char * vc_getVserverAppDir(char const *id, vcCfgStyle style, char const *app);
-
- /** Returns the path to the vserver root-directory. The result will be
- * allocated and must be freed by the caller. */
- char * vc_getVserverVdir(char const *id, vcCfgStyle style, bool physical);
-
- typedef enum { vcCTX_XID = 1,
- vcCTX_NID,
- vcCTX_TAG,
- } vcCtxType;
-
- /** Returns the ctx of the given vserver. When vserver is not running and
- * 'honor_static' is false, VC_NOCTX will be returned. Else, when
- * 'honor_static' is true and a static assignment exists, those value will
- * be returned. Else, the result will be VC_NOCTX.
- *
- * When 'is_running' is not null, the status of the vserver will be
- * assigned to this variable. */
- xid_t vc_getVserverCtx(char const *id, vcCfgStyle style,
- bool honor_static, bool /*@null@*/ *is_running,
- vcCtxType type);
-
- /** Resolves the cfg-path of the vserver owning the given ctx. 'revdir' will
- be used as the directory holding the mapping-links; when NULL, the
- default value will be assumed. The result will be allocated and must be
- freed by the caller. */
- char * vc_getVserverByCtx(xid_t ctx, /*@null@*/vcCfgStyle *style,
- /*@null@*/char const *revdir);
-
- int vc_compareVserverById(char const *lhs, vcCfgStyle lhs_style,
- char const *rhs, vcCfgStyle rhs_style);
-
-#define vcSKEL_INTERFACES 1u
-#define vcSKEL_PKGMGMT 2u
-#define vcSKEL_FILESYSTEM 4u
-
- /** Create a basic configuration skeleton for a vserver plus toplevel
- * directories for pkgmanagemt and filesystem (when requested). */
- int vc_createSkeleton(char const *id, vcCfgStyle style, int flags);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#undef VC_ATTR_PURE
-#undef VC_ATTR_ALWAYSINLINE
-#undef VC_ATTR_NORETURN
-#undef VC_ATTR_UNUSED
-#undef VC_ATTR_NONNULL
-
-#endif
+++ /dev/null
-// $Id: xidopt2xid.c 2589 2007-08-16 03:06:50Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include <string.h>
-#include <stdlib.h>
-
-static xid_t
-getVserverXid(char const *id, bool honor_static, char const **err)
-{
- *err = "vc_getVserverCtx";
- return vc_getVserverCtx(id, vcCFG_AUTO, honor_static, 0, vcCTX_XID);
-}
-
-xid_t
-vc_xidopt2xid(char const *str, bool honor_static, char const **err_info)
-{
- char const * err;
- xid_t res = VC_NOCTX;
-
- err = "vc_get_task_xid()";
- if (strcmp(str,"self")==0) res = vc_get_task_xid(0);
- else if (str[0]==':') res = getVserverXid(str+1, honor_static, &err);
- else {
- char * endptr;
- xid_t xid = strtol(str, &endptr, 10);
-
- if (endptr!=str && (*endptr=='\0' || *endptr=='\n'))
- res = xid;
- else
- res = getVserverXid(str, honor_static, &err);
- }
-
- if (res==VC_NOCTX && err_info) *err_info = err;
-
- return res;
-}
+++ /dev/null
-## $Id: Makefile-files 2579 2007-08-08 20:47:12Z dhozac $ -*- makefile -*-
-
-## Copyright (C) 2003,2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-
-LIBINTERNAL_GLIBC = lib_internal/libinternal-glibc.a
-noinst_LIBRARIES += $(LIBINTERNAL_GLIBC)
-
-if USE_DIETLIBC
-LIBINTERNAL_DIET = lib_internal/libinternal-diet.a
-LIBINTERNAL = $(LIBINTERNAL_DIET)
-noinst_LIBRARIES += $(LIBINTERNAL_DIET)
-else
-LIBINTERNAL_DIET = lib-dietlibc-not-enabled-error.a
-LIBINTERNAL = $(LIBINTERNAL_GLIBC)
-endif
-
-
-command_SRCS = lib_internal/command-appendparameter.c \
- lib_internal/command-setparams.c \
- lib_internal/command-exec.c\
- lib_internal/command-free.c \
- lib_internal/command-init.c \
- lib_internal/command-reset.c \
- lib_internal/command-wait.c \
- lib_internal/command.h
-
-if ENSC_HAVE_C99_COMPILER
-filecfg_SRCS = lib_internal/filecfg.h \
- lib_internal/filecfg-iteratemultiline.c \
- lib_internal/filecfg-readentryflag.c \
- lib_internal/filecfg-readentrystr.c \
- lib_internal/matchlist-initbyvserver.c \
- lib_internal/matchvserverinfo-init.c \
- lib_internal/unify-copy.c
-endif
-
-noinst_HEADERS += \
- lib_internal/coreassert.h \
- lib_internal/errinfo.h \
- lib_internal/jail.h \
- lib_internal/matchlist.h \
- lib_internal/pathinfo.h \
- lib_internal/string.h \
- lib_internal/sys_clone.h \
- lib_internal/sys_personality.h \
- lib_internal/sys_unshare.h \
- lib_internal/unify.h \
- lib_internal/util.h \
- lib_internal/util-cast.h \
- lib_internal/util-commonstrings.h \
- lib_internal/util-debug.h \
- lib_internal/util-declarecmd.h \
- lib_internal/util-dimof.h \
- lib_internal/util-dotfile.h \
- lib_internal/util-exitlikeprocess.h \
- lib_internal/util-io.h \
- lib_internal/util-lockfile.h \
- lib_internal/util-mem.h \
- lib_internal/util-perror.h \
- lib_internal/util-safechdir.h \
- lib_internal/util-unixsock.h \
- lib_internal/string.hc
-
-lib_internal_libinternal_common_SRCS = \
- lib_internal/errinfo-writeerrno.c \
- lib_internal/jailintotempdir.c \
- lib_internal/matchlist-appendfiles.c \
- lib_internal/matchlist-compare.c \
- lib_internal/matchlist-destroy.c \
- lib_internal/matchlist-init.c \
- lib_internal/matchlist-initmanually.c \
- lib_internal/matchlist-initrefserverlist.c \
- lib_internal/matchlist-printid.c \
- lib_internal/matchvserverinfo-free.c \
- lib_internal/pathinfo-append.c \
- lib_internal/pathinfo-test.c \
- lib_internal/switchtowatchxid.c \
- lib_internal/unify-deunify.c \
- lib_internal/unify-settime.c \
- lib_internal/unify-unify.c \
- lib_internal/unify-isiunlinkable.c \
- lib_internal/util-canonify.c \
- lib_internal/util-exitlikeprocess.c \
- lib_internal/util-isnumber.hc \
- lib_internal/util-isnumber.c \
- lib_internal/util-isnumberunsigned.c \
- lib_internal/util-lockfile.c \
- lib_internal/util-safechdir.c \
- lib_internal/mkdir.c \
- $(command_SRCS) \
- $(filecfg_SRCS)
-
-lib_internal_libinternal_diet_a_SOURCES = \
- $(lib_internal_libinternal_common_SRCS)
-
-lib_internal_libinternal_glibc_a_SOURCES = \
- $(lib_internal_libinternal_common_SRCS)
-
-lib_internal_libinternal_diet_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
-lib_internal_libinternal_glibc_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
-
-DIETPROGS += lib_internal/libinternal-diet.a
-
-CLEANFILES += lib_internal/libinternal-diet.a \
- lib_internal/libinternal-glibc.a
-
-include $(top_srcdir)/lib_internal/testsuite/Makefile-files
+++ /dev/null
-// $Id: command-appendparameter.c 1665 2004-08-19 14:09:34Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "command.h"
-#include "util.h"
-
-void
-Command_appendParameter(struct Command *cmd, char const *param)
-{
- switch (cmd->params_style_) {
- case parNONE :
- Vector_init(&cmd->params.v, 10);
- cmd->params_style_ = parVEC;
- /*@fallthrough@*/
- case parVEC : {
- char const **p = Vector_pushback(&cmd->params.v);
- *p = param;
- break;
- }
-
- default :
- WRITE_MSG(2, "internal error: conflicting functions Command_appendParameter() and Command_setParams() used together; aborting...\n");
- abort();
- }
-}
+++ /dev/null
-// $Id: command-exec.c 1957 2005-03-22 15:25:54Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "command.h"
-#include "util.h"
-
-#include <unistd.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <assert.h>
-
-static inline bool
-initPipes(int p[2])
-{
- return (pipe(p)!=-1 &&
- fcntl(p[1], F_SETFD, FD_CLOEXEC)!=-1);
-}
-
-bool
-Command_exec(struct Command *cmd, bool do_fork)
-{
- int p[2];
-
- if (cmd->params_style_==parVEC)
- Vector_zeroEnd(&cmd->params.v);
-
- if (!do_fork)
- cmd->pid = 0;
- else if (!initPipes(p) ||
- (cmd->pid = fork())==-1) {
- cmd->err = errno;
- return false;
- }
-
- if (cmd->pid==0) {
- char const ** argv = { 0 };
-
- if (do_fork) close(p[0]);
-
- switch (cmd->params_style_) {
- case parVEC : argv = cmd->params.v.data; break;
- case parDATA : argv = cmd->params.d; break;
- default : break;
- }
-
- execv(cmd->filename ? cmd->filename : argv[0],
- reinterpret_cast(char **const)(argv));
- cmd->err = errno;
- assert(cmd->err != 0);
-
- if (do_fork) {
- TEMP_FAILURE_RETRY(write(p[1], &cmd->err, sizeof(cmd->err)));
- _exit(1); // implicates 'close(p[1])'
- }
- }
- else {
- close(p[1]);
- if (read(p[0], &cmd->err, sizeof(cmd->err))==0)
- cmd->err = 0;
- else // cleanup zombies
- while (wait4(cmd->pid, 0,0,0)==-1 &&
- (errno==EINTR || errno==EAGAIN)) {};
- close(p[0]);
- }
-
- return cmd->err==0;
-}
+++ /dev/null
-// $Id: command-free.c 1665 2004-08-19 14:09:34Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "command.h"
-
-void
-Command_free(struct Command *cmd)
-{
- if (cmd->params_style_==parVEC)
- Vector_free(&cmd->params.v);
-}
+++ /dev/null
-// $Id: command-init.c 1665 2004-08-19 14:09:34Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "command.h"
-
-void
-Command_init(struct Command *cmd)
-{
- cmd->filename = 0;
- cmd->pid = -1;
- cmd->rc = -1;
- cmd->err = 0;
- cmd->params_style_ = parNONE;
-}
+++ /dev/null
-// $Id: command-reset.c 1605 2004-06-27 14:40:17Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "command.h"
-
-void
-Command_reset(struct Command *cmd)
-{
- cmd->pid = -1;
- cmd->rc = -1;
- cmd->err = 0;
-}
+++ /dev/null
-// $Id: command-setparams.c 1664 2004-08-19 14:08:17Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "command.h"
-#include "util.h"
-
-void
-Command_setParams(struct Command *cmd, char const **par)
-{
- switch (cmd->params_style_) {
- case parNONE :
- cmd->params_style_ = parDATA;
- /*@fallthrough@*/
- case parDATA :
- cmd->params.d = par;
- break;
- default :
- WRITE_MSG(2, "internal error: conflicting functions Command_appendParameter() and Command_setParams() used together; aborting...\n");
- abort();
- }
-}
+++ /dev/null
-// $Id: command-wait.c 1618 2004-07-02 23:44:33Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "command.h"
-#include <errno.h>
-
-bool
-Command_wait(struct Command *cmd, bool do_block)
-{
- int rc;
-
- if (cmd->rc!=-1) return true;
-
- switch (wait4(cmd->pid, &rc, (!do_block ? WNOHANG : 0), &cmd->rusage)) {
- case 0 : break;
- case -1 : cmd->err = errno; break;
- default : cmd->rc = rc; return true;
- }
-
- return false;
-}
+++ /dev/null
-// $Id: command.h 1666 2004-08-19 14:09:49Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_COMMAND_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_COMMAND_H
-
-#include <ensc_vector/vector.h>
-#include <sys/resource.h>
-#include <sys/wait.h>
-#include <stdbool.h>
-
-struct Command
-{
- char const * filename;
- union {
- struct Vector v;
- char const ** d;
- } params;
- pid_t pid;
- int rc;
- int err;
- struct rusage rusage;
-
- enum { parNONE, parVEC, parDATA } params_style_;
-};
-
-void Command_init(struct Command *);
-void Command_free(struct Command *);
-void Command_reset(struct Command *);
-bool Command_exec(struct Command *, bool do_fork);
-void Command_appendParameter(struct Command *, char const *);
-void Command_setParams(struct Command *, char const **);
-/**
- * \args do_hang when true, do not return before command exited, or
- * an error (e.g. signal) occured
- * \returns \c true iff command/processes exited; in this case,
- * exitcode is available in the \c rc member
- */
-bool Command_wait(struct Command *, bool do_block);
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_COMMAND_H
+++ /dev/null
-// $Id: coreassert.h 1954 2005-03-22 14:59:46Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTILVSERVER_LIB_INTERNAL_COREASSERT_H
-#define H_UTILVSERVER_LIB_INTERNAL_COREASSERT_H
-
-#ifndef ENSC_TESTSUITE
-# error Do not use <coreassert.h> outside of testenvironemnts!
-#endif
-
-#include "lib_internal/util-io.h"
-
-#include <assert.h>
-#include <unistd.h>
-
-#undef assert
-#define ASSERT_STRX(X) #X
-#define ASSERT_STR(X) ASSERT_STRX(X)
-#define ASSERT_WRITE(X) Vwrite(2, (X), sizeof(X)-1)
-#define assert(X) \
- (!(X)) ? \
- ASSERT_WRITE(__FILE__ ":" ASSERT_STR(__LINE__) \
- " Assertion: '" #X "' failed\n"), \
- *(char *)(0)=0 : 0
-
-
-#endif // H_UTILVSERVER_LIB_INTERNAL_COREASSERT_H
+++ /dev/null
-// $Id: errinfo-writeerrno.c 1616 2004-07-02 23:34:52Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "errinfo.h"
-#include "util.h"
-
-void
-ErrInfo_writeErrno(struct ErrorInformation const *info)
-{
- if (info->app) {
- WRITE_STR(2, info->app);
- WRITE_MSG(2, ": ");
- }
-
- if (info->pos) {
- WRITE_STR(2, info->pos);
- if (info->id!=0) WRITE_MSG(2, ": ");
- }
-
- if (info->id!=0) {
- WRITE_STR(2, strerror(info->id));
- }
-
- WRITE_MSG(2, "\n");
-}
+++ /dev/null
-// $Id: errinfo.h 1616 2004-07-02 23:34:52Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_ERRINFO_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_ERRINFO_H
-
-struct ErrorInformation
-{
- char const * app; // the application-name
- char const * pos; // the detailed position of the error
- int id; // usually errno
-};
-
-void ErrInfo_writeErrno(struct ErrorInformation const *);
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_ERRINFO_H
+++ /dev/null
-// $Id: filecfg-iteratemultiline.c 1763 2004-12-07 11:13:29Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "filecfg.h"
-#include <string.h>
-
-bool
-FileCfg_iterateOverMultiLine(char const *str,
- FileCfg_MultiLineHandler handler,
- void *data)
-{
- char const *ptr = str;
- size_t line_nr = 1;
-
- while (*ptr!='\0') {
- while (*ptr==' ' || *ptr=='\t') ++ptr; // left-trim line
-
- char const *eol = strchr(ptr, '\n');
- if (eol==0) eol=ptr+strlen(ptr); // handle unterminated lines
-
- if (*ptr!='#') { // skip commented lines
- size_t len = eol-ptr;
- while (len>0 && (ptr[len-1]==' ' || ptr[len-1]=='\t'))
- --len; // right-trim line
-
- // handle only non-empty lines
- if (len>0 && !(*handler)(data, ptr, len))
- return false; // some parsing-error occured...
- }
-
- ++line_nr;
- ptr = eol;
- if (*ptr) ++ptr;
- }
-
- return true;
-}
+++ /dev/null
-// $Id: filecfg-readentryflag.c 1616 2004-07-02 23:34:52Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "filecfg.h"
-
-#include <sys/stat.h>
-#include <unistd.h>
-#include <string.h>
-
-bool
-FileCfg_readEntryFlag(PathInfo const *base, char const *file, bool dflt)
-{
- PathInfo filepath = { .d = file, .l = strlen(file) };
- PathInfo path = *base;
- char path_buf[ENSC_PI_APPSZ(path, filepath)];
- struct stat st;
-
- PathInfo_append(&path, &filepath, path_buf);
- return stat(path.d, &st)!=-1 || dflt;
-}
+++ /dev/null
-// $Id: filecfg-readentrystr.c 1616 2004-07-02 23:34:52Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "filecfg.h"
-#include <string.h>
-#include <unistd.h>
-#include <fcntl.h>
-
-char *
-FileCfg_readEntryStr (PathInfo const *base, char const *file,
- bool allow_multiline, char const *dflt)
-{
- PathInfo filepath = { .d = file, .l = strlen(file) };
- PathInfo path = *base;
- char path_buf[ENSC_PI_APPSZ(path, filepath)];
- int fd = -1;
- off_t sz;
- char * res = 0;
-
- PathInfo_append(&path, &filepath, path_buf);
- fd = open(path.d, O_RDONLY);
- if (fd==-1) goto err;
-
- sz = lseek(fd, 0, SEEK_END);
- if (sz==-1 ||
- lseek(fd, 0, SEEK_SET)==-1) goto err;
-
-
- if (sz>0 && sz<FILECFG_MAX_FILESIZE) {
- char buf[sz+1];
-
- if (read(fd, buf, sz+1)!=sz) goto err;
-
- if (!allow_multiline) {
- char * pos;
-
- buf[sz] = '\0';
- pos = strchr(buf, '\n');
- if (pos) *pos = '\0';
- }
- else {
- while (sz>0 && buf[sz-1]=='\n') --sz;
- buf[sz] = '\0';
- }
-
- res = strdup(buf);
- }
-
- err:
- if (res==0 && dflt)
- res = strdup(dflt);
-
- if (fd!=-1) close(fd);
- return res;
-}
+++ /dev/null
-// $Id: filecfg.h 1736 2004-10-19 21:05:15Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_FILECFG_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_FILECFG_H
-
-#include "pathinfo.h"
-#include <stdbool.h>
-
-// 1MiB should be enough for all applications
-#define FILECFG_MAX_FILESIZE 0x100000
-
-char * FileCfg_readEntryStr (PathInfo const *base, char const *file, bool allow_multiline, char const *dflt);
-bool FileCfg_readEntryFlag(PathInfo const *base, char const *file, bool dflt);
-
-typedef bool (*FileCfg_MultiLineHandler)(void *res, char const *data, size_t len);
-
-bool FileCfg_iterateOverMultiLine(char const *str, FileCfg_MultiLineHandler handler,
- void *data);
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_FILECFG_H
+++ /dev/null
-// $Id: jail.h 1250 2004-03-15 21:37:06Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_JAIL_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_JAIL_H
-
-#include <stdbool.h>
-
-bool jailIntoTempDir(char const **err_pos);
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_JAIL_H
+++ /dev/null
-// $Id: jailintotempdir.c 1250 2004-03-15 21:37:06Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "jail.h"
-
-#include <stdlib.h>
-#include <grp.h>
-#include <unistd.h>
-
-bool
-jailIntoTempDir(char const **err_pos)
-{
- gid_t const id = 1;
- char buf[] = "/tmp/jaildir.XXXXXX";
- char const * d = mkdtemp(buf);
- char const * err = "mkdtemp()";
-
- if (d==0 ||
- (err="chdir()", chdir(d)==-1) ||
- (err="rmdir()", rmdir(d)==-1) ||
- (err="chroot()", chroot(".")==-1) ||
- (err="setgroups()",setgroups(1, &id)==-1) ||
- (err="setgid()", setgid(id)==-1) ||
- (err="setuid()", setuid(id)==-1) ||
- (err="getgid()", getgid()!=id) ||
- (err="getuid()", getuid()!=id)) {
- if (err_pos!=0) *err_pos = err;
- return false;
- }
-
- return true;
-}
+++ /dev/null
-// $Id: matchlist-appendfiles.c 1423 2004-04-06 08:43:20Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "matchlist.h"
-#include <fnmatch.h>
-#include <assert.h>
-
-static int
-fnmatchWrap(char const *a, char const *b)
-{
- return fnmatch(a, b, 0);
-}
-
-static MatchItemCompareFunc
-determineCompareFunc(char const UNUSED *fname)
-{
- return fnmatchWrap;
-}
-
-void
-MatchList_appendFiles(struct MatchList *list, size_t idx,
- char **files, size_t count,
- bool auto_type)
-{
- struct MatchItem *ptr = list->data + idx;
- size_t i;
-
- assert(idx+count <= list->count);
-
- if (auto_type) {
- for (i=0; i<count; ++i) {
- char *file = files[i];
- switch (file[0]) {
- case '+' : ptr->type = stINCLUDE; ++file; break;
- case '~' : ptr->type = stSKIP; ++file; break;
- case '-' : ++file; /*@fallthrough@*/
- default : ptr->type = stEXCLUDE; break;
- }
- ptr->cmp = determineCompareFunc(file);
- ptr->name = file;
- ++ptr;
- }
- }
- else {
- for (i=0; i<count; ++i) {
- ptr->type = stEXCLUDE;
- ptr->name = files[i];
- ptr->cmp = 0;
- ++ptr;
- }
- }
-}
+++ /dev/null
-// $Id: matchlist-compare.c 2569 2007-07-22 17:24:29Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "matchlist.h"
-#include <string.h>
-
-MatchType
-MatchList_compare(struct MatchList const *list, char const *path)
-{
- struct MatchItem const * ptr = list->data;
- struct MatchItem const * const end_ptr = list->data + list->count;
-
- //write(1, path, strlen(path));
- //write(1, "\n", 1);
- for (; ptr<end_ptr; ++ptr) {
- if ((ptr->cmp==0 && strcmp(ptr->name, path)==0) ||
- (ptr->cmp!=0 && (ptr->cmp)(ptr->name, path)==0))
- return ptr->type;
- }
-
- return list->skip_depth > 0 ? stEXCLUDE : stINCLUDE;
-}
+++ /dev/null
-// $Id: matchlist-destroy.c 1911 2005-03-18 00:18:38Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "matchlist.h"
-
-void
-MatchList_destroy(struct MatchList *list)
-{
- size_t i;
-
- String_free(&list->id);
- free(list->data);
-
- for (i=0; i<list->buf_count; ++i)
- free((void *)(list->buf[i]));
-
- free(list->buf);
-}
+++ /dev/null
-// $Id: matchlist-init.c 910 2004-02-17 02:33:20Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "matchlist.h"
-#include <string.h>
-#include <stdlib.h>
-
-#define ENSC_WRAPPERS_STDLIB 1
-#include <wrappers.h>
-void
-MatchList_init(struct MatchList *list, char const *root, size_t count)
-{
- list->skip_depth = 0;
- list->root.d = root;
- list->root.l = strlen(root);
- list->data = Emalloc(sizeof(struct MatchItem) * count);
- list->count = count;
- list->buf = 0;
- list->buf_count = 0;
-
- String_init(&list->id);
-}
+++ /dev/null
-// $Id: matchlist-initbyvserver.c 1912 2005-03-18 00:20:02Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "pathconfig.h"
-
-#include "matchlist.h"
-#include "util-io.h"
-
-#include "vserver.h"
-
-#include <assert.h>
-
-bool
-MatchList_initByVserver(struct MatchList *list,
- struct MatchVserverInfo const *vserver)
-{
- assert(vserver->appdir!=0 && vserver->vdir!=0);
-
- size_t const l = vserver->appdir.l;
- char tmp[l + sizeof("/exclude")];
- char const * excl_list;
-
- memcpy(tmp, vserver->appdir.d, l);
- memcpy(tmp+l, "/exclude", 9);
-
- excl_list = tmp;
- if (access(excl_list, R_OK)==-1) excl_list = CONFDIR "/.defaults/apps/vunify/exclude";
- if (access(excl_list, R_OK)==-1) excl_list = PKGLIBDIR "/defaults/vunify-exclude";
-
- MatchList_initManually(list, vserver, 0, excl_list);
-
- return true;
-}
-
+++ /dev/null
-// $Id: matchlist-initmanually.c 1954 2005-03-22 14:59:46Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "pathconfig.h"
-
-#include "matchlist.h"
-#include "util-io.h"
-
-#include <wait.h>
-#include <errno.h>
-#include <assert.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <string.h>
-
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_STDLIB 1
-#define ENSC_WRAPPERS_IO 1
-#include <wrappers.h>
-
-
-extern int Global_getVerbosity() PURE CONST;
-extern bool Global_doRenew() PURE CONST;
-
-static void
-readExcludeListFD(int fd,
- char ***files, size_t *size,
- char **buf)
-{
- off_t len;
- size_t lines = 0;
- char *ptr;
-
- if (fd==-1) return; // todo: message on verbose?
-
- len = Elseek(fd, 0, SEEK_END);
- Elseek(fd, 0, SEEK_SET);
-
- *buf = Emalloc(sizeof(*buf) * (len+1));
- EreadAll(fd, *buf, len);
- (*buf)[len] = '\0';
-
- ptr = *buf;
- while ((ptr=strchr(ptr, '\n'))) {
- ++lines;
- ++ptr;
- }
-
- ++lines;
- *files = Emalloc(sizeof(**files) * lines);
-
- *size = 0;
- ptr = *buf;
- while (*ptr) {
- char *end_ptr = strchr(ptr, '\n');
-
- assert(*size<lines);
- if (end_ptr==0) break;
-
- if (*ptr!='#') {
- char *tmp = end_ptr;
- do {
- *tmp-- = '\0';
- } while (tmp>ptr && *tmp==' ');
-
- if (tmp>ptr) (*files)[(*size)++] = ptr;
- }
-
- ptr = end_ptr+1;
- }
-}
-
-static void
-readExcludeList(char const *filename,
- char ***files, size_t *size,
- char **buf)
-{
- int fd = open(filename, O_RDONLY);
- if (fd==-1) return; // todo: message on verbose?
-
- readExcludeListFD(fd, files, size, buf);
- Eclose(fd);
-}
-
-static void
-getConfigfileList(char const *vserver,
- char ***files, size_t *size,
- char **buf)
-{
- char tmpname[] = "/tmp/vunify.XXXXXX";
- pid_t pid;
- int fd = Emkstemp(tmpname);
-
- Eunlink(tmpname);
- pid = Efork();
-
- if (pid==0) {
- char *args[10];
- char const **ptr = (char const **)(args)+0;
-
- Edup2(fd, 1);
- //Eclose(0);
- if (fd!=1) Eclose(fd);
-
- *ptr++ = VPKG_PROG;
- *ptr++ = vserver;
- *ptr++ = "get-conffiles";
- *ptr = 0;
-
- Eexecv(args[0], args);
- }
- else {
- int status;
-
- if (TEMP_FAILURE_RETRY(wait4(pid, &status, 0,0))==-1) {
- perror("wait4()");
- exit(1);
- }
-
- if (!WIFEXITED(status) || WEXITSTATUS(status)!=0) {
- WRITE_MSG(2, "failed to determine configfiles\n");
- exit(1);
- }
-
- readExcludeListFD(fd, files, size, buf);
- Eclose(fd);
- }
-}
-
-void
-MatchList_initManually(struct MatchList *list,
- struct MatchVserverInfo const *vserver,
- char const *vdir, char const *exclude_file)
-{
- char *buf[2] = { 0,0 };
-
- char **fixed_files = 0;
- size_t fixed_count = 0;
-
- char **expr_files = 0;
- size_t expr_count = 0;
- size_t len;
-
- assert((vdir==0 && vserver!=0) || (vdir!=0 && vserver==0));
-
- if (vserver) {
- vdir = vserver->vdir.d;
- len = vserver->vdir.l;
- }
- else
- len = strlen(vdir);
-
- if (Global_getVerbosity()>=1) {
- WRITE_MSG(1, "Initializing exclude-list for ");
- Vwrite(1, vdir, len);
- if (vserver!=0) {
- WRITE_MSG(1, " (");
- WRITE_STR(1, vserver->name);
- WRITE_MSG(1, ")");
- }
- WRITE_MSG(1, "\n");
- }
- if (vserver && vserver->use_pkgmgmt && Global_doRenew()) {
- if (Global_getVerbosity()>=2)
- WRITE_MSG(1, " Fetching configuration-file list from packagemanagement\n");
- getConfigfileList(vserver->name, &fixed_files, &fixed_count, buf+0);
- }
-
- // abuse special values (NULL, empty string) to skip the next step
- if (exclude_file && *exclude_file) {
- if (Global_getVerbosity()>=6) WRITE_MSG(1, " Reading exclude file\n");
- readExcludeList(exclude_file,
- &expr_files, &expr_count,
- buf+1);
- }
-
- MatchList_init(list, strdup(vdir), fixed_count + expr_count);
- list->buf = Emalloc(sizeof(void *) * 3);
- list->buf[0] = buf[0];
- list->buf[1] = buf[1];
- list->buf[2] = list->root.d;
- list->buf_count = 3;
-
- MatchList_appendFiles(list, 0, fixed_files, fixed_count, false);
- MatchList_appendFiles(list, fixed_count, expr_files, expr_count, true);
-
- free(expr_files);
- free(fixed_files);
-}
+++ /dev/null
-// $Id: matchlist-initrefserverlist.c 1962 2005-03-23 02:05:23Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "matchlist.h"
-#include "util-io.h"
-
-#include <dirent.h>
-#include <string.h>
-#include <fcntl.h>
-
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_STDLIB 1
-#include <wrappers.h>
-
-static int
-selectRefserver(struct dirent const *ent)
-{
- return strncmp(ent->d_name, "refserver.", 10)==0;
-}
-
-void
-MatchList_initRefserverList(struct MatchList **lst, size_t *cnt,
- char const *dir)
-{
- int cur_dir = Eopen(".", O_RDONLY, 0);
- struct dirent **entries;
- int count,i;
-
- Echdir(dir);
- count = scandir(".", &entries, selectRefserver, alphasort);
- if (count==-1) {
- perror("scandir()");
- exit(1);
- }
-
- if (count==0) {
- WRITE_MSG(2, "no reference vserver configured\n");
- exit(1);
- }
-
- *lst = Emalloc(sizeof(struct MatchList) * count);
- *cnt = count;
- for (i=0; i<count; ++i) {
- char const *tmp = entries[i]->d_name;
- size_t l = strlen(tmp);
- char vname[sizeof("./") + l];
- struct MatchVserverInfo vserver = {
- .name = vname,
- .use_pkgmgmt = true
- };
-
- memcpy(vname, "./", 2);
- memcpy(vname+2, tmp, l+1);
-
- if (!MatchVserverInfo_init(&vserver)) {
- WRITE_MSG(2, "failed to initialize unification of reference vserver\n");
- exit(1);
- }
-
- if (!MatchList_initByVserver((*lst)+i, &vserver)) {
- WRITE_MSG(2, "unification for reference vserver not configured\n");
- exit(1);
- }
-
- free(entries[i]);
- MatchVserverInfo_free(&vserver);
- }
- free(entries);
-
- Efchdir(cur_dir);
- Eclose(cur_dir);
-}
+++ /dev/null
-// $Id: matchlist-printid.c 1954 2005-03-22 14:59:46Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "matchlist.h"
-#include "util-io.h"
-
-void
-MatchList_printId(struct MatchList const *l, int fd)
-{
- if (l->id.l>0) {
- WRITE_MSG(fd, "'");
- Vwrite(fd, l->id.d, l->id.l);
- WRITE_MSG(1, "'");
- }
- else if (l->root.l>0) {
- Vwrite(fd, l->root.d, l->root.l);
- }
- else
- WRITE_MSG(fd, "???");
-}
+++ /dev/null
-// $Id: matchlist.h 1912 2005-03-18 00:20:02Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_MATCHLIST_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_MATCHLIST_H
-
-#include "pathinfo.h"
-#include "string.h"
-#include "pathinfo.h"
-
-#include <lib/vserver.h>
-
-#include <stdlib.h>
-#include <stdbool.h>
-
-typedef int (*MatchItemCompareFunc)(char const *, char const *);
-typedef enum { stINCLUDE,stEXCLUDE,stSKIP } MatchType;
-
-struct MatchItem
-{
- MatchType type;
- char const * name;
- MatchItemCompareFunc cmp;
-};
-
-struct MatchList
-{
- size_t skip_depth;
- PathInfo root;
- String id;
- struct MatchItem *data;
- size_t count;
-
- void const **buf;
- size_t buf_count;
-};
-
-struct MatchVserverInfo
-{
- char const *name;
-
- vcCfgStyle style;
- PathInfo vdir;
- PathInfo appdir;
-
- bool use_pkgmgmt;
-};
-
-void MatchList_init(struct MatchList *, char const *root,
- size_t count) NONNULL((1,2));
-bool MatchList_initByVserver(struct MatchList *,
- struct MatchVserverInfo const *vserver) NONNULL((1,2));
-void MatchList_initManually(struct MatchList *list,
- struct MatchVserverInfo const *vserver,
- char const *vdir,
- char const *exclude_file) NONNULL((1,4));
-void MatchList_initRefserverList(struct MatchList **, size_t *cnt,
- char const *dir) NONNULL((1,2,3));
-void MatchList_destroy(struct MatchList *) NONNULL((1));
-void MatchList_appendFiles(struct MatchList *, size_t idx,
- char **files, size_t count,
- bool auto_type) NONNULL((1,3));
-
-MatchType MatchList_compare(struct MatchList const *,
- char const *path) NONNULL((1,2));
-struct MatchItem
-const * MatchList_find(struct MatchList const *,
- char const *path) NONNULL((1,2));
-
-void MatchList_printId(struct MatchList const *, int fd) NONNULL((1));
-
-
-bool MatchVserverInfo_init(struct MatchVserverInfo *);
-void MatchVserverInfo_free(struct MatchVserverInfo *);
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_MATCHLIST_H
+++ /dev/null
-// $Id: matchvserverinfo-free.c 1909 2005-03-18 00:17:53Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "matchlist.h"
-#include "util.h"
-
-void
-MatchVserverInfo_free(struct MatchVserverInfo *info)
-{
- String_free(&info->vdir);
- String_free(&info->appdir);
-}
+++ /dev/null
-// $Id: matchvserverinfo-init.c 1970 2005-03-24 00:09:58Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "matchlist.h"
-#include "util.h"
-
-#include <pathconfig.h>
-
-#include <string.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <assert.h>
-#include <sys/param.h>
-
-static bool
-exists(char *path, size_t len, char const *name)
-{
- if (name) strcpy(path + len, name);
-
- return access(path, R_OK)!=-1;
-}
-
-#define EXISTS(X) exists(X, sizeof(X)-1, 0)
-#define DEFAULT_EXISTS(X) EXISTS(CONFDIR "/.defaults/apps/vunify/" X)
-
-bool
-MatchVserverInfo_init(struct MatchVserverInfo *info)
-{
- assert(info->name!=0);
- assert(info->vdir.d==0 && info->appdir.d==0);
-
- info->style = vc_getVserverCfgStyle(info->name);
- info->vdir.d = vc_getVserverVdir (info->name, info->style, true);
- info->appdir.d = vc_getVserverAppDir (info->name, info->style, "vunify");
-
- if (info->vdir.d==0 || info->appdir.d==0) {
- free(const_cast(char *)(info->vdir.d));
- free(const_cast(char *)(info->appdir.d));
-
- return false;
- }
-
- info->vdir.l = strlen(info->vdir.d);
- info->appdir.l = strlen(info->appdir.d);
-
- size_t const l = info->appdir.l;
- char tmp[l + MAX(sizeof("/pkgmgmt-ignore"),sizeof("/pkgmgmt-force"))];
-
- memcpy(tmp, info->appdir.d, l);
-
- if (exists(tmp, l, "/pkgmgmt-ignore")) info->use_pkgmgmt = false;
- else if (exists(tmp, l, "/pkgmgmt-force")) info->use_pkgmgmt = true;
- else if (DEFAULT_EXISTS ("pkgmgmt-ignore")) info->use_pkgmgmt = false;
- else if (DEFAULT_EXISTS ("pkgmgmt-force")) info->use_pkgmgmt = true;
-
- return true;
-}
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdbool.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <string.h>
-#include <assert.h>
-#include <errno.h>
-
-static enum { mkdirFAIL, mkdirSUCCESS, mkdirSKIP }
-mkdirSingle(char const *path, char *end_ptr, int good_err)
-{
- *end_ptr = '\0';
- if (mkdir(path, 0700)!=-1 || errno==EEXIST) {
- *end_ptr = '/';
- return mkdirSUCCESS;
- }
- else if (errno==good_err) {
- *end_ptr = '/';
- return mkdirSKIP;
- }
- else
- return mkdirFAIL;
-}
-
-static char *
-rstrchr(char *str, char c)
-{
- while (*str!=c) --str;
- return str;
-}
-
-bool
-mkdirRecursive(char const *path)
-{
- char buf[strlen(path)+1];
- char * ptr = buf + sizeof(buf) - 2;
-
- if (path[0]!='/') return false; // only absolute paths
-
- strcpy(buf, path);
-
- while (ptr>buf && (ptr = rstrchr(ptr, '/'))!=0) {
- switch (mkdirSingle(buf, ptr, ENOENT)) {
- case mkdirSUCCESS : break;
- case mkdirSKIP : --ptr; continue;
- case mkdirFAIL : return false;
- }
-
- break; // implied by mkdirSUCCESS
- }
-
- assert(ptr!=0);
- ++ptr;
-
- while ((ptr=strchr(ptr, '/'))!=0) {
- switch (mkdirSingle(buf, ptr, 0)) {
- case mkdirSKIP :
- case mkdirFAIL : return false;
- case mkdirSUCCESS : ++ptr; continue;
- }
- }
-
- return true;
-}
+++ /dev/null
-// $Id: pathinfo-append.c 910 2004-02-17 02:33:20Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "pathinfo.h"
-#include "util-mem.h"
-
-void
-PathInfo_append(PathInfo * restrict lhs,
- PathInfo const * restrict rhs,
- char *buf)
-{
- char * ptr = buf;
- char const * rhs_ptr = rhs->d;
- size_t rhs_len = rhs->l;
-
- while (lhs->l>1 && lhs->d[lhs->l-1]=='/') --lhs->l;
-
- if (lhs->l>0) {
- while (rhs->l>0 && *rhs_ptr=='/') {
- ++rhs_ptr;
- --rhs_len;
- }
-
- ptr = Xmemcpy(ptr, lhs->d, lhs->l);
- if (ptr[-1]!='/')
- ptr = Xmemcpy(ptr, "/", 1);
- }
-// else if (*rhs_ptr!='/')
-// ptr = Xmemcpy(ptr, "/", 1);
-
- ptr = Xmemcpy(ptr, rhs_ptr, rhs_len+1);
-
- lhs->d = buf;
- lhs->l = ptr-buf-1;
-}
+++ /dev/null
-// $Id: pathinfo-test.c 910 2004-02-17 02:33:20Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "pathinfo.h"
-#include <string.h>
-#include <assert.h>
-
-#define CHECK(LHS,RHS, EXP) \
- do { \
- PathInfo lhs = { LHS, sizeof(LHS)-1 }; \
- PathInfo rhs = { RHS, sizeof(RHS)-1 }; \
- char *buf = malloc(ENSC_PI_APPSZ(lhs,rhs)); \
- assert(ENSC_PI_APPSZ(lhs,rhs)>=sizeof(EXP)); \
- PathInfo_append(&lhs, &rhs, buf); \
- assert(memcmp(lhs.d, EXP, sizeof(EXP))==0); \
- assert(lhs.l == sizeof(EXP)-1); \
- free(buf); \
- } while (0)
-
-
-void
-PathInfo_test()
-{
- CHECK("/var", "/tmp", "/var/tmp");
- CHECK("/var", "tmp", "/var/tmp");
- CHECK("/var/", "/tmp", "/var/tmp");
- CHECK("/var/", "tmp", "/var/tmp");
-
- CHECK("/", "tmp", "/tmp");
- CHECK("/", "/tmp", "/tmp");
-
- CHECK("", "/tmp", "/tmp");
-
- CHECK("", "tmp", "tmp");
- CHECK("", "", "");
-}
+++ /dev/null
-// $Id: pathinfo.h 2467 2007-01-21 18:26:45Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_PATHINFO_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_PATHINFO_H
-
-#include "string.h"
-
-#define ENSC_PI_DECLARE(VAR,VAL) PathInfo VAR={.d = VAL,.l = sizeof(VAL)-1}
-#define ENSC_PI_APPSZ(P1,P2) ((P1).l + sizeof("/") + (P2).l)
-#define ENSC_PI_SETSTR(VAR,VAL) do { VAR.d = VAL; VAR.l = strlen(VAL); } while (0)
-
-typedef String PathInfo;
-
-void PathInfo_append(PathInfo * restrict,
- PathInfo const * restrict,
- char *buf) NONNULL((1,2,3));
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_PATHINFO_H
+++ /dev/null
-// $Id: string.h 1914 2005-03-18 00:20:30Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_STRING_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_STRING_H
-
-#include <stdlib.h>
-
-typedef struct
-{
- char const * d;
- size_t l;
-} String;
-
-static void String_init(String *);
-static void String_free(String *);
-
-#define ENSC_STRING_FIXED(VAL) { .d = VAL, .l = (sizeof(VAL)-1) }
-#define ENSC_STRING_ASSIGN_FIXED(DST,VAL) \
- { DST.d = (VAL); DST.l = (sizeof(VAL)-1); }
-
-#include "string.hc"
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_STRING_H
+++ /dev/null
-// $Id: string.hc 1915 2005-03-18 00:20:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-static inline UNUSED void
-String_init(String *str)
-{
- str->d = 0;
- str->l = 0;
-}
-
-static inline UNUSED char const *
-String_c_str(String const *str, char *buf)
-{
- if (str->l==0) return "";
-
- if (buf!=str->d)
- abort(); // TODO: copy content
-
- buf[str->l] = '\0';
- return buf;
-}
-
-
-static inline UNUSED void
-String_free(String *str)
-{
- free((char *)(str->d));
-}
+++ /dev/null
-// $Id: switchtowatchxid.c 2501 2007-02-20 17:33:35Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <vserver.h>
-#include <errno.h>
-#include <unistd.h>
-
- // try to switch into context 1
-bool
-switchToWatchXid(char const **errptr)
-{
-#if 0
-# warning Compiling in debug-code
- return;
-#endif
- if (vc_get_task_xid(0)==1) return true;
-
- if (vc_isSupported(vcFEATURE_MIGRATE)) {
- if (vc_ctx_migrate(1, 0)==-1) {
- if (errptr) *errptr = "vc_migrate_context()";
- return false;
- }
- }
- else {
-#if VC_ENABLE_API_COMPAT
- if (vc_new_s_context(1,0,0)==VC_NOCTX) {
- if (errptr) *errptr = "vc_new_s_context()";
- return false;
- }
-#else
- if (errptr) *errptr = "can not change context: migrate kernel feature missing and 'compat' API disabled";
- errno = ENOSYS;
- return false;
-#endif
- }
-
- return true;
-}
-
+++ /dev/null
-// $Id: sys_clone.h 2446 2007-01-09 13:22:11Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_SYS_CLONE_H
-#define H_UTIL_VSERVER_SRC_SYS_CLONE_H
-
-#include <unistd.h>
-#include "lib/syscall-wrap.h"
-#define __NR__sys_clone __NR_clone
-
-#ifndef ENSC_SYSCALL_TRADITIONAL
-# include <errno.h>
-
-# if defined(__s390__)
-inline static UNUSED ALWAYSINLINE
-_syscall2(int, _sys_clone, void *, child_stack, int, flags)
-# else
-inline static UNUSED ALWAYSINLINE
-_syscall2(int, _sys_clone, int, flags, void *, child_stack)
-# endif
-#endif
-
-inline static UNUSED ALWAYSINLINE
-int sys_clone(int flags, void *child_stack)
-{
- int ret;
-#ifdef __sparc__
- int parent = getpid();
-#endif
-
-#if defined(__s390__) && defined(ENSC_SYSCALL_TRADITIONAL)
- ret = syscall(__NR__sys_clone, child_stack, flags);
-#elif defined(__s390__)
- ret = _sys_clone(child_stack, flags);
-#elif defined(ENSC_SYSCALL_TRADITIONAL)
- ret = syscall(__NR__sys_clone, flags, child_stack);
-#else
- ret = _sys_clone(flags, child_stack);
-#endif
-#ifdef __sparc__
- if (ret == parent)
- ret = 0;
-#endif
- return ret;
-}
-
-#undef __NR__sys_clone
-
-#define ENSC_HAVE_SYSCLONE 1
-
-#endif // H_UTIL_VSERVER_SRC_SYS_CLONE_H
+++ /dev/null
-// $Id: sys_personality.h 2446 2007-01-09 13:22:11Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_SYS_PERSONALITY_H
-#define H_UTIL_VSERVER_SRC_SYS_PERSONALITY_H
-
-#include "lib/syscall-wrap.h"
-#define __NR_sys_personality __NR_personality
-
-#ifdef ENSC_SYSCALL_TRADITIONAL
-#include <unistd.h>
-
-inline static UNUSED ALWAYSINLINE
-int sys_personality(int pers)
-{
- return syscall(__NR_sys_personality, pers);
-}
-#else
-#include <errno.h>
-
-inline static UNUSED ALWAYSINLINE
-_syscall1(int, sys_personality, int, pers)
-#endif
-
-#undef __NR_sys_personality
-
-#define ENSC_HAVE_SYSPERSONALITY 1
-
-#endif // H_UTIL_VSERVER_SRC_SYS_PERSONALITY_H
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_SYS_UNSHARE_H
-#define H_UTIL_VSERVER_SRC_SYS_UNSHARE_H
-
-#include <unistd.h>
-#include "lib/syscall-wrap.h"
-
-#ifndef __NR_unshare
-# if defined(__alpha__)
-# define __NR_unshare 465
-# elif defined(__arm__)
-# define __NR_unshare 337
-# elif defined(__avr32__)
-# define __NR_unshare 258
-# elif defined(__blackfin__)
-# define __NR_unshare 310
-# elif defined(__frv__)
-# define __NR_unshare 310
-# elif defined(__h8300__)
-# define __NR_unshare 310
-# elif defined(__i386__)
-# define __NR_unshare 310
-# elif defined(__ia64__)
-# define __NR_unshare 1296
-# elif defined(__m68knommu__)
-# define __NR_unshare 303
-# elif defined(__m68k__)
-# define __NR_unshare 303
-# elif defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI32)
-# define __NR_unshare 303
-# elif defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI64)
-# define __NR_unshare 262
-# elif defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_NABI32)
-# define __NR_unshare 266
-# elif defined(__parisc__)
-# define __NR_unshare 288
-# elif defined(__powerpc__)
-# define __NR_unshare 282
-# elif defined(__s390__)
-# define __NR_unshare 303
-# elif defined(__sh64__)
-# define __NR_unshare 338
-# elif defined(__sh__)
-# define __NR_unshare 310
-# elif defined(__sparc64__)
-# define __NR_unshare 299
-# elif defined(__sparc__)
-# define __NR_unshare 299
-# elif defined(__x86_64__)
-# define __NR_unshare 272
-# else
-# error Sorry, don't know unshare's syscall number for this architecture.
-# endif
-#endif
-
-#define __NR_sys_unshare __NR_unshare
-
-#ifndef ENSC_SYSCALL_TRADITIONAL
-# include <errno.h>
-
-inline static UNUSED ALWAYSINLINE
-_syscall1(int, sys_unshare, int, flags)
-#else
-inline static UNUSED ALWAYSINLINE
-int sys_unshare(int flags)
-{
- return syscall(__NR_sys_clone, flags);
-}
-#endif
-
-#undef __NR_sys_unshare
-
-#define ENSC_HAVE_SYSUNSHARE 1
-
-#endif // H_UTIL_VSERVER_SRC_SYS_UNSHARE_H
+++ /dev/null
-## $Id: Makefile-files 2569 2007-07-22 17:24:29Z dhozac $ --*- makefile -*--
-
-## Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-check_PROGRAMS += lib_internal/testsuite/command
-
-if ENSC_HAVE_C99_COMPILER
-check_PROGRAMS += lib_internal/testsuite/filecfg-ml \
- lib_internal/testsuite/copy \
- lib_internal/testsuite/isnumber \
- lib_internal/testsuite/isnumber-gnu \
- lib_internal/testsuite/sigbus \
- lib_internal/testsuite/sigbus-gnu \
- lib_internal/testsuite/matchlist \
- lib_internal/testsuite/matchlist-gnu
-TESTS += lib_internal/testsuite/filecfg-ml \
- lib_internal/testsuite/copy-check \
- lib_internal/testsuite/isnumber \
- lib_internal/testsuite/isnumber-gnu \
- lib_internal/testsuite/sigbus \
- lib_internal/testsuite/sigbus-gnu \
- lib_internal/testsuite/matchlist \
- lib_internal/testsuite/matchlist-gnu
-endif
-
-DIETPROGS += lib_internal/testsuite/isnumber \
- lib_internal/testsuite/sigbus \
- lib_internal/testsuite/matchlist
-
-EXTRA_DIST += lib_internal/testsuite/copy-check
-
-TESTS_ENVIRONMENT += libinternaltestsuitedir=$(top_builddir)/lib_internal/testsuite
-
-
-# When building both a GNU and a dietlibc version, set target specific
-# CPPFLAGS to enforce separate compilation for both variants
-
-lib_internal_testsuite_command_SOURCES = lib_internal/testsuite/command.c
-lib_internal_testsuite_command_LDADD = $(LIBINTERNAL_GLIBC) \
- $(LIBENSCVECTOR_GLIBC)
-
-lib_internal_testsuite_filecfg_ml_SOURCES = lib_internal/testsuite/filecfg-ml.c
-lib_internal_testsuite_filecfg_ml_LDADD = $(LIBINTERNAL_GLIBC)
-
-lib_internal_testsuite_copy_SOURCES = lib_internal/testsuite/copy.c
-lib_internal_testsuite_copy_LDADD = $(LIBINTERNAL_GLIBC)
-
-lib_internal_testsuite_isnumber_SOURCES = lib_internal/testsuite/isnumber.c
-lib_internal_testsuite_isnumber_LDADD = $(LIBINTERNAL)
-lib_internal_testsuite_isnumber_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-
-lib_internal_testsuite_isnumber_gnu_SOURCES = lib_internal/testsuite/isnumber.c
-lib_internal_testsuite_isnumber_gnu_LDADD = $(LIBINTERNAL_GLIBC)
-lib_internal_testsuite_isnumber_gnu_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-
-lib_internal_testsuite_sigbus_SOURCES = lib_internal/testsuite/sigbus.c
-lib_internal_testsuite_sigbus_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-
-lib_internal_testsuite_sigbus_gnu_SOURCES = lib_internal/testsuite/sigbus.c
-lib_internal_testsuite_sigbus_gnu_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-
-lib_internal_testsuite_matchlist_SOURCES = lib_internal/testsuite/matchlist.c
-lib_internal_testsuite_matchlist_LDADD = $(LIBINTERNAL)
-lib_internal_testsuite_matchlist_CPPFLAGS = $(AM_CPPFLAGS) # see note above
-
-lib_internal_testsuite_matchlist_gnu_SOURCES = lib_internal/testsuite/matchlist.c
-lib_internal_testsuite_matchlist_gnu_LDADD = $(LIBINTERNAL_GLIBC)
-lib_internal_testsuite_matchlist_gnu_CPPFLAGS = $(AM_CPPFLAGS) # see note above
+++ /dev/null
-// $Id: command.c 1667 2004-08-19 14:10:06Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <lib_internal/util.h>
-#include <lib_internal/command.h>
-
-int wrapper_exit_code = 255;
-
-int
-main(int argc, char *argv[])
-{
- struct Command cmd;
- ssize_t i;
-
- if (argc<3) {
- WRITE_MSG(2, "Not enough parameters\n");
- return EXIT_FAILURE;
- }
-
- Command_init(&cmd);
- for (i=2; i<argc; ++i)
- Command_appendParameter(&cmd, argv[i]);
-
- if (Command_exec(&cmd, argv[1][0]!=0)) {
- Command_wait(&cmd, true);
- }
-
- Command_free(&cmd);
-}
+++ /dev/null
-#! /bin/bash
-## $Id: copy-check 1989 2005-03-25 02:38:13Z ensc $
-
-# Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-set -e
-
-dir=$(mktemp -d ${TMP:-/var/tmp}/copy-check.XXXXXX)
-trap "rm -rf $dir" EXIT
-
-COPY=${libinternaltestsuitedir:-$(dirname "$0")}/copy
-
-test -x "$COPY"
-
-function execWrap()
-{
- nr=$1
- msg=$2
- shift 2
-
- "$@" || {
- rc=$?
- echo $"Test $nr '$msg' failed with code $rc"
- return $rc
- }
-
- return 0
-}
-
-function doit()
-{
- execWrap "$nr" "copying" $COPY $dir/$nr-in $dir/$nr-out
- execWrap "$nr" "comparing" cmp $dir/$nr-in $dir/$nr-out
-}
-
-## Usage: execCheck <nr> [<dd-args>*]
-function execCheck()
-{
- local nr=$1
- shift
-
- dd if=/dev/urandom of=$dir/$nr-in "$@" &>/dev/null
-
- doit $nr
-}
-
-LANG=C
-
-### Check 1: small file copy
-execCheck 01 bs=10 count=1
-
-### Check 2: PAGESIZEd file copy
-execCheck 02 bs=4096 count=1
-
-### Check 3: PAGESIZE+1 file copy
-execCheck 03 bs=4097 count=1
-
-### Check 3a: really large file copy
-test x"$ensc_use_expensive_tests" != xyes ||
- execCheck 03a bs=$[ 64 * 1024*1024 + 23 ] count=1
-
-### Check 4: small sparse file copy
-execCheck 04 bs=10 count=1 seek=1
-
-### Check 5: large sparse file copy
-execCheck 05 bs=4097 count=1 seek=1
-
-### Check 6: large sparse file copy
-execCheck 06 bs=4098 count=1 seek=1
-
-### Check 7: large sparse file copy
-execCheck 07 bs=4099 count=1 seek=1
-
-### Check 8: large sparse file copy
-execCheck 08 bs=4100 count=1 seek=1
-
-### Check 8a: really large sparse file copy
-test x"$ensc_use_expensive_tests" != xyes ||
- execCheck 08a bs=$[ 64 * 1024*1024 + 23 ] count=1 seek=1
-
-### Check 9: huge sparse file copy
-test x"$ensc_use_expensive_tests" != xyes ||
- execCheck 09 bs=1024 count=1 seek=$[ 1024*1024 * 5 ]
-
-test x"$ensc_test_debug" != xyes || {
- ls -l $dir/*
- du $dir/*
-}
+++ /dev/null
-// $Id: copy.c 1924 2005-03-18 03:33:34Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "lib_internal/unify.h"
-
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-
-int wrapper_exit_code = 1;
-
-int main(int argc, char *argv[])
-{
- struct stat st;
-
- if (argc<2) return EXIT_FAILURE;
- if (lstat(argv[1],&st)==-1) return EXIT_FAILURE;
-
- unlink(argv[2]);
- return Unify_copy(argv[1], &st, argv[2]) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-// $Id: filecfg-ml.c 1796 2005-01-26 15:32:35Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <lib_internal/filecfg.h>
-
-#include <string.h>
-#include <ctype.h>
-
-char const data[] = "\
-line 1\n\
-#line 2\n\
-\n\
-line 4\n\
- \n\
-line 6\n\
- \tline 7\n\
-line 8\t \n\
-";
-
-static bool
-test(void *x_p, char const *str, size_t len)
-{
- size_t *x = x_p;
-
- if (strncmp(str, "line ", 5)!=0) abort();
- if (!isdigit(str[len-1])) abort();
- ++*x;
- return true;
-}
-
-int main()
-{
- size_t l = 1;
- FileCfg_iterateOverMultiLine(data, test, &l);
- if (l!=6) abort();
-}
+++ /dev/null
-// $Id: isnumber.c 2254 2006-01-22 11:19:47Z ensc $ --*- c -*--
-
-// Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#define ENSC_TESTSUITE
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "lib_internal/util.h"
-#include "lib_internal/coreassert.h"
-
-#define TEST_TMPL(FUNC, TYPE, STR, VAL, STRICT) \
- do { \
- TYPE exp = (TYPE)(VAL)!=(TYPE)BAD ? (VAL) : 0; \
- bool val = (TYPE)(VAL)==(TYPE)BAD ? false : true; \
- TYPE tmp; \
- bool rc = FUNC((STR), &tmp, (STRICT)); \
- char const * const UNUSED STR_FUNC = #FUNC; \
- char const * const UNUSED STR_VAL = #VAL; \
- char const * const UNUSED STR_STRICT = #STRICT; \
- assert(rc == val); \
- rc = FUNC((STR), 0, (STRICT)); \
- assert(val == rc); \
- if (val) assert(tmp == exp); \
- } while (0)
-
-#define TESTS(STR, VAL, STRICT) \
- TEST_TMPL(isNumber, signed long, STR, VAL, STRICT)
-
-#define TESTU(STR, VAL, STRICT) \
- TEST_TMPL(isNumberUnsigned, unsigned long, STR, VAL, STRICT)
-
-#define TEST(STR, VALS0, VALS1, VALU0, VALU1) \
- TESTS(STR, VALS0, true); \
- TESTS(STR, VALS1, false); \
- TESTU(STR, VALU0, true); \
- TESTU(STR, VALU1, false);
-
-
-#define BAD 0xdeadbeaf
-
-int main()
-{
- TEST( "0", 0, 0, 0, 0);
- TEST( "1", 1, 1, 1, 1);
- TEST("-1", -1, -1, BAD, BAD);
- TEST( "1k", BAD, 1000, BAD, 1000);
-//TEST("-1k", BAD, -1000, BAD, BAD);
- TEST( "1K", BAD, 1024, BAD, 1024);
-//TEST("-1K", BAD, -1024, BAD, BAD);
- TEST( "1m", BAD, 1000000, BAD, 1000000);
-//TEST("-1m", BAD, -1000000, BAD, BAD);
- TEST( "1M", BAD, 1048576, BAD, 1048576);
-//TEST("-1M", BAD, -1048576, BAD, BAD);
-
- TEST( "010", 8, 8, 8, 8);
- TEST( "010k", BAD, 8000, BAD, 8000);
- TEST("-010", -8, -8, BAD, BAD);
-//TEST("-010k", BAD, 8000, BAD, BAD);
-
- TEST( "0x10", 16, 16, 16, 16);
- TEST( "0x10k", BAD, 16000, BAD, 16000);
- TEST("-0x10", -16, -16, BAD, BAD);
-//TEST("-0x10k", BAD, -16000, BAD, BAD);
-}
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <lib_internal/util.h>
-#include <lib_internal/matchlist.h>
-
-int wrapper_exit_code = 255;
-
-int main(int argc, char *argv[])
-{
- struct MatchList list;
- static const char *files[] = {
- "/bin",
- "+/bin/a",
- };
- int test = 0;
- uint32_t result = 0;
-
- MatchList_init(&list, "/", sizeof(files) / sizeof(*files));
- MatchList_appendFiles(&list, 0, files, sizeof(files) / sizeof(*files), true);
-
-#define DO_TEST(x) switch (MatchList_compare(&list, x)) { \
- case stINCLUDE: result |= 1 << test; break; \
- case stEXCLUDE: result |= 2 << test; break; \
- case stSKIP: result |= 4 << test; break; \
- } \
- test += 3;
- DO_TEST("/bin");
- list.skip_depth++;
- DO_TEST("/bin/a");
- DO_TEST("/bin/b");
- list.skip_depth--;
- DO_TEST("/sbin");
- DO_TEST("/usr/lib/a");
-
- MatchList_destroy(&list);
-
- if (result == 011212)
- return 0;
- else {
- char buf[(sizeof(result) * 8) / 3 + 2], *ptr;
- ssize_t i;
- WRITE_MSG(1, "result = ");
- buf[sizeof(buf) - 1] = '\0';
- for (i = 0, ptr = buf + sizeof(buf) - 2; i < (sizeof(result) * 8); i += 3, ptr--)
- *ptr = '0' + ((result & (7 << i)) >> i);
- WRITE_STR(1, buf);
- WRITE_MSG(1, "\n");
- return 1;
- }
-}
+++ /dev/null
-// $Id: sigbus.c 2484 2007-02-04 17:17:02Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdbool.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_SOCKET 1
-#include <wrappers.h>
-
-int wrapper_exit_code = 1;
-
-#define TEST_BLOCKSIZE (sysconf(_SC_PAGESIZE)*2 + 0x10000)
-
-static bool is_gremlin = false;
-static int sync_p[2];
-
-static void
-testit()
-{
- if (!is_gremlin) return;
-
- char c;
-
- Esend(sync_p[1], ".", 1, 0);
- Erecv(sync_p[1], &c, 1, 0);
-}
-
-#define TESTSUITE_COPY_CODE testit()
-
-#include "../unify.h"
-#include "../unify-copy.c"
-#include "../unify-settime.c"
-
-static bool
-checkTrunc(char const *src,
- char const *dst,
- struct stat const *st,
- size_t pos)
-{
- pid_t pid = Efork();
-
- if (pid==0) {
- char c;
-
- Erecv(sync_p[0], &c, 1, 0);
- Etruncate(src, pos);
- Esend(sync_p[0], &c, 1, 0);
- exit(0);
- }
-
- unlink(dst);
- return !copyReg(src, st, dst);
-}
-
-int main()
-{
- char f_name0[] = "/tmp/sigbus.XXXXXX";
- char f_name1[] = "/tmp/sigbus.XXXXXX";
- int fd_src = mkstemp(f_name0);
- int fd_dst = mkstemp(f_name1);
- char buf[TEST_BLOCKSIZE];
- struct stat st;
- bool res;
-
- memset(buf, 0, TEST_BLOCKSIZE);
- write(fd_src, buf, TEST_BLOCKSIZE);
- close(fd_src);
- close(fd_dst);
-
- unlink(f_name1);
- stat(f_name0, &st);
- if (!copyReg(f_name0, &st, f_name1))
- return EXIT_FAILURE;
-
-
- is_gremlin = true;
-
- Esocketpair(AF_LOCAL, SOCK_STREAM, 0, sync_p);
- signal(SIGCHLD, SIG_IGN);
-
- res = (checkTrunc(f_name0, f_name1, &st, TEST_BLOCKSIZE/2) &&
- checkTrunc(f_name0, f_name1, &st, 0x2345));
-
- unlink(f_name0);
- unlink(f_name1);
- return res ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-// $Id: unify-copy.c 2544 2007-06-01 16:16:33Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "unify.h"
-#include "util.h"
-
-#include <unistd.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <setjmp.h>
-#include <signal.h>
-#include <sys/stat.h>
-#include <sys/mman.h>
-
-#define ENSC_WRAPPERS_IO 1
-#include <wrappers.h>
-
-#define MMAP_BLOCKSIZE (16 * 1024*1024)
-
-#ifndef TESTSUITE_COPY_CODE
-# define TESTSUITE_COPY_CODE do { } while (false)
-#endif
-
-static inline bool
-verifySource(int fd, struct stat const *exp_stat)
-{
- struct stat st;
-
- return (fstat(fd, &st)!=-1 &&
- st.st_dev==exp_stat->st_dev &&
- st.st_ino==exp_stat->st_ino);
-}
-
-static inline bool
-copyLnk(char const *src, char const *dst)
-{
- ssize_t len = 1024;
- for (;;) {
- char buf[len];
- ssize_t l;
- l = readlink(src, buf, len-1);
- if (l==-1) return false;
- if (l>=len-1) {
- len *= 2;
- continue;
- }
- buf[l] = '\0';
-
- return (symlink(buf, dst)!=-1);
- }
-}
-
-static sigjmp_buf bus_error_restore;
-static volatile sig_atomic_t bus_error;
-
-static void
-handlerSIGBUS(int UNUSED num)
-{
- bus_error = 1;
- siglongjmp(bus_error_restore, 1);
-}
-
-static void
-copyMem(void *dst_v, void const *src_v, size_t len_v)
-{
-#if 1
- // Do not use memcpy because this would dirty pages consisting only of
- // '\0'
- int *dst = dst_v;
- int const *src = src_v;
- size_t len = len_v / sizeof(int);
- size_t rest = len_v - sizeof(int)*len;
- size_t i=0;
-
- for (; i<len; ++i) {
- if (*src != 0) *dst = *src;
- ++dst;
- ++src;
- }
-
- char *dst_c = (void *)(dst);
- char const *src_c = (void const *)(src);
-
- for (i=0; i<rest; ++i) {
- if (*src_c != 0) *dst_c = *src_c;
- ++dst_c;
- ++src_c;
- }
-#else
- memcpy(dst_v, src_v, len_v);
-#endif
-}
-
-static UNUSED bool
-copyMMap(int in_fd, int out_fd)
-{
- off_t in_len = lseek(in_fd, 0, SEEK_END);
- void const * volatile in_buf = 0;
- void * volatile out_buf = 0;
-
- loff_t volatile buf_size = 0;
- bool volatile res = false;
-
- if (in_len==-1) return false;
- if (in_len>0 && ftruncate(out_fd, in_len)==-1) // create sparse file
- return false;
-
- bus_error = 0;
- if (sigsetjmp(bus_error_restore, 1)==0) {
- off_t offset = 0;
-
- while (offset < in_len) {
- buf_size = in_len - offset;
- if (buf_size > MMAP_BLOCKSIZE) buf_size = MMAP_BLOCKSIZE;
-
- if ((in_buf = mmap(0, buf_size, PROT_READ, MAP_SHARED, in_fd, offset))==0 ||
- (out_buf = mmap(0, buf_size, PROT_WRITE, MAP_SHARED, out_fd, offset))==0) {
- perror("mmap()");
- goto out;
- }
-
- offset += buf_size;
- madvise(const_cast(void *)(in_buf), buf_size, MADV_SEQUENTIAL);
- madvise(out_buf, buf_size, MADV_SEQUENTIAL);
-
- TESTSUITE_COPY_CODE;
- copyMem(out_buf, in_buf, buf_size);
-
- munmap(out_buf, buf_size); out_buf = 0;
- munmap(const_cast(void *)(in_buf), buf_size); in_buf = 0;
- }
-
- res = true;
- }
-
- out:
- if (out_buf!=0) munmap(out_buf, buf_size);
- if (in_buf !=0) munmap(const_cast(void *)(in_buf), buf_size);
-
- return res;
-}
-
-static inline bool
-copyReg(char const *src, struct stat const *src_stat,
- char const *dst)
-{
- int in_fd = open(src, O_RDONLY|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW|O_LARGEFILE);
- int out_fd = in_fd==-1 ? -1 : open(dst, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY, 0200);
- bool res = false;
-
- if (in_fd==-1 || out_fd==-1 ||
- !verifySource(in_fd, src_stat)) goto err;
-
-#if 0
- for (;;) {
- char buf[2048];
- ssize_t l = read(in_fd, buf, sizeof buf);
- if (l==-1) goto err;
- if (l==0) break;
- if (!WwriteAll(out_fd, buf, l, 0)) goto err;
- }
-
- res = true;
-#else
- void (*old_handler)(int) = signal(SIGBUS, handlerSIGBUS);
-
- res = copyMMap(in_fd, out_fd);
-
- signal(SIGBUS, old_handler);
-#endif
-
- err:
- if (out_fd!=-1 && close(out_fd)==-1) res=false;
- if (in_fd!=-1 && close(in_fd)==-1) res=false;
- return res;
-}
-
-static inline bool
-copyNode(char const UNUSED *src, struct stat const *src_stat,
- char const *dst)
-{
- return mknod(dst, src_stat->st_mode & (S_IFMT|S_IWUSR),
- src_stat->st_rdev)!=-1;
-}
-
-static inline bool
-copyDir(char const UNUSED *src, struct stat const UNUSED *src_stat,
- char const *dst)
-{
- return mkdir(dst, 0700)!=-1;
-}
-
-static inline bool
-setModes(char const *path, struct stat const *st)
-{
- return (lchown(path, st->st_uid, st->st_gid)!=-1 &&
- (S_ISLNK(st->st_mode) || chmod(path, st->st_mode)!=-1));
-}
-
-
-bool
-Unify_copy(char const *src, struct stat const *src_stat,
- char const *dst)
-{
- // skip sockets
- // TODO: message
- if (S_ISSOCK(src_stat->st_mode))
- return true;
-
- return
- (((S_ISLNK (src_stat->st_mode) && copyLnk (src, dst)) ||
- (S_ISREG (src_stat->st_mode) && copyReg (src, src_stat, dst)) ||
- (S_ISDIR (src_stat->st_mode) && copyDir (src, src_stat, dst)) ||
- ((S_ISBLK (src_stat->st_mode) ||
- S_ISCHR (src_stat->st_mode) ||
- S_ISFIFO(src_stat->st_mode)) && copyNode(src, src_stat, dst))
- ) &&
- setModes(dst, src_stat) &&
- Unify_setTime(dst, src_stat));
-}
+++ /dev/null
-// $Id: unify-deunify.c 942 2004-02-18 04:48:24Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "unify.h"
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <utime.h>
-#include <fcntl.h>
-#include <errno.h>
-
-#define ENSC_WRAPPERS_IO 1
-#include <wrappers.h>
-
-bool
-Unify_deUnify(char const *dst)
-{
- size_t l = strlen(dst);
- char tmpfile[l + sizeof(";XXXXXX")];
- int fd_src, fd_tmp;
- struct stat st;
- struct utimbuf utm;
-
- fd_src = open(dst, O_RDONLY);
- if (fd_src==-1) {
- perror("open()");
- return false;
- }
-
- if (fstat(fd_src, &st)==-1) {
- perror("fstat()");
- close(fd_src);
- return false;
- }
-
- memcpy(tmpfile, dst, l);
- memcpy(tmpfile+l, ";XXXXXX", 8);
- fd_tmp = mkstemp(tmpfile);
-
- if (fd_tmp==-1) {
- perror("mkstemp()");
- tmpfile[0] = '\0';
- goto err;
- }
-
- if (fchown(fd_tmp, st.st_uid, st.st_gid)==-1 ||
- fchmod(fd_tmp, st.st_mode)==-1) {
- perror("fchown()/fchmod()");
- goto err;
- }
-
- // todo: acl?
-
- for (;;) {
- char buf[0x4000];
- ssize_t len = read(fd_src, buf, sizeof buf);
- if (len==-1) {
- perror("read()");
- goto err;
- }
- if (len==0) break;
-
- if (!WwriteAll(fd_tmp, buf, len, 0)) goto err;
- }
-
- if (close(fd_src)==-1) {
- perror("close()");
- goto err;
- }
- if (close(fd_tmp)==-1) {
- perror("close()");
- goto err;
- }
-
- utm.actime = st.st_atime;
- utm.modtime = st.st_mtime;
-
- // ALERT: race !!!
- if (utime(tmpfile, &utm)==-1) {
- perror("utime()");
- goto err1;
- }
-
- if (unlink(dst)==-1) {
- perror("unlink()");
- goto err1;
- }
-
- // ALERT: race !!!
- if (rename(tmpfile, dst)==-1) {
- perror("FATAL error in rename()");
- _exit(1);
- }
-
- return true;
-
- err:
- close(fd_src);
- close(fd_tmp);
- err1:
- if (tmpfile[0]) unlink(tmpfile);
-
- return false;
-}
+++ /dev/null
-// $Id: unify-isiunlinkable.c 1917 2005-03-18 00:22:06Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "unify.h"
-#include "vserver.h"
-
-
-UnifyStatus
-Unify_isIUnlinkable(char const *filename)
-{
- uint_least32_t const V = VC_IATTR_IUNLINK|VC_IATTR_IMMUTABLE;
-
- uint_least32_t flags;
- uint_least32_t mask = V;
-
- if (vc_get_iattr(filename, 0, &flags, &mask)==-1 || (mask & V) != V)
- return unifyUNSUPPORTED;
-
- return (flags & V)==V ? unifyBUSY : unifyUINLINKABLE;
-}
+++ /dev/null
-// $Id: unify-settime.c 1595 2004-06-27 13:03:58Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "unify.h"
-#include <utime.h>
-#include <sys/stat.h>
-
-bool
-Unify_setTime(char const *dst, struct stat const *st)
-{
- struct utimbuf utm;
-
- // skip symlinks
- if (S_ISLNK(st->st_mode)) return true;
-
- utm.actime = st->st_atime;
- utm.modtime = st->st_mtime;
- return utime(dst, &utm)!=-1;
-}
-
+++ /dev/null
-// $Id: unify-unify.c 1973 2005-03-24 00:12:23Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "unify.h"
-#include "vserver.h"
-
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <signal.h>
-#include <unistd.h>
-#include <errno.h>
-#include <sys/stat.h>
-
-bool
-Unify_unify(char const *src, struct stat const UNUSED *src_stat,
- char const *dst, bool ignore_zero)
-{
- size_t l = strlen(dst);
- char tmpfile[l + sizeof(";XXXXXX")];
- int fd;
- bool res = false;
- struct stat st;
- bool lstat_succeeded;
- sigset_t mask_new, mask_old;
- int old_errno;
-
- // at first, set the ILI flags on 'src'
- if (vc_set_iattr(src,
- 0,
- VC_IATTR_IUNLINK|VC_IATTR_IMMUTABLE,
- VC_IATTR_IUNLINK|VC_IATTR_IMMUTABLE)==-1) {
- perror("vc_set_iattr()");
- return false;
- }
-
- lstat_succeeded = lstat(dst, &st)==0;
-
- sigfillset(&mask_new);
- if (sigprocmask(SIG_SETMASK, &mask_new, &mask_old)==-1) {
- perror("sigprocmask()");
- return false;
- }
-
-
- // check if 'dst' already exists
- // when ignore_zero is true, do not make backups of empty destinations
- if (lstat_succeeded && (st.st_size>0 || !ignore_zero)) {
- // now, create a temporary filename
- memcpy(tmpfile, dst, l);
- memcpy(tmpfile+l, ";XXXXXX", 8);
- fd = mkstemp(tmpfile);
- close(fd);
-
- if (fd==-1) {
- perror("mkstemp()");
- tmpfile[0] = '\0';
- goto err;
- }
-
- // and rename the old file to this name
-
- // NOTE: this rename() is race-free; when an attacker makes 'tmpfile' a
- // directory, the operation would fail; when making it a symlink to a file
- // or directory, the symlink but not the file/directory would be overridden
- if (rename(dst, tmpfile)==-1) {
- perror("rename()");
- goto err;
- }
- }
- else {
- if (lstat_succeeded) unlink(dst);
- tmpfile[0] = '\0';
- }
-
- // now, link the src-file to dst
- if (link(src, dst)==-1) {
- perror("link()");
-
- unlink(dst);
- if (tmpfile[0]!='\0' &&
- rename(tmpfile, dst)==-1) {
- perror("FATAL error in rename()");
- _exit(1);
- }
- goto err;
- }
-
- res = true;
-
- err:
- old_errno = errno;
-
- if (tmpfile[0]!='\0')
- unlink(tmpfile);
-
- if (sigprocmask(SIG_SETMASK, &mask_old, 0)==-1)
- perror("sigprocmask()");
-
- errno = old_errno;
- return res;
-}
+++ /dev/null
-// $Id: unify.h 2476 2007-01-27 10:05:58Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_UNIFY_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_UNIFY_H
-
-#include <sys/stat.h>
-#include <stdbool.h>
-
-bool
-Unify_unify(char const *src, struct stat const *src_stat,
- char const *dst, bool ignore_zero) NONNULL((1,2,3));
-
-bool
-Unify_copy(char const *src, struct stat const *src_stat,
- char const *dst) NONNULL((1,2,3));
-
-bool
-Unify_deUnify(char const *dst) NONNULL((1));
-
-bool
-Unify_setTime(char const *dst, struct stat const *stat) NONNULL((1,2));
-
-
-typedef enum { unifyUNSUPPORTED, unifyUINLINKABLE, unifyBUSY } UnifyStatus;
-
-UnifyStatus
-Unify_isIUnlinkable(char const *filename) NONNULL((1));
-
-#define Unify_isUnified(LHS, RHS) \
- ((bool)((LHS)->st_dev ==(RHS)->st_dev && \
- (LHS)->st_ino ==(RHS)->st_ino))
-
-#define _Unify_isUnifyable(LHS, RHS) \
- ((bool)((LHS)->st_dev ==(RHS)->st_dev && \
- (LHS)->st_ino !=(RHS)->st_ino && \
- (LHS)->st_mode ==(RHS)->st_mode && \
- (LHS)->st_uid ==(RHS)->st_uid && \
- (LHS)->st_gid ==(RHS)->st_gid && \
- (LHS)->st_size ==(RHS)->st_size))
-#ifdef UTIL_VSERVER_UNIFY_MTIME_OPTIONAL
-# define Unify_isUnifyable(LHS, RHS) \
- ((bool)(_Unify_isUnifyable(LHS, RHS) && \
- (global_args->ignore_mtime || \
- (LHS)->st_mtime==(RHS)->st_mtime)))
-#else
-# define Unify_isUnifyable(LHS, RHS) \
- ((bool)(_Unify_isUnifyable(LHS, RHS) && \
- (LHS)->st_mtime==(RHS)->st_mtime))
-#endif
-
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_UNIFY_H
+++ /dev/null
-// $Id: util-canonify.c 1616 2004-07-02 23:34:52Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-
-size_t
-canonifyVserverName(char *name)
-{
- char *in = name;
- char *out = name;
-
- while (*in) {
- if ((*in>='a' && *in<='z') ||
- (*in>='A' && *in<='Z') ||
- (*in>='0' && *in<='9'))
- *out++ = *in;
- ++in;
- }
- *out = '\0';
- return out-name;
-}
+++ /dev/null
-// $Id: util-cast.h 1009 2004-02-26 13:07:15Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTILVSERVER_LIB_INTERNAL_UTIL_CAST_H
-#define H_UTILVSERVER_LIB_INTERNAL_UTIL_CAST_H
-
-#ifndef __cplusplus
-# define cAsT_(X) (X))
-# define reinterpret_cast(X) ((X) cAsT_
-# define static_cast(X) ((X) cAsT_
-# define const_cast(X) ((X) cAsT_
-#else /* __cplusplus */
-# define reinterpret_cast(X) reinterpret_cast<X>
-# define static_cast(X) static_cast<X>
-# define const_cast(X) const_cast<X>
-#endif
-
-#endif // H_UTILVSERVER_LIB_INTERNAL_UTIL_CAST_H
+++ /dev/null
-// $Id: util-commonstrings.h 1009 2004-02-26 13:07:15Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTILVSERVER_LIB_INTERNAL_UTIL_COMMONSTRINGS_H
-#define H_UTILVSERVER_LIB_INTERNAL_UTIL_COMMONSTRINGS_H
-
-#ifndef PACKAGE_BUGREPORT
-# define PACKAGE_BUGREPORT "???"
-#endif
-
-#ifndef VERSION_COPYRIGHT_DISCLAIMER
-# define VERSION_COPYRIGHT_DISCLAIMER \
- "This program is free software; you may redistribute it under the terms of\n" \
- "the GNU General Public License. This program has absolutely no warranty.\n"
-#endif
-
-#endif // H_UTILVSERVER_LIB_INTERNAL_UTIL_COMMONSTRINGS_H
+++ /dev/null
-// $Id: util-debug.h 1452 2004-04-14 23:22:13Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_UTIL_DEBUG_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_UTIL_DEBUG_H
-
-#ifdef ENSC_ENABLE_DPRINTF
-# include <stdio.h>
-# define DPRINTF(FMT,...) printf(FMT, __VA_ARGS__)
-#else
-# define DPRINTF(FMT,...) do {} while(0)
-#endif
-
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_UTIL_DEBUG_H
+++ /dev/null
-// $Id: util-declarecmd.h 1009 2004-02-26 13:07:15Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTILVSERVER_LIB_INTERNAL_UTIL_DECLARECMD_H
-#define H_UTILVSERVER_LIB_INTERNAL_UTIL_DECLARECMD_H
-
-#define VSERVER_DECLARE_CMD(CMD) \
- char buf[strlen(CMD)+1]; \
- memcpy(buf, (CMD), strlen(CMD)+1); \
- CMD = basename(buf);
-
-#endif // H_UTILVSERVER_LIB_INTERNAL_UTIL_DECLARECMD_H
+++ /dev/null
-// $Id: util-dimof.h 1009 2004-02-26 13:07:15Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTILVSERVER_LIB_INTERNAL_UTIL_DIMOF_H
-#define H_UTILVSERVER_LIB_INTERNAL_UTIL_DIMOF_H
-
-#define DIM_OF(X) (sizeof(X)/sizeof((X)[0]))
-
-#endif // H_UTILVSERVER_LIB_INTERNAL_UTIL_DIMOF_H
+++ /dev/null
-// $Id: util-dotfile.h 1307 2004-03-18 06:06:07Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_UTIL_DOTFILE_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_UTIL_DOTFILE_H
-
-#include <stdbool.h>
-
-static inline UNUSED ALWAYSINLINE bool
-isDotfile(char const *d)
-{
- return d[0]=='.' && (d[1]=='\0' || (d[1]=='.' && d[2]=='\0'));
-}
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_UTIL_DOTFILE_H
+++ /dev/null
-// $Id: util-exitlikeprocess.c 1954 2005-03-22 14:59:46Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <lib/internal.h>
-
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/resource.h>
-#include <sys/wait.h>
-#include <unistd.h>
-#include <signal.h>
-#include <sys/resource.h>
-#include <stdio.h>
-
-void
-exitLikeProcess(int pid, char const *cmd, int ret)
-{
- int status;
-
- if (wait4(pid, &status, 0,0)==-1) {
-
- perror("wait()");
- exit(ret);
- }
-
- if (WIFEXITED(status))
- exit(WEXITSTATUS(status));
-
- if (WIFSIGNALED(status)) {
- struct rlimit lim = { 0,0 };
-
- if (cmd) {
- char buf[sizeof(int)*3 + 2];
- size_t l = utilvserver_fmt_uint(buf, pid);
-
- WRITE_MSG(2, "command '");
- WRITE_STR(2, cmd);
- WRITE_MSG(2, "' (pid ");
- Vwrite (2, buf, l);
- WRITE_MSG(2, ") exited with signal ");
- l = utilvserver_fmt_uint(buf, WTERMSIG(status));
- Vwrite (2, buf, l);
- WRITE_MSG(2, "; following it...\n");
- }
-
- // prevent coredumps which might override the real ones
- setrlimit(RLIMIT_CORE, &lim);
-
- kill(getpid(), WTERMSIG(status));
- exit(1);
- }
- else {
- char buf[sizeof(int)*3 + 2];
- size_t l = utilvserver_fmt_uint(buf, WTERMSIG(status));
-
- WRITE_MSG(2, "Unexpected status ");
- Vwrite (2, buf, l);
- WRITE_MSG(2, " from '");
- if (cmd) {
- WRITE_STR(2, cmd);
- WRITE_MSG(2, " (pid ");
- }
- l = utilvserver_fmt_uint(buf, pid);
- Vwrite (2, buf, l);
- if (cmd) WRITE_MSG(2, ")\n");
- else WRITE_MSG(2, "\n");
-
- exit(ret);
- }
-}
+++ /dev/null
-// $Id: util-exitlikeprocess.h 1557 2004-05-11 18:25:14Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTILVSERVER_LIB_INTERNAL_UTIL_EXITLIKEPROCESS_H
-#define H_UTILVSERVER_LIB_INTERNAL_UTIL_EXITLIKEPROCESS_H
-
-#include <sys/types.h>
-void exitLikeProcess(pid_t pid, char const /*@null@*/ *cmd, int ret) NORETURN;
-
-#endif // H_UTILVSERVER_LIB_INTERNAL_UTIL_EXITLIKEPROCESS_H
+++ /dev/null
-// $Id: util-io.h 1954 2005-03-22 14:59:46Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_UTIL_IO_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_UTIL_IO_H
-
-#include <unistd.h>
-#include <string.h>
-
-inline static void UNUSED
-Vwrite(int fd, char const *buf, size_t len)
-{
- if (write(fd,buf,len)==-1) { /**/ }
-}
-
-inline static void UNUSED
-writeStr(int fd, char const *cmd)
-{
- Vwrite(fd, cmd, strlen(cmd));
-}
-
-#define WRITE_MSG(FD,X) Vwrite(FD,X,sizeof(X)-1)
-#define WRITE_STR(FD,X) writeStr(FD,X)
-
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_UTIL_IO_H
+++ /dev/null
-// $Id: util-isnumber.c 2255 2006-01-22 11:23:47Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "util-isnumber.hc"
-#include <limits.h>
-
-static inline bool
-checkConstraints(signed long val, unsigned int fac)
-{
- if (val>0 && (signed long)(LONG_MAX/fac) <= val) return false;
- if (val<0 && (signed long)(LONG_MIN/fac) >= val) return false;
- return true;
-}
-
-ENSC_DECL_UTIL_ISNUMBER(isNumber, signed long, strtol)
+++ /dev/null
-// $Id: util-isnumber.hc 2255 2006-01-22 11:23:47Z ensc $ --*- c -*--
-
-// Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#include <stdbool.h>
-#include <stdlib.h>
-#include <errno.h>
-
-#define ENSC_DECL_UTIL_ISNUMBER(NAME,TYPE,FUNC) \
- bool \
- NAME(char const *str, TYPE *result, bool is_strict) \
- { \
- char * errptr; \
- TYPE val; \
- unsigned int fac = 1; \
- \
- errno = 0; \
- val = FUNC(str, &errptr, 0); \
- if (errno==ERANGE) \
- return false; \
- if (errptr!=str && !is_strict) { \
- switch (*errptr) { \
- case 'M' : fac *= 1024; /* fallthrough */ \
- case 'K' : fac *= 1024; ++errptr; break; \
- case 'm' : fac *= 1000; /* fallthrough */ \
- case 'k' : fac *= 1000; ++errptr; break; \
- default : break; \
- } \
- } \
- if (!checkConstraints(val,fac)) \
- return false; \
- \
- if (*errptr!='\0' || errptr==str) \
- return false; \
- else { \
- if (result) *result = val*fac; \
- return true; \
- } \
- }
+++ /dev/null
-// $Id: util-isnumberunsigned.c 2255 2006-01-22 11:23:47Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "util-isnumber.hc"
-#include <limits.h>
-
-static inline bool
-checkConstraints(unsigned long val, unsigned int fac)
-{
- if ((long)(val) < 0) return false;
- if (ULONG_MAX/fac <= val) return false;
- return true;
-}
-
-ENSC_DECL_UTIL_ISNUMBER(isNumberUnsigned, unsigned long, strtoul)
+++ /dev/null
-// $Id: util-lockfile.c 1616 2004-07-02 23:34:52Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util-lockfile.h"
-#include "errinfo.h"
-
-#include <signal.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/file.h>
-#include <errno.h>
-
-static volatile sig_atomic_t alarm_flag = 0;
-
-static void
-alarmFunc(int UNUSED sig)
-{
- alarm_flag = 1;
- signal(SIGALRM, alarmFunc);
-}
-
-bool
-lockfile(int *fd, char const *filename, int op, long timeout,
- struct ErrorInformation *err)
-{
- char const *errstr = 0;
- void (*old_sighandler)(int) = 0;
-
- errstr = "open()";
- *fd = open(filename, O_CREAT|O_RDONLY|O_NOFOLLOW|O_NONBLOCK, 0644);
- if (*fd==-1) goto err;
-
- if (timeout!=-1) {
- errstr = "siginterrupt()";
- if (siginterrupt(SIGALRM, 1)==-1) goto err;
-
- errstr = "signal()";
- old_sighandler = signal(SIGALRM, alarmFunc);
- if (old_sighandler==SIG_ERR) goto err;
-
- alarm(timeout);
- }
-
- errstr = "flock()";
- while (flock(*fd, op)==-1) {
- if ((errno!=EINTR && errno!=EINTR) || alarm_flag) goto err;
- }
-
- if (timeout!=-1 && old_sighandler!=0)
- signal(SIGALRM, old_sighandler);
-
- errstr = "fcntl()";
- if (fcntl(*fd, F_SETFD, FD_CLOEXEC)==-1) goto err;
-
- return true;
-
- err:
- if (err) {
- err->pos = errstr;
- err->id = errno;
- }
- if (timeout!=-1 && old_sighandler!=0)
- signal(SIGALRM, old_sighandler);
- if (*fd!=-1) close(*fd);
- return false;
-}
+++ /dev/null
-// $Id: util-lockfile.h 1616 2004-07-02 23:34:52Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_UTIL_LOCKFILE_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_UTIL_LOCKFILE_H
-
-#include <stdbool.h>
-
-struct ErrorInformation;
-
-bool lockfile(int *fd, char const *filename, int op,
- long timeout,
- struct ErrorInformation *err);
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_UTIL_LOCKFILE_H
+++ /dev/null
-// $Id: util-mem.h 1620 2004-07-02 23:45:09Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_UTIL_MEM_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_UTIL_MEM_H
-
-#include <string.h>
-#include <stdlib.h>
-
-inline static void *
-Xmemcpy(void * restrict dst, void const * restrict src, size_t len)
-{
- return (char *)(memcpy(dst, src, len))+len;
-}
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_UTIL_MEM_H
+++ /dev/null
-// $Id: util-perror.h 1324 2004-03-24 01:07:53Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_UTIL_PERROR_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_UTIL_PERROR_H
-
-#define PERROR_U(MSG, ARG0) do { \
- size_t pu_l1 = strlen(MSG); \
- size_t pu_l2 = strlen(ARG0); \
- char pu_buf[pu_l1 + pu_l2 + sizeof("()")]; \
- memcpy(pu_buf, MSG, pu_l1); \
- pu_buf[pu_l1] = '('; \
- memcpy(pu_buf+1+pu_l1, ARG0, pu_l2); \
- pu_buf[pu_l1+1+pu_l2] = ')'; \
- pu_buf[pu_l1+2+pu_l2] = '\0'; \
- perror(pu_buf); \
- } while (0)
-
-#define PERROR_Q(MSG, ARG0) do { \
- size_t pq_l = strlen(ARG0); \
- char pq_buf[pq_l + 3]; \
- pq_buf[0] = '"'; \
- memcpy(pq_buf+1, ARG0, pq_l); \
- pq_buf[pq_l+1] = '"'; \
- pq_buf[pq_l+2] = '\0'; \
- PERROR_U(MSG, pq_buf); \
- } while (0)
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_UTIL_PERROR_H
+++ /dev/null
-// $Id: util-safechdir.c 956 2004-02-19 22:25:50Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <string.h>
-
-int
-safeChdir(char const *path, struct stat const *exp_stat)
-{
- if (strchr(path, '/')!=0) {
- errno = EINVAL;
- return -1;
- }
-
- {
- struct stat now_stat;
- if (chdir(path)==-1 ||
- stat(".", &now_stat)==-1) return -1;
- if (exp_stat->st_dev != now_stat.st_dev ||
- exp_stat->st_ino != now_stat.st_ino) {
- // TODO: warning/logging
- errno = EINVAL;
- return -1;
- }
- }
-
- return 0;
-}
+++ /dev/null
-// $Id: util-safechdir.h 934 2004-02-18 04:42:38Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_UTIL_SAFECHDIR_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_UTIL_SAFECHDIR_H
-
-struct stat;
-int safeChdir(char const *, struct stat const *exp_stat) NONNULL((1,2));
-
-#define EsafeChdir(PATH,EXP_STAT) \
- FatalErrnoError(safeChdir(PATH,EXP_STAT)==-1, "safeChdir()")
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_UTIL_SAFECHDIR_H
+++ /dev/null
-// $Id: util-unixsock.h 2241 2006-01-04 12:27:02Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_LIB_INTERNAL_UTIL_UNIXSOCK_H
-#define H_UTIL_VSERVER_LIB_INTERNAL_UTIL_UNIXSOCK_H
-
-#define ENSC_INIT_UNIX_SOCK(ADDR, FILENAME) \
- (ADDR).sun_family = AF_UNIX; \
- strncpy((ADDR).sun_path, FILENAME, sizeof((ADDR).sun_path)-1); \
- (ADDR).sun_path[sizeof((ADDR).sun_path)-1] = '\0';
-
-#endif // H_UTIL_VSERVER_LIB_INTERNAL_UTIL_UNIXSOCK_H
+++ /dev/null
-// $Id: util.h 2569 2007-07-22 17:24:29Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTILVSERVER_LIB_INTERNAL_UTIL_H
-#define H_UTILVSERVER_LIB_INTERNAL_UTIL_H
-
-#include "util-cast.h"
-#include "util-commonstrings.h"
-#include "util-debug.h"
-#include "util-declarecmd.h"
-#include "util-dimof.h"
-#include "util-dotfile.h"
-#include "util-exitlikeprocess.h"
-#include "util-io.h"
-#include "util-lockfile.h"
-#include "util-mem.h"
-#include "util-perror.h"
-#include "util-safechdir.h"
-#include "util-unixsock.h"
-
-bool switchToWatchXid(char const **);
-size_t canonifyVserverName(char *);
-bool isNumber(char const *, signed long *result, bool is_strict);
-bool isNumberUnsigned(char const *, unsigned long *result, bool is_strict);
-bool mkdirRecursive(char const *);
-
-#endif // H_UTILVSERVER_LIB_INTERNAL_UTIL_H
+++ /dev/null
-# ltmain.sh - Provide generalized library-building support services.
-# NOTE: Changing this file will not affect anything until you rerun configure.
-#
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# 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, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# 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.
-
-basename="s,^.*/,,g"
-
-# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
-# is ksh but when the shell is invoked as "sh" and the current value of
-# the _XPG environment variable is not equal to 1 (one), the special
-# positional parameter $0, within a function call, is the name of the
-# function.
-progpath="$0"
-
-# The name of this program:
-progname=`echo "$progpath" | $SED $basename`
-modename="$progname"
-
-# Global variables:
-EXIT_SUCCESS=0
-EXIT_FAILURE=1
-
-PROGRAM=ltmain.sh
-PACKAGE=libtool
-VERSION=1.5.22
-TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
-
-# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
- # Zsh 3.x and 4.x performs 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
-
-# Check that we have a working $echo.
-if test "X$1" = X--no-reexec; then
- # Discard the --no-reexec flag, and continue.
- shift
-elif test "X$1" = X--fallback-echo; then
- # Avoid inline document here, it may be left over
- :
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
- # Yippee, $echo works!
- :
-else
- # Restart under the correct shell, and then maybe $echo will work.
- exec $SHELL "$progpath" --no-reexec ${1+"$@"}
-fi
-
-if test "X$1" = X--fallback-echo; then
- # used as fallback echo
- shift
- cat <<EOF
-$*
-EOF
- exit $EXIT_SUCCESS
-fi
-
-default_mode=
-help="Try \`$progname --help' for more information."
-magic="%%%MAGIC variable%%%"
-mkdir="mkdir"
-mv="mv -f"
-rm="rm -f"
-
-# Sed substitution that helps us do robust quoting. It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed="${SED}"' -e 1s/^X//'
-sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
-# test EBCDIC or ASCII
-case `echo X|tr X '\101'` in
- A) # ASCII based system
- # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
- SP2NL='tr \040 \012'
- NL2SP='tr \015\012 \040\040'
- ;;
- *) # EBCDIC based system
- SP2NL='tr \100 \n'
- NL2SP='tr \r\n \100\100'
- ;;
-esac
-
-# NLS nuisances.
-# Only set LANG and LC_ALL to C if already set.
-# These must not be set unconditionally because not all systems understand
-# e.g. LANG=C (notably SCO).
-# We save the old values to restore during execute mode.
-for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
-do
- eval "if test \"\${$lt_var+set}\" = set; then
- save_$lt_var=\$$lt_var
- $lt_var=C
- export $lt_var
- fi"
-done
-
-# Make sure IFS has a sensible default
-lt_nl='
-'
-IFS=" $lt_nl"
-
-if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
- $echo "$modename: not configured to build any kind of library" 1>&2
- $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
- exit $EXIT_FAILURE
-fi
-
-# Global variables.
-mode=$default_mode
-nonopt=
-prev=
-prevopt=
-run=
-show="$echo"
-show_help=
-execute_dlfiles=
-duplicate_deps=no
-preserve_args=
-lo2o="s/\\.lo\$/.${objext}/"
-o2lo="s/\\.${objext}\$/.lo/"
-extracted_archives=
-extracted_serial=0
-
-#####################################
-# Shell function definitions:
-# This seems to be the best place for them
-
-# func_mktempdir [string]
-# Make a temporary directory that won't clash with other running
-# libtool processes, and avoids race conditions if possible. If
-# given, STRING is the basename for that directory.
-func_mktempdir ()
-{
- my_template="${TMPDIR-/tmp}/${1-$progname}"
-
- if test "$run" = ":"; then
- # Return a directory name, but don't create it in dry-run mode
- my_tmpdir="${my_template}-$$"
- else
-
- # If mktemp works, use that first and foremost
- my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
-
- if test ! -d "$my_tmpdir"; then
- # Failing that, at least try and use $RANDOM to avoid a race
- my_tmpdir="${my_template}-${RANDOM-0}$$"
-
- save_mktempdir_umask=`umask`
- umask 0077
- $mkdir "$my_tmpdir"
- umask $save_mktempdir_umask
- fi
-
- # If we're not in dry-run mode, bomb out on failure
- test -d "$my_tmpdir" || {
- $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
- exit $EXIT_FAILURE
- }
- fi
-
- $echo "X$my_tmpdir" | $Xsed
-}
-
-
-# func_win32_libid arg
-# return the library type of file 'arg'
-#
-# Need a lot of goo to handle *both* DLLs and import libs
-# Has to be a shell function in order to 'eat' the argument
-# that is supplied when $file_magic_command is called.
-func_win32_libid ()
-{
- win32_libid_type="unknown"
- win32_fileres=`file -L $1 2>/dev/null`
- case $win32_fileres in
- *ar\ archive\ import\ library*) # definitely import
- win32_libid_type="x86 archive import"
- ;;
- *ar\ archive*) # could be an import, or static
- if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
- $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
- win32_nmres=`eval $NM -f posix -A $1 | \
- $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
- case $win32_nmres in
- import*) win32_libid_type="x86 archive import";;
- *) win32_libid_type="x86 archive static";;
- esac
- fi
- ;;
- *DLL*)
- win32_libid_type="x86 DLL"
- ;;
- *executable*) # but shell scripts are "executable" too...
- case $win32_fileres in
- *MS\ Windows\ PE\ Intel*)
- win32_libid_type="x86 DLL"
- ;;
- esac
- ;;
- esac
- $echo $win32_libid_type
-}
-
-
-# func_infer_tag arg
-# Infer tagged configuration to use if any are available and
-# if one wasn't chosen via the "--tag" command line option.
-# Only attempt this if the compiler in the base compile
-# command doesn't match the default compiler.
-# arg is usually of the form 'gcc ...'
-func_infer_tag ()
-{
- if test -n "$available_tags" && test -z "$tagname"; then
- CC_quoted=
- for arg in $CC; do
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- CC_quoted="$CC_quoted $arg"
- done
- case $@ in
- # Blanks in the command may have been stripped by the calling shell,
- # but not from the CC environment variable when configure was run.
- " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
- # Blanks at the start of $base_compile will cause this to fail
- # if we don't check for them as well.
- *)
- for z in $available_tags; do
- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
- # Evaluate the configuration.
- eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
- CC_quoted=
- for arg in $CC; do
- # Double-quote args containing other shell metacharacters.
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- CC_quoted="$CC_quoted $arg"
- done
- case "$@ " in
- " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
- # The compiler in the base compile command matches
- # the one in the tagged configuration.
- # Assume this is the tagged configuration we want.
- tagname=$z
- break
- ;;
- esac
- fi
- done
- # If $tagname still isn't set, then no tagged configuration
- # was found and let the user know that the "--tag" command
- # line option must be used.
- if test -z "$tagname"; then
- $echo "$modename: unable to infer tagged configuration"
- $echo "$modename: specify a tag with \`--tag'" 1>&2
- exit $EXIT_FAILURE
-# else
-# $echo "$modename: using $tagname tagged configuration"
- fi
- ;;
- esac
- fi
-}
-
-
-# func_extract_an_archive dir oldlib
-func_extract_an_archive ()
-{
- f_ex_an_ar_dir="$1"; shift
- f_ex_an_ar_oldlib="$1"
-
- $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
- $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
- if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
- :
- else
- $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
- exit $EXIT_FAILURE
- fi
-}
-
-# func_extract_archives gentop oldlib ...
-func_extract_archives ()
-{
- my_gentop="$1"; shift
- my_oldlibs=${1+"$@"}
- my_oldobjs=""
- my_xlib=""
- my_xabs=""
- my_xdir=""
- my_status=""
-
- $show "${rm}r $my_gentop"
- $run ${rm}r "$my_gentop"
- $show "$mkdir $my_gentop"
- $run $mkdir "$my_gentop"
- my_status=$?
- if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
- exit $my_status
- fi
-
- for my_xlib in $my_oldlibs; do
- # Extract the objects.
- case $my_xlib in
- [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
- *) my_xabs=`pwd`"/$my_xlib" ;;
- esac
- my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
- my_xlib_u=$my_xlib
- while :; do
- case " $extracted_archives " in
- *" $my_xlib_u "*)
- extracted_serial=`expr $extracted_serial + 1`
- my_xlib_u=lt$extracted_serial-$my_xlib ;;
- *) break ;;
- esac
- done
- extracted_archives="$extracted_archives $my_xlib_u"
- my_xdir="$my_gentop/$my_xlib_u"
-
- $show "${rm}r $my_xdir"
- $run ${rm}r "$my_xdir"
- $show "$mkdir $my_xdir"
- $run $mkdir "$my_xdir"
- exit_status=$?
- if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
- exit $exit_status
- fi
- case $host in
- *-darwin*)
- $show "Extracting $my_xabs"
- # Do not bother doing anything if just a dry run
- if test -z "$run"; then
- darwin_orig_dir=`pwd`
- cd $my_xdir || exit $?
- darwin_archive=$my_xabs
- darwin_curdir=`pwd`
- darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
- darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
- if test -n "$darwin_arches"; then
- darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
- darwin_arch=
- $show "$darwin_base_archive has multiple architectures $darwin_arches"
- for darwin_arch in $darwin_arches ; do
- mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
- lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
- cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
- func_extract_an_archive "`pwd`" "${darwin_base_archive}"
- cd "$darwin_curdir"
- $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
- done # $darwin_arches
- ## Okay now we have a bunch of thin objects, gotta fatten them up :)
- darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
- darwin_file=
- darwin_files=
- for darwin_file in $darwin_filelist; do
- darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
- lipo -create -output "$darwin_file" $darwin_files
- done # $darwin_filelist
- ${rm}r unfat-$$
- cd "$darwin_orig_dir"
- else
- cd "$darwin_orig_dir"
- func_extract_an_archive "$my_xdir" "$my_xabs"
- fi # $darwin_arches
- fi # $run
- ;;
- *)
- func_extract_an_archive "$my_xdir" "$my_xabs"
- ;;
- esac
- my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
- done
- func_extract_archives_result="$my_oldobjs"
-}
-# End of Shell function definitions
-#####################################
-
-# Darwin sucks
-eval std_shrext=\"$shrext_cmds\"
-
-disable_libs=no
-
-# Parse our command line options once, thoroughly.
-while test "$#" -gt 0
-do
- arg="$1"
- shift
-
- case $arg in
- -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
- *) optarg= ;;
- esac
-
- # If the previous option needs an argument, assign it.
- if test -n "$prev"; then
- case $prev in
- execute_dlfiles)
- execute_dlfiles="$execute_dlfiles $arg"
- ;;
- tag)
- tagname="$arg"
- preserve_args="${preserve_args}=$arg"
-
- # Check whether tagname contains only valid characters
- case $tagname in
- *[!-_A-Za-z0-9,/]*)
- $echo "$progname: invalid tag name: $tagname" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
-
- case $tagname in
- CC)
- # Don't test for the "default" C tag, as we know, it's there, but
- # not specially marked.
- ;;
- *)
- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
- taglist="$taglist $tagname"
- # Evaluate the configuration.
- eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
- else
- $echo "$progname: ignoring unknown tag $tagname" 1>&2
- fi
- ;;
- esac
- ;;
- *)
- eval "$prev=\$arg"
- ;;
- esac
-
- prev=
- prevopt=
- continue
- fi
-
- # Have we seen a non-optional argument yet?
- case $arg in
- --help)
- show_help=yes
- ;;
-
- --version)
- $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
- $echo
- $echo "Copyright (C) 2005 Free Software Foundation, Inc."
- $echo "This is free software; see the source for copying conditions. There is NO"
- $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
- exit $?
- ;;
-
- --config)
- ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
- # Now print the configurations for the tags.
- for tagname in $taglist; do
- ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
- done
- exit $?
- ;;
-
- --debug)
- $echo "$progname: enabling shell trace mode"
- set -x
- preserve_args="$preserve_args $arg"
- ;;
-
- --dry-run | -n)
- run=:
- ;;
-
- --features)
- $echo "host: $host"
- if test "$build_libtool_libs" = yes; then
- $echo "enable shared libraries"
- else
- $echo "disable shared libraries"
- fi
- if test "$build_old_libs" = yes; then
- $echo "enable static libraries"
- else
- $echo "disable static libraries"
- fi
- exit $?
- ;;
-
- --finish) mode="finish" ;;
-
- --mode) prevopt="--mode" prev=mode ;;
- --mode=*) mode="$optarg" ;;
-
- --preserve-dup-deps) duplicate_deps="yes" ;;
-
- --quiet | --silent)
- show=:
- preserve_args="$preserve_args $arg"
- ;;
-
- --tag)
- prevopt="--tag"
- prev=tag
- preserve_args="$preserve_args --tag"
- ;;
- --tag=*)
- set tag "$optarg" ${1+"$@"}
- shift
- prev=tag
- preserve_args="$preserve_args --tag"
- ;;
-
- -dlopen)
- prevopt="-dlopen"
- prev=execute_dlfiles
- ;;
-
- -*)
- $echo "$modename: unrecognized option \`$arg'" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- ;;
-
- *)
- nonopt="$arg"
- break
- ;;
- esac
-done
-
-if test -n "$prevopt"; then
- $echo "$modename: option \`$prevopt' requires an argument" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
-fi
-
-case $disable_libs in
-no)
- ;;
-shared)
- build_libtool_libs=no
- build_old_libs=yes
- ;;
-static)
- build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
- ;;
-esac
-
-# If this variable is set in any of the actions, the command in it
-# will be execed at the end. This prevents here-documents from being
-# left over by shells.
-exec_cmd=
-
-if test -z "$show_help"; then
-
- # Infer the operation mode.
- if test -z "$mode"; then
- $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
- $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
- case $nonopt in
- *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
- mode=link
- for arg
- do
- case $arg in
- -c)
- mode=compile
- break
- ;;
- esac
- done
- ;;
- *db | *dbx | *strace | *truss)
- mode=execute
- ;;
- *install*|cp|mv)
- mode=install
- ;;
- *rm)
- mode=uninstall
- ;;
- *)
- # If we have no mode, but dlfiles were specified, then do execute mode.
- test -n "$execute_dlfiles" && mode=execute
-
- # Just use the default operation mode.
- if test -z "$mode"; then
- if test -n "$nonopt"; then
- $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
- else
- $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
- fi
- fi
- ;;
- esac
- fi
-
- # Only execute mode is allowed to have -dlopen flags.
- if test -n "$execute_dlfiles" && test "$mode" != execute; then
- $echo "$modename: unrecognized option \`-dlopen'" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- # Change the help message to a mode-specific one.
- generic_help="$help"
- help="Try \`$modename --help --mode=$mode' for more information."
-
- # These modes are in order of execution frequency so that they run quickly.
- case $mode in
- # libtool compile mode
- compile)
- modename="$modename: compile"
- # Get the compilation command and the source file.
- base_compile=
- srcfile="$nonopt" # always keep a non-empty value in "srcfile"
- suppress_opt=yes
- suppress_output=
- arg_mode=normal
- libobj=
- later=
-
- for arg
- do
- case $arg_mode in
- arg )
- # do not "continue". Instead, add this to base_compile
- lastarg="$arg"
- arg_mode=normal
- ;;
-
- target )
- libobj="$arg"
- arg_mode=normal
- continue
- ;;
-
- normal )
- # Accept any command-line options.
- case $arg in
- -o)
- if test -n "$libobj" ; then
- $echo "$modename: you cannot specify \`-o' more than once" 1>&2
- exit $EXIT_FAILURE
- fi
- arg_mode=target
- continue
- ;;
-
- -static | -prefer-pic | -prefer-non-pic)
- later="$later $arg"
- continue
- ;;
-
- -no-suppress)
- suppress_opt=no
- continue
- ;;
-
- -Xcompiler)
- arg_mode=arg # the next one goes into the "base_compile" arg list
- continue # The current "srcfile" will either be retained or
- ;; # replaced later. I would guess that would be a bug.
-
- -Wc,*)
- args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
- lastarg=
- save_ifs="$IFS"; IFS=','
- for arg in $args; do
- IFS="$save_ifs"
-
- # Double-quote args containing other shell metacharacters.
- # Many Bourne shells cannot handle close brackets correctly
- # in scan sets, so we specify it separately.
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- lastarg="$lastarg $arg"
- done
- IFS="$save_ifs"
- lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
-
- # Add the arguments to base_compile.
- base_compile="$base_compile $lastarg"
- continue
- ;;
-
- * )
- # Accept the current argument as the source file.
- # The previous "srcfile" becomes the current argument.
- #
- lastarg="$srcfile"
- srcfile="$arg"
- ;;
- esac # case $arg
- ;;
- esac # case $arg_mode
-
- # Aesthetically quote the previous argument.
- lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
-
- case $lastarg in
- # Double-quote args containing other shell metacharacters.
- # Many Bourne shells cannot handle close brackets correctly
- # in scan sets, and some SunOS ksh mistreat backslash-escaping
- # in scan sets (worked around with variable expansion),
- # and furthermore cannot handle '|' '&' '(' ')' in scan sets
- # at all, so we specify them separately.
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- lastarg="\"$lastarg\""
- ;;
- esac
-
- base_compile="$base_compile $lastarg"
- done # for arg
-
- case $arg_mode in
- arg)
- $echo "$modename: you must specify an argument for -Xcompile"
- exit $EXIT_FAILURE
- ;;
- target)
- $echo "$modename: you must specify a target with \`-o'" 1>&2
- exit $EXIT_FAILURE
- ;;
- *)
- # Get the name of the library object.
- [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
- ;;
- esac
-
- # Recognize several different file suffixes.
- # If the user specifies -o file.o, it is replaced with file.lo
- xform='[cCFSifmso]'
- case $libobj in
- *.ada) xform=ada ;;
- *.adb) xform=adb ;;
- *.ads) xform=ads ;;
- *.asm) xform=asm ;;
- *.c++) xform=c++ ;;
- *.cc) xform=cc ;;
- *.ii) xform=ii ;;
- *.class) xform=class ;;
- *.cpp) xform=cpp ;;
- *.cxx) xform=cxx ;;
- *.f90) xform=f90 ;;
- *.for) xform=for ;;
- *.java) xform=java ;;
- *.obj) xform=obj ;;
- esac
-
- libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
-
- case $libobj in
- *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
- *)
- $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
-
- func_infer_tag $base_compile
-
- for arg in $later; do
- case $arg in
- -static)
- build_old_libs=yes
- continue
- ;;
-
- -prefer-pic)
- pic_mode=yes
- continue
- ;;
-
- -prefer-non-pic)
- pic_mode=no
- continue
- ;;
- esac
- done
-
- qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
- case $qlibobj in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- qlibobj="\"$qlibobj\"" ;;
- esac
- test "X$libobj" != "X$qlibobj" \
- && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
- && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
- objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
- xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$xdir" = "X$obj"; then
- xdir=
- else
- xdir=$xdir/
- fi
- lobj=${xdir}$objdir/$objname
-
- if test -z "$base_compile"; then
- $echo "$modename: you must specify a compilation command" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- # Delete any leftover library objects.
- if test "$build_old_libs" = yes; then
- removelist="$obj $lobj $libobj ${libobj}T"
- else
- removelist="$lobj $libobj ${libobj}T"
- fi
-
- $run $rm $removelist
- trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
-
- # On Cygwin there's no "real" PIC flag so we must build both object types
- case $host_os in
- cygwin* | mingw* | pw32* | os2*)
- pic_mode=default
- ;;
- esac
- if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
- # non-PIC code in shared libraries is not supported
- pic_mode=default
- fi
-
- # Calculate the filename of the output object if compiler does
- # not support -o with -c
- if test "$compiler_c_o" = no; then
- output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
- lockfile="$output_obj.lock"
- removelist="$removelist $output_obj $lockfile"
- trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
- else
- output_obj=
- need_locks=no
- lockfile=
- fi
-
- # Lock this critical section if it is needed
- # We use this script file to make the link, it avoids creating a new file
- if test "$need_locks" = yes; then
- until $run ln "$progpath" "$lockfile" 2>/dev/null; do
- $show "Waiting for $lockfile to be removed"
- sleep 2
- done
- elif test "$need_locks" = warn; then
- if test -f "$lockfile"; then
- $echo "\
-*** ERROR, $lockfile exists and contains:
-`cat $lockfile 2>/dev/null`
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together. If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
- $run $rm $removelist
- exit $EXIT_FAILURE
- fi
- $echo "$srcfile" > "$lockfile"
- fi
-
- if test -n "$fix_srcfile_path"; then
- eval srcfile=\"$fix_srcfile_path\"
- fi
- qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
- case $qsrcfile in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- qsrcfile="\"$qsrcfile\"" ;;
- esac
-
- $run $rm "$libobj" "${libobj}T"
-
- # Create a libtool object file (analogous to a ".la" file),
- # but don't create it if we're doing a dry run.
- test -z "$run" && cat > ${libobj}T <<EOF
-# $libobj - a libtool object file
-# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
-#
-# Please DO NOT delete this file!
-# It is necessary for linking the library.
-
-# Name of the PIC object.
-EOF
-
- # Only build a PIC object if we are building libtool libraries.
- if test "$build_libtool_libs" = yes; then
- # Without this assignment, base_compile gets emptied.
- fbsd_hideous_sh_bug=$base_compile
-
- if test "$pic_mode" != no; then
- command="$base_compile $qsrcfile $pic_flag"
- else
- # Don't build PIC code
- command="$base_compile $qsrcfile"
- fi
-
- if test ! -d "${xdir}$objdir"; then
- $show "$mkdir ${xdir}$objdir"
- $run $mkdir ${xdir}$objdir
- exit_status=$?
- if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
- exit $exit_status
- fi
- fi
-
- if test -z "$output_obj"; then
- # Place PIC objects in $objdir
- command="$command -o $lobj"
- fi
-
- $run $rm "$lobj" "$output_obj"
-
- $show "$command"
- if $run eval "$command"; then :
- else
- test -n "$output_obj" && $run $rm $removelist
- exit $EXIT_FAILURE
- fi
-
- if test "$need_locks" = warn &&
- test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
- $echo "\
-*** ERROR, $lockfile contains:
-`cat $lockfile 2>/dev/null`
-
-but it should contain:
-$srcfile
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together. If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
- $run $rm $removelist
- exit $EXIT_FAILURE
- fi
-
- # Just move the object if needed, then go on to compile the next one
- if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
- $show "$mv $output_obj $lobj"
- if $run $mv $output_obj $lobj; then :
- else
- error=$?
- $run $rm $removelist
- exit $error
- fi
- fi
-
- # Append the name of the PIC object to the libtool object file.
- test -z "$run" && cat >> ${libobj}T <<EOF
-pic_object='$objdir/$objname'
-
-EOF
-
- # Allow error messages only from the first compilation.
- if test "$suppress_opt" = yes; then
- suppress_output=' >/dev/null 2>&1'
- fi
- else
- # No PIC object so indicate it doesn't exist in the libtool
- # object file.
- test -z "$run" && cat >> ${libobj}T <<EOF
-pic_object=none
-
-EOF
- fi
-
- # Only build a position-dependent object if we build old libraries.
- if test "$build_old_libs" = yes; then
- if test "$pic_mode" != yes; then
- # Don't build PIC code
- command="$base_compile $qsrcfile"
- else
- command="$base_compile $qsrcfile $pic_flag"
- fi
- if test "$compiler_c_o" = yes; then
- command="$command -o $obj"
- fi
-
- # Suppress compiler output if we already did a PIC compilation.
- command="$command$suppress_output"
- $run $rm "$obj" "$output_obj"
- $show "$command"
- if $run eval "$command"; then :
- else
- $run $rm $removelist
- exit $EXIT_FAILURE
- fi
-
- if test "$need_locks" = warn &&
- test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
- $echo "\
-*** ERROR, $lockfile contains:
-`cat $lockfile 2>/dev/null`
-
-but it should contain:
-$srcfile
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together. If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
- $run $rm $removelist
- exit $EXIT_FAILURE
- fi
-
- # Just move the object if needed
- if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
- $show "$mv $output_obj $obj"
- if $run $mv $output_obj $obj; then :
- else
- error=$?
- $run $rm $removelist
- exit $error
- fi
- fi
-
- # Append the name of the non-PIC object the libtool object file.
- # Only append if the libtool object file exists.
- test -z "$run" && cat >> ${libobj}T <<EOF
-# Name of the non-PIC object.
-non_pic_object='$objname'
-
-EOF
- else
- # Append the name of the non-PIC object the libtool object file.
- # Only append if the libtool object file exists.
- test -z "$run" && cat >> ${libobj}T <<EOF
-# Name of the non-PIC object.
-non_pic_object=none
-
-EOF
- fi
-
- $run $mv "${libobj}T" "${libobj}"
-
- # Unlock the critical section if it was locked
- if test "$need_locks" != no; then
- $run $rm "$lockfile"
- fi
-
- exit $EXIT_SUCCESS
- ;;
-
- # libtool link mode
- link | relink)
- modename="$modename: link"
- case $host in
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
- # It is impossible to link a dll without this setting, and
- # we shouldn't force the makefile maintainer to figure out
- # which system we are compiling for in order to pass an extra
- # flag for every libtool invocation.
- # allow_undefined=no
-
- # FIXME: Unfortunately, there are problems with the above when trying
- # to make a dll which has undefined symbols, in which case not
- # even a static library is built. For now, we need to specify
- # -no-undefined on the libtool link line when we can be certain
- # that all symbols are satisfied, otherwise we get a static library.
- allow_undefined=yes
- ;;
- *)
- allow_undefined=yes
- ;;
- esac
- libtool_args="$nonopt"
- base_compile="$nonopt $@"
- compile_command="$nonopt"
- finalize_command="$nonopt"
-
- compile_rpath=
- finalize_rpath=
- compile_shlibpath=
- finalize_shlibpath=
- convenience=
- old_convenience=
- deplibs=
- old_deplibs=
- compiler_flags=
- linker_flags=
- dllsearchpath=
- lib_search_path=`pwd`
- inst_prefix_dir=
-
- avoid_version=no
- dlfiles=
- dlprefiles=
- dlself=no
- export_dynamic=no
- export_symbols=
- export_symbols_regex=
- generated=
- libobjs=
- ltlibs=
- module=no
- no_install=no
- objs=
- non_pic_objects=
- notinst_path= # paths that contain not-installed libtool libraries
- precious_files_regex=
- prefer_static_libs=no
- preload=no
- prev=
- prevarg=
- release=
- rpath=
- xrpath=
- perm_rpath=
- temp_rpath=
- thread_safe=no
- vinfo=
- vinfo_number=no
-
- func_infer_tag $base_compile
-
- # We need to know -static, to get the right output filenames.
- for arg
- do
- case $arg in
- -all-static | -static | -static-libtool-libs)
- case $arg in
- -all-static)
- if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
- $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
- fi
- if test -n "$link_static_flag"; then
- dlopen_self=$dlopen_self_static
- fi
- prefer_static_libs=yes
- ;;
- -static)
- if test -z "$pic_flag" && test -n "$link_static_flag"; then
- dlopen_self=$dlopen_self_static
- fi
- prefer_static_libs=built
- ;;
- -static-libtool-libs)
- if test -z "$pic_flag" && test -n "$link_static_flag"; then
- dlopen_self=$dlopen_self_static
- fi
- prefer_static_libs=yes
- ;;
- esac
- build_libtool_libs=no
- build_old_libs=yes
- break
- ;;
- esac
- done
-
- # See if our shared archives depend on static archives.
- test -n "$old_archive_from_new_cmds" && build_old_libs=yes
-
- # Go through the arguments, transforming them on the way.
- while test "$#" -gt 0; do
- arg="$1"
- shift
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
- ;;
- *) qarg=$arg ;;
- esac
- libtool_args="$libtool_args $qarg"
-
- # If the previous option needs an argument, assign it.
- if test -n "$prev"; then
- case $prev in
- output)
- compile_command="$compile_command @OUTPUT@"
- finalize_command="$finalize_command @OUTPUT@"
- ;;
- esac
-
- case $prev in
- dlfiles|dlprefiles)
- if test "$preload" = no; then
- # Add the symbol object into the linking commands.
- compile_command="$compile_command @SYMFILE@"
- finalize_command="$finalize_command @SYMFILE@"
- preload=yes
- fi
- case $arg in
- *.la | *.lo) ;; # We handle these cases below.
- force)
- if test "$dlself" = no; then
- dlself=needless
- export_dynamic=yes
- fi
- prev=
- continue
- ;;
- self)
- if test "$prev" = dlprefiles; then
- dlself=yes
- elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
- dlself=yes
- else
- dlself=needless
- export_dynamic=yes
- fi
- prev=
- continue
- ;;
- *)
- if test "$prev" = dlfiles; then
- dlfiles="$dlfiles $arg"
- else
- dlprefiles="$dlprefiles $arg"
- fi
- prev=
- continue
- ;;
- esac
- ;;
- expsyms)
- export_symbols="$arg"
- if test ! -f "$arg"; then
- $echo "$modename: symbol file \`$arg' does not exist"
- exit $EXIT_FAILURE
- fi
- prev=
- continue
- ;;
- expsyms_regex)
- export_symbols_regex="$arg"
- prev=
- continue
- ;;
- inst_prefix)
- inst_prefix_dir="$arg"
- prev=
- continue
- ;;
- precious_regex)
- precious_files_regex="$arg"
- prev=
- continue
- ;;
- release)
- release="-$arg"
- prev=
- continue
- ;;
- objectlist)
- if test -f "$arg"; then
- save_arg=$arg
- moreargs=
- for fil in `cat $save_arg`
- do
-# moreargs="$moreargs $fil"
- arg=$fil
- # A libtool-controlled object.
-
- # Check to see that this really is a libtool object.
- if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- pic_object=
- non_pic_object=
-
- # Read the .lo file
- # If there is no directory component, then add one.
- case $arg in
- */* | *\\*) . $arg ;;
- *) . ./$arg ;;
- esac
-
- if test -z "$pic_object" || \
- test -z "$non_pic_object" ||
- test "$pic_object" = none && \
- test "$non_pic_object" = none; then
- $echo "$modename: cannot find name of object for \`$arg'" 1>&2
- exit $EXIT_FAILURE
- fi
-
- # Extract subdirectory from the argument.
- xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$xdir" = "X$arg"; then
- xdir=
- else
- xdir="$xdir/"
- fi
-
- if test "$pic_object" != none; then
- # Prepend the subdirectory the object is found in.
- pic_object="$xdir$pic_object"
-
- if test "$prev" = dlfiles; then
- if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
- dlfiles="$dlfiles $pic_object"
- prev=
- continue
- else
- # If libtool objects are unsupported, then we need to preload.
- prev=dlprefiles
- fi
- fi
-
- # CHECK ME: I think I busted this. -Ossama
- if test "$prev" = dlprefiles; then
- # Preload the old-style object.
- dlprefiles="$dlprefiles $pic_object"
- prev=
- fi
-
- # A PIC object.
- libobjs="$libobjs $pic_object"
- arg="$pic_object"
- fi
-
- # Non-PIC object.
- if test "$non_pic_object" != none; then
- # Prepend the subdirectory the object is found in.
- non_pic_object="$xdir$non_pic_object"
-
- # A standard non-PIC object
- non_pic_objects="$non_pic_objects $non_pic_object"
- if test -z "$pic_object" || test "$pic_object" = none ; then
- arg="$non_pic_object"
- fi
- else
- # If the PIC object exists, use it instead.
- # $xdir was prepended to $pic_object above.
- non_pic_object="$pic_object"
- non_pic_objects="$non_pic_objects $non_pic_object"
- fi
- else
- # Only an error if not doing a dry-run.
- if test -z "$run"; then
- $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
- exit $EXIT_FAILURE
- else
- # Dry-run case.
-
- # Extract subdirectory from the argument.
- xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$xdir" = "X$arg"; then
- xdir=
- else
- xdir="$xdir/"
- fi
-
- pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
- non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
- libobjs="$libobjs $pic_object"
- non_pic_objects="$non_pic_objects $non_pic_object"
- fi
- fi
- done
- else
- $echo "$modename: link input file \`$save_arg' does not exist"
- exit $EXIT_FAILURE
- fi
- arg=$save_arg
- prev=
- continue
- ;;
- rpath | xrpath)
- # We need an absolute path.
- case $arg in
- [\\/]* | [A-Za-z]:[\\/]*) ;;
- *)
- $echo "$modename: only absolute run-paths are allowed" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
- if test "$prev" = rpath; then
- case "$rpath " in
- *" $arg "*) ;;
- *) rpath="$rpath $arg" ;;
- esac
- else
- case "$xrpath " in
- *" $arg "*) ;;
- *) xrpath="$xrpath $arg" ;;
- esac
- fi
- prev=
- continue
- ;;
- xcompiler)
- compiler_flags="$compiler_flags $qarg"
- prev=
- compile_command="$compile_command $qarg"
- finalize_command="$finalize_command $qarg"
- continue
- ;;
- xlinker)
- linker_flags="$linker_flags $qarg"
- compiler_flags="$compiler_flags $wl$qarg"
- prev=
- compile_command="$compile_command $wl$qarg"
- finalize_command="$finalize_command $wl$qarg"
- continue
- ;;
- xcclinker)
- linker_flags="$linker_flags $qarg"
- compiler_flags="$compiler_flags $qarg"
- prev=
- compile_command="$compile_command $qarg"
- finalize_command="$finalize_command $qarg"
- continue
- ;;
- shrext)
- shrext_cmds="$arg"
- prev=
- continue
- ;;
- darwin_framework|darwin_framework_skip)
- test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
- compile_command="$compile_command $arg"
- finalize_command="$finalize_command $arg"
- prev=
- continue
- ;;
- *)
- eval "$prev=\"\$arg\""
- prev=
- continue
- ;;
- esac
- fi # test -n "$prev"
-
- prevarg="$arg"
-
- case $arg in
- -all-static)
- if test -n "$link_static_flag"; then
- compile_command="$compile_command $link_static_flag"
- finalize_command="$finalize_command $link_static_flag"
- fi
- continue
- ;;
-
- -allow-undefined)
- # FIXME: remove this flag sometime in the future.
- $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
- continue
- ;;
-
- -avoid-version)
- avoid_version=yes
- continue
- ;;
-
- -dlopen)
- prev=dlfiles
- continue
- ;;
-
- -dlpreopen)
- prev=dlprefiles
- continue
- ;;
-
- -export-dynamic)
- export_dynamic=yes
- continue
- ;;
-
- -export-symbols | -export-symbols-regex)
- if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
- $echo "$modename: more than one -exported-symbols argument is not allowed"
- exit $EXIT_FAILURE
- fi
- if test "X$arg" = "X-export-symbols"; then
- prev=expsyms
- else
- prev=expsyms_regex
- fi
- continue
- ;;
-
- -framework|-arch|-isysroot)
- case " $CC " in
- *" ${arg} ${1} "* | *" ${arg} ${1} "*)
- prev=darwin_framework_skip ;;
- *) compiler_flags="$compiler_flags $arg"
- prev=darwin_framework ;;
- esac
- compile_command="$compile_command $arg"
- finalize_command="$finalize_command $arg"
- continue
- ;;
-
- -inst-prefix-dir)
- prev=inst_prefix
- continue
- ;;
-
- # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
- # so, if we see these flags be careful not to treat them like -L
- -L[A-Z][A-Z]*:*)
- case $with_gcc/$host in
- no/*-*-irix* | /*-*-irix*)
- compile_command="$compile_command $arg"
- finalize_command="$finalize_command $arg"
- ;;
- esac
- continue
- ;;
-
- -L*)
- dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
- # We need an absolute path.
- case $dir in
- [\\/]* | [A-Za-z]:[\\/]*) ;;
- *)
- absdir=`cd "$dir" && pwd`
- if test -z "$absdir"; then
- $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
- absdir="$dir"
- notinst_path="$notinst_path $dir"
- fi
- dir="$absdir"
- ;;
- esac
- case "$deplibs " in
- *" -L$dir "*) ;;
- *)
- deplibs="$deplibs -L$dir"
- lib_search_path="$lib_search_path $dir"
- ;;
- esac
- case $host in
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
- testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
- case :$dllsearchpath: in
- *":$dir:"*) ;;
- *) dllsearchpath="$dllsearchpath:$dir";;
- esac
- case :$dllsearchpath: in
- *":$testbindir:"*) ;;
- *) dllsearchpath="$dllsearchpath:$testbindir";;
- esac
- ;;
- esac
- continue
- ;;
-
- -l*)
- if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
- case $host in
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
- # These systems don't actually have a C or math library (as such)
- continue
- ;;
- *-*-os2*)
- # These systems don't actually have a C library (as such)
- test "X$arg" = "X-lc" && continue
- ;;
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
- # Do not include libc due to us having libc/libc_r.
- test "X$arg" = "X-lc" && continue
- ;;
- *-*-rhapsody* | *-*-darwin1.[012])
- # Rhapsody C and math libraries are in the System framework
- deplibs="$deplibs -framework System"
- continue
- ;;
- *-*-sco3.2v5* | *-*-sco5v6*)
- # Causes problems with __ctype
- test "X$arg" = "X-lc" && continue
- ;;
- *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
- # Compiler inserts libc in the correct place for threads to work
- test "X$arg" = "X-lc" && continue
- ;;
- esac
- elif test "X$arg" = "X-lc_r"; then
- case $host in
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
- # Do not include libc_r directly, use -pthread flag.
- continue
- ;;
- esac
- fi
- deplibs="$deplibs $arg"
- continue
- ;;
-
- # Tru64 UNIX uses -model [arg] to determine the layout of C++
- # classes, name mangling, and exception handling.
- -model)
- compile_command="$compile_command $arg"
- compiler_flags="$compiler_flags $arg"
- finalize_command="$finalize_command $arg"
- prev=xcompiler
- continue
- ;;
-
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
- compiler_flags="$compiler_flags $arg"
- compile_command="$compile_command $arg"
- finalize_command="$finalize_command $arg"
- continue
- ;;
-
- -module)
- module=yes
- continue
- ;;
-
- # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
- # -r[0-9][0-9]* specifies the processor on the SGI compiler
- # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
- # +DA*, +DD* enable 64-bit mode on the HP compiler
- # -q* pass through compiler args for the IBM compiler
- # -m* pass through architecture-specific compiler args for GCC
- # -m*, -t[45]*, -txscale* pass through architecture-specific
- # compiler args for GCC
- # -pg pass through profiling flag for GCC
- # @file GCC response files
- -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
- -t[45]*|-txscale*|@*)
-
- # Unknown arguments in both finalize_command and compile_command need
- # to be aesthetically quoted because they are evaled later.
- arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- compile_command="$compile_command $arg"
- finalize_command="$finalize_command $arg"
- compiler_flags="$compiler_flags $arg"
- continue
- ;;
-
- -shrext)
- prev=shrext
- continue
- ;;
-
- -no-fast-install)
- fast_install=no
- continue
- ;;
-
- -no-install)
- case $host in
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
- # The PATH hackery in wrapper scripts is required on Windows
- # in order for the loader to find any dlls it needs.
- $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
- $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
- fast_install=no
- ;;
- *) no_install=yes ;;
- esac
- continue
- ;;
-
- -no-undefined)
- allow_undefined=no
- continue
- ;;
-
- -objectlist)
- prev=objectlist
- continue
- ;;
-
- -o) prev=output ;;
-
- -precious-files-regex)
- prev=precious_regex
- continue
- ;;
-
- -release)
- prev=release
- continue
- ;;
-
- -rpath)
- prev=rpath
- continue
- ;;
-
- -R)
- prev=xrpath
- continue
- ;;
-
- -R*)
- dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
- # We need an absolute path.
- case $dir in
- [\\/]* | [A-Za-z]:[\\/]*) ;;
- *)
- $echo "$modename: only absolute run-paths are allowed" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
- case "$xrpath " in
- *" $dir "*) ;;
- *) xrpath="$xrpath $dir" ;;
- esac
- continue
- ;;
-
- -static | -static-libtool-libs)
- # The effects of -static are defined in a previous loop.
- # We used to do the same as -all-static on platforms that
- # didn't have a PIC flag, but the assumption that the effects
- # would be equivalent was wrong. It would break on at least
- # Digital Unix and AIX.
- continue
- ;;
-
- -thread-safe)
- thread_safe=yes
- continue
- ;;
-
- -version-info)
- prev=vinfo
- continue
- ;;
- -version-number)
- prev=vinfo
- vinfo_number=yes
- continue
- ;;
-
- -Wc,*)
- args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
- arg=
- save_ifs="$IFS"; IFS=','
- for flag in $args; do
- IFS="$save_ifs"
- case $flag in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- flag="\"$flag\""
- ;;
- esac
- arg="$arg $wl$flag"
- compiler_flags="$compiler_flags $flag"
- done
- IFS="$save_ifs"
- arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
- ;;
-
- -Wl,*)
- args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
- arg=
- save_ifs="$IFS"; IFS=','
- for flag in $args; do
- IFS="$save_ifs"
- case $flag in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- flag="\"$flag\""
- ;;
- esac
- arg="$arg $wl$flag"
- compiler_flags="$compiler_flags $wl$flag"
- linker_flags="$linker_flags $flag"
- done
- IFS="$save_ifs"
- arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
- ;;
-
- -Xcompiler)
- prev=xcompiler
- continue
- ;;
-
- -Xlinker)
- prev=xlinker
- continue
- ;;
-
- -XCClinker)
- prev=xcclinker
- continue
- ;;
-
- # Some other compiler flag.
- -* | +*)
- # Unknown arguments in both finalize_command and compile_command need
- # to be aesthetically quoted because they are evaled later.
- arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- ;;
-
- *.$objext)
- # A standard object.
- objs="$objs $arg"
- ;;
-
- *.lo)
- # A libtool-controlled object.
-
- # Check to see that this really is a libtool object.
- if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- pic_object=
- non_pic_object=
-
- # Read the .lo file
- # If there is no directory component, then add one.
- case $arg in
- */* | *\\*) . $arg ;;
- *) . ./$arg ;;
- esac
-
- if test -z "$pic_object" || \
- test -z "$non_pic_object" ||
- test "$pic_object" = none && \
- test "$non_pic_object" = none; then
- $echo "$modename: cannot find name of object for \`$arg'" 1>&2
- exit $EXIT_FAILURE
- fi
-
- # Extract subdirectory from the argument.
- xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$xdir" = "X$arg"; then
- xdir=
- else
- xdir="$xdir/"
- fi
-
- if test "$pic_object" != none; then
- # Prepend the subdirectory the object is found in.
- pic_object="$xdir$pic_object"
-
- if test "$prev" = dlfiles; then
- if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
- dlfiles="$dlfiles $pic_object"
- prev=
- continue
- else
- # If libtool objects are unsupported, then we need to preload.
- prev=dlprefiles
- fi
- fi
-
- # CHECK ME: I think I busted this. -Ossama
- if test "$prev" = dlprefiles; then
- # Preload the old-style object.
- dlprefiles="$dlprefiles $pic_object"
- prev=
- fi
-
- # A PIC object.
- libobjs="$libobjs $pic_object"
- arg="$pic_object"
- fi
-
- # Non-PIC object.
- if test "$non_pic_object" != none; then
- # Prepend the subdirectory the object is found in.
- non_pic_object="$xdir$non_pic_object"
-
- # A standard non-PIC object
- non_pic_objects="$non_pic_objects $non_pic_object"
- if test -z "$pic_object" || test "$pic_object" = none ; then
- arg="$non_pic_object"
- fi
- else
- # If the PIC object exists, use it instead.
- # $xdir was prepended to $pic_object above.
- non_pic_object="$pic_object"
- non_pic_objects="$non_pic_objects $non_pic_object"
- fi
- else
- # Only an error if not doing a dry-run.
- if test -z "$run"; then
- $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
- exit $EXIT_FAILURE
- else
- # Dry-run case.
-
- # Extract subdirectory from the argument.
- xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$xdir" = "X$arg"; then
- xdir=
- else
- xdir="$xdir/"
- fi
-
- pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
- non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
- libobjs="$libobjs $pic_object"
- non_pic_objects="$non_pic_objects $non_pic_object"
- fi
- fi
- ;;
-
- *.$libext)
- # An archive.
- deplibs="$deplibs $arg"
- old_deplibs="$old_deplibs $arg"
- continue
- ;;
-
- *.la)
- # A libtool-controlled library.
-
- if test "$prev" = dlfiles; then
- # This library was specified with -dlopen.
- dlfiles="$dlfiles $arg"
- prev=
- elif test "$prev" = dlprefiles; then
- # The library was specified with -dlpreopen.
- dlprefiles="$dlprefiles $arg"
- prev=
- else
- deplibs="$deplibs $arg"
- fi
- continue
- ;;
-
- # Some other compiler argument.
- *)
- # Unknown arguments in both finalize_command and compile_command need
- # to be aesthetically quoted because they are evaled later.
- arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- ;;
- esac # arg
-
- # Now actually substitute the argument into the commands.
- if test -n "$arg"; then
- compile_command="$compile_command $arg"
- finalize_command="$finalize_command $arg"
- fi
- done # argument parsing loop
-
- if test -n "$prev"; then
- $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
- eval arg=\"$export_dynamic_flag_spec\"
- compile_command="$compile_command $arg"
- finalize_command="$finalize_command $arg"
- fi
-
- oldlibs=
- # calculate the name of the file, without its directory
- outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
- libobjs_save="$libobjs"
-
- if test -n "$shlibpath_var"; then
- # get the directories listed in $shlibpath_var
- eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
- else
- shlib_search_path=
- fi
- eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
- eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
-
- output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$output_objdir" = "X$output"; then
- output_objdir="$objdir"
- else
- output_objdir="$output_objdir/$objdir"
- fi
- # Create the object directory.
- if test ! -d "$output_objdir"; then
- $show "$mkdir $output_objdir"
- $run $mkdir $output_objdir
- exit_status=$?
- if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
- exit $exit_status
- fi
- fi
-
- # Determine the type of output
- case $output in
- "")
- $echo "$modename: you must specify an output file" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- ;;
- *.$libext) linkmode=oldlib ;;
- *.lo | *.$objext) linkmode=obj ;;
- *.la) linkmode=lib ;;
- *) linkmode=prog ;; # Anything else should be a program.
- esac
-
- case $host in
- *cygwin* | *mingw* | *pw32*)
- # don't eliminate duplications in $postdeps and $predeps
- duplicate_compiler_generated_deps=yes
- ;;
- *)
- duplicate_compiler_generated_deps=$duplicate_deps
- ;;
- esac
- specialdeplibs=
-
- libs=
- # Find all interdependent deplibs by searching for libraries
- # that are linked more than once (e.g. -la -lb -la)
- for deplib in $deplibs; do
- if test "X$duplicate_deps" = "Xyes" ; then
- case "$libs " in
- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
- esac
- fi
- libs="$libs $deplib"
- done
-
- if test "$linkmode" = lib; then
- libs="$predeps $libs $compiler_lib_search_path $postdeps"
-
- # Compute libraries that are listed more than once in $predeps
- # $postdeps and mark them as special (i.e., whose duplicates are
- # not to be eliminated).
- pre_post_deps=
- if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
- for pre_post_dep in $predeps $postdeps; do
- case "$pre_post_deps " in
- *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
- esac
- pre_post_deps="$pre_post_deps $pre_post_dep"
- done
- fi
- pre_post_deps=
- fi
-
- deplibs=
- newdependency_libs=
- newlib_search_path=
- need_relink=no # whether we're linking any uninstalled libtool libraries
- notinst_deplibs= # not-installed libtool libraries
- case $linkmode in
- lib)
- passes="conv link"
- for file in $dlfiles $dlprefiles; do
- case $file in
- *.la) ;;
- *)
- $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
- done
- ;;
- prog)
- compile_deplibs=
- finalize_deplibs=
- alldeplibs=no
- newdlfiles=
- newdlprefiles=
- passes="conv scan dlopen dlpreopen link"
- ;;
- *) passes="conv"
- ;;
- esac
- for pass in $passes; do
- if test "$linkmode,$pass" = "lib,link" ||
- test "$linkmode,$pass" = "prog,scan"; then
- libs="$deplibs"
- deplibs=
- fi
- if test "$linkmode" = prog; then
- case $pass in
- dlopen) libs="$dlfiles" ;;
- dlpreopen) libs="$dlprefiles" ;;
- link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
- esac
- fi
- if test "$pass" = dlopen; then
- # Collect dlpreopened libraries
- save_deplibs="$deplibs"
- deplibs=
- fi
- for deplib in $libs; do
- lib=
- found=no
- case $deplib in
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
- if test "$linkmode,$pass" = "prog,link"; then
- compile_deplibs="$deplib $compile_deplibs"
- finalize_deplibs="$deplib $finalize_deplibs"
- else
- compiler_flags="$compiler_flags $deplib"
- fi
- continue
- ;;
- -l*)
- if test "$linkmode" != lib && test "$linkmode" != prog; then
- $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
- continue
- fi
- name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
- for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
- for search_ext in .la $std_shrext .so .a; do
- # Search the libtool library
- lib="$searchdir/lib${name}${search_ext}"
- if test -f "$lib"; then
- if test "$search_ext" = ".la"; then
- found=yes
- else
- found=no
- fi
- break 2
- fi
- done
- done
- if test "$found" != yes; then
- # deplib doesn't seem to be a libtool library
- if test "$linkmode,$pass" = "prog,link"; then
- compile_deplibs="$deplib $compile_deplibs"
- finalize_deplibs="$deplib $finalize_deplibs"
- else
- deplibs="$deplib $deplibs"
- test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
- fi
- continue
- else # deplib is a libtool library
- # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
- # We need to do some special things here, and not later.
- if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
- case " $predeps $postdeps " in
- *" $deplib "*)
- if (${SED} -e '2q' $lib |
- grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- library_names=
- old_library=
- case $lib in
- */* | *\\*) . $lib ;;
- *) . ./$lib ;;
- esac
- for l in $old_library $library_names; do
- ll="$l"
- done
- if test "X$ll" = "X$old_library" ; then # only static version available
- found=no
- ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
- test "X$ladir" = "X$lib" && ladir="."
- lib=$ladir/$old_library
- if test "$linkmode,$pass" = "prog,link"; then
- compile_deplibs="$deplib $compile_deplibs"
- finalize_deplibs="$deplib $finalize_deplibs"
- else
- deplibs="$deplib $deplibs"
- test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
- fi
- continue
- fi
- fi
- ;;
- *) ;;
- esac
- fi
- fi
- ;; # -l
- -L*)
- case $linkmode in
- lib)
- deplibs="$deplib $deplibs"
- test "$pass" = conv && continue
- newdependency_libs="$deplib $newdependency_libs"
- newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
- ;;
- prog)
- if test "$pass" = conv; then
- deplibs="$deplib $deplibs"
- continue
- fi
- if test "$pass" = scan; then
- deplibs="$deplib $deplibs"
- else
- compile_deplibs="$deplib $compile_deplibs"
- finalize_deplibs="$deplib $finalize_deplibs"
- fi
- newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
- ;;
- *)
- $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
- ;;
- esac # linkmode
- continue
- ;; # -L
- -R*)
- if test "$pass" = link; then
- dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
- # Make sure the xrpath contains only unique directories.
- case "$xrpath " in
- *" $dir "*) ;;
- *) xrpath="$xrpath $dir" ;;
- esac
- fi
- deplibs="$deplib $deplibs"
- continue
- ;;
- *.la) lib="$deplib" ;;
- *.$libext)
- if test "$pass" = conv; then
- deplibs="$deplib $deplibs"
- continue
- fi
- case $linkmode in
- lib)
- valid_a_lib=no
- case $deplibs_check_method in
- match_pattern*)
- set dummy $deplibs_check_method
- match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
- if eval $echo \"$deplib\" 2>/dev/null \
- | $SED 10q \
- | $EGREP "$match_pattern_regex" > /dev/null; then
- valid_a_lib=yes
- fi
- ;;
- pass_all)
- valid_a_lib=yes
- ;;
- esac
- if test "$valid_a_lib" != yes; then
- $echo
- $echo "*** Warning: Trying to link with static lib archive $deplib."
- $echo "*** I have the capability to make that library automatically link in when"
- $echo "*** you link to this library. But I can only do this if you have a"
- $echo "*** shared version of the library, which you do not appear to have"
- $echo "*** because the file extensions .$libext of this argument makes me believe"
- $echo "*** that it is just a static archive that I should not used here."
- else
- $echo
- $echo "*** Warning: Linking the shared library $output against the"
- $echo "*** static library $deplib is not portable!"
- deplibs="$deplib $deplibs"
- fi
- continue
- ;;
- prog)
- if test "$pass" != link; then
- deplibs="$deplib $deplibs"
- else
- compile_deplibs="$deplib $compile_deplibs"
- finalize_deplibs="$deplib $finalize_deplibs"
- fi
- continue
- ;;
- esac # linkmode
- ;; # *.$libext
- *.lo | *.$objext)
- if test "$pass" = conv; then
- deplibs="$deplib $deplibs"
- elif test "$linkmode" = prog; then
- if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
- # If there is no dlopen support or we're linking statically,
- # we need to preload.
- newdlprefiles="$newdlprefiles $deplib"
- compile_deplibs="$deplib $compile_deplibs"
- finalize_deplibs="$deplib $finalize_deplibs"
- else
- newdlfiles="$newdlfiles $deplib"
- fi
- fi
- continue
- ;;
- %DEPLIBS%)
- alldeplibs=yes
- continue
- ;;
- esac # case $deplib
- if test "$found" = yes || test -f "$lib"; then :
- else
- $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
- exit $EXIT_FAILURE
- fi
-
- # Check to see that this really is a libtool archive.
- if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
- else
- $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- exit $EXIT_FAILURE
- fi
-
- ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
- test "X$ladir" = "X$lib" && ladir="."
-
- dlname=
- dlopen=
- dlpreopen=
- libdir=
- library_names=
- old_library=
- # If the library was installed with an old release of libtool,
- # it will not redefine variables installed, or shouldnotlink
- installed=yes
- shouldnotlink=no
- avoidtemprpath=
-
-
- # Read the .la file
- case $lib in
- */* | *\\*) . $lib ;;
- *) . ./$lib ;;
- esac
-
- if test "$linkmode,$pass" = "lib,link" ||
- test "$linkmode,$pass" = "prog,scan" ||
- { test "$linkmode" != prog && test "$linkmode" != lib; }; then
- test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
- test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
- fi
-
- if test "$pass" = conv; then
- # Only check for convenience libraries
- deplibs="$lib $deplibs"
- if test -z "$libdir"; then
- if test -z "$old_library"; then
- $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
- exit $EXIT_FAILURE
- fi
- # It is a libtool convenience library, so add in its objects.
- convenience="$convenience $ladir/$objdir/$old_library"
- old_convenience="$old_convenience $ladir/$objdir/$old_library"
- tmp_libs=
- for deplib in $dependency_libs; do
- deplibs="$deplib $deplibs"
- if test "X$duplicate_deps" = "Xyes" ; then
- case "$tmp_libs " in
- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
- esac
- fi
- tmp_libs="$tmp_libs $deplib"
- done
- elif test "$linkmode" != prog && test "$linkmode" != lib; then
- $echo "$modename: \`$lib' is not a convenience library" 1>&2
- exit $EXIT_FAILURE
- fi
- continue
- fi # $pass = conv
-
-
- # Get the name of the library we link against.
- linklib=
- for l in $old_library $library_names; do
- linklib="$l"
- done
- if test -z "$linklib"; then
- $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
- exit $EXIT_FAILURE
- fi
-
- # This library was specified with -dlopen.
- if test "$pass" = dlopen; then
- if test -z "$libdir"; then
- $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
- exit $EXIT_FAILURE
- fi
- if test -z "$dlname" ||
- test "$dlopen_support" != yes ||
- test "$build_libtool_libs" = no; then
- # If there is no dlname, no dlopen support or we're linking
- # statically, we need to preload. We also need to preload any
- # dependent libraries so libltdl's deplib preloader doesn't
- # bomb out in the load deplibs phase.
- dlprefiles="$dlprefiles $lib $dependency_libs"
- else
- newdlfiles="$newdlfiles $lib"
- fi
- continue
- fi # $pass = dlopen
-
- # We need an absolute path.
- case $ladir in
- [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
- *)
- abs_ladir=`cd "$ladir" && pwd`
- if test -z "$abs_ladir"; then
- $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
- $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
- abs_ladir="$ladir"
- fi
- ;;
- esac
- laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
-
- # Find the relevant object directory and library name.
- if test "X$installed" = Xyes; then
- if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
- $echo "$modename: warning: library \`$lib' was moved." 1>&2
- dir="$ladir"
- absdir="$abs_ladir"
- libdir="$abs_ladir"
- else
- dir="$libdir"
- absdir="$libdir"
- fi
- test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
- else
- if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
- dir="$ladir"
- absdir="$abs_ladir"
- # Remove this search path later
- notinst_path="$notinst_path $abs_ladir"
- else
- dir="$ladir/$objdir"
- absdir="$abs_ladir/$objdir"
- # Remove this search path later
- notinst_path="$notinst_path $abs_ladir"
- fi
- fi # $installed = yes
- name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
-
- # This library was specified with -dlpreopen.
- if test "$pass" = dlpreopen; then
- if test -z "$libdir"; then
- $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
- exit $EXIT_FAILURE
- fi
- # Prefer using a static library (so that no silly _DYNAMIC symbols
- # are required to link).
- if test -n "$old_library"; then
- newdlprefiles="$newdlprefiles $dir/$old_library"
- # Otherwise, use the dlname, so that lt_dlopen finds it.
- elif test -n "$dlname"; then
- newdlprefiles="$newdlprefiles $dir/$dlname"
- else
- newdlprefiles="$newdlprefiles $dir/$linklib"
- fi
- fi # $pass = dlpreopen
-
- if test -z "$libdir"; then
- # Link the convenience library
- if test "$linkmode" = lib; then
- deplibs="$dir/$old_library $deplibs"
- elif test "$linkmode,$pass" = "prog,link"; then
- compile_deplibs="$dir/$old_library $compile_deplibs"
- finalize_deplibs="$dir/$old_library $finalize_deplibs"
- else
- deplibs="$lib $deplibs" # used for prog,scan pass
- fi
- continue
- fi
-
-
- if test "$linkmode" = prog && test "$pass" != link; then
- newlib_search_path="$newlib_search_path $ladir"
- deplibs="$lib $deplibs"
-
- linkalldeplibs=no
- if test "$link_all_deplibs" != no || test -z "$library_names" ||
- test "$build_libtool_libs" = no; then
- linkalldeplibs=yes
- fi
-
- tmp_libs=
- for deplib in $dependency_libs; do
- case $deplib in
- -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
- esac
- # Need to link against all dependency_libs?
- if test "$linkalldeplibs" = yes; then
- deplibs="$deplib $deplibs"
- else
- # Need to hardcode shared library paths
- # or/and link against static libraries
- newdependency_libs="$deplib $newdependency_libs"
- fi
- if test "X$duplicate_deps" = "Xyes" ; then
- case "$tmp_libs " in
- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
- esac
- fi
- tmp_libs="$tmp_libs $deplib"
- done # for deplib
- continue
- fi # $linkmode = prog...
-
- if test "$linkmode,$pass" = "prog,link"; then
- if test -n "$library_names" &&
- { { test "$prefer_static_libs" = no ||
- test "$prefer_static_libs,$installed" = "built,yes"; } ||
- test -z "$old_library"; }; then
- # We need to hardcode the library path
- if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
- # Make sure the rpath contains only unique directories.
- case "$temp_rpath " in
- *" $dir "*) ;;
- *" $absdir "*) ;;
- *) temp_rpath="$temp_rpath $absdir" ;;
- esac
- fi
-
- # Hardcode the library path.
- # Skip directories that are in the system default run-time
- # search path.
- case " $sys_lib_dlsearch_path " in
- *" $absdir "*) ;;
- *)
- case "$compile_rpath " in
- *" $absdir "*) ;;
- *) compile_rpath="$compile_rpath $absdir"
- esac
- ;;
- esac
- case " $sys_lib_dlsearch_path " in
- *" $libdir "*) ;;
- *)
- case "$finalize_rpath " in
- *" $libdir "*) ;;
- *) finalize_rpath="$finalize_rpath $libdir"
- esac
- ;;
- esac
- fi # $linkmode,$pass = prog,link...
-
- if test "$alldeplibs" = yes &&
- { test "$deplibs_check_method" = pass_all ||
- { test "$build_libtool_libs" = yes &&
- test -n "$library_names"; }; }; then
- # We only need to search for static libraries
- continue
- fi
- fi
-
- link_static=no # Whether the deplib will be linked statically
- use_static_libs=$prefer_static_libs
- if test "$use_static_libs" = built && test "$installed" = yes ; then
- use_static_libs=no
- fi
- if test -n "$library_names" &&
- { test "$use_static_libs" = no || test -z "$old_library"; }; then
- if test "$installed" = no; then
- notinst_deplibs="$notinst_deplibs $lib"
- need_relink=yes
- fi
- # This is a shared library
-
- # Warn about portability, can't link against -module's on
- # some systems (darwin)
- if test "$shouldnotlink" = yes && test "$pass" = link ; then
- $echo
- if test "$linkmode" = prog; then
- $echo "*** Warning: Linking the executable $output against the loadable module"
- else
- $echo "*** Warning: Linking the shared library $output against the loadable module"
- fi
- $echo "*** $linklib is not portable!"
- fi
- if test "$linkmode" = lib &&
- test "$hardcode_into_libs" = yes; then
- # Hardcode the library path.
- # Skip directories that are in the system default run-time
- # search path.
- case " $sys_lib_dlsearch_path " in
- *" $absdir "*) ;;
- *)
- case "$compile_rpath " in
- *" $absdir "*) ;;
- *) compile_rpath="$compile_rpath $absdir"
- esac
- ;;
- esac
- case " $sys_lib_dlsearch_path " in
- *" $libdir "*) ;;
- *)
- case "$finalize_rpath " in
- *" $libdir "*) ;;
- *) finalize_rpath="$finalize_rpath $libdir"
- esac
- ;;
- esac
- fi
-
- if test -n "$old_archive_from_expsyms_cmds"; then
- # figure out the soname
- set dummy $library_names
- realname="$2"
- shift; shift
- libname=`eval \\$echo \"$libname_spec\"`
- # use dlname if we got it. it's perfectly good, no?
- if test -n "$dlname"; then
- soname="$dlname"
- elif test -n "$soname_spec"; then
- # bleh windows
- case $host in
- *cygwin* | mingw*)
- major=`expr $current - $age`
- versuffix="-$major"
- ;;
- esac
- eval soname=\"$soname_spec\"
- else
- soname="$realname"
- fi
-
- # Make a new name for the extract_expsyms_cmds to use
- soroot="$soname"
- soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
- newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
-
- # If the library has no export list, then create one now
- if test -f "$output_objdir/$soname-def"; then :
- else
- $show "extracting exported symbol list from \`$soname'"
- save_ifs="$IFS"; IFS='~'
- cmds=$extract_expsyms_cmds
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- $show "$cmd"
- $run eval "$cmd" || exit $?
- done
- IFS="$save_ifs"
- fi
-
- # Create $newlib
- if test -f "$output_objdir/$newlib"; then :; else
- $show "generating import library for \`$soname'"
- save_ifs="$IFS"; IFS='~'
- cmds=$old_archive_from_expsyms_cmds
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- $show "$cmd"
- $run eval "$cmd" || exit $?
- done
- IFS="$save_ifs"
- fi
- # make sure the library variables are pointing to the new library
- dir=$output_objdir
- linklib=$newlib
- fi # test -n "$old_archive_from_expsyms_cmds"
-
- if test "$linkmode" = prog || test "$mode" != relink; then
- add_shlibpath=
- add_dir=
- add=
- lib_linked=yes
- case $hardcode_action in
- immediate | unsupported)
- if test "$hardcode_direct" = no; then
- add="$dir/$linklib"
- case $host in
- *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
- *-*-sysv4*uw2*) add_dir="-L$dir" ;;
- *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
- *-*-unixware7*) add_dir="-L$dir" ;;
- *-*-darwin* )
- # if the lib is a module then we can not link against
- # it, someone is ignoring the new warnings I added
- if /usr/bin/file -L $add 2> /dev/null |
- $EGREP ": [^:]* bundle" >/dev/null ; then
- $echo "** Warning, lib $linklib is a module, not a shared library"
- if test -z "$old_library" ; then
- $echo
- $echo "** And there doesn't seem to be a static archive available"
- $echo "** The link will probably fail, sorry"
- else
- add="$dir/$old_library"
- fi
- fi
- esac
- elif test "$hardcode_minus_L" = no; then
- case $host in
- *-*-sunos*) add_shlibpath="$dir" ;;
- esac
- add_dir="-L$dir"
- add="-l$name"
- elif test "$hardcode_shlibpath_var" = no; then
- add_shlibpath="$dir"
- add="-l$name"
- else
- lib_linked=no
- fi
- ;;
- relink)
- if test "$hardcode_direct" = yes; then
- add="$dir/$linklib"
- elif test "$hardcode_minus_L" = yes; then
- add_dir="-L$dir"
- # Try looking first in the location we're being installed to.
- if test -n "$inst_prefix_dir"; then
- case $libdir in
- [\\/]*)
- add_dir="$add_dir -L$inst_prefix_dir$libdir"
- ;;
- esac
- fi
- add="-l$name"
- elif test "$hardcode_shlibpath_var" = yes; then
- add_shlibpath="$dir"
- add="-l$name"
- else
- lib_linked=no
- fi
- ;;
- *) lib_linked=no ;;
- esac
-
- if test "$lib_linked" != yes; then
- $echo "$modename: configuration error: unsupported hardcode properties"
- exit $EXIT_FAILURE
- fi
-
- if test -n "$add_shlibpath"; then
- case :$compile_shlibpath: in
- *":$add_shlibpath:"*) ;;
- *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
- esac
- fi
- if test "$linkmode" = prog; then
- test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
- test -n "$add" && compile_deplibs="$add $compile_deplibs"
- else
- test -n "$add_dir" && deplibs="$add_dir $deplibs"
- test -n "$add" && deplibs="$add $deplibs"
- if test "$hardcode_direct" != yes && \
- test "$hardcode_minus_L" != yes && \
- test "$hardcode_shlibpath_var" = yes; then
- case :$finalize_shlibpath: in
- *":$libdir:"*) ;;
- *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
- esac
- fi
- fi
- fi
-
- if test "$linkmode" = prog || test "$mode" = relink; then
- add_shlibpath=
- add_dir=
- add=
- # Finalize command for both is simple: just hardcode it.
- if test "$hardcode_direct" = yes; then
- add="$libdir/$linklib"
- elif test "$hardcode_minus_L" = yes; then
- add_dir="-L$libdir"
- add="-l$name"
- elif test "$hardcode_shlibpath_var" = yes; then
- case :$finalize_shlibpath: in
- *":$libdir:"*) ;;
- *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
- esac
- add="-l$name"
- elif test "$hardcode_automatic" = yes; then
- if test -n "$inst_prefix_dir" &&
- test -f "$inst_prefix_dir$libdir/$linklib" ; then
- add="$inst_prefix_dir$libdir/$linklib"
- else
- add="$libdir/$linklib"
- fi
- else
- # We cannot seem to hardcode it, guess we'll fake it.
- add_dir="-L$libdir"
- # Try looking first in the location we're being installed to.
- if test -n "$inst_prefix_dir"; then
- case $libdir in
- [\\/]*)
- add_dir="$add_dir -L$inst_prefix_dir$libdir"
- ;;
- esac
- fi
- add="-l$name"
- fi
-
- if test "$linkmode" = prog; then
- test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
- test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
- else
- test -n "$add_dir" && deplibs="$add_dir $deplibs"
- test -n "$add" && deplibs="$add $deplibs"
- fi
- fi
- elif test "$linkmode" = prog; then
- # Here we assume that one of hardcode_direct or hardcode_minus_L
- # is not unsupported. This is valid on all known static and
- # shared platforms.
- if test "$hardcode_direct" != unsupported; then
- test -n "$old_library" && linklib="$old_library"
- compile_deplibs="$dir/$linklib $compile_deplibs"
- finalize_deplibs="$dir/$linklib $finalize_deplibs"
- else
- compile_deplibs="-l$name -L$dir $compile_deplibs"
- finalize_deplibs="-l$name -L$dir $finalize_deplibs"
- fi
- elif test "$build_libtool_libs" = yes; then
- # Not a shared library
- if test "$deplibs_check_method" != pass_all; then
- # We're trying link a shared library against a static one
- # but the system doesn't support it.
-
- # Just print a warning and add the library to dependency_libs so
- # that the program can be linked against the static library.
- $echo
- $echo "*** Warning: This system can not link to static lib archive $lib."
- $echo "*** I have the capability to make that library automatically link in when"
- $echo "*** you link to this library. But I can only do this if you have a"
- $echo "*** shared version of the library, which you do not appear to have."
- if test "$module" = yes; then
- $echo "*** But as you try to build a module library, libtool will still create "
- $echo "*** a static module, that should work as long as the dlopening application"
- $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
- if test -z "$global_symbol_pipe"; then
- $echo
- $echo "*** However, this would only work if libtool was able to extract symbol"
- $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
- $echo "*** not find such a program. So, this module is probably useless."
- $echo "*** \`nm' from GNU binutils and a full rebuild may help."
- fi
- if test "$build_old_libs" = no; then
- build_libtool_libs=module
- build_old_libs=yes
- else
- build_libtool_libs=no
- fi
- fi
- else
- deplibs="$dir/$old_library $deplibs"
- link_static=yes
- fi
- fi # link shared/static library?
-
- if test "$linkmode" = lib; then
- if test -n "$dependency_libs" &&
- { test "$hardcode_into_libs" != yes ||
- test "$build_old_libs" = yes ||
- test "$link_static" = yes; }; then
- # Extract -R from dependency_libs
- temp_deplibs=
- for libdir in $dependency_libs; do
- case $libdir in
- -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
- case " $xrpath " in
- *" $temp_xrpath "*) ;;
- *) xrpath="$xrpath $temp_xrpath";;
- esac;;
- *) temp_deplibs="$temp_deplibs $libdir";;
- esac
- done
- dependency_libs="$temp_deplibs"
- fi
-
- newlib_search_path="$newlib_search_path $absdir"
- # Link against this library
- test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
- # ... and its dependency_libs
- tmp_libs=
- for deplib in $dependency_libs; do
- newdependency_libs="$deplib $newdependency_libs"
- if test "X$duplicate_deps" = "Xyes" ; then
- case "$tmp_libs " in
- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
- esac
- fi
- tmp_libs="$tmp_libs $deplib"
- done
-
- if test "$link_all_deplibs" != no; then
- # Add the search paths of all dependency libraries
- for deplib in $dependency_libs; do
- case $deplib in
- -L*) path="$deplib" ;;
- *.la)
- dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
- test "X$dir" = "X$deplib" && dir="."
- # We need an absolute path.
- case $dir in
- [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
- *)
- absdir=`cd "$dir" && pwd`
- if test -z "$absdir"; then
- $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
- absdir="$dir"
- fi
- ;;
- esac
- if grep "^installed=no" $deplib > /dev/null; then
- path="$absdir/$objdir"
- else
- eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- if test -z "$libdir"; then
- $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
- exit $EXIT_FAILURE
- fi
- if test "$absdir" != "$libdir"; then
- $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
- fi
- path="$absdir"
- fi
- depdepl=
- case $host in
- *-*-darwin*)
- # we do not want to link against static libs,
- # but need to link against shared
- eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
- if test -n "$deplibrary_names" ; then
- for tmp in $deplibrary_names ; do
- depdepl=$tmp
- done
- if test -f "$path/$depdepl" ; then
- depdepl="$path/$depdepl"
- fi
- # do not add paths which are already there
- case " $newlib_search_path " in
- *" $path "*) ;;
- *) newlib_search_path="$newlib_search_path $path";;
- esac
- fi
- path=""
- ;;
- *)
- path="-L$path"
- ;;
- esac
- ;;
- -l*)
- case $host in
- *-*-darwin*)
- # Again, we only want to link against shared libraries
- eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
- for tmp in $newlib_search_path ; do
- if test -f "$tmp/lib$tmp_libs.dylib" ; then
- eval depdepl="$tmp/lib$tmp_libs.dylib"
- break
- fi
- done
- path=""
- ;;
- *) continue ;;
- esac
- ;;
- *) continue ;;
- esac
- case " $deplibs " in
- *" $path "*) ;;
- *) deplibs="$path $deplibs" ;;
- esac
- case " $deplibs " in
- *" $depdepl "*) ;;
- *) deplibs="$depdepl $deplibs" ;;
- esac
- done
- fi # link_all_deplibs != no
- fi # linkmode = lib
- done # for deplib in $libs
- dependency_libs="$newdependency_libs"
- if test "$pass" = dlpreopen; then
- # Link the dlpreopened libraries before other libraries
- for deplib in $save_deplibs; do
- deplibs="$deplib $deplibs"
- done
- fi
- if test "$pass" != dlopen; then
- if test "$pass" != conv; then
- # Make sure lib_search_path contains only unique directories.
- lib_search_path=
- for dir in $newlib_search_path; do
- case "$lib_search_path " in
- *" $dir "*) ;;
- *) lib_search_path="$lib_search_path $dir" ;;
- esac
- done
- newlib_search_path=
- fi
-
- if test "$linkmode,$pass" != "prog,link"; then
- vars="deplibs"
- else
- vars="compile_deplibs finalize_deplibs"
- fi
- for var in $vars dependency_libs; do
- # Add libraries to $var in reverse order
- eval tmp_libs=\"\$$var\"
- new_libs=
- for deplib in $tmp_libs; do
- # FIXME: Pedantically, this is the right thing to do, so
- # that some nasty dependency loop isn't accidentally
- # broken:
- #new_libs="$deplib $new_libs"
- # Pragmatically, this seems to cause very few problems in
- # practice:
- case $deplib in
- -L*) new_libs="$deplib $new_libs" ;;
- -R*) ;;
- *)
- # And here is the reason: when a library appears more
- # than once as an explicit dependence of a library, or
- # is implicitly linked in more than once by the
- # compiler, it is considered special, and multiple
- # occurrences thereof are not removed. Compare this
- # with having the same library being listed as a
- # dependency of multiple other libraries: in this case,
- # we know (pedantically, we assume) the library does not
- # need to be listed more than once, so we keep only the
- # last copy. This is not always right, but it is rare
- # enough that we require users that really mean to play
- # such unportable linking tricks to link the library
- # using -Wl,-lname, so that libtool does not consider it
- # for duplicate removal.
- case " $specialdeplibs " in
- *" $deplib "*) new_libs="$deplib $new_libs" ;;
- *)
- case " $new_libs " in
- *" $deplib "*) ;;
- *) new_libs="$deplib $new_libs" ;;
- esac
- ;;
- esac
- ;;
- esac
- done
- tmp_libs=
- for deplib in $new_libs; do
- case $deplib in
- -L*)
- case " $tmp_libs " in
- *" $deplib "*) ;;
- *) tmp_libs="$tmp_libs $deplib" ;;
- esac
- ;;
- *) tmp_libs="$tmp_libs $deplib" ;;
- esac
- done
- eval $var=\"$tmp_libs\"
- done # for var
- fi
- # Last step: remove runtime libs from dependency_libs
- # (they stay in deplibs)
- tmp_libs=
- for i in $dependency_libs ; do
- case " $predeps $postdeps $compiler_lib_search_path " in
- *" $i "*)
- i=""
- ;;
- esac
- if test -n "$i" ; then
- tmp_libs="$tmp_libs $i"
- fi
- done
- dependency_libs=$tmp_libs
- done # for pass
- if test "$linkmode" = prog; then
- dlfiles="$newdlfiles"
- dlprefiles="$newdlprefiles"
- fi
-
- case $linkmode in
- oldlib)
- if test -n "$deplibs"; then
- $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
- fi
-
- if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
- $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
- fi
-
- if test -n "$rpath"; then
- $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
- fi
-
- if test -n "$xrpath"; then
- $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
- fi
-
- if test -n "$vinfo"; then
- $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
- fi
-
- if test -n "$release"; then
- $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
- fi
-
- if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
- $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
- fi
-
- # Now set the variables for building old libraries.
- build_libtool_libs=no
- oldlibs="$output"
- objs="$objs$old_deplibs"
- ;;
-
- lib)
- # Make sure we only generate libraries of the form `libNAME.la'.
- case $outputname in
- lib*)
- name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
- eval shared_ext=\"$shrext_cmds\"
- eval libname=\"$libname_spec\"
- ;;
- *)
- if test "$module" = no; then
- $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
- if test "$need_lib_prefix" != no; then
- # Add the "lib" prefix for modules if required
- name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
- eval shared_ext=\"$shrext_cmds\"
- eval libname=\"$libname_spec\"
- else
- libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
- fi
- ;;
- esac
-
- if test -n "$objs"; then
- if test "$deplibs_check_method" != pass_all; then
- $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
- exit $EXIT_FAILURE
- else
- $echo
- $echo "*** Warning: Linking the shared library $output against the non-libtool"
- $echo "*** objects $objs is not portable!"
- libobjs="$libobjs $objs"
- fi
- fi
-
- if test "$dlself" != no; then
- $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
- fi
-
- set dummy $rpath
- if test "$#" -gt 2; then
- $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
- fi
- install_libdir="$2"
-
- oldlibs=
- if test -z "$rpath"; then
- if test "$build_libtool_libs" = yes; then
- # Building a libtool convenience library.
- # Some compilers have problems with a `.al' extension so
- # convenience libraries should have the same extension an
- # archive normally would.
- oldlibs="$output_objdir/$libname.$libext $oldlibs"
- build_libtool_libs=convenience
- build_old_libs=yes
- fi
-
- if test -n "$vinfo"; then
- $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
- fi
-
- if test -n "$release"; then
- $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
- fi
- else
-
- # Parse the version information argument.
- save_ifs="$IFS"; IFS=':'
- set dummy $vinfo 0 0 0
- IFS="$save_ifs"
-
- if test -n "$8"; then
- $echo "$modename: too many parameters to \`-version-info'" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- # convert absolute version numbers to libtool ages
- # this retains compatibility with .la files and attempts
- # to make the code below a bit more comprehensible
-
- case $vinfo_number in
- yes)
- number_major="$2"
- number_minor="$3"
- number_revision="$4"
- #
- # There are really only two kinds -- those that
- # use the current revision as the major version
- # and those that subtract age and use age as
- # a minor version. But, then there is irix
- # which has an extra 1 added just for fun
- #
- case $version_type in
- darwin|linux|osf|windows|none)
- current=`expr $number_major + $number_minor`
- age="$number_minor"
- revision="$number_revision"
- ;;
- freebsd-aout|freebsd-elf|sunos)
- current="$number_major"
- revision="$number_minor"
- age="0"
- ;;
- irix|nonstopux)
- current=`expr $number_major + $number_minor - 1`
- age="$number_minor"
- revision="$number_minor"
- ;;
- esac
- ;;
- no)
- current="$2"
- revision="$3"
- age="$4"
- ;;
- esac
-
- # Check that each of the things are valid numbers.
- case $current in
- 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
- *)
- $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
- $echo "$modename: \`$vinfo' is not valid version information" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
-
- case $revision in
- 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
- *)
- $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
- $echo "$modename: \`$vinfo' is not valid version information" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
-
- case $age in
- 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
- *)
- $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
- $echo "$modename: \`$vinfo' is not valid version information" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
-
- if test "$age" -gt "$current"; then
- $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
- $echo "$modename: \`$vinfo' is not valid version information" 1>&2
- exit $EXIT_FAILURE
- fi
-
- # Calculate the version variables.
- major=
- versuffix=
- verstring=
- case $version_type in
- none) ;;
-
- darwin)
- # Like Linux, but with the current version available in
- # verstring for coding it into the library header
- major=.`expr $current - $age`
- versuffix="$major.$age.$revision"
- # Darwin ld doesn't like 0 for these options...
- minor_current=`expr $current + 1`
- verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
- ;;
-
- freebsd-aout)
- major=".$current"
- versuffix=".$current.$revision";
- ;;
-
- freebsd-elf)
- major=".$current"
- versuffix=".$current";
- ;;
-
- irix | nonstopux)
- major=`expr $current - $age + 1`
-
- case $version_type in
- nonstopux) verstring_prefix=nonstopux ;;
- *) verstring_prefix=sgi ;;
- esac
- verstring="$verstring_prefix$major.$revision"
-
- # Add in all the interfaces that we are compatible with.
- loop=$revision
- while test "$loop" -ne 0; do
- iface=`expr $revision - $loop`
- loop=`expr $loop - 1`
- verstring="$verstring_prefix$major.$iface:$verstring"
- done
-
- # Before this point, $major must not contain `.'.
- major=.$major
- versuffix="$major.$revision"
- ;;
-
- linux)
- major=.`expr $current - $age`
- versuffix="$major.$age.$revision"
- ;;
-
- osf)
- major=.`expr $current - $age`
- versuffix=".$current.$age.$revision"
- verstring="$current.$age.$revision"
-
- # Add in all the interfaces that we are compatible with.
- loop=$age
- while test "$loop" -ne 0; do
- iface=`expr $current - $loop`
- loop=`expr $loop - 1`
- verstring="$verstring:${iface}.0"
- done
-
- # Make executables depend on our current version.
- verstring="$verstring:${current}.0"
- ;;
-
- sunos)
- major=".$current"
- versuffix=".$current.$revision"
- ;;
-
- windows)
- # Use '-' rather than '.', since we only want one
- # extension on DOS 8.3 filesystems.
- major=`expr $current - $age`
- versuffix="-$major"
- ;;
-
- *)
- $echo "$modename: unknown library version type \`$version_type'" 1>&2
- $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
-
- # Clear the version info if we defaulted, and they specified a release.
- if test -z "$vinfo" && test -n "$release"; then
- major=
- case $version_type in
- darwin)
- # we can't check for "0.0" in archive_cmds due to quoting
- # problems, so we reset it completely
- verstring=
- ;;
- *)
- verstring="0.0"
- ;;
- esac
- if test "$need_version" = no; then
- versuffix=
- else
- versuffix=".0.0"
- fi
- fi
-
- # Remove version info from name if versioning should be avoided
- if test "$avoid_version" = yes && test "$need_version" = no; then
- major=
- versuffix=
- verstring=""
- fi
-
- # Check to see if the archive will have undefined symbols.
- if test "$allow_undefined" = yes; then
- if test "$allow_undefined_flag" = unsupported; then
- $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
- build_libtool_libs=no
- build_old_libs=yes
- fi
- else
- # Don't allow undefined symbols.
- allow_undefined_flag="$no_undefined_flag"
- fi
- fi
-
- if test "$mode" != relink; then
- # Remove our outputs, but don't remove object files since they
- # may have been created when compiling PIC objects.
- removelist=
- tempremovelist=`$echo "$output_objdir/*"`
- for p in $tempremovelist; do
- case $p in
- *.$objext)
- ;;
- $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
- if test "X$precious_files_regex" != "X"; then
- if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
- then
- continue
- fi
- fi
- removelist="$removelist $p"
- ;;
- *) ;;
- esac
- done
- if test -n "$removelist"; then
- $show "${rm}r $removelist"
- $run ${rm}r $removelist
- fi
- fi
-
- # Now set the variables for building old libraries.
- if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
- oldlibs="$oldlibs $output_objdir/$libname.$libext"
-
- # Transform .lo files to .o files.
- oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
- fi
-
- # Eliminate all temporary directories.
-# for path in $notinst_path; do
-# lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
-# deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
-# dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
-# done
-
- if test -n "$xrpath"; then
- # If the user specified any rpath flags, then add them.
- temp_xrpath=
- for libdir in $xrpath; do
- temp_xrpath="$temp_xrpath -R$libdir"
- case "$finalize_rpath " in
- *" $libdir "*) ;;
- *) finalize_rpath="$finalize_rpath $libdir" ;;
- esac
- done
- if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
- dependency_libs="$temp_xrpath $dependency_libs"
- fi
- fi
-
- # Make sure dlfiles contains only unique files that won't be dlpreopened
- old_dlfiles="$dlfiles"
- dlfiles=
- for lib in $old_dlfiles; do
- case " $dlprefiles $dlfiles " in
- *" $lib "*) ;;
- *) dlfiles="$dlfiles $lib" ;;
- esac
- done
-
- # Make sure dlprefiles contains only unique files
- old_dlprefiles="$dlprefiles"
- dlprefiles=
- for lib in $old_dlprefiles; do
- case "$dlprefiles " in
- *" $lib "*) ;;
- *) dlprefiles="$dlprefiles $lib" ;;
- esac
- done
-
- if test "$build_libtool_libs" = yes; then
- if test -n "$rpath"; then
- case $host in
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
- # these systems don't actually have a c library (as such)!
- ;;
- *-*-rhapsody* | *-*-darwin1.[012])
- # Rhapsody C library is in the System framework
- deplibs="$deplibs -framework System"
- ;;
- *-*-netbsd*)
- # Don't link with libc until the a.out ld.so is fixed.
- ;;
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
- # Do not include libc due to us having libc/libc_r.
- ;;
- *-*-sco3.2v5* | *-*-sco5v6*)
- # Causes problems with __ctype
- ;;
- *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
- # Compiler inserts libc in the correct place for threads to work
- ;;
- *)
- # Add libc to deplibs on all other systems if necessary.
- if test "$build_libtool_need_lc" = "yes"; then
- deplibs="$deplibs -lc"
- fi
- ;;
- esac
- fi
-
- # Transform deplibs into only deplibs that can be linked in shared.
- name_save=$name
- libname_save=$libname
- release_save=$release
- versuffix_save=$versuffix
- major_save=$major
- # I'm not sure if I'm treating the release correctly. I think
- # release should show up in the -l (ie -lgmp5) so we don't want to
- # add it in twice. Is that correct?
- release=""
- versuffix=""
- major=""
- newdeplibs=
- droppeddeps=no
- case $deplibs_check_method in
- pass_all)
- # Don't check for shared/static. Everything works.
- # This might be a little naive. We might want to check
- # whether the library exists or not. But this is on
- # osf3 & osf4 and I'm not really sure... Just
- # implementing what was already the behavior.
- newdeplibs=$deplibs
- ;;
- test_compile)
- # This code stresses the "libraries are programs" paradigm to its
- # limits. Maybe even breaks it. We compile a program, linking it
- # against the deplibs as a proxy for the library. Then we can check
- # whether they linked in statically or dynamically with ldd.
- $rm conftest.c
- cat > conftest.c <<EOF
- int main() { return 0; }
-EOF
- $rm conftest
- if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
- ldd_output=`ldd conftest`
- for i in $deplibs; do
- name=`expr $i : '-l\(.*\)'`
- # If $name is empty we are operating on a -L argument.
- if test "$name" != "" && test "$name" != "0"; then
- if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
- case " $predeps $postdeps " in
- *" $i "*)
- newdeplibs="$newdeplibs $i"
- i=""
- ;;
- esac
- fi
- if test -n "$i" ; then
- libname=`eval \\$echo \"$libname_spec\"`
- deplib_matches=`eval \\$echo \"$library_names_spec\"`
- set dummy $deplib_matches
- deplib_match=$2
- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
- newdeplibs="$newdeplibs $i"
- else
- droppeddeps=yes
- $echo
- $echo "*** Warning: dynamic linker does not accept needed library $i."
- $echo "*** I have the capability to make that library automatically link in when"
- $echo "*** you link to this library. But I can only do this if you have a"
- $echo "*** shared version of the library, which I believe you do not have"
- $echo "*** because a test_compile did reveal that the linker did not use it for"
- $echo "*** its dynamic dependency list that programs get resolved with at runtime."
- fi
- fi
- else
- newdeplibs="$newdeplibs $i"
- fi
- done
- else
- # Error occurred in the first compile. Let's try to salvage
- # the situation: Compile a separate program for each library.
- for i in $deplibs; do
- name=`expr $i : '-l\(.*\)'`
- # If $name is empty we are operating on a -L argument.
- if test "$name" != "" && test "$name" != "0"; then
- $rm conftest
- if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
- ldd_output=`ldd conftest`
- if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
- case " $predeps $postdeps " in
- *" $i "*)
- newdeplibs="$newdeplibs $i"
- i=""
- ;;
- esac
- fi
- if test -n "$i" ; then
- libname=`eval \\$echo \"$libname_spec\"`
- deplib_matches=`eval \\$echo \"$library_names_spec\"`
- set dummy $deplib_matches
- deplib_match=$2
- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
- newdeplibs="$newdeplibs $i"
- else
- droppeddeps=yes
- $echo
- $echo "*** Warning: dynamic linker does not accept needed library $i."
- $echo "*** I have the capability to make that library automatically link in when"
- $echo "*** you link to this library. But I can only do this if you have a"
- $echo "*** shared version of the library, which you do not appear to have"
- $echo "*** because a test_compile did reveal that the linker did not use this one"
- $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
- fi
- fi
- else
- droppeddeps=yes
- $echo
- $echo "*** Warning! Library $i is needed by this library but I was not able to"
- $echo "*** make it link in! You will probably need to install it or some"
- $echo "*** library that it depends on before this library will be fully"
- $echo "*** functional. Installing it before continuing would be even better."
- fi
- else
- newdeplibs="$newdeplibs $i"
- fi
- done
- fi
- ;;
- file_magic*)
- set dummy $deplibs_check_method
- file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
- for a_deplib in $deplibs; do
- name=`expr $a_deplib : '-l\(.*\)'`
- # If $name is empty we are operating on a -L argument.
- if test "$name" != "" && test "$name" != "0"; then
- if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
- case " $predeps $postdeps " in
- *" $a_deplib "*)
- newdeplibs="$newdeplibs $a_deplib"
- a_deplib=""
- ;;
- esac
- fi
- if test -n "$a_deplib" ; then
- libname=`eval \\$echo \"$libname_spec\"`
- for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
- potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
- for potent_lib in $potential_libs; do
- # Follow soft links.
- if ls -lLd "$potent_lib" 2>/dev/null \
- | grep " -> " >/dev/null; then
- continue
- fi
- # The statement above tries to avoid entering an
- # endless loop below, in case of cyclic links.
- # We might still enter an endless loop, since a link
- # loop can be closed while we follow links,
- # but so what?
- potlib="$potent_lib"
- while test -h "$potlib" 2>/dev/null; do
- potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
- case $potliblink in
- [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
- *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
- esac
- done
- if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
- | ${SED} 10q \
- | $EGREP "$file_magic_regex" > /dev/null; then
- newdeplibs="$newdeplibs $a_deplib"
- a_deplib=""
- break 2
- fi
- done
- done
- fi
- if test -n "$a_deplib" ; then
- droppeddeps=yes
- $echo
- $echo "*** Warning: linker path does not have real file for library $a_deplib."
- $echo "*** I have the capability to make that library automatically link in when"
- $echo "*** you link to this library. But I can only do this if you have a"
- $echo "*** shared version of the library, which you do not appear to have"
- $echo "*** because I did check the linker path looking for a file starting"
- if test -z "$potlib" ; then
- $echo "*** with $libname but no candidates were found. (...for file magic test)"
- else
- $echo "*** with $libname and none of the candidates passed a file format test"
- $echo "*** using a file magic. Last file checked: $potlib"
- fi
- fi
- else
- # Add a -L argument.
- newdeplibs="$newdeplibs $a_deplib"
- fi
- done # Gone through all deplibs.
- ;;
- match_pattern*)
- set dummy $deplibs_check_method
- match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
- for a_deplib in $deplibs; do
- name=`expr $a_deplib : '-l\(.*\)'`
- # If $name is empty we are operating on a -L argument.
- if test -n "$name" && test "$name" != "0"; then
- if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
- case " $predeps $postdeps " in
- *" $a_deplib "*)
- newdeplibs="$newdeplibs $a_deplib"
- a_deplib=""
- ;;
- esac
- fi
- if test -n "$a_deplib" ; then
- libname=`eval \\$echo \"$libname_spec\"`
- for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
- potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
- for potent_lib in $potential_libs; do
- potlib="$potent_lib" # see symlink-check above in file_magic test
- if eval $echo \"$potent_lib\" 2>/dev/null \
- | ${SED} 10q \
- | $EGREP "$match_pattern_regex" > /dev/null; then
- newdeplibs="$newdeplibs $a_deplib"
- a_deplib=""
- break 2
- fi
- done
- done
- fi
- if test -n "$a_deplib" ; then
- droppeddeps=yes
- $echo
- $echo "*** Warning: linker path does not have real file for library $a_deplib."
- $echo "*** I have the capability to make that library automatically link in when"
- $echo "*** you link to this library. But I can only do this if you have a"
- $echo "*** shared version of the library, which you do not appear to have"
- $echo "*** because I did check the linker path looking for a file starting"
- if test -z "$potlib" ; then
- $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
- else
- $echo "*** with $libname and none of the candidates passed a file format test"
- $echo "*** using a regex pattern. Last file checked: $potlib"
- fi
- fi
- else
- # Add a -L argument.
- newdeplibs="$newdeplibs $a_deplib"
- fi
- done # Gone through all deplibs.
- ;;
- none | unknown | *)
- newdeplibs=""
- tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
- -e 's/ -[LR][^ ]*//g'`
- if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
- for i in $predeps $postdeps ; do
- # can't use Xsed below, because $i might contain '/'
- tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
- done
- fi
- if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
- | grep . >/dev/null; then
- $echo
- if test "X$deplibs_check_method" = "Xnone"; then
- $echo "*** Warning: inter-library dependencies are not supported in this platform."
- else
- $echo "*** Warning: inter-library dependencies are not known to be supported."
- fi
- $echo "*** All declared inter-library dependencies are being dropped."
- droppeddeps=yes
- fi
- ;;
- esac
- versuffix=$versuffix_save
- major=$major_save
- release=$release_save
- libname=$libname_save
- name=$name_save
-
- case $host in
- *-*-rhapsody* | *-*-darwin1.[012])
- # On Rhapsody replace the C library is the System framework
- newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
- ;;
- esac
-
- if test "$droppeddeps" = yes; then
- if test "$module" = yes; then
- $echo
- $echo "*** Warning: libtool could not satisfy all declared inter-library"
- $echo "*** dependencies of module $libname. Therefore, libtool will create"
- $echo "*** a static module, that should work as long as the dlopening"
- $echo "*** application is linked with the -dlopen flag."
- if test -z "$global_symbol_pipe"; then
- $echo
- $echo "*** However, this would only work if libtool was able to extract symbol"
- $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
- $echo "*** not find such a program. So, this module is probably useless."
- $echo "*** \`nm' from GNU binutils and a full rebuild may help."
- fi
- if test "$build_old_libs" = no; then
- oldlibs="$output_objdir/$libname.$libext"
- build_libtool_libs=module
- build_old_libs=yes
- else
- build_libtool_libs=no
- fi
- else
- $echo "*** The inter-library dependencies that have been dropped here will be"
- $echo "*** automatically added whenever a program is linked with this library"
- $echo "*** or is declared to -dlopen it."
-
- if test "$allow_undefined" = no; then
- $echo
- $echo "*** Since this library must not contain undefined symbols,"
- $echo "*** because either the platform does not support them or"
- $echo "*** it was explicitly requested with -no-undefined,"
- $echo "*** libtool will only create a static version of it."
- if test "$build_old_libs" = no; then
- oldlibs="$output_objdir/$libname.$libext"
- build_libtool_libs=module
- build_old_libs=yes
- else
- build_libtool_libs=no
- fi
- fi
- fi
- fi
- # Done checking deplibs!
- deplibs=$newdeplibs
- fi
-
-
- # move library search paths that coincide with paths to not yet
- # installed libraries to the beginning of the library search list
- new_libs=
- for path in $notinst_path; do
- case " $new_libs " in
- *" -L$path/$objdir "*) ;;
- *)
- case " $deplibs " in
- *" -L$path/$objdir "*)
- new_libs="$new_libs -L$path/$objdir" ;;
- esac
- ;;
- esac
- done
- for deplib in $deplibs; do
- case $deplib in
- -L*)
- case " $new_libs " in
- *" $deplib "*) ;;
- *) new_libs="$new_libs $deplib" ;;
- esac
- ;;
- *) new_libs="$new_libs $deplib" ;;
- esac
- done
- deplibs="$new_libs"
-
-
- # All the library-specific variables (install_libdir is set above).
- library_names=
- old_library=
- dlname=
-
- # Test again, we may have decided not to build it any more
- if test "$build_libtool_libs" = yes; then
- if test "$hardcode_into_libs" = yes; then
- # Hardcode the library paths
- hardcode_libdirs=
- dep_rpath=
- rpath="$finalize_rpath"
- test "$mode" != relink && rpath="$compile_rpath$rpath"
- for libdir in $rpath; do
- if test -n "$hardcode_libdir_flag_spec"; then
- if test -n "$hardcode_libdir_separator"; then
- if test -z "$hardcode_libdirs"; then
- hardcode_libdirs="$libdir"
- else
- # Just accumulate the unique libdirs.
- case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
- *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
- ;;
- *)
- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
- ;;
- esac
- fi
- else
- eval flag=\"$hardcode_libdir_flag_spec\"
- dep_rpath="$dep_rpath $flag"
- fi
- elif test -n "$runpath_var"; then
- case "$perm_rpath " in
- *" $libdir "*) ;;
- *) perm_rpath="$perm_rpath $libdir" ;;
- esac
- fi
- done
- # Substitute the hardcoded libdirs into the rpath.
- if test -n "$hardcode_libdir_separator" &&
- test -n "$hardcode_libdirs"; then
- libdir="$hardcode_libdirs"
- if test -n "$hardcode_libdir_flag_spec_ld"; then
- eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
- else
- eval dep_rpath=\"$hardcode_libdir_flag_spec\"
- fi
- fi
- if test -n "$runpath_var" && test -n "$perm_rpath"; then
- # We should set the runpath_var.
- rpath=
- for dir in $perm_rpath; do
- rpath="$rpath$dir:"
- done
- eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
- fi
- test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
- fi
-
- shlibpath="$finalize_shlibpath"
- test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
- if test -n "$shlibpath"; then
- eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
- fi
-
- # Get the real and link names of the library.
- eval shared_ext=\"$shrext_cmds\"
- eval library_names=\"$library_names_spec\"
- set dummy $library_names
- realname="$2"
- shift; shift
-
- if test -n "$soname_spec"; then
- eval soname=\"$soname_spec\"
- else
- soname="$realname"
- fi
- if test -z "$dlname"; then
- dlname=$soname
- fi
-
- lib="$output_objdir/$realname"
- linknames=
- for link
- do
- linknames="$linknames $link"
- done
-
- # Use standard objects if they are pic
- test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
-
- # Prepare the list of exported symbols
- if test -z "$export_symbols"; then
- if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
- $show "generating symbol list for \`$libname.la'"
- export_symbols="$output_objdir/$libname.exp"
- $run $rm $export_symbols
- cmds=$export_symbols_cmds
- save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- if len=`expr "X$cmd" : ".*"` &&
- test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
- $show "$cmd"
- $run eval "$cmd" || exit $?
- skipped_export=false
- else
- # The command line is too long to execute in one step.
- $show "using reloadable object file for export list..."
- skipped_export=:
- # Break out early, otherwise skipped_export may be
- # set to false by a later but shorter cmd.
- break
- fi
- done
- IFS="$save_ifs"
- if test -n "$export_symbols_regex"; then
- $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
- $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
- $show "$mv \"${export_symbols}T\" \"$export_symbols\""
- $run eval '$mv "${export_symbols}T" "$export_symbols"'
- fi
- fi
- fi
-
- if test -n "$export_symbols" && test -n "$include_expsyms"; then
- $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
- fi
-
- tmp_deplibs=
- for test_deplib in $deplibs; do
- case " $convenience " in
- *" $test_deplib "*) ;;
- *)
- tmp_deplibs="$tmp_deplibs $test_deplib"
- ;;
- esac
- done
- deplibs="$tmp_deplibs"
-
- if test -n "$convenience"; then
- if test -n "$whole_archive_flag_spec"; then
- save_libobjs=$libobjs
- eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
- else
- gentop="$output_objdir/${outputname}x"
- generated="$generated $gentop"
-
- func_extract_archives $gentop $convenience
- libobjs="$libobjs $func_extract_archives_result"
- fi
- fi
-
- if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
- eval flag=\"$thread_safe_flag_spec\"
- linker_flags="$linker_flags $flag"
- fi
-
- # Make a backup of the uninstalled library when relinking
- if test "$mode" = relink; then
- $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
- fi
-
- # Do each of the archive commands.
- if test "$module" = yes && test -n "$module_cmds" ; then
- if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
- eval test_cmds=\"$module_expsym_cmds\"
- cmds=$module_expsym_cmds
- else
- eval test_cmds=\"$module_cmds\"
- cmds=$module_cmds
- fi
- else
- if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
- eval test_cmds=\"$archive_expsym_cmds\"
- cmds=$archive_expsym_cmds
- else
- eval test_cmds=\"$archive_cmds\"
- cmds=$archive_cmds
- fi
- fi
-
- if test "X$skipped_export" != "X:" &&
- len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
- test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
- :
- else
- # The command line is too long to link in one step, link piecewise.
- $echo "creating reloadable object files..."
-
- # Save the value of $output and $libobjs because we want to
- # use them later. If we have whole_archive_flag_spec, we
- # want to use save_libobjs as it was before
- # whole_archive_flag_spec was expanded, because we can't
- # assume the linker understands whole_archive_flag_spec.
- # This may have to be revisited, in case too many
- # convenience libraries get linked in and end up exceeding
- # the spec.
- if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
- save_libobjs=$libobjs
- fi
- save_output=$output
- output_la=`$echo "X$output" | $Xsed -e "$basename"`
-
- # Clear the reloadable object creation command queue and
- # initialize k to one.
- test_cmds=
- concat_cmds=
- objlist=
- delfiles=
- last_robj=
- k=1
- output=$output_objdir/$output_la-${k}.$objext
- # Loop over the list of objects to be linked.
- for obj in $save_libobjs
- do
- eval test_cmds=\"$reload_cmds $objlist $last_robj\"
- if test "X$objlist" = X ||
- { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
- test "$len" -le "$max_cmd_len"; }; then
- objlist="$objlist $obj"
- else
- # The command $test_cmds is almost too long, add a
- # command to the queue.
- if test "$k" -eq 1 ; then
- # The first file doesn't have a previous command to add.
- eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
- else
- # All subsequent reloadable object files will link in
- # the last one created.
- eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
- fi
- last_robj=$output_objdir/$output_la-${k}.$objext
- k=`expr $k + 1`
- output=$output_objdir/$output_la-${k}.$objext
- objlist=$obj
- len=1
- fi
- done
- # Handle the remaining objects by creating one last
- # reloadable object file. All subsequent reloadable object
- # files will link in the last one created.
- test -z "$concat_cmds" || concat_cmds=$concat_cmds~
- eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
-
- if ${skipped_export-false}; then
- $show "generating symbol list for \`$libname.la'"
- export_symbols="$output_objdir/$libname.exp"
- $run $rm $export_symbols
- libobjs=$output
- # Append the command to create the export file.
- eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
- fi
-
- # Set up a command to remove the reloadable object files
- # after they are used.
- i=0
- while test "$i" -lt "$k"
- do
- i=`expr $i + 1`
- delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
- done
-
- $echo "creating a temporary reloadable object file: $output"
-
- # Loop through the commands generated above and execute them.
- save_ifs="$IFS"; IFS='~'
- for cmd in $concat_cmds; do
- IFS="$save_ifs"
- $show "$cmd"
- $run eval "$cmd" || exit $?
- done
- IFS="$save_ifs"
-
- libobjs=$output
- # Restore the value of output.
- output=$save_output
-
- if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
- eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
- fi
- # Expand the library linking commands again to reset the
- # value of $libobjs for piecewise linking.
-
- # Do each of the archive commands.
- if test "$module" = yes && test -n "$module_cmds" ; then
- if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
- cmds=$module_expsym_cmds
- else
- cmds=$module_cmds
- fi
- else
- if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
- cmds=$archive_expsym_cmds
- else
- cmds=$archive_cmds
- fi
- fi
-
- # Append the command to remove the reloadable object files
- # to the just-reset $cmds.
- eval cmds=\"\$cmds~\$rm $delfiles\"
- fi
- save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- $show "$cmd"
- $run eval "$cmd" || {
- lt_exit=$?
-
- # Restore the uninstalled library and exit
- if test "$mode" = relink; then
- $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
- fi
-
- exit $lt_exit
- }
- done
- IFS="$save_ifs"
-
- # Restore the uninstalled library and exit
- if test "$mode" = relink; then
- $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
-
- if test -n "$convenience"; then
- if test -z "$whole_archive_flag_spec"; then
- $show "${rm}r $gentop"
- $run ${rm}r "$gentop"
- fi
- fi
-
- exit $EXIT_SUCCESS
- fi
-
- # Create links to the real library.
- for linkname in $linknames; do
- if test "$realname" != "$linkname"; then
- $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
- $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
- fi
- done
-
- # If -module or -export-dynamic was specified, set the dlname.
- if test "$module" = yes || test "$export_dynamic" = yes; then
- # On all known operating systems, these are identical.
- dlname="$soname"
- fi
- fi
- ;;
-
- obj)
- if test -n "$deplibs"; then
- $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
- fi
-
- if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
- $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
- fi
-
- if test -n "$rpath"; then
- $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
- fi
-
- if test -n "$xrpath"; then
- $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
- fi
-
- if test -n "$vinfo"; then
- $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
- fi
-
- if test -n "$release"; then
- $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
- fi
-
- case $output in
- *.lo)
- if test -n "$objs$old_deplibs"; then
- $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
- exit $EXIT_FAILURE
- fi
- libobj="$output"
- obj=`$echo "X$output" | $Xsed -e "$lo2o"`
- ;;
- *)
- libobj=
- obj="$output"
- ;;
- esac
-
- # Delete the old objects.
- $run $rm $obj $libobj
-
- # Objects from convenience libraries. This assumes
- # single-version convenience libraries. Whenever we create
- # different ones for PIC/non-PIC, this we'll have to duplicate
- # the extraction.
- reload_conv_objs=
- gentop=
- # reload_cmds runs $LD directly, so let us get rid of
- # -Wl from whole_archive_flag_spec and hope we can get by with
- # turning comma into space..
- wl=
-
- if test -n "$convenience"; then
- if test -n "$whole_archive_flag_spec"; then
- eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
- reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
- else
- gentop="$output_objdir/${obj}x"
- generated="$generated $gentop"
-
- func_extract_archives $gentop $convenience
- reload_conv_objs="$reload_objs $func_extract_archives_result"
- fi
- fi
-
- # Create the old-style object.
- reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
-
- output="$obj"
- cmds=$reload_cmds
- save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- $show "$cmd"
- $run eval "$cmd" || exit $?
- done
- IFS="$save_ifs"
-
- # Exit if we aren't doing a library object file.
- if test -z "$libobj"; then
- if test -n "$gentop"; then
- $show "${rm}r $gentop"
- $run ${rm}r $gentop
- fi
-
- exit $EXIT_SUCCESS
- fi
-
- if test "$build_libtool_libs" != yes; then
- if test -n "$gentop"; then
- $show "${rm}r $gentop"
- $run ${rm}r $gentop
- fi
-
- # Create an invalid libtool object if no PIC, so that we don't
- # accidentally link it into a program.
- # $show "echo timestamp > $libobj"
- # $run eval "echo timestamp > $libobj" || exit $?
- exit $EXIT_SUCCESS
- fi
-
- if test -n "$pic_flag" || test "$pic_mode" != default; then
- # Only do commands if we really have different PIC objects.
- reload_objs="$libobjs $reload_conv_objs"
- output="$libobj"
- cmds=$reload_cmds
- save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- $show "$cmd"
- $run eval "$cmd" || exit $?
- done
- IFS="$save_ifs"
- fi
-
- if test -n "$gentop"; then
- $show "${rm}r $gentop"
- $run ${rm}r $gentop
- fi
-
- exit $EXIT_SUCCESS
- ;;
-
- prog)
- case $host in
- *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
- esac
- if test -n "$vinfo"; then
- $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
- fi
-
- if test -n "$release"; then
- $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
- fi
-
- if test "$preload" = yes; then
- if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
- test "$dlopen_self_static" = unknown; then
- $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
- fi
- fi
-
- case $host in
- *-*-rhapsody* | *-*-darwin1.[012])
- # On Rhapsody replace the C library is the System framework
- compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
- finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
- ;;
- esac
-
- case $host in
- *darwin*)
- # Don't allow lazy linking, it breaks C++ global constructors
- if test "$tagname" = CXX ; then
- compile_command="$compile_command ${wl}-bind_at_load"
- finalize_command="$finalize_command ${wl}-bind_at_load"
- fi
- ;;
- esac
-
-
- # move library search paths that coincide with paths to not yet
- # installed libraries to the beginning of the library search list
- new_libs=
- for path in $notinst_path; do
- case " $new_libs " in
- *" -L$path/$objdir "*) ;;
- *)
- case " $compile_deplibs " in
- *" -L$path/$objdir "*)
- new_libs="$new_libs -L$path/$objdir" ;;
- esac
- ;;
- esac
- done
- for deplib in $compile_deplibs; do
- case $deplib in
- -L*)
- case " $new_libs " in
- *" $deplib "*) ;;
- *) new_libs="$new_libs $deplib" ;;
- esac
- ;;
- *) new_libs="$new_libs $deplib" ;;
- esac
- done
- compile_deplibs="$new_libs"
-
-
- compile_command="$compile_command $compile_deplibs"
- finalize_command="$finalize_command $finalize_deplibs"
-
- if test -n "$rpath$xrpath"; then
- # If the user specified any rpath flags, then add them.
- for libdir in $rpath $xrpath; do
- # This is the magic to use -rpath.
- case "$finalize_rpath " in
- *" $libdir "*) ;;
- *) finalize_rpath="$finalize_rpath $libdir" ;;
- esac
- done
- fi
-
- # Now hardcode the library paths
- rpath=
- hardcode_libdirs=
- for libdir in $compile_rpath $finalize_rpath; do
- if test -n "$hardcode_libdir_flag_spec"; then
- if test -n "$hardcode_libdir_separator"; then
- if test -z "$hardcode_libdirs"; then
- hardcode_libdirs="$libdir"
- else
- # Just accumulate the unique libdirs.
- case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
- *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
- ;;
- *)
- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
- ;;
- esac
- fi
- else
- eval flag=\"$hardcode_libdir_flag_spec\"
- rpath="$rpath $flag"
- fi
- elif test -n "$runpath_var"; then
- case "$perm_rpath " in
- *" $libdir "*) ;;
- *) perm_rpath="$perm_rpath $libdir" ;;
- esac
- fi
- case $host in
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
- testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
- case :$dllsearchpath: in
- *":$libdir:"*) ;;
- *) dllsearchpath="$dllsearchpath:$libdir";;
- esac
- case :$dllsearchpath: in
- *":$testbindir:"*) ;;
- *) dllsearchpath="$dllsearchpath:$testbindir";;
- esac
- ;;
- esac
- done
- # Substitute the hardcoded libdirs into the rpath.
- if test -n "$hardcode_libdir_separator" &&
- test -n "$hardcode_libdirs"; then
- libdir="$hardcode_libdirs"
- eval rpath=\" $hardcode_libdir_flag_spec\"
- fi
- compile_rpath="$rpath"
-
- rpath=
- hardcode_libdirs=
- for libdir in $finalize_rpath; do
- if test -n "$hardcode_libdir_flag_spec"; then
- if test -n "$hardcode_libdir_separator"; then
- if test -z "$hardcode_libdirs"; then
- hardcode_libdirs="$libdir"
- else
- # Just accumulate the unique libdirs.
- case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
- *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
- ;;
- *)
- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
- ;;
- esac
- fi
- else
- eval flag=\"$hardcode_libdir_flag_spec\"
- rpath="$rpath $flag"
- fi
- elif test -n "$runpath_var"; then
- case "$finalize_perm_rpath " in
- *" $libdir "*) ;;
- *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
- esac
- fi
- done
- # Substitute the hardcoded libdirs into the rpath.
- if test -n "$hardcode_libdir_separator" &&
- test -n "$hardcode_libdirs"; then
- libdir="$hardcode_libdirs"
- eval rpath=\" $hardcode_libdir_flag_spec\"
- fi
- finalize_rpath="$rpath"
-
- if test -n "$libobjs" && test "$build_old_libs" = yes; then
- # Transform all the library objects into standard objects.
- compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
- finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
- fi
-
- dlsyms=
- if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
- if test -n "$NM" && test -n "$global_symbol_pipe"; then
- dlsyms="${outputname}S.c"
- else
- $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
- fi
- fi
-
- if test -n "$dlsyms"; then
- case $dlsyms in
- "") ;;
- *.c)
- # Discover the nlist of each of the dlfiles.
- nlist="$output_objdir/${outputname}.nm"
-
- $show "$rm $nlist ${nlist}S ${nlist}T"
- $run $rm "$nlist" "${nlist}S" "${nlist}T"
-
- # Parse the name list into a source file.
- $show "creating $output_objdir/$dlsyms"
-
- test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
-/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
-/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
-
-#ifdef __cplusplus
-extern \"C\" {
-#endif
-
-/* Prevent the only kind of declaration conflicts we can make. */
-#define lt_preloaded_symbols some_other_symbol
-
-/* External symbol declarations for the compiler. */\
-"
-
- if test "$dlself" = yes; then
- $show "generating symbol list for \`$output'"
-
- test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
-
- # Add our own program objects to the symbol list.
- progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
- for arg in $progfiles; do
- $show "extracting global C symbols from \`$arg'"
- $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
- done
-
- if test -n "$exclude_expsyms"; then
- $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
- $run eval '$mv "$nlist"T "$nlist"'
- fi
-
- if test -n "$export_symbols_regex"; then
- $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
- $run eval '$mv "$nlist"T "$nlist"'
- fi
-
- # Prepare the list of exported symbols
- if test -z "$export_symbols"; then
- export_symbols="$output_objdir/$outputname.exp"
- $run $rm $export_symbols
- $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
- case $host in
- *cygwin* | *mingw* )
- $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
- $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
- ;;
- esac
- else
- $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
- $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
- $run eval 'mv "$nlist"T "$nlist"'
- case $host in
- *cygwin* | *mingw* )
- $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
- $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
- ;;
- esac
- fi
- fi
-
- for arg in $dlprefiles; do
- $show "extracting global C symbols from \`$arg'"
- name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
- $run eval '$echo ": $name " >> "$nlist"'
- $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
- done
-
- if test -z "$run"; then
- # Make sure we have at least an empty file.
- test -f "$nlist" || : > "$nlist"
-
- if test -n "$exclude_expsyms"; then
- $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
- $mv "$nlist"T "$nlist"
- fi
-
- # Try sorting and uniquifying the output.
- if grep -v "^: " < "$nlist" |
- if sort -k 3 </dev/null >/dev/null 2>&1; then
- sort -k 3
- else
- sort +2
- fi |
- uniq > "$nlist"S; then
- :
- else
- grep -v "^: " < "$nlist" > "$nlist"S
- fi
-
- if test -f "$nlist"S; then
- eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
- else
- $echo '/* NONE */' >> "$output_objdir/$dlsyms"
- fi
-
- $echo >> "$output_objdir/$dlsyms" "\
-
-#undef lt_preloaded_symbols
-
-#if defined (__STDC__) && __STDC__
-# define lt_ptr void *
-#else
-# define lt_ptr char *
-# define const
-#endif
-
-/* The mapping between symbol names and symbols. */
-"
-
- case $host in
- *cygwin* | *mingw* )
- $echo >> "$output_objdir/$dlsyms" "\
-/* DATA imports from DLLs on WIN32 can't be const, because
- runtime relocations are performed -- see ld's documentation
- on pseudo-relocs */
-struct {
-"
- ;;
- * )
- $echo >> "$output_objdir/$dlsyms" "\
-const struct {
-"
- ;;
- esac
-
-
- $echo >> "$output_objdir/$dlsyms" "\
- const char *name;
- lt_ptr address;
-}
-lt_preloaded_symbols[] =
-{\
-"
-
- eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
-
- $echo >> "$output_objdir/$dlsyms" "\
- {0, (lt_ptr) 0}
-};
-
-/* This works around a problem in FreeBSD linker */
-#ifdef FREEBSD_WORKAROUND
-static const void *lt_preloaded_setup() {
- return lt_preloaded_symbols;
-}
-#endif
-
-#ifdef __cplusplus
-}
-#endif\
-"
- fi
-
- pic_flag_for_symtable=
- case $host in
- # compiling the symbol table file with pic_flag works around
- # a FreeBSD bug that causes programs to crash when -lm is
- # linked before any other PIC object. But we must not use
- # pic_flag when linking with -static. The problem exists in
- # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
- *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
- case "$compile_command " in
- *" -static "*) ;;
- *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
- esac;;
- *-*-hpux*)
- case "$compile_command " in
- *" -static "*) ;;
- *) pic_flag_for_symtable=" $pic_flag";;
- esac
- esac
-
- # Now compile the dynamic symbol file.
- $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
- $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
-
- # Clean up the generated files.
- $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
- $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
-
- # Transform the symbol file into the correct name.
- case $host in
- *cygwin* | *mingw* )
- if test -f "$output_objdir/${outputname}.def" ; then
- compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
- finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
- else
- compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
- finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
- fi
- ;;
- * )
- compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
- finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
- ;;
- esac
- ;;
- *)
- $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
- else
- # We keep going just in case the user didn't refer to
- # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
- # really was required.
-
- # Nullify the symbol file.
- compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
- finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
- fi
-
- if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
- # Replace the output file specification.
- compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
- link_command="$compile_command$compile_rpath"
-
- # We have no uninstalled library dependencies, so finalize right now.
- $show "$link_command"
- $run eval "$link_command"
- exit_status=$?
-
- # Delete the generated files.
- if test -n "$dlsyms"; then
- $show "$rm $output_objdir/${outputname}S.${objext}"
- $run $rm "$output_objdir/${outputname}S.${objext}"
- fi
-
- exit $exit_status
- fi
-
- if test -n "$shlibpath_var"; then
- # We should set the shlibpath_var
- rpath=
- for dir in $temp_rpath; do
- case $dir in
- [\\/]* | [A-Za-z]:[\\/]*)
- # Absolute path.
- rpath="$rpath$dir:"
- ;;
- *)
- # Relative path: add a thisdir entry.
- rpath="$rpath\$thisdir/$dir:"
- ;;
- esac
- done
- temp_rpath="$rpath"
- fi
-
- if test -n "$compile_shlibpath$finalize_shlibpath"; then
- compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
- fi
- if test -n "$finalize_shlibpath"; then
- finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
- fi
-
- compile_var=
- finalize_var=
- if test -n "$runpath_var"; then
- if test -n "$perm_rpath"; then
- # We should set the runpath_var.
- rpath=
- for dir in $perm_rpath; do
- rpath="$rpath$dir:"
- done
- compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
- fi
- if test -n "$finalize_perm_rpath"; then
- # We should set the runpath_var.
- rpath=
- for dir in $finalize_perm_rpath; do
- rpath="$rpath$dir:"
- done
- finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
- fi
- fi
-
- if test "$no_install" = yes; then
- # We don't need to create a wrapper script.
- link_command="$compile_var$compile_command$compile_rpath"
- # Replace the output file specification.
- link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
- # Delete the old output file.
- $run $rm $output
- # Link the executable and exit
- $show "$link_command"
- $run eval "$link_command" || exit $?
- exit $EXIT_SUCCESS
- fi
-
- if test "$hardcode_action" = relink; then
- # Fast installation is not supported
- link_command="$compile_var$compile_command$compile_rpath"
- relink_command="$finalize_var$finalize_command$finalize_rpath"
-
- $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
- $echo "$modename: \`$output' will be relinked during installation" 1>&2
- else
- if test "$fast_install" != no; then
- link_command="$finalize_var$compile_command$finalize_rpath"
- if test "$fast_install" = yes; then
- relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
- else
- # fast_install is set to needless
- relink_command=
- fi
- else
- link_command="$compile_var$compile_command$compile_rpath"
- relink_command="$finalize_var$finalize_command$finalize_rpath"
- fi
- fi
-
- # Replace the output file specification.
- link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
-
- # Delete the old output files.
- $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
-
- $show "$link_command"
- $run eval "$link_command" || exit $?
-
- # Now create the wrapper script.
- $show "creating $output"
-
- # Quote the relink command for shipping.
- if test -n "$relink_command"; then
- # Preserve any variables that may affect compiler behavior
- for var in $variables_saved_for_relink; do
- if eval test -z \"\${$var+set}\"; then
- relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
- elif eval var_value=\$$var; test -z "$var_value"; then
- relink_command="$var=; export $var; $relink_command"
- else
- var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
- relink_command="$var=\"$var_value\"; export $var; $relink_command"
- fi
- done
- relink_command="(cd `pwd`; $relink_command)"
- relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
- fi
-
- # Quote $echo for shipping.
- if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
- case $progpath in
- [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
- *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
- esac
- qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
- else
- qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
- fi
-
- # Only actually do things if our run command is non-null.
- if test -z "$run"; then
- # win32 will think the script is a binary if it has
- # a .exe suffix, so we strip it off here.
- case $output in
- *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
- esac
- # test for cygwin because mv fails w/o .exe extensions
- case $host in
- *cygwin*)
- exeext=.exe
- outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
- *) exeext= ;;
- esac
- case $host in
- *cygwin* | *mingw* )
- output_name=`basename $output`
- output_path=`dirname $output`
- cwrappersource="$output_path/$objdir/lt-$output_name.c"
- cwrapper="$output_path/$output_name.exe"
- $rm $cwrappersource $cwrapper
- trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
-
- cat > $cwrappersource <<EOF
-
-/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
- Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
-
- The $output program cannot be directly executed until all the libtool
- libraries that it depends on are installed.
-
- This wrapper executable should never be moved out of the build directory.
- If it is, it will not operate correctly.
-
- Currently, it simply execs the wrapper *script* "/bin/sh $output",
- but could eventually absorb all of the scripts functionality and
- exec $objdir/$outputname directly.
-*/
-EOF
- cat >> $cwrappersource<<"EOF"
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <malloc.h>
-#include <stdarg.h>
-#include <assert.h>
-#include <string.h>
-#include <ctype.h>
-#include <sys/stat.h>
-
-#if defined(PATH_MAX)
-# define LT_PATHMAX PATH_MAX
-#elif defined(MAXPATHLEN)
-# define LT_PATHMAX MAXPATHLEN
-#else
-# define LT_PATHMAX 1024
-#endif
-
-#ifndef DIR_SEPARATOR
-# define DIR_SEPARATOR '/'
-# define PATH_SEPARATOR ':'
-#endif
-
-#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
- defined (__OS2__)
-# define HAVE_DOS_BASED_FILE_SYSTEM
-# ifndef DIR_SEPARATOR_2
-# define DIR_SEPARATOR_2 '\\'
-# endif
-# ifndef PATH_SEPARATOR_2
-# define PATH_SEPARATOR_2 ';'
-# endif
-#endif
-
-#ifndef DIR_SEPARATOR_2
-# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
-#else /* DIR_SEPARATOR_2 */
-# define IS_DIR_SEPARATOR(ch) \
- (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
-#endif /* DIR_SEPARATOR_2 */
-
-#ifndef PATH_SEPARATOR_2
-# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
-#else /* PATH_SEPARATOR_2 */
-# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
-#endif /* PATH_SEPARATOR_2 */
-
-#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
-#define XFREE(stale) do { \
- if (stale) { free ((void *) stale); stale = 0; } \
-} while (0)
-
-/* -DDEBUG is fairly common in CFLAGS. */
-#undef DEBUG
-#if defined DEBUGWRAPPER
-# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
-#else
-# define DEBUG(format, ...)
-#endif
-
-const char *program_name = NULL;
-
-void * xmalloc (size_t num);
-char * xstrdup (const char *string);
-const char * base_name (const char *name);
-char * find_executable(const char *wrapper);
-int check_executable(const char *path);
-char * strendzap(char *str, const char *pat);
-void lt_fatal (const char *message, ...);
-
-int
-main (int argc, char *argv[])
-{
- char **newargz;
- int i;
-
- program_name = (char *) xstrdup (base_name (argv[0]));
- DEBUG("(main) argv[0] : %s\n",argv[0]);
- DEBUG("(main) program_name : %s\n",program_name);
- newargz = XMALLOC(char *, argc+2);
-EOF
-
- cat >> $cwrappersource <<EOF
- newargz[0] = (char *) xstrdup("$SHELL");
-EOF
-
- cat >> $cwrappersource <<"EOF"
- newargz[1] = find_executable(argv[0]);
- if (newargz[1] == NULL)
- lt_fatal("Couldn't find %s", argv[0]);
- DEBUG("(main) found exe at : %s\n",newargz[1]);
- /* we know the script has the same name, without the .exe */
- /* so make sure newargz[1] doesn't end in .exe */
- strendzap(newargz[1],".exe");
- for (i = 1; i < argc; i++)
- newargz[i+1] = xstrdup(argv[i]);
- newargz[argc+1] = NULL;
-
- for (i=0; i<argc+1; i++)
- {
- DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
- ;
- }
-
-EOF
-
- case $host_os in
- mingw*)
- cat >> $cwrappersource <<EOF
- execv("$SHELL",(char const **)newargz);
-EOF
- ;;
- *)
- cat >> $cwrappersource <<EOF
- execv("$SHELL",newargz);
-EOF
- ;;
- esac
-
- cat >> $cwrappersource <<"EOF"
- return 127;
-}
-
-void *
-xmalloc (size_t num)
-{
- void * p = (void *) malloc (num);
- if (!p)
- lt_fatal ("Memory exhausted");
-
- return p;
-}
-
-char *
-xstrdup (const char *string)
-{
- return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
-;
-}
-
-const char *
-base_name (const char *name)
-{
- const char *base;
-
-#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
- /* Skip over the disk name in MSDOS pathnames. */
- if (isalpha ((unsigned char)name[0]) && name[1] == ':')
- name += 2;
-#endif
-
- for (base = name; *name; name++)
- if (IS_DIR_SEPARATOR (*name))
- base = name + 1;
- return base;
-}
-
-int
-check_executable(const char * path)
-{
- struct stat st;
-
- DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
- if ((!path) || (!*path))
- return 0;
-
- if ((stat (path, &st) >= 0) &&
- (
- /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
-#if defined (S_IXOTH)
- ((st.st_mode & S_IXOTH) == S_IXOTH) ||
-#endif
-#if defined (S_IXGRP)
- ((st.st_mode & S_IXGRP) == S_IXGRP) ||
-#endif
- ((st.st_mode & S_IXUSR) == S_IXUSR))
- )
- return 1;
- else
- return 0;
-}
-
-/* Searches for the full path of the wrapper. Returns
- newly allocated full path name if found, NULL otherwise */
-char *
-find_executable (const char* wrapper)
-{
- int has_slash = 0;
- const char* p;
- const char* p_next;
- /* static buffer for getcwd */
- char tmp[LT_PATHMAX + 1];
- int tmp_len;
- char* concat_name;
-
- DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
-
- if ((wrapper == NULL) || (*wrapper == '\0'))
- return NULL;
-
- /* Absolute path? */
-#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
- if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
- {
- concat_name = xstrdup (wrapper);
- if (check_executable(concat_name))
- return concat_name;
- XFREE(concat_name);
- }
- else
- {
-#endif
- if (IS_DIR_SEPARATOR (wrapper[0]))
- {
- concat_name = xstrdup (wrapper);
- if (check_executable(concat_name))
- return concat_name;
- XFREE(concat_name);
- }
-#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
- }
-#endif
-
- for (p = wrapper; *p; p++)
- if (*p == '/')
- {
- has_slash = 1;
- break;
- }
- if (!has_slash)
- {
- /* no slashes; search PATH */
- const char* path = getenv ("PATH");
- if (path != NULL)
- {
- for (p = path; *p; p = p_next)
- {
- const char* q;
- size_t p_len;
- for (q = p; *q; q++)
- if (IS_PATH_SEPARATOR(*q))
- break;
- p_len = q - p;
- p_next = (*q == '\0' ? q : q + 1);
- if (p_len == 0)
- {
- /* empty path: current directory */
- if (getcwd (tmp, LT_PATHMAX) == NULL)
- lt_fatal ("getcwd failed");
- tmp_len = strlen(tmp);
- concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
- memcpy (concat_name, tmp, tmp_len);
- concat_name[tmp_len] = '/';
- strcpy (concat_name + tmp_len + 1, wrapper);
- }
- else
- {
- concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
- memcpy (concat_name, p, p_len);
- concat_name[p_len] = '/';
- strcpy (concat_name + p_len + 1, wrapper);
- }
- if (check_executable(concat_name))
- return concat_name;
- XFREE(concat_name);
- }
- }
- /* not found in PATH; assume curdir */
- }
- /* Relative path | not found in path: prepend cwd */
- if (getcwd (tmp, LT_PATHMAX) == NULL)
- lt_fatal ("getcwd failed");
- tmp_len = strlen(tmp);
- concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
- memcpy (concat_name, tmp, tmp_len);
- concat_name[tmp_len] = '/';
- strcpy (concat_name + tmp_len + 1, wrapper);
-
- if (check_executable(concat_name))
- return concat_name;
- XFREE(concat_name);
- return NULL;
-}
-
-char *
-strendzap(char *str, const char *pat)
-{
- size_t len, patlen;
-
- assert(str != NULL);
- assert(pat != NULL);
-
- len = strlen(str);
- patlen = strlen(pat);
-
- if (patlen <= len)
- {
- str += len - patlen;
- if (strcmp(str, pat) == 0)
- *str = '\0';
- }
- return str;
-}
-
-static void
-lt_error_core (int exit_status, const char * mode,
- const char * message, va_list ap)
-{
- fprintf (stderr, "%s: %s: ", program_name, mode);
- vfprintf (stderr, message, ap);
- fprintf (stderr, ".\n");
-
- if (exit_status >= 0)
- exit (exit_status);
-}
-
-void
-lt_fatal (const char *message, ...)
-{
- va_list ap;
- va_start (ap, message);
- lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
- va_end (ap);
-}
-EOF
- # we should really use a build-platform specific compiler
- # here, but OTOH, the wrappers (shell script and this C one)
- # are only useful if you want to execute the "real" binary.
- # Since the "real" binary is built for $host, then this
- # wrapper might as well be built for $host, too.
- $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
- ;;
- esac
- $rm $output
- trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
-
- $echo > $output "\
-#! $SHELL
-
-# $output - temporary wrapper script for $objdir/$outputname
-# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
-#
-# The $output program cannot be directly executed until all the libtool
-# libraries that it depends on are installed.
-#
-# This wrapper script should never be moved out of the build directory.
-# If it is, it will not operate correctly.
-
-# Sed substitution that helps us do robust quoting. It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed='${SED} -e 1s/^X//'
-sed_quote_subst='$sed_quote_subst'
-
-# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
-if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
- # Zsh 3.x and 4.x performs 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
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-relink_command=\"$relink_command\"
-
-# This environment variable determines our operation mode.
-if test \"\$libtool_install_magic\" = \"$magic\"; then
- # install mode needs the following variable:
- notinst_deplibs='$notinst_deplibs'
-else
- # When we are sourced in execute mode, \$file and \$echo are already set.
- if test \"\$libtool_execute_magic\" != \"$magic\"; then
- echo=\"$qecho\"
- file=\"\$0\"
- # Make sure echo works.
- if test \"X\$1\" = X--no-reexec; then
- # Discard the --no-reexec flag, and continue.
- shift
- elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
- # Yippee, \$echo works!
- :
- else
- # Restart under the correct shell, and then maybe \$echo will work.
- exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
- fi
- fi\
-"
- $echo >> $output "\
-
- # Find the directory that this script lives in.
- thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
- test \"x\$thisdir\" = \"x\$file\" && thisdir=.
-
- # Follow symbolic links until we get to the real thisdir.
- file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
- while test -n \"\$file\"; do
- destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
-
- # If there was a directory component, then change thisdir.
- if test \"x\$destdir\" != \"x\$file\"; then
- case \"\$destdir\" in
- [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
- *) thisdir=\"\$thisdir/\$destdir\" ;;
- esac
- fi
-
- file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
- file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
- done
-
- # Try to get the absolute directory name.
- absdir=\`cd \"\$thisdir\" && pwd\`
- test -n \"\$absdir\" && thisdir=\"\$absdir\"
-"
-
- if test "$fast_install" = yes; then
- $echo >> $output "\
- program=lt-'$outputname'$exeext
- progdir=\"\$thisdir/$objdir\"
-
- if test ! -f \"\$progdir/\$program\" || \\
- { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
- test \"X\$file\" != \"X\$progdir/\$program\"; }; then
-
- file=\"\$\$-\$program\"
-
- if test ! -d \"\$progdir\"; then
- $mkdir \"\$progdir\"
- else
- $rm \"\$progdir/\$file\"
- fi"
-
- $echo >> $output "\
-
- # relink executable if necessary
- if test -n \"\$relink_command\"; then
- if relink_command_output=\`eval \$relink_command 2>&1\`; then :
- else
- $echo \"\$relink_command_output\" >&2
- $rm \"\$progdir/\$file\"
- exit $EXIT_FAILURE
- fi
- fi
-
- $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
- { $rm \"\$progdir/\$program\";
- $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
- $rm \"\$progdir/\$file\"
- fi"
- else
- $echo >> $output "\
- program='$outputname'
- progdir=\"\$thisdir/$objdir\"
-"
- fi
-
- $echo >> $output "\
-
- if test -f \"\$progdir/\$program\"; then"
-
- # Export our shlibpath_var if we have one.
- if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
- $echo >> $output "\
- # Add our own library path to $shlibpath_var
- $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
-
- # Some systems cannot cope with colon-terminated $shlibpath_var
- # The second colon is a workaround for a bug in BeOS R4 sed
- $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
-
- export $shlibpath_var
-"
- fi
-
- # fixup the dll searchpath if we need to.
- if test -n "$dllsearchpath"; then
- $echo >> $output "\
- # Add the dll search path components to the executable PATH
- PATH=$dllsearchpath:\$PATH
-"
- fi
-
- $echo >> $output "\
- if test \"\$libtool_execute_magic\" != \"$magic\"; then
- # Run the actual program with our arguments.
-"
- case $host in
- # Backslashes separate directories on plain windows
- *-*-mingw | *-*-os2*)
- $echo >> $output "\
- exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
-"
- ;;
-
- *)
- $echo >> $output "\
- exec \"\$progdir/\$program\" \${1+\"\$@\"}
-"
- ;;
- esac
- $echo >> $output "\
- \$echo \"\$0: cannot exec \$program \$*\"
- exit $EXIT_FAILURE
- fi
- else
- # The program doesn't exist.
- \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
- \$echo \"This script is just a wrapper for \$program.\" 1>&2
- $echo \"See the $PACKAGE documentation for more information.\" 1>&2
- exit $EXIT_FAILURE
- fi
-fi\
-"
- chmod +x $output
- fi
- exit $EXIT_SUCCESS
- ;;
- esac
-
- # See if we need to build an old-fashioned archive.
- for oldlib in $oldlibs; do
-
- if test "$build_libtool_libs" = convenience; then
- oldobjs="$libobjs_save"
- addlibs="$convenience"
- build_libtool_libs=no
- else
- if test "$build_libtool_libs" = module; then
- oldobjs="$libobjs_save"
- build_libtool_libs=no
- else
- oldobjs="$old_deplibs $non_pic_objects"
- fi
- addlibs="$old_convenience"
- fi
-
- if test -n "$addlibs"; then
- gentop="$output_objdir/${outputname}x"
- generated="$generated $gentop"
-
- func_extract_archives $gentop $addlibs
- oldobjs="$oldobjs $func_extract_archives_result"
- fi
-
- # Do each command in the archive commands.
- if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
- cmds=$old_archive_from_new_cmds
- else
- # POSIX demands no paths to be encoded in archives. We have
- # to avoid creating archives with duplicate basenames if we
- # might have to extract them afterwards, e.g., when creating a
- # static archive out of a convenience library, or when linking
- # the entirety of a libtool archive into another (currently
- # not supported by libtool).
- if (for obj in $oldobjs
- do
- $echo "X$obj" | $Xsed -e 's%^.*/%%'
- done | sort | sort -uc >/dev/null 2>&1); then
- :
- else
- $echo "copying selected object files to avoid basename conflicts..."
-
- if test -z "$gentop"; then
- gentop="$output_objdir/${outputname}x"
- generated="$generated $gentop"
-
- $show "${rm}r $gentop"
- $run ${rm}r "$gentop"
- $show "$mkdir $gentop"
- $run $mkdir "$gentop"
- exit_status=$?
- if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
- exit $exit_status
- fi
- fi
-
- save_oldobjs=$oldobjs
- oldobjs=
- counter=1
- for obj in $save_oldobjs
- do
- objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
- case " $oldobjs " in
- " ") oldobjs=$obj ;;
- *[\ /]"$objbase "*)
- while :; do
- # Make sure we don't pick an alternate name that also
- # overlaps.
- newobj=lt$counter-$objbase
- counter=`expr $counter + 1`
- case " $oldobjs " in
- *[\ /]"$newobj "*) ;;
- *) if test ! -f "$gentop/$newobj"; then break; fi ;;
- esac
- done
- $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
- $run ln "$obj" "$gentop/$newobj" ||
- $run cp "$obj" "$gentop/$newobj"
- oldobjs="$oldobjs $gentop/$newobj"
- ;;
- *) oldobjs="$oldobjs $obj" ;;
- esac
- done
- fi
-
- eval cmds=\"$old_archive_cmds\"
-
- if len=`expr "X$cmds" : ".*"` &&
- test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
- cmds=$old_archive_cmds
- else
- # the command line is too long to link in one step, link in parts
- $echo "using piecewise archive linking..."
- save_RANLIB=$RANLIB
- RANLIB=:
- objlist=
- concat_cmds=
- save_oldobjs=$oldobjs
-
- # Is there a better way of finding the last object in the list?
- for obj in $save_oldobjs
- do
- last_oldobj=$obj
- done
- for obj in $save_oldobjs
- do
- oldobjs="$objlist $obj"
- objlist="$objlist $obj"
- eval test_cmds=\"$old_archive_cmds\"
- if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
- test "$len" -le "$max_cmd_len"; then
- :
- else
- # the above command should be used before it gets too long
- oldobjs=$objlist
- if test "$obj" = "$last_oldobj" ; then
- RANLIB=$save_RANLIB
- fi
- test -z "$concat_cmds" || concat_cmds=$concat_cmds~
- eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
- objlist=
- fi
- done
- RANLIB=$save_RANLIB
- oldobjs=$objlist
- if test "X$oldobjs" = "X" ; then
- eval cmds=\"\$concat_cmds\"
- else
- eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
- fi
- fi
- fi
- save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- eval cmd=\"$cmd\"
- IFS="$save_ifs"
- $show "$cmd"
- $run eval "$cmd" || exit $?
- done
- IFS="$save_ifs"
- done
-
- if test -n "$generated"; then
- $show "${rm}r$generated"
- $run ${rm}r$generated
- fi
-
- # Now create the libtool archive.
- case $output in
- *.la)
- old_library=
- test "$build_old_libs" = yes && old_library="$libname.$libext"
- $show "creating $output"
-
- # Preserve any variables that may affect compiler behavior
- for var in $variables_saved_for_relink; do
- if eval test -z \"\${$var+set}\"; then
- relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
- elif eval var_value=\$$var; test -z "$var_value"; then
- relink_command="$var=; export $var; $relink_command"
- else
- var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
- relink_command="$var=\"$var_value\"; export $var; $relink_command"
- fi
- done
- # Quote the link command for shipping.
- relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
- relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
- if test "$hardcode_automatic" = yes ; then
- relink_command=
- fi
-
-
- # Only create the output if not a dry run.
- if test -z "$run"; then
- for installed in no yes; do
- if test "$installed" = yes; then
- if test -z "$install_libdir"; then
- break
- fi
- output="$output_objdir/$outputname"i
- # Replace all uninstalled libtool libraries with the installed ones
- newdependency_libs=
- for deplib in $dependency_libs; do
- case $deplib in
- *.la)
- name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
- eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- if test -z "$libdir"; then
- $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
- exit $EXIT_FAILURE
- fi
- newdependency_libs="$newdependency_libs $libdir/$name"
- ;;
- *) newdependency_libs="$newdependency_libs $deplib" ;;
- esac
- done
- dependency_libs="$newdependency_libs"
- newdlfiles=
- for lib in $dlfiles; do
- name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
- eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
- if test -z "$libdir"; then
- $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- exit $EXIT_FAILURE
- fi
- newdlfiles="$newdlfiles $libdir/$name"
- done
- dlfiles="$newdlfiles"
- newdlprefiles=
- for lib in $dlprefiles; do
- name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
- eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
- if test -z "$libdir"; then
- $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- exit $EXIT_FAILURE
- fi
- newdlprefiles="$newdlprefiles $libdir/$name"
- done
- dlprefiles="$newdlprefiles"
- else
- newdlfiles=
- for lib in $dlfiles; do
- case $lib in
- [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
- *) abs=`pwd`"/$lib" ;;
- esac
- newdlfiles="$newdlfiles $abs"
- done
- dlfiles="$newdlfiles"
- newdlprefiles=
- for lib in $dlprefiles; do
- case $lib in
- [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
- *) abs=`pwd`"/$lib" ;;
- esac
- newdlprefiles="$newdlprefiles $abs"
- done
- dlprefiles="$newdlprefiles"
- fi
- $rm $output
- # place dlname in correct position for cygwin
- tdlname=$dlname
- case $host,$output,$installed,$module,$dlname in
- *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
- esac
- $echo > $output "\
-# $outputname - a libtool library file
-# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
-#
-# Please DO NOT delete this file!
-# It is necessary for linking the library.
-
-# The name that we can dlopen(3).
-dlname='$tdlname'
-
-# Names of this library.
-library_names='$library_names'
-
-# The name of the static archive.
-old_library='$old_library'
-
-# Libraries that this one depends upon.
-dependency_libs='$dependency_libs'
-
-# Version information for $libname.
-current=$current
-age=$age
-revision=$revision
-
-# Is this an already installed library?
-installed=$installed
-
-# Should we warn about portability when linking against -modules?
-shouldnotlink=$module
-
-# Files to dlopen/dlpreopen
-dlopen='$dlfiles'
-dlpreopen='$dlprefiles'
-
-# Directory that this library needs to be installed in:
-libdir='$install_libdir'"
- if test "$installed" = no && test "$need_relink" = yes; then
- $echo >> $output "\
-relink_command=\"$relink_command\""
- fi
- done
- fi
-
- # Do a symbolic link so that the libtool archive can be found in
- # LD_LIBRARY_PATH before the program is installed.
- $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
- $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
- ;;
- esac
- exit $EXIT_SUCCESS
- ;;
-
- # libtool install mode
- install)
- modename="$modename: install"
-
- # There may be an optional sh(1) argument at the beginning of
- # install_prog (especially on Windows NT).
- if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
- # Allow the use of GNU shtool's install command.
- $echo "X$nonopt" | grep shtool > /dev/null; then
- # Aesthetically quote it.
- arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- install_prog="$arg "
- arg="$1"
- shift
- else
- install_prog=
- arg=$nonopt
- fi
-
- # The real first argument should be the name of the installation program.
- # Aesthetically quote it.
- arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- install_prog="$install_prog$arg"
-
- # We need to accept at least all the BSD install flags.
- dest=
- files=
- opts=
- prev=
- install_type=
- isdir=no
- stripme=
- for arg
- do
- if test -n "$dest"; then
- files="$files $dest"
- dest=$arg
- continue
- fi
-
- case $arg in
- -d) isdir=yes ;;
- -f)
- case " $install_prog " in
- *[\\\ /]cp\ *) ;;
- *) prev=$arg ;;
- esac
- ;;
- -g | -m | -o) prev=$arg ;;
- -s)
- stripme=" -s"
- continue
- ;;
- -*)
- ;;
- *)
- # If the previous option needed an argument, then skip it.
- if test -n "$prev"; then
- prev=
- else
- dest=$arg
- continue
- fi
- ;;
- esac
-
- # Aesthetically quote the argument.
- arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- install_prog="$install_prog $arg"
- done
-
- if test -z "$install_prog"; then
- $echo "$modename: you must specify an install program" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- if test -n "$prev"; then
- $echo "$modename: the \`$prev' option requires an argument" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- if test -z "$files"; then
- if test -z "$dest"; then
- $echo "$modename: no file or destination specified" 1>&2
- else
- $echo "$modename: you must specify a destination" 1>&2
- fi
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- # Strip any trailing slash from the destination.
- dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
-
- # Check to see that the destination is a directory.
- test -d "$dest" && isdir=yes
- if test "$isdir" = yes; then
- destdir="$dest"
- destname=
- else
- destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
- test "X$destdir" = "X$dest" && destdir=.
- destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
-
- # Not a directory, so check to see that there is only one file specified.
- set dummy $files
- if test "$#" -gt 2; then
- $echo "$modename: \`$dest' is not a directory" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
- fi
- case $destdir in
- [\\/]* | [A-Za-z]:[\\/]*) ;;
- *)
- for file in $files; do
- case $file in
- *.lo) ;;
- *)
- $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
- done
- ;;
- esac
-
- # This variable tells wrapper scripts just to set variables rather
- # than running their programs.
- libtool_install_magic="$magic"
-
- staticlibs=
- future_libdirs=
- current_libdirs=
- for file in $files; do
-
- # Do each installation.
- case $file in
- *.$libext)
- # Do the static libraries later.
- staticlibs="$staticlibs $file"
- ;;
-
- *.la)
- # Check to see that this really is a libtool archive.
- if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
- else
- $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- library_names=
- old_library=
- relink_command=
- # If there is no directory component, then add one.
- case $file in
- */* | *\\*) . $file ;;
- *) . ./$file ;;
- esac
-
- # Add the libdir to current_libdirs if it is the destination.
- if test "X$destdir" = "X$libdir"; then
- case "$current_libdirs " in
- *" $libdir "*) ;;
- *) current_libdirs="$current_libdirs $libdir" ;;
- esac
- else
- # Note the libdir as a future libdir.
- case "$future_libdirs " in
- *" $libdir "*) ;;
- *) future_libdirs="$future_libdirs $libdir" ;;
- esac
- fi
-
- dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
- test "X$dir" = "X$file/" && dir=
- dir="$dir$objdir"
-
- if test -n "$relink_command"; then
- # Determine the prefix the user has applied to our future dir.
- inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
-
- # Don't allow the user to place us outside of our expected
- # location b/c this prevents finding dependent libraries that
- # are installed to the same prefix.
- # At present, this check doesn't affect windows .dll's that
- # are installed into $libdir/../bin (currently, that works fine)
- # but it's something to keep an eye on.
- if test "$inst_prefix_dir" = "$destdir"; then
- $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
- exit $EXIT_FAILURE
- fi
-
- if test -n "$inst_prefix_dir"; then
- # Stick the inst_prefix_dir data into the link command.
- relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
- else
- relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
- fi
-
- $echo "$modename: warning: relinking \`$file'" 1>&2
- $show "$relink_command"
- if $run eval "$relink_command"; then :
- else
- $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
- exit $EXIT_FAILURE
- fi
- fi
-
- # See the names of the shared library.
- set dummy $library_names
- if test -n "$2"; then
- realname="$2"
- shift
- shift
-
- srcname="$realname"
- test -n "$relink_command" && srcname="$realname"T
-
- # Install the shared library and build the symlinks.
- $show "$install_prog $dir/$srcname $destdir/$realname"
- $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
- if test -n "$stripme" && test -n "$striplib"; then
- $show "$striplib $destdir/$realname"
- $run eval "$striplib $destdir/$realname" || exit $?
- fi
-
- if test "$#" -gt 0; then
- # Delete the old symlinks, and create new ones.
- # Try `ln -sf' first, because the `ln' binary might depend on
- # the symlink we replace! Solaris /bin/ln does not understand -f,
- # so we also need to try rm && ln -s.
- for linkname
- do
- if test "$linkname" != "$realname"; then
- $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
- $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
- fi
- done
- fi
-
- # Do each command in the postinstall commands.
- lib="$destdir/$realname"
- cmds=$postinstall_cmds
- save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- $show "$cmd"
- $run eval "$cmd" || {
- lt_exit=$?
-
- # Restore the uninstalled library and exit
- if test "$mode" = relink; then
- $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
- fi
-
- exit $lt_exit
- }
- done
- IFS="$save_ifs"
- fi
-
- # Install the pseudo-library for information purposes.
- name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
- instname="$dir/$name"i
- $show "$install_prog $instname $destdir/$name"
- $run eval "$install_prog $instname $destdir/$name" || exit $?
-
- # Maybe install the static library, too.
- test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
- ;;
-
- *.lo)
- # Install (i.e. copy) a libtool object.
-
- # Figure out destination file name, if it wasn't already specified.
- if test -n "$destname"; then
- destfile="$destdir/$destname"
- else
- destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
- destfile="$destdir/$destfile"
- fi
-
- # Deduce the name of the destination old-style object file.
- case $destfile in
- *.lo)
- staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
- ;;
- *.$objext)
- staticdest="$destfile"
- destfile=
- ;;
- *)
- $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
-
- # Install the libtool object if requested.
- if test -n "$destfile"; then
- $show "$install_prog $file $destfile"
- $run eval "$install_prog $file $destfile" || exit $?
- fi
-
- # Install the old object if enabled.
- if test "$build_old_libs" = yes; then
- # Deduce the name of the old-style object file.
- staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
-
- $show "$install_prog $staticobj $staticdest"
- $run eval "$install_prog \$staticobj \$staticdest" || exit $?
- fi
- exit $EXIT_SUCCESS
- ;;
-
- *)
- # Figure out destination file name, if it wasn't already specified.
- if test -n "$destname"; then
- destfile="$destdir/$destname"
- else
- destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
- destfile="$destdir/$destfile"
- fi
-
- # If the file is missing, and there is a .exe on the end, strip it
- # because it is most likely a libtool script we actually want to
- # install
- stripped_ext=""
- case $file in
- *.exe)
- if test ! -f "$file"; then
- file=`$echo $file|${SED} 's,.exe$,,'`
- stripped_ext=".exe"
- fi
- ;;
- esac
-
- # Do a test to see if this is really a libtool program.
- case $host in
- *cygwin*|*mingw*)
- wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
- ;;
- *)
- wrapper=$file
- ;;
- esac
- if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
- notinst_deplibs=
- relink_command=
-
- # Note that it is not necessary on cygwin/mingw to append a dot to
- # foo even if both foo and FILE.exe exist: automatic-append-.exe
- # behavior happens only for exec(3), not for open(2)! Also, sourcing
- # `FILE.' does not work on cygwin managed mounts.
- #
- # If there is no directory component, then add one.
- case $wrapper in
- */* | *\\*) . ${wrapper} ;;
- *) . ./${wrapper} ;;
- esac
-
- # Check the variables that should have been set.
- if test -z "$notinst_deplibs"; then
- $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
- exit $EXIT_FAILURE
- fi
-
- finalize=yes
- for lib in $notinst_deplibs; do
- # Check to see that each library is installed.
- libdir=
- if test -f "$lib"; then
- # If there is no directory component, then add one.
- case $lib in
- */* | *\\*) . $lib ;;
- *) . ./$lib ;;
- esac
- fi
- libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
- if test -n "$libdir" && test ! -f "$libfile"; then
- $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
- finalize=no
- fi
- done
-
- relink_command=
- # Note that it is not necessary on cygwin/mingw to append a dot to
- # foo even if both foo and FILE.exe exist: automatic-append-.exe
- # behavior happens only for exec(3), not for open(2)! Also, sourcing
- # `FILE.' does not work on cygwin managed mounts.
- #
- # If there is no directory component, then add one.
- case $wrapper in
- */* | *\\*) . ${wrapper} ;;
- *) . ./${wrapper} ;;
- esac
-
- outputname=
- if test "$fast_install" = no && test -n "$relink_command"; then
- if test "$finalize" = yes && test -z "$run"; then
- tmpdir=`func_mktempdir`
- file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
- outputname="$tmpdir/$file"
- # Replace the output file specification.
- relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
-
- $show "$relink_command"
- if $run eval "$relink_command"; then :
- else
- $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
- ${rm}r "$tmpdir"
- continue
- fi
- file="$outputname"
- else
- $echo "$modename: warning: cannot relink \`$file'" 1>&2
- fi
- else
- # Install the binary that we compiled earlier.
- file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
- fi
- fi
-
- # remove .exe since cygwin /usr/bin/install will append another
- # one anyway
- case $install_prog,$host in
- */usr/bin/install*,*cygwin*)
- case $file:$destfile in
- *.exe:*.exe)
- # this is ok
- ;;
- *.exe:*)
- destfile=$destfile.exe
- ;;
- *:*.exe)
- destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
- ;;
- esac
- ;;
- esac
- $show "$install_prog$stripme $file $destfile"
- $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
- test -n "$outputname" && ${rm}r "$tmpdir"
- ;;
- esac
- done
-
- for file in $staticlibs; do
- name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
-
- # Set up the ranlib parameters.
- oldlib="$destdir/$name"
-
- $show "$install_prog $file $oldlib"
- $run eval "$install_prog \$file \$oldlib" || exit $?
-
- if test -n "$stripme" && test -n "$old_striplib"; then
- $show "$old_striplib $oldlib"
- $run eval "$old_striplib $oldlib" || exit $?
- fi
-
- # Do each command in the postinstall commands.
- cmds=$old_postinstall_cmds
- save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- $show "$cmd"
- $run eval "$cmd" || exit $?
- done
- IFS="$save_ifs"
- done
-
- if test -n "$future_libdirs"; then
- $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
- fi
-
- if test -n "$current_libdirs"; then
- # Maybe just do a dry run.
- test -n "$run" && current_libdirs=" -n$current_libdirs"
- exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
- else
- exit $EXIT_SUCCESS
- fi
- ;;
-
- # libtool finish mode
- finish)
- modename="$modename: finish"
- libdirs="$nonopt"
- admincmds=
-
- if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
- for dir
- do
- libdirs="$libdirs $dir"
- done
-
- for libdir in $libdirs; do
- if test -n "$finish_cmds"; then
- # Do each command in the finish commands.
- cmds=$finish_cmds
- save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- $show "$cmd"
- $run eval "$cmd" || admincmds="$admincmds
- $cmd"
- done
- IFS="$save_ifs"
- fi
- if test -n "$finish_eval"; then
- # Do the single finish_eval.
- eval cmds=\"$finish_eval\"
- $run eval "$cmds" || admincmds="$admincmds
- $cmds"
- fi
- done
- fi
-
- # Exit here if they wanted silent mode.
- test "$show" = : && exit $EXIT_SUCCESS
-
- $echo "X----------------------------------------------------------------------" | $Xsed
- $echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- $echo " $libdir"
- done
- $echo
- $echo "If you ever happen to want to link against installed libraries"
- $echo "in a given directory, LIBDIR, you must either use libtool, and"
- $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
- $echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- $echo " during execution"
- fi
- if test -n "$runpath_var"; then
- $echo " - add LIBDIR to the \`$runpath_var' environment variable"
- $echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- $echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- $echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- $echo
- $echo "See any operating system documentation about shared libraries for"
- $echo "more information, such as the ld(1) and ld.so(8) manual pages."
- $echo "X----------------------------------------------------------------------" | $Xsed
- exit $EXIT_SUCCESS
- ;;
-
- # libtool execute mode
- execute)
- modename="$modename: execute"
-
- # The first argument is the command name.
- cmd="$nonopt"
- if test -z "$cmd"; then
- $echo "$modename: you must specify a COMMAND" 1>&2
- $echo "$help"
- exit $EXIT_FAILURE
- fi
-
- # Handle -dlopen flags immediately.
- for file in $execute_dlfiles; do
- if test ! -f "$file"; then
- $echo "$modename: \`$file' is not a file" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- dir=
- case $file in
- *.la)
- # Check to see that this really is a libtool archive.
- if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
- else
- $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- # Read the libtool library.
- dlname=
- library_names=
-
- # If there is no directory component, then add one.
- case $file in
- */* | *\\*) . $file ;;
- *) . ./$file ;;
- esac
-
- # Skip this library if it cannot be dlopened.
- if test -z "$dlname"; then
- # Warn if it was a shared library.
- test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
- continue
- fi
-
- dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
- test "X$dir" = "X$file" && dir=.
-
- if test -f "$dir/$objdir/$dlname"; then
- dir="$dir/$objdir"
- else
- $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
- exit $EXIT_FAILURE
- fi
- ;;
-
- *.lo)
- # Just add the directory containing the .lo file.
- dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
- test "X$dir" = "X$file" && dir=.
- ;;
-
- *)
- $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
- continue
- ;;
- esac
-
- # Get the absolute pathname.
- absdir=`cd "$dir" && pwd`
- test -n "$absdir" && dir="$absdir"
-
- # Now add the directory to shlibpath_var.
- if eval "test -z \"\$$shlibpath_var\""; then
- eval "$shlibpath_var=\"\$dir\""
- else
- eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
- fi
- done
-
- # This variable tells wrapper scripts just to set shlibpath_var
- # rather than running their programs.
- libtool_execute_magic="$magic"
-
- # Check if any of the arguments is a wrapper script.
- args=
- for file
- do
- case $file in
- -*) ;;
- *)
- # Do a test to see if this is really a libtool program.
- if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- # If there is no directory component, then add one.
- case $file in
- */* | *\\*) . $file ;;
- *) . ./$file ;;
- esac
-
- # Transform arg to wrapped name.
- file="$progdir/$program"
- fi
- ;;
- esac
- # Quote arguments (to preserve shell metacharacters).
- file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
- args="$args \"$file\""
- done
-
- if test -z "$run"; then
- if test -n "$shlibpath_var"; then
- # Export the shlibpath_var.
- eval "export $shlibpath_var"
- fi
-
- # Restore saved environment variables
- for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
- do
- eval "if test \"\${save_$lt_var+set}\" = set; then
- $lt_var=\$save_$lt_var; export $lt_var
- fi"
- done
-
-
- # Now prepare to actually exec the command.
- exec_cmd="\$cmd$args"
- else
- # Display what would be done.
- if test -n "$shlibpath_var"; then
- eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
- $echo "export $shlibpath_var"
- fi
- $echo "$cmd$args"
- exit $EXIT_SUCCESS
- fi
- ;;
-
- # libtool clean and uninstall mode
- clean | uninstall)
- modename="$modename: $mode"
- rm="$nonopt"
- files=
- rmforce=
- exit_status=0
-
- # This variable tells wrapper scripts just to set variables rather
- # than running their programs.
- libtool_install_magic="$magic"
-
- for arg
- do
- case $arg in
- -f) rm="$rm $arg"; rmforce=yes ;;
- -*) rm="$rm $arg" ;;
- *) files="$files $arg" ;;
- esac
- done
-
- if test -z "$rm"; then
- $echo "$modename: you must specify an RM program" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- fi
-
- rmdirs=
-
- origobjdir="$objdir"
- for file in $files; do
- dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
- if test "X$dir" = "X$file"; then
- dir=.
- objdir="$origobjdir"
- else
- objdir="$dir/$origobjdir"
- fi
- name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
- test "$mode" = uninstall && objdir="$dir"
-
- # Remember objdir for removal later, being careful to avoid duplicates
- if test "$mode" = clean; then
- case " $rmdirs " in
- *" $objdir "*) ;;
- *) rmdirs="$rmdirs $objdir" ;;
- esac
- fi
-
- # Don't error if the file doesn't exist and rm -f was used.
- if (test -L "$file") >/dev/null 2>&1 \
- || (test -h "$file") >/dev/null 2>&1 \
- || test -f "$file"; then
- :
- elif test -d "$file"; then
- exit_status=1
- continue
- elif test "$rmforce" = yes; then
- continue
- fi
-
- rmfiles="$file"
-
- case $name in
- *.la)
- # Possibly a libtool archive, so verify it.
- if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- . $dir/$name
-
- # Delete the libtool libraries and symlinks.
- for n in $library_names; do
- rmfiles="$rmfiles $objdir/$n"
- done
- test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
-
- case "$mode" in
- clean)
- case " $library_names " in
- # " " in the beginning catches empty $dlname
- *" $dlname "*) ;;
- *) rmfiles="$rmfiles $objdir/$dlname" ;;
- esac
- test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
- ;;
- uninstall)
- if test -n "$library_names"; then
- # Do each command in the postuninstall commands.
- cmds=$postuninstall_cmds
- save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- $show "$cmd"
- $run eval "$cmd"
- if test "$?" -ne 0 && test "$rmforce" != yes; then
- exit_status=1
- fi
- done
- IFS="$save_ifs"
- fi
-
- if test -n "$old_library"; then
- # Do each command in the old_postuninstall commands.
- cmds=$old_postuninstall_cmds
- save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- eval cmd=\"$cmd\"
- $show "$cmd"
- $run eval "$cmd"
- if test "$?" -ne 0 && test "$rmforce" != yes; then
- exit_status=1
- fi
- done
- IFS="$save_ifs"
- fi
- # FIXME: should reinstall the best remaining shared library.
- ;;
- esac
- fi
- ;;
-
- *.lo)
- # Possibly a libtool object, so verify it.
- if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
-
- # Read the .lo file
- . $dir/$name
-
- # Add PIC object to the list of files to remove.
- if test -n "$pic_object" \
- && test "$pic_object" != none; then
- rmfiles="$rmfiles $dir/$pic_object"
- fi
-
- # Add non-PIC object to the list of files to remove.
- if test -n "$non_pic_object" \
- && test "$non_pic_object" != none; then
- rmfiles="$rmfiles $dir/$non_pic_object"
- fi
- fi
- ;;
-
- *)
- if test "$mode" = clean ; then
- noexename=$name
- case $file in
- *.exe)
- file=`$echo $file|${SED} 's,.exe$,,'`
- noexename=`$echo $name|${SED} 's,.exe$,,'`
- # $file with .exe has already been added to rmfiles,
- # add $file without .exe
- rmfiles="$rmfiles $file"
- ;;
- esac
- # Do a test to see if this is a libtool program.
- if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- relink_command=
- . $dir/$noexename
-
- # note $name still contains .exe if it was in $file originally
- # as does the version of $file that was added into $rmfiles
- rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
- if test "$fast_install" = yes && test -n "$relink_command"; then
- rmfiles="$rmfiles $objdir/lt-$name"
- fi
- if test "X$noexename" != "X$name" ; then
- rmfiles="$rmfiles $objdir/lt-${noexename}.c"
- fi
- fi
- fi
- ;;
- esac
- $show "$rm $rmfiles"
- $run $rm $rmfiles || exit_status=1
- done
- objdir="$origobjdir"
-
- # Try to remove the ${objdir}s in the directories where we deleted files
- for dir in $rmdirs; do
- if test -d "$dir"; then
- $show "rmdir $dir"
- $run rmdir $dir >/dev/null 2>&1
- fi
- done
-
- exit $exit_status
- ;;
-
- "")
- $echo "$modename: you must specify a MODE" 1>&2
- $echo "$generic_help" 1>&2
- exit $EXIT_FAILURE
- ;;
- esac
-
- if test -z "$exec_cmd"; then
- $echo "$modename: invalid operation mode \`$mode'" 1>&2
- $echo "$generic_help" 1>&2
- exit $EXIT_FAILURE
- fi
-fi # test -z "$show_help"
-
-if test -n "$exec_cmd"; then
- eval exec $exec_cmd
- exit $EXIT_FAILURE
-fi
-
-# We need to display help for each of the modes.
-case $mode in
-"") $echo \
-"Usage: $modename [OPTION]... [MODE-ARG]...
-
-Provide generalized library-building support services.
-
- --config show all configuration variables
- --debug enable verbose shell tracing
--n, --dry-run display commands without modifying any files
- --features display basic configuration information and exit
- --finish same as \`--mode=finish'
- --help display this help message and exit
- --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
- --quiet same as \`--silent'
- --silent don't print informational messages
- --tag=TAG use configuration variables from tag TAG
- --version print version information
-
-MODE must be one of the following:
-
- clean remove files from the build directory
- compile compile a source file into a libtool object
- execute automatically set library path, then run a program
- finish complete the installation of libtool libraries
- install install libraries or executables
- link create a library or an executable
- uninstall remove libraries from an installed directory
-
-MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
-a more detailed description of MODE.
-
-Report bugs to <bug-libtool@gnu.org>."
- exit $EXIT_SUCCESS
- ;;
-
-clean)
- $echo \
-"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
-
-Remove files from the build directory.
-
-RM is the name of the program to use to delete files associated with each FILE
-(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
-to RM.
-
-If FILE is a libtool library, object or program, all the files associated
-with it are deleted. Otherwise, only FILE itself is deleted using RM."
- ;;
-
-compile)
- $echo \
-"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
-
-Compile a source file into a libtool library object.
-
-This mode accepts the following additional options:
-
- -o OUTPUT-FILE set the output file name to OUTPUT-FILE
- -prefer-pic try to building PIC objects only
- -prefer-non-pic try to building non-PIC objects only
- -static always build a \`.o' file suitable for static linking
-
-COMPILE-COMMAND is a command to be used in creating a \`standard' object file
-from the given SOURCEFILE.
-
-The output file name is determined by removing the directory component from
-SOURCEFILE, then substituting the C source code suffix \`.c' with the
-library object suffix, \`.lo'."
- ;;
-
-execute)
- $echo \
-"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
-
-Automatically set library path, then run a program.
-
-This mode accepts the following additional options:
-
- -dlopen FILE add the directory containing FILE to the library path
-
-This mode sets the library path environment variable according to \`-dlopen'
-flags.
-
-If any of the ARGS are libtool executable wrappers, then they are translated
-into their corresponding uninstalled binary, and any of their required library
-directories are added to the library path.
-
-Then, COMMAND is executed, with ARGS as arguments."
- ;;
-
-finish)
- $echo \
-"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
-
-Complete the installation of libtool libraries.
-
-Each LIBDIR is a directory that contains libtool libraries.
-
-The commands that this mode executes may require superuser privileges. Use
-the \`--dry-run' option if you just want to see what would be executed."
- ;;
-
-install)
- $echo \
-"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
-
-Install executables or libraries.
-
-INSTALL-COMMAND is the installation command. The first component should be
-either the \`install' or \`cp' program.
-
-The rest of the components are interpreted as arguments to that command (only
-BSD-compatible install options are recognized)."
- ;;
-
-link)
- $echo \
-"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
-
-Link object files or libraries together to form another library, or to
-create an executable program.
-
-LINK-COMMAND is a command using the C compiler that you would use to create
-a program from several object files.
-
-The following components of LINK-COMMAND are treated specially:
-
- -all-static do not do any dynamic linking at all
- -avoid-version do not add a version suffix if possible
- -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
- -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
- -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
- -export-symbols SYMFILE
- try to export only the symbols listed in SYMFILE
- -export-symbols-regex REGEX
- try to export only the symbols matching REGEX
- -LLIBDIR search LIBDIR for required installed libraries
- -lNAME OUTPUT-FILE requires the installed library libNAME
- -module build a library that can dlopened
- -no-fast-install disable the fast-install mode
- -no-install link a not-installable executable
- -no-undefined declare that a library does not refer to external symbols
- -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
- -objectlist FILE Use a list of object files found in FILE to specify objects
- -precious-files-regex REGEX
- don't remove output files matching REGEX
- -release RELEASE specify package release information
- -rpath LIBDIR the created library will eventually be installed in LIBDIR
- -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
- -static do not do any dynamic linking of uninstalled libtool libraries
- -static-libtool-libs
- do not do any dynamic linking of libtool libraries
- -version-info CURRENT[:REVISION[:AGE]]
- specify library version info [each variable defaults to 0]
-
-All other options (arguments beginning with \`-') are ignored.
-
-Every other argument is treated as a filename. Files ending in \`.la' are
-treated as uninstalled libtool libraries, other files are standard or library
-object files.
-
-If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
-only library objects (\`.lo' files) may be specified, and \`-rpath' is
-required, except when creating a convenience library.
-
-If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
-using \`ar' and \`ranlib', or on Windows using \`lib'.
-
-If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
-is created, otherwise an executable program is created."
- ;;
-
-uninstall)
- $echo \
-"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
-
-Remove libraries from an installation directory.
-
-RM is the name of the program to use to delete files associated with each FILE
-(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
-to RM.
-
-If FILE is a libtool library, all the files associated with it are deleted.
-Otherwise, only FILE itself is deleted using RM."
- ;;
-
-*)
- $echo "$modename: invalid operation mode \`$mode'" 1>&2
- $echo "$help" 1>&2
- exit $EXIT_FAILURE
- ;;
-esac
-
-$echo
-$echo "Try \`$modename --help' for more information about other modes."
-
-exit $?
-
-# The TAGs below are defined such that we never get into a situation
-# in which we disable both kinds of libraries. Given conflicting
-# choices, we go for a static library, that is the most portable,
-# since we can't tell whether shared libraries were disabled because
-# the user asked for that or because the platform doesn't support
-# them. This is particularly important on AIX, because we don't
-# support having both static and shared libraries enabled at the same
-# time on that platform, so we default to a shared-only configuration.
-# If a disable-shared tag is given, we'll fallback to a static-only
-# configuration. But we'll never go from static-only to shared-only.
-
-# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
-disable_libs=shared
-# ### END LIBTOOL TAG CONFIG: disable-shared
-
-# ### BEGIN LIBTOOL TAG CONFIG: disable-static
-disable_libs=static
-# ### END LIBTOOL TAG CONFIG: disable-static
-
-# Local Variables:
-# mode:shell-script
-# sh-indentation:2
-# End:
+++ /dev/null
-## $Id: changelog.am 2333 2006-09-28 15:06:59Z dhozac $ ---*- makefile -*---
-
-## Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-ChangeLog.sed:
- test "$(srcdir)" != "."
-
-if HAVE_SVN2CL
-ChangeLog: Makefile
- if test "$(srcdir)" = "." -a -d .svn; then \
- $(SVN2CL) $(SVN2CL_ALLFLAGS) -o $@; \
- fi
-endif
-
-.PHONY: ChangeLog
+++ /dev/null
-dnl $Id: ensc_cflags.m4 1052 2004-03-04 03:00:42Z ensc $
-
-dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-AC_DEFUN([__ENSC_CHECK_WARNFLAGS],
-[
- warn_flags="-Werror -W"
- AC_MSG_CHECKING([whether the $1-compiler accepts ${warn_flags}])
- AC_LANG_PUSH($1)
- __ensc_check_warnflags_old_CFLAGS="${$3}"
- $3="$warn_flags"
- AC_TRY_COMPILE([inline static void f(){}],
- [],
- [ensc_sys_compilerwarnflags_$2=${warn_flags}],
- [ensc_sys_compilerwarnflags_$2=])
- AC_LANG_POP($1)
- $3="$__ensc_check_warnflags_old_CFLAGS"
-
- if test x"${ensc_sys_compilerwarnflags_$2}" = x; then
- AC_MSG_RESULT([no])
- else
- AC_MSG_RESULT([yes])
- fi
-])
-
-AC_DEFUN([__ENSC_CHECK_WARNFLAGS_C],
-[
- __ENSC_CHECK_WARNFLAGS(C, C, CFLAGS)
-])
-
-AC_DEFUN([__ENSC_CHECK_WARNFLAGS_CXX],
-[
- __ENSC_CHECK_WARNFLAGS(C++, CXX, CXXFLAGS)
-])
-
-
-# --------------------------------------------------------------------------
-# Check whether the C++ compiler accepts a certain flag
-# If it does it adds the flag to CXXFLAGS
-# If it does not then it returns an error to lf_ok
-# Usage:
-# ENSC_CHECK_CXX_FLAG(-flag1 -flag2 -flag3 ...)
-# -------------------------------------------------------------------------
-
-AC_DEFUN([ENSC_CHECK_CXX_FLAG],
-[
- AC_REQUIRE([__ENSC_CHECK_WARNFLAGS_CXX])
-
- echo 'void f(){}' > conftest.cc
- for i in $1
- do
- AC_MSG_CHECKING([whether $CXX accepts $i])
- if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
- then
- CXXFLAGS="${CXXFLAGS} $i"
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- fi
- done
- rm -f conftest.cc conftest.o
-])
-
-# --------------------------------------------------------------------------
-# Check whether the C compiler accepts a certain flag
-# If it does it adds the flag to CFLAGS
-# If it does not then it returns an error to lf_ok
-# Usage:
-# ENSC_CHECK_CC_FLAG(-flag1 -flag2 -flag3 ...)
-# -------------------------------------------------------------------------
-
-AC_DEFUN([ENSC_CHECK_CC_FLAG],
-[
- AC_REQUIRE([__ENSC_CHECK_WARNFLAGS_C])
-
-echo 'void f(){}' > conftest.c
- for i in $1
- do
- AC_MSG_CHECKING([whether $CC accepts $i])
- if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
- then
- CFLAGS="${CFLAGS} $i"
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- fi
- done
- rm -f conftest.c conftest.o
-])
-
-AC_DEFUN([ENSC_CHECK_DEFAULT_FLAG],
-[
- if test x"${ensc_sys_default_flag}" = x; then
- ENSC_CHECK_CC_FLAG([-fmessage-length=0])
- ENSC_CHECK_CXX_FLAG([-fmessage-length=0])
-
- ensc_sys_default_flag=set
- fi
-])
+++ /dev/null
-dnl $Id: ensc_changelog.m4 2313 2006-09-15 08:31:53Z hollow $
-
-dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-dnl Usage: ENSC_CHANGELOG()
-
-AC_DEFUN([ENSC_CHANGELOG],
-[
- AC_CHECK_PROGS(SVN2CL, [svn2cl])
- AM_CONDITIONAL(HAVE_SVN2CL, [test x"$SVN2CL" != x])
-])
+++ /dev/null
-dnl $Id: ensc_cxxcompiler.m4 2007 2005-04-10 00:52:57Z ensc $
-
-dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-AC_DEFUN([ENSC_CXXCOMPILER],
-[
- AC_REQUIRE([AC_PROG_CXX])
-
- AC_CACHE_CHECK([whether $CXX is a C++ compiler], [ensc_cv_cxx_cxxcompiler],
- [
- AC_LANG_PUSH(C++)
- AC_COMPILE_IFELSE([
- #include <ostream>
- ],
- [ensc_cv_cxx_cxxcompiler=yes],
- [ensc_cv_cxx_cxxcompiler=no])
- AC_LANG_POP(C++)
- ])
-
- AM_CONDITIONAL(ENSC_HAVE_CXX_COMPILER,
- [test x"$ensc_cv_cxx_cxxcompiler" = xyes])
-
- if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
- AC_MSG_WARN([*** some programs will not be built because a C++ compiler is lacking])
- fi
-])
-
-AC_DEFUN([ENSC_C99COMPILER],
-[
- AC_REQUIRE([AC_PROG_CC])
-
- AC_CACHE_CHECK([whether $CC is a C99 compiler], [ensc_cv_c99_c99compiler],
- [
- AC_LANG_PUSH(C)
- AC_COMPILE_IFELSE([
-int main(int argc, char *argv[]) {
- struct { int x; } a = { .x = argc };
- if (0) return 0;
- int b;
-}
- ],
- [ensc_cv_c99_c99compiler=yes],
- [ensc_cv_c99_c99compiler=no])
- AC_LANG_POP(C)
- ])
-
- AM_CONDITIONAL(ENSC_HAVE_C99_COMPILER,
- [test x"$ensc_cv_c99_c99compiler" = xyes])
-
- if test x"$ensc_cv_c99_c99compiler" = xno; then
- AC_MSG_WARN([*** some programs will not be built because system is lacking a C99 compiler])
- fi
-])
+++ /dev/null
-dnl $Id: ensc_dietlibc.m4 2453 2007-01-17 09:54:53Z dhozac $
-
-dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-AC_DEFUN([_ENSC_DIETLIBC_C99],
-[
- AH_TEMPLATE([ENSC_DIETLIBC_C99], [Define to 1 if dietlibc supports C99])
-
- AC_CACHE_CHECK([whether dietlibc supports C99], [ensc_cv_c_dietlibc_c99],
- [
- _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
- _ensc_dietlibc_c99_old_CC=$CC
-
- CFLAGS="-std=c99"
- CC="${DIET:-diet} $CC"
-
- AC_LANG_PUSH(C)
- AC_COMPILE_IFELSE([/* */],[
- AC_COMPILE_IFELSE([
- #include <stdint.h>
- #include <sys/cdefs.h>
- #if defined(inline)
- # error 'inline' badly defined
- #endif
- volatile uint64_t a;
- ],
- [ensc_cv_c_dietlibc_c99=yes],
- [ensc_cv_c_dietlibc_c99=no])],
- [ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'])
- AC_LANG_POP
-
- CC=$_ensc_dietlibc_c99_old_CC
- CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
- ])
-
- if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
- AC_DEFINE(ENSC_DIETLIBC_C99,1)
- fi
-])
-
-AC_DEFUN([_ENSC_DIETLIBC_SYSCALL],
-[
- AH_TEMPLATE([ENSC_DIETLIBC_HAS_SYSCALL], [Define to 1 if dietlibc declares syscall])
-
- AC_CACHE_CHECK([whether dietlibc declares syscall], [ensc_cv_c_dietlibc_syscall],
- [
- _ensc_dietlibc_syscall_old_CC="$CC"
- CC="${DIET:-diet} $CC"
-
- AC_LANG_PUSH(C)
- AC_COMPILE_IFELSE([
- #include <sys/syscall.h>
- long int syscall(long int __sysno, ...);
- ],
- [ensc_cv_c_dietlibc_syscall=no],
- [ensc_cv_c_dietlibc_syscall=yes])
- AC_LANG_POP
-
- CC="$_ensc_dietlibc_syscall_old_CC"
- ])
-
- if test x"$ensc_cv_c_dietlibc_syscall" = xyes; then
- AC_DEFINE(ENSC_DIETLIBC_HAS_SYSCALL,1)
- fi
-])
-
-dnl Usage: ENSC_ENABLE_DIETLIBC(<conditional>[,<min-version>])
-dnl <conditional> ... automake-conditional which will be set when
-dnl dietlibc shall be enabled
-dnl provides:
-dnl * $ENSC_VERSION_DIETLIBC_NUM and
-dnl * $ENSC_VERSION_DIETLIBC
-
-AC_DEFUN([ENSC_ENABLE_DIETLIBC],
-[
- AC_MSG_CHECKING([whether to enable dietlibc])
-
- AC_ARG_VAR(DIET, [The 'diet' wrapper (default: diet)])
- AC_ARG_VAR(DIETFLAGS, [Flags passed to the 'diet' wrapper (default: -O)])
-
- : ${DIET:=diet}
- : ${DIETFLAGS=-Os}
-
- AC_ARG_ENABLE([dietlibc],
- [AS_HELP_STRING([--disable-dietlibc],
- [do not use dietlibc resp. enforce its usage
- (with --enable-dietlibc) (default: autodetect dietlibc)])],
- [case "$enableval" in
- (yes) use_dietlibc=forced;;
- (no) use_dietlibc=forced_no;;
- (*) AC_MSG_ERROR(['$enableval' is not a valid value for --enable-dietlibc]);;
- esac],
- [which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no])
-
- if test "$use_dietlibc" = detected -a "$2"; then
- _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
- _dietlibc_ver=${_dietlibc_ver##*diet version }
- _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
- _dietlibc_ver_maj=${_dietlibc_ver%%.*}
- _dietlibc_ver_min=${_dietlibc_ver##*.}
- _dietlibc_ver_min=${_dietlibc_ver_min%%[[!0-9]]*}
- _dietlibc_cmp="$2"
- _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
- _dietlibc_cmp_min=${_dietlibc_cmp##*.}
-
- ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
-
- let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
- let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
-
- test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
- else
- ENSC_VERSION_DIETLIBC=
- _dietlibc_ver=-1
- fi
-
- ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
- ensc_have_dietlibc=no
-
- case x"$use_dietlibc" in
- xdetected)
- AM_CONDITIONAL($1, true)
- AC_MSG_RESULT([yes (autodetected, $ENSC_VERSION_DIETLIBC)])
- ensc_have_dietlibc=yes
- ;;
- xforced)
- AM_CONDITIONAL($1, true)
- AC_MSG_RESULT([yes (forced)])
- ensc_have_dietlibc=yes
- ;;
- xdetected_no)
- AM_CONDITIONAL($1, false)
- AC_MSG_RESULT([no (detected)])
- ;;
- xdetected_old)
- AM_CONDITIONAL($1, false)
- AC_MSG_RESULT([no (too old; $2+ required, $ENSC_VERSION_DIETLIBC found)])
- ;;
- xforced_no)
- AM_CONDITIONAL($1, false)
- AC_MSG_RESULT([no (forced)])
- ;;
- *)
- AC_MSG_ERROR([internal error, use_dietlibc was "$use_dietlibc"])
- ;;
- esac
-
- if test x"$ensc_have_dietlibc" != xno; then
- _ENSC_DIETLIBC_C99
- _ENSC_DIETLIBC_SYSCALL
- fi
-])
-
+++ /dev/null
-dnl $Id: ensc_dietlibc_compat.m4 2042 2005-04-24 20:28:23Z ensc $
-
-dnl Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-AC_DEFUN([ENSC_DIETLIBC_NEED_COMPAT],
-[
- AC_REQUIRE([ENSC_ENABLE_DIETLIBC])
- AC_REQUIRE([ENSC_SYSCALL_ALTERNATIVE])
- AC_CACHE_CHECK([whether dietlibc needs '-lcompat'], [ensc_cv_c_dietlibc_compat],
- [
- AC_LANG_PUSH(C)
- ensc_dietlibc_need_compat_old_CC=$CC
- CC="${DIET:-diet} $CC"
- AC_LINK_IFELSE([
- AC_LANG_PROGRAM([
-#include "$srcdir/lib/syscall-wrap.h"
-#include <errno.h>
-
-#define __NR_foo0 42
-#define __NR_foo1 42
-#define __NR_foo2 42
-#define __NR_foo3 42
-#define __NR_foo4 42
-#define __NR_foo5 42
-inline static _syscall0(int, foo0)
-inline static _syscall1(int, foo1, int, a)
-inline static _syscall2(int, foo2, int, a, int, b)
-inline static _syscall3(int, foo3, int, a, int, b, int, c)
-inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
-inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
-],
- [foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);])],
- [ensc_cv_c_dietlibc_compat=no],
- [ensc_cv_c_dietlibc_compat=yes])
- CC=$ensc_dietlibc_need_compat_old_CC
- AC_LANG_POP
- ])
-
- if test x"$1" != x; then
- AM_CONDITIONAL($1, test x"$ensc_cv_c_dietlibc_compat" = xyes)
- fi
-])
+++ /dev/null
-dnl $Id: ensc_e2fscheck.m4 2411 2006-12-01 18:41:01Z dhozac $
-
-dnl Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-AC_DEFUN([ENSC_CHECK_EXT2FS_HEADER],
-[
- AC_LANG_PUSH(C++)
- AC_CACHE_CHECK([for ext2fs-headers], [ensc_cv_test_ext2fs_header],[
- AC_COMPILE_IFELSE(AC_LANG_SOURCE([#include <ext2fs/ext2_fs.h>
- int main() { return 0; }]),
- [ensc_cv_test_ext2fs_header=e2fsprogs],[
- AC_COMPILE_IFELSE(AC_LANG_SOURCE([#include <linux/ext2_fs.h>
- int main() { return 0; }]),
- [ensc_cv_test_ext2fs_header=kernel],[
- ensc_cv_test_ext2fs_header=none])])])
-
- case x"$ensc_cv_test_ext2fs_header" in
- (xe2fsprogs)
- AC_CHECK_HEADER([ext2fs/ext2_fs.h],
- [AC_DEFINE(ENSC_HAVE_EXT2FS_EXT2_FS_H, 1, [define when <ext2fs/ext2_fs.h> is usable])],
- [AC_MSG_FAILURE([unexpected error while checkin for <ext2fs/ext2_fs.h>])])
- ;;
- (xkernel)
- AC_CHECK_HEADER([linux/ext2_fs.h],
- [AC_DEFINE(ENSC_HAVE_LINUX_EXT2_FS_H, 1, [define when <linux/ext2_fs.h> is usable])],
- [AC_MSG_FAILURE([unexpected error while checkin for <linux/ext2_fs.h>])])
- ;;
- (*)
- AC_MSG_FAILURE([
-ext2fs headers were not found, or they are not usable. This can have
-the following reasons:
-
-* you have neither the e2fsprogs nor the kernel headers installed
-
-* kernel headers are broken (e.g. these of linux 2.6 are known to be)
- and you do not have e2fsprogs headers installed; please try to install
- - e2fsprogs-devel (for Red Hat), or
- - lib*ext2fs2-devel (for Mandriva), or
- - e2fslibs-dev (for Debian)
- in this case.
-
-* kernel headers are broken and your e2fsprogs headers are too old;
- until version 1.27 (inclusive), they are using reserved C++ keywords
-
-* kernel headers are broken and your e2fsprogs headers are too new;
- recent (January 2004) BK snapshots of e2fsprogs are unusable for
- C++, for details and a solution see
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
-
-
-In the latter two cases you have the following options:
-* fix the headers manually, or
-* install a stable version of e2fsprogs (e.g. 1.34), or
-* use good kernel headers (from linux 2.4.x)
-])
- ;;
- esac
- AC_LANG_POP
-])
+++ /dev/null
-dnl $Id: ensc_initrddir.m4 1887 2005-03-09 14:42:39Z ensc $
-
-dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-dnl Usage: ENSC_INITRDDIR(<variable>)
-
-AC_DEFUN([ENSC_INITRDDIR],
-[
- AC_MSG_CHECKING([for initrddir])
- AC_ARG_WITH([initrddir],
- [AC_HELP_STRING([--with-initrddir <DIR>],
- [use <DIR> as directory for SysV init-files (default: $sysconfdir/init.d)])],
- [case "$withval" in
- yes|no) AC_MSG_ERROR(['$withval' is not a valid value for '--with-initrddir']);;
- *) ensc_initrddir=$withval;;
- esac],
- [ensc_initrddir='$(sysconfdir)/init.d'])
-
- if test "$1"; then
- $1=$ensc_initrddir
- AC_SUBST($1)
- fi
-
- AC_MSG_RESULT($ensc_initrddir)
-])
-
+++ /dev/null
-dnl $Id: ensc_pathprog.m4 2504 2007-02-24 20:03:10Z dhozac $
-
-dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-dnl Usage: ENSC_SET_SEARCHPATH(<PATH>)
-AC_DEFUN([ENSC_SET_SEARCHPATH],
-[
- ensc_searchpath="$1"
-])
-
-dnl Usage: ENSC_PATHPROG_INIT
-AC_DEFUN([ENSC_PATHPROG_INIT],
-[
- ENSC_PATHPROG_SED=
- AC_SUBST([ENSC_PATHPROG_SED])
-])
-
-
-dnl Usage: ENSC_PATHPROG(<VAR>, <PROG>[, <DFLT>, <DESCR>])
-AC_DEFUN([ENSC_PATHPROG],
-[
- AC_REQUIRE([ENSC_SET_SEARCHPATH])
- AC_REQUIRE([ENSC_PATHPROG_INIT])
-
- if test -z "$3"; then
- rq=true
- else
- rq=false
- fi
-
- if $rq; then
- ensc_dflt=
- else
- ensc_dflt="$3"
- fi
-
- AC_PATH_PROGS($1, [$2], [$ensc_dflt], [$ensc_searchpath])
-
- if test -z "${$1}" && $rq; then
- if test -z "$4"; then
- AC_MSG_ERROR([Can not find the '$2' tool within '${ensc_searchpath:-$PATH}'.])
- else
- AC_MSG_ERROR([
-Can not find the '$2' tool within '${ensc_searchpath:-$PATH}'.
-$4])
- fi
- fi
-
- if test -e "${$1}"; then
- $1=`readlink -f "${$1}"`
- fi
-
- test "${$1}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'$1'@!${$1}!g;"
-
- test "${$1}"])
-
-
-
-dnl Usage: ENSC_PATHPROG_STANDARD_TOOLS)
-AC_DEFUN([ENSC_PATHPROG_STANDARD_TOOLS],
-[
- ENSC_PATHPROG(AWK, awk)
- ENSC_PATHPROG(CAT, cat)
- ENSC_PATHPROG(CHOWN, chown)
- ENSC_PATHPROG(CMP, cmp)
- ENSC_PATHPROG(CP, cp)
- ENSC_PATHPROG(DIRNAME, dirname)
- ENSC_PATHPROG(EGREP, egrep)
- ENSC_PATHPROG(ENV, env)
- ENSC_PATHPROG(GREP, grep)
- ENSC_PATHPROG(LN, ln)
- ENSC_PATHPROG(MKDIR, mkdir)
- ENSC_PATHPROG(MKFIFO, mkfifo)
- ENSC_PATHPROG(MKTEMP, mktemp)
- ENSC_PATHPROG(MOUNT, mount)
- ENSC_PATHPROG(MV, mv)
- ENSC_PATHPROG(NICE, nice)
- ENSC_PATHPROG(PS, ps)
- ENSC_PATHPROG(RM, rm)
- ENSC_PATHPROG(RMDIR, rmdir)
- ENSC_PATHPROG(SED, sed)
- ENSC_PATHPROG(SH, sh)
- ENSC_PATHPROG(TAC, tac)
- ENSC_PATHPROG(TAR, tar)
- ENSC_PATHPROG(TOUCH, touch)
- ENSC_PATHPROG(TTY, tty)
- ENSC_PATHPROG(UMOUNT, umount)
- ENSC_PATHPROG(WC, wc)
-])
-
+++ /dev/null
-dnl $Id: ensc_personality.m4 2159 2005-07-15 19:40:15Z ensc $
-
-dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-dnl Usage: ENSC_CHECK_PERSONALITY_FLAGS
-AC_DEFUN([ENSC_CHECK_PERSONALITY_FLAGS],
-[
- AC_MSG_CHECKING([for declarations in <linux/personality.h>])
- AC_MSG_RESULT([])
-
- AC_LANG_PUSH(C)
- AC_CHECK_DECLS([MMAP_PAGE_ZERO, ADDR_LIMIT_32BIT, SHORT_INODE,
- WHOLE_SECONDS, STICKY_TIMEOUTS, ADDR_LIMIT_3GB],
- [],[],
- [
-#include <linux/personality.h>
- ])
-
- AC_CHECK_DECLS([PER_LINUX, PER_LINUX_32BIT, PER_SVR4, PER_SVR3,
- PER_SCOSVR3, PER_OSR5, PER_WYSEV386, PER_ISCR4,
- PER_BSD, PER_SUNOS, PER_XENIX, PER_LINUX32,
- PER_LINUX32_3GB, PER_IRIX32, PER_IRIXN32,
- PER_IRIX64, PER_RISCOS, PER_SOLARIS, PER_UW7,
- PER_HPUX, PER_OSF4],
- [], [],
- [
-#include <linux/personality.h>
- ])
- AC_LANG_POP
-])
-
+++ /dev/null
-dnl $Id: ensc_release.m4 476 2003-12-26 00:22:49Z uid68581 $
-
-dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-dnl Usage: ENSC_RELEASE(<cppflag-variable>)
-dnl <cppflag-variable> ... name of variable which will get the preprocessor
-dnl flags and which will be AC_SUBST'ed
-
-AC_DEFUN([ENSC_RELEASE],
-[
- AC_MSG_CHECKING([whether to enable release-mode])
- AC_ARG_ENABLE([release],
- [AC_HELP_STRING([--enable-release],
- [enable release mode (default: no)])],
- [case "$enableval" in
- yes) ensc_release_mode=yes;;
- no) ensc_release_mode=no;;
- *) AC_MSG_ERROR(['$enableval' is not a valid value for '--enable-release']);;
- esac],
- [ ensc_release_mode=no ])
-
- if test x"$ensc_release_mode" = xno; then
- $1=
- else
- $1='-DNDEBUG'
- fi
-
- AC_SUBST($1)
- AC_MSG_RESULT($ensc_release_mode)
-])
+++ /dev/null
-dnl $Id: ensc_syscall.m4 2194 2005-10-28 17:51:48Z ensc $
-
-dnl Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-dnl Usage: ENSC_SYSCALL
-
-AC_DEFUN([ENSC_SYSCALL_ALTERNATIVE],
-[
- AC_MSG_CHECKING([whether to use alternative _syscallX macros])
- AC_ARG_ENABLE([alternative-syscalls],
- [AC_HELP_STRING([--disable-alternative-syscalls],
- [do not use the alternative _syscallX macros
- provided by Herbert Poetzl (default: use them)])],
- [case $enableval in
- (yes|no) ensc_use_alternative_syscall_macros=$enableval;;
- (*) AC_MSG_ERROR(['$enableval' is not a valid value for '--disable-alternative-syscalls']);;
- esac],
- [ensc_use_alternative_syscall_macros=yes])
-
- case $ensc_use_alternative_syscall_macros in
- (yes) AC_DEFINE(ENSC_USE_ALTERNATIVE_SYSCALL_MACROS, 1, [Use alternative _syscallX macros]);;
- esac
-
- AC_MSG_RESULT([$ensc_use_alternative_syscall_macros])
-])
-
-AC_DEFUN([ENSC_SYSCALL],
-[
- AC_REQUIRE([ENSC_SYSCALL_ALTERNATIVE])
-
- AC_MSG_CHECKING([for syscall(2) invocation method])
- AC_ARG_WITH([syscall],
- [AC_HELP_STRING([--with-syscall=METHOD],
- [call syscall(2) with the specified METHOD; valid values are 'fast', 'traditional' and 'auto' (default: auto)])],
- [],
- [with_syscall=auto])
- AC_MSG_RESULT([$with_syscall])
-
- case x"$with_syscall" in
- (xauto)
- AC_CACHE_CHECK([which syscall(2) invocation works], [ensc_cv_test_syscall],
- [
- AC_LANG_PUSH(C)
- AC_COMPILE_IFELSE(AC_LANG_SOURCE([
-#include "$srcdir/lib/syscall-wrap.h"
-#include <errno.h>
-
-#define __NR_foo0 300
-#define __NR_foo1 301
-#define __NR_foo2 302
-#define __NR_foo3 303
-#define __NR_foo4 304
-#define __NR_foo5 305
-inline static _syscall0(int, foo0)
-inline static _syscall1(int, foo1, int, a)
-inline static _syscall2(int, foo2, int, a, int, b)
-inline static _syscall3(int, foo3, int, a, int, b, int, c)
-inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
-inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
-
-int main() {
- return foo0() || \
- foo1(1) || \
- foo2(1,2) || \
- foo3(1,2,3) || \
- foo4(1,2,3,4) || \
- foo5(1,2,3,4,5);
-}
- ]),
- [ensc_cv_test_syscall=fast],
- [ensc_cv_test_syscall=traditional])
-
- AC_LANG_POP
- ])
- with_syscall=$ensc_cv_test_syscall
- ;;
- (xfast|xtraditional)
- ;;
- *)
- AC_MSG_ERROR(['$with_syscall' is not a valid value for '--with-syscall'])
- ;;
- esac
-
- if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
- with_syscall='alternative'
- fi
-
- if test x"$with_syscall" = xtraditional; then
- AC_DEFINE(ENSC_SYSCALL_TRADITIONAL, 1, [Define to 1 when the fast syscall(2) invocation does not work])
- fi
-
- AH_BOTTOM([
-#if defined(__pic__) && defined(__i386) && !defined(ENSC_SYSCALL_TRADITIONAL) && !defined(ENSC_USE_ALTERNATIVE_SYSCALL_MACROS)
-# define ENSC_SYSCALL_TRADITIONAL 1
-#endif])
-])
+++ /dev/null
-dnl $Id: ensc_syscallnr.m4 2187 2005-10-28 16:01:19Z ensc $
-
-dnl Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-dnl Usage: ENSC_SYSCALLNR(<syscall>,<default>[,<fallback>])
-
-AC_DEFUN([ENSC_SYSCALLNR],
-[
- AC_REQUIRE([AC_PROG_CPP])
- AC_REQUIRE([AC_PROG_EGREP])
-
- AC_CACHE_CHECK([for number of syscall '$1'], [ensc_cv_value_syscall_$1],
- [
- AC_LANG_PUSH(C)
- AC_LANG_CONFTEST([
-#ifdef ENSC_SYSCALL_FALLBACK
-# include ENSC_SYSCALL_FALLBACK
-#else
-# include <asm/unistd.h>
-#endif
-#ifdef __NR_$1
-ensc_syscall_tmp_nr=__NR_$1;
-ensc_syscall_tmp_src=ENSC_MARK
-#endif
-])
- ensc_syscall_tmp_nr=
- ensc_syscall_tmp_src=
- test x"$ensc_syscall_tmp_nr" != x || \
- eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc' conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[[1-9]][[0-9]]*;|src=.*)$')
- test x"$ensc_syscall_tmp_nr" != x -o x'$3' = x || \
- eval $($CPP $CPPFLAGS -D ENSC_MARK='fallback' -D ENSC_SYSCALL_FALLBACK='"$3"' conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[[1-9]][[0-9]]*;|src=.*)$')
- test "$ensc_syscall_tmp_nr" || {
- ensc_syscall_tmp_nr=$2
- ensc_syscall_tmp_src=default
- }
-
- if test x"$ensc_syscall_tmp_nr" = x; then
- AC_MSG_ERROR(
-[Can not determine value of __NR_$1; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_$1=<value>' environment when calling configure.])
- fi
- AC_LANG_POP
-
- ensc_cv_value_syscall_$1="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
- ])
-
- ensc_syscall_tmp_nr=${ensc_cv_value_syscall_$1%/*}
- ensc_syscall_tmp_src=${ensc_cv_value_syscall_$1#*/}
-
- if test x"$ensc_syscall_tmp_src" != x'glibc'; then
- AC_DEFINE_UNQUOTED(ENSC_SYSCALL__NR_$1, $ensc_syscall_tmp_nr, [The number of the $1 syscall])
- fi
-])
+++ /dev/null
-dnl $Id: ensc_uv_vrootdir.m4 476 2003-12-26 00:22:49Z uid68581 $
-
-dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; version 2 of the License.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-dnl Usage: ENSC_UV_VROOTDIR[(<vserverdir-variable>)]
-dnl <vserverdir-variable> ... name of variable which will get assigned
-dnl the dirname of the vserver-topdir
-
-AC_DEFUN([ENSC_UV_VROOTDIR],
-[
- AC_MSG_CHECKING([which vserver-rootdir is to use])
- AC_ARG_WITH([vrootdir],
- [AC_HELP_STRING([--with-vrootdir=DIR],
- [place vservers under DIR (default: /vservers)])],
- [case "$withval" in
- yes|no) AC_MSG_ERROR(['$withval' is not a valid value for vrootdir]);;
- *) ensc_uv_path_vrootdir=$withval;;
- esac],
- [ensc_uv_path_vrootdir=/vservers])
- AC_MSG_RESULT([$ensc_uv_path_vrootdir])
-
- if test x"$1" != x; then
- $1=$ensc_uv_path_vrootdir
- AC_SUBST($1)
- fi
-])
+++ /dev/null
-## $Id: gpgsig.am 1572 2004-05-21 15:46:40Z ensc $
-
-## Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-gpgsig:
- gpgkey=$(GPG_KEY); \
- gpg $${gpgkey:+--default-key "$$gpgkey"} --armor --detach-sign $(distdir).tar.bz2
+++ /dev/null
-## $Id: install-notify.am 2083 2005-05-05 09:17:41Z ensc $
-
-## Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-install-exec-hook install-data-hook: install-notify-xtra
-
-
-install-notify-xtra:
- @echo
- @echo
- @echo '***************************'
- @echo '*'
- @echo '* NOTE: a plain "make install" installs only the files under $$(prefix)'
- @echo '* which might be insufficient. To complete the installation,'
- @echo '* "make install-distribution" should be executed. See README,'
- @echo '* "Notes for distributors" for details.'
- @echo '*'
- @echo '***************************'
- @echo
- @echo
-
-
-.PHONY: install-notify-xtra
+++ /dev/null
-## $Id: libsel.am 2009 2005-04-10 00:53:56Z ensc $
-
-## Copyright (C) 2002,2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-
-if !ENSC_USE_DIETLIBC
-nodist_lib_dietlibc_not_enabled_error_a_SOURCES = \
- lib-dietlibc-not-enabled-error.c
-endif
-
-if !ENSC_USE_GLIBC
-nodist_lib_glibc_not_enabled_error_a_SOURCES = \
- lib-glibc-not-enabled-error.c
-endif
-
-# if !ENSC_USE_DIETLIBC
-# if !ENSC_USE_GLIBC
-# nodist_lib_nolib_enabled_error_a_SOURCES = \
-# lib-nolib-enabled-error.c
-# endif
-# endif
-
-
-.PHONY: lib-glibc-not-enabled-error.a \
- lib-glibc-not-enabled-error.c \
- lib-dietlibc-not-enabled-error.a \
- lib-dietlibc-not-enabled-error.c \
- lib-nolib-enabled-error.a \
- lib-nolib-enabled-error.c
+++ /dev/null
-## $Id: pkgconfig.am 2188 2005-10-28 16:03:28Z ensc $ ---*- makefile -*---
-
-## Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-BAD_INC_PATHS = /usr/include|/usr/local/include
-BAD_LIB_PATHS = /usr/lib
-
-pkgconfdir = $(libdir)/pkgconfig
-pkgconf_DATA = $(addsuffix .pc, $(PKGCONFIG_FILES))
-
-CLEANFILES += $(addsuffix .pc, $(PKGCONFIG_FILES))
-EXTRA_DIST += $(addsuffix .pc.subst, $(PKGCONFIG_FILES))
-
-pkgconf_SUBST = s!@'PACKAGE'@!$(PACKAGE)!g; \
- s!@'VERSION'@!$(VERSION)!g; \
- s!@'prefix'@!$(prefix)!g; \
- s!@'exec_prefix'@!$(exec_prefix)!g; \
- s!@'libdir'@!$(libdir)!g; \
- s!@'includedir'@!$(includedir)!g; \
- s!@'libflags"@!$${libflags}$(pkgconf_LIBFLAGS)!g;"' \
- s!@'incflags"@!$${incflags}$(pkgconf_INCFLAGS)!g;"' \
- s!@'pkgincflags"@!$${pkgincflags}$(pkgconf_PKGINCFLAGS)!g;"' \
- s!@'pkgincludedir'@!$(pkgincludedir)!g
-
-
-%.pc: %.pc.subst Makefile
- rm -f $@
- @case '$(libdir)' in \
- $(BAD_LIB_PATHS)) libflags=;; \
- *) libflags='-L$${libdir} ';; \
- esac; \
- case '$(pkgincludedir)' in \
- $(BAD_INC_PATHS)) pkgincflags=;; \
- *) pkgincflags='-I$${pkgincludedir} ';; \
- esac; \
- case '$(includedir)' in \
- $(BAD_INC_PATHS)) incflags=;; \
- *) incflags='-I$${includedir} ';; \
- esac; \
- echo sed -e '$(pkgconf_SUBST)' "$< >$@"; \
- sed -e '$(pkgconf_SUBST)' $< >$@
- test -z "$(CHMOD_REFERENCE)" || $(CHMOD_REFERENCE) '$<' '$@'
- chmod a-w $@
+++ /dev/null
-## $Id: validate.am 592 2004-01-14 00:01:15Z ensc $ ---*- makefile -*---
-
-## Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-$(BUILT_SOURCES) config.h: .X$(subst /,_,$(sysconfdir))-up-to-date
-
-distclean-local: distclean-uptodate
-
-distclean-uptodate:
- @rm -f .*-up-to-date
-
-.%-up-to-date:
- @rm -f .*-up-to-date
- @$(MAKE) -s clean
- @touch -t 197001020000 '$@'
- @$(MAKE) -s $(BUILT_SOURCES)
+++ /dev/null
-## $Id: Makefile-files 1192 2004-03-10 02:30:34Z ensc $ -*- makefile -*-
-
-## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-man_pages = man/chbind.8 \
- man/chcontext.8 \
- man/distrib-info.8 \
- man/rebootmgr.8 \
- man/reducecap.8 \
- man/vps.8 \
- man/vpstree.8 \
- man/vserver-copy.8 \
- man/vserver-stat.8 \
- man/vserver.8 \
- man/vtop.8
-
-man_MANS += $(man_pages)
-EXTRA_DIST += $(man_pages)
+++ /dev/null
-.TH "chbind" "8" "0.1.0" "Klavs Klavsen <kl@vsen.dk>" "System Administration"
-.SH "NAME"
-.LP
-chbind \- The chbind utility is used to lock a process and its children into using a specific IP number/Interface.
-.SH "SYNTAX"
-.LP
-chbind [\fI\-\-silent\fP] [\fI\-\-ip ip_number/interface\fP] <\fIcommand arguments\fP>
-.SH "DESCRIPTION"
-.LP
-The chbind utility executes a command, and locks the resulting process and its children into using a specific IP number/Interface, no matter what it is told in it's configuration. This applies to services and client connection as well.
-.SH "OPTIONS"
-.LP
-.TP
-\fB\-\-ip\fR ip_number/interface
-Binds the process to the given IP number or Interface. If an interface
-is supplied (for example eth0), both the IP number and broadcast address
-are extracted.
-.TP
-\fB\-\-bcast\fR broadcast address
-Binds the process to the given broadcast IP number.
-.TP
-\fB\-\-silent\fR
-Do not complain.
-
-.SH "FILES"
-.LP
-\fI/usr/sbin/chbind\fP
-
-
-.SH "EXAMPLES"
-.LP
-If I wanted to ensure my httpd listened only on my eth0 interface, I could do:
-chbind \-\-ip eth0 /etc/rc.d/init.d/httpd start
-.LP
-Please contribute some, if you feel it's important.
-.SH "AUTHORS"
-.LP
-This Man page was written by Klavs Klavsen <kl@vsen.dk> and based upon the helpful output from the program itself and the documentation on the Virtual Server site <http://www.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=0>
-.SH "SEE ALSO"
-.LP
-chcontext(8) rebootmgr(8) reducecap(8)
-vps(8) vpstree(8) vrpm(8) vserver(8)
-vserver\-stat(8) vtop(8)
+++ /dev/null
-.TH "chcontext" "8" "0.1.0" "Klavs Klavsen <kl@vsen.dk>" "System Administration"
-.SH "NAME"
-.LP
-chcontext \- chcontext allocates a new security context and executes a command in that context.
-.SH "SYNTAX"
-.LP
-chcontext [\fIoptions\fP] <\fIcommand arguments\fP>
-.SH "DESCRIPTION"
-.LP
-chcontext allocates a new security context and executes a command in that context.
-By default, a new/unused context is allocated
-.SH "OPTIONS"
-.LP
-.TP
-\fB\-\-cap\fR CAP_NAME
-Add a capability from the command. This option may be repeated several time. See /usr/include/linux/capability.h In general, this option is used with the \-\-secure option. \-\-secure removes most critical capabilities and \-\-cap adds specific ones.
-.TP
-\fB\-\-cap\fR !CAP_NAME
-Remove a capability from the command. This option may be repeated several time. See /usr/include/linux/capability.h
-.TP
-\fB\-\-ctx\fR num
-Select the context. Only root in context 0 is allowed to select a specific context.
-Context number 1 is special. It can see all processes in any contexts, but can't kill them though.
-.TP
-\fB\-\-disconnect\fR
-Start the command in background and make the process a child of process 1.
-.TP
-\fB\-\-domainname\fR new_domainname
-Set the domainname (NIS) in the new security context.
-Use "none" to unset the domainname.
-.TP
-\fB\-\-flag\fR
-Set one flag in the new or current security context. The following flags are supported. The option may be used several time.
- lock: The new process is trapped and can't use
- chcontext anymore.
- sched: The new process and its children will
- share a common execution priority.
- nproc: Limit the number of process in the
- vserver according to ulimit setting.
- Normally, ulimit is a per user thing.
- With this flag, it becomes a per vserver
- thing.
- private: No one can join this security context
- once created.
-.TP
-\fB\-\-hostname\fR new_hostname
-Set the hostname in the new security context.
-This is needed because if you create a less privileged security context, it may be unable to change its hostname.
-.TP
-\fB\-\-secure\fR
-Remove all the capabilities to make a virtual server trustable.
-.TP
-\fB\-\-silent\fR
-Do not print the allocated context number.
-.LP
-Information about context is found in /proc/self/status
-.SH "FILES"
-.LP
-\fI/usr/sbin/chcontext\fP
-
-
-.SH "EXAMPLES"
-.LP
-# You must be root, running X.
-# We start an xterm in another security context
-/usr/sbin/chcontext xterm &
-
-# We check, there is no xterm running, yet we can
-# see it.
-ps ax | grep xterm
-
-# Are we running in security context 0
-# We check the s_context line in /proc/self/status
-cat /proc/self/status
-
-# Ok we in security context 0
-# Try the security context 1
-/usr/sbin/chcontext \-\-ctx 1 ps ax | grep xterm
-
-# Ok, we see the xterm, we try to kill it
-/usr/sbin/chcontext \-\-ctx 1 killall xterm
-
-# No, security context 1 can see, but can't kill
-# let's find out in which security context this
-# xterm is running
-/usr/sbin/chcontext \-\-ctx 1 ps ax | grep xterm
-
-# Ok, this is PID XX. We need the security context
-/usr/sbin/chcontext \-\-ctx 1 cat /proc/XX/status
-
-# We see the s_context, this is SS.
-# We want to kill this process
-/usr/sbin/chcontext \-\-ctx SS killall xterm
-.LP
-Please contribute some, if you feel it's important.
-.SH "AUTHORS"
-.LP
-This Man page was written by Klavs Klavsen <kl@vsen.dk> and based upon the helpful output from the program itself and the documentation on the Virtual Server site <http://www.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=0>
-.SH "SEE ALSO"
-.LP
-chbind(8) rebootmgr(8) reducecap(8)
-vps(8) vpstree(8) vrpm(8) vserver(8)
-vserver\-stat(8) vtop(8)
+++ /dev/null
-.TH "distrib-info" "8" "0.1.0" "Jacques Gelinas <jack@solucorp.qc.ca>" "System Administration"
-.SH "NAME"
-.LP
-distrib-info \- A distribution independant utility to retrieve package information.
-.SH "SYNTAX"
-.LP
-distrib-info vserver-name command [options]
-
-.SH "DESCRIPTION"
-.LP
-distrib-info \- This utility provides a solution to hide some differences
-between Linux distributions. The various utilities (vunify, vbuild, ...)
-need package information to perform their task. They call distrib-info
-to retrieve this information. distrib-info is the only one understanding
-the various distribution out there.
-.TP
-This utility is only used as a back-end for other utilities such as
-vunify and vbuild.
-.SH "OPTIONS"
-.LP
-.TP
-\fBdumpfiles\fR reports all files owned by a package.
-.TP
-\fBpkgversion\fR reports all packages and version.
-.TP
-\fBunifiles\fR reports the files of a package which may be shared by
-several virtual servers. Generally, this excludes all configuration files.
-
-.SH "EXAMPLES"
-.LP
-The following command will report all packages in the vserver ref80.
-The package will be presented with the version/release.
-
- distrib-info ref80 pkgversion
-
-To get the list of unify-able (sharable) file in package sendmail
-of the vserver ref80, we do
-
- distrib-info ref80 unifiles sendmail
-.SH "FILES"
-.LP
- /usr/lib/vservers/distrib-info
-.SH "AUTHORS"
-.LP
-This Man page was written by Jacques Gelinas <jack@solucorp.qc.ca>.
-.SH "SEE ALSO"
-.LP
-vbuild(8) vfiles(8) vunify(8)
-newvserver(8)
-
+++ /dev/null
-.TH "rebootmgr" "8" "0.1.0" "Klavs Klavsen <kl@vsen.dk>" "System Administration"
-.SH "NAME"
-.LP
-rebootmgr \- rebootmgr stops and starts one or more vservers at your command.
-.SH "SYNTAX"
-.LP
-rebootmgr \fIvserver\-name\fP [\fIvserver\-name\fP ...] \fICommand\fP
-.SH "DESCRIPTION"
-.LP
-The chbind utility executes a command, and locks the resulting process and its children into using a specific IP number/Interface, no matter what it is told in it's configuration. This applies to services and client connection as well.
-.SH "OPTIONS"
-.LP
-.TP
-\fB\-\-ip\fR ip_number/interface
-Binds the process to the given IP number or Interface.
-.TP
-\fB\-\-silent\fR
-Do not complain.
-
-.SH "FILES"
-.LP
-\fI/usr/sbin/rebootmgr\fP
-
-
-.SH "EXAMPLES"
-.LP
-If I wanted to ensure my httpd listened only on my eth0 interface, I could do:
-chbind \-\-ip eth0 /etc/rc.d/init.d/httpd start
-.LP
-Please contribute some, if you feel it's important.
-.SH "AUTHORS"
-.LP
-This Man page was written by Klavs Klavsen <kl@vsen.dk> and based upon the helpful output from the program itself and the documentation on the Virtual Server site <http://www.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=0>
-.SH "SEE ALSO"
-.LP
-chcontext(8) chbind(8) reducecap(8)
-vps(8) vpstree(8) vrpm(8) vserver(8)
-vserver\-stat(8) vtop(8)
+++ /dev/null
-.TH "reducecap" "8" "0.1.0" "Klavs Klavsen <kl@vsen.dk>" "System Administration"
-.SH "NAME"
-.LP
-reducecap \- The reducecap utility is used to lower the capability ceiling of a process and child process.
-.SH "SYNTAX"
-.LP
-reducecap [\fIoptions\fP] <\fIcommand arguments\fP>
-.SH "DESCRIPTION"
-.LP
-The reducecap utility is used to lower the capability ceiling of a process and child process. Even setuid program won't be able to grab more capabilities.
-.SH "OPTIONS"
-.LP
-.TP
-\fB\-\-secure\fR Removes all dangerous capabilities from the process executed.Specificly it removes:
-CAP_LINUX_IMMUTABLE CAP_NET_BROADCAST CAP_NET_ADMIN, CAP_NET_RAW CAP_IPC_LOCK CAP_IPC_OWNER CAP_SYS_MODULE CAP_SYS_RAWIO CAP_SYS_PACCT CAP_SYS_ADMIN CAP_SYS_BOOT CAP_SYS_NICE CAP_SYS_RESOURCE CAP_SYS_TIME CAP_MKNOD.
-
-Leaving the following capabilities:
-CAP_CHOWN CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER CAP_FSETID CAP_KILL CAP_SETGID CAP_SETUID CAP_NET_BIND_SERVICE CAP_SYS_CHROOT CAP_SYS_PTRACE CAP_SYS_TTY_CONFIG CAP_LEASE CAP_QUOTACTL
-.TP
-\fB\-\-show\fR Shows the current process capabilities.
-.TP
-\fB\-\-flag\fR
-sets the security context flags. The option may be repeated
-several times. Here are the values:
-
-lock: The security context can't be changed. The process is trapped
- in this context. This is generally used for vservers because yoy
- do not want them to hide in new security context.
-
-sched: Each process in a security context contribute (lower) to the general
- priority of every processes in the context. Mostly, all processes
- in a security context take as much CPU together as one process
- not bound to this flag. Said again differently, a vserver having
- 100 active processes won't get more CPU than another vserver
- with a single active process.
-
-
-nproc: The "ulimit -u N" setting becomes global to the security context. It means
- the security context is not allowed to have more than N processes.
-
-private: No other processes, even root in security context 0, is allowed to
- enter this security context. Once a security context is setup
- with this flag, it is on its own. This also means that root
- in security context 0 won't be able to kill or interact with those
- processes.
-
-hideinfo: Hides various information in /proc.
-
-.TP
-\fB--LINUX_IMMUTABLE\fR
-.TP
-\fB--NET_BIND_SERVICE\fR
-.TP
-\fB--NET_BROADCAST\fR
-.TP
-\fB--NET_ADMIN\fR
-.TP
-\fB--NET_RAW\fR
-.TP
-\fB--IPC_LOCK\fR
-.TP
-\fB--IPC_OWNER\fR
-.TP
-\fB--SYS_MODULE\fR
-.TP
-\fB--SYS_RAWIO\fR
-.TP
-\fB--SYS_PACCT\fR
-.TP
-\fB--SYS_ADMIN\fR
-.TP
-\fB--SYS_BOOT\fR
-.TP
-\fB--SYS_NICE\fR
-.TP
-\fB--SYS_RESOURCE\fR
-.TP
-\fB--SYS_TIME\fR
-.TP
-\fB--MKNOD\fR
-
-All these options remove one capability. These options may be used
-after the
-\fB--secure\fR
-option to remove more capabilities.
-
-
-.SH "FILES"
-.LP
-\fI/usr/sbin/reducecap\fP
-
-
-.SH "EXAMPLES"
-.LP
-# You are not root now
-# What is the current capability ceiling
-cat /proc/self/status
-# The capBset line presents mostly 1s.
-/usr/sbin/reducecap \-\-secure /bin/sh
-cat /proc/self/status
-# The capBset now shows many more 0s.
-# The capEff shows all 0s, you have no privilege now
-# We su to root
-su
-cat /proc/self/status
-# capEff is much better now, but there are still many 0s
-# Now we try to see if we are really root
-tail /var/log/messages
-# So far so good, we see the content
-/sbin/ifconfig eth0
-/sbin/ifconfig eth0 down
-# No way, we can't configure the interface. In fact
-# we have lost most privilege normally assigned to root
-exit
-.LP
-Please contribute some more, if you feel it's important.
-.SH "AUTHORS"
-.LP
-This Man page was written by Klavs Klavsen <kl@vsen.dk> and based upon the helpful output from the program itself and the documentation on the Virtual Server site <http://www.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=0>
-.SH "SEE ALSO"
-.LP
-chcontext(8) rebootmgr(8) chbind(8)
-vps(8) vpstree(8) vrpm(8) vserver(8)
-vserver\-stat(8) vtop(8)
+++ /dev/null
-.TH "vps" "8" "0.1.0" "Klavs Klavsen <kl@vsen.dk>" "System Administration"
-.SH "NAME"
-.LP
-vps \- The vps utility is simply a wrapper for the ps program.
-.SH "SYNTAX"
-.LP
-vps [\fIoptions\fP]
-
-.SH "DESCRIPTION"
-.LP
-vps \- The vps utility is simply a wrapper for the ps program, that enables ps to show you the all the processes on the system, instead of only the ones in the current s_context (see cat /proc/self/status).
-.SH "OPTIONS"
-.LP
-.TP
-See man ps.
-.SH "FILES"
-.LP
-\fI/usr/sbin/vps\fP
-
-
-.SH "EXAMPLES"
-.LP
-Please contribute some, if you feel it's important.
-.SH "AUTHORS"
-.LP
-This Man page was written by Klavs Klavsen <kl@vsen.dk> and based upon the helpful output from the program itself and the documentation on the Virtual Server site <http://www.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=0>
-.SH "SEE ALSO"
-.LP
-chcontext(8) rebootmgr(8) reducecap(8)
-chbind(8) vpstree(8) vrpm(8) vserver(8)
-vserver\-stat(8) vtop(8)
+++ /dev/null
-.TH "vpstree" "8" "0.1.0" "Klavs Klavsen <kl@vsen.dk>" "System Administration"
-.SH "NAME"
-.LP
-vpstree \- The vpstree utility is simply a wrapper for the pstree program.
-.SH "SYNTAX"
-.LP
-vpstree [\fIoptions\fP]
-
-.SH "DESCRIPTION"
-.LP
-vpstree \- The vpstree utility is simply a wrapper for the pstree program, that enables pstree to show you the all the processes on the system, instead of only the ones in the current s_context (see cat /proc/self/status).
-.SH "OPTIONS"
-.LP
-.TP
-See man pstree.
-.SH "FILES"
-.LP
-\fI/usr/sbin/vpstree\fP
-
-
-.SH "EXAMPLES"
-.LP
-Please contribute some, if you feel it's important.
-.SH "AUTHORS"
-.LP
-This Man page was written by Klavs Klavsen <kl@vsen.dk> and based upon the helpful output from the program itself and the documentation on the Virtual Server site <http://www.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=0>
-.SH "SEE ALSO"
-.LP
-chcontext(8) rebootmgr(8) reducecap(8)
-chbind(8) vps(8) vrpm(8) vserver(8)
-vserver\-stat(8) vtop(8)
+++ /dev/null
-.TH "vserver-copy" "8" "0.3" "Mark Lawrence <nomad@null.net>" "System Administration"
-.SH "NAME"
-.LP
-vserver-copy \- copy/move a virtual server.
-.SH "SYNTAX"
-.LP
-vserver-copy [\fIoptions\fP] \fIvserver\fP \fInewname\fP
-.LP
-vserver-copy [\fIoptions\fP] \fIvserver\fP \fIhost\fP:[\fInewname\fP]
-.SH "DESCRIPTION"
-.LP
-vserver-copy makes a copy of a virtual server using rsync. It will
-rewrite the vserver.conf configuration file with the new hostname and
-IP information when given. If the destination name contains a host
-specification then ssh/rsh will be used for the data transfer.
-
-vserver-copy can used on a running vserver, although naturally the
-consistency of open database files and the like cannot be guaranteed.
-A running vserver can however be safely moved from one root host to another
-using the \-s flag.
-
-If downtime is an issue when moving a virtual server across hosts you
-should first run vserver without the \-s flag. This will pre\-populate the
-destination filesystem requiring only updates to be made on the next
-invocation.
-.SH "OPTIONS"
-.LP
-.TP
-\fB\-h\fR,\fB-\-help\fR
-output usage information and exit
-.TP
-\fB\-V\fR,\fB-\-version\fR
-output version information and exit
-.TP
-\fB\-v\fR,\fB-\-verbose\fR
-show all output (normally only informational messages and warnings)
-.TP
-\fB\-q\fR,\fB-\-quiet\fR
-suppress all output
-.TP
-\fB\-d\fR,\fB-\-domain\fR domain
-the new DNS domain when changing name. Overwrites /etc/hosts. Must be
-used with \-i
-.TP
-\fB\-i\fR,\fB-\-ip\fR address
-the new IP address when changing name. Overwrites /etc/hosts. Must be
-used with \-d
-.TP
-\fB\-r\fR,\fB-\-vsroot\fR
-directory containing virtual servers. Defaults to "/vserver"
-.TP
-\fB\-R\fR,\fB-\-rsh\fR
-use rsh instead of the default ssh for network transfer
-.TP
-\fB\-s\fR,\fB-\-stopstart\fR
-stop the virtual server before copying and start the new vserver afterwards.
-This really only makes sense if you are copying across root hosts and not
-changing names or IP addresses.
-.SH "FILES"
-.LP
-\fI/etc/vservers/vserver.conf\fP
-.SH "EXAMPLES"
-.LP
-# Copy a template vserver (same IP addresses etc)
-
-/usr/sbin/vserver-copy template web01
-
-# Copy webserver with change in configuration
-
-/usr/sbin/vserver-copy -i 192.168.5.62 -d example.com template web62
-
-# Move a running vserver to another roothost
-
-/usr/sbin/vserver-copy -s web62 roothost02:
-
-.SH "BUGS"
-.LP
-If a virtual server is moved from one root host to another a gratuitious
-ping should be sent to inform other devices on the local area network
-of the change in MAC address.
-
-Without this ping the devices will continue to attempt to reach the old
-MAC address for the length of their arp-cache timeout (10 minute default
-on Suns!).
-
-This functionality should probably be implmemented during the
-"vserver <name> start" process.
-.SH "AUTHOR"
-.LP
-Mark Lawrence <nomad@null.net>
-.SH "SEE ALSO"
-.LP
-vserver(8)
+++ /dev/null
-.TH "vserver-stat" "8" "0.1.0" "Klavs Klavsen <kl@vsen.dk>" "System Administration"
-.SH "NAME"
-.LP
-vserver\-stat
-.SH "SYNTAX"
-.LP
-vserver\-stat
-
-.SH "DESCRIPTION"
-.LP
-vserver\-stat \- The vserver\-stat utility shows informations about all the active contexts.
-
- CTX# Context number
- #0 = root context
- #1 = monitoring context
- PROC QTY Quantity of processes in each
- context
- VSZ Number of pages of virtual
- memory
- RSS Resident set size
- utime User\-mode CPU time
- accumulated
- ctime Kernel\-mode CPU time
- accumulated
-.SH "FILES"
-.LP
-\fI/usr/sbin/vserver\-stat\fP
-
-
-.SH "EXAMPLES"
-.LP
-Please contribute some, if you feel it's important.
-.SH "AUTHORS"
-.LP
-This Man page was written by Klavs Klavsen <kl@vsen.dk> and based upon the helpful output from the program itself and the documentation on the Virtual Server site <http://www.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=0>
-.SH "SEE ALSO"
-.LP
-chcontext(8) rebootmgr(8) reducecap(8)
-chbind(8) vps(8) vrpm(8) vserver(8)
-vtop(8) vpstree(8)
+++ /dev/null
-.TH "vserver" "8" "0.1.0" "Klavs Klavsen <kl@vsen.dk>" "System Administration"
-.SH "NAME"
-.LP
-vserver \- The vserver utility enables you to control different aspects of your vservers.
-.SH "SYNTAX"
-.LP
-vserver [ options ] [vserver name] [options]
-
-.SH "DESCRIPTION"
-.LP
-vserver \- The vserver utility enables you to control different aspects of your vservers, such as stopping and starting them, and services within them.
-.SH "OPTIONS"
-.LP
-.TP
-\fBbuild\fR Create a virtual server by copying the packages of the root server
-.TP
-\fBenter\fR Enter in the virtual server context and starts a shell. Same as "vserver name exec /bin/sh\".
-.TP
-\fBexec\fR Exec a command in the virtual server context as root.
-syntax: vserver name exec command ...
-.TP
-\fBsuexec\fR Exec a command in the virtual server context under some user id.
-syntax: vserver name suexec userid command ...
-.TP
-\fBservice\fR Control a service inside a vserver.
-syntax: vserver name service service\-name (start/stop/restart etc.)
-.TP
-\fBstart\fR Starts the various services in the vserver.
-It uses the default runlevel found in the
-.B /etc/inittab
-file of the vserver.
-.TP
-\fBstop\fR Ends all services and kills the remaining processes.
-.TP
-\fBrunning\fR Tells if a virtual server is running. It returns proper exit code, so you can use it as a test.
-.TP
-\fBstatus\fR Tells various information about the state of a virtual server:
-running status, number of running processes and uptime.
-.TP
-.I --nodev
-do not configure the IP devices associated with the vserver. This
-is useful to execute some commands on the vserver (or enter it)
-without making it active on the network. Especially useful if you
-have an active copy of the vserver moved to another server on the
-network.
-.TP
-.I --silent
-cuts most informative messages.
-
-.SH "FILES"
-.LP
-\fI/usr/sbin/vserver\fP
-.P
-\fI/etc/vservers/*.conf\fP
-.P
-\fI/etc/vservers/*.sh\fP
-.P
-\fI/vservers/*\fP
-
-.SH "EXAMPLES"
-.LP
-Please contribute some, if you feel it's important.
-.SH "AUTHORS"
-.LP
-This Man page was written by Klavs Klavsen <kl@vsen.dk> and based upon the helpful output from the program itself and the documentation on the Virtual Server site <http://www.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=0>
-.SH "SEE ALSO"
-.LP
-chbind(8) chcontext(8)
-newvserver(8)
-rebootmgr(8) reducecap(8)
-vps(8) vpstree(8)
-vrpm(8)
-vserver\-stat(8)
-vtop(8)
+++ /dev/null
-.de Sh \" Subsection
-.br
-.if t .Sp
-.ne 5
-.PP
-\fB\\$1\fR
-.PP
-..
-.de Sp \" Vertical space (when we can't use .PP)
-.if t .sp .5v
-.if n .sp
-..
-.de Ip \" List item
-.br
-.ie \\n(.$>=3 .ne \\$3
-.el .ne 3
-.IP "\\$1" \\$2
-..
-.TH "VSH" 8 "2004-07-29" "PlanetLab specific Vserver shell" "vsh"
-
-.SH NAME
-vsh \- Safely trampoline's a slice user from global vserver context to
-the correspondingly named local vserver context\&.
-
-.SH "SYNOPSIS"
-
-.PP
-\fBvsh\fR [COMMAND] \fR
-
-.TP
-[COMMAND]
-when specified, the command to run, otherwise vsh will just run the
-user's shell as a login shell
-
-.SH "SUMMARY"
-
-.PP
-vsh is used as the login shell for slice users in the global vserver's
-/etc/passwd\&. It is invoked either by sshd when a slice user logs on
-to a PlanetLab node or as root using the su command\&. When this
-occurs, vsh switches vserver context and sets the uid/gid of the slice
-user, as specified in the slice's vserver /etc/passwd\&.
-
-.PP
-vsh assumes that the same account (by name) used to ssh/su into the
-vserver also exists in the vserver specific /etc/passwd file\&. This
-is the only reason that for now it is deemed to be PlanetLab
-specific\&.
+++ /dev/null
-.TH "vtop" "8" "0.1.0" "Klavs Klavsen <kl@vsen.dk>" "System Administration"
-.SH "NAME"
-.LP
-vtop \- The vtop utility is simply a wrapper for the top program.
-.SH "SYNTAX"
-.LP
-vtop [\fIoptions\fP]
-
-.SH "DESCRIPTION"
-.LP
-vtop \- The vtop utility is simply a wrapper for the top program, that enables top to show you the all the processes on the system, instead of only the ones in the current s_context (see cat /proc/self/status).
-.SH "OPTIONS"
-.LP
-.TP
-See man top.
-.SH "FILES"
-.LP
-\fI/usr/sbin/vtop\fP
-
-
-.SH "EXAMPLES"
-.LP
-Please contribute some, if you feel it's important.
-.SH "AUTHORS"
-.LP
-This Man page was written by Klavs Klavsen <kl@vsen.dk> and based upon the helpful output from the program itself and the documentation on the Virtual Server site <http://www.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1&nodoc=0>
-.SH "SEE ALSO"
-.LP
-chcontext(8) rebootmgr(8) reducecap(8)
-chbind(8) vps(8) vrpm(8) vserver(8)
-vserver\-stat(8) vpstree(8)
+++ /dev/null
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-
-scriptversion=2006-05-10.23
-
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
-# Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# 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.
-
-if test $# -eq 0; then
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
-fi
-
-run=:
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
- configure_ac=configure.ac
-else
- configure_ac=configure.in
-fi
-
-msg="missing on your system"
-
-case $1 in
---run)
- # Try to run requested program, and just exit if it succeeds.
- run=
- shift
- "$@" && exit 0
- # Exit code 63 means version mismatch. This often happens
- # when the user try to use an ancient version of a tool on
- # a file that requires a minimum version. In this case we
- # we should proceed has if the program had been absent, or
- # if --run hadn't been passed.
- if test $? = 63; then
- run=:
- msg="probably too old"
- fi
- ;;
-
- -h|--h|--he|--hel|--help)
- echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
- -h, --help display this help and exit
- -v, --version output version information and exit
- --run try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
- aclocal touch file \`aclocal.m4'
- autoconf touch file \`configure'
- autoheader touch file \`config.h.in'
- autom4te touch the output file, or create a stub one
- automake touch all \`Makefile.in' files
- bison create \`y.tab.[ch]', if possible, from existing .[ch]
- flex create \`lex.yy.c', if possible, from existing .c
- help2man touch the output file
- lex create \`lex.yy.c', if possible, from existing .c
- makeinfo touch the output file
- tar try tar, gnutar, gtar, then tar without non-portable flags
- yacc create \`y.tab.[ch]', if possible, from existing .[ch]
-
-Send bug reports to <bug-automake@gnu.org>."
- exit $?
- ;;
-
- -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
- echo "missing $scriptversion (GNU Automake)"
- exit $?
- ;;
-
- -*)
- echo 1>&2 "$0: Unknown \`$1' option"
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
- ;;
-
-esac
-
-# Now exit if we have it, but it failed. Also exit now if we
-# don't have it and --version was passed (most likely to detect
-# the program).
-case $1 in
- lex|yacc)
- # Not GNU programs, they don't have --version.
- ;;
-
- tar)
- if test -n "$run"; then
- echo 1>&2 "ERROR: \`tar' requires --run"
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- exit 1
- fi
- ;;
-
- *)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- # Could not run --version or --help. This is probably someone
- # running `$TOOL --version' or `$TOOL --help' to check whether
- # $TOOL exists and not knowing $TOOL uses missing.
- exit 1
- fi
- ;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate it.
-case $1 in
- aclocal*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acinclude.m4' or \`${configure_ac}'. You might want
- to install the \`Automake' and \`Perl' packages. Grab them from
- any GNU archive site."
- touch aclocal.m4
- ;;
-
- autoconf)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`${configure_ac}'. You might want to install the
- \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
- archive site."
- touch configure
- ;;
-
- autoheader)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acconfig.h' or \`${configure_ac}'. You might want
- to install the \`Autoconf' and \`GNU m4' packages. Grab them
- from any GNU archive site."
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
- test -z "$files" && files="config.h"
- touch_files=
- for f in $files; do
- case $f in
- *:*) touch_files="$touch_files "`echo "$f" |
- sed -e 's/^[^:]*://' -e 's/:.*//'`;;
- *) touch_files="$touch_files $f.in";;
- esac
- done
- touch $touch_files
- ;;
-
- automake*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
- You might want to install the \`Automake' and \`Perl' packages.
- Grab them from any GNU archive site."
- find . -type f -name Makefile.am -print |
- sed 's/\.am$/.in/' |
- while read f; do touch "$f"; done
- ;;
-
- autom4te)
- echo 1>&2 "\
-WARNING: \`$1' is needed, but is $msg.
- You might have modified some files without having the
- proper tools for further handling them.
- You can get \`$1' as part of \`Autoconf' from any GNU
- archive site."
-
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -f "$file"; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo "#! /bin/sh"
- echo "# Created by GNU Automake missing as a replacement of"
- echo "# $ $@"
- echo "exit 0"
- chmod +x $file
- exit 1
- fi
- ;;
-
- bison|yacc)
- echo 1>&2 "\
-WARNING: \`$1' $msg. You should only need it if
- you modified a \`.y' file. You may need the \`Bison' package
- in order for those modifications to take effect. You can get
- \`Bison' from any GNU archive site."
- rm -f y.tab.c y.tab.h
- if test $# -ne 1; then
- eval LASTARG="\${$#}"
- case $LASTARG in
- *.y)
- SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" y.tab.c
- fi
- SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" y.tab.h
- fi
- ;;
- esac
- fi
- if test ! -f y.tab.h; then
- echo >y.tab.h
- fi
- if test ! -f y.tab.c; then
- echo 'main() { return 0; }' >y.tab.c
- fi
- ;;
-
- lex|flex)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a \`.l' file. You may need the \`Flex' package
- in order for those modifications to take effect. You can get
- \`Flex' from any GNU archive site."
- rm -f lex.yy.c
- if test $# -ne 1; then
- eval LASTARG="\${$#}"
- case $LASTARG in
- *.l)
- SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" lex.yy.c
- fi
- ;;
- esac
- fi
- if test ! -f lex.yy.c; then
- echo 'main() { return 0; }' >lex.yy.c
- fi
- ;;
-
- help2man)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a dependency of a manual page. You may need the
- \`Help2man' package in order for those modifications to take
- effect. You can get \`Help2man' from any GNU archive site."
-
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -f "$file"; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo ".ab help2man is required to generate this page"
- exit 1
- fi
- ;;
-
- makeinfo)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a \`.texi' or \`.texinfo' file, or any other file
- indirectly affecting the aspect of the manual. The spurious
- call might also be the consequence of using a buggy \`make' (AIX,
- DU, IRIX). You might want to install the \`Texinfo' package or
- the \`GNU make' package. Grab either from any GNU archive site."
- # The file to touch is that specified with -o ...
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -z "$file"; then
- # ... or it is the one specified with @setfilename ...
- infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
- file=`sed -n '
- /^@setfilename/{
- s/.* \([^ ]*\) *$/\1/
- p
- q
- }' $infile`
- # ... or it is derived from the source name (dir/f.texi becomes f.info)
- test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
- fi
- # If the file does not exist, the user really needs makeinfo;
- # let's fail without touching anything.
- test -f $file || exit 1
- touch $file
- ;;
-
- tar)
- shift
-
- # We have already tried tar in the generic part.
- # Look for gnutar/gtar before invocation to avoid ugly error
- # messages.
- if (gnutar --version > /dev/null 2>&1); then
- gnutar "$@" && exit 0
- fi
- if (gtar --version > /dev/null 2>&1); then
- gtar "$@" && exit 0
- fi
- firstarg="$1"
- if shift; then
- case $firstarg in
- *o*)
- firstarg=`echo "$firstarg" | sed s/o//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- case $firstarg in
- *h*)
- firstarg=`echo "$firstarg" | sed s/h//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- fi
-
- echo 1>&2 "\
-WARNING: I can't seem to be able to run \`tar' with the given arguments.
- You may want to install GNU tar or Free paxutils, or check the
- command line arguments."
- exit 1
- ;;
-
- *)
- echo 1>&2 "\
-WARNING: \`$1' is needed, and is $msg.
- You might have modified some files without having the
- proper tools for further handling them. Check the \`README' file,
- it often tells you about the needed prerequisites for installing
- this package. You may also peek at any GNU archive site, in case
- some other package would contain this missing \`$1' program."
- exit 1
- ;;
-esac
-
-exit 0
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End:
+++ /dev/null
-// $Id: pathconfig.h.pathsubst 2558 2007-07-10 20:34:48Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_PATHCONFIG_H
-#define H_UTIL_VSERVER_PATHCONFIG_H
-
-#define PKGLIBDIR "@PKGLIBDIR@"
-#define SBINDIR "@SBINDIR@"
-#define CONFDIR "@CONFDIR@"
-#define SYSCONFDIR "@SYSCONFDIR@"
-#define LOCKDIR "/var/lock"
-#define PKGLIBDEFAULTDIR PKGLIBDIR "/defaults"
-
-#define DEFAULT_VSERVERDIR "@VSERVERDIR@"
-#define DEFAULT_VSERVERPKGDIR "@VSERVERPKGDIR@"
-#define DEFAULT_PKGSTATEDIR "@PKGSTATEDIR@"
-#define DEFAULT_PKGSTATEREVDIR "@PKGSTATEREVDIR@"
-
-#define MOUNT_PROG "@MOUNT@"
-#define UMOUNT_PROG "@UMOUNT@"
-#define PS_PROG "@PS@"
-
-#define VPKG_PROG PKGLIBDIR "/vpkg"
-#define RESOLVER_PROG PKGLIBDIR "/rpm-fake-resolver"
-
-#define PROG_IP "@IP@"
-#define PROG_MODPROBE "@MODPROBE@"
-#define PROG_NAMEIF "@NAMEIF@"
-#define PROG_VCONFIG "@VCONFIG@"
-
-#define PROG_SECURE_MOUNT PKGLIBDIR "/secure-mount"
-#define PROG_H2EXT_WORKER PKGLIBDIR "/h2ext-worker"
-
-#define PATH_VSERVER_START PKGLIBDIR "/vserver.start"
-#define PATH_FUNCTIONS PKGLIBDIR "/functions"
-#define PATH_UTILVSERVER_VARS PKGLIBDIR "/util-vserver-vars"
-
-#endif // H_UTIL_VSERVER_PATHCONFIG_H
+++ /dev/null
-.prep-done
-build
+++ /dev/null
-vserverimpl_la_SOURCES = vserverimpl.c
-vserverimpl_la_LIBADD = $(top_builddir)/lib/libvserver.la
-vserverimpl_la_CFLAGS = -Wno-redundant-decls -I$(top_srcdir)/lib $(PYTHON_INCLUDES)
-vserverimpl_la_LDFLAGS = -module -avoid-version
-
-pyexec_LTLIBRARIES = vserverimpl.la
-pyexec_DATA = vserver.py bwlimit.py cpulimit.py
-sbin_SCRIPTS = bwlimit disklimit
+++ /dev/null
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = python
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ensc_cflags.m4 \
- $(top_srcdir)/m4/ensc_changelog.m4 \
- $(top_srcdir)/m4/ensc_cxxcompiler.m4 \
- $(top_srcdir)/m4/ensc_dietlibc.m4 \
- $(top_srcdir)/m4/ensc_dietlibc_compat.m4 \
- $(top_srcdir)/m4/ensc_e2fscheck.m4 \
- $(top_srcdir)/m4/ensc_initrddir.m4 \
- $(top_srcdir)/m4/ensc_pathprog.m4 \
- $(top_srcdir)/m4/ensc_personality.m4 \
- $(top_srcdir)/m4/ensc_release.m4 \
- $(top_srcdir)/m4/ensc_syscall.m4 \
- $(top_srcdir)/m4/ensc_syscallnr.m4 \
- $(top_srcdir)/m4/ensc_uv_vrootdir.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
-am__installdirs = "$(DESTDIR)$(pyexecdir)" "$(DESTDIR)$(sbindir)" \
- "$(DESTDIR)$(pyexecdir)"
-pyexecLTLIBRARIES_INSTALL = $(INSTALL)
-LTLIBRARIES = $(pyexec_LTLIBRARIES)
-vserverimpl_la_DEPENDENCIES = $(top_builddir)/lib/libvserver.la
-am_vserverimpl_la_OBJECTS = vserverimpl_la-vserverimpl.lo
-vserverimpl_la_OBJECTS = $(am_vserverimpl_la_OBJECTS)
-vserverimpl_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(vserverimpl_la_CFLAGS) \
- $(CFLAGS) $(vserverimpl_la_LDFLAGS) $(LDFLAGS) -o $@
-sbinSCRIPT_INSTALL = $(INSTALL_SCRIPT)
-SCRIPTS = $(sbin_SCRIPTS)
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
- $(LDFLAGS) -o $@
-SOURCES = $(vserverimpl_la_SOURCES)
-DIST_SOURCES = $(vserverimpl_la_SOURCES)
-pyexecDATA_INSTALL = $(INSTALL_DATA)
-DATA = $(pyexec_DATA)
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BZIP2 = @BZIP2@
-CAT = @CAT@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CHOWN = @CHOWN@
-CMP = @CMP@
-CP = @CP@
-CPIO = @CPIO@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DIET = @DIET@
-DIETFLAGS = @DIETFLAGS@
-DIRNAME = @DIRNAME@
-DOXYGEN = @DOXYGEN@
-ECHO = @ECHO@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-ENSC_PATHPROG_SED = @ENSC_PATHPROG_SED@
-ENSC_USE_EXPENSIVE_TESTS = @ENSC_USE_EXPENSIVE_TESTS@
-ENV = @ENV@
-EXEEXT = @EXEEXT@
-F77 = @F77@
-FFLAGS = @FFLAGS@
-FILE = @FILE@
-GPG_KEY = @GPG_KEY@
-GREP = @GREP@
-GZIP = @GZIP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-IP = @IP@
-IPTABLES = @IPTABLES@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIB_DEBUG_CPPFLAGS = @LIB_DEBUG_CPPFLAGS@
-LN = @LN@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR = @MKDIR@
-MKDIR_P = @MKDIR_P@
-MKFIFO = @MKFIFO@
-MKTEMP = @MKTEMP@
-MODPROBE = @MODPROBE@
-MOUNT = @MOUNT@
-MV = @MV@
-NAMEIF = @NAMEIF@
-NICE = @NICE@
-NOHUP = @NOHUP@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PS = @PS@
-PYTHON = @PYTHON@
-PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
-PYTHON_INCLUDES = @PYTHON_INCLUDES@
-PYTHON_PLATFORM = @PYTHON_PLATFORM@
-PYTHON_PREFIX = @PYTHON_PREFIX@
-PYTHON_VERSION = @PYTHON_VERSION@
-RANLIB = @RANLIB@
-RELEASE_CPPFLAGS = @RELEASE_CPPFLAGS@
-RESTORE = @RESTORE@
-RM = @RM@
-RMDIR = @RMDIR@
-RMMOD = @RMMOD@
-RSYNC = @RSYNC@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SH = @SH@
-SHELL = @SHELL@
-STRACE = @STRACE@
-STRIP = @STRIP@
-SVN2CL = @SVN2CL@
-TAC = @TAC@
-TAR = @TAR@
-TOUCH = @TOUCH@
-TTY = @TTY@
-UMOUNT = @UMOUNT@
-VCONFIG = @VCONFIG@
-VERSION = @VERSION@
-WC = @WC@
-WGET = @WGET@
-XSLTP = @XSLTP@
-XSLTPROC = @XSLTPROC@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_F77 = @ac_ct_F77@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-initrddir = @initrddir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-pkgpyexecdir = @pkgpyexecdir@
-pkgpythondir = @pkgpythondir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-pyexecdir = @pyexecdir@
-pythondir = @pythondir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-vserverdir = @vserverdir@
-vserverimpl_la_SOURCES = vserverimpl.c
-vserverimpl_la_LIBADD = $(top_builddir)/lib/libvserver.la
-vserverimpl_la_CFLAGS = -Wno-redundant-decls -I$(top_srcdir)/lib $(PYTHON_INCLUDES)
-vserverimpl_la_LDFLAGS = -module -avoid-version
-pyexec_LTLIBRARIES = vserverimpl.la
-pyexec_DATA = vserver.py bwlimit.py cpulimit.py
-sbin_SCRIPTS = bwlimit disklimit
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits python/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnits python/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-install-pyexecLTLIBRARIES: $(pyexec_LTLIBRARIES)
- @$(NORMAL_INSTALL)
- test -z "$(pyexecdir)" || $(MKDIR_P) "$(DESTDIR)$(pyexecdir)"
- @list='$(pyexec_LTLIBRARIES)'; for p in $$list; do \
- if test -f $$p; then \
- f=$(am__strip_dir) \
- echo " $(LIBTOOL) --mode=install $(pyexecLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pyexecdir)/$$f'"; \
- $(LIBTOOL) --mode=install $(pyexecLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pyexecdir)/$$f"; \
- else :; fi; \
- done
-
-uninstall-pyexecLTLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(pyexec_LTLIBRARIES)'; for p in $$list; do \
- p=$(am__strip_dir) \
- echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(pyexecdir)/$$p'"; \
- $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(pyexecdir)/$$p"; \
- done
-
-clean-pyexecLTLIBRARIES:
- -test -z "$(pyexec_LTLIBRARIES)" || rm -f $(pyexec_LTLIBRARIES)
- @list='$(pyexec_LTLIBRARIES)'; for p in $$list; do \
- dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
- test "$$dir" != "$$p" || dir=.; \
- echo "rm -f \"$${dir}/so_locations\""; \
- rm -f "$${dir}/so_locations"; \
- done
-vserverimpl.la: $(vserverimpl_la_OBJECTS) $(vserverimpl_la_DEPENDENCIES)
- $(vserverimpl_la_LINK) -rpath $(pyexecdir) $(vserverimpl_la_OBJECTS) $(vserverimpl_la_LIBADD) $(LIBS)
-install-sbinSCRIPTS: $(sbin_SCRIPTS)
- @$(NORMAL_INSTALL)
- test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
- @list='$(sbin_SCRIPTS)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- if test -f $$d$$p; then \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- echo " $(sbinSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
- $(sbinSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(sbindir)/$$f"; \
- else :; fi; \
- done
-
-uninstall-sbinSCRIPTS:
- @$(NORMAL_UNINSTALL)
- @list='$(sbin_SCRIPTS)'; for p in $$list; do \
- f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
- echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
- rm -f "$(DESTDIR)$(sbindir)/$$f"; \
- done
-
-installcheck-sbinSCRIPTS: $(sbin_SCRIPTS)
- bad=0; pid=$$$$; list="$(sbin_SCRIPTS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | sed 's,^.*/,,;$(transform)'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(sbindir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vserverimpl_la-vserverimpl.Plo@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ mv -f $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
-@am__fastdepCC_TRUE@ mv -f $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
-@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@ mv -f $$depbase.Tpo $$depbase.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
-
-vserverimpl_la-vserverimpl.lo: vserverimpl.c
-@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vserverimpl_la_CFLAGS) $(CFLAGS) -MT vserverimpl_la-vserverimpl.lo -MD -MP -MF $(DEPDIR)/vserverimpl_la-vserverimpl.Tpo -c -o vserverimpl_la-vserverimpl.lo `test -f 'vserverimpl.c' || echo '$(srcdir)/'`vserverimpl.c
-@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/vserverimpl_la-vserverimpl.Tpo $(DEPDIR)/vserverimpl_la-vserverimpl.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='vserverimpl.c' object='vserverimpl_la-vserverimpl.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vserverimpl_la_CFLAGS) $(CFLAGS) -c -o vserverimpl_la-vserverimpl.lo `test -f 'vserverimpl.c' || echo '$(srcdir)/'`vserverimpl.c
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-install-pyexecDATA: $(pyexec_DATA)
- @$(NORMAL_INSTALL)
- test -z "$(pyexecdir)" || $(MKDIR_P) "$(DESTDIR)$(pyexecdir)"
- @list='$(pyexec_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
- echo " $(pyexecDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pyexecdir)/$$f'"; \
- $(pyexecDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pyexecdir)/$$f"; \
- done
-
-uninstall-pyexecDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(pyexec_DATA)'; for p in $$list; do \
- f=$(am__strip_dir) \
- echo " rm -f '$(DESTDIR)$(pyexecdir)/$$f'"; \
- rm -f "$(DESTDIR)$(pyexecdir)/$$f"; \
- done
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- tags=; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique; \
- fi
-ctags: CTAGS
-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- tags=; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(CTAGS_ARGS)$$tags$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LTLIBRARIES) $(SCRIPTS) $(DATA)
-installdirs:
- for dir in "$(DESTDIR)$(pyexecdir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(pyexecdir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libtool clean-pyexecLTLIBRARIES \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am: install-pyexecDATA install-pyexecLTLIBRARIES \
- install-sbinSCRIPTS
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am: installcheck-sbinSCRIPTS
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-pyexecDATA uninstall-pyexecLTLIBRARIES \
- uninstall-sbinSCRIPTS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
- clean-libtool clean-pyexecLTLIBRARIES ctags distclean \
- distclean-compile distclean-generic distclean-libtool \
- distclean-tags distdir dvi dvi-am html html-am info info-am \
- install install-am install-data install-data-am install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
- install-html-am install-info install-info-am install-man \
- install-pdf install-pdf-am install-ps install-ps-am \
- install-pyexecDATA install-pyexecLTLIBRARIES \
- install-sbinSCRIPTS install-strip installcheck installcheck-am \
- installcheck-sbinSCRIPTS installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- tags uninstall uninstall-am uninstall-pyexecDATA \
- uninstall-pyexecLTLIBRARIES uninstall-sbinSCRIPTS
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
+++ /dev/null
-#!/usr/bin/python
-
-import bwlimit
-
-if __name__ == '__main__':
- bwlimit.main()
+++ /dev/null
-#!/usr/bin/python
-#
-# Bandwidth limit module for PlanetLab nodes. The intent is to use the
-# Hierarchical Token Bucket (HTB) queueing discipline (qdisc) to allow
-# slices to fairly share access to available node bandwidth. We
-# currently define three classes of "available node bandwidth":
-#
-# 1. Available hardware bandwidth (bwmax): The maximum rate of the
-# hardware.
-#
-# 2. Available capped bandwidth (bwcap): The maximum rate allowed to
-# non-exempt destinations. By default, equal to bwmax, but may be
-# lowered by PIs.
-#
-# 3. Available uncapped ("exempt") bandwidth: The difference between
-# bwmax and what is currently being used of bwcap, or the maximum rate
-# allowed to destinations exempt from caps (e.g., Internet2).
-#
-# All three classes of bandwidth are fairly shared according to the
-# notion of "shares". For instance, if the node is capped at 5 Mbps,
-# there are N slices, and each slice has 1 share, then each slice
-# should get at least 5/N Mbps of bandwidth. How HTB is implemented
-# makes this statement a little too simplistic. What it really means
-# is that during any single time period, only a certain number of
-# bytes can be sent onto the wire. Each slice is guaranteed that at
-# least some small number of its bytes will be sent. Whatever is left
-# over from the budget, is split in proportion to the number of shares
-# each slice has.
-#
-# Even if the node is not capped at a particular limit (bwcap ==
-# bwmax), this module enforces fair share access to bwmax. Also, if
-# the node is capped at a particular limit, rules may optionally be
-# defined that classify certain packets into the "exempt" class. This
-# class receives whatever bandwidth is leftover between bwcap and
-# bwmax; slices fairly share this bandwidth as well.
-#
-# The root context is exempt from sharing and can send as much as it
-# needs to.
-#
-# Some relevant URLs:
-#
-# 1. http://lartc.org/howto for how to use tc
-# 2. http://luxik.cdi.cz/~devik/qos/htb/ for info on HTB
-#
-# Andy Bavier <acb@cs.princeton.edu>
-# Mark Huang <mlhuang@cs.princeton.edu>
-# Copyright (C) 2006 The Trustees of Princeton University
-#
-# $Id: bwlimit.py,v 1.15 2007/02/07 04:21:11 mlhuang Exp $
-#
-
-import sys, os, re, getopt
-from sets import Set
-import pwd
-
-
-# Where the tc binary lives
-TC = "/sbin/tc"
-
-# Default interface
-dev = "eth0"
-
-# Verbosity level
-verbose = 0
-
-# bwmin should be small enough that it can be considered negligibly
-# slow compared to the hardware. 8 bits/second appears to be the
-# smallest value supported by tc.
-bwmin = 8
-
-# bwmax should be large enough that it can be considered at least as
-# fast as the hardware.
-bwmax = 1000*1000*1000
-
-# quantum is the maximum number of bytes that can be borrowed by a
-# share (or slice, if each slice gets 1 share) in one time period
-# (with HZ=1000, 1 ms). If multiple slices are competing for bandwidth
-# above their guarantees, and each is attempting to borrow up to the
-# node bandwidth cap, quantums control how the excess bandwidth is
-# distributed. Slices with 2 shares will borrow twice the amount in
-# one time period as slices with 1 share, so averaged over time, they
-# will get twice as much of the excess bandwidth. The value should be
-# as small as possible and at least 1 MTU. By default, it would be
-# calculated as bwmin/10, but since we use such small a value for
-# bwmin, it's better to just set it to a value safely above 1 Ethernet
-# MTU.
-quantum = 1600
-
-# cburst is the maximum number of bytes that can be burst onto the
-# wire in one time period (with HZ=1000, 1 ms). If multiple slices
-# have data queued for transmission, cbursts control how long each
-# slice can have the wire for. If not specified, it is set to the
-# smallest possible value that would enable the slice's "ceil" rate
-# (usually the node bandwidth cap), to be reached if a slice was able
-# to borrow enough bandwidth to do so. For now, it's unclear how or if
-# to relate this to the notion of shares, so just let tc set the
-# default.
-cburst = None
-
-# There is another parameter that controls how bandwidth is allocated
-# between slices on nodes that is outside the scope of HTB. We enforce
-# a 16 GByte/day total limit on each slice, which works out to about
-# 1.5mbit. If a slice exceeds this byte limit before the day finishes,
-# it is capped at (i.e., its "ceil" rate is set to) the smaller of the
-# node bandwidth cap or 1.5mbit. pl_mom is in charge of enforcing this
-# rule and executes this script to override "ceil".
-
-# We support multiple bandwidth limits, by reserving the top nibble of
-# the minor classid to be the "subclassid". Theoretically, we could
-# support up to 15 subclasses, but for now, we only define two: the
-# "default" subclass 1:10 that is capped at the node bandwidth cap (in
-# this example, 5mbit) and the "exempt" subclass 1:20 that is capped
-# at bwmax (i.e., not capped). The 1:1 parent class exists only to
-# make the borrowing model work. All bandwidth above minimum
-# guarantees is fairly shared (in this example, slice 2 is guaranteed
-# at least 1mbit in addition to fair access to the rest), subject to
-# the restrictions of the class hierarchy: namely, that the total
-# bandwidth to non-exempt destinations should not exceed the node
-# bandwidth cap.
-#
-# 1:
-# |
-# 1:1 (1gbit)
-# ______________|_____________
-# | |
-# 1:10 (8bit, 5mbit) 1:20 (8bit, 1gbit)
-# | |
-# 1:1000 (8bit, 5mbit), 1:2000 (8bit, 1gbit),
-# 1:1001 (8bit, 5mbit), 1:2001 (8bit, 1gbit),
-# 1:1002 (1mbit, 5mbit), 1:2002 (1mbit, 1gbit),
-# ... ...
-# 1:1FFF (8bit, 5mbit) 1:2FFF (8bit, 1gbit)
-#
-default_minor = 0x1000
-exempt_minor = 0x2000
-
-# root_xid is for the root context. The root context is exempt from
-# fair sharing in both the default and exempt subclasses. The root
-# context gets 5 shares by default.
-root_xid = 0x0000
-root_share = 5
-
-# default_xid is for unclassifiable packets. Packets should not be
-# classified here very often. They can be if a slice's HTB classes are
-# deleted before its processes are. Each slice gets 1 share by
-# default.
-default_xid = 0x0FFF
-default_share = 1
-
-# See tc_util.c and http://physics.nist.gov/cuu/Units/binary.html. Be
-# warned that older versions of tc interpret "kbps", "mbps", "mbit",
-# and "kbit" to mean (in this system) "kibps", "mibps", "mibit", and
-# "kibit" and that if an older version is installed, all rates will
-# be off by a small fraction.
-suffixes = {
- "": 1,
- "bit": 1,
- "kibit": 1024,
- "kbit": 1000,
- "mibit": 1024*1024,
- "mbit": 1000000,
- "gibit": 1024*1024*1024,
- "gbit": 1000000000,
- "tibit": 1024*1024*1024*1024,
- "tbit": 1000000000000,
- "bps": 8,
- "kibps": 8*1024,
- "kbps": 8000,
- "mibps": 8*1024*1024,
- "mbps": 8000000,
- "gibps": 8*1024*1024*1024,
- "gbps": 8000000000,
- "tibps": 8*1024*1024*1024*1024,
- "tbps": 8000000000000
-}
-
-
-def get_tc_rate(s):
- """
- Parses an integer or a tc rate string (e.g., 1.5mbit) into bits/second
- """
-
- if type(s) == int:
- return s
- m = re.match(r"([0-9.]+)(\D*)", s)
- if m is None:
- return -1
- suffix = m.group(2).lower()
- if suffixes.has_key(suffix):
- return int(float(m.group(1)) * suffixes[suffix])
- else:
- return -1
-
-
-def format_tc_rate(rate):
- """
- Formats a bits/second rate into a tc rate string
- """
-
- if rate >= 1000000000 and (rate % 1000000000) == 0:
- return "%.0fgbit" % (rate / 1000000000.)
- elif rate >= 1000000 and (rate % 1000000) == 0:
- return "%.0fmbit" % (rate / 1000000.)
- elif rate >= 1000:
- return "%.0fkbit" % (rate / 1000.)
- else:
- return "%.0fbit" % rate
-
-
-# Parse /etc/planetlab/bwcap (or equivalent)
-def read_bwcap(bwcap_file):
- bwcap = bwmax
- try:
- fp = open(bwcap_file, "r")
- line = fp.readline().strip()
- if line:
- bwcap = get_tc_rate(line)
- except:
- pass
- if bwcap == -1:
- bwcap = bwmax
- return bwcap
-
-
-def get_bwcap(dev = dev):
- """
- Get the current (live) value of the node bandwidth cap
- """
-
- state = tc("-d class show dev %s" % dev)
- base_re = re.compile(r"class htb 1:10 parent 1:1 .*ceil ([^ ]+) .*")
- base_classes = filter(None, map(base_re.match, state))
- if not base_classes:
- return -1
- if len(base_classes) > 1:
- raise Exception, "unable to get current bwcap"
- return get_tc_rate(base_classes[0].group(1))
-
-
-def get_slice(xid):
- """
- Get slice name ("princeton_mlh") from slice xid (500)
- """
-
- if xid == root_xid:
- return "root"
- if xid == default_xid:
- return "default"
- try:
- return pwd.getpwuid(xid).pw_name
- except KeyError:
- pass
-
- return None
-
-def get_xid(slice):
- """
- Get slice xid ("princeton_mlh") from slice name ("500" or "princeton_mlh")
- """
-
- if slice == "root":
- return root_xid
- if slice == "default":
- return default_xid
- try:
- try:
- return int(slice)
- except ValueError:
- pass
- return pwd.getpwnam(slice).pw_uid
- except KeyError:
- pass
-
- return None
-
-def run(cmd, input = None):
- """
- Shortcut for running a shell command
- """
-
- try:
- if verbose:
- sys.stderr.write("Executing: " + cmd + "\n")
- if input is None:
- fileobj = os.popen(cmd, "r")
- output = fileobj.readlines()
- else:
- fileobj = os.popen(cmd, "w")
- fileobj.write(input)
- output = None
- if fileobj.close() is None:
- return output
- except Exception, e:
- pass
- return None
-
-
-def tc(cmd):
- """
- Shortcut for running a tc command
- """
-
- return run(TC + " " + cmd)
-
-
-def init(dev = dev, bwcap = bwmax):
- """
- (Re)initialize the bandwidth limits on this node
- """
-
- # Load the module used to manage exempt classes
- run("/sbin/modprobe ip_set_iphash")
-
- # Save current settings
- paramslist = get(None, dev)
-
- # Delete root qdisc 1: if it exists. This will also automatically
- # delete any child classes.
- for line in tc("qdisc show dev %s" % dev):
- # Search for the root qdisc 1:
- m = re.match(r"qdisc htb 1:", line)
- if m is not None:
- tc("qdisc del dev %s root handle 1:" % dev)
- break
-
- # Initialize HTB. The "default" clause specifies that if a packet
- # fails classification, it should go into the class with handle
- # 1FFF.
- tc("qdisc add dev %s root handle 1: htb default %x" % \
- (dev, default_minor | default_xid))
-
- # Set up a parent class from which all subclasses borrow.
- tc("class add dev %s parent 1: classid 1:1 htb rate %dbit" % \
- (dev, bwmax))
-
- # Set up a subclass that represents the node bandwidth cap. We
- # allow each slice to borrow up to this rate, so it is also
- # usually the "ceil" rate for each slice.
- tc("class add dev %s parent 1:1 classid 1:10 htb rate %dbit ceil %dbit" % \
- (dev, bwmin, bwcap))
-
- # Set up a subclass that represents "exemption" from the node
- # bandwidth cap. Once the node bandwidth cap is reached, bandwidth
- # to exempt destinations can still be fairly shared up to bwmax.
- tc("class add dev %s parent 1:1 classid 1:20 htb rate %dbit ceil %dbit" % \
- (dev, bwmin, bwmax))
-
- # Set up the root class (and tell VNET what it is). Packets sent
- # by root end up here and are capped at the node bandwidth
- # cap.
- #on(root_xid, dev, share = root_share)
- #try:
- # file("/proc/sys/vnet/root_class", "w").write("%d" % ((1 << 16) | default_minor | root_xid))
- #except:
- # pass
-
- # Set up the default class. Packets that fail classification end
- # up here.
- on(default_xid, dev, share = default_share)
-
- # Restore old settings
- for (xid, share,
- minrate, maxrate,
- minexemptrate, maxexemptrate,
- bytes, exemptbytes) in paramslist:
- if xid not in (root_xid, default_xid):
- on(xid, dev, share, minrate, maxrate, minexemptrate, maxexemptrate)
-
-
-def get(xid = None, dev = dev):
- """
- Get the bandwidth limits and current byte totals for a
- particular slice xid as a tuple (xid, share, minrate, maxrate,
- minexemptrate, maxexemptrate, bytes, exemptbytes), or all classes
- as a list of such tuples.
- """
-
- if xid is None:
- ret = []
- else:
- ret = None
-
- rates = {}
- rate = None
-
- # ...
- # class htb 1:1000 parent 1:10 leaf 1000: prio 0 quantum 8000 rate 8bit ceil 10000Kbit ...
- # Sent 6851486 bytes 49244 pkt (dropped 0, overlimits 0 requeues 0)
- # ...
- # class htb 1:2000 parent 1:20 leaf 2000: prio 0 quantum 8000 rate 8bit ceil 1000Mbit ...
- # Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
- # ...
- for line in tc("-s -d class show dev %s" % dev):
- # Rate parameter line
- params = re.match(r"class htb 1:([0-9a-f]+) parent 1:(10|20)", line)
- # Statistics line
- stats = re.match(r".* Sent ([0-9]+) bytes", line)
- # Another class
- ignore = re.match(r"class htb", line)
-
- if params is not None:
- # Which class
- if params.group(2) == "10":
- min = 'min'
- max = 'max'
- bytes = 'bytes'
- else:
- min = 'minexempt'
- max = 'maxexempt'
- bytes = 'exemptbytes'
-
- # Slice ID
- id = int(params.group(1), 16) & 0x0FFF;
-
- if rates.has_key(id):
- rate = rates[id]
- else:
- rate = {'id': id}
-
- # Parse share
- rate['share'] = 1
- m = re.search(r"quantum (\d+)", line)
- if m is not None:
- rate['share'] = int(m.group(1)) / quantum
-
- # Parse minrate
- rate[min] = bwmin
- m = re.search(r"rate (\w+)", line)
- if m is not None:
- rate[min] = get_tc_rate(m.group(1))
-
- # Parse maxrate
- rate[max] = bwmax
- m = re.search(r"ceil (\w+)", line)
- if m is not None:
- rate[max] = get_tc_rate(m.group(1))
-
- # Which statistics to parse
- rate['stats'] = bytes
-
- rates[id] = rate
-
- elif stats is not None:
- if rate is not None:
- rate[rate['stats']] = int(stats.group(1))
-
- elif ignore is not None:
- rate = None
-
- # Keep parsing until we get everything
- if rate is not None and \
- rate.has_key('min') and rate.has_key('minexempt') and \
- rate.has_key('max') and rate.has_key('maxexempt') and \
- rate.has_key('bytes') and rate.has_key('exemptbytes'):
- params = (rate['id'], rate['share'],
- rate['min'], rate['max'],
- rate['minexempt'], rate['maxexempt'],
- rate['bytes'], rate['exemptbytes'])
- if xid is None:
- # Return a list of parameters
- ret.append(params)
- rate = None
- elif xid == rate['id']:
- # Return the parameters for this class
- ret = params
- break
-
- return ret
-
-
-def on(xid, dev = dev, share = None, minrate = None, maxrate = None, minexemptrate = None, maxexemptrate = None):
- """
- Apply specified bandwidth limit to the specified slice xid
- """
-
- # Get defaults from current state if available
- cap = get(xid, dev)
- if cap is not None:
- if share is None:
- share = cap[1]
- if minrate is None:
- minrate = cap[2]
- if maxrate is None:
- maxrate = cap[3]
- if minexemptrate is None:
- minexemptrate = cap[4]
- if maxexemptrate is None:
- maxexemptrate = cap[5]
-
- # Figure out what the current node bandwidth cap is
- bwcap = get_bwcap()
-
- # Set defaults
- if share is None:
- share = default_share
- if minrate is None:
- minrate = bwmin
- else:
- minrate = get_tc_rate(minrate)
- if maxrate is None:
- maxrate = bwcap
- else:
- maxrate = get_tc_rate(maxrate)
- if minexemptrate is None:
- minexemptrate = minrate
- else:
- minexemptrate = get_tc_rate(minexemptrate)
- if maxexemptrate is None:
- maxexemptrate = bwmax
- else:
- maxexemptrate = get_tc_rate(maxexemptrate)
-
- # Sanity checks
- if maxrate < bwmin:
- maxrate = bwmin
- if maxrate > bwcap:
- maxrate = bwcap
- if minrate < bwmin:
- minrate = bwmin
- if minrate > maxrate:
- minrate = maxrate
- if maxexemptrate < bwmin:
- maxexemptrate = bwmin
- if maxexemptrate > bwmax:
- maxexemptrate = bwmax
- if minexemptrate < bwmin:
- minexemptrate = bwmin
- if minexemptrate > maxexemptrate:
- minexemptrate = maxexemptrate
-
- # Set up subclasses for the slice
- tc("class replace dev %s parent 1:10 classid 1:%x htb rate %dbit ceil %dbit quantum %d" % \
- (dev, default_minor | xid, minrate, maxrate, share * quantum))
-
- tc("class replace dev %s parent 1:20 classid 1:%x htb rate %dbit ceil %dbit quantum %d" % \
- (dev, exempt_minor | xid, minexemptrate, maxexemptrate, share * quantum))
-
- # Attach a FIFO to each subclass, which helps to throttle back
- # processes that are sending faster than the token buckets can
- # support.
- tc("qdisc replace dev %s parent 1:%x handle %x pfifo" % \
- (dev, default_minor | xid, default_minor | xid))
-
- tc("qdisc replace dev %s parent 1:%x handle %x pfifo" % \
- (dev, exempt_minor | xid, exempt_minor | xid))
-
-
-def set(xid, share = None, minrate = None, maxrate = None, minexemptrate = None, maxexemptrate = None):
- on(xid = xid, share = share,
- minrate = minrate, maxrate = maxrate,
- minexemptrate = minexemptrate, maxexemptrate = maxexemptrate)
-
-
-# Remove class associated with specified slice xid. If further packets
-# are seen from this slice, they will be classified into the default
-# class 1:1FFF.
-def off(xid, dev = dev):
- """
- Remove class associated with specified slice xid. If further
- packets are seen from this slice, they will be classified into the
- default class 1:1FFF.
- """
-
- cap = get(xid, dev)
- if cap is not None:
- tc("class del dev %s classid 1:%x" % (dev, default_minor | xid))
- tc("class del dev %s classid 1:%x" % (dev, exempt_minor | xid))
-
-
-def exempt_init(group_name, node_ips):
- """
- Initialize the list of destinations exempt from the node bandwidth
- (burst) cap.
- """
-
- # Clean up
- iptables = "/sbin/iptables -t MANGLE %s POSTROUTING"
- run(iptables % "-F")
- run("/sbin/ipset -X " + group_name)
-
- # Create a hashed IP set of all of these destinations
- lines = ["-N %s iphash" % group_name]
- add_cmd = "-A %s " % group_name
- lines += [(add_cmd + ip) for ip in node_ips]
- lines += ["COMMIT"]
- restore = "\n".join(lines) + "\n"
- run("/sbin/ipset -R", restore)
-
- # Add rule to match on destination IP set
- run((iptables + " -m set --set %s dst -j CLASSIFY --set-class 1:%x") %
- ("-A", group_name, exempt_minor))
-
-
-def usage():
- bwcap_description = format_tc_rate(get_bwcap())
-
- print """
-Usage:
-
-%s [OPTION]... [COMMAND] [ARGUMENT]...
-
-Options:
- -d device Network interface (default: %s)
- -r rate Node bandwidth cap (default: %s)
- -q quantum Share multiplier (default: %d bytes)
- -n Print rates in numeric bits per second
- -v Enable verbose debug messages
- -h This message
-
-Commands:
- init
- (Re)initialize all bandwidth parameters
- on slice [share|-] [minrate|-] [maxrate|-] [minexemptrate|-] [maxexemptrate|-]
- Set bandwidth parameter(s) for the specified slice
- off slice
- Remove all bandwidth parameters for the specified slice
- get
- Get all bandwidth parameters for all slices
- get slice
- Get bandwidth parameters for the specified slice
-""" % (sys.argv[0], dev, bwcap_description, quantum)
- sys.exit(1)
-
-
-def main():
- global dev, quantum, verbose
-
- # Defaults
- numeric = False
- bwcap = get_bwcap()
-
- (opts, argv) = getopt.getopt(sys.argv[1:], "d:nr:q:vh")
- for (opt, optval) in opts:
- if opt == '-d':
- dev = optval
- elif opt == '-n':
- numeric = True
- elif opt == '-r':
- bwcap = get_tc_rate(optval)
- elif opt == '-q':
- quantum = int(optval)
- elif opt == '-v':
- verbose += 1
- elif opt == '-h':
- usage()
-
- if len(argv):
- if argv[0] == "init" or (argv[0] == "on" and len(argv) == 1):
- # (Re)initialize
- init(dev, get_tc_rate(bwcap))
-
- elif argv[0] == "get" or argv[0] == "show":
- # Show
- if len(argv) >= 2:
- # Show a particular slice
- xid = get_xid(argv[1])
- if xid is None:
- sys.stderr.write("Error: Invalid slice name or context '%s'\n" % argv[1])
- usage()
- params = get(xid, dev)
- if params is None:
- paramslist = []
- else:
- paramslist = [params]
- else:
- # Show all slices
- paramslist = get(None, dev)
-
- for (xid, share,
- minrate, maxrate,
- minexemptrate, maxexemptrate,
- bytes, exemptbytes) in paramslist:
- slice = get_slice(xid)
- if slice is None:
- # Orphaned (not associated with a slice) class
- slice = "%d?" % xid
- if numeric:
- print "%s %d %d %d %d %d %d %d" % \
- (slice, share,
- minrate, maxrate,
- minexemptrate, maxexemptrate,
- bytes, exemptbytes)
- else:
- print "%s %d %s %s %s %s %d %d" % \
- (slice, share,
- format_tc_rate(minrate), format_tc_rate(maxrate),
- format_tc_rate(minexemptrate), format_tc_rate(maxexemptrate),
- bytes, exemptbytes)
-
- elif len(argv) >= 2:
- # slice, ...
- xid = get_xid(argv[1])
- if xid is None:
- sys.stderr.write("Error: Invalid slice name or context '%s'\n" % argv[1])
- usage()
-
- if argv[0] == "on" or argv[0] == "add" or argv[0] == "replace" or argv[0] == "set":
- # Enable cap
- args = []
- if len(argv) >= 3:
- # ... share, minrate, maxrate, minexemptrate, maxexemptrate
- casts = [int, get_tc_rate, get_tc_rate, get_tc_rate, get_tc_rate]
- for i, arg in enumerate(argv[2:]):
- if i >= len(casts):
- break
- if arg == "-":
- args.append(None)
- else:
- args.append(casts[i](arg))
- on(xid, dev, *args)
-
- elif argv[0] == "off" or argv[0] == "del":
- # Disable cap
- off(xid, dev)
-
- else:
- usage()
-
- else:
- usage()
-
-
-if __name__ == '__main__':
- main()
+++ /dev/null
-#!/usr/bin/python2 -u
-
-import sys, os, re, string
-
-
-TCBASE="/rcfs/taskclass/"
-RULES="/rcfs/ce/rules/"
-
-SYSCLASS=TCBASE + "system"
-SYSRULE=RULES + "system"
-SYSCPUSHARE=100
-DEFAULTMAXCPUSHARE=8192
-
-def checkckrm():
- checks = [ "/rcfs", TCBASE, RULES ]
-
- for check in checks:
- try:
- answer = os.stat(check)
- except:
- print "%s does not exist" % check
- return False
-
- return True
-
-def checkclass(tc):
- try:
- answer = os.stat(TCBASE + tc)
- return True
-
- except:
- print "%s class does not exist" % tc
- return False
-
-def getxid(name):
- xid = -1
- fp = open('/etc/passwd')
- for line in fp.readlines():
- rec = string.splitfields(line,':')
- if rec[0] == name:
- xid = int(rec[2])
- break
-
- fp.close()
-
- if xid == -1:
- # raise an exception
- pass
-
- return xid
-
-def write(filename,s):
- fp = os.open(filename,os.O_WRONLY|os.O_CREAT)
- os.write(fp,s)
- os.close(fp)
-
-def vs2ckrm_on(tc):
- xid = getxid(tc)
-
- try:
- os.mkdir(TCBASE + tc)
- except OSError:
- pass # ignore oserror for file exists
-
- s = "xid=%d,class=%s" % (xid,TCBASE+tc)
- fname = RULES + tc
- write(fname, s)
-
-def vs2ckrm_off(tc):
- fname = TCBASE + tc + "/members"
- for i in range(1,15):
- fp = open(fname)
- lines = fp.readlines()
- try:
- lines.remove("No data to display\n")
- except ValueError:
- pass
- if len(lines) == 0:
- try:
- answer = os.stat(RULES + tc)
- os.unlink(RULES + tc)
- answer = os.stat(TCBASE + tc)
- os.rmdir(TCBASE + tc)
- except:
- pass
- break
-
- else:
- print "enter context 1 and kill processes", lines
-
-
-def cpulimit(tc,limit):
- global TCBASE
-
- fname = TCBASE + tc + "/shares"
- s = "res=cpu,guarantee=%d\n" % limit
- write(fname,s)
-
-def cpuinit():
- global TCBASE
-
- fname = TCBASE + "shares"
- s = "res=cpu,total_guarantee=%d\n" % DEFAULTMAXCPUSHARE
- write(fname,s)
-
-if __name__ == "__main__":
- try:
- name = sys.argv[1]
- limit = int(sys.argv[2])
- except:
- print "caught exception"
-
- if checkckrm() is True:
- cpuinit()
- vs2ckrm_on(name)
- cpulimit(name,limit)
- vs2ckrm_off(name)
+++ /dev/null
-#!/bin/env python
-
-import vserver, sys, os, re, getopt
-
-def usage():
- print """
-Usage:
-
-%s [OPTION]... [COMMAND] [ARGUMENT]...
-
-Options:
-
-
-Commands:
- set slice space
- Set max disk limit for a slice
-
- get slice
- Get current disk limit for slice
-""" % (sys.argv[0])
-
- sys.exit(1)
-
-def get(argv):
- slicename = argv[0]
- vs = vserver.VServer(slicename)
- limit = vs.get_disklimit()
- return "%s %d limit" % (slicename,limit)
-
-def set(argv):
- slicename = argv[0]
- vs = vserver.VServer(slicename)
- oldlimit = vs.get_disklimit()
- newlimit = int(argv[1])
- if newlimit >= oldlimit:
- vs.set_disklimit(newlimit)
- return None
-
-def main():
- functions = {"get":get, "set":set}
- argv = sys.argv[1:]
- if len(argv):
- func = functions.get(argv[0],usage)
- result = func(argv[1:])
- if result <> None:
- print result
- sys.exit(0)
-
- # no command given
- usage()
-
-
-if __name__ == '__main__':
- main()
+++ /dev/null
-/* Copyright 2005 Princeton University */
-
-#include <Python.h>
-
-#define _LARGEFILE64_SOURCE 1
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <dirent.h>
-#include <errno.h>
-#include <string.h>
-#include <sys/ioctl.h>
-#include <assert.h>
-
-
-/*
- * hash table implementation
- */
-
-typedef ino64_t KEY;
-typedef KEY *PKEY;
-typedef struct stat64 VAL;
-typedef VAL *PVAL;
-
-static inline
-unsigned int
-HASH(PKEY key){
- return (int) *key;
-}
-
-static inline
-unsigned int // boolean
-EQUAL(PKEY key1, PKEY key2){
- return *key1 == *key2;
-}
-
-#ifndef MIN
-#define MIN(x,y) (((x)<(y))?(x):(y))
-#endif // MIN
-
-#ifndef MAX
-#define MAX(x,y) (((x)>(y))?(x):(y))
-#endif // MAX
-
-
-/*
- * hash table support for efficient lookup of duplicate inodes
- */
-
-#define Multiplier (0x9e3779b9)
-#define MaxLogBuckets (((sizeof (unsigned long))*8) - 2)
-#define MaxBuckets (1<<MaxLogBuckets)
-#define MinLogBuckets (4)
-#define MinBuckets (1<<MinLogBuckets)
-
-/* Thresholds for rehashing the table: *)
- * to avoid crazy oscillations, we must have MaxDensity > 2*MinDensity; *)
- * to avoid excessive probes, we must try to keep MaxDensity low. *)
- * Divide by 100 before using
- */
-#define MaxDensity 75 /* max numEntries/NUMBER(buckets) */
-#define MinDensity 20 /* min numEntries/NUMBER(buckets) */
-#define IdealDensity 50
-#define BITSIZE(x) (sizeof(x)*8)
-
-#define NEW(type,num) ((type*)malloc(sizeof(type)*num))
-#define DISPOSE(ptr) (free((void*)ptr))
-
-/*
- * Generic Hash Entry Type
- */
-
-typedef struct VoidList {
- struct VoidList *tail;
-} VoidList, *PVoidList;
-
-typedef struct HashTable {
- PVoidList *buckets;
- unsigned int numBuckets; // number of buckets
- unsigned int minLogBuckets; // minimum value for Log_2(initial size)
- unsigned int logBuckets; // CEILING(Log2(NUMBER(buckets^)))
- unsigned int maxEntries; // maximum number of entries
- unsigned int minEntries; // minimum number of entries
- unsigned int numEntries; // current num of entries in table
- PVoidList cache; // cache of removed elements
- int cacheSize; // current size of the cache
- int maxCacheSize; // maximum size, -1 means unbounded, 0 no cache
-} HashTable, *PHashTable;
-
-/*
- * Hash Prototypes
- */
-
-PHashTable
-Init(PHashTable tbl, unsigned int n, int maxCacheSize);
-
-void
-Dispose(PHashTable tbl);
-
-unsigned int
-Log_2(unsigned int x);
-
-void
-NewBuckets(PHashTable tbl, unsigned int logBuckets);
-
-/*
- * Generic Hash Table support
- */
-
-PHashTable
-Init(PHashTable tbl, unsigned int n, int maxCacheSize){
- int idealBuckets;
- int minBuckets;
-
- idealBuckets = MIN(((n*100)/IdealDensity),MaxBuckets);
- minBuckets = MAX(MinBuckets, idealBuckets);
- tbl->minLogBuckets = Log_2(minBuckets);
-
- NewBuckets(tbl, tbl->minLogBuckets);
- tbl->numEntries = 0;
- tbl->maxCacheSize = maxCacheSize;
- tbl->cacheSize = 0;
- tbl->cache = 0;
- return tbl;
-} // Init()
-
-
-/*
- * Internal procedures
- */
-
-unsigned int
-Log_2(unsigned int x){
- /* return CEILING(LOG_2(x)) */
- unsigned int log = 0;
- unsigned int n= 1;
-
- assert(x != 0);
- while ((log < MaxLogBuckets) && (x > n)){
- log++;
- n += n;
- }
- return log;
-}
-
-void
-NewBuckets(PHashTable tbl, unsigned int logBuckets){
- /* Allocate "2^logBuckets" buckets. */
- unsigned int numBuckets = 1 << logBuckets;
- PVoidList *b;
- unsigned int i;
-
- tbl->buckets = NEW(PVoidList, numBuckets);
- tbl->numBuckets = numBuckets;
- b = tbl->buckets;
-
- for (i=0; i<tbl->numBuckets; i++){
- b[i] = NULL;
- }
- tbl->logBuckets = logBuckets;
- tbl->maxEntries = MaxDensity * numBuckets / 100;
- tbl->minEntries = MinDensity * numBuckets / 100;
-}
-
-#ifndef NULL
-#define NULL (void*)0
-#endif
-
-#ifndef TRUE
-#define TRUE 1
-#endif
-
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-/*
- * Type specific hash entry
- */
-typedef struct EntryList {
- struct EntryList *tail;
- KEY key;
- VAL val;
-}EntryList, *PEntryList;
-
-/*
- * Type specific Hash implementation functions
- */
-
-static
-void
-Rehash(PHashTable tbl, unsigned int logBuckets) {
- /* Reallocate "2^logBuckets" buckets, and rehash the entries into
- * the new table.
- */
-
- PVoidList *oldBucketPointer;
- PEntryList *ob, obi;
- PEntryList *nb, *nbh;
- PEntryList that, tail;
- unsigned int index;
- unsigned int i;
- unsigned int oldNumBuckets;
-
- return;
- assert(logBuckets <= MaxLogBuckets);
- assert(logBuckets >= tbl->minLogBuckets);
- oldBucketPointer = tbl->buckets;
- ob = (PEntryList*)tbl->buckets;
- oldNumBuckets = tbl->numBuckets;
-
- NewBuckets(tbl, logBuckets);
- nb = (PEntryList*)tbl->buckets;
-
- for(i=0;i<oldNumBuckets;i++){
- obi = ob[i];
- that = obi;
- while (that != NULL) {
- index = (HASH(&(that->key))*Multiplier)>>(BITSIZE(unsigned long)-tbl->logBuckets);
- nbh = &(nb[index]);
- tail = that->tail;
- that->tail = *nbh;
- *nbh = that;
- that = tail;
- }
- }
- DISPOSE (oldBucketPointer);
-}
-
-static inline
-unsigned int /* boolean */
-Get(PHashTable tbl, PKEY key, PVAL *val){
- PEntryList that;
- unsigned int index;
-
- index = (HASH(key)*Multiplier)>>(BITSIZE(unsigned long)-tbl->logBuckets);
- that = (PEntryList)tbl->buckets[index];
- while ((that != NULL) && !EQUAL(key,&(that->key))) {
- that = that->tail;
- }
- if (that != NULL){
- *val = &that->val;
- return TRUE;
- }
- else {
- return FALSE;
- }
-}
-
-static inline
-unsigned int /* boolean */
-Put(PHashTable tbl, PKEY key, PVAL *val){
- PEntryList that;
- PEntryList *first;
- unsigned int index;
- unsigned int res;
-
- index = (HASH(key)*Multiplier)>>(BITSIZE(unsigned long)-tbl->logBuckets);
- first = (PEntryList*)&(tbl->buckets[index]);
- that = *first;
- while ((that != NULL) && !EQUAL(key, &(that->key))){
- that = that->tail;
- }
-
- /* found an entry in the hash table given above key */
- if (that != NULL){
- res = TRUE;
- }
- else {
- /* check if we can reuse something from the cache */
- if (tbl->cache != NULL) {
- that = (PEntryList)tbl->cache;
- tbl->cache = (PVoidList)tbl->cache->tail;
- that->key = *key;
- that->tail = *first;
- *first = that;
- }
- else {
- that = NEW(EntryList,1);
- that->key = *key;
- that->tail = *first;
- *first = that;
- }
- that->val = **val;
-
- tbl->numEntries++;
- if ((tbl->logBuckets < MaxLogBuckets)
- && (tbl->numEntries > tbl->maxEntries)){
- Rehash(tbl, tbl->logBuckets + 1); /* too crowded */
- }
- res = FALSE;
- }
- *val = &that->val;
- return res;
-
-}
-
-static inline
-int
-Delete(PHashTable tbl,PKEY key){
- PEntryList that, prev;
- PEntryList *first;
- unsigned int index;
-
- index = (HASH(key)*Multiplier)>>(BITSIZE(unsigned long)-tbl->logBuckets);
- first = (PEntryList*)&(tbl->buckets[index]);
- that = *first;
- prev = NULL;
-
- while ((that != NULL) && !EQUAL(key, &(that->key))){
- prev = that;
- that = that->tail;
- }
- if (that != NULL) {
- if (prev == NULL) {
- *first = that->tail;
- }
- else {
- prev->tail = that->tail;
- }
- if ((tbl->maxCacheSize == -1)||(tbl->cacheSize < tbl->maxCacheSize)) {
- that->tail = (PEntryList)tbl->cache;
- tbl->cache = (PVoidList)that;
- tbl->cacheSize++;
- }
- else {
- DISPOSE (that);
- }
- tbl->numEntries--;
- if (tbl->maxCacheSize == 0) {
- if ((tbl->logBuckets > tbl->minLogBuckets)
- && (tbl->numEntries < tbl->minEntries)) {
- Rehash(tbl, tbl->logBuckets - 1); /* too sparse */
- }
- }
- return TRUE;
- }
- else {
- return FALSE;
- }
-}
-
-typedef void (*callback)(PKEY key, PVAL val);
-
-void
-Iterate(PHashTable tbl, callback fn)
-{
- PVoidList that;
- unsigned int i;
-
- for(i=0;i<tbl->numBuckets;i++) {
- that = tbl->buckets[i];
- while ( that != (PVoidList)0 ) {
- PEntryList entry = (PEntryList)that;
- fn(&entry->key,&entry->val);
- that = that->tail;
- }
- }
-}
-
-void
-Dispose(PHashTable tbl)
-{
- PVoidList that, next;
- unsigned int i;
-
- for(i=0;i<tbl->numBuckets;i++) {
- that = tbl->buckets[i];
- while( that != NULL) {
- next = that->tail;
- DISPOSE (that);
- tbl->numEntries--;
- that = next;
- }
- }
- DISPOSE(tbl->buckets);
- assert(tbl->numEntries = 0);
-}
-
-static int /* boolean */
-INOPut(PHashTable tbl, ino64_t* key, struct stat64 **val){
- return Put(tbl, key, val);
-}
-
-__extension__ typedef long long longlong;
-
-struct stats {
- longlong inodes;
- longlong blocks;
- longlong size;
-};
-
-static short verbose = 0;
-
-static int vdu_onedir (PHashTable tbl, struct stats *__s, char const *path)
-{
- char const *foo = path;
- struct stat64 dirst, st;
- struct dirent *ent;
- char *name;
- DIR *dir;
- int dirfd;
- int res = 0;
- longlong dirsize, dirinodes, dirblocks;
-
- dirsize = dirinodes = dirblocks = 0;
-
- // A handle to speed up chdir
- if ((dirfd = open (path,O_RDONLY)) == -1) {
- return -1;
- }
-
- if (fchdir (dirfd) == -1) {
- return -1;
- }
-
- if (fstat64 (dirfd,&dirst) != 0) {
- return -1;
- }
-
- if ((dir = opendir (".")) == NULL) {
- return -1;
- }
-
- /* Walk the directory entries and compute the sum of inodes,
- * blocks, and disk space used. This code will recursively descend
- * down the directory structure.
- */
-
- while ((ent=readdir(dir))!=NULL){
- if (lstat64(ent->d_name,&st)==-1){
- continue;
- }
-
- dirinodes ++;
-
- if (S_ISREG(st.st_mode)){
- if (st.st_nlink > 1){
- struct stat64 *val;
- int nlink;
-
- /* Check hash table if we've seen this inode
- * before. Note that the hash maintains a
- * (inode,struct stat) key value pair.
- */
-
- val = &st;
-
- (void) INOPut(tbl,&st.st_ino,&val);
-
- /* Note that after the INOPut call "val" refers to the
- * value entry in the hash table --- not &st. This
- * means that if the inode has been put into the hash
- * table before, val will refer to the first st that
- * was put into the hashtable. Otherwise, if it is
- * the first time it is put into the hash table, then
- * val will be equal to this &st.
- */
- nlink = val->st_nlink;
- nlink --;
-
- /* val refers to value in hash tbale */
- if (nlink == 0) {
-
- /* We saw all hard links to this particular inode
- * as part of this sweep of vdu. So account for
- * the size and blocks required by the file.
- */
-
- dirsize += val->st_size;
- dirblocks += val->st_blocks;
-
- /* Do not delete the (ino,val) tuple from the tbl,
- * as we need to handle the case when we are
- * double counting a file due to a bind mount.
- */
- val->st_nlink = 0;
-
- } else if (nlink > 0) {
- val->st_nlink = nlink;
- } else /* if(nlink < 0) */ {
- /* We get here when we are double counting nlinks
- due a bind mount. */
-
- /* DO NOTHING */
- }
- } else {
- dirsize += st.st_size;
- dirblocks += st.st_blocks;
- }
-
- } else if (S_ISDIR(st.st_mode)) {
- if ((st.st_dev == dirst.st_dev) &&
- (strcmp(ent->d_name,".")!=0) &&
- (strcmp(ent->d_name,"..")!=0)) {
-
- dirsize += st.st_size;
- dirblocks += st.st_blocks;
-
- name = strdup(ent->d_name);
- if (name==0) {
- return -1;
- }
- res |= vdu_onedir(tbl,__s,name);
- free(name);
- fchdir(dirfd);
- }
- } else {
- /* dirsize += st.st_size; */
- /* dirblocks += st.st_blocks; */
- }
- }
- closedir (dir);
- close (dirfd);
- __s->inodes += dirinodes;
- __s->blocks += dirblocks;
- __s->size += dirsize;
- if (verbose) {
- printf("%16lld %16lld %16lld %s\n",dirinodes, dirblocks, dirsize,foo);
- printf("%16lld %16lld %16lld %s\n",__s->inodes, __s->blocks, __s->size,foo);
- }
-
- return res;
-}
-
-
-static PyObject *
-do_vdu(PyObject *self, PyObject *args)
-{
- PyObject *tuple;
-
- const char *path;
- int res;
- struct stats s;
- HashTable tbl;
- int cwd_fd;
-
- if (!PyArg_ParseTuple(args, "s", &path))
- return Py_None;
-
- /* init of tbl and stats */
- s.inodes = s.blocks = s.size = 0;
- (void) Init(&tbl,0,0);
-
- cwd_fd = open(".", O_RDONLY);
- res = vdu_onedir(&tbl, &s, path);
- fchdir(cwd_fd);
- close(cwd_fd);
-
- /* deallocate whatever has been added to tbl */
- Dispose(&tbl);
-
- /* create a python (inode, block, size) tuple */
- tuple = Py_BuildValue("(L,L,L)",
- s.inodes,
- s.blocks>>1, /* NOTE: div by 2 to adjust
- * 512b block count to 1K
- * block count
- */
- s.size);
- return (res == -1) ? PyErr_SetFromErrno(PyExc_OSError) : tuple;
-}
-
-static PyMethodDef methods[] = {
- { "vdu", do_vdu, METH_VARARGS,
- "perform vdu operation on directory tree" },
- { NULL, NULL, 0, NULL }
-};
-
-PyMODINIT_FUNC
-initvduimpl(void)
-{
- Py_InitModule("vduimpl", methods);
-}
+++ /dev/null
-# Copyright 2005 Princeton University
-
-#$Id: vserver.py,v 1.72 2007/08/02 16:01:59 dhozac Exp $
-
-import errno
-import fcntl
-import os
-import re
-import pwd
-import signal
-import sys
-import time
-import traceback
-import subprocess
-import resource
-
-import vserverimpl
-import cpulimit, bwlimit
-
-from vserverimpl import VS_SCHED_CPU_GUARANTEED as SCHED_CPU_GUARANTEED
-from vserverimpl import DLIMIT_INF
-from vserverimpl import VC_LIM_KEEP
-from vserverimpl import VLIMIT_NSOCK
-from vserverimpl import VLIMIT_OPENFD
-from vserverimpl import VLIMIT_ANON
-from vserverimpl import VLIMIT_SHMEM
-
-#
-# these are the flags taken from the kernel linux/vserver/legacy.h
-#
-FLAGS_LOCK = 1
-FLAGS_SCHED = 2 # XXX - defined in util-vserver/src/chcontext.c
-FLAGS_NPROC = 4
-FLAGS_PRIVATE = 8
-FLAGS_INIT = 16
-FLAGS_HIDEINFO = 32
-FLAGS_ULIMIT = 64
-FLAGS_NAMESPACE = 128
-
-RLIMITS = { "NSOCK": VLIMIT_NSOCK,
- "OPENFD": VLIMIT_OPENFD,
- "ANON": VLIMIT_ANON,
- "SHMEM": VLIMIT_SHMEM}
-
-# add in the platform supported rlimits
-for entry in resource.__dict__.keys():
- if entry.find("RLIMIT_")==0:
- k = entry[len("RLIMIT_"):]
- if not RLIMITS.has_key(k):
- RLIMITS[k]=resource.__dict__[entry]
- else:
- print "WARNING: duplicate RLIMITS key %s" % k
-
-class NoSuchVServer(Exception): pass
-
-
-class VServerConfig:
- def __init__(self, name, directory):
- self.name = name
- self.dir = directory
- self.cache = None
- if not (os.path.isdir(self.dir) and
- os.access(self.dir, os.R_OK | os.W_OK | os.X_OK)):
- raise NoSuchVServer, "%s does not exist" % self.dir
-
- def get(self, option, default = None):
- try:
- if self.cache:
- return self.cache[option]
- else:
- f = open(os.path.join(self.dir, option), "r")
- buf = f.read().rstrip()
- f.close()
- return buf
- except:
- if default is not None:
- return default
- else:
- raise KeyError, "Key %s is not set for %s" % (option, self.name)
-
- def update(self, option, value):
- if self.cache:
- return
-
- try:
- old_umask = os.umask(0022)
- filename = os.path.join(self.dir, option)
- try:
- os.makedirs(os.path.dirname(filename), 0755)
- except:
- pass
- f = open(filename, 'w')
- if isinstance(value, list):
- f.write("%s\n" % "\n".join(value))
- else:
- f.write("%s\n" % value)
- f.close()
- os.umask(old_umask)
- except:
- raise
-
- def unset(self, option):
- if self.cache:
- return
-
- try:
- filename = os.path.join(self.dir, option)
- os.unlink(filename)
- try:
- os.removedirs(os.path.dirname(filename))
- except:
- pass
- return True
- except:
- return False
-
- def cache_it(self):
- self.cache = {}
- def add_to_cache(cache, dirname, fnames):
- for file in fnames:
- full_name = os.path.join(dirname, file)
- if os.path.islink(full_name):
- fnames.remove(file)
- elif (os.path.isfile(full_name) and
- os.access(full_name, os.R_OK)):
- f = open(full_name, "r")
- cache[full_name.replace(os.path.join(self.dir, ''),
- '')] = f.read().rstrip()
- f.close()
- os.path.walk(self.dir, add_to_cache, self.cache)
-
-
-class VServer:
-
- INITSCRIPTS = [('/etc/rc.vinit', 'start'),
- ('/etc/rc.d/rc', '%(runlevel)d')]
-
- def __init__(self, name, vm_id = None, vm_running = None):
-
- self.name = name
- self.rlimits_changed = False
- self.dir = "%s/%s" % (vserverimpl.VSERVER_BASEDIR, name)
- if not (os.path.isdir(self.dir) and
- os.access(self.dir, os.R_OK | os.W_OK | os.X_OK)):
- raise NoSuchVServer, "no such vserver: " + name
- self.config = VServerConfig(name, "/etc/vservers/%s" % name)
- self.remove_caps = ~vserverimpl.CAP_SAFE;
- if vm_id == None:
- vm_id = int(self.config.get('context'))
- self.ctx = vm_id
- if vm_running == None:
- vm_running = self.is_running()
- self.vm_running = vm_running
-
- def have_limits_changed(self):
- return self.rlimits_changed
-
- def set_rlimit_limit(self,type,hard,soft,minimum):
- """Generic set resource limit function for vserver"""
- global RLIMITS
- changed = False
- try:
- old_hard, old_soft, old_minimum = self.get_rlimit_limit(type)
- if old_hard != VC_LIM_KEEP and old_hard <> hard: changed = True
- if old_soft != VC_LIM_KEEP and old_soft <> soft: changed = True
- if old_minimum != VC_LIM_KEEP and old_minimum <> minimum: changed = True
- self.rlimits_changed = self.rlimits_changed or changed
- except OSError, e:
- if self.is_running(): print "Unexpected error with getrlimit for running context %d" % self.ctx
-
- resource_type = RLIMITS[type]
- try:
- ret = vserverimpl.setrlimit(self.ctx,resource_type,hard,soft,minimum)
- except OSError, e:
- if self.is_running(): print "Unexpected error with setrlimit for running context %d" % self.ctx
-
- def set_rlimit_config(self,type,hard,soft,minimum):
- """Generic set resource limit function for vserver"""
- if hard <> VC_LIM_KEEP:
- self.config.update('rlimits/%s.hard' % type.lower(), hard)
- if soft <> VC_LIM_KEEP:
- self.config.update('rlimits/%s.soft' % type.lower(), soft)
- if minimum <> VC_LIM_KEEP:
- self.config.update('rlimits/%s.min' % type.lower(), minimum)
- self.set_rlimit_limit(type,hard,soft,minimum)
-
- def get_rlimit_limit(self,type):
- """Generic get resource configuration function for vserver"""
- global RLIMITS
- resource_type = RLIMITS[type]
- try:
- ret = vserverimpl.getrlimit(self.ctx,resource_type)
- except OSError, e:
- print "Unexpected error with getrlimit for context %d" % self.ctx
- ret = self.get_rlimit_config(type)
- return ret
-
- def get_rlimit_config(self,type):
- """Generic get resource configuration function for vserver"""
- hard = int(self.config.get("rlimits/%s.hard"%type.lower(),VC_LIM_KEEP))
- soft = int(self.config.get("rlimits/%s.soft"%type.lower(),VC_LIM_KEEP))
- minimum = int(self.config.get("rlimits/%s.min"%type.lower(),VC_LIM_KEEP))
- return (hard,soft,minimum)
-
- def set_capabilities(self, capabilities):
- return vserverimpl.setbcaps(self.ctx, vserverimpl.text2bcaps(capabilities))
-
- def set_capabilities_config(self, capabilities):
- self.config.update('bcapabilities', capabilities)
- self.set_capabilities(capabilities)
-
- def get_capabilities(self):
- return vserverimpl.bcaps2text(vserverimpl.getbcaps(self.ctx))
-
- def get_capabilities_config(self):
- return self.config.get('bcapabilities', '')
-
- def set_ipaddresses(self, addresses):
- vserverimpl.netremove(self.ctx, "all")
- for a in addresses.split(","):
- vserverimpl.netadd(self.ctx, a)
-
- def set_ipaddresses_config(self, addresses):
- i = 0
- for a in addresses.split(","):
- self.config.update("interfaces/%d/ip" % i, a)
- i += 1
- while self.config.unset("interfaces/%d/ip" % i):
- i += 1
- self.set_ipaddresses(addresses)
-
- def get_ipaddresses_config(self):
- i = 0
- ret = []
- while True:
- r = self.config.get("interfaces/%d/ip" % i, '')
- if r == '':
- break
- ret += [r]
- i += 1
- return ",".join(ret)
-
- def get_ipaddresses(self):
- # No clean way to do this right now.
- return None
-
- def __do_chroot(self):
- self.config.cache_it()
- os.chroot(self.dir)
- os.chdir("/")
-
- def chroot_call(self, fn, *args):
-
- cwd_fd = os.open(".", os.O_RDONLY)
- try:
- root_fd = os.open("/", os.O_RDONLY)
- try:
- self.__do_chroot()
- result = fn(*args)
- finally:
- os.fchdir(root_fd)
- os.chroot(".")
- os.fchdir(cwd_fd)
- os.close(root_fd)
- finally:
- os.close(cwd_fd)
- return result
-
- def set_disklimit(self, block_limit):
- # block_limit is in kB
- if block_limit == 0:
- try:
- vserverimpl.unsetdlimit(self.dir, self.ctx)
- except OSError, e:
- print "Unexpected error with unsetdlimit for context %d" % self.ctx
- return
-
- if self.vm_running:
- block_usage = vserverimpl.DLIMIT_KEEP
- inode_usage = vserverimpl.DLIMIT_KEEP
- else:
- # init_disk_info() must have been called to get usage values
- block_usage = self.disk_blocks
- inode_usage = self.disk_inodes
-
-
- try:
- vserverimpl.setdlimit(self.dir,
- self.ctx,
- block_usage,
- block_limit,
- inode_usage,
- vserverimpl.DLIMIT_INF, # inode limit
- 2) # %age reserved for root
- except OSError, e:
- print "Unexpected error with setdlimit for context %d" % self.ctx
-
-
- self.config.update('dlimits/0/space_total', block_limit)
-
- def is_running(self):
- return vserverimpl.isrunning(self.ctx)
-
- def get_disklimit(self):
-
- try:
- (self.disk_blocks, block_limit, self.disk_inodes, inode_limit,
- reserved) = vserverimpl.getdlimit(self.dir, self.ctx)
- except OSError, ex:
- if ex.errno != errno.ESRCH:
- raise
- # get here if no vserver disk limit has been set for xid
- block_limit = -1
-
- return block_limit
-
- def set_sched_config(self, cpu_share, sched_flags):
-
- """ Write current CPU scheduler parameters to the vserver
- configuration file. This method does not modify the kernel CPU
- scheduling parameters for this context. """
-
- if sched_flags & SCHED_CPU_GUARANTEED:
- cpu_guaranteed = cpu_share
- else:
- cpu_guaranteed = 0
- self.config.update('sched/fill-rate2', cpu_share)
- self.config.update('sched/fill-rate', cpu_guaranteed)
-
- if self.vm_running:
- self.set_sched(cpu_share, sched_flags)
-
- def set_sched(self, cpu_share, sched_flags = 0):
- """ Update kernel CPU scheduling parameters for this context. """
- vserverimpl.setsched(self.ctx, cpu_share, sched_flags)
-
- def get_sched(self):
- # have no way of querying scheduler right now on a per vserver basis
- return (-1, False)
-
- def set_bwlimit(self, minrate = bwlimit.bwmin, maxrate = None,
- exempt_min = None, exempt_max = None,
- share = None, dev = "eth0"):
-
- if minrate is None:
- bwlimit.off(self.ctx, dev)
- else:
- bwlimit.on(self.ctx, dev, share,
- minrate, maxrate, exempt_min, exempt_max)
-
- def get_bwlimit(self, dev = "eth0"):
-
- result = bwlimit.get(self.ctx)
- # result of bwlimit.get is (ctx, share, minrate, maxrate)
- if result:
- result = result[1:]
- return result
-
- def open(self, filename, mode = "r", bufsize = -1):
-
- return self.chroot_call(open, filename, mode, bufsize)
-
- def __do_chcontext(self, state_file):
-
- if state_file:
- print >>state_file, "%u" % self.ctx
- state_file.close()
-
- if vserverimpl.chcontext(self.ctx, vserverimpl.text2bcaps(self.get_capabilities_config())):
- self.set_resources()
- vserverimpl.setup_done(self.ctx)
-
- def __prep(self, runlevel, log):
-
- """ Perform all the crap that the vserver script does before
- actually executing the startup scripts. """
-
- # remove /var/run and /var/lock/subsys files
- # but don't remove utmp from the top-level /var/run
- RUNDIR = "/var/run"
- LOCKDIR = "/var/lock/subsys"
- filter_fn = lambda fs: filter(lambda f: f != 'utmp', fs)
- garbage = reduce((lambda (out, ff), (dir, subdirs, files):
- (out + map((dir + "/").__add__, ff(files)),
- lambda fs: fs)),
- list(os.walk(RUNDIR)),
- ([], filter_fn))[0]
- garbage += filter(os.path.isfile, map((LOCKDIR + "/").__add__,
- os.listdir(LOCKDIR)))
- if False:
- for f in garbage:
- os.unlink(f)
-
- # set the initial runlevel
- f = open(RUNDIR + "/utmp", "w")
- vserverimpl.setrunlevel(f, runlevel)
- f.close()
-
- # mount /proc and /dev/pts
- self.__do_mount("none", self.dir, "/proc", "proc")
- # XXX - magic mount options
- self.__do_mount("none", self.dir, "/dev/pts", "devpts", 0, "gid=5,mode=0620")
-
- def __do_mount(self, *mount_args):
-
- try:
- vserverimpl.mount(*mount_args)
- except OSError, ex:
- if ex.errno == errno.EBUSY:
- # assume already mounted
- return
- raise ex
-
- def enter(self):
- self.__do_chroot()
- self.__do_chcontext(None)
-
- def start(self, wait, runlevel = 3):
- self.vm_running = True
- self.rlimits_changed = False
-
- child_pid = os.fork()
- if child_pid == 0:
- # child process
- try:
- # get a new session
- os.setsid()
-
- # open state file to record vserver info
- state_file = open("/var/run/vservers/%s" % self.name, "w")
-
- # use /dev/null for stdin, /var/log/boot.log for stdout/err
- fd = os.open("/dev/null", os.O_RDONLY)
- if fd != 0:
- os.dup2(fd, 0)
- os.close(fd)
- self.__do_chroot()
- log = open("/var/log/boot.log", "w", 0)
- if log.fileno() != 1:
- os.dup2(log.fileno(), 1)
- os.dup2(1, 2)
-
- print >>log, ("%s: starting the virtual server %s" %
- (time.asctime(time.gmtime()), self.name))
-
- # perform pre-init cleanup
- self.__prep(runlevel, log)
-
- # execute each init script in turn
- # XXX - we don't support all scripts that vserver script does
- self.__do_chcontext(state_file)
- for cmd in self.INITSCRIPTS:
- try:
- # enter vserver context
- arg_subst = { 'runlevel': runlevel }
- cmd_args = [cmd[0]] + map(lambda x: x % arg_subst,
- cmd[1:])
- print >>log, "executing '%s'" % " ".join(cmd_args)
- os.spawnvp(os.P_NOWAIT,cmd[0],cmd_args)
- except:
- traceback.print_exc()
- os._exit(1)
-
- # we get here due to an exception in the top-level child process
- except Exception, ex:
- traceback.print_exc()
- os._exit(0)
-
- # parent process
- return child_pid
-
- def set_resources(self):
-
- """ Called when vserver context is entered for first time,
- should be overridden by subclass. """
-
- pass
-
- def init_disk_info(self):
- cmd = "/usr/sbin/vdu --script --space --inodes --blocksize 1024 --xid %d %s" % (self.ctx, self.dir)
- p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE,
- stdout=subprocess.PIPE, stderr=subprocess.PIPE,
- close_fds=True)
- p.stdin.close()
- line = p.stdout.readline()
- if not line:
- sys.stderr.write(p.stderr.read())
- p.stdout.close()
- p.stderr.close()
- ret = p.wait()
-
- (space, inodes) = line.split()
- self.disk_inodes = int(inodes)
- self.disk_blocks = int(space)
- #(self.disk_inodes, self.disk_blocks) = vduimpl.vdu(self.dir)
-
- return self.disk_blocks * 1024
-
- def stop(self, signal = signal.SIGKILL):
- vserverimpl.killall(self.ctx, signal)
- self.vm_running = False
- self.rlimits_changed = False
-
-
-
-def create(vm_name, static = False, ctor = VServer):
-
- options = ['vuseradd']
- if static:
- options += ['--static']
- ret = os.spawnvp(os.P_WAIT, 'vuseradd', options + [vm_name])
- if not os.WIFEXITED(ret) or os.WEXITSTATUS(ret) != 0:
- out = "system command ('%s') " % options
- if os.WIFEXITED(ret):
- out += "failed, rc = %d" % os.WEXITSTATUS(ret)
- else:
- out += "killed by signal %d" % os.WTERMSIG(ret)
- raise SystemError, out
- vm_id = pwd.getpwnam(vm_name)[2]
-
- return ctor(vm_name, vm_id)
+++ /dev/null
-/* Copyright 2005 Princeton University
-
-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 the copyright holder 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 PRINCETON
-UNIVERSITY 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.
-
-*/
-
-#include <Python.h>
-
-#include <errno.h>
-#include <stdint.h>
-#include <sys/resource.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <ifaddrs.h>
-#include <stddef.h>
-#include <fcntl.h>
-#include <sys/mount.h>
-#include <utmp.h>
-
-#include "config.h"
-#include "pathconfig.h"
-#include "virtual.h"
-#include "vserver.h"
-#include "planetlab.h"
-#include "vserver-internal.h"
-
-static inline PyObject *inc_and_ret_none(void)
-{
- Py_INCREF(Py_None);
- return Py_None;
-}
-
-#define NONE inc_and_ret_none()
-
-/*
- * context create
- */
-static PyObject *
-vserver_chcontext(PyObject *self, PyObject *args)
-{
- int ctx_is_new;
- xid_t ctx;
- uint_least64_t bcaps = 0;
-
- if (!PyArg_ParseTuple(args, "I|K", &ctx, &bcaps))
- return NULL;
- bcaps |= ~vc_get_insecurebcaps();
-
- if ((ctx_is_new = pl_chcontext(ctx, bcaps, 0)) < 0)
- return PyErr_SetFromErrno(PyExc_OSError);
-
- return PyBool_FromLong(ctx_is_new);
-}
-
-static PyObject *
-vserver_setup_done(PyObject *self, PyObject *args)
-{
- xid_t ctx;
-
- if (!PyArg_ParseTuple(args, "I", &ctx))
- return NULL;
-
- if (pl_setup_done(ctx) < 0)
- return PyErr_SetFromErrno(PyExc_OSError);
-
- return NONE;
-}
-
-static PyObject *
-vserver_isrunning(PyObject *self, PyObject *args)
-{
- xid_t ctx;
- PyObject *ret;
- struct stat statbuf;
- char fname[64];
-
- if (!PyArg_ParseTuple(args, "I", &ctx))
- return NULL;
-
- sprintf(fname,"/proc/virtual/%d", ctx);
-
- if(stat(&fname[0],&statbuf)==0)
- ret = PyBool_FromLong(1);
- else
- ret = PyBool_FromLong(0);
-
- return ret;
-}
-
-static PyObject *
-__vserver_get_rlimit(xid_t xid, int resource) {
- struct vc_rlimit limits;
- PyObject *ret;
-
- errno = 0;
- if (vc_get_rlimit(xid, resource, &limits)==-1)
- ret = PyErr_SetFromErrno(PyExc_OSError);
- else
- ret = Py_BuildValue("LLL",limits.hard, limits.soft, limits.min);
-
- return ret;
-}
-
-static PyObject *
-vserver_get_rlimit(PyObject *self, PyObject *args) {
- xid_t xid;
- int resource;
- PyObject *ret;
-
- if (!PyArg_ParseTuple(args, "Ii", &xid, &resource))
- ret = NULL;
- else
- ret = __vserver_get_rlimit(xid, resource);
-
- return ret;
-}
-
-static PyObject *
-vserver_set_rlimit(PyObject *self, PyObject *args) {
- struct vc_rlimit limits;
- struct rlimit lim;
- xid_t xid;
- int resource, lresource;
- PyObject *ret;
-
- limits.min = VC_LIM_KEEP;
- limits.soft = VC_LIM_KEEP;
- limits.hard = VC_LIM_KEEP;
-
- if (!PyArg_ParseTuple(args, "IiLLL", &xid, &resource, &limits.hard, &limits.soft, &limits.min))
- return NULL;
-
- lresource = resource;
- switch (resource) {
- case VC_VLIMIT_NSOCK:
- case VC_VLIMIT_ANON:
- case VC_VLIMIT_SHMEM:
- goto do_vc_set_rlimit;
- case VC_VLIMIT_OPENFD:
- lresource = RLIMIT_NOFILE;
- break;
- default:
- break;
- }
-
- getrlimit(lresource,&lim);
- if (adjust_lim(&limits,&lim)) {
- setrlimit(lresource, &lim);
- }
-
- do_vc_set_rlimit:
- errno = 0;
- if (vc_set_rlimit(xid, resource, &limits)==-1)
- ret = PyErr_SetFromErrno(PyExc_OSError);
- else
- ret = __vserver_get_rlimit(xid, resource);
-
- return ret;
-}
-
-/*
- * setsched
- */
-static PyObject *
-vserver_setsched(PyObject *self, PyObject *args)
-{
- xid_t ctx;
- uint32_t cpu_share;
- uint32_t cpu_sched_flags = VC_VXF_SCHED_FLAGS;
-
- if (!PyArg_ParseTuple(args, "II|I", &ctx, &cpu_share, &cpu_sched_flags))
- return NULL;
-
- /* ESRCH indicates that there are no processes in the context */
- if (pl_setsched(ctx, cpu_share, cpu_sched_flags) &&
- errno != ESRCH)
- return PyErr_SetFromErrno(PyExc_OSError);
-
- return NONE;
-}
-
-static PyObject *
-vserver_get_dlimit(PyObject *self, PyObject *args)
-{
- PyObject *res;
- char* path;
- unsigned xid;
- struct vc_ctx_dlimit data;
- int r;
-
- if (!PyArg_ParseTuple(args, "si", &path,&xid))
- return NULL;
-
- memset(&data, 0, sizeof(data));
- r = vc_get_dlimit(path, xid, 0, &data);
- if (r>=0) {
- res = Py_BuildValue("(i,i,i,i,i)",
- data.space_used,
- data.space_total,
- data.inodes_used,
- data.inodes_total,
- data.reserved);
- } else {
- res = PyErr_SetFromErrno(PyExc_OSError);
- }
-
- return res;
-}
-
-
-static PyObject *
-vserver_set_dlimit(PyObject *self, PyObject *args)
-{
- char* path;
- unsigned xid;
- struct vc_ctx_dlimit data;
-
- memset(&data,0,sizeof(data));
- if (!PyArg_ParseTuple(args, "siiiiii", &path,
- &xid,
- &data.space_used,
- &data.space_total,
- &data.inodes_used,
- &data.inodes_total,
- &data.reserved))
- return NULL;
-
- if ((vc_add_dlimit(path, xid, 0) && errno != EEXIST) ||
- vc_set_dlimit(path, xid, 0, &data))
- return PyErr_SetFromErrno(PyExc_OSError);
-
- return NONE;
-}
-
-static PyObject *
-vserver_unset_dlimit(PyObject *self, PyObject *args)
-{
- char *path;
- unsigned xid;
-
- if (!PyArg_ParseTuple(args, "si", &path, &xid))
- return NULL;
-
- if (vc_rem_dlimit(path, xid, 0) && errno != ESRCH)
- return PyErr_SetFromErrno(PyExc_OSError);
-
- return NONE;
-}
-
-static PyObject *
-vserver_killall(PyObject *self, PyObject *args)
-{
- xid_t ctx;
- int sig;
- struct vc_ctx_flags cflags = {
- .flagword = 0,
- .mask = VC_VXF_PERSISTENT
- };
- struct vc_net_flags nflags = {
- .flagword = 0,
- .mask = VC_NXF_PERSISTENT
- };
-
- if (!PyArg_ParseTuple(args, "Ii", &ctx, &sig))
- return NULL;
-
- if (vc_ctx_kill(ctx, 0, sig) && errno != ESRCH)
- return PyErr_SetFromErrno(PyExc_OSError);
-
- if (vc_set_cflags(ctx, &cflags) && errno != ESRCH)
- return PyErr_SetFromErrno(PyExc_OSError);
-
- if (vc_set_nflags(ctx, &nflags) && errno != ESRCH)
- return PyErr_SetFromErrno(PyExc_OSError);
-
- return NONE;
-}
-
-static PyObject *
-vserver_set_bcaps(PyObject *self, PyObject *args)
-{
- xid_t ctx;
- struct vc_ctx_caps caps;
-
- if (!PyArg_ParseTuple(args, "IK", &ctx, &caps.bcaps))
- return NULL;
-
- caps.bmask = vc_get_insecurebcaps();
- caps.cmask = caps.ccaps = 0;
- if (vc_set_ccaps(ctx, &caps) == -1 && errno != ESRCH)
- return PyErr_SetFromErrno(PyExc_OSError);
-
- return NONE;
-}
-
-static PyObject *
-vserver_text2bcaps(PyObject *self, PyObject *args)
-{
- struct vc_ctx_caps caps = { .bcaps = 0 };
- const char *list;
- int len;
- struct vc_err_listparser err;
-
- if (!PyArg_ParseTuple(args, "s#", &list, &len))
- return NULL;
-
- vc_list2bcap(list, len, &err, &caps);
-
- return Py_BuildValue("K", caps.bcaps);
-}
-
-static PyObject *
-vserver_get_bcaps(PyObject *self, PyObject *args)
-{
- xid_t ctx;
- struct vc_ctx_caps caps;
-
- if (!PyArg_ParseTuple(args, "I", &ctx))
- return NULL;
-
- if (vc_get_ccaps(ctx, &caps) == -1) {
- if (errno != -ESRCH)
- return PyErr_SetFromErrno(PyExc_OSError);
- else
- caps.bcaps = 0;
- }
-
- return Py_BuildValue("K", caps.bcaps & vc_get_insecurebcaps());
-}
-
-static PyObject *
-vserver_bcaps2text(PyObject *self, PyObject *args)
-{
- struct vc_ctx_caps caps = { .bcaps = 0 };
- PyObject *list;
- const char *cap;
-
- if (!PyArg_ParseTuple(args, "K", &caps.bcaps))
- return NULL;
-
- list = PyString_FromString("");
-
- while ((cap = vc_lobcap2text(&caps.bcaps)) != NULL) {
- if (list == NULL)
- break;
- PyString_ConcatAndDel(&list, PyString_FromFormat(
- (PyString_Size(list) > 0 ? ",CAP_%s" : "CAP_%s" ),
- cap));
- }
-
- return list;
-}
-
-static inline int
-convert_address(const char *str, struct vc_net_addr *addr)
-{
- void *dst;
- if (inet_pton(AF_INET6, str, addr->vna_v6_ip.s6_addr) > 0) {
- addr->vna_type = VC_NXA_TYPE_IPV6;
- return 0;
- }
- else if (inet_pton(AF_INET, str, &addr->vna_v4_ip.s_addr) > 0) {
- addr->vna_type = VC_NXA_TYPE_IPV4;
- return 0;
- }
- return -1;
-}
-
-static int
-mask_to_prefix(void *data, int limit)
-{
- uint8_t *mask = data;
- int prefix;
- for (prefix = 0; prefix < limit && mask[prefix >> 3] & (1 << (prefix & 0x07)); prefix++)
- ;
- return prefix;
-}
-
-static int
-get_mask(struct vc_net_addr *addr)
-{
- struct ifaddrs *head, *ifa;
- int ret = 0;
- int family, offset, len;
- void *ip;
-
- switch (addr->vna_type) {
- case VC_NXA_TYPE_IPV4:
- family = AF_INET;
- offset = offsetof(struct sockaddr_in, sin_addr.s_addr);
- ip = &addr->vna_v4_ip.s_addr;
- len = 4;
- addr->vna_v4_mask.s_addr = htonl(0xffffff00);
- addr->vna_prefix = 24;
- break;
- case VC_NXA_TYPE_IPV6:
- family = AF_INET6;
- offset = offsetof(struct sockaddr_in6, sin6_addr.s6_addr);
- ip = addr->vna_v6_ip.s6_addr;
- len = 16;
- addr->vna_v6_mask.s6_addr32[9] = addr->vna_v6_mask.s6_addr32[1] = 0xffffffff;
- addr->vna_v6_mask.s6_addr32[2] = addr->vna_v6_mask.s6_addr32[3] = 0x00000000;
- addr->vna_prefix = 64;
- break;
- default:
- errno = -EINVAL;
- return -1;
- }
-
- if (getifaddrs(&head) == -1)
- return -1;
- for (ifa = head; ifa; ifa = ifa->ifa_next) {
- if (ifa->ifa_addr->sa_family == family &&
- memcmp((char *) ifa->ifa_addr + offset, ip, len) == 0) {
- switch (addr->vna_type) {
- case VC_NXA_TYPE_IPV4:
- memcpy(&addr->vna_v4_mask.s_addr, ifa->ifa_netmask + offset, len);
- addr->vna_prefix = mask_to_prefix(&addr->vna_v4_mask.s_addr, 32);
- break;
- case VC_NXA_TYPE_IPV6:
- memcpy(addr->vna_v6_mask.s6_addr, ifa->ifa_netmask + offset, len);
- addr->vna_prefix = mask_to_prefix(addr->vna_v6_mask.s6_addr, 128);
- break;
- }
- ret = 1;
- break;
- }
- }
- freeifaddrs(head);
- return ret;
-}
-
-/* XXX These two functions are really similar */
-static PyObject *
-vserver_net_add(PyObject *self, PyObject *args)
-{
- struct vc_net_addr addr;
- nid_t nid;
- const char *ip;
-
- if (!PyArg_ParseTuple(args, "Is", &nid, &ip))
- return NULL;
-
- if (convert_address(ip, &addr) == -1)
- return PyErr_Format(PyExc_ValueError, "%s is not a valid IP address", ip);
-
- switch (get_mask(&addr)) {
- case -1:
- return PyErr_SetFromErrno(PyExc_OSError);
- case 0:
- /* XXX error here? */
- break;
- }
- addr.vna_type |= VC_NXA_TYPE_ADDR;
-
- if (vc_net_add(nid, &addr) == -1 && errno != ESRCH)
- return PyErr_SetFromErrno(PyExc_OSError);
-
- return NONE;
-}
-
-static PyObject *
-vserver_net_remove(PyObject *self, PyObject *args)
-{
- struct vc_net_addr addr;
- nid_t nid;
- const char *ip;
-
- if (!PyArg_ParseTuple(args, "Is", &nid, &ip))
- return NULL;
-
- if (strcmp(ip, "all") == 0)
- addr.vna_type = VC_NXA_TYPE_ANY;
- else if (strcmp(ip, "all4") == 0)
- addr.vna_type = VC_NXA_TYPE_IPV6 | VC_NXA_TYPE_ANY;
- else if (strcmp(ip, "all6") == 0)
- addr.vna_type = VC_NXA_TYPE_IPV6 | VC_NXA_TYPE_ANY;
- else {
- if (convert_address(ip, &addr) == -1)
- return PyErr_Format(PyExc_ValueError, "%s is not a valid IP address", ip);
- addr.vna_type |= VC_NXA_TYPE_ADDR;
- }
-
- switch (get_mask(&addr)) {
- case -1:
- return PyErr_SetFromErrno(PyExc_OSError);
- }
-
- if (vc_net_remove(nid, &addr) == -1 && errno != ESRCH)
- return PyErr_SetFromErrno(PyExc_OSError);
-
- return NONE;
-}
-
-struct secure_dirs {
- int host_fd;
- int cwd_fd;
- int guest_fd;
- int target_fd;
-};
-
-static inline int
-fchroot(int fd)
-{
- if (fchdir(fd) == -1 || chroot(".") == -1)
- return -1;
- return 0;
-}
-
-static inline int
-restore_dirs(struct secure_dirs *dirs)
-{
- if (dirs->host_fd != -1) {
- if (fchroot(dirs->host_fd) == -1)
- return -1;
- if (close(dirs->host_fd) == -1)
- return -1;
- }
- if (dirs->guest_fd != -1) {
- if (close(dirs->guest_fd) == -1)
- return -1;
- }
- if (dirs->target_fd != -1) {
- if (close(dirs->target_fd) == -1)
- return -1;
- }
- if (dirs->cwd_fd != -1) {
- if (fchdir(dirs->cwd_fd) == -1)
- return -1;
- if (close(dirs->cwd_fd) == -1)
- return -1;
- }
- return 0;
-}
-
-static inline int
-secure_chdir(struct secure_dirs *dirs, const char *guest, const char *target)
-{
- dirs->host_fd = dirs->cwd_fd = dirs->guest_fd = dirs->target_fd = -1;
-
- dirs->host_fd = open("/", O_RDONLY|O_DIRECTORY);
- if (dirs->host_fd == -1)
- return -1;
-
- dirs->cwd_fd = open(".", O_RDONLY|O_DIRECTORY);
- if (dirs->cwd_fd == -1)
- return -1;
-
- dirs->guest_fd = open(guest, O_RDONLY|O_DIRECTORY);
- if (dirs->guest_fd == -1)
- return -1;
- if (fchroot(dirs->guest_fd) == -1)
- return -1;
-
- dirs->target_fd = open(target, O_RDONLY|O_DIRECTORY);
- if (dirs->target_fd == -1)
- return -1;
-
- if (fchroot(dirs->host_fd) == -1 || close(dirs->host_fd) == -1)
- return -1;
- dirs->host_fd = -1;
- if (close(dirs->guest_fd) == -1)
- return -1;
- dirs->guest_fd = -1;
-
- if (fchdir(dirs->target_fd) == -1 || close(dirs->target_fd) == -1)
- return -1;
-
- return 0;
-}
-
-static PyObject *
-vserver_mount(PyObject *self, PyObject *args)
-{
- const char *guest, *target, *source, *type, *data = NULL;
- unsigned long flags = 0;
- struct secure_dirs dirs;
-
- if (!PyArg_ParseTuple(args, "ssss|ks", &source, &guest, &target, &type,
- &flags, &data))
- return NULL;
-
- if (secure_chdir(&dirs, guest, target) == -1)
- goto out;
- if (mount(source, ".", type, flags, data) == -1)
- goto out;
- restore_dirs(&dirs);
-
- return NONE;
-
-out:
- restore_dirs(&dirs);
- return PyErr_SetFromErrno(PyExc_OSError);
-}
-
-static PyObject *
-vserver_umount(PyObject *self, PyObject *args)
-{
- const char *guest, *target;
- int flags = 0;
- char *path;
- PyObject *ret;
-
- if (!PyArg_ParseTuple(args, "ss|i", &guest, &target, &flags))
- return NULL;
-
- path = calloc(strlen(guest) + strlen(target) + 2, sizeof(char));
- sprintf(path, "%s/%s", guest, target);
- if (umount2(path, flags) == -1)
- ret = PyErr_SetFromErrno(PyExc_OSError);
- else
- ret = NONE;
- free(path);
-
- return ret;
-}
-
-static PyObject *
-vserver_set_runlevel(PyObject *self, PyObject *args)
-{
- const char *file;
- int runlevel;
- struct utmp ut;
-
- if (!PyArg_ParseTuple(args, "si", &file, &runlevel))
- return NULL;
-
- utmpname(file);
- setutent();
- memset(&ut, 0, sizeof(ut));
- ut.ut_type = RUN_LVL;
- ut.ut_pid = ('#' << 8) + runlevel + '0';
- pututline(&ut);
- endutent();
-
- return NONE;
-}
-
-static PyMethodDef methods[] = {
- { "chcontext", vserver_chcontext, METH_VARARGS,
- "chcontext to vserver with provided flags" },
- { "setup_done", vserver_setup_done, METH_VARARGS,
- "Release vserver setup lock" },
- { "setsched", vserver_setsched, METH_VARARGS,
- "Change vserver scheduling attributes for given vserver context" },
- { "setdlimit", vserver_set_dlimit, METH_VARARGS,
- "Set disk limits for given vserver context" },
- { "unsetdlimit", vserver_unset_dlimit, METH_VARARGS,
- "Remove disk limits for given vserver context" },
- { "getdlimit", vserver_get_dlimit, METH_VARARGS,
- "Get disk limits for given vserver context" },
- { "setrlimit", vserver_set_rlimit, METH_VARARGS,
- "Set resource limits for given resource of a vserver context" },
- { "getrlimit", vserver_get_rlimit, METH_VARARGS,
- "Get resource limits for given resource of a vserver context" },
- { "killall", vserver_killall, METH_VARARGS,
- "Send signal to all processes in vserver context" },
- { "isrunning", vserver_isrunning, METH_VARARGS,
- "Check if vserver is running"},
- { "setbcaps", vserver_set_bcaps, METH_VARARGS,
- "Set POSIX capabilities of a vserver context" },
- { "getbcaps", vserver_get_bcaps, METH_VARARGS,
- "Get POSIX capabilities of a vserver context" },
- { "text2bcaps", vserver_text2bcaps, METH_VARARGS,
- "Translate a string of capabilities to a bitmap" },
- { "bcaps2text", vserver_bcaps2text, METH_VARARGS,
- "Translate a capability-bitmap into a string" },
- { "netadd", vserver_net_add, METH_VARARGS,
- "Assign an IP address to a context" },
- { "netremove", vserver_net_remove, METH_VARARGS,
- "Remove IP address(es) from a context" },
- { "mount", vserver_mount, METH_VARARGS,
- "Perform the mount() system call" },
- { "umount", vserver_umount, METH_VARARGS,
- "Perform the umount2() system call" },
- { "setrunlevel", vserver_set_runlevel, METH_VARARGS,
- "Set the runlevel in utmp" },
- { NULL, NULL, 0, NULL }
-};
-
-PyMODINIT_FUNC
-initvserverimpl(void)
-{
- PyObject *mod;
-
- mod = Py_InitModule("vserverimpl", methods);
-
- /* export the set of 'safe' capabilities */
- PyModule_AddIntConstant(mod, "CAP_SAFE", ~vc_get_insecurebcaps());
-
- /* export the default vserver directory */
- PyModule_AddStringConstant(mod, "VSERVER_BASEDIR", DEFAULT_VSERVERDIR);
-
- /* export limit-related constants */
- PyModule_AddIntConstant(mod, "DLIMIT_KEEP", (int)VC_CDLIM_KEEP);
- PyModule_AddIntConstant(mod, "DLIMIT_INF", (int)VC_CDLIM_INFINITY);
- PyModule_AddIntConstant(mod, "VC_LIM_KEEP", (int)VC_LIM_KEEP);
-
- PyModule_AddIntConstant(mod, "RLIMIT_CPU", (int)RLIMIT_CPU);
- PyModule_AddIntConstant(mod, "RLIMIT_RSS", (int)RLIMIT_RSS);
- PyModule_AddIntConstant(mod, "RLIMIT_NPROC", (int)RLIMIT_NPROC);
- PyModule_AddIntConstant(mod, "RLIMIT_NOFILE", (int)RLIMIT_NOFILE);
- PyModule_AddIntConstant(mod, "RLIMIT_MEMLOCK", (int)RLIMIT_MEMLOCK);
- PyModule_AddIntConstant(mod, "RLIMIT_AS", (int)RLIMIT_AS);
- PyModule_AddIntConstant(mod, "RLIMIT_LOCKS", (int)RLIMIT_LOCKS);
-
- PyModule_AddIntConstant(mod, "RLIMIT_SIGPENDING", (int)RLIMIT_SIGPENDING);
- PyModule_AddIntConstant(mod, "RLIMIT_MSGQUEUE", (int)RLIMIT_MSGQUEUE);
-
- PyModule_AddIntConstant(mod, "VLIMIT_NSOCK", (int)VC_VLIMIT_NSOCK);
- PyModule_AddIntConstant(mod, "VLIMIT_OPENFD", (int)VC_VLIMIT_OPENFD);
- PyModule_AddIntConstant(mod, "VLIMIT_ANON", (int)VC_VLIMIT_ANON);
- PyModule_AddIntConstant(mod, "VLIMIT_SHMEM", (int)VC_VLIMIT_SHMEM);
-
- /* scheduler flags */
- PyModule_AddIntConstant(mod,
- "VS_SCHED_CPU_GUARANTEED",
- VS_SCHED_CPU_GUARANTEED);
-}
+++ /dev/null
-## $Id: Makefile-files 2558 2007-07-10 20:34:48Z dhozac $ -*- makefile -*-
-
-## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-AM_INSTALLCHECK_STD_OPTIONS_EXEMPT += \
- scripts/vapt-get-worker \
- scripts/vrpm-worker \
- scripts/vyum-worker \
- scripts/vrpm-preload \
- scripts/save_s_context \
- scripts/vservers.grabinfo.sh \
- scripts/vpstree \
- scripts/vserver-wrapper \
- scripts/vsysvwrapper \
- scripts/vtop \
- scripts/legacy/distrib-info \
- scripts/legacy/vps \
- scripts/legacy/save_s_context \
- scripts/legacy/vserver \
- scripts/legacy/rootshell \
- scripts/legacy/vserver-copy \
- scripts/legacy/vserverkillall
-
-
-scripts_pkglib_src_DTA = scripts/functions \
- scripts/vserver-build.apt-rpm \
- scripts/vserver-build.skeleton \
- scripts/vserver-build.debootstrap \
- scripts/vserver-build.fai \
- scripts/vserver-build.rpm \
- scripts/vserver-build.yum \
- scripts/vserver-build.template \
- scripts/vserver-build.rsync \
- scripts/vserver-build.clone \
- scripts/vserver-build.functions \
- scripts/vserver-build.functions.apt \
- scripts/vserver-build.functions.rpm \
- scripts/vserver-build.functions.pkgmgmt \
- scripts/vserver-build.functions.yum \
- scripts/vserver-setup.functions \
- scripts/vserver.functions \
- scripts/vserver.start \
- scripts/vserver.stop \
- scripts/vserver.suexec \
- scripts/vserver.delete \
- scripts/vserver-init.functions
-
-scripts_pkglib_gen_DTA = scripts/util-vserver-vars
-
-scripts_pkglib_src_SCRPTS = scripts/pkgmgmt \
- scripts/vapt-get-worker \
- scripts/vpkg \
- scripts/vrpm-worker \
- scripts/vrpm-preload \
- scripts/start-vservers \
- scripts/vprocunhide \
- scripts/vserver-build \
- scripts/vserver-wrapper \
- scripts/vservers.grabinfo.sh \
- scripts/vshelper \
- scripts/vsysvwrapper \
- scripts/vyum-worker \
- scripts/vyum-worker \
- scripts/h2ext-worker \
- scripts/vserver.convert
-
-scripts_legacy_src_SCRPTS = scripts/legacy/save_s_context \
- scripts/legacy/vserver \
- scripts/legacy/rootshell \
- scripts/legacy/distrib-info \
- scripts/legacy/vserverkillall
-scripts_legacy_gen_SCRPTS = scripts/legacy/vps
-scripts_legacy_src_PRGS = scripts/legacy/vserver-copy
-
-scripts_sbin_src_PRGS = scripts/chbind \
- scripts/chcontext \
- scripts/vapt-get \
- scripts/vdispatch-conf \
- scripts/vemerge \
- scripts/vesync \
- scripts/vpstree \
- scripts/vrpm \
- scripts/vserver \
- scripts/vsomething \
- scripts/vtop \
- scripts/vcached \
- scripts/vupdateworld \
- scripts/vuseradd \
- scripts/vuserdel \
- scripts/vyum \
- scripts/convert-vserver-configs
-
-scripts_sbin_gen_PRGS =
-scripts_sbincfg_gen_DTA =
-
-scripts_subst_SRCS = scripts/util-vserver-vars.pathsubst \
- scripts/legacy/vps.pathsubst
-
-
-
-sbin_SCRIPTS += $(scripts_sbin_src_PRGS) $(scripts_sbin_gen_PRGS) \
- $(scripts_legacy_src_PRGS)
-scripts_sbincfg_DTA = $(scripts_sbincfg_gen_DTA)
-pkglib_SCRIPTS += $(scripts_pkglib_src_SCRPTS)
-legacy_SCRIPTS += $(scripts_legacy_src_SCRPTS) $(scripts_legacy_gen_SCRPTS)
-pkglib_DATA += $(scripts_pkglib_src_DTA) $(scripts_pkglib_gen_DTA)
-
-CLEANFILES += $(scripts_pkglib_gen_DTA) \
- $(scripts_sbin_gen_PRGS) \
- $(scripts_sbincfg_gen_DTA) \
- $(scripts_legacy_gen_SCRPTS)
-
-EXTRA_DIST += $(scripts_pkglib_src_DTA) \
- $(scripts_pkglib_src_SCRPTS) \
- $(scripts_legacy_src_SCRPTS) \
- $(scripts_legacy_src_PRGS) \
- $(scripts_sbin_src_PRGS) \
- $(scripts_subst_SRCS)
-
-scripts/util-vserver-vars: scripts/.util-vserver-vars.pathsubst.stamp
-scripts/legacy/vps: scripts/legacy/.vps.pathsubst.stamp
+++ /dev/null
-#! /bin/bash
-# $Id: chbind 2599 2007-08-26 21:30:50Z dhozac $
-
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# Copyright (C) 2006 Daniel Hokka Zakrisson
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-function showHelp()
-{
- echo \
-$"Usage: $1 [--silent] [--nid <nid>] [--ip <ip_num>[/<mask>]]
- [--lback <loopback>] [--bcast <broadcast>]
- [--] <commands> <args>*
-
---silent
- Do not print the addresses assigned.
---nid <nid>
- Network context id to use.
---ip <ip_num>[/<mask>]
- IP address to bind to.
---lback <loopback>
- Loopback address for the network context.
---bcast <broadcast>
- Broadcast address for the network context.
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit $2
-}
-
-function showVersion()
-{
- echo \
-$"chbind $PACKAGE_VERSION -- bind to IP addresses and execute a program
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2004 Enrico Scholz
-Copyright (C) 2006 Daniel Hokka Zakrisson
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit $1
-}
-
-tmp=$(getopt -o + --long ncap:,nid:,ip:,bcast:,lback:,disconnect,flag:,secure,silent,help,version -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-OPT_CAPS=()
-OPT_NID=
-OPT_DISCONNECT=
-OPT_FLAGS=()
-OPT_SECURE=
-OPT_SILENT=
-OPT_BCAST=
-OPT_LBACK=
-OPT_IPS=()
-
-while true; do
- case "$1" in
- --help) showHelp $0 0;;
- --version) showVersion 0;;
- --ncap) OPT_CAPS=( "${OPT_CAPS[@]}" "$2" ); shift;;
- --nid) OPT_NID=$2; shift;;
- --disconnect) OPT_DISCONNECT=1;;
- --flag) OPT_FLAGS=( "${OPT_FLAGS[@]}" "$2" ); shift;;
- --secure) OPT_SECURE=1;;
- --silent) OPT_SILENT=1;;
- --ip) OPT_IPS=( "${OPT_IPS[@]}" --ip "$2" ); shift;;
- --bcast) OPT_BCAST=$2; shift;;
- --lback) OPT_LBACK=$2; shift;;
- --) shift; break;;
- *) echo $"chbind: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-$_VSERVER_INFO - FEATURE vnet || exec $_CHBIND_COMPAT \
- ${OPT_NID:+--nid "$OPT_NID"} \
- ${OPT_SILENT:+--silent} \
- ${OPT_BCAST:+--bcast "$OPT_BCAST"} \
- "${OPT_IPS[@]}" \
- -- "$@"
-
-create_cmd=( $_NCONTEXT --create --silentexist
- ${OPT_SILENT:+--silent}
- ${OPT_NID:+--nid "$OPT_NID"} )
-
-chain_cmd=()
-
-old_IFS=$IFS
-IFS=,$IFS
-
-chain_cmd=( "${chain_cmd[@]}"
- --
- $_NATTRIBUTE --set
- ${OPT_SECURE:+--secure}
- ${OPT_CAPS:+--ncap "${OPT_CAPS[*]}"}
- ${OPT_FLAGS:+--flag "${OPT_FLAGS[*]}"}
- --
- $_NADDRESS --add
- ${OPT_SILENT:+--silent}
- ${OPT_BCAST:+--bcast "$OPT_BCAST"}
- ${OPT_LBACK:+--lback "$OPT_LBACK"}
- "${OPT_IPS[@]}" )
-
-migrate_cmd=( $_NCONTEXT
- ${OPT_SILENT:+--silent}
- ${OPT_DISCONNECT:+--disconnect} )
-
-IFS=$old_IFS
-
-if test -z "$OPT_NID" || $_VSERVER_INFO -q "$OPT_NID" XIDTYPE static; then
- "${create_cmd[@]}" "${chain_cmd[@]}" -- "$@"
- rc=$?
-else
- rc=254
-fi
-
-test "$rc" -ne 254 || exec "${migrate_cmd[@]}" --nid "$OPT_NID" --migrate -- "$@"
-exit $rc
+++ /dev/null
-#! /bin/bash
-# $Id: chcontext 2599 2007-08-26 21:30:50Z dhozac $
-
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-function showHelp()
-{
- echo \
-$"Usage: $1 [--cap [!]<cap_name>] [--secure] [--xid <num>] [--disconnect]
- [--domainname <name>] [--hostname <name>] [--flag <flags>+]
- [--silent] [--] command arguments ...
-
-chcontext allocate a new security context and executes
-a command in that context.
-By default, a new/unused context is allocated
-
---cap CAP_NAME
- Add a capability from the command. This option may be
- repeated several time.
- See /usr/include/linux/capability.h
- In general, this option is used with the --secure option
- --secure removes most critical capabilities and --cap
- adds specific ones.
-
---cap !CAP_NAME
- Remove a capability from the command. This option may be
- repeated several time.
- See /usr/include/linux/capability.h
-
---xid num
- Select the context. On root in context 0 is allowed to
- select a specific context.
- Context number 1 is special. It can see all processes
- in any contexts, but can't kill them though.
- Option --xid may be repeated several times to specify up to 16 contexts.
---disconnect
- Start the command in background and make the process
- a child of process 1.
---domainname new_domainname
- Set the domainname (NIS) in the new security context.
- Use "none" to unset the domain name.
---flag
- Set one flag in the new or current security context. The following
- flags are supported. The option may be used several time.
-
- fakeinit: The new process will believe it is process number 1.
- Useful to run a real /sbin/init in a vserver.
- lock: The new process is trapped and can't use chcontext anymore.
- sched: The new process and its children will share a common
- execution priority.
- nproc: Limit the number of process in the vserver according to
- ulimit setting. Normally, ulimit is a per user thing.
- With this flag, it becomes a per vserver thing.
- private: No one can join this security context once created.
- ulimit: Apply the current ulimit to the whole context
---hostname new_hostname
- Set the hostname in the new security context
- This is need because if you create a less privileged
- security context, it may be unable to change its hostname
---secure
- Remove all the capabilities to make a virtual server trustable
---silent
- Do not print the allocated context number.
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit $2
-}
-
-function showVersion()
-{
- echo \
-$"chcontext $PACKAGE_VERSION -- allocates/enters a security context
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2004 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit $1
-}
-
-$_VSERVER_INFO - FEATURE migrate || exec $_CHCONTEXT_COMPAT "$@"
-
-tmp=$(getopt -o + --long cap:,ctx:,xid:,disconnect,domainname:,flag:,hostname:,secure,silent,help,version -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-OPT_CAPS=()
-OPT_CTX=
-OPT_DISCONNECT=
-OPT_FLAGS=()
-OPT_SECURE=
-OPT_SILENT=
-OPT_INITPID=
-
-while true; do
- case "$1" in
- --help) showHelp $0 0;;
- --version) showVersion 0;;
- --cap) OPT_CAPS=( "${OPT_CAPS[@]}" "$2" ); shift;;
- --ctx|--xid) OPT_CTX=$2; shift;;
- --disconnect) OPT_DISCONNECT=1;;
- --domainname) OPT_DOMAINNAME=$2; shift;;
- --hostname) OPT_HOSTNAME=$2; shift;;
- --flag)
- test "$2" != "fakeinit" || OPT_INITPID=--initpid
- OPT_FLAGS=( "${OPT_FLAGS[@]}" "$2" )
- shift
- ;;
- --secure) OPT_SECURE=1;;
- --silent) OPT_SILENT=1;;
- --) shift; break;;
- *) echo $"chcontext: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-create_cmd=( ${OPT_CTX:+$_VTAG --create --tag "$OPT_CTX" --silentexist --silent --}
- $_VCONTEXT --create --silentexist
- ${OPT_SILENT:+--silent}
- ${OPT_CTX:+--xid "$OPT_CTX"} )
-
-chain_cmd=()
-
-old_IFS=$IFS
-IFS=,$IFS
-
-test -z "$OPT_DOMAINNAME$OPT_HOSTNAME" || \
- chain_cmd=( "${chain_cmd[@]}"
- --
- $_VUNAME --set --xid self
- ${OPT_DOMAINNAME:+-t domainname="$OPT_DOMAINNAME"}
- ${OPT_HOSTNAME:+ -t nodename="$OPT_HOSTNAME"} )
-
-chain_cmd=( "${chain_cmd[@]}"
- --
- $_VATTRIBUTE --set
- ${OPT_SECURE:+--secure}
- ${OPT_CAPS:+--bcap "${OPT_CAPS[*]}"}
- ${OPT_FLAGS:+--flag "${OPT_FLAGS[*]}"} )
-
-migrate_cmd=( $_VCONTEXT
- ${OPT_SILENT:+--silent}
- ${OPT_DISCONNECT:+--disconnect}
- $OPT_INITPID )
-
-IFS=$old_IFS
-
-if test -z "$OPT_CTX" || $_VSERVER_INFO -q "$OPT_CTX" XIDTYPE static; then
- "${create_cmd[@]}" "${chain_cmd[@]}" -- \
- "${migrate_cmd[@]}" --endsetup --migrate-self -- "$@"
- rc=$?
-else
- rc=254
-fi
-
-test "$rc" -ne 254 || exec "$_VTAG" --migrate --tag "$OPT_CTX" --silent -- \
- "${migrate_cmd[@]}" --xid "$OPT_CTX" --migrate -- "$@"
-exit $rc
+++ /dev/null
-#!/bin/bash
-#
-# $Id$
-# Copyright (C) 2007 The Trustees of Princeton University
-#
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-for i in $__CONFDIR/*.conf; do
- if test -r "$i"; then
- vserver=`echo "$i" | sed "s@$__CONFDIR/@@;s@\.conf@@"`
- echo "Processing '$vserver'"
- if ! $_VSERVER "$vserver" convert; then
- echo "ERROR: '$vserver' could not be converted" >&2
- fi
- fi
-done
-
-exit 0
+++ /dev/null
-# $Id: functions 2586 2007-08-13 18:10:06Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003,2004,2005,2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-_VS_LOGFILE=
-_VS_ERRFILE=
-
-_VS_NEWLINE='
-'
-declare -r _VS_NEWLINE=${_VS_NEWLINE:0-1}
-declare -r VS_ALLVSERVERS_ARGS=all,marked,unmarked,stopped,running
-
-function findObject
-{
- local _fo_mod=$1
- local _fo_var=$2
- local _fo_file=
- local _fo_i=X
- shift 2
-
- for _fo_i; do
- test -n "$_fo_i" || continue
- test ! $_fo_mod "$_fo_i" || { _fo_file=$_fo_i; break; }
- done
-
- test -z "$_fo_i" -o -n "$_fo_file" || {
- echo "Can not find file for '$_fo_var'; aborting"
- exit 1
- } >&2
-
- eval "$_fo_var=\"$_fo_file\""
-}
-
-function findFile
-{
- findObject -f "$@"
-}
-
-function findDir
-{
- findObject -d "$@"
-}
-
-function findAndCopy
-{
- local dst=$1
- test ! -s "$dst" || return 0
-
- local tmp
- shift
- findFile tmp "$@"
-
- test -n "$tmp" -a -s "$tmp" || return 0
- $_CP -af "$tmp" "$dst"
-}
-
-## Usage: isRegularFile <filename> [<mod>]
-function isRegularFile
-{
- test ${2:--f} "$1" || return 1
-
- case $1 in
- (*.rpmsave|*.rpmnew|*.rpmorig|*.cfsaved*|*.~*~) return 1;;
- esac
-
- return 0
-}
-
-function getPhysicalDir
-{
- ( set -P && cd "$1" && pwd )
-}
-
-## Usage:: isDirectoryEmpty <dir> [<ignore-lost+found>]
-function isDirectoryEmpty
-{
- (
- shopt -s dotglob || *
- shopt -s nullglob || *
-
- ignore_lostfound=1
- test -z "$2" -o "$2" = 0 || ignore_lostfound=
-
- for i in "$1"/*; do
- case "$i" in
- ($1/lost+found)
- test "$ignore_lostfound" || exit 1
- ;;
- (*) echo "$i"; exit 1
- esac
- done
-
- exit 0
- )
-}
-
-## Usage: logging <message>
-function logging
-{
- if test -n "$_VS_LOGFILE"; then
- echo "$@" >>"$_VS_LOGFILE"
- else
- echo "$@"
- fi
-}
-
-## Usage: warning <message>
-function warning
-{
- if test -n "$_VS_ERRFILE"; then
- echo "$@" >>"$_VS_ERRFILE"
- else
- echo "$@" >&2
- fi
-}
-
-## Usage: panic <message>
-function panic
-{
- if test -n "$_VS_ERRFILE"; then
- echo "$@" >>"$_VS_ERRFILE"
- else
- echo "$@" >&2
- fi
-
- exit 1
-}
-
-## Usage: execute <message>
-function execute
-{
- test -z "${DEBUG_EXEC:-}" || echo "$@"
- test "${DEBUG_EXEC:-}" = noexec || exec "$@"
- exit 0
-}
-
-
-## Usage: spawn <message>
-function spawn
-{
- test -z "${DEBUG_EXEC:-}" || echo "$@"
- test "${DEBUG_EXEC:-}" = noexec || "$@"
-}
-
-## Usage: isNumber <arg>
-function isNumber
-{
- local tmp
- let tmp=$1+0 2>/dev/null || test -z "${1//0/}" -a -n "$1" || return 1
- return 0
-}
-
-## Usage: hasSubstring <haystack> <needle>+
-function hasSubstring
-{
- local pat=$1
- local i
-
- shift
-
- for i; do
- test x"${pat/*$i*/$i}" = x"$i" || continue
- return 0
- done
-
- return 1
-}
-
-## Usage: colorize <style> <command>
-function colorize
-{
- local style=$1
- shift
-
- if ! $_TTY -s; then
- "$@"
- else
- local cfile
- findFile cfile "$__CONFDIR"/.defaults/styles/"$style" ''
- if test -n "$cfile"; then
- $_CAT "$cfile"
- else
- case "$style" in
- (bold) echo -ne "\e[1m";;
- (emph) echo -ne "\e[34m";;
- (info) echo -ne "\e[0;34m";;
- (warn*) echo -ne "\e[1;31m";;
- (error) echo -ne "\e[1;33;41m";;
- (*) ;;
- esac
- fi
-
- ( "$@" )
- echo -ne "\e[m"
- fi
-}
-
-function colpanic
-{
- if test -n "$_VS_ERRFILE"; then
- echo "$@" >>"$_VS_ERRFILE"
- else
- colorize error echo -n "$@" >&2
- fi
- echo
-
- exit 1
-}
-
-function colwarning
-{
- colorize warning warning "$@"
-}
-
-function colinfo
-{
- colorize info echo "$@"
-}
-
-
-## Usage: xtermTitle <title>
-function xtermTitle
-{
- $_TTY -s || return 0
- echo -ne "\e]0;$@\007"
-}
-
-_VS_LOCKS=''
-## Usage: lock <lockfile> [<timeout>]
-function lock
-{
- local tmp=$($_MKTEMP vserver-lock.XXXXXX)
- $_RM -f $tmp
- $_MKFIFO -m600 $tmp
-
- $_LOCKFILE "$1" $tmp $2 &
- $_GREP -q true $tmp 2>/dev/null || return 1
-
- _VS_LOCKS="$! $_VS_LOCKS"
-}
-
-## Usage: unlock [<num>]
-function unlock
-{
- local num=$1
- local i
-
- set -- $_VS_LOCKS
- while test "$#" -gt 0; do
- kill -HUP "$1" >/dev/null || :
- shift
- test "$num" != 1 || break
- test -z "$num" || let --num
- done
- _VS_LOCKS="$@"
-}
-
-function get_init_cwd
-{
- if test -n "$INIT_CWD"; then
- echo "$INIT_CWD"
- else
- pwd
- fi
-}
-function set_init_cwd
-{
- INIT_CWD="`pwd`"
- export INIT_CWD
-}
-
-function _setVserverDir
-{
- local vserver="$1"
- case "$vserver" in
- ./*) VSERVER_DIR="`get_init_cwd`/$vserver";;
- /*) VSERVER_DIR="$vserver" ;;
- *) VSERVER_DIR="$__CONFDIR/$vserver" ;;
- esac
-}
-
-function _setVserverName
-{
- if test -e "$VSERVER_DIR"/name; then
- read VSERVER_NAME <"$VSERVER_DIR"/name
- else
- VSERVER_NAME=$(basename "$VSERVER_DIR")
- fi
-}
-
-function _pkgMountBindDir()
-{
- test "$1" != "$2" || return 0
-
- $_MOUNT -n --bind "$1" "$2"
-}
-
-function _pkgSetVarsBase
-{
- case "$vserver" in
- ./*|/*)
- if test -d "$vserver/vdir"; then
- BASEDIR=$vserver
- VDIR=$(getPhysicalDir "$vserver/vdir")
-
- PKGDIR=$BASEDIR/apps/pkgmgmt
- test -d "$PKGDIR" || {
- echo "Can not find configuration-directory for package-managment tools"
- exit 1
- } >&2
- findDir EXECDIR $PKGDIR/execdir /
- else
- VDIR=$(getPhysicalDir "$vserver")
- PKGDIR=
- fi
- ;;
- *)
- BASEDIR=$__CONFDIR/$vserver
- test -d "$BASEDIR" || {
- echo "Can not find configuration-directory"
- exit 1
- } >&2
-
- VDIR=$BASEDIR/vdir
- test -d "$VDIR" || VDIR=$__DEFAULT_VSERVERDIR/$vserver
- VDIR=$(getPhysicalDir "$VDIR")
-
- PKGDIR=$BASEDIR/apps/pkgmgmt
- test -d "$PKGDIR" || {
- echo "Can not find configuration-directory for package-managment tools"
- exit 1
- } >&2
-
- findDir EXECDIR $PKGDIR/execdir /
-
- ;;
- esac
-
- if test -z "$WORKAROUND_106057"; then
- _rpmdb_mntpoint=/dev
- else
- _rpmdb_mntpoint=/.rpmdb
- fi
-}
-
-function _pkgSetVarsRPM
-{
- if test -n "$PKGDIR"; then
- findDir RPMETCDIR $PKGDIR/rpmetc $PKGDIR/base/rpm/etc /etc/rpm
- findDir RPMSTATEDIR $PKGDIR/rpmstate $PKGDIR/base/rpm/state
-
- findDir RPMLIBDIR $PKGDIR/rpmlib /
-
- else
- findDir RPMETCDIR "$VDIR"/etc/rpm /etc/rpm
- findDir RPMSTATEDIR "$VDIR"/var/lib/rpm
- RPMLIBDIR=/
- fi
-
- RPMSTATEDIR=$(getPhysicalDir "$RPMSTATEDIR")
- RPMETCDIR=$(getPhysicalDir "$RPMETCDIR")
-}
-
-function _pkgSetVarsApt
-{
- if test -n "$PKGDIR"; then
- findDir APTETCDIR $PKGDIR/aptetc $PKGDIR/base/apt/etc /etc/apt
- findDir APTSTATEDIR $PKGDIR/aptstate $PKGDIR/base/apt/state
- findDir APTCACHEDIR $PKGDIR/aptcache $PKGDIR/base/apt/cache
- findDir APTARCHIVDIR $PKGDIR/aptarchives $PKGDIR/base/apt/archives /var/cache/apt/archives
- else
- findDir APTETCDIR "$VDIR"/etc/apt /etc/apt
- findDir APTSTATEDIR "$VDIR"/var/state/apt
- findDir APTCACHEDIR "$VDIR"/var/cache/apt
- findDir APTARCHIVDIR "$VDIR"/var/cache/apt/archives /var/cache/apt/archives
- fi
-
- findFile APT_CONFIG "$APTETCDIR"/apt.conf ""
- test -z "$APT_CONFIG" || export APT_CONFIG
-}
-
-function _pkgSetVarsYum
-{
- if test -n "$PKGDIR"; then
- findDir YUMETCDIR $PKGDIR/yumetc $PKGDIR/base/yum/etc /etc
- findDir YUMCACHEDIR $PKGDIR/yumcache $PKGDIR/base/yum/cache
- else
- findDir YUMETCDIR "$VDIR"/etc /etc
- findDir YUMCACHEDIR "$VDIR"/var/cache/yum
- fi
-}
-
-
-function _pkgMountBase
-{
- :
-}
-
-function _pkgMountApt
-{
- :
-}
-
-function _pkgMountYum
-{
- :
-}
-
-function _pkgMountRPM
-{
- _pkgMountBindDir "$RPMETCDIR" /etc/rpm
- test "$RPMLIBDIR" = "/" || _pkgMountBindDir "$RPMLIBDIR" /usr/lib/rpm
-
- pushd "$VDIR" >/dev/null
-
- $_SECURE_MOUNT --chroot -n --bind "$RPMSTATEDIR" "$_rpmdb_mntpoint"
- test -z "$WORKAROUND_106057" || mount -n --bind "$RPMSTATEDIR" "$_rpmdb_mntpoint"
-
- test -e "$VDIR"/proc/self/status || \
- $_SECURE_MOUNT --chroot -n -t proc none /proc
-
- popd >/dev/null
-}
-
-function _pkgSetEnvBase
-{
- test "$EXECDIR" = "/" || {
- PATH=$EXECDIR:$PATH
- LD_LIBRARY_PATH=$EXECDIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
- }
-
- export PATH LD_LIBRARY_PATH
-}
-
-function _pkgSetEnvApt
-{
- :
-}
-
-function _pkgSetEnvYum
-{
- :
-}
-
-function _pkgSetEnvRPM
-{
- CUR_VSERVER=$vserver
- RPM_FAKE_NAMESPACE_MOUNTS=$_rpmdb_mntpoint
- RPM_BINARY=$_VRPM_PRELOAD
-
- export CUR_VSERVER RPM_FAKE_NAMESPACE_MOUNTS RPM_BINARY
-}
-
-function pkgInit
-{
- local i
- local vserver=$1
- shift
-
- _pkgSetVarsBase
- for i; do
- case "$i" in
- rpm) _pkgSetVarsRPM;;
- apt) _pkgSetVarsApt;;
- yum) _pkgSetVarsYum;;
- *) echo "Unknown packaging flavor" >&2; exit 1;;
- esac
- done
-
- _pkgMountBase
- for i; do
- case "$i" in
- rpm) _pkgMountRPM;;
- apt) _pkgMountApt;;
- yum) _pkgMountYum;;
- esac
- done
-
- _pkgSetEnvBase
- for i; do
- case "$i" in
- rpm) _pkgSetEnvRPM;;
- apt) _pkgSetEnvApt;;
- yum) _pkgSetEnvYum;;
- esac
- done
-
- _PKG_FLAVORS="$@"
- _PKG_VSERVER=$vserver
-}
-
-function isAvoidNamespace
-{
- local cfgdir
-
- $_VSERVER_INFO - FEATURE namespace || return 0
- cfgdir=$($_VSERVER_INFO "$1" CFGDIR) || return 0
- test ! -e "$cfgdir"/namespace || return 1
- test -e "$__CONFDIR"/.defaults/nonamespace -o \
- -e "$cfgdir"/nonamespace
-}
-
-function isNamespaceCleanup
-{
- local cfgdir
-
- $_VSERVER_INFO - FEATURE namespace || return 1
- cfgdir=$($_VSERVER_INFO "$1" CFGDIR) || return 1
- isAvoidNamespace "$1" && return 1
- test -e "$cfgdir"/namespace-cleanup && return 0
- test -e "$cfgdir"/nonamespace-cleanup -o \
- -e "$__CONFDIR"/.defaults/nonamespace-cleanup && return 1
- return 0
-}
-
-## Usage: getAllVservers <var> [<KIND>*]
-function getAllVservers
-{
- local _ga_i
- declare -a _ga_tmp=()
-
- for _ga_i in $__CONFDIR/*; do
- isRegularFile "$_ga_i" -d || continue
-
- test ! -e "$_ga_i"/disabled || continue
- test -d "$_ga_i"/vdir || continue
-
- local _ga_doadd=1
- local _ga_markfile=$_ga_i/apps/init/mark
-
- case ${2:-ALL} in
- (MARKED) test -s "$_ga_markfile" || _ga_doadd=;;
- (UNMARKED) test ! -s "$_ga_markfile" || _ga_doadd=;;
- (STOPPED) ! $_VSERVER "$_ga_i" running &>/dev/null || _ga_doadd=;;
- (RUNNING) $_VSERVER "$_ga_i" running &>/dev/null || _ga_doadd=;;
- (ALL) ;;
- (*) panic $"Unknown vserver tagging '$2'";;
- esac
-
- test -z "$_ga_doadd" || _ga_tmp=( "${_ga_tmp[@]}" "${_ga_i##$__CONFDIR/}")
- done
-
- eval $1='( "${_ga_tmp[@]}" )'
-}
-
-## Usage: getAllVserversByArg <var> <arg>
-function getAllVserversByArg
-{
- local _gav_mark=
-
- case $2 in
- (--all) _gav_mark=ALL;;
- (--marked) _gav_mark=MARKED;;
- (--unmarked) _gav_mark=UNMARKED;;
- (--stopped) _gav_mark=STOPPED;;
- (--running) _gav_mark=RUNNING;;
- (*) return 1;;
- esac
-
- getAllVservers "$1" "$_gav_mark"
-}
-
-## Usage: _getProcNumberCount <ctx> <var>
-function _getProcNumberCount
-{
- local _gp_var=$2
- local _gp_procnr_cnt=0
-
- # Use /proc/virtual from kernel 2.6 when possible
- if test -d "/proc/virtual"; then
- set -- $($_GREP '^Tasks:' "/proc/virtual/$1/status" 2>/dev/null)
- _gp_procnr_cnt=$2
- else
- _gp_procnr_cnt=$($_VPS ax | $_AWK '{print $2}' | $_GREP -x "$1" | $_WC -l )
- fi
-
- let _gp_procnr_cnt=_gp_procnr_cnt+0
- eval $_gp_var=\$_gp_procnr_cnt
-}
-
-## Usage: getVserverCtx <vdir> <result-varname> [<procnumber-varname> [<do-cleanup>]]
-## Returns: 0 iff vserver is running
-function getVserverStatus
-{
- test -r "$1"/run || return 1
-
- local _gvs_ctx
- read _gvs_ctx <"$1"/run
- eval "$2"=\$_gvs_ctx
-
- test -n "$3" || return 0
- local _gvs_tmp
- _getProcNumberCount "$_gvs_ctx" _gvs_tmp
- eval "$3"=\$_gvs_tmp
-
- if test "$_gvs_tmp" = 0; then
- local runfile=$($_READLINK "$1/run")
- test -z "$4" || $_RM -f "$runfile"
- return 1
- fi
-
- return 0
-}
-
-## Usage: isCtxRunning <ctx>
-function isCtxRunning
-{
- local _tmp
- _getProcNumberCount "$1" _tmp
- test $_tmp -gt 0
-}
-
-## Usage: isVserverRunning <vdir> [<ctx-varname>]
-function isVserverRunning
-{
- local _ivr_ctx _ivr_procnum
-
- getVserverStatus "$1" _ivr_ctx _ivr_procnum 1 || return 1
- test "$_ivr_procnum" != 0 || return 1
- test -z "$2" || eval "$2"=\$_ivr_ctx
- return 0
-}
-
-## Called as 'getFileValue <varname> <filename>+'
-function getFileValue
-{
- local _gfv_var=$1
- local _gfv_file
- shift
-
- findFile _gfv_file "$@" ''
- test -n "$_gfv_file" -a -r "$_gfv_file" || return 0
- eval read "$_gfv_var" <"$_gfv_file"
-}
-
-## Called as 'getFileArray <varname> <filename>+'
-function getFileArray
-{
- local _gfa_var=$1
- local _gfa_file
- shift
-
- findFile _gfa_file "$@" ''
- test -n "$_gfa_file" -a -r "$_gfa_file" || return 0
- local IFS=$_VS_NEWLINE
- eval "$_gfa_var"='( $(< "$_gfa_file") )'
-}
-
-function checkComponents
-{
- local i
- local msg=$1
- local x_failed=
-
- shift
-
- for i; do
- local failed=
- case "$i" in
- (core) test -x "$_CHBIND" || failed=1;;
- (build) test -x "$_VSERVER_BUILD" || failed=1;;
- (sysv) test -x "$__INITRDDIR/vserver" || failed=1;;
- (devel) test -d "$__INCLUDEDIR/vserver.h" || failed=1;;
- (*) echo "Unknown component '$i'" >&2
- return false
- ;;
- esac
-
- test -z "$failed" || {
- echo "$msg: $i"
- x_failed=1
- } >&2
- done
-
- test -z "$x_failed"
-}
-
-## Usage: isKernelAPI <ver> [<cmp-modifier>]
-function isKernelAPI
-{
- local api
- api=$($_VSERVER_INFO - APIVER) || api=0
- test $[ $api ] -${2:-ge} $[ $1 ]
-}
-
-## Usage: callInNamespace <vserver> <command> <args>*
-function callInNamespace
-{
- local ctx=
-
- isAvoidNamespace "$1" || \
- ctx=$( $_VSERVER_INFO "$1" CONTEXT f ) || ctx=
-
- shift
- if test -n "$ctx"; then
- $_VNAMESPACE --enter "$ctx" -- "$@"
- else
- "$@"
- fi
-}
-
-## Usage: setDefaultTTY <vdir> [<fallback-tty>]
-function setDefaultTTY
-{
- local cfgdir ttyname
-
- cfgdir=$($_VSERVER_INFO "$1" APPDIR init) || cfgdir=
- findObject -e ttyname \
- ${cfgdir:+"$cfgdir"/tty} \
- "$__CONFDIR/.defaults/apps/init/tty" \
- $2 /dev/null
-
- if test -f "$ttyname"; then
- exec </dev/null
- else
- exec <$ttyname
- fi
- exec >>$ttyname 2>&1
-}
-
-## Usage: killContext <XID> [<SIG>]
-function killContext
-{
- local sig=${2:-9}
-
- #$_VKILL -s STOP --xid "$1" 1 &>/dev/null || :
- $_VKILL -s "$sig" --xid "$1" 1 &>/dev/null || :
- $_VKILL -s "$sig" --xid "$1" &>/dev/null || :
- #$_VKILL -s "$sig" --xid "$1" 1 &>/dev/null || :
- #$_VKILL -s CONT --xid "$1" 1 &>/dev/null || :
-}
-
-function useVlogin
-{
- test ! -e "$__CONFDIR/.defaults/apps/vlogin/disable"
-}
-
-## Usage: pkgmgmt.guessStyle <vserver> <resultvar>
-function pkgmgmt.guessStyle()
-{
- local _pgs_vdir
- _pgs_vdir=$($_VSERVER_INFO "$1" VDIR) || {
- echo $"Can not determine vserver-root" >&2
- return 1
- }
- local _pgs_cfgdir=$($_VSERVER_INFO "$1" APPDIR pkgmgmt) || :
-
- if test -n "$_pgs_cfgdir" -a -e "$_pgs_cfgdir"/style; then
- read style <"$_pgs_cfgdir"/style
- elif test -e "$_pgs_vdir"/etc/redhat-release -o -e "$_pgs_vdir"/etc/fedora-release; then
- style=redhat
- elif test -e "$_pgs_vdir"/etc/mandrake-release; then
- style=mandrake
- elif test -e "$_pgs_vdir"/etc/debian_version; then
- style=debian
- elif test -e "$_pgs_vdir"/etc/SuSE-release; then
- style=suse
- else
- echo $"Can not determine packagemanagement style" >&2
- return 1
- fi
-
- eval $2=\$style
- return 0
-}
-
-## Usage: pkgmgmt.isInternal <vserver>
-## returns true iff <vserver> is configured for internal packagemanagement
-## A typical application is
-## | is_external=
-## | pkgmgmt.isInternal "$vserver" || is_external=1
-function pkgmgmt.isInternal
-{
- local cfgdir=$($_VSERVER_INFO "$1" APPDIR pkgmgmt) || :
-
- test -z "$cfgdir" -o ! -d "$cfgdir" -o -e "$cfgdir"/internal
-}
-
-## Usage: pkgmgmt.isAptAvailable <cfgdir> <vdir> [<is-internal>]
-function pkgmgmt.isAptAvailable
-{
- local cfgdir="$1"
- local vdir="$2"
- local is_internal="$3"
-
- local have_apt i
- if test -n "$is_internal"; then
- have_apt=1
- test -d "$cfgdir"/base/apt -o -d "$cfgdir"/aptetc || have_apt=
- else
- have_apt=
- for i in /bin /usr/bin /usr/local/bin; do
- test ! -x "$vdir$i"/apt-get || { have_apt=1; break; }
- done
- fi
-
- test -n "$have_apt" && return 0 || return 1
-}
-
-## Usage: pkgmgmt.isYumAvailable <cfgdir> <vdir> [<is-internal>]
-function pkgmgmt.isYumAvailable
-{
- local cfgdir="$1"
- local vdir="$2"
- local is_internal="$3"
-
- local have_yum i
- if test -n "$is_internal"; then
- have_yum=1
- test -d "$cfgdir"/base/yum -o -d "$cfgdir"/yumetc || have_yum=
- else
- have_yum=
- for i in /bin /usr/bin /usr/local/bin; do
- test ! -x "$vdir$i"/yum || { have_yum=1; break; }
- done
- fi
-
- test -n "$have_yum" && return 0 || return 1
-}
-
-
-function vshelper.doSanityCheck
-{
- local vshelper this_xid i
- declare -a warnings=()
- local solution_disable=
- local solution_sysctl=
-
- vshelper.isEnabled && vshelper.isEnabled warning || return 0
-
- this_xid=$($_VSERVER_INFO - XID) ||
- panic $"Failed to determine current context; aborting..."
-
- ## Do nothing in other xid's; the helper will be executed in xid 0 only
- test "$this_xid" = 0 || return 0
-
- local proc_file=/proc/sys/kernel/vshelper
-
- if ! test -r "$proc_file"; then
- vshelper=
- warnings=( "${warnings[@]}"
- $"File '$proc_file' does not exist but is required for vshelper setup" )
- solution_disable=1
- else
- vshelper=$(cat "$proc_file")
-
- $_CMP -s "$vshelper" "$_VSHELPER" || {
- local readable=""
- test -r "$vshelper" && readable=1
- warnings=( "${warnings[@]}"
- $"The configured vshelper '$vshelper' does not match the 'vshelper'
- script of the util-vserver package.${readable:+ Maybe you have two versions installed?}"
- )
- solution_disable=1
- solution_sysctl=1
- }
- fi
-
- test -d "$__VSHELPERSTATEDIR" || {
- warnings=( "${warnings[@]}"
- $"\
-The vshelper state-directory '$__VSHELPERSTATEDIR' does not exist; since
-it is created by 'make install', this indicates a serious problem with
-your util-vserver installation" )
- solution_disable=1
- }
-
- test "${#warnings[@]}" -eq 0 || {
- warning $"\
-The following problem(s) were encountered while verifying vshelper
-functionality:"
-
- for i in "${warnings[@]}"; do
- warning "* $i"
- done
-
- warning $"\
-
-To fix this, you can:"
-
- test -z "$solution_disable" || warning $"\
-* disable vshelper entirely by executing
- | touch \"$__CONFDIR/.defaults/apps/vshelper/disabled\"
-* disable only this message by executing
- | touch \"$__CONFDIR/.defaults/apps/vshelper/warning-disabled\""
-
- test -x "$solution_sysctl" || warning $"\
-* configure the util-vserver vshelper script, e.g. by adding
- | kernel.vshelper = $_VSHELPER
- to /etc/sysctl.conf and rebooting the machine, or by executing
- | echo \"$_VSHELPER\" >$proc_file"
-
- warning ""
-
- return 1
- }
-
- return 0
-}
-
-## Usage: vshelper.isEnabled [<style>] [<vserver>]
-function vshelper.isEnabled
-{
- local f=${1:+$1-}disabled
- test ! -e "$__CONFDIR"/.defaults/apps/vshelper/"$f" || return 1
- $_VSERVER_INFO - FEATURE vshelper || return 1
- if test -n "$2"; then
- local appdir
- appdir=$($_VSERVER_INFO "$2" APPDIR vshelper) || return 0
- test -z "$2" -o ! -e "$appdir/$f" || return 1
- fi
-
- return 0
-}
-
-## Usage: vshelper.isDebug [<vserver>]
-function vshelper.isDebug
-{
- test ! -e "$__CONFDIR"/.defaults/apps/vshelper/debug || return 0
- $_VSERVER_INFO - FEATURE vshelper || return 1
- if test -n "$1"; then
- local appdir
- appdir=$($_VSERVER_INFO "$1" APPDIR vshelper) || return 1
- test ! -e "$appdir/debug" || return 0
- fi
-
- return 1
-}
-
-function vshelper._getHandlerInternal
-{
- local _vghi_var=$1
- local _vghi_tmp
- shift
- shift ## HACK: see below the note about the 'set -u' mode
-
- while test "$#" -ge 2; do
- local _vghi_mod=$1
- local _vghi_obj=$2
- shift 2
-
- test "$_vghi_mod" "$_vghi_obj" || continue
- case "$_vghi_mod" in
- (-x)
- eval $_vghi_var=\$_vghi_obj
- ;;
- (-e)
- read _vghi_tmp <"$_vghi_obj"
- eval $_vghi_var=:\$_vghi_tmp
- ;;
- (*) panic $"Internal error, unexpected modifier '$_vghi_mod'"
- esac
- return 0
- done
-
- return 1
-}
-
-## Usage: vshelper.getHandler <result-var> <vserver> <action>
-function vshelper.getHandler
-{
- local _vgh_appdir
- _vgh_appdir=$($_VSERVER_INFO "$2" APPDIR vshelper) || _vgh_appdir=
-
- declare -a _vgh_search_list=( X )
- ## HACK: when we are in 'set -u' mode, empty lists are causing errors
-
- test -z "$_vgh_appdir" || _vgh_search_list=( "${_vgh_search_list[@]}" -x "$_vgh_appdir/$3" )
- test -z "$_vgh_appdir" || _vgh_search_list=( "${_vgh_search_list[@]}" -e "$_vgh_appdir/action" )
- _vgh_search_list=( "${_vgh_search_list[@]}" -x "$__CONFDIR"/.defaults/apps/vshelper/"$3" )
- _vgh_search_list=( "${_vgh_search_list[@]}" -e "$__CONFDIR"/.defaults/apps/vshelper/action )
-
- ! vshelper._getHandlerInternal "$1" "${_vgh_search_list[@]}" || return 0
- eval $1=':restart'
-}
-
-## Usage: vshelper.init <vserver> [<method> <args>*]
-function vshelper.doInit
-{
- vshelper.isEnabled || return 0
-
- local xid
- xid=$($_VSERVER_INFO "$1" CONTEXT false) && test -n "$xid" || {
- warning $"vshelper.init: can not determine xid of vserver '$vserver'; returned value was '$xid'
-
-This usually means that you're using an init-less init-style, but the
-guest isn't configured to start any service. Try enabling a service,
-changing the init-style, or making the contexts persistent."
- return 1
- }
-
- local f="$__VSHELPERSTATEDIR/$xid"
-
- set -C
- $_RM -f "$f"
- echo "$1" >"$f"
- set +C
-
- if test -n "$2"; then
- shift 1
- local i
- for i; do
- echo "$i"
- done
- else
- echo "default"
- fi >>"$f"
-
- return 0
-}
-
-## Usage: vshelper.doDestroy <vserver> <xid>
-function vshelper.doDestroy
-{
- vshelper.isEnabled || return 0
-
- $_RM -f "$__VSHELPERSTATEDIR/$2"
-}
-
-## Usage: vshelper.initSync <vserver> <pipe-varname> [<method>]
-function vshelper.initSync
-{
- local _vis_tmpdir
- _vis_tmpdir=$($_MKTEMPDIR vserver-stop.XXXXXX) || {
- warning $"Failed to generate temporary directory for vshelper sync"
- return 1
- }
-
- local _vis_fifo="$_vis_tmpdir"/pipe
- $_MKFIFO -m700 "$_vis_fifo"
- vshelper.doInit "$1" "${3:-sync}" "$_vis_fifo"
- eval $2=\$_vis_fifo
-}
-
-## Usage: vshelper.getSyncTimeout <vserver> <varname>
-function vshelper.getSyncTimeout
-{
- local _vgst_appdir _vgst_file _vgst_tmp
- _vgst_appdir=$($_VSERVER_INFO "$1" APPDIR vshelper) || _vgst_appdir=
-
- findFile _vgst_file ${_vgst_appdir:+"$_vgst_appdir"/sync-timeout} "$__CONFDIR"/.defaults/apps/vshelper/sync-timeout ''
- test -n "$_vgst_file" || return 1
- read _vgst_tmp <"$_vgst_file"
- eval $2=\$_vgst_tmp
-}
-
-function vshelper.initStopSync
-{
- local _iss_sync_dir=$($_MKTEMPDIR vshelper-stop-sync.XXXXXX) || {
- warning $"Failed to generate directory for vshelper sync"
- exit 1
- }
- $_MKFIFO -m700 "$_iss_sync_dir/pipe"
-
- eval "$1"=\$_iss_sync_dir
- VSHELPER_STOP_SYNC="$_iss_sync_dir/pipe"
- export VSHELPER_STOP_SYNC
-}
-
-function vshelper.waitForStopSync
-{
- local sync_dir=$1
- cat "$sync_dir/pipe" &> /dev/null
- rm -fr "$sync_dir"
-}
-
-function vshelper.doStopSync
-{
- test ! -p "$VSHELPER_STOP_SYNC" || echo stopped > "$VSHELPER_STOP_SYNC"
-}
-
-function vshelper.isStopSync
-{
- test -p "$VSHELPER_STOP_SYNC" || return 1
- return 0
-}
-
-function _rpmFake.getCapFlags
-{
- local ctx=$1
-
- if test -n "$ctx" && ! $_VSERVER_INFO - FEATURE migrate; then
- set -- $($_CHCONTEXT_COMPAT --xid 1 \
- $_SH -c "$_CAT /proc/[0-9]*/status | $_EGREP '^(CapBset|s_context|ctxflags)'" | \
- $_GREP -B 1 -A 1 "^s_context: $ctx " | \
- $_SED -e '1,3p;d' | $_AWK '{ print $2 }')
- else
- set --
- fi
-
- if test -n "$3"; then
- RPM_FAKE_CAP=$[ ~0x$1 ]
- RPM_FAKE_FLAGS=$3
- else
- RPM_FAKE_CAP=$[ ~0xd40c04ff ]
- RPM_FAKE_FLAGS=4
- fi
-}
-
-function rpmFake.init
-{
- local vdir ctx
-
- vdir=$($_VSERVER_INFO "$1" VDIR) || vdir="$1"
- ctx=$($_VSERVER_INFO "$1" CONTEXT) || ctx=
-
- test -d "$vdir" ||
- panic $"Can not find chroot environment at '$vdir' for '$1'"
-
- _rpmFake.getCapFlags "$ctx"
-
- RPM_FAKE_CHROOT=$vdir
- RPM_FAKE_CTX=$ctx
-}
-
-function rpmFake.exec
-{
- export RPM_FAKE_CHROOT RPM_FAKE_CTX RPM_FAKE_CAP RPM_FAKE_FLAGS
-
- LD_PRELOAD=$_RPM_FAKE_SO${LD_PRELOAD:+:$LD_PRELOAD} \
- exec "$@"
-}
+++ /dev/null
-#! /bin/bash
-# $Id$
-
-# Copyright (C) 2007 Daniel Hokka Zakrisson
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# set -e
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-eval command=( $1 )
-exec "${command[@]}"
+++ /dev/null
-#!/bin/bash
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on distrib-info by Jacques Gelinas
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-# This scripts knows about every possible distribution (well, it should)
-# It is passed a vserver name and a key (a command). The key represent a task.
-# It executes the command and output on stdout.
-# For example
-# distrib-info vserver1 pkgversion
-# If vserver1 is a redhat system, it executes
-# rpm -qa --queryformat "%{name}=%{version}-%{release}
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-if [ "$1" = "" ] ; then
- echo distrib-info vserver-name command [ args ... ] >&2
- echo Commands are: >&2
- echo dumpfiles: Shows all files owned by a package >&2
- echo pkgversion: reports all packages and their version/release >&2
- echo unifiles: reports all unify-able file of a package >&2
- exit 1
-fi
-if [ "$1" = "/" ] ; then
- DISTDIR=/
- CHROOTCMD=
-elif [ -d "$1" ] ; then
- DISTDIR=$1
- CHROOTCMD="$__SBINDIR/chroot $DISTDIR"
-else
- DISTDIR=$__DEFAULT_VSERVERDIR/$1
- CHROOTCMD="$__SBINDIR/chroot $DISTDIR"
-fi
-KEY=$2
-shift
-shift
-if [ -f $DIRDIR/etc/redhat-release -o -f $DISTDIR/etc/mandrake-release ] ; then
- case $KEY in
- pkgversion)
- $CHROOTCMD /bin/rpm -qa --queryformat "%{name}=%{version}-%{release}\n"
- ;;
- unifiles)
- # We remove /etc and /var/log to make sure no special file
- # there will be unified
- $CHROOTCMD /bin/rpm -ql --dump $* \
- | $_PARSERPMDUMP /etc/
- ;;
- dumpfiles)
- $CHROOTCMD /bin/rpm -ql $*
- ;;
- *)
- echo unknown request $KEY >&2
- ;;
- esac
-else
- echo Distribution not supported yet >&2
-fi
+++ /dev/null
-#!/bin/sh
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on rootshell by Jacques Gelinas
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-test "$*" || set -- --login
-exec $CHBIND --silent --ip 0.0.0.0 /bin/bash "$@"
-
+++ /dev/null
-#!/bin/sh
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on save_s_context by Jacques Gelinas
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-if [ $# -lt 1 ] ;then
- echo save_s_context file command
- echo Save the security context in file and execute a command
-else
- CTX=`grep ^s_context: /proc/self/status | sed s/s_context:// | (read a b; echo $a)`
- CTX=`eval expr $CTX + 0`
- echo S_CONTEXT=$CTX >$1
- echo S_PROFILE=$PROFILE >>$1
- shift
- exec "$@"
-fi
-
-
+++ /dev/null
-#!/usr/bin/perl
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on vps by Krischan Jodies
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# Wrapper for ps. Adds security context number and name
-# to the PID column.
-#
-# (c) 2002 krischan.jodies@sernet.de
-# version 1.0
-
-# 1.1 Added error messages
-
-if ($ARGV[0] eq "--help") {
- exec("ps @ARGV");
- exit;
-}
-
-
-$lockdir = "/var/run/vservers";
-
-$pid_length = 5;
-get_server_names();
-$context=get_context("self");
-
-if ($context == -1) {
- print "Can not find my security context. Is this a ctx kernel?\n";
- exit;
-}
-if ($context != 1) {
- exec("@PKGLIBDIR@/chcontext-compat --silent --ctx 1 $0 @ARGV");
- print "Can not execute chcontext\n";
- exit; # not reached
-}
-
-
-if (! open PS, "ps @ARGV|") {
- print "Can not execute ps\n";
- exit;
-}
-while (<PS>) {
- chomp;
- push @ps,$_;
-}
-
-$header = shift @ps;
-$header =~ /(.*) PID(.+)/;
-$left = $1;
-$right = $2;
-$left_length = length($left);
-print "${left} PID CONTEXT ${right}\n";
-foreach $line (@ps) {
- $pid = substr $line,$left_length,$pid_length;
- print substr $line,0,$left_length;
- print "$pid";
- $context = get_context($pid);
- $context_name = getcontextname($context);
- printf " %-3s %-10s",$context,$context_name;
- print substr $line,$left_length + $pid_length;
- print "\n";
-
-}
-
-exit;
-
-sub get_context
-{
- my $pid = $_[0];
- $pid =~ s/ //g;
- open STATUS, "/proc/$pid/status";
- while (<STATUS>)
- {
- chomp;
- if (/s_context: (\d+)/) {
- close STATUS;
- return $1;
- }
- }
- close STATUS;
- return -1;
-}
-
-sub getcontextname {
- if (exists $name{$_[0]}) {
- return $name{$_[0]};
- }
- if ($_[0] == 1) {
- return "ALL_PROCS";
- }
- elsif ($_[0] == 0) {
- return "MAIN";
- }
- return "UNKNOWN";
-}
-
-
-sub get_server_names
-{
- opendir LOCKDIR, "$lockdir";
- while ($file=readdir(LOCKDIR)) {
- if (-f "$lockdir/$file") {
- open FILE, "$lockdir/$file";
- $file =~ s/(.+)\.ctx/$1/;
- while (<FILE>) {
- if (/S_CONTEXT=(\d+)/) {
- $name{$1} = $file;
- }
- }
- }
- }
-}
+++ /dev/null
-#!/bin/sh
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on vserver by Jacques Gelinas
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# This is a script to control a virtual server
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-USR_SBIN=$__SBINDIR
-USR_LIB_VSERVER=$__PKGLIBDIR
-DEFAULTPATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
-VINIT_CMD=/etc/rc.vinit
-
-vserver_mknod(){
- mknod $1 $2 $3 $4
- chmod $5 $1
-}
-
-mountproc()
-{
- mkdir -p $1/proc $1/dev/pts
- if [ ! -d $1/proc/1 ] ; then
- mount -t proc none $1/proc
- mount -t devpts -o gid=5,mode=0620 none $1/dev/pts
- fi
-}
-umountproc()
-{
- umount $1/proc 2>/dev/null
- umount $1/dev/pts 2>/dev/null
-}
-
-# Check that the vservers parent directory has permission 000
-# This is the key to avoid chroot escape
-testperm()
-{
- return
- PERM=`$_SHOWPERM $__DEFAULT_VSERVERDIR/$1/..`
- if [ "$PERM" != 000 ] ; then
- echo
- echo "**********************************************************"
- echo $__DEFAULT_VSERVERDIR/$1/.. has insecure permissions.
- echo A vserver administrator may be able to visit the root server.
- echo To fix this, do
- echo " " chmod 000 $__DEFAULT_VSERVERDIR/$1/..
- echo do it anytime you want, even if vservers are running.
- echo "**********************************************************"
- echo
- fi
-}
-
-# Extract the initial runlevel from the vserver inittab
-get_initdefault()
-{
- INITDEFAULT=`grep :initdefault $__DEFAULT_VSERVERDIR/$1/etc/inittab | sed 's/:/ /g' | ( read a level b; echo $level)`
-}
-
-# Read the vserver configuration file, reusing the PROFILE value
-# found in /var/run/vservers
-readlastconf()
-{
- if [ -f $__PKGSTATEDIR/$1.ctx ] ; then
- . $__PKGSTATEDIR/$1.ctx
- if [ "$S_PROFILE" != "" ] ; then
- export PROFILE=$S_PROFILE
- fi
- fi
- export PROFILE
- . $__CONFDIR/$1.conf
-}
-
-usage()
-{
- echo vserver [ options ] server-name command ...
- echo
- echo server-name is a directory in $__DEFAULT_VSERVERDIR
- echo
- echo The commands are:
- echo " build : Create a virtual server by copying the packages"
- echo " of the root server"
- echo " enter : Enter in the virtual server context and starts a shell"
- echo " Same as \"vserver name exec /bin/sh\""
- echo " exec : Exec a command in the virtual server context"
- echo " suexec : Exec a command in the virtual server context uid"
- echo " service : Control a service inside a vserver"
- echo " vserver name service service-name start/stop/restart/status"
- echo " start : Starts the various services in the vserver, runlevel 3"
- echo " stop : Ends all services and kills the remaining processes"
- echo " running : Tells if a virtual server is running"
- echo " It returns proper exit code, so you can use it as a test"
- echo " status : Tells some information about a vserver"
- echo " chkconfig : It turns a server on or off in a vserver"
- echo
- echo "--silent : No informative messages about vserver context and IP numbers"
- echo " Useful when you want to redirect the output"
-}
-
-calculateCaps()
-{
- local f
- for f in "$@"; do
- case $f in
- !CAP_SYS_CHROOT)
- CHROOTOPT=--nochroot
- ;;
- *)
- CAPS="$CAPS --cap $f"
- ;;
- esac
- done
-}
-
-SILENT=
-while true
-do
- if [ "$1" = "--silent" ] ; then
- SILENT=--silent
- shift
- else
- break
- fi
-done
-# Setup the default ulimit for a vserver
-setdefulimit(){
- # File handle are limited to half of the current system limit
- # Virtual memory is limited to the ram size
- NFILE=`cat /proc/sys/fs/file-max`
- NFILE=`expr $NFILE / 2`
- VMEM=`cat /proc/meminfo | grep MemTotal | (read a b c; echo $b)`
- # Disabled for now, we need a different to set the security
- # context limit than fiddling with ulimit
- #ulimit -H -n $NFILE -v $VMEM
-}
-if [ $# -lt 2 ] ; then
- usage
-elif [ "$2" = "build" ] ; then
- # Either the directory does not exist or is empty
- NBSUB=`ls $__DEFAULT_VSERVERDIR/$1 2>/dev/null | grep -v lost+found | wc -l`
- NBSUB=`expr $NBSUB`
- if [ "$NBSUB" != 0 ] ; then
- echo Virtual server $__DEFAULT_VSERVERDIR/$1 already exist
- else
- if [ ! -d $__DEFAULT_VSERVERDIR ] ; then
- mkdir $__DEFAULT_VSERVERDIR || exit 1
- chmod 000 $__DEFAULT_VSERVERDIR
- echo Directory $__DEFAULT_VSERVERDIR was created with permissions 000
- fi
- mkdir -p $__DEFAULT_VSERVERDIR/$1 || exit 1
- chmod 755 $__DEFAULT_VSERVERDIR/$1
- if test "$UTIL_VSERVER_AVOID_COPY"; then
- mkdir -p $__DEFAULT_VSERVERDIR/$1/{etc/rc.d/init.d,sbin,var/run,var/log}
- else
- cp -ax /sbin /bin /etc /usr /var /lib $__DEFAULT_VSERVERDIR/$1/. || exit 1
- fi
- cd $__DEFAULT_VSERVERDIR/$1 || exit 1
- rm -fr lib/modules/*
- rm -f var/spool/mail/*
- rm -f `find var/run -type f`
- rm -f `find var/log -type f`
- touch var/log/wtmp
- rm -f var/lock/subsys/*
- rm -f etc/cron.d/kmod
- mkdir proc tmp home root boot
- test -f /root/.bashrc && cp -a /root/.bashrc root/.
- test -f /root/.bash_profile && cp -a /root/.bash_profile root/.
- chmod 1777 tmp
- chmod 750 root
- # Create a minimal dev so the virtual server can't grab
- # more privileges
- mkdir dev dev/pts
- vserver_mknod dev/null c 1 3 666
- vserver_mknod dev/zero c 1 5 666
- vserver_mknod dev/full c 1 7 666
- vserver_mknod dev/random c 1 8 644
- vserver_mknod dev/urandom c 1 9 644
- vserver_mknod dev/tty c 5 0 666
- vserver_mknod dev/ptmx c 5 2 666
- touch dev/hdv1
- # Turn off some service useless on a vserver
- # vserver_turnoff apmd network autofs dhcpd gpm ipchains iptables \
- # irda isdn keytable kudzu linuxconf-setup netfs nfs nfslock \
- # pcmcia portmap pppoe random rawdevices rhnsd rstatd ruserd \
- # rwalld rwhod sendmail smb snmpd v_httpd h_xinetd v_sshd vservers \
- # xfs ypbind xinetd
- (
- cd etc/init.d 2>/dev/null || cd etc/rc.d/init.d
- for serv in *
- do
- case $serv in
- *.bak|*~|functions|killall|halt|single)
- ;;
- *)
- #$USR_LIB_VSERVER/capchroot $__DEFAULT_VSERVERDIR/$1 /sbin/chkconfig --level 2345 $serv off
- $0 --silent $1 chkconfig --level 2345 $serv off
- ;;
- esac
- done
- )
- rm -f etc/rc.d/rc6.d/S*reboot
- # Create a dummy /etc/fstab and /etc/mtab to please
- # df and linuxconf. We use hdv1, which does not exist
- # to remind the admin that it is not the real drive
- echo /dev/hdv1 / ext2 defaults 1 1 >etc/fstab
- echo /dev/hdv1 / ext2 rw 0 0 >etc/mtab
- # Install the vreboot utility
- cp -a "$_VREBOOT" sbin/.
- ln -sf vreboot sbin/vhalt
-
- echo Directory $__DEFAULT_VSERVERDIR/$1 has been populated
- if [ ! -d $__CONFDIR ] ; then
- mkdir $__CONFDIR
- chmod 600 $__CONFDIR
- echo Directory $__CONFDIR has been created
- fi
- if [ ! -f $__CONFDIR/$1.conf ] ; then
- CONF=$__CONFDIR/$1.conf
- cat >$CONF <<-EOF
-if [ "$PROFILE" = "" ] ; then
- PROFILE=prod
-fi
-# Select the IP number assigned to the virtual server
-# This IP must be one IP of the server, either an interface
-# or an IP alias
-# A vserver may have more than one IP. Separate them with spaces.
-# do not forget double quotes.
-# Some examples:
-# IPROOT="1.2.3.4 2.3.4.5"
-# IPROOT="eth0:1.2.3.4 eth1:2.3.4.5"
-# If the device is not specified, IPROOTDEV is used
-case \$PROFILE in
-prod)
- IPROOT=1.2.3.4
- # The netmask and broadcast are computed by default from IPROOTDEV
- #IPROOTMASK=
- #IPROOTBCAST=
- # You can define on which device the IP alias will be done
- # The IP alias will be set when the server is started and unset
- # when the server is stopped
- #IPROOTDEV=eth0
- # You can set a different host name for the vserver
- # If empty, the host name of the main server is used
- S_HOSTNAME=
- ;;
-backup)
- IPROOT=1.2.3.4
- #IPROOTMASK=
- #IPROOTBCAST=
- #IPROOTDEV=eth0
- S_HOSTNAME=
- ;;
-esac
-# Uncomment the onboot line if you want to enable this
-# virtual server at boot time
-#ONBOOT=yes
-# You can set a different NIS domain for the vserver
-# If empty, the current on is kept
-# Set it to "none" to have no NIS domain set
-S_DOMAINNAME=
-# You can set the priority level (nice) of all process in the vserver
-# Even root won't be able to raise it
-S_NICE=
-# You can set various flags for the new security context
-# lock: Prevent the vserver from setting new security context
-# sched: Merge scheduler priority of all processes in the vserver
-# so that it acts a like a single one.
-# nproc: Limit the number of processes in the vserver according to ulimit
-# (instead of a per user limit, this becomes a per vserver limit)
-# private: No other process can join this security context. Even root
-# Do not forget the quotes around the flags
-S_FLAGS="lock nproc"
-# You can set various ulimit flags and they will be inherited by the
-# vserver. You enter here various command line argument of ulimit
-# ULIMIT="-HS -u 200"
-# The example above, combined with the nproc S_FLAGS will limit the
-# vserver to a maximum of 200 processes
-#ULIMIT="-HS -u 1000"
-ULIMIT=""
-# You can set various capabilities. By default, the vserver are run
-# with a limited set, so you can let root run in a vserver and not
-# worry about it. He can't take over the machine. In some cases
-# you can to give a little more capabilities (such as CAP_NET_RAW)
-# S_CAPS="CAP_NET_RAW"
-S_CAPS=""
-# Select an unused context (this is optional)
-# The default is to allocate a free context on the fly
-# In general you don't need to force a context
-#S_CONTEXT=
- EOF
- echo $CONF has been created. Look at it\!
- fi
- fi
-elif [ ! -f $__CONFDIR/$1.conf ] ; then
- echo No configuration for this vserver: $__CONFDIR/$1.conf
- exit 1
-elif [ ! -d $__DEFAULT_VSERVERDIR/$1/. ] ; then
- echo No directory for this vserver: $__DEFAULT_VSERVERDIR/$1
- exit 1
-elif [ "$2" = "start" ] ; then
- echo Starting the virtual server $1
- testperm $1
- if ! $0 $1 running
- then
- test -x $__CONFDIR/$1.sh && $__CONFDIR/$1.sh pre-start $1
- S_NICE=
- S_FLAGS=
- . $__CONFDIR/$1.conf
- export PROFILE
- cd $__DEFAULT_VSERVERDIR/$1 || exit 1
-
- if [ "$PROFILE" != "" ] ; then
- echo export PROFILE=$PROFILE >etc/PROFILE
- fi
-
- rm -f `find var/run -type f`
- touch var/run/utmp
- chgrp ${UTMP_GROUP:-utmp} var/run/utmp
- chmod 0664 var/run/utmp
- rm -f var/lock/subsys/*
- mountproc $__DEFAULT_VSERVERDIR/$1
- CTXOPT=
- HOSTOPT=
- DOMAINOPT=
- NICECMD=
- FLAGS=
- CAPS=
- get_initdefault $1
- STARTCMD="/etc/rc.d/rc $INITDEFAULT"
- if [ -x $__DEFAULT_VSERVERDIR/$1/etc/init.d/rc ] ; then
- STARTCMD="/etc/init.d/rc $INITDEFAULT"
- elif [ -x $__DEFAULT_VSERVERDIR/$1/usr/bin/emerge ] ; then
- STARTCMD="/sbin/rc default"
- elif [ -x $__DEFAULT_VSERVERDIR/$1/etc/rc.d/rc.M ] ; then
- STARTCMD="/etc/rc.d/rc.M"
- fi
-
- DISCONNECT=
- FAKEINIT=
- for f in $S_FLAGS dummy
- do
- case $f in
- dummy)
- ;;
-
- minit)
- FAKEINIT=true
- FLAGS="$FLAGS --flag fakeinit"
- STARTCMD=/sbin/minit-start
- DISCONNECT=--disconnect
- ;;
-
- fakeinit)
- FAKEINIT=true
- FLAGS="$FLAGS --flag $f"
- STARTCMD=/sbin/init
- DISCONNECT=--disconnect
- ;;
- *)
- FLAGS="$FLAGS --flag $f"
- ;;
- esac
- done
- if [ "$FAKEINIT" = "" ] ; then
- $USR_LIB_VSERVER/fakerunlevel $INITDEFAULT var/run/utmp
- fi
-
- calculateCaps $S_CAPS
-
- if [ "$S_CONTEXT" != "" ] ; then
- CTXOPT="--ctx $S_CONTEXT"
- fi
- if [ "$S_HOSTNAME" != "" ] ; then
- HOSTOPT="--hostname $S_HOSTNAME"
- export HOSTNAME=$S_HOSTNAME
- fi
- if [ "$S_DOMAINNAME" != "" ] ; then
- DOMAINOPT="--domainname $S_DOMAINNAME"
- fi
- if [ "$S_NICE" != "" ] ; then
- NICECMD="nice -n $S_NICE"
- fi
- mkdir -p $__PKGSTATEDIR
- chmod 700 $__PKGSTATEDIR
- setdefulimit
- if [ "$ULIMIT" != "" ] ; then
- ulimit $ULIMIT
- fi
- #echo FLAGS=$FLAGS
- #echo CAPS=$CAPS
- # We switch to /vservers/$1 now, because after the
- # security context switch /vservers directory becomes a dead zone.
- cd $__DEFAULT_VSERVERDIR/$1
- export PATH=$DEFAULTPATH
- # XXX execute /etc/rc.vinit first for backward compatibility
- for CMD in "$VINIT_CMD $2" "$STARTCMD" ; do
- $NICECMD \
- $_CHCONTEXT_COMPAT $SILENT $DISCONNECT $CAPS $FLAGS $CTXOPT $HOSTOPT $DOMAINOPT --secure \
- $_SAVE_S_CONTEXT $__PKGSTATEDIR/$1.ctx \
- $_CAPCHROOT $CHROOTOPT . $CMD
- done
- sleep 2
- test ! -x $__CONFDIR/$1.sh || $__CONFDIR/$1.sh post-start $1
- fi
-elif [ "$2" = "running" ] ; then
- if [ ! -f $__PKGSTATEDIR/$1.ctx ] ; then
- echo Server $1 is not running
- exit 1
- else
- . $__PKGSTATEDIR/$1.ctx
- NB=$($USR_SBIN/vps ax | awk '{print $2}' | grep \^$S_CONTEXT\$ | wc -l)
- #NB=`$_CHCONTEXT_COMPAT --silent --ctx $S_CONTEXT ps ax | wc -l`
- #NB=`eval expr $NB + 0`
- if [ "$NB" -gt 0 ] ; then
- echo Server $1 is running
- exit 0
- else
- echo Server $1 is not running
- exit 1
- fi
- fi
-elif [ "$2" = "status" ] ; then
- if $0 $1 running
- then
- . $__PKGSTATEDIR/$1.ctx
- NB=$($USR_SBIN/vps ax | awk '{print $2}' | grep \^$S_CONTEXT\$ | wc -l)
- echo $NB processes running
- echo Vserver uptime: `$USR_LIB_VSERVER/filetime $__PKGSTATEDIR/$1.ctx`
- fi
-elif [ "$2" = "stop" ] ; then
- echo Stopping the virtual server $1
- CAPS=
- IS_MINIT=
- readlastconf $1
- if $0 $1 running
- then
- test -x $__CONFDIR/$1.sh && $__CONFDIR/$1.sh pre-stop $1
- cd $__DEFAULT_VSERVERDIR/$1
- mountproc $__DEFAULT_VSERVERDIR/$1
- # The fakeinit flag tell us how to turn off the server
- get_initdefault $1
- export PREVLEVEL=$INITDEFAULT
- STOPCMD="/etc/rc.d/rc 6"
- if [ -x $__DEFAULT_VSERVERDIR/$1/etc/init.d/rc ] ; then
- STOPCMD="/etc/init.d/rc 6"
- elif [ -x $__DEFAULT_VSERVERDIR/$1/usr/bin/emerge ] ; then
- STOPCMD="/sbin/rc shutdown"
- elif [ -x $__DEFAULT_VSERVERDIR/$1/etc/rc.d/rc.6 ] ; then
- STOPCMD="/etc/rc.d/rc.6"
- fi
-
- for f in $S_FLAGS dummy
- do
- case $f in
- minit)
- IS_MINIT=1
- FLAGS="$FLAGS --flag fakeinit"
- STOPCMD="/sbin/minit-stop"
- ;;
-
- fakeinit)
- FLAGS="$FLAGS --flag $f"
- STOPCMD="/sbin/init 6"
- ;;
- *)
- ;;
- esac
- done
-
- calculateCaps $S_CAPS
-
- cd $__DEFAULT_VSERVERDIR/$1
- export PATH=$DEFAULTPATH
- # XXX execute /etc/rc.vinit first for backward compatibility
- for CMD in "$VINIT_CMD $2" "$STOPCMD" ; do
- $_CHBIND_COMPAT $SILENT $IPOPT --bcast $IPROOTBCAST \
- $_CHCONTEXT_COMPAT $SILENT $CAPS --secure --ctx $S_CONTEXT \
- $_CAPCHROOT . $STOPCMD
- done
-
- if test "$IS_MINIT"; then
- echo "Waiting for minit finish-signal"
- dd if=var/run/minit-stop of=/dev/zero bs=1 count=1 &>/dev/null
- sleep 1
- else
- echo sleeping 5 seconds
- sleep 5
- fi
-
- echo Killing all processes
- $_CHBIND_COMPAT --silent $IPOPT --bcast $IPROOTBCAST \
- $_CHCONTEXT_COMPAT $CAPS --secure --silent --ctx $S_CONTEXT \
- $_VSERVERKILLALL
- fi
- # We umount anyway, because "enter" establish the mount
- # but when you exit, the server is considered not running
- umountproc $__DEFAULT_VSERVERDIR/$1
- cd /
- test -x $__CONFDIR/$1.sh && $__CONFDIR/$1.sh post-stop $1
-elif [ "$2" = "restart" ] ; then
- if $0 $1 running
- then
- $0 $1 stop
- $0 $1 start
- fi
-elif [ "$2" = "suexec" ] ; then
- if [ -z "$3" ] ; then
- echo "Missing user!" >&2
- echo "vserver vserver-name suexec user command [ args ... ]" >&2
- exit 1
- elif [ -z "$4" ] ; then
- echo "Missing command and arguments!" >&2
- echo "vserver vserver-name suexec user command [ args ... ]" >&2
- exit 1
- else
- readlastconf $1
- . $__CONFDIR/$1.conf
- cd $__DEFAULT_VSERVERDIR/$1
- mountproc $__DEFAULT_VSERVERDIR/$1
- PS1="[\u@vserver:$1 \W]"
- export PS1
- VSERVER=$1
- USERID=$3
- shift; shift; shift
- CAPS=
- for f in $S_CAPS dummy
- do
- case $f in
- dummy)
- ;;
- !CAP_SYS_CHROOT)
- CHROOTOPT=--nochroot
- ;;
- *)
- CAPS="$CAPS --cap $f"
- ;;
- esac
- done
- FLAGS=
- for f in $S_FLAGS dummy
- do
- case $f in
- minit)
- FLAGS="$FLAGS --flag fakeinit"
- ;;
-
- dummy)
- ;;
- *)
- FLAGS="$FLAGS --flag $f"
- ;;
- esac
- done
- setdefulimit
- if [ "$ULIMIT" != "" ] ; then
- ulimit $ULIMIT
- fi
- if $0 $VSERVER running >/dev/null
- then
- . $__PKGSTATEDIR/$VSERVER.ctx
- cd $__DEFAULT_VSERVERDIR/$VSERVER
- export PATH=$DEFAULTPATH
- exec $_CHBIND_COMPAT $SILENT $IPOPT --bcast $IPROOTBCAST \
- $_CHCONTEXT_COMPAT $SILENT $FLAGS $CAPS --secure --ctx $S_CONTEXT \
- $_CAPCHROOT --suid $USERID . "$@"
- else
- test -x $__CONFDIR/$1.sh && $__CONFDIR/$1.sh pre-start $1
- CTXOPT=
- HOSTOPT=
- DOMAINOPT=
- if [ "$S_CONTEXT" != "" ] ; then
- CTXOPT="--ctx $S_CONTEXT"
- fi
- if [ "$S_HOSTNAME" != "" ] ; then
- HOSTOPT="--hostname $S_HOSTNAME"
- export HOSTNAME=$S_HOSTNAME
- fi
- if [ "$S_DOMAINNAME" != "" ] ; then
- DOMAINOPT="--domainname $S_DOMAINNAME"
- fi
- mkdir -p $__PKGSTATEDIR
- cd $__DEFAULT_VSERVERDIR/$VSERVER
- export PATH=$DEFAULTPATH
- exec $_CHBIND_COMPAT $SILENT $IPOPT --bcast $IPROOTBCAST \
- $_CHCONTEXT_COMPAT $SILENT $FLAGS $CAPS --secure $CTXOPT $HOSTOPT $DOMAINOPT \
- $_SAVE_S_CONTEXT $__PKGSTATEDIR/$VSERVER.ctx \
- $_CAPCHROOT --suid $USERID $CHROOTOPT . "$@"
- fi
- fi
-elif [ "$2" = "exec" ] ; then
- VSERV=$1
- shift; shift
- exec $0 $SILENT $VSERV suexec root "$@"
-elif [ "$2" = "enter" ] ; then
- testperm $1
- exec $0 $SILENT $1 exec /bin/bash -login
-elif [ "$2" = "service" ] ; then
- VSERVER=$1
- shift
- shift
- exec $0 $SILENT $VSERVER exec /sbin/service "$@"
-elif [ "$2" = "chkconfig" ] ; then
- VSERVER=$1
- shift
- shift
- if [ "$1" = "--level" ] ; then
- shift
- LEVELS=$1
- shift
- fi
- if [ $# != 2 -a ! -x $__DEFAULT_VSERVERDIR/$VSERVER/sbin/chkconfig ] ; then
- echo Invalid argument, expected vserver name chkconfig [ --level nnn ] service on\|off
- elif [ -x $__DEFAULT_VSERVERDIR/$VSERVER/sbin/chkconfig ] ; then
- exec $0 --silent $VSERVER exec /sbin/chkconfig "$@"
- elif [ -x $__DEFAULT_VSERVERDIR/$VSERVER/usr/sbin/update-rc.d ] ; then
- if [ "$2" = "on" -o "$2" = "start" ] ; then
- $0 --silent $VSERVER exec /usr/sbin/update-rc.d -f $1 remove >/dev/null
- exec $0 --silent $VSERVER exec /usr/sbin/update-rc.d $1 start 80 2 3 4 5 . stop 20 0 1 6 . >/dev/null
- elif [ "$2" = "off" -o "$2" = "stop" ] ; then
- $0 --silent $VSERVER exec /usr/sbin/update-rc.d -f $1 remove >/dev/null
- exec $0 --silent $VSERVER exec /usr/sbin/update-rc.d $1 stop 20 0 1 2 3 4 5 6 . >/dev/null
- else
- echo vserver chkconfig: Expecting on or off
- fi
- else
- echo chkconfig functionality is not available on this
- echo vserver distribution.
- echo Looked for /sbin/chkconfig and /usr/sbin/update-rc.d
- fi
-else
- echo Command unknown $2
- echo
- usage
-fi
-
+++ /dev/null
-#!/bin/bash
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on vserver-copy by Mark Lawrence <nomad@null.net>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# Copy/Sync a virtual host from one machine to another
-#
-# History:
-#
-# 2003-04-04: Version 0.4 - Mark lawrence
-# - Set "ONBOOT=no" in the destination .conf file when --startstop
-# is not used, in case the destination roothost reboots. We don't
-# want two copies of a vserver running at the same time.
-#
-# 2003-03-04: Version 0.3 - Mark lawrence
-# - Changed all checks for [ "" != "$var" ] into [ -n|-z "$var" ]. "" doesn't
-# seem to work for bash on the Sparc architecture.
-# - Changed $ssh variable into $shcmd.
-#
-# 2003-02-23: Version 0.2 - Mark Lawrence
-# - Set ONBOOT to "no" in the original .conf file when the "-s" flag is
-# used so that if/when you reboot the source roothost you don't have the
-# same vserver and IP address running on two machines.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-VERSION="0.4"
-umask 022
-me=${0##*/}
-
-
-### Helper functions ###
-
-# Save stdin and stdout for later use
-exec 3>&1
-exec 4>&2
-
-noninteractive () {
- exec &> /dev/null
-}
-
-interactive () {
- exec 1>&3
- exec 2>&4
-}
-
-info () {
- ! $quiet && echo "I: $me: $1" >&3
-}
-
-warn () {
- ! $quiet && echo "W: $me: $1" >&4
-}
-
-error () {
- ! $quiet && echo "E: $me: $2" >&4
- exit $1
-}
-
-
-### Usage/Info functions ###
-
-usage () {
- cat <<EOF 1>&2
-Usage: $me [-hVvqidrRs] vserver newname
- $me [-hVvqidrRs] vserver host:[newname]
-EOF
-}
-
-full_usage () {
- usage
- cat <<EOF
-
-$me uses rsync to make a copy of a vserver. If the destination
-name contains a host specification the vserver will be synchronised to
-the remote destination over ssh/rsh.
-
-This can be used on a running vserver to make a warm backup. With the -s
-flag a vserver can even be operationally moved to different hardware within
-seconds.
-
-The -i and -d flags can be used to minimally reconfigure the destination
-vserver (rewrites /etc/vservers/newname.conf and $__DEFAULT_VSERVERDIR/newname/etc/hosts)
-
-Options:
- -h, --help this help
- -V, --version copyright and version information
- -v, --verbose show all output
- -q, --quiet direct all output to /dev/null (no password
- prompt for logins on remote hosts!)
- -d, --domain [string] new dns domain (must be used with -i)
- -i, --ip [addr] new IP address (must be used with -d)
- -r, --vsroot location of "/vserver/" directory
- -R, --rsh use rsh (instead of default ssh) for
- network transport
- -s, --stopstart stop the local vserver before copying and start
- it on the destination host afterwards
-
-EOF
-}
-
-full_version () {
- cat <<EOF
-$me version $VERSION
-Copyright (c) 2002 Mark Lawrence <nomad@null.net>
-
-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.
-
-EOF
-}
-
-
-### Default values and Command line options ###
-
-stopstart=(false)
-verbose=(false)
-quiet=(false)
-shcmd="ssh"
-rsflag="-e"
-rsh=(false)
-colon=":"
-domain=""
-ip=""
-vsroot=$__DEFAULT_VSERVERDIR
-
-if [ $# -eq 0 ]; then # Script invoked with no command-line args?
- usage
- exit 1
-fi
-
-temp=$(getopt -o hVvqd:i:rRs --long help,version,verbose,quiet,domain:,ip:,vsroot,rsh,stopstart, -n $me -- "$@")
-
-if [ $? -ne 0 ]; then
- echo " (See -h for help)"
- exit 1
-fi
-
-# Note the quotes around `$temp': they are essential!
-eval set -- "$temp"
-
-while true; do
- case "$1" in
- -h|--help) full_usage
- exit 1
- ;;
- -V|--version) full_version
- exit 1
- ;;
- -v|--verbose) verbose=(true)
- shift
- ;;
- -q|--quiet) quiet=(true)
- shift
- ;;
- -d|--domain) domain="$2"
- shift 2
- ;;
- -i|--ip) ip="$2"
- shift 2
- ;;
- -r|--vsroot) vsroot="$2"
- shift 2
- ;;
- -R|--rsh) rsh=(true)
- shift
- ;;
- -s|--stopstart) stopstart=(true)
- shift
- ;;
- --) shift
- break
- ;;
- *) echo "Internal error!"
- exit 1
- ;;
- esac
-done
-
-if [ $# -ne 2 ]; then
- usage
- exit 1
-fi
-
-
-### ###
-
-# By default we are reasonably quiet (ouput only via info, warn & error)
-if $verbose; then
- interactive
-else
- noninteractive
-fi
-
-now=$(date)
-info "called on $(hostname) at $now"
-
-
-vserver=$1
-vconf=/etc/vservers/$vserver.conf
-vroot=$vsroot/$vserver
-
-if $rsh; then
- shcmd="rsh"
-fi
-
-if (echo $2 | grep '^[a-z][a-z0-9]\+$'); then
- dhost=""
- newname=$2
- shcmd=""
- rsflag=""
- colon=""
- if $rsh; then
- warn "rsh is set but not used for a local copy"
- fi
-elif (echo $2 | grep '^[a-z].*[a-z0-9]:$'); then
- dhost=${2/:/}
- newname=$vserver
-elif (echo $2 | grep '^[a-z].*[a-z0-9]:[a-z].*[a-z0-9]$'); then
- dhost=${2/:*/}
- newname=${2/*:/}
-else
- error 1 "Second argument must be of the form \"[host:]name\" or \"host:\""
-fi
-
-target=$vsroot/$newname
-targetconf=/etc/vservers/$newname.conf
-
-
-### Perform some sanity checks ###
-
-if [ ! -d $vroot ]; then
- error 1 "Directory \"$vroot\" does not exist"
-fi
-
-if [ ! -e $vconf ]; then
- error 1 "Vserver file \"$vconf\" does not exist"
-fi
-
-if [ -z "$dhost" ] && [ "$vserver" == "$newname" ]; then
- error 1 "Source and destination names cannot be the same on the localhost"
-fi
-
-if [ -n "$dhost" ] && ! (host $dhost | grep 'has address'); then
- warn "$dhost does not resolve into an IP address"
-fi
-
-if [ \( -n "$ip" -a -z "$domain" \) -o \
- \( -z "$ip" -a -n "$domain" \) ]
-then
- error 1 "Both IP address and domain must be specified together"
-fi
-
-if [ -n "$ip" ] && \
-! (echo $ip | grep '^[0-9]\{1,3\}\(\.[0-9]\{1,3\}\)\{3\}$' ); then
- error 1 "\"$ip\" is not a valid IP address"
-fi
-
-# This works both locally and remote
-if ($shcmd $dhost $__SBINDIR/vserver $newname running | grep 'is running'); then
- warn "destination vserver \"$newname\" is running"
- error 1 "Cannot copy over a running vserver"
-fi
-
-
-### Do the copy ###
-
-info "Attempting to copy $vserver to $dhost$colon$newname"
-
-if $stopstart; then
- info "Stopping virtual server \"$vserver\" on localhost"
- $__SBINDIR/vserver $vserver stop
-fi
-
-info "Syncing directories"
-# trailing slashes very important in the rsync!
-if ! rsync -Havxz --numeric-ids $rsflag $shcmd $vroot/ $dhost$colon$target/; then
- error 1 "rsync failed"
-fi
-
-if [ -n "$ip" -a -n "$domain" ]; then
- # Insert the new IPROOT/S_HOSTNAME values into the config file
- info "Modifying $targetconf"
- tmpf=$(tempfile)
- if (sed -e "s/^S_HOSTNAME=.*/S_HOSTNAME=\"$newname\"/" \
- -e "s/^IPROOT=.*/IPROOT=\"$ip\"/" $vconf > $tmpf)
- then
- if ! rsync -v $rsflag $shcmd $tmpf $dhost$colon$targetconf; then
- error $? "vserver config file copy/change failed"
- fi
-
- else
- warn "Unable to reconfigure virtual server config file"
- fi
-
- # create a new /etc/hostname
- info "Creating hostname file"
- echo $newname > $tmpf
- if ! rsync -v $rsflag $shcmd $tmpf $dhost$colon$target/etc/hostname; then
- error 1 "vserver /etc/hostname copy failed"
- fi
-
- info "Creating /etc/hosts"
- cat << EOF > $tmpf
-# /etc/hosts (automatically generated by $me)
-
-127.0.0.1 localhost
-$ip $newname.$domain $newname
-
-# The following lines are desirable for IPv6 capable hosts
-
-::1 ip6-localhost ip6-loopback
-fe00::0 ip6-localnet
-ff00::0 ip6-mcastprefix
-ff02::1 ip6-allnodes
-ff02::2 ip6-allrouters
-ff02::3 ip6-allhosts
-EOF
-
- # copy /etc/hosts
- if ! rsync -v $rsflag $shcmd $tmpf $dhost$colon$target/etc/hosts; then
- error 1 "vserver /etc/hosts copy failed"
- fi
- rm -f $tmpf
-
-else
- if ! $stopstart; then
- # Make sure that this vserver doesn't start on the
- # destination host if it reboots
- tmpf=$(tempfile)
- sed -e 's/^ONBOOT=.*/ONBOOT=no/' $vconf > $tmpf
- vconf=$tmpf
- fi
-
- # copy newname.conf unchanged
- info "Copying $targetconf"
- if ! rsync -v $rsflag $shcmd $vconf $dhost$colon$targetconf; then
- error 1 "vserver config file copy/change failed"
- fi
-
- rm -f $tmpf
-fi
-
-
-if $stopstart; then
- info "Starting virtual server \"$vserver\" on $dhost"
- $shcmd $dhost $__SBINDIR/vserver $vserver start
- if ($shcmd $dhost $__SBINDIR/vserver $vserver running | \
- grep 'not running'); then
- error 1 "Virtual server \"$vserver\" failed to start on $dhost"
- fi
-
- # Make sure that we don't start the original on next boot
- tmpf=$(tempfile)
- sed -e 's/^ONBOOT=.*/ONBOOT=no/' $vconf > $tmpf
- mv $tmpf $vconf
-fi
-
-exit 0
+++ /dev/null
-#!/bin/sh
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on vserverkillall by Jacques Gelinas
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# This script kills all process it can finds
-# Only useful if you are using a security context.
-# It does nothing in context 0
-USR_LIB_VSERVER=/usr/lib/util-vserver
-CTX=`grep ^s_context /proc/self/status | sed s/s_context:// | (read a b; echo $a)`
-CTX=`eval expr $CTX + 0`
-if [ "$CTX" = 0 ] ; then
- echo Running in security context 0, do nothing
-else
- cd /proc
- for SIG in -TERM -TERM -TERM -9
- do
- ONE=0
- for dir in *
- do
- case $dir in
- 1)
- ;;
- $$)
- ;;
- [1-9]*)
- ONE=1
- echo kill $SIG "`$USR_LIB_VSERVER/readlink /proc/$dir/exe`"[$dir]
- kill $SIG $dir
- ;;
- *)
- ;;
- esac
- done
- if [ "$ONE" = 0 ] ; then
- break
- fi
- sleep 1
- done
- # Kill the fakeinit process. It is shown as process one, but can't
- # be killed this way
- INITPID=`cat /proc/self/status | grep initpid: | (read a b; expr $b)`
- if [ "$INITPID" != "0" ] ; then
- echo kill init, pid $INITPID
- kill -9 $INITPID
- fi
-fi
-
-
+++ /dev/null
-#!/bin/bash
-# $Id: pkgmgmt 2599 2007-08-26 21:30:50Z dhozac $
-
-# Copyright (C) 2004,2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-. "$_LIB_VSERVER_BUILD_FUNCTIONS"
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
-. "$__PKGLIBDIR/vserver.functions"
-
-function showHelp()
-{
- echo \
-$"Usage: $0 --externalize|--internalize [-y] [--] <vserver-name>
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo $"\
-vpkg $PACKAGE_VERSION -- shows information about packages in vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2004,2005 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-function init()
-{
- if test -z "$WORKAROUND_106057"; then
- rpmdb_mntpoint=/dev
- else
- rpmdb_mntpoint=/.rpmdb
- fi
-}
-
-function _createDirs()
-{
- for i; do
- test -n "$i" || continue
- mkdir -p -m755 "$i"
- done
-}
-
-function _copySecure()
-{
- local chroot=$1
- local srcdir=$2
- local dstdir=$3
-
-
- ( cd "$srcdir" && tar chf - '.' ) | \
- ( cd "$chroot" && $_EXEC_CD "$dstdir" $_TAR xf - )
-}
-
-function _copySecureRev()
-{
- local chroot=$1
- local srcdir=$2
- local dstdir=$3
-
- ( cd "$chroot" && $_EXEC_CD "$srcdir" $_TAR cf - '.' ) | \
- ( cd "$dstdir" && tar xf - )
-}
-
-## Usage: _substFile <filename> <sed-expression>
-function _substFile()
-{
- local file=$1
- local expr=$2
-
- $_CHROOT_SH testfile "$file" || return 0
-
- local tmp=$($_MKTEMP pkgmgmt_subst.XXXXXX)
- trap "$_RM -f $tmp" EXIT
-
- $_CHROOT_SH cat "$file" | \
- $_SED -e "$expr" >$tmp
-
- $_CHROOT_SH cat "$file" | $_CMP -s $tmp - || \
- $_CHROOT_SH truncate "$file" <$tmp
-
- $_RM -f $tmp
-}
-
-function _hashAuto()
-{
- local file=$1
- local hash=$2
-
- $_CHROOT_SH testfile "$file" || return 0
-
- local tmp=$($_MKTEMP apt.conf.XXXXXX)
- trap "$_RM -f $tmp" EXIT
-
- $_CHROOT_SH cat "$file" | \
- $_SED -e "s|^\([^$hash].*@autogenerated@\)|$hash$hash\1|" >$tmp
-
- $_CHROOT_SH cat "$file" | $_CMP -s $tmp - || \
- $_CHROOT_SH truncate "$file" <$tmp
-
- $_RM -f $tmp
-}
-
-function _unhashAuto()
-{
- test -e "$1" || return 0
-
- local hash=$2
- local tmp=$($_MKTEMP apt.conf.XXXXXX)
- trap "$_RM -f $tmp" EXIT
-
- $_SED -e "s|^$hash$hash\(.*@autogenerated@\)|\1|" "$1" >$tmp
- $_CMP -s "$tmp" "$1" || \
- $_CAT "$tmp" >"$1"
-
- $_RM -f $tmp
-}
-
-function _mountFilesystemsInternal()
-{
- local fstab="$1"
- test -e "$fstab" || return 0
- shift
-
- pushd "$vdir" >/dev/null
- "$@" $_SECURE_MOUNT -n -a --chroot --fstab "$fstab"
- popd >/dev/null
-}
-
-function _mountFilesystems()
-{
- local cfgdir
- cfgdir=$($_VSERVER_INFO "$1" CFGDIR) || {
- echo "Can not determine configuration directory for '$1'; ..." >&2
- return 1
- }
- test -n "$_HAVE_CHBIND_OPTIONS" || _generateChbindOptions "$1"
-
- _mountFilesystemsInternal "$cfgdir"/fstab || return 1
- _mountFilesystemsInternal "$cfgdir"/fstab.local || return 1
- _mountFilesystemsInternal "$cfgdir"/fstab.remote "${CHBIND_CMD[@]}" || return 1
-}
-
-function _umountFilesystems()
-{
- local cfgdir
- cfgdir=$($_VSERVER_INFO "$1" CFGDIR) || {
- echo "Can not determine configuration directory for '$1'; ..." >&2
- return 1
- }
- local vdir=$cfgdir/vdir
- local is_ok=1
- test -n "$_HAVE_CHBIND_OPTIONS" || _generateChbindOptions "$1"
-
- pushd "$vdir/" >/dev/null || return 1
- _umountVserverInternal "$cfgdir"/fstab.remote "${CHBIND_CMD[@]}" || is_ok=
- _umountVserverInternal "$cfgdir"/fstab.local || is_ok=
- _umountVserverInternal "$cfgdir"/fstab || is_ok=
- popd >/dev/null || return 1
-
- test -n "$is_ok"
-}
-
-# Usage: verifyInternalPackages <vserver> <style>
-function verifyInternalPackages()
-{
- local pkgs res=0
- local ERR="\
-The following errors occured while trying to internalize the
-packagemanagement:
-"
-
- case $2 in
- (RH) pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum "${YUM_RELEASEPKGS[@]}")
- hasSubstring "$pkgs" ---rpm--- || {
- warning "$ERR
-* The vserver does not seem to have the 'rpm' package which is required
- for internal package management. It is suggested to install it before
- continuing."
- res=1
- ERR=
- }
-
- hasSubstring "$pkgs" ---apt--- ---yum--- || {
- warning "$ERR
-* The vserver does not seem to have a depsolver like 'apt' or 'yum'
- installed. It is suggested to install such a program before setting
- up internal package management."
- res=1
- ERR=
- }
-
- test -n "$have_apt" || test -z "$have_yum" || \
- hasSubstring "$pkgs" "${YUM_RELEASEPKGS[@]}" || {
- warning "$ERR
-* yum requires a special package which describes the version of the
- distribution. Such a package could not be found within the vserver
- so please install it before continuing. Usually, this package is
- named 'redhat-release' of 'fedora-release'."
- res=1
- ERR=
- }
- ;;
- esac
-
- return $res
-}
-
-function processVserver_RH()
-{
- local vserver=$1
- local is_internalize=$2
- local have_apt
- local cfgdir
- local i
-
- cfgdir=$($_VSERVER_INFO "$vserver" APPDIR pkgmgmt) || \
- cfgdir=$($_VSERVER_INFO "$vserver" APPDIR)/pkgmgmt
-
- ## Figure out the environment....
- have_apt=1
- have_yum=1
- pkgmgmt.isAptAvailable "$cfgdir" "$vdir" "$is_internalize" || have_apt=
- pkgmgmt.isYumAvailable "$cfgdir" "$vdir" "$is_internalize" || have_yum=
-
- local APTETCDIR=
- local APTSTATEDIR=
- local APTCACHEDIR=
- local APTARCHIVDIR=
- local RPMETCDIR=
- local RPMSTATEDIR=
-
- ## Create directories and assign variables where configuration
- ## can/will be found on the host
- if test -n "$is_internalize"; then
- verifyInternalPackages "$vserver" RH || test -n "$IS_FORCE" ||
- panic "
-Can not continue; use '--force' to override this check"
-
- pushd "$vdir" >/dev/null
-
- test ! -L var/lib/rpm || {
- $_EXEC_CD /var/lib $_RM rpm &&
- $_EXEC_CD /var/lib $_MKDIR -m755 rpm &&
- $_EXEC_CD /var/lib $_CHOWN rpm:rpm rpm ||
- :
- } </dev/null 2>/dev/null
-
- for i in var/cache/apt/{,archives/{,partial},genpkglist,gensrclist} \
- var/state/{,apt/{,lists/{,partial}}} \
- etc/apt etc/rpm; do
- test -d "$i" ||
- $_EXEC_CD /$(dirname "$i") $_MKDIR -m755 $(basename "$i") || :
- done #2>/dev/null
-
- popd >/dev/null
-
- if test -n "$have_apt"; then
- findDir APTETCDIR "$cfgdir"/aptetc "$cfgdir"/base/apt/etc /etc/apt /
- fi
-
- findDir RPMETCDIR "$cfgdir"/rpmetc "$cfgdir"/base/rpm/etc /etc/rpm /
- findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state
- else
- mkdir -m755 -p "$cfgdir"
- local need_base=
-
- if test -n "$have_apt"; then
- findDir APTETCDIR "$cfgdir"/aptetc "$cfgdir"/base/apt/etc /
- findDir APTSTATEDIR "$cfgdir"/aptstate "$cfgdir"/base/apt/state /
- findDir APTCACHEDIR "$cfgdir"/aptcache "$cfgdir"/base/apt/cache /
- findDir APTARCHIVDIR "$cfgdir"/aptarchives "$cfgdir"/base/apt/archives /
-
- test "$APTETCDIR" != / || APTETCDIR=$cfgdir/base/apt/etc
- test "$APTSTATEDIR" != / || APTSTATEDIR=$cfgdir/base/apt/state
- test "$APTCACHEDIR" != / || APTCACHEDIR=$cfgdir/base/apt/cache
- test "$APTARCHIVDIR" != / || APTARCHIVDIR=$cfgdir/base/apt/archive
-
- test -d "$cfgdir"/aptetc -a -d "$cfgdir"/aptstate -a \
- -d "$cfgdir"/aptcache -a -d "$cfgdir"/aptarchives || need_base=1
- fi
-
- findDir RPMETCDIR "$cfgdir"/rpmetc "$cfgdir"/base/rpm/etc /
- findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state /
-
- test "$RPMETCDIR" != / || RPMETCDIR=$cfgdir/base/rpm/etc
- test "$RPMSTATEDIR" != / || RPMSTATEDIR=$cfgdir/base/rpm/state
-
- test -d "$cfgdir"/rpmetc -a -d "$cfgdir"/rpmstate || need_base=1
- test ! -e "$cfgdir"/base || need_base=
-
- test -z "$need_base" || ln -s "$PKGCFGDIR" "$cfgdir"/base
-
- mkdir -m755 -p "$PKGCFGDIR"
- _createDirs "$APTETCDIR" "$APTSTATEDIR" "$APTCACHEDIR" "$APTARCHIVDIR" \
- "$RPMETCDIR" "$RPMSTATEDIR"
- fi
-
- ## Copy the files...
- if test -n "$is_internalize"; then
- if test -n "$have_apt"; then
- _copySecure "$vdir" "$APTETCDIR" /etc/apt
- pushd "$vdir" >/dev/null
- _hashAuto /etc/apt/apt.conf '/'
- popd >/dev/null
- fi
-
- _copySecure "$vdir" "$RPMETCDIR" /etc/rpm
- _copySecure "$vdir" "$RPMSTATEDIR" /var/lib/rpm
-
- pushd "$vdir" >/dev/null
- ## remove %_dbpath settings
- _substFile /etc/rpm/macros '/^%_dbpath[ \t].*/D'
- popd >/dev/null
- else
- if test -n "$have_apt"; then
- _copySecureRev "$vdir" /etc/apt "$APTETCDIR"
- _unhashAuto "$APTETCDIR"/apt.conf '/'
- fi
-
- _copySecureRev "$vdir" /etc/rpm "$RPMETCDIR"
- _copySecureRev "$vdir" /var/lib/rpm "$RPMSTATEDIR"
-
- echo -e "%_dbpath\t\t$rpmdb_mntpoint" >>$RPMETCDIR/macros
- fi
-
- ## Cleanups...
- if test -n "$is_internalize"; then
- :
- else
- tmpdir=$($_MKTEMPDIR -p /var/tmp pkgmgmt.XXXXXX)
- trap "$_RM -rf $tmpdir" EXIT
- pushd "$vdir" >/dev/null
- $_EXEC_CD /var/lib $_MV rpm $tmpdir/
- $_EXEC_CD /var/lib $_LN_S "$rpmdb_mntpoint" rpm
- $_RM -rf $tmpdir
- fi
-
- ## Finish it...
- if test -n "$is_internalize"; then
- $_TOUCH "$cfgdir"/internal
- else
- $_RM -f "$cfgdir"/internal
- fi
-}
-
-function processVserver_Debian()
-{
- local vserver=$1
- local is_internalize=$2
-
- if test -n "$is_internalize"; then
- echo $"Debian vservers should be internalized everytime; do not know how to handle '$vserver'" >&2
- else
- echo $"External packagemanagement is not supported for Debian vserver" >&2
- fi
-
- return 1
-}
-
-function processVserver()
-{
- local vserver=$1
- local is_external=
- local skip=1
- local vdir
-
- ! $_VSERVER_INFO -q "$vserver" RUNNING || {
- echo $"Can not operate on running vservers; please stop '$vserver' and retry again..."
- return 1
- } >&2
-
- vdir=$($_VSERVER_INFO "$vserver" VDIR) && test -d "$vdir" || {
- echo $"Vserver '$vserver' does not seem to exist; skipping it..."
- return 1
- } >&2
-
- _setVserverDir "$vserver"
- _setVserverName
- _setVserverDirName
- pkgmgmt.initVariables
-
- pkgmgmt.isInternal "$vserver" || is_external=1
-
- case "$is_external"X"$IS_INTERNALIZE"X"$IS_EXTERNALIZE" in
- (*X1X1) echo $"Can not externalize and internalize at the same time";;
- (*XX) echo $"No operation specified; try '--help' for more information";;
- (1XX1) echo $"Vserver '$vserver' has already external packagemanagment; skipping it...";;
- (X1X) echo $"Vserver '$vserver' has already internal packagemanagment; skipping it...";;
- (*) skip=
- esac >&2
-
- test -z "$skip" || return 1
-
- local style
- _mountFilesystems "$vserver" || return 1
- pkgmgmt.guessStyle "$vserver" style || return 1
-
- case "$style" in
- (redhat|mandrake) processVserver_RH "$vserver" "$IS_INTERNALIZE";;
- (debian) processVserver_Debian "$vserver" "$IS_INTERNALIZE";;
- (*)
- echo $"Vserver style '$style' is not supported for packagemanagment" >&2
- return 1
- esac
-
- _umountFilesystems "$vserver" || return 1
-}
-
-tmp=$(getopt -o y --long debug,externalize,internalize,help,version,force -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-IS_EXTERNALIZE=
-IS_INTERNALIZE=
-IS_YES=
-IS_FORCE=
-
-while true; do
- case "$1" in
- (--help) showHelp $0;;
- (--version) showVersion;;
- (--debug) set -x;;
- (--externalize) IS_EXTERNALIZE=1;;
- (--internalize) IS_INTERNALIZE=1;;
- (--force) IS_FORCE=1;;
- (-y) IS_YES=1;;
- (--) shift; break;;
- (*) echo $"vserver: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-test -n "$1" || {
- echo $"No vserver specified; try '--help' for more information"
- exit 1
-} >&2
-
-
-set -e
-init
-
-ok=1
-passed=
-for i; do
- processVserver "$i" && passed=1 || ok=
-done
-
-test -z "$ok" || exit 0
-test -z "$passed" || exit 1
-exit 2
+++ /dev/null
-#! /bin/bash
-
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# Usage: start-vservers [-c <CFGDIR>] [-m <MARK>] [-j <NUM>] [--start|--stop|--status|--condrestart|--restart] [--test] [--all] [--debug] -- <name>+
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-### Some local functions
-
-function showHelp()
-{
- echo \
-$"Usage: $(basename $0) [-c <CFGDIR>] [-m <MARK>] [-j <NUM] [--test]
- [--start|--stop] [--all|--[un]marked|--running|--stopped] -- <name>+
-
-Please report bugs to $PACKAGE_BUGREPORT"
- exit 0
-}
-
-
-function showVersion()
-{
- echo \
-$"start-vserver $PACKAGE_VERSION -- starts/stops a bunch of vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2004 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-function verifyVserver()
-{
- local xtra="${2:+ mentioned in '$2'}"
- case x$1 in
- (x\#*|x)
- return 1;; # skip empty and comment lines
- ($__CONFDIR/*)
- warning "This version of 'start-vservers' supports only short vserver names; try to remove the '$__CONFDIR' from '$1'$xtra"
- return 1
- ;;
- (/*)
- warning "This version of 'start-vservers' supports only short vserver names; '$1'$xtra is not possible"
- return 1
- ;;
- (*)
- $_VSERVER_INFO -q "$__CONFDIR/$1" VDIR || {
- warning "Vserver '$1'$xtra does not exist; skipping it..."
- return 1;
- }
- ;;
- esac
-
- return 0
-}
-
-###
-
-set +e
-
-
-tmp=$(getopt -o c:j:m: \
- --long debug,help,version,start,stop,test,$VS_ALLVSERVERS_ARGS \
- -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-declare -a tmp_vservers=()
-declare -r TAB=$(echo -en "\t")
-OPTION_MARK=
-OPTION_MARK_ANY=1
-OPTION_PARALLEL=99
-OPTION_DEBUG=
-NOOPTION_DEBUG=1
-
-case "`basename $0`" in
- start-*) OPTION_FLAVOR=start;;
- stop-*) OPTION_FLAVOR=stop;;
- *) OPTION_FLAVOR=;;
-esac
-
-while true; do
- getAllVserversByArg tmp_vservers "$1" || \
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion $0 ;;
- (-c) CONFDIR=$2; shift;;
- (-m) OPTION_MARK=$2; OPTION_MARK_ANY=; shift;;
- (-j) OPTION_PARALLEL=$2; shift;;
- (--start) OPTION_FLAVOR=start;;
- (--stop) OPTION_FLAVOR=stop;;
- (--debug) OPTION_DEBUG=1; NOOPTION_DEBUG=; set -x;;
- (--) shift; break;;
- (*) echo $"$0: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-test -n "$OPTION_FLAVOR" || {
- echo "$0: unknown invocation method; aborting..." >&2
- exit 1
-}
-
-vservers=( "$@" "${tmp_vservers[@]}" )
-
-orig_vservers=$vservers
-i=${#vservers[*]}
-
-while test $i -gt 0; do
- let --i
- d=$__CONFDIR/${vservers[$i]}/apps/init
- f=$d/mark
- { test -n "$OPTION_MARK_ANY"; } || \
- { test -n "$OPTION_MARK" -a -r "$f" && grep -qx "$OPTION_MARK" "$f"; } || \
- { test -z "$OPTION_MARK" && test ! -e "$f"; } || \
- unset vservers[$i]
-done
-
-makedir=$($_MKTEMPDIR vserver-init.XXXXXX)
-okfile=$($_MKTEMP vserver-init.XXXXXX)
-passedfile=$($_MKTEMP vserver-init.XXXXXX)
-trap "$_RM -rf $makedir $okfile $passedfile" EXIT
-
-test_cmd=false
-case "$OPTION_FLAVOR" in
- start) test_cmd="${_VSERVER} --silent '\$*' status";;
- stop) test_cmd="! ${_VSERVER} --silent '\$*' status";;
-esac
-
-{
- cat <<EOF
-.%.stamp:
-${TAB}$test_cmd || { \
-${TAB}echo -n '.' >>$passedfile ; \
-${TAB}$_VSERVER --defaulttty --sync ${OPTION_DEBUG:+--debug} "\$*" ${OPTION_FLAVOR}; }
-${TAB}echo -n '.' >>$okfile
-${TAB}@touch "\$@"
-EOF
-
- echo -ne "all:\t"
- for i in "${vservers[@]}"; do
- verifyVserver "$i" || continue
-
- echo -n ".$i.stamp "
- done
- echo
-} >$makedir/Makefile
-
-for i in "${vservers[@]}"; do
- d="$__CONFDIR/$i"/apps/init
- echo "$i"
- test -e "$d"/depends || continue
- cat "$d"/depends
-done | sort -u | while read vserver; do
- verifyVserver "$vserver" || continue
- d="$__CONFDIR/$vserver"/apps/init
-
- case "$OPTION_FLAVOR" in
- (start)
- if test -e "$d"/depends; then
- echo -ne ".$vserver.stamp:\t"
- cat "$d"/depends | while read dep; do
- verifyVserver "$dep" "$d"/depends || continue
- echo -n ".$dep.stamp "
- done
- echo
- fi >>$makedir/Makefile
- ;;
- (stop)
- if test -e "$d"/depends; then
- cat "$d"/depends | while read dep; do
- verifyVserver "$dep" "$d"/depends || continue
- echo -e ".$dep.stamp:\t.$vserver.stamp"
- done
- echo
- fi >>$makedir/Makefile
- esac
-done
-
-#cat $makedir/Makefile
-make -k ${NOOPTION_DEBUG:+-s} ${OPTION_PARALLEL:+-j$OPTION_PARALLEL} -C $makedir
-
-test -s "$passedfile" || exit 0
-test -s "$okfile" || exit 1
-$_CMP -s "$passedfile" "$okfile" || exit 2
-exit 0
+++ /dev/null
-# $Id: util-vserver-vars.pathsubst 2589 2007-08-16 03:06:50Z dhozac $ --*- sh -*--
-
-PACKAGE='@PACKAGE@'
-PACKAGE_BUGREPORT='@PACKAGE_BUGREPORT@'
-PACKAGE_NAME='@PACKAGE_NAME@'
-PACKAGE_STRING='@PACKAGE_STRING@'
-PACKAGE_TARNAME='@PACKAGE_TARNAME@'
-PACKAGE_VERSION='@PACKAGE_VERSION@'
-
-__CONFDIR='@CONFDIR@'
-__INCLUDEDIR='@INCLUDEDIR@'
-__INITRDDIR='@INITRDDIR@'
-__LEGACYDIR="@LEGACYDIR@"
-__LIBDIR='@LIBDIR@'
-__LOCKDIR="/var/lock"
-__PKGLIBDIR='@PKGLIBDIR@'
-__PKGCACHEDIR="@PKGCACHEDIR@"
-__PKGSTATEDIR="@PKGSTATEDIR@"
-__PKGSTATEREVDIR="@PKGSTATEREVDIR@"
-__SBINDIR='@SBINDIR@'
-__SYSCONFDIR='@SYSCONFDIR@'
-__VSHELPERSTATEDIR="@VSHELPERSTATEDIR@"
-
-__DISTRIBDIR="$__PKGLIBDIR/distributions"
-__PKGLIBDEFAULTDIR="$__PKGLIBDIR/defaults"
-__RUNDIR="$__PKGSTATEDIR"
-
-__DEFAULT_VSERVERDIR='@VSERVERDIR@'
-__DEFAULT_VSERVERPKGDIR='@VSERVERPKGDIR@'
-
-_CAPCHROOT="$__PKGLIBDIR/capchroot"
-_CHAINECHO="$__PKGLIBDIR/chain-echo"
-_CHBIND="$__SBINDIR/chbind"
-_CHBIND_COMPAT="$__PKGLIBDIR/chbind-compat"
-_CHCONTEXT="$__SBINDIR/chcontext"
-_CHCONTEXT_COMPAT="$__PKGLIBDIR/chcontext-compat"
-_CHECK_UNIXFILE="$__PKGLIBDIR/check-unixfile"
-_CHROOT_SH="$__PKGLIBDIR/chroot-sh"
-_EXEC_CD="$__SBINDIR/exec-cd"
-_EXEC_ULIMIT="$__PKGLIBDIR/exec-ulimit"
-_FAKE_RUNLEVEL="$__PKGLIBDIR/fakerunlevel"
-_FILETIME="$__PKGLIBDIR/filetime"
-_H2EXT="$__PKGLIBDIR/h2ext"
-_IFSPEC="$__LEGACYDIR/ifspec"
-_INITSYNC_MINIT_START=":"
-_KEEP_CTX_ALIVE="$__PKGLIBDIR/keep-ctx-alive"
-_LIB_FUNCTIONS="$__PKGLIBDIR/functions"
-_LIB_MAGIC="$__PKGLIBDIR/magic"
-_LIB_VSERVER_INIT_FUNCTIONS="$__PKGLIBDIR/vserver-init.functions"
-_LIB_VSERVER_SETUP_FUNCTIONS="$__PKGLIBDIR/vserver-setup.functions"
-_LIB_VSERVER_BUILD_FUNCTIONS="$__PKGLIBDIR/vserver-build.functions"
-_LIB_VSERVER_BUILD_FUNCTIONS_APT="$__PKGLIBDIR/vserver-build.functions.apt"
-_LIB_VSERVER_BUILD_FUNCTIONS_RPM="$__PKGLIBDIR/vserver-build.functions.rpm"
-_LIB_VSERVER_BUILD_FUNCTIONS_YUM="$__PKGLIBDIR/vserver-build.functions.yum"
-_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT="$__PKGLIBDIR/vserver-build.functions.pkgmgmt"
-_LISTDEVIP="$__LEGACYDIR/listdevip"
-_LOCKFILE="$__PKGLIBDIR/lockfile"
-_MASK2PREFIX="$__PKGLIBDIR/mask2prefix"
-_NADDRESS="$__SBINDIR/naddress"
-_NATTRIBUTE="$__SBINDIR/nattribute"
-_NCONTEXT="$__SBINDIR/ncontext"
-_PARSERPMDUMP="$__LEGACYDIR/parserpmdump"
-_PKGMGMT="$__PKGLIBDIR/pkgmgmt"
-_READLINK="$__PKGLIBDIR/readlink"
-_REBOOTMGR="$__LEGACYDIR/rebootmgr"
-_RPM_FAKE_SO="$__PKGLIBDIR/rpm-fake.so"
-_SAVE_S_CONTEXT="$__LEGACYDIR/save_s_context"
-_SAVE_CTXINFO="$__PKGLIBDIR/save_ctxinfo"
-_SECURE_MOUNT="$__PKGLIBDIR/secure-mount"
-_SETATTR="$__SBINDIR/setattr"
-_SHOWPERM="$__LEGACYDIR/showperm"
-_START_VSERVERS="$__PKGLIBDIR/start-vservers"
-_VAPT_GET="$__SBINDIR/vapt-get"
-_VAPT_GET_WORKER="$__PKGLIBDIR/vapt-get-worker"
-_VATTRIBUTE="$__SBINDIR/vattribute"
-_VCLONE="$__PKGLIBDIR/vclone"
-_VCONTEXT="$__SBINDIR/vcontext"
-_VDEVMAP="$__SBINDIR/vdevmap"
-_VDLIMIT="$__SBINDIR/vdlimit"
-_VDU="$__SBINDIR/vdu"
-_VHASHIFY="$__PKGLIBDIR/vhashify"
-_VKILL="$__SBINDIR/vkill"
-_VLIMIT="$__SBINDIR/vlimit"
-_VNAMESPACE="$__SBINDIR/vnamespace"
-_VPKG="$__PKGLIBDIR/vpkg"
-_VPROCUNHIDE="$__PKGLIBDIR/vprocunhide"
-_VPS="$__SBINDIR/vps"
-_VREBOOT="$__LEGACYDIR/vreboot"
-_VRPM="$__SBINDIR/vrpm"
-_VRPM_PRELOAD="$__PKGLIBDIR/vrpm-preload"
-_VRPM_WORKER="$__PKGLIBDIR/vrpm-worker"
-_VSCHED="$__SBINDIR/vsched"
-_VSERVER="$__SBINDIR/vserver"
-_VSERVER_LEGACY="$__LEGACYDIR/vserver"
-_VSERVER_BUILD="$__PKGLIBDIR/vserver-build"
-_VSERVER_INFO="$__SBINDIR/vserver-info"
-_VSERVERKILLALL="$__LEGACYDIR/vserverkillall"
-_VSHELPER="$__PKGLIBDIR/vshelper"
-_VSHELPER_SYNC="$__PKGLIBDIR/vshelper-sync"
-_VSOMETHING="$__SBINDIR/vsomething"
-_VSYSCTL="$__PKGLIBDIR/vsysctl"
-_VTAG="$__SBINDIR/vtag"
-_VWAIT="$__SBINDIR/vwait"
-_VUNAME="$__SBINDIR/vuname"
-_VUNIFY="$__PKGLIBDIR/vunify"
-_VYUM="$__SBINDIR/vyum"
-_VYUM_WORKER="$__PKGLIBDIR/vyum-worker"
-
-_AWK="@AWK@"
-_BZIP2="@BZIP2@"
-_CAT="@CAT@"
-_CHOWN="@CHOWN@"
-_CMP="@CMP@"
-_CP="@CP@"
-_CPIO="@CPIO@"
-_DIRNAME="@DIRNAME@"
-_EGREP="@EGREP@"
-_ENV="@ENV@"
-_FILE="@FILE@"
-_GREP="@GREP@"
-_GZIP="@GZIP@"
-_IP="@IP@"
-_IPTABLES="@IPTABLES@"
-_LN="@LN@"
-_LN_S="$_LN -s"
-_MKDIR="@MKDIR@"
-_MKFIFO="@MKFIFO@"
-_MKTEMP="@MKTEMP@ -t"
-_MKTEMPDIR="$_MKTEMP -d"
-_MODPROBE="@MODPROBE@"
-_MOUNT="@MOUNT@"
-_MV="@MV@"
-_NAMEIF="@NAMEIF@"
-_NICE="@NICE@"
-_NOHUP="@NOHUP@"
-_RESTORE="@RESTORE@"
-_RM="@RM@"
-_RMDIR="@RMDIR@"
-_RMMOD="@RMMOD@"
-_RSYNC="@RSYNC@"
-_SED="@SED@"
-_SH="@SH@"
-_STRACE="@STRACE@"
-_TAC="@TAC@"
-_TAR="@TAR@"
-_TOUCH="@TOUCH@"
-_TTY="@TTY@"
-_UMOUNT="@UMOUNT@"
-_VCONFIG="@VCONFIG@"
-_WC="@WC@"
-_WGET="@WGET@"
-
-# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=106057
-WORKAROUND_106057=1
-# /var/lib/rpm is hardcoded into apt-get which does not honor the
-# %_dbpath variable therefore
-# http://distro2.conectiva.com.br/pipermail/apt-rpm/2003-October/001985.html
-WORKAROUND_APT_DBPATH=1
-# XXX Backward compatibility
-VROOTDIR=$__DEFAULT_VSERVERDIR
+++ /dev/null
-#! /bin/bash
-# $Id: vapt-get 2335 2006-09-28 15:10:29Z dhozac $
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-
-function showHelp()
-{
- echo \
-$"Usage: $0 <vserver-name>* [--all] -- <params>+
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vapt-get $PACKAGE_VERSION -- apt-get for vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2006 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-declare -a send_through vsomething_opts
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;;
- (--quiet|-q) send_through=( "${send_through[@]}" "$1" );;
- (--all) vsomething_opts=( "${vsomething_opts[@]}" "$1" );;
- (--) shift; break;;
- (*) echo $"vapt-get: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-VSOMETHING_TITLE=vapt-get
-VSOMETHING_WORKER=$_VAPT_GET_WORKER
-VSOMETHING_PKGMGMT=1
-
-export VSOMETHING_TITLE VSOMETHING_WORKER VSOMETHING_PKGMGMT
-
-test ${#vsomething_opts[@]} -eq 0 || vsomething_opts=( "${vsomething_opts[@]}" -- )
-exec $_VSOMETHING "${send_through[@]}" ${APT_GET:-apt-get} "${vsomething_opts[@]}" "$@"
+++ /dev/null
-#! /bin/bash
-# $Id: vapt-get-worker 1870 2005-02-25 21:51:02Z ensc $
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-set -e
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-
-function createAptFileSys()
-{
- mkdir -p /var/state/apt/lists/partial
- mkdir -p /var/cache/apt/archives/partial
-}
-
-vserver="$1"
-shift
-
-pkgInit "$vserver" rpm apt
-
-createAptFileSys
-
-test -z "$_APT_GET" || {
- warning $"The environment variable \$_APT_GET is not supported anymore; please use \$APT_GET instead of"
- ${APT_GET:=$_APT_GET}
-}
-
-exec ${_APT_GET:-apt-get} \
- -o "RPM::RootDir=$VDIR" \
- -o "Dir=$VDIR" \
- -o "Dir::State=$APTSTATEDIR" \
- -o "Dir::Cache=$APTCACHEDIR" \
- -o "Dir::Cache::archives=$APTARCHIVDIR" \
- -o "Dir::Bin::rpm=$RPM_BINARY" \
- -o "Dir::Etc=$APTETCDIR" \
- -o "RPM::Order=true" \
- -o "RPM::PM=external" \
- "$@"
+++ /dev/null
-#!/bin/bash
-#
-# vcached: VServer cache allocator
-#
-# Description: A script that preallocates vservers and stores them in
-# a cache. Preallocated vservers from the cache may be then used to
-# instantiate real vservers. Requires that /var/run/vcached.pid does
-# not exist on startup. Should run periodically as a cron job.
-#
-# Based on work by:
-#
-# Brent Chun - bnc@intel-research.net
-# Tristan Koo - tristan.koo@intel-research.net
-# William Wung - wungism@uclink.berkeley.edu
-#
-# Mark Huang <mlhuang@cs.princeton.edu>
-# Copyright (c) 2004-2005 The Trustees of Princeton University
-#
-# $Id: vcached,v 1.14 2007/07/05 19:05:14 dhozac Exp $
-#
-
-PATH=/sbin:/usr/sbin:$PATH
-
-# number of images to keep cached
-slots=32
-
-# PID file
-pidfile=/var/run/vcached.pid
-
-# log file
-logfile=/var/log/vcached.log
-
-# debug
-debug=0
-
-usage()
-{
- echo "usage: vcached [OPTION...]"
- echo " -s [slots] number of images to keep cached"
- echo " -p [pidfile] PID file"
- echo " -l [logfile] log file"
- echo " -d debug"
- exit 1
-}
-
-# parse options
-while getopts 's:p:l:dh' OPT ; do
- case "$OPT" in
- s) slots=$OPTARG ;;
- p) pidfile=$OPTARG ;;
- l) logfile=$OPTARG ;;
- d) debug=1 ;;
- h|*) usage ;;
- esac
-done
-
-# append output to log file
-exec 1>>$logfile
-exec 2>>$logfile
-
-# check if we are already running
-if [ -f $pidfile ] && kill -0 `cat $pidfile` >/dev/null 2>&1 ; then
- echo "vcached(`cat $pidfile`) already running"
- exit 1
-fi
-echo $$ > $pidfile
-
-# clean up lock file before exiting
-trap "rm -f $pidfile" EXIT
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo "Can not find util-vserver installation; aborting..."
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-# make sure barrier bit is set on /vservers to prevent chroot() escapes
-setattr --barrier $__DEFAULT_VSERVERDIR
-
-# take out the trash
-#rm -rf "$__DEFAULT_VSERVERDIR/.vtmp"
-
-mkdir -p "$__DEFAULT_VSERVERDIR/.vcache"
-mkdir -p "$__DEFAULT_VSERVERDIR/.vtmp"
-
-[ $debug -ne 0 ] && echo "$(date) Checking the cache"
-for i in $(seq 0 $(($slots - 1))) ; do
- if [ ! -d "$__DEFAULT_VSERVERDIR/.vcache/v$i" ] ; then
- echo "$(date) Caching v$i"
- # build image in .vtmp
- TMP=$(mktemp -d "$__DEFAULT_VSERVERDIR/.vtmp/v$i.XXXXXX")
- "$_VCLONE" "$__DEFAULT_VSERVERDIR/.vref/default/" "$TMP"/
- RETVAL=$?
- # move it to .vcache when complete
- if [ $RETVAL -eq 0 ] ; then
- mv "$TMP" "$__DEFAULT_VSERVERDIR/.vcache/v$i"
- echo "$(date) v$i ready"
- else
- echo "$(date) Error $RETVAL building v$i"
- rm -rf "$TMP"
- fi
- fi
-done
-
-exit 0
+++ /dev/null
-#
-# vcached: VServer cache allocator
-#
-# Mark Huang <mlhuang@cs.princeton.edu>
-# Copyright (c) 2004-2005 The Trustees of Princeton University
-#
-# $Id: vcached.cron,v 1.2 2005/09/01 18:52:53 mlhuang Exp $
-#
-
-*/15 * * * * root /usr/sbin/vcached
+++ /dev/null
-/var/log/vcached.log {
- compress
- daily
- notifempty
- rotate 5
- missingok
- postrotate
- kill -HUP `cat /var/run/vcached.pid 2>/dev/null` 2>/dev/null || true
- endscript
-}
+++ /dev/null
-#!/bin/bash
-# $Id: vdispatch-conf 2486 2007-02-05 18:08:17Z hollow $
-
-# Copyright (C) 2006 Benedikt Boehm <hollow@gentoo.org>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-
-function showHelp()
-{
- echo \
-$"Usage: $0 <vserver-name>* [--all] -- <params>+
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vdispatch-conf $PACKAGE_VERSION -- dispatch-conf for vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2006 Benedikt Boehm
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-declare -a send_through vsomething_opts
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;;
- (--quiet|-q) send_through=( "${send_through[@]}" "$1" );;
- (--all) vsomething_opts=( "${vsomething_opts[@]}" "$1" );;
- (--) shift; break;;
- (*) echo $"vdispatch-conf: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-VSOMETHING_TITLE=vemerge
-VSOMETHING_PKGMGMT=1
-
-export VSOMETHING_TITLE VSOMETHING_PKGMGMT
-
-exec $_VSOMETHING "${send_through[@]}" dispatch-conf "${vsomething_opts[@]}" "$@"
+++ /dev/null
-#!/bin/bash
-# $Id: vemerge 2363 2006-11-03 14:36:23Z hollow $
-
-# Copyright (C) 2006 Benedikt Boehm <hollow@gentoo.org>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-
-function showHelp()
-{
- echo \
-$"Usage: $0 <vserver-name>* [--all] -- <params>+
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vemerge $PACKAGE_VERSION -- emerge for vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2006 Benedikt Boehm
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-declare -a send_through vsomething_opts
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;;
- (--quiet|-q) send_through=( "${send_through[@]}" "$1" );;
- (--all) vsomething_opts=( "${vsomething_opts[@]}" "$1" );;
- (--) shift; break;;
- (*) echo $"vemerge: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-VSOMETHING_TITLE=vemerge
-VSOMETHING_PKGMGMT=1
-
-export VSOMETHING_TITLE VSOMETHING_PKGMGMT
-
-test ${#vsomething_opts[@]} -eq 0 || vsomething_opts=( "${vsomething_opts[@]}" -- )
-exec $_VSOMETHING "${send_through[@]}" emerge "${vsomething_opts[@]}" "$@"
+++ /dev/null
-#!/bin/bash
-# $Id: vesync 2486 2007-02-05 18:08:17Z hollow $
-
-# Copyright (C) 2006 Benedikt Boehm <hollow@gentoo.org>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-
-function showHelp()
-{
- echo \
-$"Usage: $0 <vserver-name>* [--all] [--overlay <dir>] [--overlay-host <rsyncpath>] [--overlay-only]
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vesync $PACKAGE_VERSION -- portage cache sync for vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2006 Benedikt Boehm
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-tmp=$(getopt -o +q --long help,version,debug,quiet,all,overlay,overlay-host,overlay-only -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-declare -a send_through vsomething_opts
-overlay=
-overlay_host=
-overlay_only=0
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;;
- (--quiet|-q) send_through=( "${send_through[@]}" "$1" );;
- (--all) vsomething_opts=( "${vsomething_opts[@]}" "$1" );;
- (--overlay) overlay="${2%/}";;
- (--overlay-host) overlay_host="${2%/}";;
- (--overlay-only) overlay_only=1;;
- (--) shift; break;;
- (*) echo $"vesync: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-VSOMETHING_TITLE=vesync
-VSOMETHING_PKGMGMT=1
-
-export VSOMETHING_TITLE VSOMETHING_PKGMGMT
-
-ret=0
-
-test $overlay_only -eq 0 && \
- $_VSOMETHING "${send_through[@]}" emerge "${vsomething_opts[@]}" "$@" -- --metadata
-
-ret=$?
-
-test -n "$overlay" -a -n "$overlay_host" && \
- $_VSOMETHING "${send_through[@]}" rsync "${vsomething_opts[@]}" "$@" -- \
- -rtW --progress --delete --delete-after "${overlay_host}/" "${overlay}/"
-
-test $? -eq 0 -a $ret -eq 0
+++ /dev/null
-#!/bin/bash
-# $Id: vpkg 1919 2005-03-18 00:23:02Z ensc $
-
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-function showHelp()
-{
- echo \
-$"Usage: $0 <vserver-name> <tag>
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo $"\
-vpkg $PACKAGE_VERSION -- shows information about packages in vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2004 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-
-case "$1" in
- (--help) showHelp $(basename $0);;
- (--version) showVersion ;;
-esac
-
-test "$1" -a "$2" || {
- echo $"No vserver and/or tag given; use '--help' for more information" >&2
- exit 1
-}
-
-vserver=$1
-tag=$2
-shift 2
-
-case "$tag" in
- get-conffiles|install) ;;
- *) echo $"Unsupport tag '$tag'" >&2; exit 1;;
-esac
-
-cfgdir=$($_VSERVER_INFO "$vserver" APPDIR pkgmgmt) || :
-vdir=$($_VSERVER_INFO "$1" VDIR) || :
-
-style=
-is_external=
-pkgmgmt.guessStyle "$vserver" style || exit 2
-pkgmgmt.isInternal "$vserver" || is_external=1
-
-cmd=()
-
-case "$style" in
- (redhat|mandrake)
- rpm_param=
- apt_param=
- case "$tag" in
- ## rpm outputs sometimes '(contains no files)', so return
- ## only the valid output
- (get-conffiles)
- rpm_param=( -qac --pipe "$_SED '\!^/!p;d'" );;
- (install)
- rpm_param=( -Uvh "$@" )
- apt_param=( install "$@" )
- ;;
- esac
-
- if test -n "$is_external"; then
- have_apt=1
- test -d "$cfgdir"/base/apt -o -d "$cfgdir"/aptetc || have_apt=
- else
- have_apt=
- for i in /bin /usr/bin /usr/local/bin; do
- test ! -x "$vdir$i"/apt-get || { have_apt=1; break; }
- done
- fi
-
- if test -n "$is_external"; then
- if test "$have_apt" -a "$apt_param"; then
- cmd=( "$_VAPT_GET" "$vserver" -- "${apt_param[@]}" )
- else
- cmd=( "$_VRPM" "$vserver" -- "${rpm_param[@]}" )
- fi
- else
- if test "$have_apt" -a "$apt_param"; then
- cmd=( "$_VSERVER" --silent "$vserver" exec apt-get "${apt_param[@]}" )
- else
- cmd=( "$_VSERVER" --silent "$vserver" exec rpm "${rpm_param[@]}" )
- fi
- fi
- ;;
- (debian)
- case "$tag" in
- (get-conffiles)
- cmd=( sh -c "cat /var/lib/dpkg/info/*.conffiles 2>/dev/null" )
- ;;
- (install)
- cmd=( apt-get install "$@" )
- ;;
- esac
-
- if test -n "$is_external"; then
- echo $"'external' packagemanagement is not supported for Debian" >&2
- exit 1
- else
- cmd=( "$_VSERVER" --silent "$vserver" exec "${cmd[@]}" )
- fi
- ;;
- (*)
- echo $"Packagemanagement is not supported for '$style' style" >&2
- exit 2
- ;;
-esac
-
-export LANG=C
-exec "${cmd[@]}"
+++ /dev/null
-#!/bin/bash
-# $Id: vprocunhide 2011 2005-04-10 00:55:51Z ensc $
-#
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-function showHelp()
-{
- echo $\
-"Usage: vprocunhide
-
-Return values:
- 0 ... no errors
- 1 ... configuration error
- 2 ... some files were changed but errors occured on other ones
- 3 ... operation failed on every file
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vprocunhide $PACKAGE_VERSION -- unhides /proc entries
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2004 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-
-while test -n "$1"; do
- case "$1" in
- --help) showHelp;;
- --version) showVersion;;
- esac
-done
-
-findFile UNHIDEFILE \
- "$__CONFDIR"/.defaults/apps/vprocunhide/files \
- "$__PKGLIBDEFAULTDIR"/vprocunhide-files
-
-ok=1
-passed=
-while read filename; do
- params=()
-
- case "$filename" in
- (\#*) continue;;
- (\~*) params=( --admin --watch --hide ); filename=${filename#\~};;
- (-*) params=( --admin --hide ); filename=${filename#-};;
- (:*) params=( --watch --hide ); filename=${filename#:};;
- (!*) params=( --hide ); filename=${filename#!};;
- (+*) params=( --!hide ); filename=${filename#+};;
- (*) params=( --!hide );;
- esac
-
- case "$filename" in
- (*/) params=( "${params[@]}" -R );;
- (*) ;;
- esac
-
- set -- $filename
- test -e "$1" || continue
-
- $_SETATTR -x "${params[@]}" "$@" && passed=1 || ok=
-done <"$UNHIDEFILE"
-
-test -n "$ok" && exit 0 || \
-test -n "$passed" && exit 2 || \
-exit 3
+++ /dev/null
-#!/bin/sh
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on vpstree by Jacques Gelinas
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#Presents the processes running in all virtual servers
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-exec $__SBINDIR/chcontext --silent --ctx 1 pstree "$@"
+++ /dev/null
-#!/bin/env bash
-#
-# vrename is used to rename an existing vserver guest A to B.
-#
-#
-# Marc E. Fiuczynski <mef@cs.princeton.edu>
-# Copyright (C) 2007 The Trustees of Princeton University
-#
-# $Id:$
-#
-
-oname=$1
-nname=$2
-
-if [ -d "/etc/vservers/${nname}" ] ; then
- echo "WARNING: vserver ${nname} already exists. Aborting..."
- exit -1
-fi
-if [ ! -d "/etc/vservers/${oname}" ] ; then
- echo "WARNING: vserver ${oname} does not exists. Aborting..."
- exit -1
-fi
-
-[ -f /var/run/vservers/${oname} ] && vserver $oname stop
-
-dlist="/vservers /etc/vservers /etc/vservers/.defaults/cachebase /var/run/vservers /etc/vservers/.defaults/vdirbase"
-
-for dir in $dlist; do
- if [ -d "${dir}/${oname}" ] ; then
- mv ${dir}/${oname} ${dir}/${nname}
- fi
-done
-
-# create new symlinks
-ln -nsf /etc/vservers/.defaults/cachebase/${nname} /etc/vservers/${nname}/cache
-ln -nsf /etc/vservers/.defaults/vdirbase/${nname} /etc/vservers/${nname}/vdir
-ln -nsf /var/run/vservers/${nname} /etc/vservers/${nname}/run
-
-exit 0
+++ /dev/null
-#! /bin/bash
-# $Id: vrpm 2303 2006-09-12 12:39:00Z dhozac $
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-
-function showHelp()
-{
- echo \
-$"Usage: $0 <vserver-name>* [--all] -- <params>+
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vrpm $PACKAGE_VERSION -- rpm for vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2006 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-declare -a send_through vsomething_opts
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;;
- (--quiet|-q) send_through=( "${send_through[@]}" "$1" );;
- (--all) vsomething_opts=( "${vsomething_opts[@]}" "$1" );;
- (--) shift; break;;
- (*) echo $"vrpm: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-VSOMETHING_TITLE=vrpm
-VSOMETHING_WORKER=$_VRPM_WORKER
-VSOMETHING_PKGMGMT=1
-
-export VSOMETHING_TITLE VSOMETHING_WORKER VSOMETHING_PKGMGMT
-
-test ${#vsomething_opts[@]} -eq 0 || vsomething_opts=( "${vsomething_opts[@]}" -- )
-exec $_VSOMETHING "${send_through[@]}" rpm "${vsomething_opts[@]}" "$@"
+++ /dev/null
-#! /bin/bash
-# $Id: vrpm-preload 1825 2005-01-27 21:24:44Z ensc $
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-set -e
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-for bin in `which rpm` /bin/rpm /usr/lib/rpm/rpm${RPM_FLAVOR:-i} ""; do
- ldd "$bin" &>/dev/null && break
-done
-
-test -x "$bin" ||
- panic $"No dynamically linked rpm binary found; exiting..."
-
-rpmFake.init "$CUR_VSERVER"
-rpmFake.exec "$bin" "$@"
+++ /dev/null
-#! /bin/bash
-# $Id: vrpm-worker 1440 2004-04-08 06:05:06Z ensc $
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-set -e
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-vserver=$1
-shift
-
-pkgInit "$vserver" rpm
-
-exec $RPM_BINARY --root "$VDIR" "$@"
+++ /dev/null
-#! /bin/bash
-# $Id: vserver 2566 2007-07-18 17:24:36Z dhozac $
-
-# Copyright (C) 2003,2004,2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# set -e
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-### Some local functions
-
-function showHelp()
-{
- echo \
-$"Usage: $(basename $0) [-s|--sync] [-v|--verbose] [--silent]
- [--] <vserver> <command> <args>*
-
-<vserver> is the name of a vserver.
-
-Possible commands are:
- start [--rescue [--rescue-init]] [<rescue-cmd> <args>*]
- ... starts the specified vserver
- stop ... stops the specified vserver
- restart ... restarts the specified vserver; this is the subsequent
- execution of a synchronized 'stop' and a 'start'
- condrestart ... restarts the vserver when it is running already
- suexec <user> <shell-command> <args*>
- ... executes a command as the specified user in the vserver
- exec <shell-command> <args*>
- ... executes a command as root in the vserver
- enter ... executes the configured shell in the vserver
- chkconfig <chkconfig-options*>
- ... modifies the init-system; currently, only Red Hat's
- chkconfig is supported
- running ... succeeds iff the vserver is running
- status ... gives out some human readable status information about
- the vserver, and succeeds iff the vserver is running
-
- build <buildopts>*
- ... builds a new vserver from scratch
- delete ... remove a vserver
-
- unify [-R] <vunify-opts>*
- ... (de)unify the vserver with its reference vserver(s).
-
- pkg install <pkg>
- ... installs package(s) in the vserver
-
- apt-get,apt-config,apt-cache <apt-opts>*
- ... execute the apt-* command for the given vserver
- rpm <rpm-opts>*
- ... execute the rpm command for the given vserver
-
- pkgmgmt externalize|internalize [-y]
- ... externalize or internalize the package-management for the
- given vserver. 'Externalize' means that package metadata
- and management tools (apt-get,rpm) are living in the host,
- while 'internalize' means that data and programs from the
- vserver will be used.
-
- hashify
- ... hashify the guest.
-
-
-Please report bugs to $PACKAGE_BUGREPORT"
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vserver $PACKAGE_VERSION -- manages the state of vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2003,2004,2005 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-function suexec()
-{
- . $__PKGLIBDIR/vserver.suexec
-}
-
-function restart()
-{
- "${SELF[@]}" --sync "$vserver" stop
- exec "${SELF[@]}" "$vserver" start
-}
-
-function msg()
-{
- test -z "$OPTION_SILENT" || return 0
- echo "$@"
-}
-
-### main starts here
-
-set +e
-
-OPTIONS_ORIG=( "$@" )
-tmp=$(getopt -o +sv --long nonamespace,--nonamespace,--insecure,defaulttty,help,debug,strace,debug-sysv,version,sync,verbose,silent -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-OPTION_FORCE_SYNC=
-OPTION_VERBOSE=
-OPTION_SILENT=
-OPTION_DEBUG=
-OPTION_NONAMESPACE=
-OPTION_INSECURE=
-OPTION_DEFAULTTTY=
-OPTION_STRACE=
-OPTION_DEBUG_SYSV=
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--debug) OPTION_DEBUG=$1; set -x;;
- (-v|--verbose) OPTION_VERBOSE=$1;;
- (-s|--sync) OPTION_FORCE_SYNC=$1;;
- (--silent) OPTION_SILENT=$1;;
- (----nonamespace)OPTION_NONAMESPACE=$1;;
- (--defaulttty) OPTION_DEFAULTTTY=$1;;
- (----insecure) OPTION_INSECURE=1;;
- (--strace) OPTION_STRACE=1;;
- (--debug-sysv*) OPTION_DEBUG_SYSV=$1;;
- (--) shift; break;;
- (*) echo $"vserver: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-OPTION_ALL=( $OPTION_SILENT $OPTION_VERBOSE $OPTION_DEBUG $OPTION_DEFAULTTTY )
-SELF=( "$0" "${OPTION_ALL[@]}" )
-
-vserver=$1
-cmd=$2
-
-test "$cmd" != build || { shift 2; exec $_VNAMESPACE --new -- \
- "$_VSERVER_BUILD" $OPTION_DEBUG -n "$vserver" "$@"; }
-
-
-allow_legacy=
-
-case "$vserver" in
- (./*) VSERVER_DIR=`pwd`/$vserver;;
- (/*) VSERVER_DIR=$vserver;;
- (*) VSERVER_DIR=$__CONFDIR/$vserver
- allow_legacy=1
- ;;
-esac
-
-if test -n "$allow_legacy"; then
- do_legacy=
- test ! -e "$VSERVER_DIR/legacy" || do_legacy=1
- test -d "$VSERVER_DIR" -o ! -e "$__CONFDIR/$vserver.conf" || do_legacy=1
-
- test -z "$do_legacy" || {
- if test "$cmd" = "convert"; then
- exec $__PKGLIBDIR/vserver.convert "$vserver"
- fi
- echo $"WARNING: can not find configuration, assuming legacy method" >&2
- exec "$_VSERVER_LEGACY" "$@"
- }
-fi
-
-test -d "$VSERVER_DIR" || {
- echo $"\
-Can not find a vserver-setup at '$VSERVER_DIR/'.
-
-Possible solutions:
-* fix the spelling of the '$vserver' vserver name
-* read 'vserver $vserver build --help' about ways to create a new vserver
-* see 'vserver --help' for the syntax of this command
-"
- exit 5
-} >&2
-
-_setVserverName
-
-# Create a new namespace when starting the guest
-test "$2" != start -o -n "$OPTION_NONAMESPACE" || isAvoidNamespace "$VSERVER_DIR" || \
- exec $_VNAMESPACE --new -- $_VSERVER ----nonamespace "${OPTIONS_ORIG[@]}"
-
-# Enter the namespace early so we can test for files inside the guest
-test "$2" != enter -a "$2" != stop || \
- test -n "$OPTION_NONAMESPACE" || isAvoidNamespace "$VSERVER_DIR" || \
- ! isVserverRunning "$VSERVER_DIR" || \
- exec $_VNAMESPACE --enter "$VSERVER_DIR" -- $_VSERVER ----nonamespace "${OPTIONS_ORIG[@]}"
-
-set_init_cwd
-cd /
-
-. $__PKGLIBDIR/vserver.functions
-case "$2" in
- (start|stop|delete)
- shift 2
- . $__PKGLIBDIR/vserver.$cmd
- ;;
- (suexec|restart)
- shift 2
- $cmd "$@"
- ;;
- (condrestart)
- ! isVserverRunning "$VSERVER_DIR" || restart
- ;;
- (exec)
- shift 2
- suexec 0 "$@"
- ;;
- (chkconfig)
- shift 2
- suexec 0 chkconfig "$@"
- ;;
- (enter)
- useVlogin && \
- OPTS_VCONTEXT_ENTER=( "${OPTS_VCONTEXT_ENTER[@]}" --vlogin )
- getEnterShell "$VSERVER_DIR"
- suexec 0 "${ENTER_SHELL[@]}"
- ;;
- (running)
- isVserverRunning "$VSERVER_DIR"
- ;;
-
- (unify)
- shift 2
- exec $_VUNIFY "$@" "$vserver"
- ;;
-
- (hashify)
- shift 2
- exec $_VHASHIFY "$@" "$vserver"
- ;;
-
- (pkg)
- shift 2
- exec $_VPKG "$vserver" "$@"
- ;;
-
- (pkgmgmt)
- op=$3
- shift 3
- exec $_VNAMESPACE --new -- $_PKGMGMT ${op:+--$op} "$@" -- "$vserver"
- ;;
-
- (apt-get|apt-config|apt-cache)
- export APT_GET=$2
- shift 2
- exec $_VAPT_GET "$VSERVER_DIR" -- "$@"
- ;;
-
- (rpm)
- shift 2
- exec $_VRPM "$VSERVER_DIR" -- "$@"
- ;;
-
- (status)
- if getVserverStatus "$VSERVER_DIR" ctx procnum; then
- msg $"Vserver '$vserver' is running at context '$ctx'"
-
- if test "$2" = status; then
- msg $"Number of processes: " $procnum
- msg $"Uptime: " $("$_FILETIME" "$VSERVER_DIR/run")
- fi
- exit 0
- else
- msg $"Vserver '$vserver' is stopped"
- exit 3
- fi
- ;;
- (convert)
- echo "Vserver '$vserver' is already converted"
- exit 1
- ;;
- (*)
- echo $"Usage: $0 <vserver> {start|stop|suexec|restart|condrestart|exec|enter|chkconfig|running|status|delete}" >&2
- exit 2
- ;;
-esac
+++ /dev/null
-#! /bin/bash
-# $Id: vserver-build 2468 2007-01-21 20:05:19Z dhozac $
-
-# Copyright (C) 2003,2004,2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-. "$_LIB_VSERVER_SETUP_FUNCTIONS"
-. "$_LIB_VSERVER_BUILD_FUNCTIONS"
-
-### Some local functions
-
-function showHelp()
-{
- echo \
-$"Usage: $(basename $0) -m <method> -n <name> --force <cfg-options>*
- --rootdir <dir> --pkgbase <dir> [--] <method-args>*
-
-Options:
- --force ... remove/rename already existing vservers with the same
- name
- --keep ... do not delete generated files and directories when
- build of vserver failed.
- -m <method> ... use method <method>; see below for possible values
- --rootdir <dir>
- ... [default: $__DEFAULT_VSERVERDIR]
- --pkgbase <dir>
- ... [default: $__DEFAULT_VSERVERPKGDIR]
-
-cfg-options are: $SETUP_HELPMSG
-
-Possible methods are:
- legacy ... the \"old\" copy-all-from-host method, which requires the
- old legacy vserver-legacy script; with this method the
- cfg-options will be ignored
- apt-rpm ... -- -d <distribution>
- ... installs the base-packages of the given distribution with
- help of 'vapt-get'
- yum ... -- -d <distribution>
- ... installs the base-packages of the given distribution with
- help of 'vyum'
- rpm ... -- [-d <distribution>] --empty|([--force] [--nodeps] <manifest>)+
- ... installs lists of rpm-packages
- skeleton ... -- [<cmd> <args>*]
- ... installs a minimal skeleton filesystem, creates the
- configuration file and calls an optional command then
- debootstrap ... -- -d <distribution> [-m <mirror>] [-s <script> ] [-- <debootstrap-options>*]
- ... bootstraps the vserver with Debian's 'debootstrap' package
- template ... -- (-t <tarball>)+ [-d <distribution>]
- ... installs a guest using tarball(s)
- fai ... -- [ -f <fai_vserver> ] [-n <nfsroot>] [-d <fai_dir> ] [ -a ]
- bootstraps the vserver with Debian Fully Automatic Installation
- -f means use the nfsroot and profile in the vserver <fai_vserver>
- -n <nfsroot> specifies the 'NFS' root explicitly
- -d <fai_dir> specifies the location of the FAI profile
- the -f option implies -n and -d are relative to the <fai_vserver>
- rsync ... -- [-d <distribution>] --source <source> [-o <rsync option>]*
- ... installs a guest by rsyncing from <source> to the guest root
- clone ... -- [-d <distribution>] --source <source>
- ... clones a guest by linking unified files and copying the rest
-
-Please report bugs to $PACKAGE_BUGREPORT"
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vserver-build $PACKAGE_VERSION -- initializes a vserver
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2003,2004,2005 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-### main starts here
-
-set -e
-
-declare -a default_opts=()
-test -n "$NO_DEFAULT_OPTS" || getFileArray default_opts "$__CONFDIR/.defaults/apps/build/options" || :
-
-tmp=$(getopt -o +m:n: --long keep,force,debug,help,version,rootdir:,pkgbase:,$SETUP_OPTIONS -n "$(basename $0)" -- \
- "${default_opts[@]}" "$@") || exit 1
-eval set -- "$tmp"
-
-VSERVER_NAME=
-OPTION_FORCE=
-OPTION_DEBUG=0
-OPTION_KEEP=
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--force) OPTION_FORCE=1;;
- (--keep) OPTION_KEEP=1;;
- (--debug) let ++OPTION_DEBUG; set -x;;
- (--rootdir) ROOTDIR=$2; shift;;
- (--pkgbase) PKGCFGBASE=$2; shift;;
- (-m) method=$2; shift;;
- (-n) VSERVER_NAME=$2; shift;;
- (--) shift; break;;
- (*)
- { setup_setOption2 "$1" "$2" && shift; } || \
- panic $"vserver-build: internal error."
- ;;
- esac
- shift
-done
-
-test -n "$VSERVER_NAME" ||
- panic $"Name of vserver not specified"
-
-setup_setDefaults "$VSERVER_NAME"
-
-case x"$method" in
- (xlegacy) exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;;
- (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone)
- . $__PKGLIBDIR/vserver-build.$method
- ;;
- (x) panic $"No build-method specified";;
- (*) panic $"Unknown build-method '$method'";;
-esac
+++ /dev/null
-# $Id: vserver-build.apt-rpm 2162 2005-07-25 15:40:22Z ensc $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-tmp=$(getopt -o +d: --long debug -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_APT"
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
-
-while true; do
- case "$1" in
- (-d) DISTRIBUTION=$2; shift;;
- (--debug) set -x;;
- (--) shift; break ;;
- (*) echo "vserver-build.apt-rpm: internal error: unrecognized option '$1'" >&2
- exit 1
- ;;
- esac
- shift
-done
-
-getDistribution
-
-base.init
-
-pkgmgmt.initVariables
-rpm.initVariables
-apt.initVariables
-
-rpm.sanityCheck
-
-
-base.initFilesystem "$OPTION_FORCE"
-pkgmgmt.initFilesystem "$OPTION_FORCE"
-rpm.initFilesystem
-apt.initFilesystem
-
-setup_writeOption "$VSERVER_NAME"
-setup_writeInitialFstab
-
-test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-rpm.initDB "$SETUP_CONFDIR"
-rpm.importGPGPubKeys "$SETUP_CONFDIR" \
- "$__CONFDIR/.distributions/$DISTRIBUTION/pubkeys" \
- "$__CONFDIR/.distributions/.common/pubkeys" \
- "$__DISTRIBDIR/$DISTRIBUTION/pubkeys"
-
-$_VAPT_GET "$SETUP_CONFDIR" -- update
-apt.installBasePackages "$SETUP_CONFDIR" "$PKGINSTALLDIR"
-$_VAPT_GET "$SETUP_CONFDIR" -- dist-upgrade -y
-$_VAPT_GET "$SETUP_CONFDIR" -- clean
-test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-base.setSuccess
+++ /dev/null
-# $Id: vserver-build.clone 2494 2007-02-11 00:45:04Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-tmp=$(getopt -o '+d:s:o:' --long debug,pkgmgmt,source: -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
-
-DISTRIBUTION=:
-use_pkgmgmt=
-SOURCE=
-while true; do
- case "$1" in
- -d) DISTRIBUTION=$2; shift;;
- --debug) set -x;;
- --pkgmgmt) use_pkgmgmt=1;;
- -s|--source) SOURCE=$2; shift;;
- --) shift; break ;;
- *) echo "vserver-build.clone: internal error: unrecognized option '$1'" >&2
- exit 1
- ;;
- esac
- shift
-done
-
-if test -d "$SOURCE"; then
- :
-elif test -d "$__CONFDIR/$SOURCE"; then
- SOURCE=`getPhysicalDir "$__CONFDIR/$SOURCE/vdir"`
-elif test -d "$__DEFAULT_VSERVERDIR/$SOURCE"; then
- SOURCE=`getPhysicalDir "$__DEFAULT_VSERVERDIR/$SOURCE"`
-else
- SOURCE=
-fi
-
-test -n "$SOURCE" || panic $"vserver-build.clone: valid --source argument required"
-
-getDistribution '' 1
-
-base.init
-test -z "$use_pkgmgmt" || pkgmgmt.initVariables
-
-base.initFilesystem "$OPTION_FORCE"
-test -z "$use_pkgmgmt" || pkgmgmt.initFilesystem "$OPTION_FORCE"
-
-
-setup_writeOption "$VSERVER_NAME"
-setup_writeInitialFstab
-
-test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-$_VCLONE "$SOURCE"/ "$VDIR"/
-
-test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-base.setSuccess
+++ /dev/null
-# $Id: vserver-build.debootstrap 2574 2007-07-31 19:43:17Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-function init
-{
- workdir=
- MIRROR=
- options=
-}
-
-function initVariables
-{
- base.init
-
- test -n "${MIRROR}" || {
- local aux
- findFile aux "$__CONFDIR"/.distributions/"$DISTRIBUTION"/debootstrap.mirror \
- "$__CONFDIR"/.defaults/apps/debootstrap/mirror \
- "$__DISTRIBDIR"/"$DISTRIBUTION"/debootstrap.mirror \
- "$__PKGLIBDEFAULTDIR"/debootstrap.mirror ''
- test -z "$aux" || read MIRROR <"$aux"
- }
- local file
- findFile file "$__CONFDIR"/.distributions/"$DISTRIBUTION"/debootstrap.options \
- "$__CONFDIR"/.defaults/apps/debootstrap/options ''
- test -z "$file" || read options <"$file"
-}
-
-function initFilesystem
-{
- base.initFilesystem "$1"
-
- mkdir -p "$SETUP_CONFDIR"/apps/pkgmgmt
- touch "$SETUP_CONFDIR"/apps/pkgmgmt/internal
-}
-
-function findDebootstrap
-{
- test ! -x "$DEBOOTSTRAP" || return 0
-
- pushd . &>/dev/null
- DEBOOTSTRAP=$(which debootstrap 2>/dev/null) || {
- dir=$($_MKTEMPDIR -p /var/tmp debootstrap.XXXXXX)
- workdir=$dir
- dst=$dir/debootstrap.deb
-
- base._addGeneratedFile "$workdir"
-
- findFile DEBOOTSTRAP_URI "$__CONFDIR"/.defaults/apps/debootstrap/uri "$__PKGLIBDEFAULTDIR"/debootstrap.uri
- read tmp <$DEBOOTSTRAP_URI
- case "$tmp" in
- (/*) ln -s "$tmp" "$dst";;
- (http://*|ftp://*)
- echo $"\
-Could not find local version of 'debootstrap'; downloading it from
-${tmp}..."
- $_WGET -nv -O "$dst" "$tmp" || {
- $_CAT <<EOF >&2
-ERROR: Could not download the debootstrap package from
-
- $tmp
-
-Usually, this means that Debian released a new version which is unknown
-to util-vserver and removed the known ones. To fix this, go to
-
- http://ftp.debian.org/debian/pool/main/d/debootstrap/
-
-(or a nearby mirror) and search the URL for the most recent *.deb
-package matching your platform. Then, put this URL into
-
- $__CONFDIR/.defaults/apps/debootstrap/uri
-
-and retry the vserver-build command again.
-EOF
- exit 1
- }
- ;;
- (*) echo $"Unsupported URI scheme '$tmp'" >&2
- exit 1;;
- esac
- cd $dir
- ar x "$dst"
- tar xzf data.tar.gz
- export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap
- DEBOOTSTRAP=`pwd`/usr/sbin/debootstrap
-
- local arch
- arch=$(uname -i 2>/dev/null) || \
- arch=$(arch 2>/dev/null) ||
- arch=
-
- ## Wash the calculated architecture
- case $arch in
- (i?86|athlon) arch=i386;;
- esac
-
- test -z "$arch" || echo "$arch" >$DEBOOTSTRAP_DIR/arch
- }
- popd &>/dev/null
-
- test -x "$DEBOOTSTRAP" || { echo $"Can not find debootstrap at '$DEBOOTSTRAP'" >&2; exit 1; }
-}
-
-function fixupDebian
-{
- $_RM -rf "$1"/dev
- $_MV "$1"/dev.X "$1"/dev
-}
-
-
-### main starts here <---
-
-
-tmp=$(getopt -o '+d:m:s:' --long debug -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-init
-
-while true; do
- case "$1" in
- (-d) DISTRIBUTION=$2; shift;;
- (-m) MIRROR=$2; shift;;
- (-s) script=$2; shift;;
- (--debug) set -x;;
- (--) shift; break ;;
- (*) echo "vserver-build.debootstrap: internal error: unrecognized option '$1'" >&2
- exit 1
- ;;
- esac
- shift
-done
-
-getDistribution '' 1
-
-initVariables
-initFilesystem "$OPTION_FORCE"
-
-setup_writeOption "$VSERVER_NAME"
-setup_writeInitialFstab
-
-findDebootstrap
-
-if test -z "$script"; then
- findFile script "$__CONFDIR/.distributions/$DISTRIBUTION/debootstrap.script" \
- "$__DISTRIBDIR/$DISTRIBUTION/debootstrap.script" ''
-fi
-
-export MIRROR
-test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-mv "$VDIR"/dev "$VDIR"/dev.X
-"$_VNAMESPACE" --new -- \
- "$DEBOOTSTRAP" $options "$@" "$DISTRIBUTION" "$VDIR" "$MIRROR" "$script" || : ## HACK: ignore all errors...
-fixupDebian "$VDIR"
-test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-$_RM -fr "$workdir"
-base.setSuccess
+++ /dev/null
-#
-# Copyright (C) 2006 Sam Vilain <sam.vilain@catalyst.net.nz>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-tmp=$(getopt -o '+d:f:n:a' --long debug,pkgmgmt -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
-. "$__PKGLIBDIR/vserver.functions"
-
-DISTRIBUTION=:
-
-FAI_VSERVER=
-FAI_NFSROOT=/usr/lib/fai/nfsroot
-FAI_DIR=/usr/local/share/fai
-AUTO=1
-
-use_pkgmgmt=
-while true; do
- case "$1" in
- -f) FAI_VSERVER=$2; shift; ;;
- -n) FAI_NFSROOT=$2; shift; ;;
- -d) FAI_DIR=$2; shift; ;;
- -a) AUTO=;;
- --debug) DEBUG=1; SH_DEBUG=-x; set -x;;
- --) shift; break ;;
- *) echo "vserver-build.fai: internal error: unrecognized option '$1'" >&2
- exit 1
- ;;
- esac
- shift
-done
-
-getDistribution '' 1
-
-base.init
-base.initFilesystem "$OPTION_FORCE"
-
-setup_writeOption "$VSERVER_NAME"
-setup_writeInitialFstab
-
-test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-# migrate is a 2.6 feature, we need 2.6 for the secure_mount ccap
-if ! $_VSERVER_INFO - FEATURE migrate; then
- panic $"\
-The fai build method requires kernel features that are not present
-in your kernel."
-fi
-
-# if they specified a vserver where FAI is installed, then prefix its
-# root to the FAI_NFSROOT etc (unless they have already specified a
-# $ROOTDIR-relative path)
-REAL_ROOTDIR=`getPhysicalDir "$ROOTDIR"`
-REAL_VDIR=`getPhysicalDir "$VDIR"`
-echo $"ROOTDIR is $REAL_ROOTDIR"
-echo $"VDIR is $REAL_VDIR"
-if [ -n "$FAI_VSERVER" ]
-then
- echo "FAI_VSERVER is $FAI_VSERVER"
- if [ `expr "$FAI_NFSROOT" : "$REAL_ROOTDIR"` -eq 0 ]
- then
- FAI_NFSROOT="$REAL_ROOTDIR/$FAI_VSERVER$FAI_NFSROOT"
- fi
- if [ `expr "$FAI_DIR" : "$REAL_ROOTDIR"` -eq 0 ]
- then
- FAI_DIR="$REAL_ROOTDIR/$FAI_VSERVER$FAI_DIR"
- fi
-fi
-echo $"FAI_NFSROOT is $FAI_NFSROOT"
-echo $"FAI_DIR is $FAI_DIR"
-FAI_ROOT=/tmp/target
-
-if [ ! -e "$FAI_NFSROOT/usr/sbin/fai" ]
-then
- panic $"NFSROOT not found - did you run fai-setup?"
-fi
-
-if ! grep -qw VIRTUAL "$FAI_NFSROOT/usr/sbin/fai"
-then
- panic $"\
-ERROR: Looks like you don't have the patched FAI.
-See http://faiwiki.informatik.uni-koeln.de/index.php/Using_FAI_as_a_vserver_build_method
-for information on where to get it."
-fi
-
-set -e
-
-# suppresses color logo, as it does not leave the terminal in a nice
-# state.
-console=dummy
-
-killprocs() {
- set +e
- S_CONTEXT=
- if isVserverRunning "$SETUP_CONFDIR" S_CONTEXT
- then
- $_VKILL -c "$S_CONTEXT" -s 15
- sleep 2
- $_VKILL -c "$S_CONTEXT" -s 9
- sleep 2
- isVserverRunning "$SETUP_CONFDIR" && warning $"\
-Vserver '$VSERVER_NAME' still running unexpectedly; please investigate it
-manually."
- fi
- [ -n "$HAVE_INTERFACES" ] && disableInterfaces "$SETUP_CONFDIR"
- base.__cleanup
-}
-
-trap killprocs INT EXIT
-
-# last chance to abort!
-if [ -z "$AUTO" ]
-then
- echo -n "Press ENTER to begin, or Ctrl+C to cancel: "
- read junk
-fi
-
-# set up interfaces, so that the vserver can be built with restricted
-# network access.
-generateOptions "$SETUP_CONFDIR"
-enableInterfaces "$SETUP_CONFDIR"
-HAVE_INTERFACES=1
-
-rwpaths="/var/lock /var/log /dev /var/run /etc/sysconfig"
-[ -d "$FAI_NFSROOT/etc/network/run" ] && rwpaths="$rwpaths /etc/network/run"
-
-export VDIR ROOTDIR FAI_VSERVER FAI_DIR FAI_NFSROOT FAI_ROOT console
-
-[ -z "$AUTO" ] && FINAL_SHELL="exec /bin/sh -i"
-
-# set up /mnt with all the mounts required
-$_SECURE_MOUNT -n -o ro,dev --bind "$FAI_NFSROOT" /mnt
-$_SECURE_MOUNT -n -t tmpfs -o size=64m,mode=1777 vm /mnt/tmp
-$_MKDIR -p /mnt/tmp/target
-$_SECURE_MOUNT -n -o rw,dev --bind "$VDIR" /mnt/tmp/target
-$_MKDIR -p /mnt/tmp/target/proc
-$_SECURE_MOUNT -n -t proc proc /mnt/tmp/target/proc
-for x in $rwpaths
-do
- /mnt/usr/lib/fai/mkrw -n "/mnt$x"
-done
-$_SECURE_MOUNT -n -o ro --bind "$FAI_DIR" /mnt/fai
-$_SECURE_MOUNT -n -t proc proc /mnt/proc
-
-cd /mnt
-"${CHBIND_CMD[@]}" \
- $_VCONTEXT --create "${OPTS_VCONTEXT_CREATE[@]}" -- \
- $_VUNAME --xid self --set -t nodename="${SETUP_HOSTNAME:-fai-build}" \
- -t context="$SETUP_CONFDIR" -- \
- $_VATTRIBUTE --set --xid self "${OPTS_VATTRIBUTE[@]}" --ccap secure_mount \
- $_SAVE_CTXINFO "$SETUP_CONFDIR" \
- $_VCONTEXT --migrate-self --endsetup --chroot $SILENT_OPT \
- "${OPTS_VCONTEXT_MIGRATE[@]}" "${OPTS_VCONTEXT_ENTER[@]}" -- \
- /bin/sh -c "/bin/sh $SH_DEBUG /etc/init.d/rcS -N vschild_build; $FINAL_SHELL"
-
-test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-base.setSuccess
+++ /dev/null
-# $Id: vserver-build.functions 2571 2007-07-29 16:55:06Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# Expected environment:
-# $VSERVER_NAME ... name of vserver
-
-ROOTDIR=
-ROOTDIR_REL=
-CACHEDIR=
-CACHEDIR_REL=
-VSERVERDIRNAME=
-
-VDIR=
-
-_DEV_FILE=
-_EXEC_DIR=
-
-BUILD_INITPRE=
-BUILD_INITPOST=
-
-__BASE_GENERATED_FILES=()
-__BASE_SUCCESS=
-
-function makeDevEntry
-{
- local dst=$1/$2
- case "$3" in
- (c|b) mknod -m$6 "$dst" $3 $4 $5;;
- (d) mkdir -p -m$4 "$dst";;
- (f) touch "$dst"
- chmod $4 "$dst"
- ;;
- (*) echo "Unknown dev-entry mode '$3'" >&2
- false
- ;;
- esac
-}
-
-function populateDev
-{
- local spec
-
- mkdir -p -m755 "$VDIR"/dev/pts
-
- while read spec; do
- makeDevEntry "$VDIR"/dev $spec
- done <$_DEV_FILE
-}
-
-function populateDirectory
-{
- local dst=$1
- local i
-
- shift
- for i; do
- local file=
-
- for file in "$i"/*; do
- isRegularFile "$file" || continue
-
- cp -a "$file" "$dst/"
- done
- done
-}
-
-function _setRootDir
-{
- test -z "$ROOTDIR" || return 0
-
- for item in "\"$__CONFDIR/.defaults/vdirbase\" 1" "$__DEFAULT_VSERVERDIR"; do
- eval set -- "$item"
- ROOTDIR=$1
- ROOTDIR_REL=$2
- test ! -d "$ROOTDIR" || break
- done
-
- test -d "$ROOTDIR" || {
- echo "Root-directory '$ROOTDIR' does not exist or is invalid" >&2
- exit 1
- }
-}
-
-function _setCacheDir
-{
- test -z "$CACHEDIR" || return 0
-
- for item in "\"$__CONFDIR/.defaults/cachebase\" 1" "$__PKGCACHEDIR"; do
- eval set -- "$item"
- CACHEDIR=$1
- CACHEDIR_REL=$2
- test ! -d "$CACHEDIR" || break
- done
-
- test -d "$CACHEDIR" || {
- echo "Cache-directory '$CACHEDIR' does not exist or is invalid" >&2
- exit 1
- }
-}
-
-function _setVserverDirName
-{
- test -z "$VSERVERDIRNAME" || return 0
- VSERVERDIRNAME="$VSERVER_NAME"
-}
-
-function _setVdir
-{
- VDIR="$ROOTDIR/$VSERVERDIRNAME"
-}
-
-function say
-{
- test -z "$OPTION_SILENT" || return 0
- echo "$@"
-}
-
-function _renameVserverCfg
-{
- local suffix=.~$(date +'%s')~
- local i
-
- for i in "$VDIR" "$SETUP_CONFDIR"; do
- test ! -e "$i" || isDirectoryEmpty "$i" || {
- mv "$i" "$i$suffix"
- say "Renamed '$i' to '$i$suffix'"
- }
- done
-}
-
-
-## Usage: getDistribution [<default>] [<ignore-config>]
-function getDistribution
-{
- local ignore_config=$2
-
- if test -z "$DISTRIBUTION"; then
- if test -e /etc/fedora-release; then
- set -- $(cat /etc/fedora-release)
- DISTRIBUTION=fdr$4
- elif test -e /etc/redhat-release; then
- set -- $(cat /etc/redhat-release)
- DISTRIBUTION=rh$5
- elif test -e /etc/debian_version; then
- set -- $(cat /etc/debian_version)
- DISTRIBUTION=deb$1
- elif test -e /etc/SuSE-release; then
- set -- $(cat /etc/SuSE-release)
- DISTRIBUTION=suse$3
- elif test -e /etc/gentoo-release; then
- set -- $(cat /etc/gentoo-release)
- DISTRIBUTION=gentoo$5
- elif test -e /etc/slackware-version; then
- set -- $(cat /etc/slackware-version)
- DISTRIBUTION=slackware$2
- elif test -n "$1"; then
- DISTRIBUTION=$1
- else
- colpanic $"\
-ERROR: Can not determine distribution; please specify it manually with
- the '-d' option."
- fi
- fi
-
- test -n "$ignore_config" -o \
- -d "$__CONFDIR/.distributions/$DISTRIBUTION" -o \
- -d "$__DISTRIBDIR/$DISTRIBUTION" ||
- colpanic $"\
-ERROR: Can not find configuration for the distribution '$DISTRIBUTION';
- please read http://linux-vserver.org/HowToRegisterNewDistributions
- for information how to add support for your own distribution."
-
- export DISTRIBUTION
-}
-
-function base._addGeneratedFile
-{
- __BASE_GENERATED_FILES=( "${__BASE_GENERATED_FILES[@]}" "$@" )
-}
-
-## Usage: initFilesystem [force]
-function base.initFilesystem
-{
- test -z "$1" || _renameVserverCfg
- { isDirectoryEmpty "$VDIR" && test ! -e "$SETUP_CONFDIR"; } || colpanic $"\
-vserver-topdirectory '$VDIR' and/or configuration at '$SETUP_CONFDIR'
-exist already; please try to use '--force', or remove them manually."
-
- mkdir -p -m755 "$VDIR"
- $_SETATTR --~barrier "$VDIR"
- base._addGeneratedFile "$VDIR"
-
- mkdir -p -m755 "$SETUP_CONFDIR"/apps "$VDIR"/etc
- base._addGeneratedFile "$SETUP_CONFDIR"
-
- ln -s "$VDIR" "$SETUP_CONFDIR/vdir"
- ln -s "$CACHEDIR/$VSERVERDIRNAME" "$SETUP_CONFDIR/cache"
-
- populateDev
-
- mkdir -p "$VDIR"/proc
- findAndCopy "$VDIR"/etc/hosts "$__CONFDIR"/.defaults/files/hosts "$__CONFDIR/.distributions/$DISTRIBUTION"/files/hosts \
- "$__DISTRIBDIR/$DISTRIBUTION"/files/hosts "$__DISTRIBDIR"/defaults/files/hosts ""
-
- for i in nsswitch.conf krb5.conf krb.conf krb.realms ldap.conf localtime resolv.conf; do
- findAndCopy "$VDIR"/etc/$i "$__CONFDIR/.defaults/files/$i" "$__CONFDIR/.distributions/$DISTRIBUTION/files/$i" ""
- done
-}
-
-function base._initVariables
-{
- _setRootDir
- _setCacheDir
- _setVserverDirName
- _setVdir
-
- findFile _DEV_FILE "$__CONFDIR/.distributions/$DISTRIBUTION/devs" "$__DISTRIBDIR/$DISTRIBUTION/devs" "$__DISTRIBDIR/defaults/devs"
- findDir _EXECDIR "$__CONFDIR/.distributions/$DISTRIBUTION/execdir" "$__DISTRIBDIR/$DISTRIBUTION/execdir" /
- findFile BUILD_INITPRE "$__CONFDIR/.distributions/$DISTRIBUTION/initpre" "$__DISTRIBDIR/$DISTRIBUTION/initpre" ""
- findFile BUILD_INITPOST "$__CONFDIR/.distributions/$DISTRIBUTION/initpost" "$__DISTRIBDIR/$DISTRIBUTION/initpost" ""
-}
-
-function base.__cleanup
-{
- test -z "$OPTION_KEEP" || return 0
- test -z "$__BASE_SUCCESS" || return 0
-
- rm -rf "${__BASE_GENERATED_FILES[@]}"
-}
-
-function base.init
-{
- test -z "$SETUP_CONTEXT" || ! $_VSERVER_INFO -q "$SETUP_CONTEXT" RUNNING || \
- panic $"\
-Context '$SETUP_CONTEXT' is already in use. Please select another one."
-
- trap "base.__cleanup" EXIT
- base._initVariables
-}
-
-function base.setSuccess
-{
- __BASE_SUCCESS=1
-}
+++ /dev/null
-# $Id: vserver-build.functions.apt 2030 2005-04-16 21:20:45Z ensc $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-function apt.installBasePackages
-{
- local name="$1"
- local dir="$2"
-
- test "$dir" != / || return 0
- for filelist in "$dir"/*; do
- isRegularFile "$filelist" || continue
- local idx=0
- local can_fail=false
- local flags=
-
- set -- $(<$filelist)
- while test "$#" -gt 0; do
- case "$1" in
- --reinstall) flags='--reinstall';;
- --can-fail) can_fail=true;;
- *) break;;
- esac
- shift
- done
- "$_VAPT_GET" "$name" -- install -y $flags $* || $can_fail
- done
-}
-
-function apt.initVariables
-{
- findFile APTCONFDEFAULT \
- "$__CONFDIR/.distributions/$DISTRIBUTION/apt.conf" \
- "$__CONFDIR/.defaults/apps/pkgmgmt/apt.conf" \
- "$__DISTRIBDIR/$DISTRIBUTION/apt.conf" \
- "$__DISTRIBDIR/defaults/apt.conf" \
- ''
-
- findFile APTVENDORDEFAULT \
- "$__CONFDIR/.distributions/$DISTRIBUTION/vendor.conf" \
- "$__CONFDIR/.defaults/apps/pkgmgmt/vendor.conf" \
- /etc/apt/vendors.list \
- "$__DISTRIBDIR/$DISTRIBUTION/vendor.conf" \
- "$__DISTRIBDIR/defaults/vendor.conf" \
- ''
-}
-
-function apt.initFilesystem
-{
- mkdir -p "$PKGCFGDIR"/apt/{etc/sources.list.d,etc/vendors.list.d,etc/apt.conf.d,archives/partial,cache,state/lists/partial}
-
- populateDirectory "$PKGCFGDIR/apt/etc" \
- "$__DISTRIBDIR/defaults/apt" \
- "$__DISTRIBDIR/$DISTRIBUTION/apt" \
- "$__CONFDIR/.distributions/$DISTRIBUTION/apt"
-
- local f="$PKGCFGDIR"/apt/etc/apt.conf
- if test -e "$f"; then
- $_SED -e "s!@APTETCDIR@!$PKGCFGDIR/apt/etc!g" "$f" >"$f.tmp"
- $_CMP -s "$f" "$f.tmp" || $_CAT "$f.tmp" >"$f"
- $_RM -f "$f.tmp"
- fi
-
- test -z "$APTCONFDEFAULT" || \
- $_LN_S "$APTCONFDEFAULT" "$PKGCFGDIR"/apt/etc/apt.conf.d/default.conf
-
- test -z "$APTVENDORDEFAULT" || \
- $_LN_S "$APTVENDORDEFAULT" "$PKGCFGDIR"/apt/etc/vendors.list.d/default.conf
-}
+++ /dev/null
-# $Id: vserver-build.functions.pkgmgmt 2110 2005-06-30 06:16:58Z ensc $ --*- sh -*--
-
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-PKGCFGBASE=
-PKGCFGBASE_REL=
-YUM_RELEASEPKGS=( {redhat,fedora}-release )
-
-function pkgmgmt._setPkgCfgBase
-{
- test -z "$PKGCFGBASE" || return 0
-
- for item in "\"$__CONFDIR/.defaults/apps/pkgmgmt/base\" 1" ${ROOTDIR:+"$ROOTDIR/.pkg"} "$__DEFAULT_VSERVERPKGDIR"; do
- eval set -- "$item"
- PKGCFGBASE=$1
- PKGCFGBASE_REL=$2
- test ! -d "$PKGCFGBASE" || break
- done
-
- test -d "$PKGCFGBASE" || {
- echo "pkgcfgbase-dir '$PKGCFGBASE' does not exist or is invalid" >&2
- exit 1
- }
-}
-
-function pkgmgmt._setPkgCfg
-{
- pkgmgmt._setPkgCfgBase
-
- test -z "$PKGCFGDIR" || return 0
- PKGCFGDIR="$PKGCFGBASE/$VSERVERDIRNAME"
-}
-
-function pkgmgmt._renameVserverPkgCfg
-{
- local suffix=.~$(date +'%s')~
- local i
-
- for i in "$PKGCFGDIR"; do
- test ! -e "$i" || {
- mv "$i" "$i$suffix"
- say "Renamed '$i' to '$i$suffix'"
- }
- done
-}
-
-function pkgmgmt.initFilesystem
-{
- test -z "$1" || pkgmgmt._renameVserverPkgCfg
- test ! -d "$PKGCFGDIR" || {
- echo $\
-"vserver pkgmgmt-directory exists already; please try to use
-'--force'; or remove it manually" >&2
- exit 1
- }
-
- mkdir -p "$PKGCFGDIR"
- base._addGeneratedFile "$PKGCFGDIR"
-
- mkdir -p "${SETUP_CONFDIR:?}"/apps/pkgmgmt
-
- test -z "$PKGCFGDIR" || {
- ln -s "$PKGCFGDIR" "$SETUP_CONFDIR/apps/pkgmgmt/base"
-
- test "$_EXECDIR" = / || ln -s "${_EXECDIR:?}" "$SETUP_CONFDIR/apps/pkgmgmt/execdir"
- }
-
-}
-
-function pkgmgmt.initVariables
-{
- pkgmgmt._setPkgCfg
- findDir PKGINSTALLDIR "$__CONFDIR/.distributions/$DISTRIBUTION/pkgs" "$__DISTRIBDIR/$DISTRIBUTION/pkgs" /
-}
+++ /dev/null
-# $Id: vserver-build.functions.rpm 2311 2006-09-13 22:18:55Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-RPMDB_PATH=
-RPMLIBDIR=
-
-function rpm.importGPGPubKeys
-{
- local dst=$1
- local pkgs
- declare -a pkgs
- local i
-
- shift
- for i; do
- local file=
- for file in "$i"/*; do
- isRegularFile "$file" || continue
-
- pkgs=( "${pkgs[@]}" "$file" )
- done
- done
-
- test -n "$pkgs" || return 0
- "$_VRPM" "$dst" -- --import "${pkgs[@]}"
-}
-
-function rpm.initVariables
-{
- test -n "$WORKAROUND_106057" && \
- RPMDB_PATH=/.rpmdb || \
- RPMDB_PATH=/dev
-
- findDir RPMLIBDIR "$__CONFDIR/.distributions/$DISTRIBUTION/rpmlib" "$__DISTRIBDIR/$DISTRIBUTION/rpmlib" /
-}
-
-function rpm.initFilesystem
-{
- test -z "$WORKAROUND_106057" || mkdir -p "$RPMDB_PATH"
- mkdir -p "$VDIR$RPMDB_PATH"
- mkdir -p "$VDIR/var/lock/rpm"
-
- test -z "$WORKAROUND_APT_DBPATH" || {
- mkdir -p "$VDIR/var/lib"
- ln -s "$RPMDB_PATH" "$VDIR/var/lib/rpm"
- }
-
- mkdir -p "$PKGCFGDIR"/rpm/{etc,state}
- populateDirectory "$PKGCFGDIR/rpm/etc" \
- "$__DISTRIBDIR/defaults/rpm" \
- "$__DISTRIBDIR/$DISTRIBUTION/rpm" \
- "$__CONFDIR/.distributions/$DISTRIBUTION/rpm"
-
- echo "%_dbpath $RPMDB_PATH" >>"$PKGCFGDIR/rpm/etc/macros"
-
- test "$RPMLIBDIR" = / || ln -s "$RPMLIB" "$SETUP_CONFDIR/apps/pkgmgmt/rpmlib"
-}
-
-function rpm.initDB
-{
- RPM_FLAVOR=d "$_VRPM" "$1" -- --initdb
-}
-
-
-
-## Usage: rpmlist.install <vserver> <basedir> <tmpfile> <listfile> <rpm-options>*
-function rpmlist.install()
-{
- local cfgdir=$1
- local basedir=$2
- local manifest=$3
- local listfile=$4
- shift 4
-
- while read; do
- case x"$REPLY" in
- (x|\#*) continue;;
- esac
-
- echo "$basedir/$REPLY"
- done >"$manifest" <"$listfile"
-
- test "$OPTION_DEBUG" -eq 0 || cat "$manifest"
- test ! -s "$manifest" || $_VRPM "$cfgdir" -- -U "$@" "$manifest"
-}
-
-
-## Usage: rpmlist.initByDistribution <result-var> <distribution>
-function rpmlist.initByDistribution()
-{
- local _rlid_listdir
- declare -a _rlid_res=()
-
-
- findDir _rlid_listdir "$__CONFDIR/.distributions/$2/rpmlist.d" \
- "$__DISTRIBDIR/$2/rpmlist.d" \
- ''
-
- test -d "$_rlid_listdir" || return 0
-
- local _rlid_lst
- for _rlid_lst in "$_rlid_listdir"/*.lst; do
- isRegularFile "$_rlid_lst" || continue
-
- local _rlid_opts=${_rlid_lst%%lst}cmd
- declare -a _rlid_tmp=()
-
- test ! -e "$_rlid_opts" || getFileArray _rlid_tmp "$_rlid_opts"
- _rlid_res=( "${_rlid_res[@]}" "${_rlid_tmp[@]}" "$_rlid_lst" )
- done
-
- eval "$1"='( "${_rlid_res[@]}" )'
-}
-
-
-## Usage: rpm.sanityCheck
-function rpm.sanityCheck
-{
- test -x "$BUILD_INITPRE" || colorize warn warning $"\
-WARNING: you are going to use an rpm-based installation method without
- having an 'initpre' script. Such a script is highly recommend to
- workaround bugs in rpm which can cause messages like
-
- | error: unpacking of archive failed on file /usr/bin/X11;42dd8791:
-
- Please read http://linux-vserver.org/HowToRegisterNewDistributions
- for information how to add support for your own distribution."
-}
+++ /dev/null
-# $Id: vserver-build.functions.yum 2030 2005-04-16 21:20:45Z ensc $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-function yum.installBasePackages
-{
- local name="$1"
- local dir="$2"
-
- test "$dir" != / || return 0
- for filelist in "$dir"/*; do
- isRegularFile "$filelist" || continue
- local idx=0
- local can_fail=false
- local flags=
-
- set -- $(<$filelist)
- while test "$#" -gt 0; do
- case "$1" in
- --reinstall) flags='';;
- --can-fail) can_fail=true;;
- *) break;;
- esac
- shift
- done
- "$_VYUM" "$name" -- -y install $flags $* || $can_fail
- done
-}
-
-function yum.initVariables
-{
- findDir YUMREPOSDEFAULT \
- "$__CONFDIR/.distributions/$DISTRIBUTION/yum.repos.d" \
- "$__DISTRIBDIR/$DISTRIBUTION/yum.repos.d" \
- ''
-}
-
-function yum.__substituteConf
-{
- local f=$1
- local prefix=$2
-
- if test -e "$f"; then
- $_SED -e "s!@YUMETCDIR@!$prefix$PKGCFGDIR/yum/etc!g;
- s!@YUMCACHEDIR@!$prefix$PKGCFGDIR/yum/cache!g;
- s!@YUMLOGDIR@!$prefix$PKGCFGDIR/yum!g;
- s!@YUMLOCKDIR@!$prefix$PKGCFGDIR/yum!g;
- " "$f" >"$f.tmp"
- $_CMP -s "$f" "$f.tmp" || $_CAT "$f.tmp" >"$f"
- $_RM -f "$f.tmp"
- fi
-}
-
-function yum.initFilesystem
-{
- mkdir -p "$PKGCFGDIR"/yum/{etc,cache}
-
- populateDirectory "$PKGCFGDIR/yum/etc" \
- "$__DISTRIBDIR/defaults/yum" \
- "$__DISTRIBDIR/$DISTRIBUTION/yum" \
- "$__CONFDIR/.distributions/$DISTRIBUTION/yum"
-
- ## workaround for yum's automatism to search the configuration in the chroot
-
- local f0="$PKGCFGDIR"/yum/etc/yum.conf
- local f1="$PKGCFGDIR"/yum/etc/yum-hack.conf
- cp -a "$f0" "$f1"
-
- yum.__substituteConf "$f0" 'hostfs://'
- yum.__substituteConf "$f1" '/../../../../../../../../../../../../'
-
- test -z "$YUMREPOSDEFAULT" -o -e "$PKGCFGDIR/yum/etc/yum.repos.d" || \
- $_LN_S "$YUMREPOSDEFAULT" "$PKGCFGDIR/yum/etc/yum.repos.d"
-}
+++ /dev/null
-# $Id: vserver-build.rpm 2263 2006-01-22 12:24:25Z ensc $ --*- sh -*--
-
-# Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-tmp=$(getopt -o +d:b:e --long debug,empty -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
-
-set -e
-
-
-BASEDIR=$(pwd)
-DISTRIBUTION=
-EMPTY=
-
-echo "$@"
-
-while true; do
- case "$1" in
- (-d) DISTRIBUTION=$2; shift;;
- (-b) BASEDIR=$2; shift;;
- (-e|--empty) EMPTY=1;;
- (--debug) set -x;;
- (--) shift; break ;;
- (*) echo "vserver-build.rpm: internal error: unrecognized option '$1'" >&2
- exit 1
- ;;
- esac
- shift
-done
-
-
-####### some basic initializations
-
-getDistribution "template"
-
-base.init
-pkgmgmt.initVariables
-rpm.initVariables
-
-if test -z "$EMPTY" -a "$#" -eq 0; then
- rpmlist.initByDistribution rpm_lists "$DISTRIBUTION"
- set -- "${rpm_lists[@]}"
-fi
-
-test -n "$EMPTY" -o "$#" -gt 0 || \
- panic $"\
-No rpm-lists specified and no list found for distribution '$DISTRIBUTION'.
-When this is really indented, please use the '--empty' option."
-
-rpm_dflt_opts=()
-test "$OPTION_DEBUG" -lt 2 || rpm_dflt_opts=( "${rpm_dflt_opts[@]}" -v )
-test "$OPTION_DEBUG" -lt 3 || rpm_dflt_opts=( "${rpm_dflt_opts[@]}" -v )
-test -n "$OPTION_SILENT" || rpm_dflt_opts=( "${rpm_dflt_opts[@]}" -vh )
-
-rpm.sanityCheck
-
-
-###### init the filesystem
-
-base.initFilesystem "$OPTION_FORCE"
-pkgmgmt.initFilesystem "$OPTION_FORCE"
-rpm.initFilesystem
-
-
-setup_writeOption "$VSERVER_NAME"
-setup_writeInitialFstab
-
-
-# when basedir is a non-local location, rpm will download it into the
-# current directory. Therefore, create and go into a temporay directory
-# before doing the operations.
-tmpdir=$($_MKTEMPDIR -p /var/tmp vserver-build.rpm.XXXXXX)
-manifest=$($_MKTEMP vserver-build.rpm.manifest.XXXXXX)
-trap "rm -rf $tmpdir $manifest" EXIT
-cd "$tmpdir"
-
-###### do the real work
-
-test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-rpm.initDB "$SETUP_CONFDIR"
-rpm.importGPGPubKeys "$SETUP_CONFDIR" \
- "$__CONFDIR/.distributions/$DISTRIBUTION/pubkeys" \
- "$__CONFDIR/.distributions/.common/pubkeys" \
- "$__DISTRIBDIR/$DISTRIBUTION/pubkeys"
-
-opts=()
-for i; do
- case "$i" in
- (--force|--nodeps) opts=( "${opts[@]}" "$i" ); continue;;
- esac
-
- rpmlist.install "$VSERVER_NAME" "$BASEDIR" "$manifest" "$i" "${rpm_dflt_opts[@]}" "${opts[@]}"
- opts=()
-done
-
-test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-base.setSuccess
+++ /dev/null
-# $Id: vserver-build.rsync 2398 2006-11-24 15:20:09Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-tmp=$(getopt -o '+d:s:o:' --long debug,pkgmgmt,source: -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
-
-DISTRIBUTION=:
-use_pkgmgmt=
-SOURCE=
-declare -a OPTS=()
-while true; do
- case "$1" in
- -d) DISTRIBUTION=$2; shift;;
- --debug) set -x;;
- --pkgmgmt) use_pkgmgmt=1;;
- -s|--source) SOURCE=$2; shift;;
- -o) OPTS=( "${OPTS[@]}" "$2" ); shift;;
- --) shift; break ;;
- *) echo "vserver-build.rsync: internal error: unrecognized option '$1'" >&2
- exit 1
- ;;
- esac
- shift
-done
-
-if test -z "$SOURCE"; then
- panic $"vserver-build.rsync: --source argument required"
-fi
-
-test -z "${OPTS[*]}" && OPTS=( -Hazx --numeric-ids )
-
-getDistribution '' 1
-
-base.init
-test -z "$use_pkgmgmt" || pkgmgmt.initVariables
-
-base.initFilesystem "$OPTION_FORCE"
-test -z "$use_pkgmgmt" || pkgmgmt.initFilesystem "$OPTION_FORCE"
-
-
-setup_writeOption "$VSERVER_NAME"
-setup_writeInitialFstab
-
-test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-$_RSYNC "${OPTS[@]}" "$SOURCE"/ "$VDIR"/
-test -z "$1" || "$@"
-
-test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-base.setSuccess
+++ /dev/null
-# $Id: vserver-build.skeleton 2200 2005-10-28 18:40:56Z ensc $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-tmp=$(getopt -o '+d:' --long debug,pkgmgmt -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
-
-DISTRIBUTION=:
-use_pkgmgmt=
-while true; do
- case "$1" in
- -d) DISTRIBUTION=$2; shift;;
- --debug) set -x;;
- --pkgmgmt) use_pkgmgmt=1;;
- --) shift; break ;;
- *) echo "vserver-build.skeleton: internal error: unrecognized option '$1'" >&2
- exit 1
- ;;
- esac
- shift
-done
-
-getDistribution '' 1
-
-base.init
-test -z "$use_pkgmgmt" || pkgmgmt.initVariables
-
-base.initFilesystem "$OPTION_FORCE"
-test -z "$use_pkgmgmt" || pkgmgmt.initFilesystem "$OPTION_FORCE"
-
-
-setup_writeOption "$VSERVER_NAME"
-setup_writeInitialFstab
-
-test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-test -z "$1" || "$@"
-test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-base.setSuccess
+++ /dev/null
-# $Id: vserver-build.template 2558 2007-07-10 20:34:48Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-tmp=$(getopt -o '+d:t:' --long debug,pkgmgmt,template:,nodevsanity -n "vserver-build.template" -- "$@") || exit 1
-eval set -- "$tmp"
-
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
-
-DISTRIBUTION=:
-use_pkgmgmt=
-no_dev_sanity=
-declare -a TEMPLATE=()
-while true; do
- case "$1" in
- -d) DISTRIBUTION=$2; shift;;
- --debug) set -x;;
- --pkgmgmt) use_pkgmgmt=1;;
- --nodevsanity) no_dev_sanity=1;;
- -t|--template)
- case "$2" in
- /*) f="$2";;
- *) f=`pwd`/"$2";;
- esac
- TEMPLATE=( "${TEMPLATE[@]}" "$f" )
- shift
- ;;
- --) shift; break ;;
- *) echo "vserver-build.template: internal error: unrecognized option '$1'" >&2
- exit 1
- ;;
- esac
- shift
-done
-
-getDistribution '' 1
-
-for d in "$__CONFDIR/.distributions/$DISTRIBUTION" \
- "$__DISTRIBDIR/$DISTRIBUTION"; do
- if test -r "$d/template"; then
- TEMPLATE=( "$d/template" "${TEMPLATE[@]}" )
- fi
-done
-
-base.init
-test -z "$use_pkgmgmt" || pkgmgmt.initVariables
-
-base.initFilesystem "$OPTION_FORCE"
-test -z "$use_pkgmgmt" || pkgmgmt.initFilesystem "$OPTION_FORCE"
-
-
-setup_writeOption "$VSERVER_NAME"
-setup_writeInitialFstab
-
-test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-pushd "$SETUP_CONFDIR/vdir" &> /dev/null
-for t in "${TEMPLATE[@]}"; do
- findFile DESC "$__CONFDIR/.defaults/apps/h2ext/desc" "$__PKGLIBDEFAULTDIR/h2ext.desc"
- pipe=$($_H2EXT -d "$DESC" -q "$t")
-
- if echo "$pipe" | grep -q "unknown format"; then
- echo "vserver-build.template: $t: Unknown format" >&2
- exit 1
- fi
-
- eval `echo $_CAT "\$t" '|' $pipe`
-done
-
-test -z "$no_dev_sanity" && {
- rm -rf dev/*
- populateDev
-}
-popd &> /dev/null
-
-test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-base.setSuccess
+++ /dev/null
-# $Id: vserver-build.yum 2576 2007-08-05 18:36:07Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-tmp=$(getopt -o +d: --long debug -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_YUM"
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
-
-while true; do
- case "$1" in
- (-d) DISTRIBUTION=$2; shift;;
- (--debug) set -x;;
- (--) shift; break ;;
- (*) echo "vserver-build.yum: internal error: unrecognized option '$1'" >&2
- exit 1
- ;;
- esac
- shift
-done
-
-getDistribution
-
-base.init
-pkgmgmt.initVariables
-rpm.initVariables
-yum.initVariables
-
-rpm.sanityCheck
-
-
-base.initFilesystem "$OPTION_FORCE"
-pkgmgmt.initFilesystem "$OPTION_FORCE"
-rpm.initFilesystem
-yum.initFilesystem
-
-setup_writeOption "$VSERVER_NAME"
-setup_writeInitialFstab
-
-test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-rpm.initDB "$SETUP_CONFDIR"
-rpm.importGPGPubKeys "$SETUP_CONFDIR" \
- "$__CONFDIR/.distributions/$DISTRIBUTION/pubkeys" \
- "$__CONFDIR/.distributions/.common/pubkeys" \
- "$__DISTRIBDIR/$DISTRIBUTION/pubkeys"
-yum.installBasePackages "$SETUP_CONFDIR" "$PKGINSTALLDIR"
-$_VYUM "$SETUP_CONFDIR" -- clean all
-test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
-
-base.setSuccess
+++ /dev/null
-#! /bin/bash
-
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-if test -e /etc/init.d/functions; then
- . /etc/init.d/functions
- _beginResult() { echo -n "$@..."; }
- _postResult() { echo; }
- lockfile=/var/lock/subsys/$LOCKFILE
-elif test -e /etc/gentoo-release; then
- . /sbin/functions.sh
- _beginResult() { ebegin "$@"; }
- _postResult() { :; }
- success() { eend 0; }
- passed() { eend 0; }
- failure() { eend 1; }
- lockfile=/var/lock/vservers/$LOCKFILE
-else
- _beginResult() { echo -n "$@..."; }
- _postResult() { :; }
- success() { echo .; }
- passed() { echo .; }
- failure() { echo ERROR; }
- lockfile=/var/run/$LOCKFILE
-fi
-
-function _endResult()
-{
- local rc=$1
- case "$rc" in
- (0) success;;
- (2) passed; rc=0;;
- (*) failure;;
- esac
- _postResult
- return $rc
-}
+++ /dev/null
-# $Id: vserver-setup.functions 2517 2007-03-18 22:02:22Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003,2004,2005,2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-SETUP_HOSTNAME=
-SETUP_NETDEV=
-SETUP_NETMASK=
-SETUP_NETPREFIX=
-SETUP_NETBCAST=
-SETUP_LOCKFILE=
-SETUP_CONFDIR=
-SETUP_CONTEXT=
-SETUP_INITSTYLE=
-SETUP_CPUSET=
-SETUP_CPUSETCPUS=
-SETUP_CPUSETMEMS=
-SETUP_CPUSETVIRT=
-
-declare -a SETUP_INTERFACES=()
-declare -a SETUP_FLAGS=()
-
-declare -r SETUP_OPTIONS="confdir:,lockfile:,hostname:,netdev:,netmask:,netprefix:,netbcast:,interface:,flags:,context:,initstyle:,cpuset:,cpusetcpus:,cpusetmems:,cpusetvirt"
-declare -r SETUP_HELPMSG=$"
- --context ... the static context of the vserver [default: none; one will
- be generated for you]
- --confdir ... [default: $__CONFDIR/<name>]
- --lockfile <filename>
- ... [default: $__RUNDIR/<name>]
- --hostname <hostname>
- --netdev <device>
- --netbcast <broadcast>
- --netmask <netmask>|--netprefix <prefixlen>
- ... sets the default netmask (a.b.c.d quadruple) or prefixlen
- (length of the interface)
- --interface [<name-suffix>=][<device>:]<ip>[/<mask|prefixlen>]
- ... declares an network-interface; this option can be specified
- multiple times
- --flags <flags>+
- ... sets comma-separated list of flags; possible flags are
- lock: Prevent the vserver from setting new security context
- sched: Merge scheduler priority of all processes in the
- vserver so that it acts a like a single
- one (kernel 2.4 only).
- nproc: Limit the number of processes in the vserver
- according to ulimit (instead of a per user limit,
- this becomes a per vserver limit)
- private: No other process can join this security context.
- Even root
- --cpuset <name>
- ... declares the CPUSET this vserver will run in [default: none]
- --cpusetcpus <number[-number][:<exclusive>]>
- ... sets which cpus belong to the CPUSET,
- exclusive is a flag (0|1) prohibiting any other cpuset from
- using those cpus
- --cpusetmems <number[-number][:<exclusive>]>
- ... sets which memory pools belong to the CPUSET,
- exclusive is a flag (0|1) prohibiting any other cpuset from
- using those memory pools
- --cpusetvirt
- ... virtualize cpuset (guest will see only CPUs defined in cpuset)
- Requires kernel patch from http://www.bullopensource.org/cpuset/
- --initstyle <style>
- ... configures the initstyle (e.g. minit,sysv,plain)
-"
-
-function setup_setOption2
-{
- case "$1" in
- (--context) SETUP_CONTEXT=$2;;
- (--confdir) SETUP_CONFDIR=$2;;
- (--lockfile) SETUP_LOCKFILE=$2;;
- (--hostname) SETUP_HOSTNAME=$2;;
- (--netdev) SETUP_NETDEV=$2;;
- (--netmask) SETUP_NETMASK=$2;;
- (--netprefix) SETUP_NETPREFIX=$2;;
- (--netbcast) SETUP_NETBCAST=$2;;
- (--interface) SETUP_INTERFACES=( "${SETUP_INTERFACES[@]}" "$2" );;
- (--initstyle) SETUP_INITSTYLE=$2;;
- (--cpuset) SETUP_CPUSET=$2;;
- (--cpusetcpus) old_IFS=$IFS
- IFS=:
- set -- $2
- SETUP_CPUSETCPUS=$1
- SETUP_CPUSETCPUSEXCL=$2
- IFS=$old_IFS
- ;;
- (--cpusetmems) old_IFS=$IFS
- IFS=:
- set -- $2
- SETUP_CPUSETMEMS=$1
- SETUP_CPUSETMEMSEXCL=$2
- IFS=$old_IFS
- ;;
- (--cpusetvirt) SETUP_CPUSETVIRT=1;;
- (--flags) old_IFS=$IFS
- IFS=,
- set -- $2
- SETUP_FLAGS=( "${SETUP_FLAGS[@]}" "$@" )
- IFS=$old_IFS
- ;;
- (*) return 1;;
- esac
-
- return 0
-}
-
-function _setup_writeSingleOption
-{
- test -z "$1" || echo "$1" >"$2"
-}
-
-function _setup_writeInterface
-{
- local vdir=$1
- local idx=$2
- local tmp=$3
-
- local name=${tmp%%=*}
- test "$name" != "$tmp" || name=
-
- tmp=${tmp##${name}=}
- local dev=${tmp%%:*}
- local nodev=
- test "$dev" != "$tmp" || dev=
-
- tmp=${tmp##${dev}:}
- test "$dev" != "nodev" || {
- dev=
- nodev=1
- }
- local mask=${tmp##*/}
- test "$mask" != "$tmp" || mask=
-
- local ip=${tmp%%/${mask}}
-
- local prefix=
- test "${mask%%.*}" != "$mask" || {
- prefix=$mask
- mask=
- }
-
- d=$vdir/interfaces/$idx
- mkdir "$d"
-
- _setup_writeSingleOption "$name" $d/name
- _setup_writeSingleOption "$dev" $d/dev
- _setup_writeSingleOption "$ip" $d/ip
- _setup_writeSingleOption "$mask" $d/mask
- _setup_writeSingleOption "$prefix" $d/prefix
-
- test -n "$dev" -o -n "$SETUP_NETDEV" || {
- test -n "$nodev" || \
- echo $"No device specified for interface '$idx'; setting 'nodev'" >&2
- $_TOUCH $d/nodev
- }
-}
-
-function setup_setDefaults
-{
- : ${SETUP_CONFDIR:=$__CONFDIR/$1}
- : ${SETUP_LOCKFILE:=$__RUNDIR/$1}
- findFile SETUP_FSTAB "$__CONFDIR"/.defaults/fstab "$__PKGLIBDEFAULTDIR"/fstab
-}
-
-function _setup_generateContext
-{
- if test -z "$SETUP_CONTEXT" && test ! -e "$__CONFDIR/.defaults/context.dynamic"; then
- if test -e "$__CONFDIR/.defaults/context.next"; then
- SETUP_CONTEXT=`$_CAT "$__CONFDIR/.defaults/context.next"`
- else
- SETUP_CONTEXT=`$_CAT "$__PKGLIBDEFAULTDIR/context.start"`
- fi
- expr "$SETUP_CONTEXT" + 1 > "$__CONFDIR/.defaults/context.next"
- fi
-}
-
-function setup_writeOption
-{
- local name=$1
- local cfgdir=${SETUP_CONFDIR:?}
- local i
-
- mkdir -p "$cfgdir"/interfaces "$cfgdir"/apps/init "$cfgdir"/uts "$cfgdir"/cpuset
-
- _setup_generateContext
-
- _setup_writeSingleOption "$name" "$cfgdir"/name
- _setup_writeSingleOption "$SETUP_CONTEXT" "$cfgdir"/context
- _setup_writeSingleOption "$SETUP_HOSTNAME" "$cfgdir"/uts/nodename
- _setup_writeSingleOption "$SETUP_NETDEV" "$cfgdir"/interfaces/dev
- _setup_writeSingleOption "$SETUP_NETMASK" "$cfgdir"/interfaces/mask
- _setup_writeSingleOption "$SETUP_NETPREFIX" "$cfgdir"/interfaces/prefix
- _setup_writeSingleOption "$SETUP_NETBCAST" "$cfgdir"/interfaces/bcast
- _setup_writeSingleOption "$SETUP_INITSTYLE" "$cfgdir"/apps/init/style
- _setup_writeSingleOption "$SETUP_CPUSET" "$cfgdir"/cpuset/name
- _setup_writeSingleOption "$SETUP_CPUSETCPUS" "$cfgdir"/cpuset/cpus
- _setup_writeSingleOption "$SETUP_CPUSETCPUSEXCL" "$cfgdir"/cpuset/cpus_exclusive
- _setup_writeSingleOption "$SETUP_CPUSETMEMS" "$cfgdir"/cpuset/mems
- _setup_writeSingleOption "$SETUP_CPUSETMEMSEXCL" "$cfgdir"/cpuset/mem_exclusive
- _setup_writeSingleOption "$SETUP_CPUSETVIRT" "$cfgdir"/cpuset/virtualized
-
- local idx=0
- for i in "${SETUP_INTERFACES[@]}"; do
- _setup_writeInterface "$cfgdir" $idx "$i"
- let ++idx
- done
-
- test -z "$SETUP_FLAGS" || for i in "${SETUP_FLAGS[@]}"; do
- echo "$i"
- done >"$cfgdir"/flags
-
- ln -s "$SETUP_LOCKFILE" "$cfgdir"/run
-}
-
-function setup_writeInitialFstab
-{
- cat "${SETUP_FSTAB:?}" >"${SETUP_CONFDIR:?}"/fstab
-}
-
-function setup_test
-{
- SETUP_INTERFACES=()
-
- setup_setOption2 --interface foo0=eth0:1.2.3.4/1
- setup_setOption2 --interface foo1=eth0:1.2.3.4/255.255.248.0
- setup_setOption2 --interface foo2=eth0:1.2.3.4
- setup_setOption2 --interface foo3=1.2.3.4
- setup_setOption2 --interface foo4=1.2.3.4/1
- setup_setOption2 --interface eth0:1.2.3.4
- setup_setOption2 --interface eth0:1.2.3.4/1
- setup_setOption2 --interface 1.2.3.4
- setup_setOption2 --interface 1.2.3.4/1
-
- setup_writeOption xx
-}
+++ /dev/null
-#! /bin/bash
-
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-test -n "$MARK" || MARK=default
-: ${LOCKFILE:=vservers-$MARK}
-: ${NUMPARALLEL:=6}
-
-. "$_LIB_VSERVER_INIT_FUNCTIONS"
-
-function start()
-{
- _beginResult $"Starting vservers of type '$MARK'"
- $_START_VSERVERS -m "$MARK" -j "$NUMPARALLEL" --all --start
- _endResult $?
- local rc=$?
- test "$rc" -ne 0 || touch "$lockfile"
- return $rc
-}
-
-function stop()
-{
- _beginResult $"Stopping vservers of type '$MARK'"
- $_START_VSERVERS -m "$MARK" -j "$NUMPARALLEL" --all --stop
- _endResult $?
- local rc=$?
- $_RM -f "$lockfile"
- return $rc
-}
-
-function restart()
-{
- stop
- start
-}
-
-case "$1" in
- start|stop|restart) $1;;
- condrestart)
- test -f $lockfile && restart || :
- ;;
- status)
- test -f $lockfile && {
- echo $"vservers of type '$MARK' were started"
- exit 0
- }
- echo $"vservers of type '$MARK' are not started"
- exit 1
- ;;
- *)
- echo "Usage: $0 {start|stop|restart|condrestart|status}"
- exit 2
- ;;
-esac
+++ /dev/null
-#!/bin/bash
-#
-# $Id$
-# Copyright (C) 2007 The Trustees of Princeton University
-#
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-if test "$#" -ne 1; then
- echo $"Usage: $0 <guest>" >&2
- exit 1
-fi
-
-NAME="$1"
-if ! test -r "$__CONFDIR/$NAME.conf" -a -d "$__DEFAULT_VSERVERDIR/$NAME"; then
- echo $"$NAME does not exist." >&2
- exit 1
-fi
-
-. "$__CONFDIR/$NAME.conf"
-
-set -e
-
-# build configuration directory
-vuseradd "$NAME"
-
-# copy old settings
-function copy()
-{
- test -z "$1" && return 0
- echo "$1" > "$__CONFDIR/$NAME/$2"
-}
-
-copy "$VS_WHITELISTED" whitelisted
-copy "$VS_DISK_MAX" dlimits/0/space_total
-if test -n "$CPUSHARE" -a -z "$CPULIMIT"; then
- CPULIMIT="$CPUSHARE"
-fi
-
-copy "$CPULIMIT" sched/fill-rate2
-if test "$CPUGUARANTEED" -eq 1; then
- copy "$CPULIMIT" sched/fill-rate
-fi
-
-copy "$TASKLIMIT" rlimits/nproc.hard
-copy "$MEMLIMIT" rlimits/rss.hard
-for l in CPU RSS NPROC NOFILE MEMLOCK AS LOCKS SIGPENDING MSGQUEUE NSOCK OPENFD ANON SHMEM; do
- for i in HARD SOFT MINIMUM; do
- eval copy \"\$VS_${l}_${i}\" \"rlimits/`echo "${l}.${i}" | tr [A-Z] [a-z] | sed 's/minimum$/min/'`\"
- done
-done
-
-copy "$S_CAPS" bcapabilities
-
-exit 0
+++ /dev/null
-#! /bin/bash
-# $Id: vserver.delete 2577 2007-08-05 18:36:56Z dhozac $
-
-# Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-. "$_LIB_VSERVER_BUILD_FUNCTIONS"
-. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
-
-if test -z "$OPTION_SILENT" ; then
- read -p "Are you sure you want to delete the vserver $vserver (y/N) " deleteok
- if [[ ${deleteok} != [Yy] ]]; then
- exit 2
- fi
-fi
-
-isVserverRunning "$VSERVER_DIR" &&
- "${SELF[@]}" $OPTION_SILENT --sync "$vserver" stop
-
-base.init
-pkgmgmt.initVariables
-$_RM -rf "`$_VSERVER_INFO "$vserver" VDIR 1`" "$VSERVER_DIR" "$PKGCFGDIR" \
- "`$_READLINK "$VSERVER_DIR/cache"`"
+++ /dev/null
-# $Id: vserver.functions 2599 2007-08-26 21:30:50Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-## Expected env:
-# $VSERVER_DIR ... path to vserver-cfg dir
-# $VSERVER_NAME ... name of vserver
-
-declare -a NICE_CMD=()
-declare -a CHBIND_CMD=()
-declare -a CAP_OPTS=()
-declare -a CHCONTEXT_INIT_OPTS=()
-declare -a CHCONTEXT_FLAG_OPTS=()
-declare -a CHCONTEXT_OPTS=()
-declare -a CAPCHROOT_OPTS=()
-declare -a INTERFACES=()
-
-declare -a INITCMD_RESCUE=( /bin/sleep 900 )
-declare -a INITCMD_START=()
-declare -a INITCMD_START_SYNC=()
-declare -a INITCMD_STOP=()
-declare -a INITCMD_STOP_SYNC=()
-declare -a INITCMD_PREPARE=()
-declare -a INITKILL_SEQ=()
-declare -a ENTER_SHELL=()
-
-declare -a OPTS_VCONTEXT_CREATE=()
-declare -a OPTS_VCONTEXT_MIGRATE=()
-declare -a OPTS_VCONTEXT_ENTER=()
-declare -a OPTS_VATTRIBUTE=( --flag fakeinit )
-declare -a OPTS_VSCHED=()
-declare -a OPTS_ENV=()
-declare -a OPTS_VTAG_CREATE=()
-declare -a OPTS_VTAG_ENTER=()
-
-declare -a STOPCMD_PREPARE=()
-
-declare -a VSERVER_EXTRA_CMDS=()
-
-INIT_RESCUE=
-VSHELPER_SYNC_TIMEOUT=30
-USE_VNAMESPACE=
-INTERFACE_CMDS_IDX=0
-RUNLEVEL_START=
-RUNLEVEL_STOP=
-_HAVE_INTERFACE_OPTIONS=
-_HAVE_CHBIND_OPTIONS=
-_NEED_VSHELPER_SYNC=
-_IS_FAKEINIT=
-
-INITSTYLE=sysv
-
-S_CONTEXT=
-
-SILENT_OPT=
-
-: ${VSERVER_NAME:=$(basename "$VSERVER_DIR")}
-
-if test -e "$VSERVER_DIR"/noisy -o -n "$OPTION_VERBOSE"; then
- SILENT_OPT=
-else
- SILENT_OPT='--silent'
-fi
-
-function _readFileToArray
-{
- local _rfta_f="$1"
- local _rfta_a="$2"
- local _rfta_p="$3"
- local _rfta_v
-
- test -e "$_rfta_f" || return 0
- while read _rfta_v; do
- case x"$_rfta_v" in
- (x|x\#*) ;;
- (*) eval "$_rfta_a=( \"\${$_rfta_a[@]}\" $_rfta_p \"$_rfta_v\" )";;
- esac
- done <"$_rfta_f"
-}
-
-function _generateChbindOptions
-{
- local vdir="$1"
- local i
- local bcast=
- local lback=
- local nid=
-
- test -n "$_HAVE_INTERFACE_OPTIONS" || _generateInterfaceOptions "$vdir"
-
- local f="$vdir"/interfaces/bcast
- getFileValue bcast "$f"
- f="$vdir"/interfaces/lback
- getFileValue lback "$f"
-
- getFileValue nid "$vdir/ncontext" "$vdir/context"
-
- CHBIND_CMD=( $_CHBIND $SILENT_OPT --secure ${nid:+--nid "$nid"}
- ${bcast:+--bcast "$bcast"} ${lback:+--lback "$lback"}
- )
-
- for i in "${INTERFACES[@]}"; do
- CHBIND_CMD=( "${CHBIND_CMD[@]}" --ip "$i" )
- done
-
- _readFileToArray "$vdir"/nflags CHBIND_CMD --flag
- _readFileToArray "$vdir"/ncapabilities CHBIND_CMD --ncap
-
- _HAVE_CHBIND_OPTIONS=1
-}
-
-function _generateNiceCommand
-{
- local vdir=$1
- local nice=0
- local current_nice=`$_NICE`
-
- test -r "$vdir/nice" && read nice <"$vdir"/nice
-
- let nice=$nice-$current_nice || :
- NICE_CMD=( $_NICE -n $nice )
-}
-
-
-function _generatePersonalityOptions
-{
- local vdir="$1"
- local f="$vdir"/personality
- local type flags
-
- test -s "$f" || return 0
-
- {
- local delim tmp
-
- read type
- while read tmp; do
- case x$tmp in
- (x\#*|x) ;;
- (*) flags=$flags$delim$tmp
- delim=,
- ;;
- esac
- done
- } <"$f"
-
- OPTS_VCONTEXT_ENTER=( "${OPTS_VCONTEXT_ENTER[@]}"
- --personality-type "$type"
- ${flags:+--personality-flags "$flags"} )
-}
-
-function _generateCCapabilityOptions
-{
- local vdir=$1
-
- _readFileToArray "$vdir"/ccapabilities OPTS_VATTRIBUTE --ccap
-}
-
-function _generateBCapabilityOptions
-{
- local vdir=$1
-
- _readFileToArray "$vdir"/bcapabilities OPTS_VATTRIBUTE --bcap
-}
-
-function _generateCapabilityOptions
-{
- local vdir=$1
- local cap
-
- _generateBCapabilityOptions "$vdir"
- _generateCCapabilityOptions "$vdir"
-
- test -e "$vdir"/capabilities || return 0
-
- CAP_OPTS=()
- CAPCHROOT_OPTS=()
-
- while read cap; do
- case x"$cap" in
- (x|x\#*) ;;
- (!CAP_SYSCHROOT)
- CAP_OPTS=( "${CAP_OPTS[@]}" --cap "$cap" )
- CAPCHROOT_OPTS=( "${CAPCHROOT_OPTS[@]}" --nochroot )
- ;;
- (*)
- CAP_OPTS=( "${CAP_OPTS[@]}" --cap "$cap" )
- ;;
- esac
- done <"$vdir"/capabilities
-}
-
-function getEnterShell
-{
- local vdir=$1
- local shell_file
-
- ENTER_SHELL=()
-
- getFileValue ENTER_SHELL "$vdir"/shell "$__CONFDIR"/.defaults/shell
-
- test -n "$ENTER_SHELL" || {
- local i
- for i in "/bin/bash -login" "/bin/sh -l" /bin/csh; do
- set -- $i
- test -x "$vdir/vdir/$1" || continue
- ENTER_SHELL=( "$@" )
- break
- done
- }
-}
-
-## Usage: sendKillSequence <ctx> <signal> [<wait> <signal>]*
-function sendKillSequence
-{
- local ctx=$1
- local wait=
- shift
-
- while isCtxRunning "$ctx"; do
- test -z "$wait" || sleep "$wait"
-
- killContext "$ctx" "$1"
- test -n "$2" || break
- wait="$2"
- shift 2
- done
-}
-
-function _generateInitOptions
-{
- local vdir=$1
- local cfgdir=$vdir/apps/init
- local i f
-
- INITCMD_START=()
- INITCMD_STOP=()
- INITCMD_START_SYNC=()
- INITCMD_STOP_SYNC=()
- INITCMD_PREPARE=()
- STOPCMD_PREPARE=()
-
- INITKILL_SEQ=( 15 5 9 )
- CHCONTEXT_INIT_OPTS=()
-
-
- test x"$INITSTYLE" = xrescue || \
- getFileValue INITSTYLE "$cfgdir"/style
- getFileValue RUNLEVEL_START "$cfgdir"/runlevel
- getFileValue RUNLEVEL_START "$cfgdir"/runlevel.start
- getFileValue RUNLEVEL_STOP "$cfgdir"/runlevel.stop
- getFileArray INITKILL_SEQ "$cfgdir"/killseq || :
-
- findFile _gio_env "$cfgdir"/environment \
- "$__CONFDIR"/.defaults/apps/init/environment \
- "$__PKGLIBDEFAULTDIR"/environment
- getFileArray OPTS_ENV "$_gio_env" || :
-
- case x"$INITSTYLE" in
- (xrescue)
- INITCMD_START=( "${INITCMD_RESCUE[@]}" )
- INITCMD_STOP=( /sbin/killall5 )
- ;;
-
- (xsysv)
- test -n "$RUNLEVEL_START" || RUNLEVEL_START=3
- test -n "$RUNLEVEL_STOP" || RUNLEVEL_STOP=6
-
- for i in /etc/init.d/rc /etc/rc.d/rc; do
- test -x "$vdir/vdir/$i" || continue
- INITCMD_START=( "$i" "$RUNLEVEL_START" )
- INITCMD_STOP=( "$i" "$RUNLEVEL_STOP" )
- done
- INITCMD_PREPARE=( $_FAKE_RUNLEVEL "$RUNLEVEL_START" /var/run/utmp )
- OPTS_ENV=( "${OPTS_ENV[@]}" PREVLEVEL=N RUNLEVEL="$RUNLEVEL_START" )
- if test -n "$OPTION_DEBUG_SYSV"; then
- INITCMD_START=( /bin/bash -x "${INITCMD_START[@]}" )
- INITCMD_STOP=( /bin/bash -x "${INITCMD_STOP[@]}" )
- fi
- ;;
-
- (xplain)
- INITCMD_START=( /sbin/init )
- INITCMD_STOP=( /sbin/init )
- _IS_FAKEINIT=1
- _NEED_VSHELPER_SYNC=1
- test -z "$RUNLEVEL_START" || INITCMD_START=( "${INITCMD_START[@]}" "$RUNLEVEL_START" )
- test -z "$RUNLEVEL_STOP" || INITCMD_STOP=( "${INITCMD_STOP[@]}" "$RUNLEVEL_STOP" )
- ;;
-
- (xminit)
- INITCMD_START=( /sbin/minit-start )
- INITCMD_STOP=( /sbin/minit-stop )
- _IS_FAKEINIT=1
- INITCMD_START_SYNC=( "$_INITSYNC_MINIT_START" "$vdir" )
- _NEED_VSHELPER_SYNC=1
- test -z "$RUNLEVEL_START" || INITCMD_START=( "${INITCMD_START[@]}" "$RUNLEVEL_START" )
- test -z "$RUNLEVEL_STOP" || INITCMD_STOP=( "${INITCMD_STOP[@]}" "$RUNLEVEL_STOP" )
- ! isNumber "${RUNLEVEL_START:-3}" || INITCMD_PREPARE=( $_FAKE_RUNLEVEL "${RUNLEVEL_START:-3}" /var/run/utmp )
- ;;
-
- (xgentoo)
- test -n "$RUNLEVEL_START" || RUNLEVEL_START="default"
-
- INITCMD_START=( env TERM=$TERM /lib/rcscripts/sh/init-vserver.sh "$RUNLEVEL_START" )
- INITCMD_STOP=( env -i TERM=$TERM RUNLEVEL=0 /sbin/rc shutdown )
- INITCMD_PREPARE=( $_FAKE_RUNLEVEL 3 /var/run/utmp )
- ;;
-
- (x) ;;
- (*) panic "Unknown init-style '$INITSTYLE'; aborting";;
- esac
-
- if test x"$INITSTYLE" != xrescue; then
- getFileArray INITCMD_START "$cfgdir"/cmd.start || :
- getFileArray INITCMD_STOP "$cfgdir"/cmd.stop || :
- getFileArray INITCMD_START_SYNC "$cfgdir"/cmd.start-sync || :
- getFileArray INITCMD_STOP_SYNC "$cfgdir"/cmd.stop-sync || :
- getFileArray INITCMD_PREPARE "$cfgdir"/cmd.prepare || :
- fi
-
- test -n "$OPTION_FORCE_SYNC" -o -e "$cfgdir"/sync || {
- INITCMD_START_SYNC=()
- INITCMD_STOP_SYNC=()
- _NEED_VSHELPER_SYNC=
- }
-
- if vshelper.isEnabled; then
- vshelper.getSyncTimeout "$vdir" VSHELPER_SYNC_TIMEOUT || :
- else
- _NEED_VSHELPER_SYNC=
- fi
-}
-
-function _generateFlagOptions
-{
- local vdir=$1
-
- CHCONTEXT_FLAG_OPTS=()
-
- test ! -e "$vdir"/flags || \
- while read flag; do
- case x"$flag" in
- (x|x\#*) ;;
- (xnamespace) ;;
- (xfakeinit)
- _IS_FAKEINIT=1
- ;;
- (*)
- OPTS_VATTRIBUTE=( "${OPTS_VATTRIBUTE[@]}" --flag "$flag" )
- CHCONTEXT_FLAG_OPTS=( "${CHCONTEXT_FLAG_OPTS[@]}"
- --flag "$flag" )
- ;;
- esac
- done <"$vdir"/flags
-
- isAvoidNamespace "$vdir" || {
- USE_VNAMESPACE=1
- CHCONTEXT_FLAG_OPTS=( "${CHCONTEXT_FLAG_OPTS[@]}" --flag namespace )
- }
-}
-
-function _generateChcontextOptions
-{
- local vdir=$1
- local ctx hostname domainname
- local cap_opts
- local flag
-
- {
- read ctx <"$vdir"/context || :
- ## LEGACY ALERT
- read hostname <"$vdir"/uts/nodename || read hostname <"$vdir"/hostname || :
- read domainname <"$vdir"/uts/domainname || read domainname <"$vdir"/domainname || :
- } 2>/dev/null
-
- test -z "$S_CONTEXT" || ctx=$S_CONTEXT
-
- _generateCapabilityOptions "$vdir"
- _generateFlagOptions "$vdir"
-
- CHCONTEXT_OPTS=( $SILENT_OPT \
- "${CHCONTEXT_FLAG_OPTS[@]}" \
- "${CAP_OPTS[@]}" \
- --secure
- ${ctx:+--ctx "$ctx"} \
- ${hostname:+--hostname "$hostname"} \
- ${domainname:+--domainname "$domainname"} )
-
- OPTS_VCONTEXT_CREATE=( $SILENT_OPT \
- ${ctx:+--xid "$ctx"} )
- ## put '--secure' at front so that it can be overridden
- OPTS_VATTRIBUTE=( --secure --flag default "${OPTS_VATTRIBUTE[@]}" )
-}
-
-function _generateScheduleOptions
-{
- local vdir=$1
- if test -d "$vdir"/sched; then
- OPTS_VSCHED=( --dir "$vdir"/sched --missingok )
- return 0
- fi
-
- local f="$vdir"/schedule
- test -e "$f" || return 0
-
- local fill_rate interval tokens tokens_min tokens_max prio_bias
- {
- {
- read fill_rate && \
- read interval && \
- read tokens && \
- read tokens_min && \
- read tokens_max && \
- read prio_bias || prio_bias=
- } <"$f"
- } 2>/dev/null
-
- test -n "$prio_bias" || {
- echo $"Bad content in '$f'; aborting..." >&2
- false
- }
-
- OPTS_VSCHED=( --fill-rate "$fill_rate" --interval "$interval" \
- --tokens "$tokens" --tokens_min "$tokens_min" \
- --tokens_max "$tokens_max" --priority-bias "$prio_bias" )
-}
-
-function _getInterfaceValue
-{
- local _giv_val=$1
- local _giv_dflt=$2
- shift 2
-
- local _giv_i
- local _giv_tmp
-
- for _giv_i; do
- read _giv_tmp <"$_giv_i/$_giv_val" && break || :
- done 2>/dev/null
-
- : ${_giv_tmp:=$_giv_dflt}
- eval $_giv_val=\$_giv_tmp
-}
-
-## Usage: _transformMask2Prefix <result-varname> <prefix> <mask>
-function _transformMask2Prefix
-{
- local _tm2p_tmp=$2
-
- test -n "$_tm2p_tmp" || {
- $_MASK2PREFIX "$3" || _tm2p_tmp=$?
- }
-
- eval $1=\$_tm2p_tmp
- return 0
-}
-
-function _addInterfaceCmd
-{
- eval INTERFACE_CMDS_${INTERFACE_CMDS_IDX}='( "$@" )'
- let ++INTERFACE_CMDS_IDX
-}
-
-## Usage: _generateMac <var> <iface> <ctx>
-function _generateMac
-{
- isNumber "$2" || {
- echo $"Interface basename '$iface' must be either a number, or the mac must be configured explicitly" >&2
- return 1
- }
-
- eval $1=$(printf "f0:ff:%02x:%02x:%02x:%02x" $[ (~($2>>8)) & 0xff ] $[ ($2 & 0xff) ] $[ ($3>>8) & 0xff ] $[ $3 & 0xff ])
-}
-
-function _getVLANInfo
-{
- case "$1" in
- (vlan????)
- panic "\
-creation of VLAN_PLUS_VID devices is not supported; please create them
-before starting the vserver and use the 'nodev' flag then"
- echo "$1 vlan ${1##vlan} VLAN_PLUS_VID"
- ;;
- (vlan*)
- panic "\
-creation of VLAN_PLUS_VID_NO_PAD devices is not supported; please
-create them before starting the vserver and use the 'nodev' flag then"
- echo "$1 vlan ${1##vlan} VLAN_PLUS_VID_N0_PAD"
- ;;
- (*.????) echo "$1 ${1%%.*} ${1##*.} DEV_PLUS_VID";;
- (*.*) echo "$1 ${1%%.*} ${1##*.} DEV_PLUS_VID_NO_PAD";;
- (*) return 1
- esac
-
- return 0
-}
-
-## Usage: _processSingleInterface <interface-directory>
-function _processSingleInterface
-{
- local iface=$1
-
- local ip
- local dev
- local prefix
- local mask
- local bcast
- local name
- local scope
- local mac
- local extip
- local up="up"
-
- _getInterfaceValue ip '' "$iface"
- _getInterfaceValue extip '' "$iface" "$iface/.."
- _getInterfaceValue dev '' "$iface" "$iface/.."
- _getInterfaceValue prefix '' "$iface" "$iface/.."
- _getInterfaceValue mask '' "$iface" "$iface/.."
- _getInterfaceValue bcast '' "$iface" "$iface/.."
- _getInterfaceValue name '' "$iface"
- _getInterfaceValue scope '' "$iface" "$iface/.."
- _getInterfaceValue mac '' "$iface"
-
- test -n "$ip" || { echo $"Can not read ip for '$iface'" >&2; return 1; }
- test -n "$dev" -o -e "$iface"/nodev || {
- echo $"No device specified for '$iface'" >&2
- return 1;
- }
-
- test ! -e "$iface"/down || up=
-
- while true; do
- _transformMask2Prefix prefix "$prefix" "$mask"
- INTERFACES=( "${INTERFACES[@]}" "$ip${prefix:+/$prefix}" )
-
- test ! -e "$iface"/nodev || break
- ## LEGACY ALERT
- test ! -e "$iface"/only_ip || break
-
- test -e "$iface/vlandev" \
- -o \( -e "$iface/../vlandev" -a ! -e "$iface/novlandev" \) \
- -o \( -e "$__CONFDIR/.defaults/interfaces/vlandev" \
- -a ! -e "$iface/novlandev" \
- -a ! -e "$iface/../novlandev" \) && {
- local vlan_info
- if vlan_info=$(_getVLANInfo "$dev"); then
- test -d /proc/net/vlan || {
- echo -e $"VLAN device-name used, but vlan subsystem not enabled.\nTry to execute 'modprobe 8021q' before starting the vservers" >&2
- return 1
- }
- _addInterfaceCmd VCONFIG $vlan_info
- fi
- }
-
- if ! test -e "$iface"/indirect; then
- # XXX: IPv6 hack
- use_bcast="broadcast ${bcast:-+}"
- echo "$ip" | $_GREP -q : && use_bcast=
- _addInterfaceCmd IP_ADDR "$ip${prefix:+/$prefix}" $use_bcast ${name:+label "$dev:$name"} dev "$dev"
- #_addInterfaceCmd IP_ROUTE "$ip${prefix:+/$prefix}" dev "$dev"
- _addInterfaceCmd IP_LINK "$dev" $up
- elif ! test -n "$ctx"; then
- echo $"Using 'dummy' (indirect) for interface '$dev' requires a fixed context number; dynamic ctx are not supported" >&2
- return 1
- else
- test -z "$mac" || _generateMac mac "$(basename $iface)" "$ctx" || return 1
- _addInterfaceCmd MODPROBE dummy "$dev"
- _addInterfaceCmd IP_LINK dev dummy0 address "$mac"
- _addInterfaceCmd NAMEIF "$dev" "$mac"
- _addInterfaceCmd IP_ADDR "$ip${prefix:+/$prefix}" dev "$dev"
- test -z "$extip" || _addInterfaceCmd IPTABLES "$ip${prefix:+/$prefix}" ${name:+label "$dev:$name"} "$ctx" "$extip"
- fi
-
- break
- done
-}
-
-## Usage: _generateInterfaceOptions <vserver-directory>
-function _generateInterfaceOptions
-{
- local iface
- local ctx
-
- test ! -e "$1"/context || read ctx <"$1"/context
-
- for iface in "$1/interfaces/"*; do
- test -d "$iface" || continue
- test ! -e "$iface"/disabled || continue
-
- _processSingleInterface "$iface"
- done
- _HAVE_INTERFACE_OPTIONS=1
-}
-
-function _generateTagOptions
-{
- local vdir="$1"
- local tag
-
- getFileValue tag "$vdir/tag" "$vdir/context" || return 0
-
- OPTS_VTAG_CREATE=( --tag "$tag" )
- OPTS_VTAG_ENTER=( --tag "$tag" )
-}
-
-function enableInterfaces
-{
- local i=0
- declare -a var
-
- lock "$__LOCKDIR"/vserver.interfaces
-
- while test $i -lt $INTERFACE_CMDS_IDX; do
- eval var='( "${INTERFACE_CMDS_'$i'[@]}" )'
- local type=${var[0]}
- unset var[0]
-
- set -- "${var[@]}"
- case "$type" in
- IPTABLES) ;; ## TODO
- MODPROBE)
- local mod=$1
- local name=$2
- shift 2
- $_MODPROBE ${name:+-o "$name"} "$mod" "$@"
- ;;
- NAMEIF) $_NAMEIF "$@";;
- VCONFIG) $_VCONFIG set_name_type "$4" >/dev/null
- $_VCONFIG add "$2" "$3" >/dev/null;;
- IP_ADDR) $_IP addr add "$@";;
- IP_ADDR_FLUSH) $_IP addr flush "$@";;
- IP_LINK) $_IP link set "$@";;
- IP_ROUTE) $_IP route add "$@";;
- *) echo "Unknown interface-command type '$type'" >&2; false;;
- esac
-
- let ++i
- done
-
- unlock 1
-}
-
-function disableInterfaces
-{
- test -n "$_HAVE_INTERFACE_OPTIONS" || _generateInterfaceOptions "$1"
-
- local i=$INTERFACE_CMDS_IDX
- declare -a var
-
- lock "$__LOCKDIR"/vserver.interfaces
-
- while test $i -gt 0; do
- let --i || :
-
- eval var='( "${INTERFACE_CMDS_'$i'[@]}" )'
- local type=${var[0]}
- unset var[0]
-
- set -- "${var[@]}"
- case "$type" in
- IPTABLES) ;; ## TODO
- MODPROBE) $_RMMOD "${2:-$1}";;
- NAMEIF) ;;
- VCONFIG) $_VCONFIG rem "$2.$3" >/dev/null;;
- IP_ADDR) $_IP addr del "$@";;
- IP_ADDR_FLUSH) ;;
- IP_LINK) ;; ## Ignore the link-down command for now
- IP_ROUTE) $_IP route del "$@";;
- *) echo "Unknown interface-command type '$type'" >&2; false;;
- esac
- done
-
- unlock 1
-}
-
-## Usage: prepareInit <vserver-directory>
-function prepareInit
-{
- pushd "$1/vdir" >/dev/null
- case "$INITSTYLE" in
- sysv)
- { find var/run ! -type d -print0; \
- find var/lock ! -type d -print0; } | xargs -0r $_CHROOT_SH rm
- ;;
- plain)
- $_CHROOT_SH rm .autofsck forcefsck 2>/dev/null || :
- : | $_CHROOT_SH truncate fastboot 2>/dev/null || :
- ;;
- minit)
- ;;
- esac
- "${INITCMD_PREPARE[@]}"
- popd >/dev/null
-}
-
-## Usage: prepareInit <vserver-directory>
-function prepareStop
-{
- pushd "$1/vdir" >/dev/null
- case "$INITSTYLE" in
- (sysv)
- export PREVLEVEL=$RUNLEVEL_START RUNLEVEL=$RUNLEVEL_STOP # required by Debian's initscripts
- ;;
- esac
- "${STOPCMD_PREPARE[@]}"
- popd >/dev/null
-}
-
-
-function generateOptions
-{
- _generateInterfaceOptions "$1"
- test -n "$_HAVE_CHBIND_OPTIONS" || _generateChbindOptions "$1"
- _generateNiceCommand "$1"
- _generateInitOptions "$1"
- _generateChcontextOptions "$1"
- _generateScheduleOptions "$1"
- _generatePersonalityOptions "$1"
- _generateTagOptions "$1"
-
- if test -n "$_IS_FAKEINIT"; then
- CHCONTEXT_INIT_OPTS=( --disconnect --flag fakeinit )
- OPTS_VCONTEXT_MIGRATE=( "${OPTS_VCONTEXT_MIGRATE[@]}" --initpid --disconnect )
- fi
-}
-
-function addtoCPUSET
-{
- local vdir=$1
- local cpuset
- local f="$vdir"/cpuset
- local i
- local configured=0
-
- test -d "$f" || return 0
- test -e "$f"/name || return 0
-
- read cpuset < "$f"/name
- test -e "$f"/nocreate || {
- test -d /dev/cpuset/"$cpuset" || mkdir /dev/cpuset/"$cpuset" || configured=1
- for i in cpus mems cpu_exclusive mem_exclusive virtualized; do
- if test -e "$f"/"$i"; then
- cat "$f"/"$i" >/dev/cpuset/"$cpuset"/"$i" || {
- configured=1
- break
- }
- fi
- done
- }
-
- echo $$ >/dev/cpuset/"$cpuset"/tasks || configured=1
- if [ "$configured" -ne 0 ]; then
- warning $"\
-WARNING: Failed to create or CPUSET \"$cpuset\" does not exist! Not using it!" >&2
- rmdir /dev/cpuset/"$cpuset" 2>/dev/null || :
- return 0
- fi
-}
-
-function removeCPUSET
-{
- local vdir=$1
- local cpuset
- local f="$vdir"/cpuset
-
- test -d "$f" || return 0
- test -e "$f"/name || return 0
-
- read cpuset < "$f"/name
- test -e "$f"/nocreate || {
- rmdir /dev/cpuset/"$cpuset" 2>/dev/null || :
- }
-}
-
-function _mountVserverInternal
-{
- local fstab="$1"
- local xflag=
-
- test -e "$fstab" || return 0
- shift
-
- pushd "$vdir" >/dev/null
- # check whether / is mounted readonly or whether there is special
- # magic regarding the mtab file; when etc/mtab can not be touched,
- # add the '-n' flag to mount
- test -w etc -o -w etc/mtab || xflag=-n
- "$@" $_SECURE_MOUNT -a $xflag --chroot --fstab "$fstab" --rootfs no
- popd >/dev/null
-}
-
-function mountRootFS
-{
- local cfgdir=$1
- local vdir=$1/vdir
- local fstab="$cfgdir"/fstab
- local xflag=
-
- test -e "$fstab" || return 0
- pushd "$vdir" >/dev/null
- # check whether / is mounted readonly or whether there is special
- # magic regarding the mtab file; when etc/mtab can not be touched,
- # add the '-n' flag to mount
- test -w etc -o -w etc/mtab || xflag=-n
- $_SECURE_MOUNT -a $xflag --chroot --fstab "$fstab" --rootfs only -n
- popd >/dev/null
-}
-
-function mountVserver
-{
- local cfgdir=$1
- local ns_opt=$2
- local vdir=$1/vdir
- local mtab_src
-
- test -e "$cfgdir"/fstab -o \
- -e "$cfgdir"/fstab.local -o \
- -e "$cfgdir"/fstab.remote || return 0
-
- findObject -r mtab_src "$cfgdir"/apps/init/mtab "$__CONFDIR"/.defaults/init/mtab "$__PKGLIBDEFAULTDIR"/mtab /dev/null
-
- pushd "$vdir" >/dev/null
- $_CHROOT_SH truncate /etc/mtab <"$mtab_src"
- popd >/dev/null
-
- test -n "$_HAVE_CHBIND_OPTIONS" || _generateChbindOptions "$cfgdir"
-
- _mountVserverInternal "$cfgdir"/fstab
- _mountVserverInternal "$cfgdir"/fstab.local
- _mountVserverInternal "$cfgdir"/fstab.remote "${CHBIND_CMD[@]}"
-
- isNamespaceCleanup "$cfgdir" && \
- _namespaceCleanup "$cfgdir"
-
- isAvoidNamespace "$cfgdir" || \
- $_SECURE_MOUNT --rbind -n "$vdir" "/"
-}
-
-function _umountVserverInternal
-{
- local fstab="$1"
- test -e "$fstab" || return 0
- shift
-
- $_TAC "$fstab" | {
- is_ok=1
- while read src dst tmp; do
- test -n "$tmp" || continue
- case x"$src" in
- (x\#*) continue;;
- esac
-
-
- "$@" $_EXEC_CD "$dst" $_UMOUNT -lfn . || is_ok=
- done
- test -n "$is_ok"
- }
-}
-
-function umountVserver
-{
- local cfgdir=$1
- local vdir=$1/vdir
- local is_ok=1
-
- isAvoidNamespace "$cfgdir" || return 0
- test -e "$cfgdir"/fstab -o \
- -e "$cfgdir"/fstab.local -o \
- -e "$cfgdir"/fstab.remote || return 0
- test -n "$_HAVE_CHBIND_OPTIONS" || _generateChbindOptions "$cfgdir"
-
- pushd "$vdir/" >/dev/null || return 1
- _umountVserverInternal "$cfgdir"/fstab.remote "${CHBIND_CMD[@]}" || is_ok=
- _umountVserverInternal "$cfgdir"/fstab.local || is_ok=
- _umountVserverInternal "$cfgdir"/fstab || is_ok=
- popd >/dev/null || return 1
-
- test -n "$is_ok"
-}
-
-## Usage: waitForSync <vserver> <context> <vshelper-fifo-varname>
-function initSync
-{
- local _is_meth=sync
- test -n "$_NEED_VSHELPER_SYNC" && \
- ! $_VSERVER_INFO - FEATURE vwait || _is_meth=async
-
- vshelper.initSync "$1" "$3" "$_is_meth"
-}
-
-## Usage: initWait <vserver> <context> <vwait-tmpdir-varname>
-function initWait
-{
- if $_VSERVER_INFO - FEATURE vwait; then
- local _is_tmpdir
- _is_tmpdir=$($_MKTEMPDIR vwaitstat.XXXXXX)
-
- (
- $_VWAIT --timeout "$VSHELPER_SYNC_TIMEOUT" \
- --status-fd 3 "$2" \
- >>$_is_tmpdir/out 2>$_is_tmpdir/err 3>$_is_tmpdir/fifo
- rc=$?
-
- if test "$rc" -ne 0 -a "$rc" -ne 1; then
- $_VPS axf | $_EGREP -e "^[^ \t]+[ \t]+$S_CONTEXT[ \t]+" >&4
- killContext "$S_CONTEXT" 9
- fi
-
- exit $rc
- ) 4>$_is_tmpdir/procs &
-
- echo "$!" >$_is_tmpdir/pid
- eval "$3"=$_is_tmpdir
- fi </dev/null
-}
-
-
-## Usage: _waitForVWait <vserver> <fifo> <pid> <procs>
-function _waitForVWait
-{
- wait "$3" || :
-
- declare -a status
- declare -r procs=$(cat $4)
-
- getFileArray status "$2"
- set -- ${status[0]}
-
- case "$1" in
- (ERROR) warning $"\
-'vwait' exited with error '$2' which indicates that vserver could not
-be stopped properly"
- ;;
- (FINISHED) ;;
- (KILLED) warning $"\
-A timeout occured while waiting for the vserver to finish and it was
-killed by sending a SIGKILL signal. Please investigate the reasons
-and/or increase the timeout in apps/vshelper/sync-timeout."
- ;;
-
- (TIMEOUT) warning $"\
-A timeout occured while waiting for the vserver to finish and it will
-be killed by sending a SIGKILL signal. The following process list
-might be useful for finding out the reason of this behavior:
-
-----------------------------------------------------------------------
-${procs:+$procs
-}----------------------------------------------------------------------"
- ;;
-
- (\?\?\?|*) warning $"\
-internal error: 'vwait' exited with an unexpected status '$1'; I will
-try to continue but be prepared for unexpected events."
- ;;
- esac
-
- return 0
-}
-
-## Usage: waitForSync <vserver> [<vshelper-fifo>] [<vwait-statdir>]
-function waitForSync
-{
- local cfgdir=$1
- local fifo=$2
- local vwait_statdir=$3
- local vwait_pid=$4
-
- if test -d "$vwait_statdir"; then
- _waitForVWait "$cfgdir" "$vwait_statdir/fifo" "$( <$vwait_statdir/pid )" "$vwait_statdir/procs"
- elif test -n "$_NEED_VSHELPER_SYNC"; then
- $_VSHELPER_SYNC "$fifo" "$VSHELPER_SYNC_TIMEOUT" || \
- warning $"\
-A timeout or other error occured while waiting for the synchronization
-signal from vserver '$VSERVER_NAME'.
-The vserver will be killed nevertheless..."
- elif test "${#INITCMD_STOP_SYNC[@]}" -ne 0; then
- "${INITCMD_STOP_SYNC[@]}" || \
- warning $"\
-Stop-synchronization for vserver '$VSERVER_NAME' failed. The vserver
-will be killed nevertheless..."
- fi
-
- test -z "$OPTION_FORCE_SYNC" -a ! -e "$cfgdir"/sync ||
- sleep 1
-}
-
-function _sourceWrap
-{
- local vdir name flavor start i already_handled base
- . "$@"
-}
-
-## Usage: execScriptlets <vserver-cfgdir> <vserver-name> <script-flavor>
-function execScriptlets
-{
- declare -r vdir=$1
- declare -r name=$2
- declare -r flavor=$3
- local base i
-
- for base in "$vdir"/scripts "$__CONFDIR"/.defaults/scripts; do
- local DONT_SKIP_DEFAULTS=
- local already_handled=
-
- for i in "$base/$flavor" "$base/$flavor.d"/*; do
- isRegularFile "$i" || continue
- test -r "$i" || continue
-
- already_handled=1
- local start=
- test -x "$i" || start=_sourceWrap
- $start "$i" "$flavor" "$name"
- done
-
- test -z "$already_handled" -o -n "$DONT_SKIP_DEFAULTS" || break
- done
-}
-
-
-function sanityCheck
-{
- declare -r cfgdir=$1
-
- ! test -e "$cfgdir"/fstab.local ||
- warning $"\
-WARNING: 'fstab' will *not* be executed in the network context of the
- vserver anymore. Therefore, 'fstab.local' has the same functionality
- and is obsoleted. When you need the old behaviour, put the mounts
- into 'fstab.remote'"
-
- ! test -e "$cfgdir"/hostname -a ! -L "$cfgdir"/hostname ||
- warning $"\
-WARNING: The hostname is now configured in 'uts/nodename' but not in
- 'hostname'."
-
- ! test -e "$cfgdir"/domainname -a ! -L "$cfgdir"/domainname ||
- warning $"\
-WARNING: The domainname is now configured in 'uts/domainname' but not
- in 'domainname'." >&2
-
-
- local i
- for i in "$cfgdir"/interfaces/*/only_ip; do
- if test -e "$i"; then
- local iface
- iface=${i##$cfgdir/interfaces/}
- iface=${iface%%/only_ip}
- warning $"\
-WARNING: The 'only_ip' flag for interface '$iface' is deprecated; use
- 'nodev' instead of"
- fi
- done
-
- test ! -d "$cfgdir"/dlimits -o -L "$cfgdir/cache" || \
- warning $"\
-WARNING: There is no cachedirectory configured for this vserver;
- please create '$cfgdir/cache' e.g. by executing
-
- ln -s ../.defaults/cachebase/$VSERVER_NAME $cfgdir/cache
-"
-
- find "$cfgdir" -type f -exec "$_CHECK_UNIXFILE" '{}' ';'
-
- vshelper.doSanityCheck
-
- $_VSERVER_INFO - VERIFYCAP ||
- panic $"capabilities are not enabled in kernel-setup"
-
- $_VSERVER_INFO - VERIFYPROC ||
- panic $"\
-/proc/uptime can not be accessed. Usually, this is caused by
-procfs-security. Please read the FAQ for more details
-http://linux-vserver.org/Proc-Security"
-
- test -e "$cfgdir"/context || {
- TYPE=$( $_VSERVER_INFO 49152 XIDTYPE )
- test "$TYPE" != "static" || panic $"\
-The kernel does not have dynamic contexts enabled. Please configure
-a static one by executing
-
- echo [number between 2 and 49151] > $cfgdir/context"
- }
-}
-
-
-function _setSingleDiskLimit
-{
- local vdir=$1
- local dlimit=$2
- local space_used=
- local space_total=
- local inodes_used=
- local inodes_total=
- local reserved=
- local directory=
- local ctx=
-
- getFileValue ctx "$vdir/context"
- getFileValue directory "$dlimit/directory" || return 0
- getFileValue space_total "$dlimit/space_total" || return 0
- getFileValue inodes_total "$dlimit/inodes_total" || return 0
- getFileValue reserved "$dlimit/reserved" || return 0
-
- local cachename=$ctx$directory
- cachename=dlimits/${cachename//\//_}
-
- test -e "$vdir/cache/$cachename" && . "$vdir/cache/$cachename"
- # Remove the cache so if the machine goes down unexpectedly, we won't have a stale cache
- $_RM -f "$vdir/cache/$cachename"
-
- if test -z "$inodes_used" -o -z "$space_used"; then
- local tmpvdu
- tmpvdu=`$_VDU --xid $ctx --space --inodes --script "$directory"`
- inodes_used=${tmpvdu##* }
- space_used=${tmpvdu%% *}
- fi
-
- $_VDLIMIT --xid $ctx \
- --set space_used=$space_used \
- --set space_total=$space_total \
- --set inodes_used=$inodes_used \
- --set inodes_total=$inodes_total \
- --set reserved=$reserved \
- "$directory"
-}
-
-
-function setDiskLimits
-{
- local vdir=$1
- local dlimit
-
- # Disk Limits without a static context are useless
- test -e "$vdir"/context || return 0
-
- for dlimit in "$vdir/dlimits/"*; do
- test -d "$dlimit" || continue
- test ! -e "$dlimit/disabled" || continue
-
- _setSingleDiskLimit "$vdir" "$dlimit"
- done
-}
-
-
-function _saveSingleDiskLimit
-{
- local vdir=$1
- local dlimit=$2
- local ctx=
- local directory=
-
- getFileValue ctx "$vdir/context"
- getFileValue directory "$dlimit/directory" || return 0
-
- local cachename=$ctx$directory
- cachename=${cachename//\//_}
-
- # Things are getting ugly here... LFS says that /var/cache (where
- # cachename is usually pointing to) can vanish and applications
- # have to deal with it. So, we have to interprete the $vdir/cache
- # symlink and have to create the needed directories manually.
- if test -d "$vdir/cache"; then
- : # ok, exists already
- elif test -L "$vdir/cache"; then
- # it's a dangling symlink
- local link
- link=$($_READLINK "$vdir/cache")
- ( cd $vdir && $_MKDIR -p "$link" )
- else
- return 0
- fi
-
- test -d "$vdir/cache"
- $_MKDIR -p "$vdir"/cache/dlimits
-
- $_VDLIMIT --xid $ctx "$directory" | \
- $_GREP '_used=' > "$vdir/cache/dlimits/$cachename"
-
- $_VDLIMIT --xid $ctx --remove "$directory"
-}
-
-
-function saveDiskLimits
-{
- local vdir=$1
- local dlimit
-
- test -e "$vdir"/context || return 0
-
- for dlimit in "$vdir/dlimits/"*; do
- test -d "$dlimit" || continue
- test ! -e "$dlimit/disabled" || continue
-
- _saveSingleDiskLimit "$vdir" "$dlimit"
- done
-}
-
-function _namespaceCleanup
-{
- local vdir="$1"
- local root=$($_VSERVER_INFO "$1" VDIR 1)
- local -a list
- local -a skip
- local tmp
-
- getFileArray skip "$vdir"/namespace-cleanup-skip \
- "$__CONFDIR"/.defaults/namespace-cleanup-skip || :
-
- # these are things that have to be accessible post-cleanup
- for tmp in "$root" "$__SBINDIR" "$__PKGLIBDIR" "$vdir" \
- "$__PKGSTATEDIR" "$__LOCKDIR" /usr/local /tmp "${skip[@]}"; do
- while test -n "$tmp"; do
- list=( "${list[@]}" "$tmp" )
- tmp="${tmp%/*}"
- done
- done
-
- local -a list_umount
- while read dev path opts; do
- test -n "$path" || continue
- for i in "$root" /dev /proc; do
- test "${path#$i}" != "$path" && continue 2
- done
- for i in "${list[@]}" /; do
- test "$path" = "$i" && continue 2
- done
- # unmount them in reverse order so mounts further down the tree get unmounted first
- list_umount=( "$path" "${list_umount[@]}" )
- done < /proc/mounts
- # separate loop to avoid races while reading /proc/mounts
- for i in "${list_umount[@]}"; do
- $_UMOUNT -l -n "$i"
- done
-}
-
-function loadDeviceMap
-{
- local xid="$1"
- local dir="$2"
- local flags device target
-
- test -d "$dir" || return 0
-
- for i in "$dir"/*; do
- test -d "$i" || continue
-
- local -a vdevmap_opts=()
- test -e "$i/create" && vdevmap_opts=( "${vdevmap_opts[@]}" --create )
- test -e "$i/open" && vdevmap_opts=( "${vdevmap_opts[@]}" --open )
- test -e "$i/remap" && vdevmap_opts=( "${vdevmap_opts[@]}" --remap )
-
- getFileValue flags "$i/flags" || :
- getFileValue device "$i/device" || :
- getFileValue target "$i/target" || :
- vdevmap_opts=( "${vdevmap_opts[@]}" ${flags:+--flags "$flags"} \
- ${device:+--device "$device"} ${target:+--target "$target"} )
-
- $_VDEVMAP --xid "$xid" "${vdevmap_opts[@]}" || return $?
- done
-}
+++ /dev/null
-# $Id: vserver.start 2599 2007-08-26 21:30:50Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-lock "$__LOCKDIR"/vserver."$($_VSERVER_INFO "$VSERVER_DIR" CANONIFY)".startup
-
-if isVserverRunning "$VSERVER_DIR"; then
- warning $"vserver '$VSERVER_NAME' already running"
- exit 0
-fi
-
-function cleanup()
-{
- set +e
-
- test -z "$startsync_pipe" || $_RM -f "$startsync_pipe"
- test -z "$is_started" || { unlock; return 0; }
-
- if test -n "$is_configured" -a -z "$is_executed"; then
- warning $"
-An error occured while executing the vserver startup sequence; when
-there are no other messages, it is very likely that the init-script
-(${INITCMD_START[@]}) failed.
-
-Common causes are:
-* /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build
- method knows how to deal with this, but on existing installations,
- appending 'true' to this file will help."
- fi
-
- if test -n "$is_executed"; then
- warning $"
-An error occured after executing the vserver startup sequence. This
-means that some processes may exist in the created context and the
-manual execution of
-
- $_VSERVER '$VSERVER_DIR' stop
-
-is recommended to fix this."
- else
- warning $"
-
-Failed to start vserver '$VSERVER_NAME'"
- fi
-
- test -n "$OPTION_DEBUG" || exec 2>/dev/null >/dev/null
- test -z "$is_mounted" || umountVserver "$VSERVER_DIR" || :
- test -z "$have_interfaces" || disableInterfaces "$VSERVER_DIR" || :
-
- unlock || :
-}
-
-is_configured=
-is_executed=
-is_started=
-is_mounted=
-is_vshelper_init=
-have_interfaces=
-startsync_pipe=
-have_initcmd=
-
-while test "$#" -gt 0; do
- case "$1" in
- (--rescue) INITSTYLE=rescue;;
- (--rescue-cmd)
- warning $"\
-The '--rescue-cmd' option is deprecated; just add the the initcmd
-inclusive its arguments to the cmdline."
- INITCMD_RESCUE=( $2 );
- have_initcmd=1
- shift;;
- (--rescue-init) _IS_FAKEINIT=1;;
- (--) shift; break;;
- (-*) panic $"vserver ... start: unknown option '$1'";;
- (*) break;
- esac
- shift
-done
-
-if test x"$INITSTYLE" = xrescue -a -z "$have_initcmd" -a "$#" -gt 0; then
- INITCMD_RESCUE=( "$@" )
-fi
-
-
-set -e
-trap "cleanup" EXIT
-
-sanityCheck "$VSERVER_DIR"
-
-pushd "$VSERVER_DIR" >/dev/null
-execScriptlets "$VSERVER_DIR" "$VSERVER_NAME" initialize
-popd >/dev/null
-
-mountRootFS "$VSERVER_DIR"
-generateOptions "$VSERVER_DIR"
-
-pushd "$VSERVER_DIR" >/dev/null
-execScriptlets "$VSERVER_DIR" "$VSERVER_NAME" prepre-start
-popd >/dev/null
-
-setDiskLimits "$VSERVER_DIR"
-
-enableInterfaces "$VSERVER_DIR" && have_interfaces=1
-
-mountVserver "$VSERVER_DIR" && is_mounted=1
-prepareInit "$VSERVER_DIR"
-addtoCPUSET "$VSERVER_DIR"
-
-pushd "$VSERVER_DIR"/vdir/ >/dev/null
-execScriptlets "$VSERVER_DIR" "$VSERVER_NAME" pre-start
-popd >/dev/null
-
-test -z "$OPTION_DEFAULTTTY" || setDefaultTTY "$VSERVER_DIR"
-
-pushd "$VSERVER_DIR"/vdir/ >/dev/null
-is_configured=1
-if $_VSERVER_INFO - FEATURE migrate; then
- ${NICE_CMD[@]} \
- "${CHBIND_CMD[@]}" \
- $_EXEC_ULIMIT "$VSERVER_DIR"/ulimits \
- $_VTAG --create "${OPTS_VTAG_CREATE[@]}" --silent -- \
- $_VCONTEXT --create "${OPTS_VCONTEXT_CREATE[@]}" -- \
- ${OPTION_STRACE:+$_STRACE -fF -o /tmp/vserver-start.$$} \
- ${USE_VNAMESPACE:+$_VNAMESPACE --set -- } \
- $_VLIMIT --dir "$VSERVER_DIR"/rlimits --missingok -- \
- $_VSCHED --xid self --force "${OPTS_VSCHED[@]}" -- \
- $_VSYSCTL --xid self --dir "$VSERVER_DIR"/sysctl --missingok -- \
- $_VUNAME --xid self --dir "$VSERVER_DIR"/uts --missingok -- \
- "${VSERVER_EXTRA_CMDS[@]}" \
- $_VUNAME --xid self --set -t context="$VSERVER_DIR" -- \
- $_VATTRIBUTE --set "${OPTS_VATTRIBUTE[@]}" -- \
- $_SAVE_CTXINFO "$VSERVER_DIR" \
- $_ENV -i "${OPTS_ENV[@]}" \
- $_VCONTEXT --migrate-self --endsetup --chroot $SILENT_OPT \
- "${OPTS_VCONTEXT_MIGRATE[@]}" "${OPTS_VCONTEXT_ENTER[@]}" -- \
- "${INITCMD_START[@]}"
-else
- if test -n "$_IS_FAKEINIT"; then
- startsync_pipe=$($_MKTEMP vserver-start.XXXXXX)
- $_RM -f "$startsync_pipe"
- $_MKFIFO -m600 "$startsync_pipe" ## safe, since mkfifo does not follow symlinks
- fi
-
- ${NICE_CMD[@]} \
- "${CHBIND_CMD[@]}" \
- $_EXEC_ULIMIT "$VSERVER_DIR/ulimits" \
- $_CHCONTEXT_COMPAT "${CHCONTEXT_OPTS[@]}" "${CHCONTEXT_INIT_OPTS[@]}" \
- $_SAVE_CTXINFO "$VSERVER_DIR" \
- $_ENV -i "${OPTS_ENV[@]}" \
- $_CHAINECHO "${_IS_FAKEINIT:+$startsync_pipe}" "" \
- $_CAPCHROOT "${CAPCHROOT_OPTS[@]}" . \
- "${INITCMD_START[@]}"
-
- ## the additional synchronization step is needed since vshelper.doInit
- ## below might be executed before needed context information were
- ## saved by $_SAVE_CTXINFO
- ${_IS_FAKEINIT:+cat "$startsync_pipe"} >/dev/null
-fi
-is_executed=1
-
-"${INITCMD_START_SYNC[@]}"
-popd >/dev/null
-
-pushd "$VSERVER_DIR"/vdir/ >/dev/null
-execScriptlets "$VSERVER_DIR" "$VSERVER_NAME" post-start
-popd >/dev/null
-
-is_vshelper_init=1
-! vshelper.isEnabled "" "$VSERVER_DIR" || vshelper.doInit "$VSERVER_DIR"
-
-is_started=1
+++ /dev/null
-# $Id: vserver.stop 2602 2007-08-27 10:53:04Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-lock "$__LOCKDIR"/vserver."$($_VSERVER_INFO "$VSERVER_DIR" CANONIFY)".startup
-
-if ! isVserverRunning "$VSERVER_DIR" S_CONTEXT; then
- warning $"vserver '$VSERVER_NAME' is not running" >&2
- test -n "$OPTION_DEBUG" || exec 2>/dev/null >/dev/null
- umountVserver "$VSERVER_DIR" || :
- disableInterfaces "$VSERVER_DIR" || :
- unlock
- exit 0
-fi
-
-function cleanup
-{
- set +e
- unlock
-
- test ! -p "$sync_fifo" || {
- $_RM -f "$sync_fifo"
- $_RMDIR $($_DIRNAME "$sync_fifo")
- }
-
- test ! -d "$vwait_statdir" ||
- $_RM -rf "$vwait_statdir"
-}
-
-vwait_statdir=
-vwait_pid=
-sync_fifo=
-trap "cleanup" EXIT
-
-OPTION_FORCE_SYNC=1
-
-set -e
-generateOptions "$VSERVER_DIR"
-set +e
-
-vshelper.doDestroy "$VSERVER_DIR" "$S_CONTEXT"
-initSync "$VSERVER_DIR" "$S_CONTEXT" sync_fifo
-prepareStop "$VSERVER_DIR"
-
-cd "$VSERVER_DIR"/vdir/
-execScriptlets "$VSERVER_DIR" "$VSERVER_NAME" pre-stop
-cd "$VSERVER_DIR"/vdir/
-
-test -z "$OPTION_DEFAULTTTY" || setDefaultTTY "$VSERVER_DIR"
-
-fail=
-initWait "$VSERVER_DIR" "$S_CONTEXT" vwait_statdir
-if test -n "$_IS_FAKEINIT" && \
- $_VSERVER_INFO - FEATURE vkill; then
- if ! vshelper.isStopSync; then
- $_VKILL -s INT --xid "$S_CONTEXT" -- 1 || fail=1
- fi
-elif $_VSERVER_INFO - FEATURE migrate; then
- "${NICE_CMD[@]}" \
- "${CHBIND_CMD[@]}" \
- "$_VTAG" --migrate "${OPTS_VTAG_ENTER[@]}" --silent -- \
- $_VCONTEXT $SILENT_OPT --migrate --chroot --xid "$S_CONTEXT" -- \
- "${INITCMD_STOP[@]}" || fail=1
-else
- "${NICE_CMD[@]}" \
- "$_CHBIND" "${CHBIND_OPTS[@]}" \
- "$_EXEC_ULIMIT" "$VSERVER_DIR/ulimits" \
- $_CHCONTEXT_COMPAT "${CHCONTEXT_OPTS[@]}" \
- "$_CAPCHROOT" "${CAPCHROOT_OPTS[@]}" "." \
- "${INITCMD_STOP[@]}" || fail=1
-fi
-
-# Remove persistent so those contexts can be stopped
-$_VATTRIBUTE --set --xid "$S_CONTEXT" --flag ~persistent 2>/dev/null || :
-if $_VSERVER_INFO -q "$S_CONTEXT" XIDTYPE static &&
- $_VSERVER_INFO - FEATURE vnet; then
- $_NATTRIBUTE --set --nid "$S_CONTEXT" --flag ~persistent 2>/dev/null || :
-fi
-
-vshelper.doStopSync
-
-waitForSync "$VSERVER_DIR" "$sync_fifo" "$vwait_statdir"
-
-vshelper.doDestroy "$VSERVER_DIR" "$S_CONTEXT"
-sendKillSequence "$S_CONTEXT" "${INITKILL_SEQ[@]}"
-
-## Small hack... isVserverRunning removes stale runfiles as a sideeffect
-! isVserverRunning "$VSERVER_DIR" || \
- echo $"Vserver '$VSERVER_DIR' still running unexpectedly; please investigate it manually..." >&2
-
-execScriptlets "$VSERVER_DIR" "$VSERVER_NAME" post-stop
-
-umountVserver "$VSERVER_DIR" || :
-disableInterfaces "$VSERVER_DIR"
-
-saveDiskLimits "$VSERVER_DIR"
-
-execScriptlets "$VSERVER_DIR" "$VSERVER_NAME" postpost-stop
-removeCPUSET "$VSERVER_DIR"
+++ /dev/null
-# $Id: vserver.suexec 2599 2007-08-26 21:30:50Z dhozac $ --*- sh -*--
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-is_stopped=
-isVserverRunning "$VSERVER_DIR" S_CONTEXT || is_stopped=1
-test -z "$is_stopped" -o "$OPTION_INSECURE" || {
- echo $"'vserver ... suexec' is supported for running vservers only; aborting..." >&2
- exit 1
-}
-generateOptions "$VSERVER_DIR"
-addtoCPUSET "$VSERVER_DIR"
-
-user=$1
-shift
-
-cd "$VSERVER_DIR"/vdir/
-
-test -z "$OPTION_NONAMESPACE" || USE_VNAMESPACE=
-
-if $_VSERVER_INFO - FEATURE migrate; then
- if test -z "$is_stopped"; then
- exec \
- "${NICE_CMD[@]}" \
- "${CHBIND_CMD[@]}" \
- $_EXEC_ULIMIT "$VSERVER_DIR/ulimits" \
- ${USE_VNAMESPACE:+$_VNAMESPACE --enter "$S_CONTEXT" -- } \
- $_VTAG --migrate "${OPTS_VTAG_ENTER[@]}" --silent -- \
- $_VCONTEXT $SILENT_OPT --migrate --chroot \
- --xid "$S_CONTEXT" --uid "$user" "${OPTS_VCONTEXT_ENTER[@]}" -- \
- "$@"
- else
- exec \
- "${NICE_CMD[@]}" \
- "${CHBIND_CMD[@]}" \
- $_EXEC_ULIMIT "$VSERVER_DIR/ulimits" \
- $_VTAG --create "${OPTS_VTAG_CREATE[@]}" --silent -- \
- $_VCONTEXT --create "${OPTS_VCONTEXT_CREATE[@]}" -- \
- $_VUNAME --xid self --dir "$VSERVER_DIR"/uts --missingok -- \
- $_VUNAME --xid self --set -t context="$VSERVER_DIR" -- \
- $_VCONTEXT --migrate-self --endsetup --chroot $SILENT_OPT -- \
- "$@"
- fi
-else
- exec \
- "${NICE_CMD[@]}" \
- "${CHBIND_CMD[@]}" \
- "$_EXEC_ULIMIT" "$VSERVER_DIR/ulimits" \
- ${USE_VNAMESPACE:+$_VNAMESPACE --enter "$S_CONTEXT" --} \
- $_CHCONTEXT_COMPAT "${CHCONTEXT_OPTS[@]}" -- \
- "$_CAPCHROOT" "${CAPCHROOT_OPTS[@]}" --suid "$user" . \
- "$@"
-fi
+++ /dev/null
-#!/bin/sh
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on vservers.grabinfo.sh by Jacques Gelinas
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# Produce some XML statistics about vservers
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-cd $__DEFAULT_VSERVERDIR
-for vserv in *
-do
- if [ -f /etc/vservers/$vserv.conf ] ; then
- . /etc/vservers/$vserv.conf
- echo "<m:vserver name=\"$vserv\" onboot=\"$ONBOOT\" HOSTNAME=\"$S_HOSTNAME\">"
- for ip in $IPROOT
- do
- case $ip in
- *:*)
- echo $ip | tr ':' ' ' | (read a b; echo " <m:ip num=\"$b\"/>")
- ;;
- *)
- echo " <m:ip num=\"$ip\"/>"
- ;;
- esac
- done
- echo " <status>"
- $_VSERVER $vserv status
- echo " </status>"
- echo "</m:vserver>"
- fi
-done
-
+++ /dev/null
-#! /usr/lib/util-vserver/sigexec /bin/bash
-
-# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-## Usage: vshelper <xid> <action> <args>
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-function showHelp
-{
- echo $"\
-Usage: vshelper <xid> <event> <args>*
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion
-{
- echo $"\
-vshelper $PACKAGE_VERSION -- userspace reboot helper
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2004 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-function doInternalMethod
-{
- local method=$1
- case "$method" in
- (restart)
- case "$ACTION" in
- (restart)
- logging $"Restarting vserver '$VSERVER'"
-
- local sync_dir
- vshelper.initStopSync sync_dir
-
- spawn $_VSERVER --defaulttty "$VSERVER" restart &
-
- disown %%
- vshelper.waitForStopSync "$sync_dir"
- ;;
- (halt|poweroff)
- logging $"Stopping vserver '$VSERVER'"
-
- local sync_dir
- vshelper.initStopSync sync_dir
-
- spawn $_VSERVER --defaulttty "$VSERVER" stop &
-
- disown %%
- vshelper.waitForStopSync "$sync_dir"
- spawn killContext "$XID"
- ;;
- (swsusp)
- ## TODO: any senseful action here? Perhaps shutdown scheduler for it?
- exit 0
- ;;
- (restart2) ;;
- (shutdown)
- logging $"Cleaning up after vserver '$VSERVER'"
- spawn $_VSERVER --defaulttty "$VSERVER" stop
- ;;
- (*)
- warning $"Unknown action '$ACTION' for vserver '$VSERVER'"
- exit 1
- esac
- ;;
-
- (async)
- spawn killContext "$XID"
- ;;
-
- (sync)
- local f=${METHOD_ARGS[0]}
- test -n "$f" ||
- panic $"Insufficent arguments for method '$method' and vserver '$VSERVER'"
-
- test -p "$f" ||
- panic $"File '$f' which is required for synchronisation of vserver '$VSERVER' is not a pipe"
-
- spawn killContext "$XID"
- echo "$ACTION" >"$f"
- ;;
-
- (*)
- local script
- findObject -x script "$__CONFDIR"/.defaults/apps/vshelper-methods/"$method" "$__PKGLIBDIR"/vshelper-methods/"$method" ''
-
- test -n '$script' || {
- warning $"No handler for internal method '$method' found"
- exit 1
- }
-
- export VSERVER
- execute "$script" "${ARGS[@]}"
- esac
-}
-
-function doDefaultMethod
-{
- local handler
-
- vshelper.getHandler handler "$VSERVER" "$ACTION" || {
- warning $"No handler configured for action '$ACTION' on vserver '$VSERVER'"
- exit 1
- }
-
- case "$handler" in
- (/*) execute "$handler" "${ARGS[@]}";;
- (:*) doInternalMethod "${handler##:}" "$@";;
- esac
-}
-
-#===========
-
-test "$1" != '--version' || showVersion
-test "$1" != '--help' || showHelp
-
-if ! tty -s; then
- findObject -e _VS_LOGFILE "$__CONFDIR"/.defaults/apps/vshelper/logfile /dev/null
- findObject -e _VS_ERRFILE "$__CONFDIR"/.defaults/apps/vshelper/logfile /dev/null
-
- exec </dev/null
- exec >>$_VS_LOGFILE
- exec 2>>$_VS_ERRFILE
-fi
-
-logging "$(date): vshelper $*"
-
-test "$#" -ge 2 ||
- panic $"vshelper called with missing arguments; try '--help' for more information"
-
-
-vshelper.isEnabled || exit 0
-! vshelper.isDebug || set -x
-
-set -eu
-
-if $_VSERVER_INFO - FEATURE vshelper0; then
- declare -r XID=$1
- declare -r ACTION=$2
-elif $_VSERVER_INFO - FEATURE vshelper; then
- declare -r ACTION=$1
- declare -r XID=$2
-else
- panic $"vshelper functionality not supported by kernel"
-fi
-
-findObject -x delegate "$__CONFDIR"/.defaults/apps/vshelper-delegate/"$ACTION" "$__PKGLIBDIR"/vshelper-delegate/"$ACTION" ''
-test -e "$delegate" && exec -a "$ACTION" "$delegate" "$@"
-
-this_xid=$($_VSERVER_INFO - XID)
-pxid=
-responsible_xid=$XID
-while true; do
- pxid=$($_VSERVER_INFO "$responsible_xid" PXID) || break
- test "$pxid" -ne "$this_xid" || break
- responsible_xid=$pxid
-done
-
-vserver_id=$($_VSERVER_INFO "$responsible_xid" ID) || test "$ACTION" = "shutdown" ||
- panic $"No responsible vserver found for xid '$responsible_xid' ($XID); aborting..."
-
-test "$XID" = "$responsible_xid" || {
- logging "Giving 'vshelper' task for '$XID' to parent vserver '$vserver_id' ($responsible_xid)"
- execute $_VSERVER "$vserver_id" exec $_VSHELPER "$@"
-}
-
-#===========
-
-ARGS=( "$@" )
-
-declare -a state
-getFileArray state "$__VSHELPERSTATEDIR/$XID" && test ${#state[@]} -ge 2 || {
- logging "'vshelper' not configured for xid '$XID'"
- exit 0
-}
-
-declare -r VSERVER=${state[0]}
-
-cfg_xid=$($_VSERVER_INFO "${state[0]}" CONTEXT false) ||
- panic $"Configured vserver '$VSERVER' does not seem to run; aborting..."
-
-test "$cfg_xid" = "$XID" ||
- panic $"Configured ($cfg_xid) and actual ($XID) xid for vserver '$VSERVER' are mismatching; aborting..."
-
-cur_xid=$($_VSERVER_INFO "$VSERVER" CONTEXT false) ||
- panic $"Vserver '$VSERVER' with '$XID' does not seem to run; strange..."
-
-test "$cur_xid" = "$XID" ||
- panic $"Expected ($XID) and actual ($cur_xid) xid for vserver '$VSERVER' are mismatching; strange..."
-
-
-method=${state[1]}
-if test "${#state[@]}" -gt 2; then
- unset state[0] state[1]
- declare -ra METHOD_ARGS=( "${state[@]}" )
-else
- declare -ra METHOD_ARGS=()
-fi
-
-case "$method" in
- (default) doDefaultMethod "$@";;
- (sync|async) doInternalMethod "$method" "$@";;
- (*) panic $"Unknown method '$method' used by vserver '$VSERVER'";;
-esac
+++ /dev/null
-#! /bin/bash
-# $Id: vsomething 2599 2007-08-26 21:30:50Z dhozac $
-
-# Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-. "$__PKGLIBDIR/vserver.functions"
-
-
-function showHelp()
-{
- echo \
-$"Usage: $0 [--quiet|-q] [--debug] <cmd> [--] <vserver-name>* [--all] -- <params>+
-
-Execute <cmd> <vserver> <params>* foreach vserver.
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vsomething $PACKAGE_VERSION -- execute something for a set of vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2005 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-
-is_quiet=
-declare -a vservers=()
-
-tmp=$(getopt -o +q --long help,version,debug,quiet -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--debug) set -x;;
- (--quiet|-q) is_quiet=1 ;;
- (--) shift; break;;
- (*) echo $"vserver: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-test "$#" -ge 1 || \
- panic $"vsomething: no operation specified; try '--help' for more information"
-
-cmd=$1
-title=${VSOMETHING_TITLE:-$cmd}
-shift
-
-while test "$#" -ge 1; do
- if getAllVserversByArg tmp "$1"; then
- vservers=( "${vservers[@]}" "${tmp[@]}" )
- else
- case "$1" in
- (--) shift; break;;
- (*) vservers=( "${vservers[@]}" "$1" )
- esac
- fi
- shift
-done
-
-
-test "${#vservers[@]}" -ne 1 || is_quiet=1
-
-
-cnt=0
-res=255
-for i in "${vservers[@]}"; do
- cnt=$[ cnt + 1 ]
-
- test -n "$is_quiet" || {
- colorize bold echo -n "$title: operating on vserver "
- colorize bold colorize emph echo "$i"
- xtermTitle "$title: operating on vserver '$i' [$cnt/${#vservers[@]}]"
- }
-
- if test -n "$VSOMETHING_PKGMGMT"; then
- if pkgmgmt.isInternal "$i"; then
- $_VSERVER "$i" exec "$cmd" "$@"
- else
- _setVserverDir "$i"
- # subshell so we don't have to clean up
- ( _generateChbindOptions "$VSERVER_DIR"
- $_VSERVER "$i" status &> /dev/null || \
- CHBIND_CMD=()
- callInNamespace "$i" \
- "$_VNAMESPACE" --new -- \
- "${CHBIND_CMD[@]}" \
- "$VSOMETHING_WORKER" "$i" "$@" )
- fi
- else
- "$cmd" "$i" "$@"
- fi
-
- res=$?
-
- test $res -eq 0 -o -n "$is_quiet" || {
- colorize error echo -n $"$title failed on vserver '$i' with errorcode $res"
- echo
- }
-
- test -n "$is_quiet" || echo
-done
-
-test "$cnt" -ge 0 || warning $"No vservers specified"
-exit $res
+++ /dev/null
-#!/bin/sh
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on vsyswrapper by Jacques Gelinas
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# Helper script for all the v_xxx scripts
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-if [ $# = 0 ] ; then
- echo vsysvwrapper service_name >&2
- exit 6
-else
- SERVICE=$1
- shift
- IP=eth0
- if [ -f /etc/vservices/$SERVICE.conf ] ; then
- . /etc/vservices/$SERVICE.conf
- fi
- IPOPT=
- for oneip in $IP
- do
- IPOPT="$IPOPT --ip $oneip"
- done
- echo exec $_CHBIND $IPOPT /etc/init.d/$SERVICE "$@"
- exec $_CHBIND $IPOPT /etc/init.d/$SERVICE "$@"
-fi
+++ /dev/null
-#!/bin/sh
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-# based on vtop by Jacques Gelinas
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#Presents the processes running in all virtual servers
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-exec $__SBINDIR/chcontext --silent --ctx 1 top "$@"
+++ /dev/null
-#!/bin/bash
-# $Id: vupdateworld 2486 2007-02-05 18:08:17Z hollow $
-
-# Copyright (C) 2006 Benedikt Boehm <hollow@gentoo.org>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-
-function showHelp()
-{
- echo \
-$"Usage: $0 <vserver-name>* [--all] -- <params>+
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vupdateworld $PACKAGE_VERSION -- emerge world for vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2006 Benedikt Boehm
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-declare -a send_through vsomething_opts
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;;
- (--quiet|-q) send_through=( "${send_through[@]}" "$1" );;
- (--all) vsomething_opts=( "${vsomething_opts[@]}" "$1" );;
- (--) shift; break;;
- (*) echo $"vemerge: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-declare -a vserver_names
-
-while [ $# -gt 0 ]; do
- case "$1" in
- (--) shift; break;;
- (*) vserver_names=( "${vserver_names[@]}" "$1" );;
- esac
- shift
-done
-
-VSOMETHING_TITLE=vemerge
-VSOMETHING_PKGMGMT=1
-
-export VSOMETHING_TITLE VSOMETHING_PKGMGMT
-
-test ${#vsomething_opts[@]} -eq 0 || vsomething_opts=( "${vsomething_opts[@]}" -- )
-exec $_VSOMETHING "${send_through[@]}" emerge "${vsomething_opts[@]}" "${vserver_names[@]}" -- world --update --deep --newuse "$@"
+++ /dev/null
-#!/bin/bash
-#
-# useradd(8) wrapper for vservers
-#
-# Mark Huang <mlhuang@cs.princeton.edu>
-# Copyright (C) 2004-2006 The Trustees of Princeton University
-#
-# $Id: vuseradd,v 1.28 2007/07/05 19:05:14 dhozac Exp $
-#
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo "Can not find util-vserver installation; aborting..."
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-shopt -s nullglob
-
-# Defaults
-TYPE="default"
-
-usage()
-{
- TYPES=
- pushd "$__DEFAULT_VSERVERDIR/.vref" >/dev/null
- for ref in * ; do
- if [ -z "$TYPES" ] ; then
- TYPES=$ref
- else
- TYPES="$TYPES, $ref"
- fi
- done
- popd >/dev/null
-
- echo "Usage: vuseradd [OPTION]... [NAME]"
- echo " -t Reference image type ($TYPES)"
- exit 1
-}
-
-# Get options
-while getopts "t:" opt ; do
- case $opt in
- t)
- TYPE="$OPTARG"
- ;;
- *)
- usage
- ;;
- esac
-done
-shift $(($OPTIND - 1))
-
-# Get slice name
-[ -z "$1" ] && usage
-NAME=$1
-
-# Add slices group to /etc/group if not already present
-groupadd slices 2>/dev/null || :
-
-# Add slice name to /etc/passwd
-useradd -g slices -s /bin/vsh $NAME -p '*'
-
-USERID=`id -u $NAME`
-GROUPID=`id -g $NAME`
-GROUPNAME=`id -gn $NAME`
-
-# Create /etc/vservers configuration files
-if [ ! -d $__CONFDIR/$NAME ] ; then
- # Move away the guest contents for now
- if [ -d $__DEFAULT_VSERVERDIR/$NAME ] ; then
- mkdir -p "$__DEFAULT_VSERVERDIR/.vtmp"
- TMP=$(mktemp -d "$__DEFAULT_VSERVERDIR/.vtmp/$NAME.XXXXXX")
- mv $__DEFAULT_VSERVERDIR/$NAME "$TMP"
- HAS_VSERVERDIR=1
- else
- HAS_VSERVERDIR=0
- fi
-
- $_VSERVER $NAME build -m skeleton --context $USERID \
- --interface nodev:0.0.0.0/0 \
- --flags persistent,~info_init,sched_hard
- RETVAL=$?
- DIR=$__CONFDIR/$NAME
- if [ $RETVAL -ne 0 ] ; then
- echo "Error $RETVAL building $DIR"
- rm -rf $DIR $__DEFAULT_VSERVERDIR/$NAME
- fi
- mkdir -p $DIR/apps/init $DIR/rlimits $DIR/sched $DIR/dlimits/0
- echo default > $DIR/apps/init/mark
- echo 1000 > $DIR/rlimits/nproc
-
- # Set persistent for the network context
- echo persistent > $DIR/nflags
-
- # Set up the scheduler
- echo 1000 > $DIR/sched/interval
- echo 1000 > $DIR/sched/interval2
- echo 0 > $DIR/sched/fill-rate
- echo 32 > $DIR/sched/fill-rate2
- touch $DIR/sched/idle-time
- echo 100 > $DIR/sched/tokens
- echo 50 > $DIR/sched/tokens-min
- echo 100 > $DIR/sched/tokens-max
-
- # Set up disk limits (unlimited)
- echo `$_READLINK $DIR/vdir` > $DIR/dlimits/0/directory
- echo 2 > $DIR/dlimits/0/reserved
- echo -1 > $DIR/dlimits/0/inodes_total
- echo -1 > $DIR/dlimits/0/space_total
-
- # Remove the basically empty guest directory
- rm -rf $__DEFAULT_VSERVERDIR/$NAME
- # Move the guest back
- if [ "$HAS_VSERVERDIR" = 1 ] ; then
- mv "$TMP/$NAME" $__DEFAULT_VSERVERDIR/$NAME
- rm -rf "$TMP"
- fi
-fi
-
-if [ ! -d "$__DEFAULT_VSERVERDIR/$NAME" ] ; then
- # Check the cache
- if [ "$TYPE" = "default" ] ; then
- for i in "$__DEFAULT_VSERVERDIR/.vcache/"* ; do
- [ -d "$i" ] && mv "$i" "$__DEFAULT_VSERVERDIR/$NAME" && break
- done
- fi
-
- # Build slice from reference image
- if [ ! -d "$__DEFAULT_VSERVERDIR/$NAME" ] ; then
- REF="$__DEFAULT_VSERVERDIR/.vref/$TYPE"
-
- # Build in temporary directory
- mkdir -p "$__DEFAULT_VSERVERDIR/.vtmp"
- TMP=$(mktemp -d "$__DEFAULT_VSERVERDIR/.vtmp/$NAME.XXXXXX")
- "$_VCLONE" "$REF"/ "$TMP"/
- RETVAL=$?
-
- # Move it to its permanent location when complete
- if [ $RETVAL -eq 0 ] ; then
- mv "$TMP" "$__DEFAULT_VSERVERDIR/$NAME"
- else
- echo "Error $RETVAL building $__DEFAULT_VSERVERDIR/$NAME"
- rm -rf "$TMP" $__CONFDIR/$NAME $__PKGSTATEDIR/$NAME.ctx
- userdel -r $NAME
- exit $RETVAL
- fi
- fi
-fi
-
-if [ -d "$__DEFAULT_VSERVERDIR/$NAME" ] ; then
- # Fix permissions
- chmod 755 "$__DEFAULT_VSERVERDIR/$NAME"
-
- # Add user in vserver
- $_VSERVER ----insecure $NAME suexec root sh -c \
- "groupadd -g $GROUPID $GROUPNAME ; useradd -u $USERID -g $GROUPID -p '' $NAME"
-
- # Add an unrestricted entry to /etc/sudoers file
- if [ -f "$__DEFAULT_VSERVERDIR/$NAME/etc/sudoers" ] && \
- ! grep -q "^$NAME" "$__DEFAULT_VSERVERDIR/$NAME/etc/sudoers" ; then
- echo "$NAME ALL=(ALL) ALL" >> "$__DEFAULT_VSERVERDIR/$NAME/etc/sudoers"
- fi
-fi
-
-exit 0
+++ /dev/null
-#!/bin/bash
-#
-# userdel(8) wrapper for vservers
-#
-# Copyright (c) 2004 The Trustees of Princeton University (Trustees).
-#
-# $Id: vuserdel,v 1.11 2007/06/29 14:13:01 dhozac Exp $
-#
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo "Can not find util-vserver installation; aborting..."
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-usage()
-{
- echo "usage: $0 name"
- exit 1
-}
-
-[ -z "$1" ] && usage
-[ "$1" == "--static" ] && { STATIC=yes; shift; }
-NAME=$1
-
-# read config file to get context ID
-CTX=`cat $__CONFDIR/$NAME/context`
-
-# don't bother stopping gracefully, just kill all the processes
-chcontext --silent --secure --ctx $CTX $__LEGACYDIR/vserverkillall
-
-# unmount any directories in vserver that are mount points
-for d in `sed -ne "s%^[^ ]* \($__DEFAULT_VSERVERDIR/$NAME/[^ ]*\) .*%\1%p" /proc/mounts`
-do
- # use echo -e to turn escaped whitespace back into regular chars
- # be careful about embedded backquotes here (i think we're safe)
- dir=`echo -e "$d"`
- echo "unmounting $dir"
- umount -l "$dir"
-done
-
-# delete user
-[ -z "$STATIC" ] && userdel -r $NAME
-
-# remove vserver configuration directory
-rm -rf /etc/vservers/$NAME
-
-# remove vserver profile
-rm -f /var/run/vservers/$NAME.ctx
-
-# destroy vserver
-if [ -d $__DEFAULT_VSERVERDIR/$NAME ] ; then
- TMP=$(mktemp -d "$__DEFAULT_VSERVERDIR/.vtmp/$NAME.XXXXXX")
- mv "$__DEFAULT_VSERVERDIR/$NAME" "$TMP"
- rm -rf "$TMP"
-fi
+++ /dev/null
-#! /bin/bash
-# $Id: vyum 1880 2005-03-02 01:24:44Z ensc $
-
-# Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-
-function showHelp()
-{
- echo \
-$"Usage: $0 <vserver-name>* [--all] -- <params>+
-
-Report bugs to <$PACKAGE_BUGREPORT>."
- exit 0
-}
-
-function showVersion()
-{
- echo \
-$"vyum $PACKAGE_VERSION -- yum for vservers
-This program is part of $PACKAGE_STRING
-
-Copyright (C) 2005 Enrico Scholz
-This program is free software; you may redistribute it under the terms of
-the GNU General Public License. This program has absolutely no warranty."
- exit 0
-}
-
-tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
-eval set -- "$tmp"
-
-declare -a send_through yum_opts
-
-while true; do
- case "$1" in
- (--help) showHelp $0 ;;
- (--version) showVersion ;;
- (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;;
- (--quiet|-q) send_through=( "${send_through[@]}" "$1" );;
- (--all) yum_opts=( "${yum_opts[@]}" "$1" );;
- (--) shift; break;;
- (*) echo $"vyum: internal error; arg=='$1'" >&2; exit 1;;
- esac
- shift
-done
-
-VSOMETHING_TITLE=vyum
-VSOMETHING_WORKER=$_VYUM_WORKER
-VSOMETHING_PKGMGMT=1
-
-export VSOMETHING_TITLE VSOMETHING_WORKER VSOMETHING_PKGMGMT
-
-test ${#yum_opts[@]} -eq 0 || yum_opts=( "${yum_opts[@]}" -- )
-exec $_VSOMETHING "${send_through[@]}" yum "${yum_opts[@]}" "$@"
+++ /dev/null
-#! /bin/bash
-# $Id: vyum-worker 2551 2007-06-21 12:56:25Z dhozac $
-
-# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-set -e
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-. "$_LIB_FUNCTIONS"
-
-vserver=$1
-shift
-
-pkgInit "$vserver" rpm yum
-rpmFake.init "$vserver"
-
-test -z "$_YUM" || {
- warning $"The environment variable \$_YUM is not supported anymore; please use \$YUM instead of"
- ${YUM:=$_YUM}
-}
-
-function check(){
- python -c "$1" &>/dev/null || {
- warning "\
-You are using a version of yum which is insecure and broken in chroot
-related operations; either apply the patches shipped in the 'contrib/'
-directory of util-vserver, or ask the author of yum to apply them
-(preferred).
-
-In the meantime, 'vyum' will continue with dirty hacks which might not
-work when the vserver is running and local DOS attacks are possible.
-
-Execution will continue in 5 seconds..."
- sleep 5
- conf=yum-hack.conf
- }
-}
-
-yum=${YUM:-yum}
-conf=yum.conf
-case $($yum --version|tail -n 1) in
- (2.[012345]*)
- check 'import yum,sys; sys.exit(not hasattr(yum.config.yumconf, "getRootedPath"))'
- ;;
- (2.[6789]*|3.[012]*)
- check 'import yum,sys; sys.exit(not hasattr(yum.config.YumConf, "getRootedPath"))'
- ;;
- (*)
- warning "\
-You are using a version of yum which current status is unknown to vyum.
-
-Just to be sure, 'vyum' will use dirty hacks which might not work when
-the vserver is running and local DOS attacks are possible.
-
-Execution will continue in 5 seconds..."
- sleep 5
- conf=yum-hack.conf
- ;;
-esac
-
-rpmFake.exec $yum \
- -c "$YUMETCDIR/${YUM_CONF:-$conf}" \
- --installroot="$VDIR" \
- "$@"
+++ /dev/null
-## $Id: Makefile-files 2589 2007-08-16 03:06:50Z dhozac $ -*- makefile -*-
-
-## Copyright (C) 2003,2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-src_sbin_CXX_PROGS =
-
-src_pkglib_C99_PROGS = src/vunify src/vcopy src/vclone
-
-
-AM_INSTALLCHECK_STD_OPTIONS_EXEMPT += \
- src/parserpmdump \
- src/showperm \
- src/vcheck \
- src/vreboot \
- src/save_ctxinfo \
- src/mask2prefix \
- src/ifspec \
- src/rebootmgr \
- src/vfiles
-
-DIETPROGS += src/chcontext-compat \
- src/capchroot \
- src/chain-echo \
- src/check-unixfile \
- src/chroot-sh \
- src/filetime \
- src/lockfile \
- src/readlink \
- src/secure-mount \
- src/save_ctxinfo \
- src/mask2prefix \
- src/chbind-compat \
- src/exec-cd \
- src/fakerunlevel \
- src/keep-ctx-alive \
- src/exec-ulimit \
- src/vps \
- src/lsxid \
- src/chxid \
- src/reducecap \
- src/showattr \
- src/setattr \
- src/sigexec \
- src/vattribute \
- src/vlimit \
- src/vnamespace \
- src/vunify \
- src/vuname \
- src/rpm-fake-resolver \
- src/vcontext \
- src/vcopy \
- src/vkill \
- src/vsched \
- src/vshelper-sync \
- src/vrsetup \
- src/vserver-stat \
- src/vserver-info \
- src/vdlimit \
- src/vsh \
- src/vdu \
- src/vwait \
- src/ncontext \
- src/nattribute \
- src/naddress \
- src/vdevmap \
- src/vsysctl \
- src/vclone \
- src/h2ext \
- src/vtag
-
-if ENSC_CAN_BEECRYPT_WITH_DIETLIBC
-DIETPROGS += src/vhashify
-endif
-
-noinst_HEADERS += src/capability-compat.h \
- src/util.h \
- src/fstool.h \
- src/compat-pivot_root.h \
- src/stack-start.h \
- src/vcopy-init.hc \
- src/vunify.h \
- src/vunify-init.hc \
- src/vhashify.h \
- src/vhashify-init.hc \
- src/vserver-visitdir.hc \
- src/context-sync.hc
-
-pkglib_PROGRAMS += src/capchroot \
- src/chain-echo \
- src/chcontext-compat \
- src/check-unixfile \
- src/chroot-sh \
- src/fakerunlevel \
- src/filetime \
- src/keep-ctx-alive \
- src/lockfile \
- src/readlink \
- src/save_ctxinfo \
- src/secure-mount \
- src/mask2prefix \
- src/exec-ulimit \
- src/rpm-fake-resolver \
- src/vshelper-sync \
- src/sigexec \
- src/chbind-compat \
- src/vsysctl \
- src/h2ext \
- $(src_pkglib_C99_X_PROGS) \
- $(src_pkglib_CXX_X_PROGS)
-
-if ENSC_HAVE_C99_COMPILER
-if ENSC_HAVE_BEECRYPT
-pkglib_PROGRAMS += src/vhashify
-endif ENSC_HAVE_BEECRYPT
-endif ENSC_HAVE_C99_COMPILER
-
-legacy_PROGRAMS += src/ifspec \
- src/listdevip \
- src/parserpmdump \
- src/rebootmgr \
- src/showperm \
- src/vreboot
-
-pkglib_LTLIBRARIES += src/rpm-fake.la
-
-sbin_PROGRAMS += src/exec-cd \
- src/lsxid \
- src/chxid \
- src/vps \
- src/showattr \
- src/setattr \
- src/reducecap \
- src/vdu \
- src/vattribute \
- src/vcontext \
- src/vlimit \
- src/vkill \
- src/vnamespace \
- src/vrsetup \
- src/vsched \
- src/vserver-stat \
- src/vserver-info \
- src/vuname \
- src/vsh \
- src/vwait \
- src/ncontext \
- src/nattribute \
- src/naddress \
- src/vdevmap \
- src/vtag \
- $(src_sbin_CXX_X_PROGS)
-
-if ENSC_HAVE_C99_COMPILER
-sbin_PROGRAMS += src/vdlimit
-endif
-
-if ENSC_HAVE_LIBNL
-sbin_PROGRAMS += src/vip6-autod
-endif
-
-
-src_capchroot_SOURCES = src/capchroot.c
-src_capchroot_LDADD = $(VSERVER_LDADDS)
-src_capchroot_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_chbind_compat_SOURCES = src/chbind.c
-src_chbind_compat_LDADD = $(VSERVER_LDADDS)
-src_chbind_compat_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_chcontext_compat_SOURCES = src/chcontext.c
-src_chcontext_compat_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_chcontext_compat_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vcontext_SOURCES = src/vcontext.c src/vlogin.c
-src_vcontext_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_vcontext_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vsched_SOURCES = src/vsched.c
-src_vsched_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_vsched_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_filetime_SOURCES = src/filetime.c
-src_filetime_LDADD = $(VSERVER_LDADDS)
-src_filetime_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_chain_echo_SOURCES = src/chain-echo.c
-src_chroot_sh_SOURCES = src/chroot-sh.c
-src_chroot_sh_LDADD = $(LIBINTERNAL)
-src_exec_cd_SOURCES = src/exec-cd.c
-src_fakerunlevel_SOURCES = src/fakerunlevel.c
-src_ifspec_SOURCES = src/ifspec.c
-src_listdevip_SOURCES = src/listdevip.c
-src_lockfile_SOURCES = src/lockfile.c
-src_parserpmdump_SOURCES = src/parserpmdump.c
-src_readlink_SOURCES = src/readlink.c
-src_rebootmgr_SOURCES = src/rebootmgr.c
-src_exec_ulimit_SOURCES = src/exec-ulimit.c
-src_vshelper_sync_SOURCES = src/vshelper-sync.c
-
-src_reducecap_SOURCES = src/reducecap.c
-src_reducecap_LDADD = $(VSERVER_LDADDS)
-src_reducecap_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vkill_SOURCES = src/vkill.c
-src_vkill_LDADD = $(VSERVER_LDADDS)
-src_vkill_LDFLAGS = $(VSERVER_LDFLGS) $(LIBINTERNAL)
-src_vkill_CPPFLAGS = $(AM_CPPFLAGS) -DLEGACYDIR=\"$(legacydir)\"
-
-src_vlimit_SOURCES = src/vlimit.c
-src_vlimit_LDADD = $(VSERVER_LDADDS)
-src_vlimit_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_save_ctxinfo_SOURCES = src/save_ctxinfo.c
-src_save_ctxinfo_LDADD = $(VSERVER_LDADDS)
-src_save_ctxinfo_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vdu_SOURCES = src/vdu.c
-src_vdu_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_vdu_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vreboot_SOURCES = src/vreboot.c
-
-src_secure_mount_SOURCES = src/secure-mount.c
-src_secure_mount_LDADD = $(VSERVER_LDADDS)
-src_secure_mount_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vattribute_SOURCES = src/vattribute.c
-src_vattribute_LDADD = $(VSERVER_LDADDS)
-src_vattribute_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vnamespace_SOURCES = src/vnamespace.c
-src_vnamespace_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_vnamespace_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_rpm_fake_resolver_SOURCES = src/rpm-fake-resolver.c
-src_rpm_fake_resolver_LDADD = $(VSERVER_LDADDS)
-src_rpm_fake_resolver_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_mask2prefix_SOURCES = src/mask2prefix.c
-
-src_vps_SOURCES = src/vps.c
-src_vps_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_vps_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vserver_info_SOURCES = src/vserver-info.c
-src_vserver_info_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_vserver_info_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vserver_stat_SOURCES = src/vserver-stat.c
-src_vserver_stat_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS) $(LIBENSCVECTOR)
-src_vserver_stat_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_lsxid_SOURCES = src/fstool.c src/lsxid.c
-src_lsxid_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS) $(LIBENSCVECTOR)
-src_lsxid_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_chxid_SOURCES = src/fstool.c src/chxid.c
-src_chxid_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_chxid_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_showattr_SOURCES = src/fstool.c src/showattr.c
-src_showattr_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_showattr_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_setattr_SOURCES = src/fstool.c src/setattr.c
-src_setattr_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_setattr_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_keep_ctx_alive_SOURCES = src/keep-ctx-alive.c
-src_keep_ctx_alive_LDADD = $(VSERVER_LDADDS)
-src_keep_ctx_alive_LDFLAGS = $(VSERVER_LDFLGS)
-
-
-src_vcopy_SOURCES = src/vcopy.c
-src_vcopy_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_vcopy_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vunify_SOURCES = src/vunify.c
-src_vunify_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_vunify_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vhashify_SOURCES = src/vhashify.c
-if ENSC_CAN_BEECRYPT_WITH_DIETLIBC
-src_vhashify_LDADD = $(LIBINTERNAL) $(LIBENSCVECTOR) -lbeecrypt $(VSERVER_LDADDS)
-src_vhashify_LDFLAGS = $(VSERVER_LDFLGS)
-else
-src_vhashify_LDADD = $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) -lbeecrypt
-src_vhashify_LDFLAGS =
-endif
-
-src_vuname_SOURCES = src/vuname.c
-src_vuname_LDADD = $(VSERVER_LDADDS)
-src_vuname_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_rpm_fake_la_SOURCES = src/rpm-fake.c
-src_rpm_fake_la_CFLAGS = $(AM_CFLAGS)
-src_rpm_fake_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
-src_rpm_fake_la_LIBADD = $(LIBVSERVER_GLIBC) -ldl
-
-src_vdlimit_SOURCES = src/vdlimit.c
-src_vdlimit_LDADD = $(VSERVER_LDADDS)
-src_vdlimit_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vsh_SOURCES = src/vsh.c
-src_vsh_LDADD = $(VSERVER_LDADDS)
-src_vsh_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vwait_SOURCES = src/vwait.c
-src_vwait_LDADD = $(VSERVER_LDADDS)
-src_vwait_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_ncontext_SOURCES = src/ncontext.c
-src_ncontext_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_ncontext_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_nattribute_SOURCES = src/nattribute.c
-src_nattribute_LDADD = $(VSERVER_LDADDS)
-src_nattribute_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_naddress_SOURCES = src/naddress.c
-src_naddress_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_naddress_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vdevmap_SOURCES = src/vdevmap.c
-src_vdevmap_LDADD = $(VSERVER_LDADDS) $(LIBINTERNAL)
-src_vdevmap_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vsysctl_SOURCES = src/vsysctl.c
-src_vsysctl_LDADD = $(VSERVER_LDADDS)
-src_vsysctl_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vclone_SOURCES = src/vclone.c
-src_vclone_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_vclone_LDFLAGS = $(VSERVER_LDLFGS)
-
-src_vip6_autod_SOURCES = src/vip6-autod.c
-src_vip6_autod_LDADD = $(VSERVER_LDADDS) -lnl
-src_vip6_autod_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_h2ext_SOURCES = src/h2ext.c
-src_h2ext_LDADD = $(LIBINTERNAL) $(VSERVER_LDADDS)
-src_h2ext_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_vtag_SOURCES = src/vtag.c
-src_vtag_LDADD = $(VSERVER_LDADDS)
-src_vtag_LDFLAGS = $(VSERVER_LDADDS)
-
-EXTRA_PROGRAMS += $(src_sbin_CXX_PROGS) $(src_pkglib_CXX_PROGS)
-
-TESTS_ENVIRONMENT += srctestsuitedir=$(top_builddir)/src/testsuite
-
-if ENSC_HAVE_C99_COMPILER
-src_sbin_C99_X_PROGS = $(src_sbin_C99_PROGS)
-src_pkglib_C99_X_PROGS = $(src_pkglib_C99_PROGS)
-else
-src_sbin_C99_X_PROGS =
-src_pkglib_C99_X_PROGS =
-endif
-
-if ENSC_HAVE_CXX_COMPILER
-src_sbin_CXX_X_PROGS = $(src_sbin_CXX_PROGS)
-src_pkglib_CXX_X_PROGS = $(src_pkglib_CXX_PROGS)
-else
-src_sbin_CXX_X_PROGS =
-src_pkglib_CXX_X_PROGS =
-endif
-
-install-exec-hook: src_install_exec_hook
-
-src_install_exec_hook:
- -rm -f $(DESTDIR)$(pkglibdir)/rpm-fake.a $(DESTDIR)$(pkglibdir)/rpm-fake.la
-
-include $(top_srcdir)/src/testsuite/Makefile-files
+++ /dev/null
-// $Id: capability-compat.h 1822 2005-01-27 20:38:12Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef HAVE_SYS_CAPABILITY_H
-# include <sys/capability.h>
-#else
-# include <linux/capability.h>
-
-extern int capget (struct __user_cap_header_struct *, struct __user_cap_data_struct *);
-extern int capset (struct __user_cap_header_struct *, struct __user_cap_data_struct *);
-
-#endif
+++ /dev/null
-// $Id: capchroot.c 2403 2006-11-24 23:06:08Z dhozac $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on capchroot.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- This chroot command does very little. Once the chroot
- system call is executed, it (option) remove the CAP_SYS_CHROOT
- capability. Then it executes its argument
-*/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "util.h"
-
-#include <stdio.h>
-#include <string.h>
-#include <pwd.h>
-#include <grp.h>
-#include <errno.h>
-#include <unistd.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <getopt.h>
-#include <libgen.h>
-
-#define ENSC_WRAPPERS_PREFIX "capchroot: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_NOCHROOT 0x2000
-#define CMD_SUID 0x2001
-
-int wrapper_exit_code = 255;
-
-static struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "nochroot", no_argument, 0, CMD_NOCHROOT },
- { "suid", required_argument, 0, CMD_SUID },
- {0,0,0,0}
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- VSERVER_DECLARE_CMD(cmd);
-
-#if !defined(VC_ENABLE_API_COMPAT) && !defined(VC_ENABLE_API_LEGACY)
- WRITE_MSG(1, "ERROR: tools were built without legacy API support; capchroot will not work!\n\n");
-#endif
-
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --nochroot [--suid <user>] [--] <directory> <command> <args>*\n"
- "\n"
- "Options:\n"
- " --nochroot ... remove the CAP_SYS_CHROOT capability\n"
- " after the chroot system call.\n"
- " --suid <user> ... switch to a different user (in the vserver\n"
- " context) before executing the command.\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "capchroot " VERSION " -- a capability aware chroot\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static UNUSED void
-setUser(char const *user)
-{
- struct passwd *p = 0;
- if (user!=0 && strcmp(user, "root")!=0 && strcmp(user, "0")!=0) {
- errno = 0;
- p = getpwnam(user);
- if (p==0) {
- if (errno==0) errno = ENOENT;
- PERROR_Q(ENSC_WRAPPERS_PREFIX "getpwnam", user);
- exit(wrapper_exit_code);
- }
- }
-
- if (p!=0) {
- Esetgroups(1, &p->pw_gid);
- Esetgid(p->pw_gid);
- Esetuid(p->pw_uid);
-
- if (getuid()!=p->pw_uid || getgid()!=p->pw_gid) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "Something went wrong while changing uid; expected uid/gid do not match the actual one\n");
- exit(wrapper_exit_code);
- }
- }
-}
-
-int main (int argc, char *argv[])
-{
- bool nochroot = false;
- char const * suid_user = 0;
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_NOCHROOT : nochroot = true; break;
- case CMD_SUID : suid_user = optarg; break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
- if (optind==argc)
- WRITE_MSG(2, "No directory specified; try '--help' for more information\n");
- else if (optind+1==argc)
- WRITE_MSG(2, "No command specified; try '--help' for more information\n");
- else {
- // We resolve the UID before doing the chroot.
- // If we do the getpwnam after the chroot, we will end
- // up loading shared object from the vserver.
- // This is causing two kind of problem: Incompatibilities
- // and also a security flaw. The shared objects in the vserver
- // may be tweaked to get control of the root server ...
- getpwnam("root");
- Echroot(argv[optind]);
- if (nochroot)
- Evc_new_s_context(VC_SAMECTX, 1<<VC_CAP_SYS_CHROOT,0);
- setUser(suid_user);
- EexecvpD(argv[optind+1], argv+optind+1);
- }
-#else
- WRITE_MSG(2, "capchroot: tools were built without legacy API support; can not continue\n");
-#endif
-
- return EXIT_FAILURE;
-}
+++ /dev/null
-// $Id: chain-echo.c 1469 2004-04-20 17:54:40Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "util.h"
-
-#include <errno.h>
-#include <string.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-#define ENSC_WRAPPERS_PREFIX "chain-echo: "
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_IO 1
-#include <wrappers.h>
-
-int wrapper_exit_code = 255;
-
-static void
-showHelp(char const *cmd)
-{
- WRITE_MSG(1, "Usage: ");
- WRITE_STR(1, cmd);
- WRITE_MSG(1,
- " [--] <file> <data> <command> <args>*\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "chain-echo " VERSION " -- puts data into a file within a command-chain\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-int main(int argc, char *argv[])
-{
- int idx = 1;
- int fd;
-
- if (argc>=2) {
- if (strcmp(argv[1], "--help") ==0) showHelp(argv[0]);
- if (strcmp(argv[1], "--version")==0) showVersion();
- if (strcmp(argv[1], "--") ==0) ++idx;
- }
-
- if (argc<idx+3) {
- WRITE_MSG(2, "Not enough parameters; use '--help' for more information\n");
- return wrapper_exit_code;
- }
-
- if (argv[idx][0]=='\0')
- fd = 1;
- else {
- fd = Eopen(argv[idx], O_WRONLY|O_NOFOLLOW, 0600);
- Efcntl(fd, F_SETFD, FD_CLOEXEC);
- }
-
- if (argv[idx+1][0]!='\0')
- EwriteAll(fd, argv[idx+1], strlen(argv[idx+1]));
-
- Eexecv(argv[idx+2], argv+idx+2);
-}
+++ /dev/null
-// $Id: chbind.c 2588 2007-08-16 02:31:33Z dhozac $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on chbind.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "util.h"
-
-#include <lib/internal.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <netdb.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <net/if.h>
-#include <unistd.h>
-#include <errno.h>
-#include <getopt.h>
-#include <fcntl.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-#define ENSC_WRAPPERS_PREFIX "chbind: "
-#define ENSC_WRAPPERS_IO 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include "wrappers.h"
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-
-#define CMD_SILENT 0x2000
-#define CMD_IP 0x2001
-#define CMD_BCAST 0x2002
-#define CMD_NID 0x2003
-
-int wrapper_exit_code = 255;
-
-
-static struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "silent", no_argument, 0, CMD_SILENT },
- { "ip", required_argument, 0, CMD_IP },
- { "bcast", required_argument, 0, CMD_BCAST },
- { "nid", required_argument, 0, CMD_NID },
- { 0,0,0,0 }
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--silent] [--nid <nid>] [--ip <ip_num>[/<mask>]] [--bcast <broadcast>] [--] <commands> <args>*\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "chbind " VERSION " -- bind to an ip and execute a program\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003,2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-/*
- Check if a network device exist in /proc/net/dev.
- This is used because ifconfig_ioctl triggers modprobe if requesting
- information about non existant devices.
-
- Return != 0 if the device exist.
-*/
-static bool
-existsDevice(char const *dev_raw)
-{
- size_t buf_size=8192;
- char dev[strlen(dev_raw)+2];
-
- strcpy(dev, dev_raw);
- strcat(dev, ":");
- for (;;) {
- char buf[buf_size];
- char * pos;
- bool too_small;
- int fd=open("/proc/net/dev", O_RDONLY);
-
- if (fd==-1) return false;
- too_small = EreadAll(fd, buf, buf_size);
- close(fd);
-
- if (too_small) {
- buf_size *= 2;
- continue;
- }
-
- pos = strstr(buf, dev);
- return (pos && (pos==buf || pos[-1]==' ' || pos[-1]=='\n'));
- }
-}
-
-static int ifconfig_ioctl(
- int fd,
- const char *ifname,
- int cmd,
- struct ifreq *ifr)
-{
- strcpy(ifr->ifr_name, ifname);
- return ioctl(fd, cmd,ifr);
-}
-
-/*
- Fetch the IP number of an interface from the kernel.
- Assume the device is already available in the kernel
- Return -1 if any error.
-*/
-int ifconfig_getaddr (
- const char *ifname,
- uint32_t *addr,
- uint32_t *mask,
- uint32_t *bcast)
-{
- int ret = -1;
- if (existsDevice(ifname)){
- int skfd = socket(AF_INET, SOCK_DGRAM, 0);
- *addr = 0;
- *bcast = 0xffffffff;
- if (skfd != -1){
- struct ifreq ifr;
- if (ifconfig_ioctl(skfd,ifname,SIOCGIFADDR, &ifr) >= 0){
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifr.ifr_addr;
- *addr = sin->sin_addr.s_addr;
- ret = 0;
- }
- if (ifconfig_ioctl(skfd,ifname,SIOCGIFNETMASK, &ifr) >= 0){
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifr.ifr_addr;
- *mask = sin->sin_addr.s_addr;
- ret = 0;
- }
- if (ifconfig_ioctl(skfd,ifname,SIOCGIFBRDADDR, &ifr) >= 0){
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifr.ifr_addr;
- *bcast = sin->sin_addr.s_addr;
- ret = 0;
- }
- close (skfd);
- }
- }
- return ret;
-}
-
-static void
-readIP(char const *str, struct vc_ip_mask_pair *ip, uint32_t *bcast)
-{
- if (ifconfig_getaddr(str, &ip->ip, &ip->mask, bcast)==-1) {
- char *pt;
- char tmpopt[strlen(str)+1];
- struct hostent *h;
-
- strcpy(tmpopt,str);
- pt = strchr(tmpopt,'/');
-
- if (pt==0)
- ip->mask = ntohl(0xffffff00);
- else {
- *pt++ = '\0';
-
- // Ok, we have a network size, not a netmask
- if (strchr(pt,'.')==0) {
- int sz = atoi(pt);
- ;
- for (ip->mask = 0; sz>0; --sz) {
- ip->mask >>= 1;
- ip->mask |= 0x80000000;
- }
- ip->mask = ntohl(ip->mask);
- }
- else {
- struct hostent *h = gethostbyname (pt);
- if (h==0) {
- WRITE_MSG(2, "Invalid netmask '");
- WRITE_STR(2, pt);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-
- memcpy (&ip->mask, h->h_addr, sizeof(ip->mask));
- }
- }
-
- h = gethostbyname (tmpopt);
- if (h==0) {
- WRITE_MSG(2, "Invalid IP number or host name '");
- WRITE_STR(2, tmpopt);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-
- memcpy (&ip->ip, h->h_addr,sizeof(ip->ip));
- }
-}
-
-static void
-readBcast(char const *str, uint32_t *bcast)
-{
- uint32_t tmp;
- if (ifconfig_getaddr(str, &tmp, &tmp, bcast)==-1){
- struct hostent *h = gethostbyname (str);
- if (h==0){
- WRITE_MSG(2, "Invalid broadcast number '");
- WRITE_STR(2, optarg);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
- memcpy (bcast, h->h_addr,sizeof(*bcast));
- }
-}
-
-int main (int argc, char *argv[])
-{
- size_t const nb_ipv4root = vc_get_nb_ipv4root();
- bool is_silent = false;
- struct vc_ip_mask_pair ips[nb_ipv4root];
- size_t nbaddrs = 0;
- uint32_t bcast = 0xffffffff;
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_SILENT : is_silent = true; break;
- case CMD_BCAST : readBcast(optarg, &bcast); break;
- case CMD_NID : WRITE_MSG(2, "WARNING: --nid is not supported by this version\n"); break;
- case CMD_IP :
- if (nbaddrs>=nb_ipv4root) {
- WRITE_MSG(2, "Too many IP numbers, max 16\n");
- exit(wrapper_exit_code);
- }
- readIP(optarg, ips+nbaddrs, &bcast);
- ++nbaddrs;
- break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- exit(wrapper_exit_code);
- break;
- }
- }
-
- if (optind==argc) {
- WRITE_MSG(2, "No command given; try '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
-#if !defined(VC_ENABLE_API_COMPAT) && !defined(VC_ENABLE_API_LEGACY)
-# warning building a dummy chbind-compat with no available APIs
-#endif
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
- if (vc_set_ipv4root(bcast,nbaddrs,ips)!=0) {
- perror("chbind: vc_set_ipv4root()");
- exit(wrapper_exit_code);
- }
-#else
- {
- WRITE_MSG(2, "chbind: kernel does not provide network isolation\n");
- exit(wrapper_exit_code);
- }
-#endif
-
- if (!is_silent) {
- size_t i;
-
- WRITE_MSG(1, "ipv4root is now");
- for (i=0; i<nbaddrs; ++i) {
- WRITE_MSG(1, " ");
- WRITE_STR(1, inet_ntoa(*reinterpret_cast(struct in_addr *)(&ips[i].ip)));
- }
- WRITE_MSG(1, "\n");
- }
-
- Eexecvp (argv[optind],argv+optind);
- return EXIT_SUCCESS;
-}
-
-#ifdef ENSC_TESTSUITE
-#include <assert.h>
-
-void test()
-{
- struct vc_ip_mask_pair ip;
- uint32_t bcast;
-
- bcast = 0;
- readIP("1.2.3.4", &ip, &bcast);
- assert(ip.ip==ntohl(0x01020304) && ip.mask==ntohl(0xffffff00) && bcast==0);
-
- readIP("1.2.3.4/8", &ip, &bcast);
- assert(ip.ip==ntohl(0x01020304) && ip.mask==ntohl(0xff000000) && bcast==0);
-
- readIP("1.2.3.4/255.255.0.0", &ip, &bcast);
- assert(ip.ip==ntohl(0x01020304) && ip.mask==ntohl(0xffff0000) && bcast==0);
-
- readIP("localhost", &ip, &bcast);
- assert(ip.ip==ntohl(0x7f000001) && ip.mask==ntohl(0xffffff00) && bcast==0);
-
-#if 0
- if (ifconfig_getaddr("lo", &tmp, &tmp, &tmp)!=-1) {
- readIP("lo", &ip, &bcast);
- assert(ip.ip==ntohl(0x7f000001) && ip.mask==ntohl(0xff000000) && bcast==ntohl(0x7fffffff));
- }
-#endif
-}
-#endif
+++ /dev/null
-// $Id: chcontext.c 2403 2006-11-24 23:06:08Z dhozac $
-
-// Copyright (C) 2003,2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on chcontext.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- chcontext is a wrapper to user the new_s_context system call. It
- does little more than mapping command line option to the system call
- arguments.
-*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "vserver.h"
-#include "internal.h"
-#include "lib_internal/jail.h"
-
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <getopt.h>
-#include <assert.h>
-#include <fcntl.h>
-#include <libgen.h>
-#include <signal.h>
-
-#define ENSC_WRAPPERS_PREFIX "chcontext: "
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_CAP 0x4000
-#define CMD_CTX 0x4001
-#define CMD_DISCONNECT 0x4002
-#define CMD_DOMAINNAME 0x4003
-#define CMD_FLAG 0x4004
-#define CMD_HOSTNAME 0x4005
-#define CMD_SECURE 0x4006
-#define CMD_SILENT 0x4007
-
-int wrapper_exit_code = 255;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "cap", required_argument, 0, CMD_CAP },
- { "ctx", required_argument, 0, CMD_CTX },
- { "xid", required_argument, 0, CMD_CTX },
- { "disconnect", no_argument, 0, CMD_DISCONNECT },
- { "domainname", required_argument, 0, CMD_DOMAINNAME },
- { "flag", required_argument, 0, CMD_FLAG },
- { "hostname", required_argument, 0, CMD_HOSTNAME },
- { "secure", no_argument, 0, CMD_SECURE },
- { "silent", no_argument, 0, CMD_SILENT },
- { 0,0,0,0 }
-};
-
-struct Arguments {
- size_t nbctx;
- xid_t ctxs[16];
- bool do_disconnect;
- bool do_silent;
- unsigned int flags;
- uint32_t remove_caps;
- uint32_t add_caps;
- char const * hostname;
- char const * domainname;
-};
-
-static struct Arguments const * global_args = 0;
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- VSERVER_DECLARE_CMD(cmd);
-
-#if !defined(VC_ENABLE_API_COMPAT) && !defined(VC_ENABLE_API_LEGACY)
- WRITE_MSG(1, "ERROR: tools were built without legacy API support; chcontext will not work!\n\n");
-#endif
-
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--cap [!]<cap_name>] [--secure] [--xid <num>] [--disconnect]\n"
- " [--domainname <name>] [--hostname <name>] [--flag <flags>+]\n"
- " [--silent] [--] command arguments ...\n"
- "\n"
- "chcontext allocate a new security context and executes\n"
- "a command in that context.\n"
- "By default, a new/unused context is allocated\n"
- "\n"
- "--cap CAP_NAME\n"
- " Add a capability from the command. This option may be\n"
- " repeated several time.\n"
- " See /usr/include/linux/capability.h\n"
- " In general, this option is used with the --secure option\n"
- " --secure removes most critical capabilities and --cap\n"
- " adds specific ones.\n"
- "\n"
-
- "--cap !CAP_NAME\n"
- " Remove a capability from the command. This option may be\n"
- " repeated several time.\n"
- " See /usr/include/linux/capability.h\n"
- "\n"
- "--xid num\n"
- " Select the context. On root in context 0 is allowed to\n"
- " select a specific context.\n"
- " Context number 1 is special. It can see all processes\n"
- " in any contexts, but can't kill them though.\n"
- " Option --xid may be repeated several times to specify up to 16 contexts.\n"
-
- "--disconnect\n"
- " Start the command in background and make the process\n"
- " a child of process 1.\n"
-
- "--domainname new_domainname\n"
- " Set the domainname (NIS) in the new security context.\n"
- " Use \"none\" to unset the domain name.\n"
-
- "--flag\n"
- " Set one flag in the new or current security context. The following\n"
- " flags are supported. The option may be used several time.\n"
- "\n"
- " fakeinit: The new process will believe it is process number 1.\n"
- " Useful to run a real /sbin/init in a vserver.\n"
- " lock: The new process is trapped and can't use chcontext anymore.\n"
- " sched: The new process and its children will share a common \n"
- " execution priority.\n"
- " nproc: Limit the number of process in the vserver according to\n"
- " ulimit setting. Normally, ulimit is a per user thing.\n"
- " With this flag, it becomes a per vserver thing.\n"
- " private: No one can join this security context once created.\n"
- " ulimit: Apply the current ulimit to the whole context\n"
-
- "--hostname new_hostname\n"
- " Set the hostname in the new security context\n"
- " This is need because if you create a less privileged\n"
- " security context, it may be unable to change its hostname\n"
-
- "--secure\n"
- " Remove all the capabilities to make a virtual server trustable\n"
-
- "--silent\n"
- " Do not print the allocated context number.\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "chcontext-compat " VERSION " -- allocates/enters a security context\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003,2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
-
-static inline void
-setCap(char const *str, uint32_t *add_caps, uint32_t *remove_caps)
-{
- uint32_t *cap;
- int bit;
-
- if (str[0] != '!')
- cap = add_caps;
- else {
- cap = remove_caps;
- str++;
- }
-
- bit = vc_text2cap(str);
-
- if (bit!=-1) *cap |= (1<<bit);
- else {
- WRITE_MSG(2, "Unknown capability '");
- WRITE_STR(2, str);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-}
-
-static inline void
-setFlags(char const *str, uint32_t *flags)
-{
- struct vc_err_listparser err;
-
- *flags = vc_list2cflag_compat(str, 0, &err);
-
- if (err.ptr!=0) {
- WRITE_MSG(2, "Unknown flag '");
- Vwrite(2, err.ptr, err.len);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-}
-
-static inline ALWAYSINLINE void
-setHostname(char const *name)
-{
- if (name == NULL) return;
-
- if (sethostname(name, strlen(name))==-1) {
- perror("chcontext: sethostname()");
- exit(255);
- }
- if (!global_args->do_silent) {
- WRITE_MSG(1, "Host name is now ");
- WRITE_STR(1, name);
- WRITE_MSG(1, "\n");
- }
-}
-
-static inline ALWAYSINLINE void
-setDomainname(char const *name)
-{
- if (name == NULL) return;
-
- if (setdomainname(name, strlen(name))==-1) {
- perror("chcontext: setdomainname()");
- exit(255);
- }
- if (!global_args->do_silent) {
- WRITE_MSG(1, "Domain name is now ");
- WRITE_STR(1, name);
- WRITE_MSG(1, "\n");
- }
-}
-
-static inline ALWAYSINLINE void
-tellContext(xid_t ctx)
-{
- char buf[sizeof(xid_t)*3+2];
- size_t l;
-
- if (global_args->do_silent) return;
-
- l = utilvserver_fmt_long(buf,ctx);
-
- WRITE_MSG(1, "New security context is ");
- Vwrite(1, buf, l);
- WRITE_MSG(1, "\n");
-}
-
-#include "context-sync.hc"
-
-#endif
-
-
-int main (int argc, char *argv[])
-{
- struct Arguments args = {
- .nbctx = 0,
- .do_disconnect = false,
- .do_silent = false,
- .flags = 0,
- .remove_caps = 0,
- .add_caps = 0,
- .hostname = 0,
- .domainname = 0
- };
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
- xid_t newctx;
- int xflags;
- int p[2][2];
- pid_t pid;
-#endif
-
- global_args = &args;
- signal(SIGCHLD, SIG_DFL);
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_DISCONNECT : args.do_disconnect = true; break;
- case CMD_SILENT : args.do_silent = true; break;
- case CMD_DOMAINNAME : args.domainname = optarg; break;
- case CMD_HOSTNAME : args.hostname = optarg; break;
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
- case CMD_CAP :
- setCap(optarg, &args.add_caps, &args.remove_caps);
- break;
- case CMD_SECURE :
- args.remove_caps |= vc_get_insecurebcaps();
- break;
- case CMD_FLAG :
- setFlags(optarg, &args.flags);
- break;
- case CMD_CTX :
- if (args.nbctx>0)
- WRITE_MSG(2, "WARNING: More than one ctx not supported by this version\n");
- if (args.nbctx>=DIM_OF(args.ctxs)) {
- WRITE_MSG(2, "Too many contexts given\n");
- exit(255);
- }
- args.ctxs[args.nbctx++] = Evc_xidopt2xid(optarg, true);
- break;
-#else
- case CMD_CAP :
- case CMD_SECURE :
- case CMD_FLAG :
- case CMD_CTX : break;
-#endif
-
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return 255;
- break;
- }
- }
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
- if (optind>=argc) {
- WRITE_MSG(2, "No command given; use '--help' for more information.\n");
- exit(255);
- }
-
- if (args.domainname && strcmp(args.domainname, "none")==0)
- args.domainname = "";
-
- if (args.nbctx == 0)
- args.ctxs[args.nbctx++] = VC_DYNAMIC_XID;
-
- xflags = args.flags & S_CTX_INFO_INIT;
- args.flags &= ~S_CTX_INFO_INIT;
-
- pid = initSync(p, args.do_disconnect);
- if (pid==0) {
- doSyncStage0(p, args.do_disconnect);
-
- newctx = Evc_new_s_context(args.ctxs[0],0,args.flags);
- args.remove_caps &= (~args.add_caps);
- setHostname(args.hostname);
- setDomainname(args.domainname);
-
- if (args.remove_caps!=0 || xflags!=0)
- Evc_new_s_context (VC_SAMECTX,args.remove_caps,xflags);
- tellContext(args.ctxs[0]==VC_DYNAMIC_XID ? newctx : args.ctxs[0]);
-
- doSyncStage1(p, args.do_disconnect);
- execvp (argv[optind],argv+optind);
- doSyncStage2(p, args.do_disconnect);
-
- PERROR_Q("chcontext: execvp", argv[optind]);
- exit(255);
- }
-
- waitOnSync(pid, p, args.ctxs[0]!=VC_DYNAMIC_XID);
- return EXIT_SUCCESS;
-#else
- WRITE_MSG(2, "chcontext: tools were built without legacy API support; can not continue\n");
- return EXIT_FAILURE;
-#endif
-}
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
-
-#ifdef ENSC_TESTSUITE
-#define FLAG_TEST(STR,EXP) \
- { \
- uint32_t flag=0; \
- setFlags(STR, &flag); \
- assert(flag==(EXP)); \
- }
-
-#define CAP_TEST(STR,EXP_ADD,EXP_DEL) \
- { \
- uint32_t add=0,del=0; \
- setCap(STR, &add, &del); \
- assert(add==(EXP_ADD)); \
- assert(del==(EXP_DEL)); \
- }
-
-void
-test()
-{
- FLAG_TEST("lock", 1);
- FLAG_TEST("lock,sched", 3);
-
- CAP_TEST("CHOWN", 1, 0);
- CAP_TEST("CAP_CHOWN", 1, 0);
- CAP_TEST("!CHOWN", 0, 1);
- CAP_TEST("!CAP_CHOWN", 0, 1);
-}
-#endif
-
-#else
-void test() {}
-#endif
+++ /dev/null
-// $Id: check-unixfile.c 1814 2005-01-27 19:13:04Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-
-#include <fcntl.h>
-#include <errno.h>
-#include <unistd.h>
-#include <sys/mman.h>
-#include <limits.h>
-
-#define ENSC_WRAPPERS_PREFIX "check-unixfile: "
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-int wrapper_exit_code = 255;
-
-static void
-showHelp(int fd, char const *cmd)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--] <file>+\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "check-unixfile " VERSION " -- execute some basic fileformat checks\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2005 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static bool
-checkFile(char const *fname)
-{
- int fd = Eopen(fname, O_RDONLY, 0);
- off_t l = Elseek(fd, 0, SEEK_END);
- char const * data = 0;
- bool res = true;
-
- if (l>100*1024*1024) {
- WRITE_MSG(2, "WARNING: '");
- WRITE_STR(2, fname);
- WRITE_STR(2, "' is too large for a vserver configuration file\n");
- res = false;
- }
- else if (l>0) {
- data = mmap(0, l, PROT_READ, MAP_PRIVATE, fd, 0);
- if (data==0) {
- perror("mmap()");
- exit(wrapper_exit_code);
- }
-
- if (data[l-1]!='\n') {
- WRITE_MSG(2, "WARNING: '");
- WRITE_STR(2, fname);
- WRITE_MSG(2, "' does not end on newline\n");
- res = false;
- }
-
- munmap(const_cast(char *)(data), l);
- }
-
- Eclose(fd);
-
- return res;
-}
-
-int main(int argc, char *argv[])
-{
- int idx = 1;
- bool ok = true;
- bool passed = false;
-
- if (argc>=2) {
- if (strcmp(argv[1], "--help") ==0) showHelp(1, argv[0]);
- if (strcmp(argv[1], "--version")==0) showVersion();
- if (strcmp(argv[1], "--") ==0) ++idx;
- }
-
- for (; idx<argc; ++idx)
- if (checkFile(argv[idx])) passed = true;
- else ok = false;
-
- if (ok) return 0;
- else if (passed) return 2;
- else return 1;
-}
+++ /dev/null
-// $Id: chroot-sh.c 2536 2007-04-27 09:01:20Z hollow $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <lib_internal/util.h>
-
-#include <unistd.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <sys/stat.h>
-
-#define ENSC_WRAPPERS_PREFIX "chroot-sh: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_IO 1
-#define ENSC_WRAPPERS_FCNTL 1
-#include <ensc_wrappers/wrappers.h>
-
-int wrapper_exit_code = EXIT_FAILURE;
-
-static void
-showFD(int fd_in, int fd_out)
-{
- for (;;) {
- char buf[4096];
- char const * ptr=buf;
- ssize_t len;
-
- len = Eread(fd_in, buf, sizeof(buf));
- if (len<=0) break;
-
- EwriteAll(fd_out, ptr, len);
- }
-}
-
-static int
-redirectFileInternal(int argc, char *argv[],
- int mode, bool is_input,
- char const *operation)
-{
- int fd;
-
- if (argc<2) {
- WRITE_MSG(2, "Not enough parameters for '");
- WRITE_STR(2, operation);
- WRITE_MSG(2, "' operation; use '--help' for more information\n");
- return wrapper_exit_code;
- }
-
- fd = EopenD(argv[1], mode, 0644);
- if (is_input) showFD(fd, 1);
- else showFD( 0, fd);
- Eclose(fd);
-
- return EXIT_SUCCESS;
-}
-
-static mode_t
-testInternal(int argc, char *argv[], char const *operation)
-{
- struct stat st;
-
- if (argc<2) {
- WRITE_MSG(2, "Not enough parameters for '");
- WRITE_STR(2, operation);
- WRITE_MSG(2, "' operation; use '--help' for more information\n");
- return wrapper_exit_code;
- }
-
- if (stat(argv[1], &st)==-1) return -1;
- else return st.st_mode;
-}
-
-static int
-execCat(int argc, char *argv[])
-{
- return redirectFileInternal(argc, argv,
- O_RDONLY|O_NOCTTY, true,
- "cat");
-}
-
-static int
-execAppend(int argc, char *argv[])
-{
- return redirectFileInternal(argc, argv,
- O_WRONLY|O_CREAT|O_APPEND, false,
- "append");
-}
-
-static int
-execTruncate(int argc, char *argv[])
-{
- return redirectFileInternal(argc, argv,
- O_WRONLY|O_CREAT|O_TRUNC, false,
- "truncate");
-}
-
-static int
-execRm(int argc, char *argv[])
-{
- int i = 1;
- int res = EXIT_SUCCESS;
-
- if (argc<2) {
- WRITE_MSG(2, "No files specified for 'rm' operation; try '--help' for more information\n");
- return wrapper_exit_code;
- }
-
- for (;i<argc; ++i) {
- if (unlink(argv[i])==-1) {
- PERROR_Q(ENSC_WRAPPERS_PREFIX "unlink", argv[i]);
- res = EXIT_FAILURE;
- }
- }
-
- return res;
-}
-
-static int
-execTestFile(int argc, char *argv[])
-{
- int res = testInternal(argc, argv, "testfile");
-
- return res!=-1 && S_ISREG(res) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
-
-static int
-execMkdir(int argc, char *argv[])
-{
- int i = 1;
- int res = EXIT_SUCCESS;
-
- if (argc<2) {
- WRITE_MSG(2, "No files specified for 'mkdir' operation; try '--help' for more information\n");
- return wrapper_exit_code;
- }
-
- for (;i<argc; ++i) {
- if (mkdir(argv[i], 0755)==-1) {
- PERROR_Q(ENSC_WRAPPERS_PREFIX "mkdir", argv[i]);
- res = EXIT_FAILURE;
- }
- }
-
- return res;
-}
-
-static int
-execChmod(int argc, char *argv[])
-{
- int i = 2;
- int res = EXIT_SUCCESS;
- unsigned long mode;
-
- if (argc<3) {
- WRITE_MSG(2, "No files specified for 'chmod' operation; try '--help' for more information\n");
- return wrapper_exit_code;
- }
-
- if (!isNumberUnsigned(argv[1], &mode, 1)) {
- WRITE_MSG(2, "Invalid mode: '");
- WRITE_STR(2, argv[1]);
- WRITE_MSG(2, "'\n");
- return EXIT_FAILURE;
- }
-
- for (;i<argc; ++i) {
- if (chmod(argv[i], mode)==-1) {
- PERROR_Q(ENSC_WRAPPERS_PREFIX "chmod", argv[i]);
- res = EXIT_FAILURE;
- }
- }
-
- return res;
-}
-
-static int
-execLink(int argc, char *argv[])
-{
- int res = EXIT_SUCCESS;
-
- if (argc!=3) {
- WRITE_MSG(2, "Need exactly two files for 'link' operation; try '--help' for more information\n");
- return wrapper_exit_code;
- }
-
- if (symlink(argv[1], argv[2])==-1) {
- PERROR_Q(ENSC_WRAPPERS_PREFIX "link", argv[1]);
- res = EXIT_FAILURE;
- }
-
- return res;
-}
-
-static struct Command {
- char const *cmd;
- int (*handler)(int argc, char *argv[]);
-} const COMMANDS[] = {
- { "cat", execCat },
- { "append", execAppend },
- { "truncate", execTruncate },
- { "testfile", execTestFile },
- { "rm", execRm },
- { "mkdir", execMkdir },
- { "chmod", execChmod },
- { "link", execLink },
- { 0,0 }
-};
-
-static void
-showHelp()
-{
- WRITE_MSG(1,
- "Usage: chroot-sh "
- " [--] <cmd> <args>*\n\n"
- "This program chroots into the current directory and executes the specified\n"
- "commands there. This means that all used paths are relative to the current\n"
- "directory, and symlinks can point to files under the current path only.\n"
- "\n"
- "The supported commands are:\n"
- " cat <file> ... gives out <file> to stdout\n"
- " append <file> ... appends stdin to <file> which is created when needed\n"
- " truncate <file> ... clear <file> and fill it with stdin; the <file> is\n"
- " created when needed\n"
- " rm <file>+ ... unlink the given files\n"
- " mkdir <file>+ ... create the given directories\n"
- " chmod <mode> <file>+\n"
- " ... change access permissions of files\n"
- " link <src> dst> ... create a symbolic link from <src> to <dst>\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "chroot-sh " VERSION " -- execute commands within a chroot\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2005 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-
-int main(int argc, char *argv[])
-{
- struct Command const *cmd;
- int idx = 1;
-
- if (argc>=2) {
- if (strcmp(argv[idx], "--help") ==0) showHelp();
- if (strcmp(argv[idx], "--version")==0) showVersion();
- if (strcmp(argv[idx], "--")==0) ++idx;
- }
-
- if (argc<idx+1) {
- WRITE_MSG(2, "No command specified; try '--help' for more information\n");
- return wrapper_exit_code;
- }
-
- Echroot(".");
- Echdir("/");
-
- for (cmd=COMMANDS+0; cmd->cmd!=0; ++cmd) {
- if (strcmp(cmd->cmd, argv[idx])==0)
- return cmd->handler(argc-idx, argv+idx);
- }
-
- WRITE_MSG(2, "Invalid command '");
- WRITE_STR(2, argv[idx]);
- WRITE_MSG(2, "'; try '--help' for more information\n");
-
- return wrapper_exit_code;
-}
+++ /dev/null
-// $Id: chxid.c 2473 2007-01-25 09:51:43Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "fstool.h"
-#include "util.h"
-
-#include "lib/vserver.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { 0,0,0,0 }
-};
-
-char const CMDLINE_OPTIONS_SHORT[] = "Rc:xU";
-
-void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " -c <ctx|vserver> [-RxU] [--] <file>+\n\n"
- " Options:\n"
- " -R ... recurse through directories\n"
- " -c ... assign the given context/vserver to the file(s)\n"
- " -x ... do not cross filesystems\n"
- " -U ... skip unified files\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-void
-showVersion()
-{
- WRITE_MSG(1,
- "chxid " VERSION " -- assigns a context to a file\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static inline bool
-isUnified(char const *filename)
-{
- uint_least32_t const V = VC_IATTR_IUNLINK|VC_IATTR_IMMUTABLE;
-
- uint_least32_t flags;
- uint_least32_t mask = V;
-
- if (vc_get_iattr(filename, 0, &flags, &mask)==-1 || (mask & V) != V)
- return false;
-
- return (flags & V)==V ? true : false;
-}
-
-bool
-handleFile(char const *name, char const * display_name)
-{
- if (!global_args->no_unified || !isUnified(name)) {
- int rc = vc_set_iattr(name, global_args->ctx, 0, VC_IATTR_XID);
-
- if (rc==-1) {
- perror(display_name);
- return false;
- }
- }
-
- return true;
-}
-
-void
-fixupParams(struct Arguments UNUSED *args, int argc)
-{
- if (optind==argc) {
- WRITE_MSG(2, "No filename given; use '--help' for more information\n");
- exit(1);
- }
-
- if (args->ctx_str==0) {
- WRITE_MSG(2, "No context given; use '--help' for more information\n");
- exit(1);
- }
-
- args->ctx = vc_xidopt2xid(args->ctx_str, true, 0);
- args->do_display_dir = !args->do_recurse;
- args->do_display_dot = true;
-}
+++ /dev/null
-// $Id: compat-pivot_root.h 2081 2005-05-02 21:44:06Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_COMPAT_PIVOT_ROOT_H
-#define H_UTIL_VSERVER_SRC_COMPAT_PIVOT_ROOT_H
-
-#include <unistd.h>
-#include <errno.h>
-
-#include "syscall-wrap.h"
-
-inline static _syscall2(int,pivot_root,const char *,new_root,const char *,put_old)
-
-#endif // H_UTIL_VSERVER_SRC_COMPAT_PIVOT_ROOT_H
+++ /dev/null
-// $Id: context-sync.hc 2015 2005-04-10 01:01:33Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-/// \args p[0] used for parent -> child sync (child waits till parent is in deathrow)
-/// \args p[1] used for child -> parent sync (recognize execv() errors)
-static inline ALWAYSINLINE int
-initSync(int p[2][2], bool do_disconnect)
-{
- if (!do_disconnect) return 0;
-
- Epipe(p[0]);
- Epipe(p[1]);
- fcntl(p[1][1], F_SETFD, FD_CLOEXEC);
- return Efork();
-}
-
-static inline ALWAYSINLINE void
-doSyncStage0(int p[2][2], bool do_disconnect)
-{
- char c;
- if (!do_disconnect) return;
-
- Eclose(p[0][1]);
- Eread (p[0][0], &c, 1);
- Eclose(p[0][0]);
-}
-
-static inline ALWAYSINLINE void
-doSyncStage1(int p[2][2], bool do_disconnect)
-{
- int fd;
-
- if (!do_disconnect) return;
-
- fd = EopenD("/dev/null", O_RDONLY|O_NONBLOCK, 0);
- (void)setsid(); // ignore error when we are already a session-leader
- Edup2(fd, 0);
- Eclose(p[1][0]);
- if (fd!=0) Eclose(fd);
- Ewrite(p[1][1], ".", 1);
-}
-
-static inline ALWAYSINLINE void
-doSyncStage2(int p[2][2], bool do_disconnect)
-{
- if (!do_disconnect) return;
-
- Ewrite(p[1][1], "X", 1);
-}
-
-/// \args p[0] used for parent -> child sync (child waits till parent is in deathrow)
-/// \args p[1] used for child -> parent sync (recognize execv() errors)
-static void
-waitOnSync(pid_t pid, int p[2][2], bool is_prevent_race)
-{
- char c;
- size_t l;
-
- if (is_prevent_race &&
- !jailIntoTempDir(0)) {
- perror(ENSC_WRAPPERS_PREFIX "jailIntoTempDir()");
- exit(255);
- }
-
- Eclose(p[0][0]);
- Ewrite(p[0][1], "X", 1);
- Eclose(p[0][1]);
-
- Eclose(p[1][1]);
- l = Eread(p[1][0], &c, 1);
- if (l!=1) exitLikeProcess(pid,0, wrapper_exit_code);
- l = Eread(p[1][0], &c, 1);
- if (l!=0) exitLikeProcess(pid,0, wrapper_exit_code);
-}
+++ /dev/null
-// $Id: exec-cd.c 2086 2005-05-05 09:20:37Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <fcntl.h>
-#include <errno.h>
-
-#define ENSC_WRAPPERS_PREFIX "exec-cd: "
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-int wrapper_exit_code = 255;
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--] <dir> <cmd> <args>*\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "exec-cd " VERSION " -- executes commands within a safely changed cwd\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-int main(int argc, char *argv[])
-{
- int dirfd_root = Eopen("/", O_RDONLY, 0);
- int idx = 1;
- int dirfd_cur;
-
- if (argc>=2) {
- if (strcmp(argv[1], "--help") ==0) showHelp(1, argv[0], 0);
- if (strcmp(argv[1], "--version")==0) showVersion();
- if (strcmp(argv[1], "--") ==0) ++idx;
- }
-
- if (argc<idx+2) {
- WRITE_MSG(2, "Not enough parameters; use '--help' for more information\n");
- return wrapper_exit_code;
- }
-
-
- Echroot(".");
- Echdir(argv[idx]);
-
- dirfd_cur = Eopen(".", O_RDONLY, 0);
-
- Efchdir(dirfd_root);
- Echroot(".");
-
- Efchdir(dirfd_cur);
-
- Eclose(dirfd_cur);
- Eclose(dirfd_root);
-
- Eexecv(argv[idx+1], argv+idx+1);
-}
+++ /dev/null
-// $Id: exec-ulimit.c 2371 2006-11-05 17:46:33Z dhozac $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-
-#include <sys/time.h>
-#include <sys/resource.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <errno.h>
-
-#define ENSC_WRAPPERS_PREFIX "exec-ulimit: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_RESOURCE 1
-#include <wrappers.h>
-
-/* dietlibc specifies this as (~0UL>>1), which is what's returned from
- * sys_old_getrlimit, called on some arches for getrlimit.
- * Reset it here so the kernel will have the correct values when we set it. */
-#undef RLIM_INFINITY
-#define RLIM_INFINITY (~0UL)
-#define OLD_RLIM_INFINITY (~0UL>>1)
-
-#define DECLARE_LIMIT(RES,FNAME) { #FNAME, RLIMIT_##RES }
-
-int wrapper_exit_code = 255;
-
-static struct {
- char const *fname;
- int code;
-} const LIMITS[] = {
- DECLARE_LIMIT(CORE, core),
- DECLARE_LIMIT(CPU, cpu),
- DECLARE_LIMIT(DATA, data),
- DECLARE_LIMIT(FSIZE, fsize),
- DECLARE_LIMIT(LOCKS, locks),
- DECLARE_LIMIT(MEMLOCK, memlock),
- DECLARE_LIMIT(NOFILE, nofile),
- DECLARE_LIMIT(NPROC, nproc),
- DECLARE_LIMIT(RSS, rss),
- DECLARE_LIMIT(STACK, stack),
-};
-
-static rlim_t
-readValue(int fd, char const *filename)
-{
- char buf[128];
- size_t len = Eread(fd, buf, sizeof(buf)-1);
- long int res;
- char * errptr;
-
- buf[len] = '\0';
- if (strncmp(buf, "inf", 3)==0) return RLIM_INFINITY;
- res = strtol(buf, &errptr, 0);
-
- if (errptr!=buf) {
- switch (*errptr) {
- case 'M' : res *= 1024; /* fallthrough */
- case 'K' : res *= 1024; ++errptr; break;
- case 'm' : res *= 1000; /* fallthrough */
- case 'k' : res *= 1000; ++errptr; break;
- default : break;
- }
- }
-
- if (errptr==buf || (*errptr!='\0' && *errptr!='\n')) {
- WRITE_MSG(2, "Invalid limit in '");
- WRITE_STR(2, filename);
- WRITE_STR(2, "'\n");
- exit(255);
- }
-
- return res;
-}
-
-static bool
-readSingleLimit(struct rlimit *lim, char const *fname_base)
-{
- size_t fname_len = strlen(fname_base);
- char fname[fname_len + sizeof(".hard")];
- int fd;
- bool is_modified = false;
-
- strcpy(fname, fname_base);
-
- fd = open(fname, O_RDONLY);
- if (fd!=-1) {
- rlim_t tmp = readValue(fd, fname_base);
- lim->rlim_cur = tmp;
- lim->rlim_max = tmp;
- Eclose(fd);
-
- is_modified = true;
- }
-
- strcpy(fname+fname_len, ".hard");
- fd = open(fname, O_RDONLY);
- if (fd!=-1) {
- lim->rlim_max = readValue(fd, fname_base);
- Eclose(fd);
-
- is_modified = true;
- }
-
- strcpy(fname+fname_len, ".soft");
- fd = open(fname, O_RDONLY);
- if (fd!=-1) {
- lim->rlim_cur = readValue(fd, fname_base);
- Eclose(fd);
-
- is_modified = true;
- }
-
- if (is_modified &&
- lim->rlim_max!=RLIM_INFINITY &&
- (lim->rlim_cur==RLIM_INFINITY ||
- lim->rlim_cur>lim->rlim_max))
- lim->rlim_cur = lim->rlim_max;
-
- return is_modified;
-}
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_STR(fd,
- "<ulimit-cfgdir> <cmd> <argv>*\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "exec-ulimit " VERSION " -- executes programs with resource limits\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-int main(int argc, char *argv[])
-{
- size_t i;
- int cur_fd = Eopen(".", O_RDONLY, 0);
- bool in_dir = false;
-
- if (argc==2) {
- if (strcmp(argv[1], "--help")==0) showHelp(1,argv[0],0);
- if (strcmp(argv[1], "--version")==0) showVersion();
- }
-
- if (argc<3) {
- WRITE_MSG(2, "Bad parameter count; use '--help' for more information.\n");
- exit(255);
- }
-
- if (chdir(argv[1])!=-1) {
- in_dir = true;
- }
- for (i=0; i<sizeof(LIMITS)/sizeof(LIMITS[0]); ++i) {
- struct rlimit limit;
-
- Egetrlimit(LIMITS[i].code, &limit);
- /* if this arch uses sys_old_getrlimit... */
- if (limit.rlim_cur == OLD_RLIM_INFINITY)
- limit.rlim_cur = RLIM_INFINITY;
- if (in_dir && readSingleLimit(&limit, LIMITS[i].fname))
- Esetrlimit(LIMITS[i].code, &limit);
- else if (LIMITS[i].code != RLIMIT_NOFILE) {
- limit.rlim_max = RLIM_INFINITY;
- Esetrlimit(LIMITS[i].code, &limit);
- }
- else {
- /* RLIMIT_NOFILE can't be set to infinity, 1024*1024 seems to be the limit in most kernels */
- limit.rlim_max = 1024*1024;
- setrlimit(LIMITS[i].code, &limit);
- }
- }
- if (in_dir)
- Efchdir(cur_fd);
- Eclose(cur_fd);
-
- Eexecv(argv[2], argv+2);
-}
+++ /dev/null
-// $Id: fakerunlevel.c 2562 2007-07-12 21:59:06Z dhozac $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on fakerunlevel.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- This program add a RUNLEVEL record in a utmp file.
- This is used when a vserver lack a private init process
- so runlevel properly report the fake runlevel.
-*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-
-#include <utmp.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <grp.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#define ENSC_WRAPPERS_PREFIX "fakerunlevel: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#include <wrappers.h>
-
-int wrapper_exit_code = 1;
-
-static void
-showHelp(int fd, int exit_code)
-{
- WRITE_MSG(fd,
- "Usage: fakerunlevel <runlevel> <utmp_file>\n\n"
- "Put a runlevel record in file <utmp_file>\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(exit_code);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "fakerunlevel " VERSION "\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-int main (int argc, char *argv[])
-{
- if (argc==1) showHelp(2,1);
- if (strcmp(argv[1], "--help")==0) showHelp(1,0);
- if (strcmp(argv[1], "--version")==0) showVersion();
- if (argc!=3) showHelp(2,1);
-
- {
- int const runlevel = atoi(argv[1]);
- char const * const fname = argv[2];
- int fd;
- struct utmp ut;
-
- gid_t gid;
- char *gid_str = getenv("UTMP_GID");
-
- if (runlevel<0 || runlevel>9) showHelp(2,1);
-
- Echroot(".");
- Echdir("/");
-
- // Real NSS is too expensive/insecure in this state; therefore, use the
- // value detected at ./configure stage or overridden by $UTMP_GID
- // env-variable
- gid = gid_str ? atoi(gid_str) : UTMP_GID;
- Esetgroups(1, &gid);
- Esetgid(gid);
-
- if (getgid()!=gid) {
- WRITE_MSG(2, "fakerunlevel: Failed to set group\n");
- return EXIT_FAILURE;
- }
-
- umask(002);
- fd = EopenD(fname, O_WRONLY|O_CREAT|O_APPEND, 0664);
- Eclose(fd);
-
- utmpname (fname);
- setutent();
- memset (&ut,0,sizeof(ut));
- ut.ut_type = RUN_LVL;
- ut.ut_pid = ('#' << 8) + runlevel+'0';
- pututline (&ut);
- endutent();
- }
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: filetime.c 1980 2005-03-24 12:44:17Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on filetime.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "lib/internal.h"
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <time.h>
-#include <sys/stat.h>
-
-static void
-showHelp(char const *cmd)
-{
- WRITE_MSG(1, "Usage: ");
- WRITE_STR(1, cmd);
- WRITE_MSG(1,
- " [--] <filename>\n"
- "\n"
- "Shows the relative age of <filename>\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "filetime " VERSION " -- shows age of a file\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-int main (int argc, char *argv[])
-{
- int idx = 1;
- struct stat st;
-
- if (argc>=2) {
- if (strcmp(argv[1], "--help") ==0) showHelp(argv[0]);
- if (strcmp(argv[1], "--version")==0) showVersion();
- if (strcmp(argv[1], "--") ==0) ++idx;
- }
- if (argc<idx+1)
- WRITE_MSG(2, "No filename specified; use '--help' for more information\n");
- else if (stat(argv[idx], &st)==-1)
- PERROR_Q("stat", argv[idx]);
- else {
- time_t now = time(NULL);
- time_t since = now - st.st_mtime;
- int days = since / (24*60*60);
- int today = since % (24*60*60);
- int hours = today / (60*60);
- int minutes = (today % (60*60)) / 60;
-
- char buf[3*sizeof(time_t)*3 + 128];
- size_t l = 0;
-
- if (days > 0) {
- l = utilvserver_fmt_ulong(buf, days);
- buf[l++] = ' ';
- #define MSG "days, "
- memcpy(buf+l, MSG, sizeof(MSG)-1); l += sizeof(MSG)-1;
- }
-
- if (hours<10) buf[l++] = '0';
- l += utilvserver_fmt_ulong(buf+l, hours);
- buf[l++] = ':';
- if (minutes<10) buf[l++] = '0';
- l += utilvserver_fmt_ulong(buf+l, minutes);
- buf[l++] = '\n';
-
- Vwrite(1, buf, l);
- return EXIT_SUCCESS;
- }
-
- return EXIT_FAILURE;
-}
-
+++ /dev/null
-// $Id: fstool.c 2473 2007-01-25 09:51:43Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "fstool.h"
-#include "util.h"
-
-#include <lib/vserver.h>
-
-#include <getopt.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <dirent.h>
-#include <errno.h>
-#include <fcntl.h>
-
-#define ENSC_WRAPPERS_DIRENT 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-struct Arguments const * global_args = 0;
-
-int wrapper_exit_code = 1;
-
-inline static bool
-isSpecialDir(char const *d)
-{
- return ( (d[0]=='.' && !global_args->do_display_dot) ||
- (d[0]=='.' && (d[1]=='\0' || (d[1]=='.' && d[2]=='\0'))) );
-}
-
-#define CONCAT_PATHS(LHS, LHS_LEN, RHS) \
- size_t l_rhs = strlen(RHS); \
- char new_path[(LHS_LEN) + l_rhs + sizeof("/")]; \
- memcpy(new_path, LHS, (LHS_LEN)); \
- memcpy(new_path+(LHS_LEN), "/", 1); \
- memcpy(new_path+(LHS_LEN)+1, RHS, l_rhs); \
- new_path[(LHS_LEN)+1+l_rhs] = '\0';
-
-static uint64_t
-iterateFilesystem(char const *path)
-{
- bool do_again = false;
- size_t path_len = strlen(path);
- uint64_t err = 0;
- struct stat cur_st;
- DIR * dir = opendir(".");
-
- if (dir==0) {
- perror("opendir()");
- return 1;
- }
-
- // show current directory entry first
- if (lstat(".", &cur_st)==-1) perror("lstat()");
- else err += handleFile(".", path) ? 0 : 1;
-
- // strip trailing '/'
- while (path_len>0 && path[path_len-1]=='/') --path_len;
-
- // process regular files before directories
- for (;;) {
- struct dirent *ent = Ereaddir(dir);
- struct stat st;
-
- if (ent==0) break;
- if (isSpecialDir(ent->d_name)) continue;
-
- if (lstat(ent->d_name, &st)==-1) {
- perror("lstat()");
- ++err;
- continue;
- }
-
- if (S_ISDIR(st.st_mode) && global_args->do_recurse) {
- do_again = true;
- continue;
- }
-
- {
- CONCAT_PATHS(path, path_len, ent->d_name);
- err += handleFile(ent->d_name, new_path) ? 0 : 1;
- }
- }
-
- if (do_again) {
- int cur_dir = Eopen(".", O_RDONLY, 0);
- rewinddir(dir);
-
- for (;;) {
- struct dirent *ent = Ereaddir(dir);
- struct stat st;
-
- if (ent==0) break;
- if (isSpecialDir(ent->d_name)) continue;
-
- if (lstat(ent->d_name, &st)==-1) {
- perror("lstat()");
- ++err;
- continue;
- }
-
- if (!S_ISDIR(st.st_mode) ||
- (global_args->local_fs && st.st_dev!=cur_st.st_dev))
- continue;
-
- if (safeChdir(ent->d_name, &st)==-1) {
- perror("chdir()");
- ++err;
- continue;
- }
-
- {
- CONCAT_PATHS(path, path_len, ent->d_name);
- err += iterateFilesystem(new_path);
- }
- Efchdir(cur_dir);
- }
- Eclose(cur_dir);
- }
-
- Eclosedir(dir);
-
- return err;
-}
-#undef CONCAT_PATHS
-
-static uint64_t
-processFile(char const *path)
-{
- struct stat st;
-
- if (lstat(path, &st)==-1) {
- perror("lstat()");
- return 1;
- }
-
- if (S_ISDIR(st.st_mode) && !global_args->do_display_dir) {
- int cur_dir = Eopen(".", O_RDONLY, 0);
- uint64_t ret;
- Echdir(path);
- ret = iterateFilesystem(path);
- Efchdir(cur_dir);
- Eclose(cur_dir);
- return ret;
- }
- else
- return handleFile(path, path) ? 0 : 1;
-}
-
-int main(int argc, char *argv[])
-{
- uint64_t err_cnt = 0;
- int i;
- struct Arguments args = {
- .do_recurse = false,
- .do_display_dot = false,
- .do_display_dir = false,
- .do_mapping = true,
- .ctx = VC_NOCTX,
- .is_legacy = false,
- .do_set = false,
- .do_unset = false,
- .local_fs = false,
- .set_mask = 0,
- .del_mask = 0,
- .no_unified = false,
- };
-
- global_args = &args;
- while (1) {
- int c = getopt_long(argc, argv, CMDLINE_OPTIONS_SHORT,
- CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_IMMU : args.set_mask |= VC_IATTR_IMMUTABLE; /*@fallthrough@*/
- case CMD_IMMUX : args.set_mask |= VC_IATTR_IUNLINK; break;
- case CMD_IMMUTABLE : args.set_mask |= VC_IATTR_IMMUTABLE; break;
- case CMD_ADMIN : args.set_mask |= VC_IATTR_ADMIN; break;
- case CMD_WATCH : args.set_mask |= VC_IATTR_WATCH; break;
- case CMD_HIDE : args.set_mask |= VC_IATTR_HIDE; break;
- case CMD_BARRIER : args.set_mask |= VC_IATTR_BARRIER; break;
- case CMD_UNSET_IMMU : args.del_mask |= VC_IATTR_IMMUTABLE; /*@fallthrough@*/
- case CMD_UNSET_IMMUX : args.del_mask |= VC_IATTR_IUNLINK; break;
- case CMD_UNSET_IMMUTABLE : args.del_mask |= VC_IATTR_IMMUTABLE; break;
- case CMD_UNSET_ADMIN : args.del_mask |= VC_IATTR_ADMIN; break;
- case CMD_UNSET_WATCH : args.del_mask |= VC_IATTR_WATCH; break;
- case CMD_UNSET_HIDE : args.del_mask |= VC_IATTR_HIDE; break;
- case CMD_UNSET_BARRIER : args.del_mask |= VC_IATTR_BARRIER; break;
- case 'R' : args.do_recurse = true; break;
- case 'a' : args.do_display_dot = true; break;
- case 'd' : args.do_display_dir = true; break;
- case 'n' : args.do_mapping = false; break;
- case 's' : args.do_set = true; break;
- case 'u' : args.do_unset = true; break;
- case 'c' : args.ctx_str = optarg; break;
- case 'x' : args.local_fs = true; break;
- case 'U' : args.no_unified = true; break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- fixupParams(&args, argc);
-
- if (optind==argc)
- err_cnt = processFile(".");
- else for (i=optind; i<argc; ++i)
- err_cnt += processFile(argv[i]);
-
- return err_cnt>0 ? EXIT_FAILURE : EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: fstool.h 2473 2007-01-25 09:51:43Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_FSTOOL_H
-#define H_UTIL_VSERVER_SRC_FSTOOL_H
-
-#include <getopt.h>
-#include <stdbool.h>
-
-#define CMD_HELP 0x8000
-#define CMD_VERSION 0x8001
-#define CMD_IMMUTABLE 0x8002
-#define CMD_IMMULINK 0x8003
-#define CMD_LEGACY 0x8004
-#define CMD_IMMU 0x8010
-#define CMD_ADMIN 0x8011
-#define CMD_WATCH 0x8012
-#define CMD_HIDE 0x8013
-#define CMD_BARRIER 0x8014
-#define CMD_IMMUX 0x8015
-#define CMD_UNSET_IMMU 0x8020
-#define CMD_UNSET_ADMIN 0x8021
-#define CMD_UNSET_WATCH 0x8022
-#define CMD_UNSET_HIDE 0x8023
-#define CMD_UNSET_BARRIER 0x8024
-#define CMD_UNSET_IMMUX 0x8025
-#define CMD_UNSET_IMMUTABLE 0x8026
-
-
-struct stat;
-
-struct Arguments {
- bool do_recurse;
- bool do_display_dot;
- bool do_display_dir;
- bool do_mapping;
- char const * ctx_str;
- xid_t ctx;
- bool is_legacy;
- bool do_set;
- bool do_unset;
- bool local_fs;
- bool no_unified;
-
- uint32_t set_mask;
- uint32_t del_mask;
-};
-
-extern struct option const CMDLINE_OPTIONS[];
-extern char const CMDLINE_OPTIONS_SHORT[];
-extern struct Arguments const * global_args;
-
-void fixupParams(struct Arguments *, int argc);
-bool handleFile(char const *d_name, char const *full_name);
-void showHelp(int fd, char const *cmd, int res);
-void showVersion();
-
-#endif // H_UTIL_VSERVER_SRC_FSTOOL_H
+++ /dev/null
-// $Id$
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <string.h>
-#include <sys/mman.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <getopt.h>
-#include <errno.h>
-#include <ctype.h>
-#include <sys/wait.h>
-
-#include "util.h"
-#include "lib/internal.h"
-#include "pathconfig.h"
-
-#define ENSC_WRAPPERS_PREFIX "h2ext: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_STAT 1
-#include <wrappers.h>
-
-#define MAX_PEEK_SIZE 4096
-#define MIN(a,b) (((a) > (b)) ? (b) : (a))
-#define STRINGIFY_(x) #x
-#define STRINGIFY(x) STRINGIFY_(x)
-
-struct file_format {
- /* where the value would be in the file */
- long offset;
- /* type of match */
- enum {
- FFT_STRING = 1,
- FFT_SHORT,
- FFT_LONG,
- FFT_LE = 0x4000,
- FFT_BE = 0x8000,
- } type;
- /* the value */
- union {
- char * st;
- uint16_t sh;
- uint32_t lo;
- } value;
- /* length of the value */
- size_t len;
- /* program to use for extraction */
- char * extractor;
- /* should we try to process the contents as well? */
- int peek_inside;
-
- struct file_format *next;
-};
-typedef struct file_format file_format_t;
-
-int wrapper_exit_code = 255;
-
-#define CMD_HELP 0x4001
-#define CMD_VERSION 0x4002
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "desc", required_argument, 0, 'd' },
- { "silent", no_argument, 0, 'q' },
- { 0,0,0,0 },
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " -d <descriptions file> <file1> [<file2>...]\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "h2ext " VERSION " -- determines how to extract a file\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2007 Daniel Hokka Zakrisson\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static file_format_t *
-find_format(file_format_t *head, char *data)
-{
- file_format_t *i;
-
- for (i = head; i; i = i->next) {
- switch (i->type & ~(FFT_LE|FFT_BE)) {
- case FFT_STRING:
- if (memcmp(i->value.st, data + i->offset, i->len) == 0)
- goto found;
- break;
- case FFT_SHORT:
- if (i->value.sh == *((__typeof__(i->value.sh) *)data + i->offset))
- goto found;
- break;
- case FFT_LONG:
- if (i->value.lo == *((__typeof__(i->value.lo) *)data + i->offset))
- goto found;
- break;
- }
- }
-found:
- return i;
-}
-
-static int
-process_file(file_format_t *head, const char *file, file_format_t *ret[2])
-{
- int fd;
- void *mapping;
- struct stat st;
-
- fd = EopenD(file, O_RDONLY, 0);
- Efstat(fd, &st);
- mapping = mmap(NULL, MIN(st.st_size, MAX_PEEK_SIZE), PROT_READ, MAP_SHARED, fd, 0);
- if (!mapping) {
- perror("mmap()");
- Eclose(fd);
- return -1;
- }
-
- ret[0] = find_format(head, mapping);
-
- munmap(mapping, MIN(st.st_size, MAX_PEEK_SIZE));
-
- if (ret[0] && ret[0]->peek_inside) {
- pid_t child;
- int fds[2];
-
- Elseek(fd, 0, SEEK_SET);
-
- Epipe(fds);
- child = Efork();
- if (child == 0) {
- char *argv[3] = { PROG_H2EXT_WORKER, ret[0]->extractor, NULL };
- dup2(fd, 0);
- dup2(fds[1], 1);
- EexecvpD(PROG_H2EXT_WORKER, argv);
- }
- else {
- char *buf = calloc(MAX_PEEK_SIZE, sizeof(char)), *cur, *end;
- ssize_t bytes_read;
-
- /* read MAX_PEEK_SIZE bytes from the decompressor */
- cur = buf;
- end = buf + MAX_PEEK_SIZE;
- while (cur < end && (bytes_read = Eread(fds[0], cur, end - cur - 1)) > 0)
- cur += bytes_read;
-
- /* get rid of the child */
- kill(child, SIGTERM);
- wait(NULL);
-
- ret[1] = find_format(head, buf);
- free(buf);
- }
- }
- else
- ret[1] = NULL;
-
- Eclose(fd);
-
- return 0;
-}
-
-static inline void
-byteswap(void *p, size_t len)
-{
- size_t i;
- char *buf = p, tmp;
- for (i = 0; i < (len >> 1); i++) {
- tmp = buf[len - i - 1];
- buf[len - i - 1] = buf[i];
- buf[i] = tmp;
- }
-}
-
-static inline ALWAYSINLINE void
-WRITE_INT(int fd, int num)
-{
- char buf[sizeof(num)*3+2];
- size_t l;
-
- l = utilvserver_fmt_long(buf,num);
-
- Vwrite(fd, buf, l);
-}
-
-static int
-load_description(const char *file, file_format_t **head)
-{
- file_format_t *prev = NULL,
- *i = NULL;
- int fd,
- line_no = 0;
- char buf[512],
- *field,
- *end = buf,
- *ptr,
- *eol;
- ssize_t bytes_read;
-
- fd = EopenD(file, O_RDONLY, 0);
-
- *buf = '\0';
- while (1) {
- if ((eol = strchr(buf, '\n')) == NULL && (end - buf) < (sizeof(buf) - 1)) {
- bytes_read = Eread(fd, end, sizeof(buf) - 1 - (end - buf));
- /* EOF, implicit newline */
- if (bytes_read == 0) {
- if (end == buf)
- break;
- eol = end;
- *(end++) = '\n';
- }
- end += bytes_read;
- *end = '\0';
- continue;
- }
- else if (eol == NULL) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX);
- WRITE_STR(2, file);
- WRITE_MSG(2, ":");
- WRITE_INT(2, line_no);
- WRITE_MSG(2, " is a really long line\n");
- Eclose(fd);
- return -1;
- }
- *eol = '\0';
- line_no++;
-
- if (*buf == '#' || *buf == '\0')
- goto new_line;
- if (*head == NULL)
- i = *head = calloc(1, sizeof(file_format_t));
- else {
- i->next = calloc(1, sizeof(file_format_t));
- prev = i;
- i = i->next;
- }
- i->next = NULL;
-
-#define get_field() if (*(ptr+1) == '\0') goto new_line_and_free; \
- for (ptr++; *ptr == '\t' && *ptr != '\0'; ptr++); \
- for (field = ptr; *ptr != '\t' && *ptr != '\0'; ptr++); \
- *ptr = '\0';
- field = ptr = buf;
- while (*ptr != '\t' && *ptr != '\0')
- ptr++;
- *ptr = '\0';
- if (field == ptr)
- goto new_line_and_free;
- i->offset = strtol(field, NULL, 0);
-
- get_field();
- if (strcmp(field, "string") == 0)
- i->type = FFT_STRING;
- else if (strcmp(field, "short") == 0)
- i->type = FFT_SHORT;
- else if (strcmp(field, "long") == 0)
- i->type = FFT_LONG;
- else if (strcmp(field, "leshort") == 0)
- i->type = FFT_SHORT|FFT_LE;
- else if (strcmp(field, "beshort") == 0)
- i->type = FFT_SHORT|FFT_BE;
- else if (strcmp(field, "lelong") == 0)
- i->type = FFT_LONG|FFT_LE;
- else if (strcmp(field, "belong") == 0)
- i->type = FFT_LONG|FFT_BE;
- else {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX);
- WRITE_STR(2, file);
- WRITE_MSG(2, ":");
- WRITE_INT(2, line_no);
- WRITE_MSG(2, " has an unknown type: ");
- WRITE_STR(2, field);
- WRITE_MSG(2, "\n");
- goto new_line_and_free;
- }
-
- get_field();
- switch (i->type & ~(FFT_BE|FFT_LE)) {
- case FFT_STRING:
- {
- char *c, *tmp;
- i->value.st = tmp = calloc(strlen(field) + 1, sizeof(char));
- for (c = field; *c; c++) {
- if (*c == '\\') {
- char *endptr;
- *(tmp++) = (char)strtol(c + 1, &endptr, 8);
- c = endptr - 1;
- }
- else
- *(tmp++) = *c;
- }
- *tmp = '\0';
- i->len = tmp - i->value.st;
- }
- break;
- case FFT_SHORT:
- i->len = sizeof(i->value.sh);
- i->value.sh = (__typeof__(i->value.sh))strtol(field, NULL, 0);
-#if BYTE_ORDER != BIG_ENDIAN
- if (i->type & FFT_BE)
-#elif BYTE_ORDER != LITTLE_ENDIAN
- if (i->type & FFT_LE)
-#else
-# error UNKNOWN BYTE ORDER
-#endif
- byteswap(&i->value.sh, i->len);
- break;
- case FFT_LONG:
- i->len = sizeof(i->value.lo);
- i->value.lo = (__typeof__(i->value.lo))strtol(field, NULL, 0);
-#if BYTE_ORDER != BIG_ENDIAN
- if (i->type & FFT_BE)
-#elif BYTE_ORDER != LITTLE_ENDIAN
- if (i->type & FFT_LE)
-#else
-# error UNKNOWN BYTE ORDER
-#endif
- byteswap(&i->value.lo, i->len);
- break;
- }
-
- get_field();
- i->extractor = strdup(field);
-
- get_field();
- i->peek_inside = (int)strtol(field, NULL, 0);
-
- /* sanity check the entry */
- if (i->offset < 0) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX);
- WRITE_STR(2, file);
- WRITE_MSG(2, ":");
- WRITE_INT(2, line_no);
- WRITE_MSG(2, " has an invalid offset: ");
- WRITE_INT(2, i->offset);
- WRITE_MSG(2, "\n");
- goto new_line_and_free;
- }
- else if ((i->offset + i->len) > MAX_PEEK_SIZE) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX);
- WRITE_STR(2, file);
- WRITE_MSG(2, ":");
- WRITE_INT(2, line_no);
- WRITE_MSG(2, " exceeds maximum offset (" STRINGIFY(MAX_PEEK_SIZE) ")\n");
- goto new_line_and_free;
- }
-#undef get_field
- goto new_line;
-
-new_line_and_free:
- free(i);
- if (prev) {
- i = prev;
- free(i->next);
- i->next = NULL;
- }
- else
- *head = i = NULL;
-new_line:
- memmove(buf, eol + 1, end - (eol + 1));
- end = buf + (end - (eol + 1));
- }
-
- Eclose(fd);
- return 0;
-}
-
-int main(int argc, char *argv[])
-{
- char **file = NULL,
- *desc = NULL;
- file_format_t *head = NULL;
- int quiet = 0;
-
- while (1) {
- int c = getopt_long(argc, argv, "+d:q", CMDLINE_OPTIONS, 0);
- if (c == -1) break;
-
- switch (c) {
- case CMD_HELP: showHelp(1, argv[0], 0);
- case CMD_VERSION: showVersion();
- case 'd': desc = optarg; break;
- case 'q': quiet = 1; break;
- default:
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return wrapper_exit_code;
- }
- }
-
- if (desc == NULL) {
- WRITE_MSG(2, "No descriptions supplied, try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return wrapper_exit_code;
- }
-
- head = NULL;
- if (load_description(desc, &head) == -1)
- return EXIT_FAILURE;
-
- for (file = argv + optind; *file; file++) {
- file_format_t *formats[2];
- if (!quiet) {
- WRITE_STR(1, *file);
- WRITE_MSG(1, ": ");
- }
- if (!process_file(head, *file, formats) && formats[0]) {
- WRITE_STR(1, formats[0]->extractor);
- if (formats[0]->peek_inside) {
- WRITE_MSG(1, " | ");
- WRITE_STR(1, formats[1] ? formats[1]->extractor : "unknown format");
- }
- }
- else
- WRITE_MSG(1, "unknown format");
- WRITE_MSG(1, "\n");
- }
-
- return 0;
-}
+++ /dev/null
-// $Id: ifspec.c 965 2004-02-20 16:59:40Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on ifspec.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- Prints the specs of a network device in shell like form
-
- ADDR=
- NETMASK=
- BCAST=
-*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <unistd.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <net/if.h>
-
-static void usage()
-{
- fprintf (stderr,"ifspec version %s\n",VERSION);
- fprintf (stderr
- ,"ifspec network-device [ ipaddr netmask broadcast ]\n"
- "prints device specification in a shell usable way\n");
- exit (-1);
-}
-
-static int ifconfig_ioctl(
- int fd,
- const char *ifname,
- int cmd,
- struct ifreq *ifr)
-{
- strcpy(ifr->ifr_name, ifname);
- return ioctl(fd, cmd,ifr);
-}
-
-static unsigned long ip_cnv (const char *str)
-{
- const char *start_str = str;
- unsigned tb[4];
- int no = 0;
- unsigned long ret;
-
- memset (tb,-1,sizeof(tb));
- while (*str != '\0' && no < 4){
- if (isdigit(*str)){
- int val = atoi(str);
- if (val > 255) break;
- tb[no++] = val;
- while (isdigit(*str)) str++;
- if (*str == '.'){
- str++;
- }else{
- break;
- }
- }else{
- break;
- }
- }
-
- ret = (tb[0] << 24) | (tb[1]<<16) | (tb[2] << 8) | tb[3];
- if (no != 4 || *str != '\0'){
- fprintf (stderr,"Invalid IP number or netmask: %s\n",start_str);
- ret = 0xffffffff;
- }
- return ret;
-}
-
-
-/*
- Fetch the IP number of an interface from the kernel.
- Assume the device is already available in the kernel
- Return -1 if any error.
-*/
-int ifconfig_print (
- const char *ifname,
- const char *addrstr,
- const char *maskstr,
- const char *bcaststr)
-{
- int ret = -1;
- int skfd = socket(AF_INET, SOCK_DGRAM, 0);
- if (skfd != -1){
- struct ifreq ifr;
- struct {
- unsigned long addr;
- unsigned long mask;
- } solved = {0,0};
- if (addrstr != NULL && addrstr[0] != '\0'){
- printf ("ADDR=%s\n",addrstr);
- solved.addr = ip_cnv (addrstr);
- }else if (ifconfig_ioctl(skfd,ifname,SIOCGIFADDR, &ifr) >= 0){
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifr.ifr_addr;
- unsigned long addr = ntohl(sin->sin_addr.s_addr);
- printf ("ADDR=%lu.%lu.%lu.%lu\n"
- ,(addr>>24)&0xff
- ,(addr>>16)&0xff
- ,(addr>>8)&0xff
- ,addr&0xff);
- solved.addr = addr;
- ret = 0;
- }
- else {
- perror("ifspec: ioctl(SIOCGIFADDR)");
- }
-
- if (maskstr != NULL && maskstr[0] != '\0'){
- printf ("NETMASK=%s\n",maskstr);
- solved.mask = ip_cnv (maskstr);
- }else if (ifconfig_ioctl(skfd,ifname,SIOCGIFNETMASK, &ifr) >= 0){
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifr.ifr_addr;
- unsigned long addr = ntohl(sin->sin_addr.s_addr);
- printf ("NETMASK=%lu.%lu.%lu.%lu\n"
- ,(addr>>24)&0xff
- ,(addr>>16)&0xff
- ,(addr>>8)&0xff
- ,addr&0xff);
- solved.mask = addr;
- ret = 0;
- }
- else {
- perror("ifspec: ioctl(SIOCGIFNETMASK)");
- }
-
- if (bcaststr != NULL && bcaststr[0] != '\0'){
- printf ("BCAST=%s\n",bcaststr);
- }else if (ifconfig_ioctl(skfd,ifname,SIOCGIFBRDADDR, &ifr) >= 0){
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifr.ifr_addr;
- unsigned long addr = ntohl(sin->sin_addr.s_addr);
- printf ("BCAST=%lu.%lu.%lu.%lu\n"
- ,(addr>>24)&0xff
- ,(addr>>16)&0xff
- ,(addr>>8)&0xff
- ,addr&0xff);
- ret = 0;
- }else if (solved.addr!=0 && solved.mask!=0) {
- // Can't get it from the kernel, compute it from the IP
- // and the netmask
- unsigned long addr = (solved.addr & solved.mask)
- | ~solved.mask;
- printf ("BCAST=%lu.%lu.%lu.%lu\n"
- ,(addr>>24)&0xff
- ,(addr>>16)&0xff
- ,(addr>>8)&0xff
- ,addr&0xff);
-
- }
- close (skfd);
- }
- return ret;
-}
-
-
-int main (int argc, char *argv[])
-{
- int ret = -1;
- if (argc < 2){
- usage();
- }else{
- const char *addrstr = argc >= 3 ? argv[2] : NULL;
- const char *maskstr = argc >= 4 ? argv[3] : NULL;
- const char *bcaststr = argc >= 5 ? argv[4] : NULL;
- ret = ifconfig_print (argv[1],addrstr,maskstr,bcaststr);
- }
- return ret;
-}
-
-
-
+++ /dev/null
-// $Id: keep-ctx-alive.c 2403 2006-11-24 23:06:08Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-
-#include <lib/vserver.h>
-#include <lib/internal.h>
-
-#include <getopt.h>
-#include <errno.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <sys/select.h>
-
-#define ENSC_WRAPPERS_PREFIX "keep-ctx-alive: "
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_SOCKET 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_IOSOCK 1
-#define ENSC_WRAPPERS_IO 1
-#include <wrappers.h>
-
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_SOCKET 0x4000
-#define CMD_TIMEOUT 0x4001
-#define CMD_QUIT 0x4002
-
-int wrapper_exit_code = 1;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "socket", required_argument, 0, CMD_SOCKET },
- { "timeout", required_argument, 0, CMD_TIMEOUT },
- { "quit", required_argument, 0, CMD_QUIT },
- {0,0,0,0},
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --socket <filename> [--timeout <seconds>]\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "keep-ctx-alive " VERSION " -- keeps a context alive\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-printXid(int fd)
-{
- xid_t xid = Evc_get_task_xid(0);
- char buf[sizeof(xid)*3 + 2];
- size_t l;
-
- l = utilvserver_fmt_long(buf, xid);
- EwriteAll(fd, buf, l);
- Eclose(fd);
-}
-
-static void handleMessage(int fd)
-{
- char buf[128];
- size_t len;
- struct sockaddr_un addr;
- socklen_t addr_len = sizeof(addr);
- int new_fd = Eaccept(fd, &addr, &addr_len);
-
- len = Erecv(new_fd, buf, sizeof buf,0);
- if (len==0) exit(1);
-
- // TODO: handle message???
- exit(0);
-}
-
-static int
-sendQuitSignal(char const *filename, char const *msg)
-{
- int fd;
- struct sockaddr_un addr;
-
- ENSC_INIT_UNIX_SOCK(addr, filename);
- fd = Esocket(PF_UNIX, SOCK_STREAM, 0);
- Econnect(fd, &addr, sizeof(addr));
-
- if (msg) EsendAll(fd, msg, strlen(msg));
- Eclose(fd);
-
- return EXIT_SUCCESS;
-}
-
-static int
-doit(char const *filename, struct timeval *timeout)
-{
- int fd;
- struct sockaddr_un sock;
- pid_t pid;
- fd_set fdset;
-
- ENSC_INIT_UNIX_SOCK(sock, filename);
-
- fd = Esocket(PF_UNIX, SOCK_STREAM, 0);
- Ebind(fd, &sock, sizeof sock);
- Elisten(fd, 5);
-
- printXid(1);
-
- FD_ZERO(&fdset);
- FD_SET(fd, &fdset);
-
- pid = Efork();
- if (pid==0) {
- Eselect(fd+1, &fdset, 0,0, timeout);
- if (FD_ISSET(fd, &fdset)) handleMessage(fd);
- exit(1);
- }
-
- return EXIT_SUCCESS;
-}
-
-int main(int argc, char *argv[])
-{
- char const * socket_name = 0;
- struct timeval timeout = { 0,0 };
- struct timeval *timeout_ptr = 0;
- char const * quit_msg = false;
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_SOCKET : socket_name = optarg; break;
- case CMD_QUIT : quit_msg = optarg; break;
- case CMD_TIMEOUT :
- timeout.tv_sec = atoi(optarg);
- timeout_ptr = &timeout;
- break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return 255;
- break;
- }
- }
-
- if (socket_name==0)
- WRITE_MSG(2, "reserve-context: No socketname specified\n");
- if (quit_msg)
- return sendQuitSignal(socket_name, quit_msg);
- else
- return doit(socket_name, timeout_ptr);
-
- return EXIT_FAILURE;
-}
+++ /dev/null
-// $Id: listdevip.c 965 2004-02-20 16:59:40Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on listdevip.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- Print the list of all network (IP) devices. Print the IP
- in fact, including all aliases.
-*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "compat.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <net/if.h>
-
-
-static int ifconfig_ioctl(
- int fd,
- const char *ifname,
- int cmd,
- struct ifreq *ifr)
-{
- strcpy(ifr->ifr_name, ifname);
- return ioctl(fd, cmd,ifr);
-}
-
-
-static int devlist_read2_2()
-{
- int ret = -1;
- int skfd = socket (AF_INET,SOCK_DGRAM,0);
- if (skfd < 0) {
- perror ("listdevip: socket()");
- }else{
- struct ifconf ifc;
- int numreqs = 30;
- ifc.ifc_buf = NULL;
- ret = 0;
- while (1) {
- ifc.ifc_len = sizeof(struct ifreq) * numreqs;
- ifc.ifc_buf = (char*)realloc(ifc.ifc_buf, ifc.ifc_len);
-
- if (ioctl(skfd, SIOCGIFCONF, &ifc) < 0) {
- perror("listdevip: SIOCGIFCONF");
- ret = -1;
- break;
- }
- if (ifc.ifc_len == (int)sizeof(struct ifreq) * numreqs) {
- /* assume it overflowed and try again */
- numreqs += 10;
- continue;
- }
- break;
- }
- if (ret == 0){
- struct ifreq *ifr = ifc.ifc_req;
- int n;
- for (n = 0; n < ifc.ifc_len; n += sizeof(struct ifreq)) {
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifr->ifr_addr;
- unsigned long addr = ntohl(sin->sin_addr.s_addr);
- unsigned long mask = 0xffffff00;
- struct ifreq ifmask;
- if (ifconfig_ioctl(skfd,ifr->ifr_name,SIOCGIFNETMASK, &ifmask) >= 0){
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifmask.ifr_addr;
- mask = ntohl(sin->sin_addr.s_addr);
- }
-
- printf ("%lu.%lu.%lu.%lu/%lu.%lu.%lu.%lu\n"
- ,(addr>>24)&0xff
- ,(addr>>16)&0xff
- ,(addr>>8)&0xff
- ,addr&0xff
- ,(mask>>24)&0xff
- ,(mask>>16)&0xff
- ,(mask>>8)&0xff
- ,mask&0xff);
- ifr++;
- }
- }
- free(ifc.ifc_buf);
- }
- return ret;
-}
-
-int main (int UNUSED argc, char UNUSED *argv[])
-{
- devlist_read2_2();
- return 0;
-}
-
+++ /dev/null
-// $Id: lockfile.c 1447 2004-04-13 08:27:50Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-
-#include <unistd.h>
-#include <errno.h>
-#include <string.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <stdio.h>
-#include <time.h>
-#include <sys/file.h>
-#include <sys/param.h>
-
-static void
-showHelp(char const *cmd)
-{
- WRITE_MSG(1, "Usage: ");
- WRITE_STR(1, cmd);
- WRITE_MSG(1,
- " [--] <lockfile> <syncpipe> [<timeout>]\n\n"
- "Protocol:\n"
- " 1. parent (shell) creates a named <syncpipe>\n"
- " 2. 'lockfile' will be called\n"
- " 3a. 'lockfile' waits until somebody opens the <syncpipe> for reading\n"
- " 3b. parent (shell) opens the pipe for reading and blocks\n"
- " 4. 'lockfile' calls flock() on the <lockfile>\n"
- " 5. 'lockfile' closes the <syncpipe>\n"
- " 6. parent (shell) unlocks since <syncpipe> is closed\n"
- " 7. 'lockfile' goes into infinite loop\n"
- " 8. parent sends SIGHUP (or other signal) to 'lockfile\n"
- "\n"
- "Sample code:\n"
- " tmp=$(mktemp /tmp/lock.XXXXXX)\n"
- " rm -f $tmp # safe since mknod(2) does not follow symlinks\n"
- " mkfifo -m700 $tmp || exit 1\n"
- " lockfile $lock $tmp &\n"
- " $tmp\n"
- " ... <actions> ...\n"
- " kill -HUP $! # (implicated by shell-exit)\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "lockfile " VERSION " -- locks a file"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-alarmFunc(int UNUSED sig)
-{
- signal(SIGALRM, alarmFunc);
-}
-
-static void
-quitFunc(int UNUSED sig)
-{
- _exit(0);
-}
-
-int main(int argc, char *argv[])
-{
- int fd, sync_fd = -1;
- int idx = 1;
- time_t end_time;
- pid_t const ppid = getppid();
-
- if (argc>=2) {
- if (strcmp(argv[1], "--help") ==0) showHelp(argv[0]);
- if (strcmp(argv[1], "--version")==0) showVersion();
- if (strcmp(argv[1], "--") ==0) ++idx;
- }
-
- if (argc<idx+2) {
- WRITE_MSG(2, "Not enough parameters; use '--help' for more information\n");
- return EXIT_FAILURE;
- }
-
- end_time = time(0);
- if (argc==idx+3) end_time += atoi(argv[idx+2]);
- else end_time += 300;
-
- if ((sync_fd=open(argv[idx+1], O_WRONLY))==-1)
- perror("lockfile: open(<syncpipe>)");
- else if ((fd=open(argv[idx], O_CREAT|O_RDONLY|O_NOFOLLOW|O_NONBLOCK, 0644))==-1)
- perror("lockfile: open(<lockfile>)");
- else if (unlink(argv[idx+1])==-1)
- perror("lockfile: unlink(<syncpipe>)");
- else if (siginterrupt(SIGALRM, 1)==-1)
- perror("lockfile: siginterrupt()");
- else if (signal(SIGALRM, alarmFunc)==SIG_ERR ||
- signal(SIGHUP, quitFunc) ==SIG_ERR)
- perror("lockfile: signal()");
- else while (time(0)<end_time && getppid()==ppid) {
- int duration = end_time-time(0);
- alarm(MIN(10, MAX(duration,1)));
-
- if (flock(fd,LOCK_EX)==-1) {
- if (errno==EINTR) continue;
- perror("lockfile: flock()");
- break;
- }
- signal(SIGALRM, SIG_IGN);
-
- WRITE_MSG(sync_fd, "#!/bin/true\n");
- close(sync_fd);
- while (getppid()==ppid) sleep(10);
-
- return EXIT_SUCCESS;
- }
-
- if (sync_fd!=-1)
- WRITE_MSG(sync_fd, "#!/bin/false\n");
- return EXIT_FAILURE;
-}
+++ /dev/null
-// $Id: lsxid.c 1980 2005-03-24 12:44:17Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "fstool.h"
-#include "util.h"
-
-#include <ensc_vector/vector.h>
-#include <lib/vserver.h>
-#include <lib/vserver-internal.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <assert.h>
-
-#define ENSC_WRAPPERS_STDLIB 1
-#include <wrappers.h>
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { 0,0,0,0 }
-};
-
-char const CMDLINE_OPTIONS_SHORT[] = "Radnx";
-
-struct XidNameMapping {
- xid_t xid;
- char const * name;
-};
-
-static struct Vector xid_name_mapping;
-
-void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [-Radnx] [--] <file>*\n\n"
- " Options:\n"
- " -R ... recurse through directories\n"
- " -a ... display files starting with '.' also\n"
- " -d ... list directories like other files instead of\n"
- " listing their content\n"
- " -n ... do not try to do xid -> vserver-name mapping\n"
- " -x ... do not cross filesystems\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-void
-showVersion()
-{
- WRITE_MSG(1,
- "lsxid " VERSION " -- shows the context which is associated to a file\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-void
-fixupParams(struct Arguments UNUSED * args, int UNUSED argc)
-{
- Vector_init(&xid_name_mapping, sizeof (struct XidNameMapping));
-}
-
-static int
-cmpMap(void const *xid_v, void const *map_v)
-{
- xid_t const * const xid = xid_v;
- struct XidNameMapping const * const map = map_v;
-
- return *xid - map->xid;
-}
-
-static char const *
-lookupContext(xid_t xid)
-{
- struct XidNameMapping *res;
-
- res = Vector_search(&xid_name_mapping, &xid, cmpMap);
-
- if (res==0) {
- vcCfgStyle style = vcCFG_AUTO;
- char const * vcfg = vc_getVserverByCtx(xid, &style, 0);
-
- res = Vector_insert(&xid_name_mapping, &xid, cmpMap);
- if (vcfg) res->name = vc_getVserverName(vcfg, style);
- else res->name = 0;
- res->xid = xid;
-
- free(const_cast(char *)(vcfg));
- }
-
- assert(res!=0);
-
- return res->name;
-}
-
-static xid_t
-getFileContext(char const *name)
-{
- xid_t res;
- uint32_t mask = VC_IATTR_XID;
-
- if (vc_get_iattr(name, &res, 0, &mask)==-1)
- perror("vc_get_iattr()");
-
- return (mask&VC_IATTR_XID) ? res : VC_NOCTX;
-}
-
-bool
-handleFile(char const *name, char const *display_name)
-{
- xid_t ctx = 0;
- char buf[MAX(sizeof(ctx)*3+1, 20)];
- bool need_write = true;
-
- memset(buf, ' ', sizeof buf);
-
-#if 1
- ctx = getFileContext(name);
-#else
-# warning Compiling in debug-code
- ctx = random() % 10 + 49213;
-#endif
-
- if (ctx==VC_NOCTX) {
- memcpy(buf, "!!ERR!!", 7);
- Vwrite(1, buf, sizeof buf);
- need_write = false;
- }
- else if (global_args->do_mapping) {
- char const * vname = lookupContext(ctx);
- if (!vname) buf[0] = '\0';
- else {
- size_t l = strlen(vname);
- if (l<sizeof(buf)) Vwrite(1, buf, sizeof(buf)-l);
- Vwrite(1, vname, l);
-
- need_write = false;
- }
- }
-
- if (need_write) {
- size_t l = utilvserver_fmt_ulong(buf, ctx);
- if (l<sizeof(buf)) Vwrite(1, buf+l, sizeof(buf)-l);
- Vwrite(1, buf, l);
- }
-
- Vwrite(1, " ", 2);
- Vwrite(1, display_name, strlen(display_name));
- Vwrite(1, "\n", 1);
-
- return ctx!=VC_NOCTX;
-}
+++ /dev/null
-// $Id: mask2prefix.c 63 2003-10-09 01:41:06Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <stdlib.h>
-
-static inline void
-showHelp(int fd, int exit_code)
-{
- WRITE_MSG(fd,
- "Usage: mask2prefix <mask>\n");
- exit(exit_code);
-}
-
-int main(int argc, char *argv[])
-{
- char *err_ptr, *ptr;
- int len = 0;
- size_t i;
-
- if (argc!=2) showHelp(2,255);
-
- ptr = argv[1];
- for (i=0; i<4; ++i) {
- unsigned int val = strtol(ptr, &err_ptr, 10);
-
- switch (*err_ptr) {
- case '.' :
- case '\0' : break;
- default :
- WRITE_MSG(2, "Invalid mask specified\n");
- return 255;
- }
-
- if (val>=0x100) {
- WRITE_MSG(2, "Invalid mask specified\n");
- return 255;
- }
-
- while (val&0x80) {
- ++len;
- val <<= 1;
- }
-
- if (val!=0xff00) break;
-
- ptr = err_ptr+1;
- }
-
- return len;
-}
+++ /dev/null
-// $Id: naddress.c 2584 2007-08-10 15:28:42Z dhozac $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-// based on chbind.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "util.h"
-
-#include <lib/internal.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <netdb.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <net/if.h>
-#include <unistd.h>
-#include <errno.h>
-#include <getopt.h>
-#include <fcntl.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-#define ENSC_WRAPPERS_PREFIX "naddress: "
-#define ENSC_WRAPPERS_IO 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include "wrappers.h"
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-
-#define CMD_SILENT 0x2000
-#define CMD_NID 0x2001
-#define CMD_ADD 0x2002
-#define CMD_REMOVE 0x2003
-#define CMD_SET 0x2004
-#define CMD_IP 0x2010
-#define CMD_BCAST 0x2011
-#define CMD_MASK 0x2012
-#define CMD_RANGE 0x2013
-#define CMD_LBACK 0x2014
-
-int wrapper_exit_code = 255;
-
-
-static struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "silent", no_argument, 0, CMD_SILENT },
- { "add", no_argument, 0, CMD_ADD },
- { "remove", no_argument, 0, CMD_REMOVE },
- { "set", no_argument, 0, CMD_SET },
- { "nid", required_argument, 0, CMD_NID },
- { "ip", required_argument, 0, CMD_IP },
- { "mask", required_argument, 0, CMD_MASK },
- { "range", required_argument, 0, CMD_RANGE },
- { "bcast", required_argument, 0, CMD_BCAST },
- { "lback", required_argument, 0, CMD_LBACK },
- { 0,0,0,0 }
-};
-
-struct vc_ips {
- struct vc_net_addr a;
- struct vc_ips *next;
-};
-
-struct Arguments {
- nid_t nid;
- struct vc_ips head;
- bool is_silent;
- bool do_add;
- bool do_remove;
- bool do_set;
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " (--add|--remove|--set) [--silent] [--nid <nid>]\n"
- " [--ip <ip_num>[/<mask>]] [--bcast <broadcast>] [--] <commands> <args>*\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "naddress " VERSION " -- bind to an ip and execute a program\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003,2004 Enrico Scholz\n"
- "Copyright (C) 2006 Daniel Hokka Zakrisson\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-/*
- Check if a network device exist in /proc/net/dev.
- This is used because ifconfig_ioctl triggers modprobe if requesting
- information about non existant devices.
-
- Return != 0 if the device exist.
-*/
-static bool
-existsDevice(char const *dev_raw)
-{
- size_t buf_size=8192;
- char dev[strlen(dev_raw)+2];
-
- strcpy(dev, dev_raw);
- strcat(dev, ":");
- for (;;) {
- char buf[buf_size];
- char * pos;
- bool too_small;
- int fd=open("/proc/net/dev", O_RDONLY);
-
- if (fd==-1) return false;
- too_small = EreadAll(fd, buf, buf_size);
- close(fd);
-
- if (too_small) {
- buf_size *= 2;
- continue;
- }
-
- pos = strstr(buf, dev);
- return (pos && (pos==buf || pos[-1]==' ' || pos[-1]=='\n'));
- }
-}
-
-static int ifconfig_ioctl(
- int fd,
- const char *ifname,
- int cmd,
- struct ifreq *ifr)
-{
- strcpy(ifr->ifr_name, ifname);
- return ioctl(fd, cmd, ifr);
-}
-
-/*
- Fetch the IP number of an interface from the kernel.
- Assume the device is already available in the kernel
- Return -1 if any error.
-*/
-int ifconfig_getaddr (
- const char *ifname,
- uint32_t *addr,
- uint32_t *mask,
- uint32_t *bcast)
-{
- int ret = -1;
- if (existsDevice(ifname)){
- int skfd = socket(AF_INET, SOCK_DGRAM, 0);
- if (skfd != -1){
- struct ifreq ifr;
- if (addr != NULL && ifconfig_ioctl(skfd,ifname,SIOCGIFADDR, &ifr) >= 0){
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifr.ifr_addr;
- *addr = sin->sin_addr.s_addr;
- ret = 0;
- }
- if (mask != NULL && ifconfig_ioctl(skfd,ifname,SIOCGIFNETMASK, &ifr) >= 0){
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifr.ifr_addr;
- *mask = sin->sin_addr.s_addr;
- ret = 0;
- }
- if (bcast != NULL && ifconfig_ioctl(skfd,ifname,SIOCGIFBRDADDR, &ifr) >= 0){
- struct sockaddr_in *sin = (struct sockaddr_in*)&ifr.ifr_addr;
- *bcast = sin->sin_addr.s_addr;
- ret = 0;
- }
- close (skfd);
- }
- }
- return ret;
-}
-
-static int
-convertAddress(const char *str, uint16_t *type, void *dst)
-{
- int ret;
- if (type) *type = VC_NXA_TYPE_IPV4;
- ret = inet_pton(AF_INET, str, dst);
- if (ret==0) {
- if (type) *type = VC_NXA_TYPE_IPV6;
- ret = inet_pton(AF_INET6, str, dst);
- }
- return ret > 0 ? 0 : -1;
-}
-
-static void
-ipv6PrefixToMask(struct in6_addr *mask, int prefix)
-{
- int i;
- mask->s6_addr32[0] = mask->s6_addr32[1] = mask->s6_addr32[2] = mask->s6_addr32[3] = 0;
- for (i = 0; (i << 3) < prefix; i++) {
- mask->s6_addr[i] = 0xff;
- }
- if ((i << 3) > prefix)
- mask->s6_addr[i-1] = ~((1 << (prefix & 0x07)) - 1);
-}
-
-static int
-maskToPrefix(void *data, int limit)
-{
- uint8_t *mask = data;
- int prefix;
- for (prefix = 0; prefix < limit && mask[prefix >> 3] & (1 << (prefix & 0x07)); prefix++)
- ;
- return prefix;
-}
-
-static void
-readIP(char const *str, struct vc_ips **ips, uint16_t type)
-{
- if (ifconfig_getaddr(str, &(*ips)->a.vna_v4_ip.s_addr, &(*ips)->a.vna_v4_mask.s_addr, NULL)==-1) {
- char *pt;
- char tmpopt[strlen(str)+1];
-
- strcpy(tmpopt,str);
- pt = strchr(tmpopt,'/');
- if (pt)
- *pt++ = '\0';
-
- if (convertAddress(tmpopt, &(*ips)->a.vna_type, &(*ips)->a.vna_v4_ip.s_addr) == -1) {
- WRITE_MSG(2, "Invalid IP number '");
- WRITE_STR(2, tmpopt);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-
- if (pt==0) {
- switch ((*ips)->a.vna_type) {
- case VC_NXA_TYPE_IPV4:
- (*ips)->a.vna_v4_mask.s_addr = htonl(0xffffff00);
- (*ips)->a.vna_prefix = 24;
- break;
- case VC_NXA_TYPE_IPV6:
- (*ips)->a.vna_prefix = 64;
- (*ips)->a.vna_v6_mask.s6_addr32[0] = (*ips)->a.vna_v6_mask.s6_addr32[1] = 0xffffffff;
- (*ips)->a.vna_v6_mask.s6_addr32[2] = (*ips)->a.vna_v6_mask.s6_addr32[3] = 0x00000000;
- break;
- default: break;
- }
- }
- else {
- // Ok, we have a network size, not a netmask
- if (strchr(pt,'.')==0 && strchr(pt,':')==0) {
- unsigned long sz, limit = 0;
-
- switch ((*ips)->a.vna_type) {
- case VC_NXA_TYPE_IPV4: limit = 32; break;
- case VC_NXA_TYPE_IPV6: limit = 128; break;
- default: break;
- }
-
- if (!isNumberUnsigned(pt, &sz, true) || sz > limit) {
- WRITE_MSG(2, "Invalid prefix '");
- WRITE_STR(2, pt);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-
- (*ips)->a.vna_prefix = sz;
- switch ((*ips)->a.vna_type) {
- case VC_NXA_TYPE_IPV4:
- (*ips)->a.vna_v4_mask.s_addr = htonl(~((1 << (32 - sz)) - 1));
- break;
- case VC_NXA_TYPE_IPV6:
- ipv6PrefixToMask(&(*ips)->a.vna_v6_mask, (*ips)->a.vna_prefix);
- break;
- default: break;
- }
- }
- else {
- int af, limit;
- void *mask;
- switch ((*ips)->a.vna_type) {
- case VC_NXA_TYPE_IPV4:
- af = AF_INET;
- mask = &(*ips)->a.vna_v4_mask.s_addr;
- limit = 32;
- break;
- case VC_NXA_TYPE_IPV6:
- af = AF_INET6;
- mask = (*ips)->a.vna_v6_mask.s6_addr32;
- limit = 128;
- break;
- default:
- return;
- }
- if (inet_pton(af, pt, mask) < 0) {
- WRITE_MSG(2, "Invalid netmask '");
- WRITE_STR(2, pt);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
- (*ips)->a.vna_prefix = maskToPrefix(mask, limit);
- }
- }
- }
- else
- (*ips)->a.vna_type = VC_NXA_TYPE_IPV4;
- (*ips)->a.vna_type |= type;
-
- (*ips)->next = calloc(1, sizeof(struct vc_ips));
- *ips = (*ips)->next;
-}
-
-static void
-readBcast(char const *str, struct vc_ips **ips)
-{
- uint32_t bcast;
- if (ifconfig_getaddr(str, NULL, NULL, &bcast)==-1){
- if (inet_pton(AF_INET, str, &bcast) < 0) {
- WRITE_MSG(2, "Invalid broadcast number '");
- WRITE_STR(2, optarg);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
- }
- (*ips)->a.vna_v4_ip.s_addr = bcast;
- (*ips)->a.vna_type = VC_NXA_TYPE_IPV4 | VC_NXA_MOD_BCAST | VC_NXA_TYPE_ADDR;
- (*ips)->next = calloc(1, sizeof(struct vc_ips));
- *ips = (*ips)->next;
-}
-
-static void
-tellAddress(struct vc_net_addr *addr, bool silent)
-{
- char buf[41];
- int af;
- void *address;
- if (silent)
- return;
- switch (addr->vna_type & (VC_NXA_TYPE_IPV4 | VC_NXA_TYPE_IPV6)) {
- case VC_NXA_TYPE_IPV4:
- af = AF_INET;
- address = &addr->vna_v4_ip.s_addr;
- break;
- case VC_NXA_TYPE_IPV6:
- af = AF_INET6;
- address = addr->vna_v6_ip.s6_addr32;
- break;
- default:
- WRITE_MSG(1, " <unknown address type>");
- return;
- }
- if (inet_ntop(af, address, buf, sizeof(buf)) == NULL) {
- WRITE_MSG(1, " <conversion failed>");
- return;
- }
- WRITE_MSG(1, " ");
- WRITE_STR(1, buf);
-}
-
-static inline void
-doit(struct Arguments *args)
-{
- struct vc_ips *ips;
-
- if (args->do_set) {
- struct vc_net_addr remove = { .vna_type = VC_NXA_TYPE_ANY };
- if (vc_net_remove(args->nid, &remove) == -1) {
- perror(ENSC_WRAPPERS_PREFIX "vc_net_remove()");
- exit(wrapper_exit_code);
- }
- }
-
- if (args->do_add || args->do_set) {
- if (!args->is_silent)
- WRITE_MSG(1, "Adding");
- for (ips = &args->head; ips->next; ips = ips->next) {
- tellAddress(&ips->a, args->is_silent);
- if (vc_net_add(args->nid, &ips->a) == -1) {
- if (!args->is_silent)
- WRITE_MSG(1, "\n");
- if (!args->is_silent)
- WRITE_MSG(1, "\n");
- perror(ENSC_WRAPPERS_PREFIX "vc_net_add()");
- exit(wrapper_exit_code);
- }
- }
- if (!args->is_silent)
- WRITE_MSG(1, "\n");
- }
- else if (args->do_remove) {
- if (!args->is_silent)
- WRITE_MSG(1, "Removing");
- for (ips = &args->head; ips->next; ips = ips->next) {
- tellAddress(&ips->a, args->is_silent);
- if (vc_net_remove(args->nid, &ips->a) == -1) {
- if (!args->is_silent)
- WRITE_MSG(1, "\n");
- perror(ENSC_WRAPPERS_PREFIX "vc_net_remove()");
- exit(wrapper_exit_code);
- }
- }
- if (!args->is_silent)
- WRITE_MSG(1, "\n");
- }
-}
-
-int main (int argc, char *argv[])
-{
- struct Arguments args = {
- .nid = VC_NOCTX,
- .is_silent = false,
- .do_add = false,
- .do_remove = false,
- .do_set = false,
- .head = { .next = NULL },
- };
- struct vc_ips *ips = &args.head;
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_SILENT : args.is_silent = true; break;
- case CMD_NID : args.nid = Evc_nidopt2nid(optarg,true); break;
- case CMD_ADD : args.do_add = true; break;
- case CMD_REMOVE : args.do_remove = true; break;
- case CMD_SET : args.do_set = true; break;
- case CMD_IP : readIP(optarg, &ips, VC_NXA_TYPE_ADDR); break;
- case CMD_MASK : readIP(optarg, &ips, VC_NXA_TYPE_MASK); break;
- case CMD_RANGE : readIP(optarg, &ips, VC_NXA_TYPE_RANGE); break;
- case CMD_BCAST : readBcast(optarg, &ips); break;
- case CMD_LBACK : readIP(optarg, &ips, VC_NXA_TYPE_ADDR | VC_NXA_MOD_LBACK); break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- exit(wrapper_exit_code);
- break;
- }
- }
-
- if (args.nid == VC_NOCTX) args.nid = Evc_get_task_nid(0);
-
- if (!args.do_add && !args.do_remove && !args.do_set) {
- WRITE_MSG(2, "No operation specified; try '--help' for more information\n");
- exit(wrapper_exit_code);
- }
- else if (((args.do_add ? 1 : 0) + (args.do_remove ? 1 : 0) + (args.do_set ? 1 : 0)) > 1) {
- WRITE_MSG(2, "Multiple operations specified; try '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
- doit(&args);
-
- if (optind != argc)
- Eexecvp (argv[optind],argv+optind);
- return EXIT_SUCCESS;
-}
-
-#ifdef ENSC_TESTSUITE
-#include <assert.h>
-
-void test()
-{
- struct vc_ip_mask_pair ip;
- uint32_t bcast;
-
- bcast = 0;
- readIP("1.2.3.4", &ip, &bcast);
- assert(ip.ip==ntohl(0x01020304) && ip.mask==ntohl(0xffffff00) && bcast==0);
-
- readIP("1.2.3.4/8", &ip, &bcast);
- assert(ip.ip==ntohl(0x01020304) && ip.mask==ntohl(0xff000000) && bcast==0);
-
- readIP("1.2.3.4/255.255.0.0", &ip, &bcast);
- assert(ip.ip==ntohl(0x01020304) && ip.mask==ntohl(0xffff0000) && bcast==0);
-
- readIP("localhost", &ip, &bcast);
- assert(ip.ip==ntohl(0x7f000001) && ip.mask==ntohl(0xffffff00) && bcast==0);
-
-#if 0
- if (ifconfig_getaddr("lo", &tmp, &tmp, &tmp)!=-1) {
- readIP("lo", &ip, &bcast);
- assert(ip.ip==ntohl(0x7f000001) && ip.mask==ntohl(0xff000000) && bcast==ntohl(0x7fffffff));
- }
-#endif
-}
-#endif
+++ /dev/null
-// $Id: nattribute.c 2585 2007-08-12 00:13:31Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <lib/vserver.h>
-
-#include <getopt.h>
-#include <stdint.h>
-#include <errno.h>
-
-#define ENSC_WRAPPERS_PREFIX "nattribute: "
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_NID 0x2000
-#define CMD_SET 0x2001
-#define CMD_CAP 0x2002
-#define CMD_FLAG 0x2003
-#define CMD_SECURE 0x2004
-
-int wrapper_exit_code = 1;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "nid", required_argument, 0, CMD_NID },
- { "set", no_argument, 0, CMD_SET },
- { "ncap", required_argument, 0, CMD_CAP },
- { "flag", required_argument, 0, CMD_FLAG },
- { "secure", no_argument, 0, CMD_SECURE },
- {0,0,0,0}
-};
-
-struct Arguments {
- nid_t nid;
- struct vc_net_flags flags;
- struct vc_net_caps caps;
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --set [--nid <nid>] [--ncap [~!]<ncap>] [--flag [~!]<flag>] [--secure] -- [<program> <args>*]\n"
- "\n"
- " --ncap <cap> ... network capability to be added\n"
- " --flag <flag> ... network flag to be added\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "nattribute " VERSION " -- sets attributes of network contexts\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- "Copyright (C) 2006 Daniel Hokka Zakrisson\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-parseFlags(char const *str, struct vc_net_flags *flags)
-{
- struct vc_err_listparser err;
- int rc;
-
- rc = vc_list2nflag(str, 0, &err, flags);
-
- if (rc==-1) {
- WRITE_MSG(2, "Unknown flag '");
- Vwrite(2, err.ptr, err.len);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-}
-
-static void
-parseNCaps(char const *str, struct vc_net_caps *caps)
-{
- struct vc_err_listparser err;
- int rc;
-
- rc = vc_list2ncap(str,0, &err, caps);
-
- if (rc==-1) {
- WRITE_MSG(2, "Unknown ncap '");
- Vwrite(2, err.ptr, err.len);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-}
-
-static void
-parseSecure(struct vc_net_flags * flags,
- struct vc_net_caps * caps)
-{
- // TODO: generalize this
- caps->ncaps = VC_NXC_RAW_ICMP;
- caps->cmask = VC_NXC_RAW_ICMP;
-
- flags->flagword = VC_NXF_HIDE_NETIF;
- flags->mask = VC_NXF_HIDE_NETIF;
-}
-
-int main(int argc, char *argv[])
-{
- struct Arguments args = {
- .nid = VC_NOCTX,
- .flags = { .flagword = 0, .mask = 0 },
- .caps = { .ncaps = 0, .cmask = 0 },
- };
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_SET : break; // default op currently
- case CMD_NID : args.nid = Evc_nidopt2nid(optarg,true); break;
- case CMD_FLAG : parseFlags(optarg, &args.flags); break;
- case CMD_CAP : parseNCaps(optarg, &args.caps); break;
- case CMD_SECURE : parseSecure(&args.flags, &args.caps); break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return 255;
- break;
- }
- }
-
- if (args.nid==VC_NOCTX) args.nid = Evc_get_task_nid(0);
-
- if (args.caps.cmask &&
- vc_set_ncaps(args.nid, &args.caps)==-1)
- perror(ENSC_WRAPPERS_PREFIX "vc_set_ncaps()");
- else if (args.flags.mask &&
- vc_set_nflags(args.nid, &args.flags)==-1)
- perror(ENSC_WRAPPERS_PREFIX "vc_set_nflags()");
- else if (optind<argc)
- EexecvpD(argv[optind], argv+optind);
- else
- return EXIT_SUCCESS;
-
- return EXIT_FAILURE;
-}
+++ /dev/null
-// $Id: ncontext.c 2414 2006-12-08 13:20:10Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004-2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "lib/internal.h"
-#include "lib_internal/util.h"
-#include "lib_internal/jail.h"
-
-#include <vserver.h>
-#include <getopt.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <assert.h>
-#include <signal.h>
-#include <sys/types.h>
-
-
-#define ENSC_WRAPPERS_PREFIX "ncontext: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_SOCKET 1
-#define ENSC_WRAPPERS_IOSOCK 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_NID 0x4000
-#define CMD_CREATE 0x4001
-#define CMD_MIGRATE 0x4002
-#define CMD_DISCONNECT 0x4003
-#define CMD_SILENT 0x4004
-#define CMD_SYNCSOCK 0x4005
-#define CMD_SYNCMSG 0x4006
-#define CMD_MIGRATESELF 0x4007
-#define CMD_SILENTEXIST 0x4008
-
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "nid", required_argument, 0, CMD_NID },
- { "create", no_argument, 0, CMD_CREATE },
- { "migrate", no_argument, 0, CMD_MIGRATE },
- { "migrate-self", no_argument, 0, CMD_MIGRATESELF },
- { "disconnect", no_argument, 0, CMD_DISCONNECT },
- { "silent", no_argument, 0, CMD_SILENT },
- { "silentexist", no_argument, 0, CMD_SILENTEXIST },
- { "syncsock", required_argument, 0, CMD_SYNCSOCK },
- { "syncmsg", required_argument, 0, CMD_SYNCMSG },
- { 0,0,0,0 },
-};
-
-struct Arguments {
- bool do_create;
- bool do_migrate;
- bool do_migrateself;
- bool do_disconnect;
- bool is_silentexist;
- int verbosity;
- nid_t nid;
- char const * sync_sock;
- char const * sync_msg;
-};
-
-int wrapper_exit_code = 255;
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --create [--nid <nid>] <opts>* [--] <program> <args>*\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [(--migrate --nid <nid>)|--migrate-self] <opts>* [--] <program> <args>*\n"
- "\n"
- "<opts> can be:\n"
- " --disconnect ... start program in background\n"
- " --silent ... be silent\n"
- " --silentexist ... be silent when context exists already; useful\n"
- " for '--create' only\n"
- " --syncsock <filename>\n"
- " ... before executing the program, send a message\n"
- " to the socket and wait until it closes.\n"
- " <filename> must be a SOCK_STREAM unix socket\n"
- " --syncmsg <message>\n"
- " ... use <message> as synchronization message; by\n"
- " default, 'ok' will be used\n"
- "\n"
- "'ncontext --create' exits with code 254 iff the context exists already.\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "ncontext " VERSION " -- manages the creation of network contexts\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004-2006 Enrico Scholz\n"
- "Copyright (C) 2006 Daniel Hokka Zakrisson\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-#include "context-sync.hc"
-
-static inline ALWAYSINLINE void
-tellContext(nid_t nid, bool do_it)
-{
- char buf[sizeof(nid_t)*3+2];
- size_t l;
-
- if (!do_it) return;
-
- l = utilvserver_fmt_long(buf,nid);
-
- WRITE_MSG(1, "New network context is ");
- Vwrite (1, buf, l);
- WRITE_MSG(1, "\n");
-}
-
-static int
-connectExternalSync(char const *filename)
-{
- int fd;
- struct sockaddr_un addr;
-
- if (filename==0) return -1;
-
- ENSC_INIT_UNIX_SOCK(addr, filename);
-
- fd = Esocket(PF_UNIX, SOCK_STREAM, 0);
- Econnect(fd, &addr, sizeof(addr));
-
- return fd;
-}
-
-static void
-doExternalSync(int fd, char const *msg)
-{
- char c;
-
- if (fd==-1) return;
-
- if (msg) EsendAll(fd, msg, strlen(msg));
- Eshutdown(fd, SHUT_WR);
-
- if (TEMP_FAILURE_RETRY(recv(fd, &c, 1, MSG_NOSIGNAL))!=0) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "unexpected external synchronization event\n");
- exit(wrapper_exit_code);
- }
-
- Eclose(fd);
-}
-
-static inline ALWAYSINLINE int
-doit(struct Arguments const *args, char *argv[])
-{
- int p[2][2];
- pid_t pid = initSync(p, args->do_disconnect);
-
- if (pid==0) {
- nid_t nid;
- int ext_sync_fd = connectExternalSync(args->sync_sock);
-
- doSyncStage0(p, args->do_disconnect);
-
- if (args->do_create) {
- nid = vc_net_create(args->nid);
- if (nid==VC_NOCTX) {
- switch (errno) {
- case EEXIST :
- if (!args->is_silentexist)
- perror(ENSC_WRAPPERS_PREFIX "vc_net_create()");
- return 254;
- default :
- perror(ENSC_WRAPPERS_PREFIX "vc_net_create()");
- return wrapper_exit_code;
- }
- }
- tellContext(nid, args->verbosity>=1);
- }
- else
- nid = args->nid;
-
- if (args->do_migrate && !args->do_migrateself)
- Evc_net_migrate(nid);
-
- doExternalSync(ext_sync_fd, args->sync_msg);
- doSyncStage1(p, args->do_disconnect);
- DPRINTF("doit: pid=%u, ppid=%u\n", getpid(), getppid());
- execvp (argv[optind],argv+optind);
- doSyncStage2(p, args->do_disconnect);
-
- PERROR_Q(ENSC_WRAPPERS_PREFIX "execvp", argv[optind]);
- exit(wrapper_exit_code);
- }
-
- assert(args->do_disconnect);
-
- waitOnSync(pid, p, args->nid!=VC_DYNAMIC_XID && args->do_migrate);
- return EXIT_SUCCESS;
-}
-
-int main (int argc, char *argv[])
-{
- struct Arguments args = {
- .nid = VC_DYNAMIC_XID,
- .do_create = false,
- .do_migrate = false,
- .do_migrateself = false,
- .do_disconnect = false,
- .is_silentexist = false,
- .verbosity = 1,
- .sync_msg = "ok",
- };
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_CREATE : args.do_create = true; break;
- case CMD_MIGRATE : args.do_migrate = true; break;
- case CMD_DISCONNECT : args.do_disconnect = true; break;
- case CMD_SILENTEXIST : args.is_silentexist = true; break;
- case CMD_SYNCSOCK : args.sync_sock = optarg; break;
- case CMD_SYNCMSG : args.sync_msg = optarg; break;
- case CMD_NID : args.nid = Evc_nidopt2nid(optarg,true); break;
- case CMD_SILENT : --args.verbosity; break;
- case CMD_MIGRATESELF :
- args.do_migrate = true;
- args.do_migrateself = true;
- break;
-
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return wrapper_exit_code;
- break;
- }
- }
-
- signal(SIGCHLD, SIG_DFL);
-
- if (args.do_migrateself)
- args.nid = Evc_get_task_nid(0);
-
- if (!args.do_create && !args.do_migrate)
- WRITE_MSG(2, "Neither '--create' nor '--migrate' specified; try '--help' for more information\n");
- else if (args.do_create && args.do_migrate)
- WRITE_MSG(2, "Can not specify '--create' and '--migrate' at the same time; try '--help' for more information\n");
- else if (!args.do_create && args.nid==VC_DYNAMIC_XID)
- WRITE_MSG(2, "Can not migrate to an unknown context\n");
- else if (optind>=argc)
- WRITE_MSG(2, "No command given; use '--help' for more information.\n");
- else
- return doit(&args, argv);
-
- return wrapper_exit_code;
-}
+++ /dev/null
-// $Id: parserpmdump.c 2 2003-09-29 22:01:59Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on parserpmdump.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- Litte utility to extract non config file from
- an rpm --dump command.
-*/
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/stat.h>
-#include <alloca.h>
-
-
-int main (int argc, char *argv[])
-{
- int *tblen = alloca(argc * sizeof(int));
- int i;
- char tmp[1000];
-
- for (i=1; i<argc; i++) tblen[i] = strlen(argv[i]);
- while (fgets(tmp,sizeof(tmp)-1,stdin)!=NULL){
- int i;
- // Check if the file is in an excluded directory
- for (i=1; i<argc; i++){
- if (strncmp(argv[i],tmp,tblen[i])==0) break;
- }
- if (i == argc){
- // Ok no match
- int last = strlen(tmp)-1;
- mode_t mode=-1;
- int type=-1;
- char *start = tmp;
- int i;
-
- if (last >= 0 && tmp[last] == '\n') tmp[last] = '\0';
-
- for (i=0; i<8; i++){
- char *pt = start;
- while (*pt > ' ') pt++;
- if (*pt == ' ') *pt++ = '\0';
- if (i == 4){
- sscanf(start,"%o",&mode);
- }else if (i==7){
- type = atoi(start);
- }
- start = pt;
-
- }
- if (S_ISREG(mode) && type == 0) printf ("%s\n",tmp);
- }
- }
- return 0;
-}
-
+++ /dev/null
-// $Id: readlink.c 1980 2005-03-24 12:44:17Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-
-#include <string.h>
-#include <errno.h>
-#include <limits.h>
-#include <unistd.h>
-#include <stdio.h>
-
-static void
-showHelp(char const *cmd)
-{
- WRITE_MSG(1, "Usage: ");
- WRITE_STR(1, cmd);
- WRITE_MSG(1,
- " [--] <filename>\n"
- "\n"
- "Display value of a symbolic link on standard output.\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "readlink " VERSION " -- display value of symlink\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-
-int main (int argc, char *argv[])
-{
- char buf[PATH_MAX + 2];
- int idx = 1;
- int len;
-
- if (argc>=2) {
- if (strcmp(argv[1], "--help") ==0) showHelp(argv[0]);
- if (strcmp(argv[1], "--version")==0) showVersion();
- if (strcmp(argv[1], "--") ==0) ++idx;
- }
- if (argc<idx+1)
- WRITE_MSG(2, "No filename specified; use '--help' for more information\n");
- else if ((len=readlink(argv[idx], buf, sizeof(buf)-2))==-1)
- PERROR_Q("readlink: readlink", argv[idx]);
- else {
- buf[len++] = '\n';
- Vwrite(1, buf, len);
- return EXIT_SUCCESS;
- }
-
- return EXIT_FAILURE;
-}
-
+++ /dev/null
-// $Id: rebootmgr.c 923 2004-02-17 19:55:54Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on rebootmgr.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- The reboot manager allow a virtual server administrator to request
- a complete restart of his vserver. This means that all services
- are terminated, all remaining processes are killed and then
- all services are started.
-
- This is done by issuing
-
- /usr/sbin/vserver vserver restart
-
-
- The rebootmgr installs a unix domain socket in each vservers
- and listen for the reboot messages. All other message are discarded.
-
- The unix domain socket is placed in /vservers/N/dev/reboot and is
- turned immutable.
-
- The vreboot utility is used to send the signal from the vserver
- environment.
-*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "pathconfig.h"
-
-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <limits.h>
-#include <errno.h>
-#include <syslog.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <alloca.h>
-
-static void usage()
-{
- fprintf (stderr,"rebootmgr version %s\n",VERSION);
- fprintf (stderr,"\n");
- fprintf (stderr,"rebootmgr [--pidfile file ] vserver-name [ vserver-name ...]\n");
-}
-
-static int rebootmgr_opensocket (const char *vname)
-{
- int ret = -1;
- char sockn[PATH_MAX];
- int fd = socket (AF_UNIX,SOCK_STREAM,0);
- sprintf (sockn, DEFAULT_VSERVERDIR "/%s/dev/reboot",vname);
- unlink (sockn);
- if (fd == -1){
- fprintf (stderr,"Can't create a unix domain socket (%s)\n"
- ,strerror(errno));
- }else{
- struct sockaddr_un un;
- un.sun_family = AF_UNIX;
- strcpy (un.sun_path,sockn);
- if (bind(fd,(struct sockaddr*)&un,sizeof(un))==-1){
- fprintf (stderr,"Can't bind to file %s (%s)\n",sockn
- ,strerror(errno));
- }else{
- int code;
- chmod (sockn,0600);
- code = listen (fd,10);
- if (code == -1){
- fprintf (stderr,"Can't listen to file %s (%s)\n",sockn
- ,strerror(errno));
- }else{
- ret = fd;
- }
- }
- }
- return ret;
-}
-
-static int rebootmgr_process (int fd, const char *vname)
-{
- int ret = -1;
- char buf[100];
- int len = read (fd,buf,sizeof(buf)-1);
- // fprintf (stderr,"process %d %s len %d\n",fd,vname,len);
- if (len > 0){
- buf[len] = '\0';
- if (strcmp(buf,"reboot\n")==0){
- char cmd[1000];
- syslog (LOG_NOTICE,"reboot vserver %s\n",vname);
- snprintf (cmd,sizeof(cmd)-1, SBINDIR "/vserver %s restart >>/var/log/boot.log 2>&1", vname);
- system (cmd);
- ret = 0;
- }else if (strcmp(buf,"halt\n")==0){
- char cmd[1000];
- syslog (LOG_NOTICE,"halt vserver %s\n",vname);
- snprintf (cmd,sizeof(cmd)-1, SBINDIR "/vserver %s stop >>/var/log/boot.log 2>&1", vname);
- system (cmd);
- ret = 0;
- }else{
- syslog (LOG_ERR,"Invalid request from vserver %s",vname);
- }
- }
- return ret;
-}
-
-
-int main (int argc, char *argv[])
-{
- int ret = -1;
- if (argc < 2){
- usage();
- }else{
- int error = 0;
- int start = 1;
- int i;
- int *sockets = alloca(argc * sizeof(int));
-
- openlog ("rebootmgr",LOG_PID,LOG_DAEMON);
- for (i=0; i<argc; i++){
- const char *arg = argv[i];
- if (strcmp(arg,"--pidfile")==0){
- const char *pidfile = argv[i+1];
- FILE *fout = fopen (pidfile,"w");
- if (fout == NULL){
- fprintf (stderr,"Can't open pidfile %s (%s)\n"
- ,pidfile,strerror(errno));
-
- __extension__
- syslog (LOG_ERR,"Can't open pidfile %s (%m)"
- ,pidfile);
- }else{
- fprintf (fout,"%d\n",getpid());
- fclose (fout);
- }
- start = i+2;
- i++;
- }else if (strcmp(arg,"--")==0){
- start = i+1;
- break;
- }else if (arg[0] == '-'){
- fprintf (stderr,"Invalid argument %s\n",arg);
- syslog (LOG_ERR,"Invalid argument %s",arg);
- }
- }
- for (i=start; i<argc; i++){
- int fd = rebootmgr_opensocket (argv[i]);
- if (fd == -1){
- error = 1;
- }else{
- sockets[i] = fd;
- }
- }
- if (!error){
- int maxhandles = argc*2;
- struct {
- int handle;
- const char *vname;
- } handles[maxhandles];
- int nbhandles=0;
- while (1){
- int maxfd = 0;
- int i;
- int ok;
-
- fd_set fdin;
- FD_ZERO (&fdin);
- for (i=start; i<argc; i++){
- int fd = sockets[i];
- if (fd > maxfd) maxfd = fd;
- FD_SET (fd,&fdin);
- }
- for (i=0; i<nbhandles; i++){
- int fd = handles[i].handle;
- if (fd > maxfd) maxfd = fd;
- FD_SET (fd,&fdin);
- }
- ok = select (maxfd+1,&fdin,NULL,NULL,NULL);
- if (ok <= 0){
- break;
- }else{
- int i;
- int dst = 0;
-
- for (i=start; i<argc; i++){
- int fd = sockets[i];
- if (FD_ISSET(fd,&fdin)){
- struct sockaddr_un unc;
- socklen_t len = sizeof(unc);
- unc.sun_family = AF_UNIX;
- fd = accept (fd,(struct sockaddr*)&unc,&len);
- if (fd != -1){
- if (nbhandles == maxhandles){
- int j;
- // Overloaded, we close every handle
- syslog (LOG_ERR,"%d sockets opened: Overloaded\n",nbhandles);
- for (j=0; j<nbhandles; j++){
- close (handles[j].handle);
- }
- nbhandles = 0;
- }
- handles[nbhandles].handle = fd;
- handles[nbhandles].vname = argv[i];
- nbhandles++;
- // fprintf (stderr,"accept %d\n",nbhandles);
- }
- }
- }
- for (i=0; i<nbhandles; i++){
- int fd = handles[i].handle;
- if (FD_ISSET(fd,&fdin)){
- if (rebootmgr_process (fd,handles[i].vname)==-1){
- close (fd);
- }else{
- handles[dst++] = handles[i];
- }
- }else{
- handles[dst++] = handles[i];
- }
- }
- nbhandles = dst;
- }
- }
- }
- }
- return ret;
-}
-
-
+++ /dev/null
-// $Id: reducecap.c 2279 2006-01-22 19:31:53Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on reducecap.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "vserver.h"
-
-#include <stdio.h>
-#include <errno.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <getopt.h>
-#include <sys/param.h>
-
-#define ENSC_WRAPPERS_PREFIX "reducecap: "
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-
-#undef _POSIX_SOURCE
-#include "capability-compat.h"
-
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-
-#define CMD_SHOW 0x2000
-#define CMD_PID 0x2001
-
-#define CMD_CAP 0x4000
-#define CMD_FLAG 0x4004
-#define CMD_SECURE 0x4006
-
-#ifdef VC_ENABLE_API_LEGACY
-# define CMD_OBSOLETE_CHOWN 0x8000
-# define CMD_OBSOLETE_DAC_OVERRIDE 0x8001
-# define CMD_OBSOLETE_DAC_READ_SEARCH 0x8002
-# define CMD_OBSOLETE_FOWNER 0x8003
-# define CMD_OBSOLETE_FSETID 0x8004
-# define CMD_OBSOLETE_KILL 0x8005
-# define CMD_OBSOLETE_SETGID 0x8006
-# define CMD_OBSOLETE_SETUID 0x8007
-# define CMD_OBSOLETE_SETPCAP 0x8008
-# define CMD_OBSOLETE_SYS_TTY_CONFIG 0x8009
-# define CMD_OBSOLETE_LEASE 0x800a
-# define CMD_OBSOLETE_SYS_CHROOT 0x800b
-# define CMD_OBSOLETE_X_LINUX_IMMUTABLE 0x800c
-# define CMD_OBSOLETE_X_NET_BIND_SERVICE 0x800d
-# define CMD_OBSOLETE_X_NET_BROADCAST 0x800e
-# define CMD_OBSOLETE_X_NET_ADMIN 0x800f
-# define CMD_OBSOLETE_X_NET_RAW 0x8010
-# define CMD_OBSOLETE_X_IPC_LOCK 0x8011
-# define CMD_OBSOLETE_X_IPC_OWNER 0x8012
-# define CMD_OBSOLETE_X_SYS_MODULE 0x8013
-# define CMD_OBSOLETE_X_SYS_RAWIO 0x8014
-# define CMD_OBSOLETE_X_SYS_PACCT 0x8015
-# define CMD_OBSOLETE_X_SYS_ADMIN 0x8016
-# define CMD_OBSOLETE_X_SYS_BOOT 0x8017
-# define CMD_OBSOLETE_X_SYS_NICE 0x8018
-# define CMD_OBSOLETE_X_SYS_RESOURCE 0x8019
-# define CMD_OBSOLETE_X_SYS_TIME 0x801a
-# define CMD_OBSOLETE_X_MKNOD 0x801b
-# define CMD_OBSOLETE_X_QUOTACTL 0x801c
-
-static char const * const OBSOLETE_MAPPING[] = {
- // 0 1 2 3
- "CHOWN", "DAC_OVERRIDE", "DAC_READ_SEARCH", "FOWNER",
- "FSETID", "KILL", "SETGID", "SETUID",
- "SETPCAP", "SYS_TTY_CONFIG", "LEASE", "SYS_CHROOT",
- "LINUX_IMMUTABLE", "NET_BIND_SERVICE", "NET_BROADCAST", "NET_ADMIN",
- "NET_RAW", "IPC_LOCK", "IPC_OWNER", "SYS_MODULE",
- "SYS_RAWIO", "SYS_PACCT", "SYS_ADMIN", "SYS_BOOT",
- "SYS_NICE", "SYS_RESOURCE", "SYS_TIME", "MKNOD",
- "QUOTACTL" };
-#endif
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "cap", required_argument, 0, CMD_CAP },
- { "flag", required_argument, 0, CMD_FLAG },
- { "secure", no_argument, 0, CMD_SECURE },
- { "show", no_argument, 0, CMD_SHOW },
- { "pid", required_argument, 0, CMD_PID },
-#ifdef VC_ENABLE_API_LEGACY
- { "CAP_CHOWN", no_argument, 0, CMD_OBSOLETE_CHOWN },
- { "CAP_DAC_OVERRIDE", no_argument, 0, CMD_OBSOLETE_DAC_OVERRIDE },
- { "CAP_DAC_READ_SEARCH", no_argument, 0, CMD_OBSOLETE_DAC_READ_SEARCH },
- { "CAP_FOWNER", no_argument, 0, CMD_OBSOLETE_FOWNER },
- { "CAP_FSETID", no_argument, 0, CMD_OBSOLETE_FSETID },
- { "CAP_KILL", no_argument, 0, CMD_OBSOLETE_KILL },
- { "CAP_SETGID", no_argument, 0, CMD_OBSOLETE_SETGID },
- { "CAP_SETUID", no_argument, 0, CMD_OBSOLETE_SETUID },
- { "CAP_SETPCAP", no_argument, 0, CMD_OBSOLETE_SETPCAP },
- { "CAP_SYS_TTY_CONFIG", no_argument, 0, CMD_OBSOLETE_SYS_TTY_CONFIG },
- { "CAP_LEASE", no_argument, 0, CMD_OBSOLETE_LEASE },
- { "CAP_SYS_CHROOT", no_argument, 0, CMD_OBSOLETE_SYS_CHROOT },
- { "--CAP_LINUX_IMMUTABLE", no_argument, 0, CMD_OBSOLETE_X_LINUX_IMMUTABLE },
- { "--CAP_NET_BIND_SERVICE", no_argument, 0, CMD_OBSOLETE_X_NET_BIND_SERVICE },
- { "--CAP_NET_BROADCAST", no_argument, 0, CMD_OBSOLETE_X_NET_BROADCAST },
- { "--CAP_NET_ADMIN", no_argument, 0, CMD_OBSOLETE_X_NET_ADMIN },
- { "--CAP_NET_RAW", no_argument, 0, CMD_OBSOLETE_X_NET_RAW },
- { "--CAP_IPC_LOCK", no_argument, 0, CMD_OBSOLETE_X_IPC_LOCK },
- { "--CAP_IPC_OWNER", no_argument, 0, CMD_OBSOLETE_X_IPC_OWNER },
- { "--CAP_SYS_MODULE", no_argument, 0, CMD_OBSOLETE_X_SYS_MODULE },
- { "--CAP_SYS_RAWIO", no_argument, 0, CMD_OBSOLETE_X_SYS_RAWIO },
- { "--CAP_SYS_PACCT", no_argument, 0, CMD_OBSOLETE_X_SYS_PACCT },
- { "--CAP_SYS_ADMIN", no_argument, 0, CMD_OBSOLETE_X_SYS_ADMIN },
- { "--CAP_SYS_BOOT", no_argument, 0, CMD_OBSOLETE_X_SYS_BOOT },
- { "--CAP_SYS_NICE", no_argument, 0, CMD_OBSOLETE_X_SYS_NICE },
- { "--CAP_SYS_RESOURCE", no_argument, 0, CMD_OBSOLETE_X_SYS_RESOURCE },
- { "--CAP_SYS_TIME", no_argument, 0, CMD_OBSOLETE_X_SYS_TIME },
- { "--CAP_MKNOD", no_argument, 0, CMD_OBSOLETE_X_MKNOD },
- { "--CAP_QUOTACTL", no_argument, 0, CMD_OBSOLETE_X_QUOTACTL },
-#endif
- { 0,0,0,0 }
-};
-
-int wrapper_exit_code = 255;
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
-#if !defined(VC_ENABLE_API_COMPAT) && !defined(VC_ENABLE_API_LEGACY)
- WRITE_MSG(1, "ERROR: tools were built without legacy API support; reducecap will not work!\n\n");
-#endif
-
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--show] [--secure] [--flag <flag>] [--cap <capability>] [--] <cmd> <args>*\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --show [--pid <pid>]\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "reducecap " VERSION " -- starts programs with reduced capabilities\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003,2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-printReducecap(struct __user_cap_data_struct *user)
-{
- int i;
- WRITE_MSG(1, " Capability Effective Permitted Inheritable\n");
-
- for (i=0;; ++i) {
- size_t const len = 23 + 10*2 + 4+2;
- char const * text = vc_cap2text(i);
- int bit = 1<<i;
- size_t l;
- char buf[len];
- if (text==0) break;
-
- memset(buf, ' ', sizeof buf);
- buf[len-1] = '\n';
- l = MIN(strlen(text), 22);
- memcpy(buf, text, l);
- buf[23 + 10*0 + 4] = (user->effective & bit) ? 'X' : ' ';
- buf[23 + 10*1 + 4] = (user->permitted & bit) ? 'X' : ' ';
- buf[23 + 10*2 + 4] = (user->inheritable & bit) ? 'X' : ' ';
- Vwrite(1, buf, len);
- }
-}
-
-static void
-show(pid_t pid)
-{
- struct __user_cap_header_struct header;
- struct __user_cap_data_struct user;
- header.version = _LINUX_CAPABILITY_VERSION;
- header.pid = pid;
- if (capget(&header,&user)==-1){
- perror ("reducecap: capget()");
- exit(wrapper_exit_code);
- }
-
- printReducecap(&user);
-}
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
-
-static uint32_t
-getCap(char const *cap)
-{
- int bit = vc_text2cap(cap);
- if (bit!=0) {
- WRITE_MSG(2, "Unknown capability '");
- WRITE_STR(2, optarg);
- WRITE_MSG(2, "'; try '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
- return (1<<bit);
-}
-
-#endif
-
-int main (int argc, char *argv[])
-{
- uint32_t remove = 0;
- bool do_show = false;
- uint32_t flags = 0;
- pid_t pid = 0;
-#ifdef VC_ENABLE_API_LEGACY
- bool show_obsolete_warning = true;
-#endif
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
-#ifdef VC_ENABLE_API_LEGACY
- if (c>=CMD_OBSOLETE_CHOWN && c<=CMD_OBSOLETE_X_QUOTACTL) {
- if (show_obsolete_warning) {
- WRITE_MSG(2, "reducecap: warning, obsolete CLI used\n");
- show_obsolete_warning = false;
- }
-
- remove = getCap(OBSOLETE_MAPPING[c-CMD_OBSOLETE_CHOWN]);
- continue;
- }
-#endif
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_SHOW : do_show = true; break;
- case CMD_PID : pid = atoi(optarg); break;
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
- case CMD_SECURE : remove = vc_get_insecurebcaps(); break;
- case CMD_CAP : remove = getCap(optarg); break;
- case CMD_FLAG : {
- struct vc_err_listparser err;
-
- flags = vc_list2cflag_compat(optarg, 0, &err);
- if (err.ptr!=0) {
- WRITE_MSG(2, "Unknown flag '");
- Vwrite(2, err.ptr, err.len);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
- break;
- }
-#else
- case CMD_SECURE :
- case CMD_CAP :
- case CMD_FLAG : flags = 0; remove = 0; break;
-#endif
- }
- }
-
- if (!do_show && optind==argc) {
- WRITE_MSG(2, "No command given; use '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
- if (!do_show && pid!=0) {
- WRITE_MSG(2, "A pid can be specified in '--show' mode only; use '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
- if (do_show && optind==argc)
- show(pid);
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_LEGACY)
- else {
- Evc_new_s_context(VC_SAMECTX, remove, flags);
- if (do_show) show(pid);
-
- WRITE_MSG(2, "Executing\n");
- Eexecvp(argv[optind], argv+optind);
- }
-#else
- else if (do_show)
- show(pid);
- else {
- WRITE_MSG(2, "reducecap: tools were built without legacy API support; can not continue\n");
- exit(wrapper_exit_code);
- }
-#endif
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: rpm-fake-resolver.c 2501 2007-02-20 17:33:35Z dhozac $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-// Protocol:
-// 1. startup
-// 2. initialize (setuid, ctx-migrate, chroot, ...)
-// 3. send "." token to fd 3
-// 4. wait one character on fd 1
-// 5. process this character and consume further characters from fd 1 as far
-// as needed
-// 6. go to 3) (or exit)
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "internal.h"
-#include "vserver.h"
-#include "util.h"
-
-#include <getopt.h>
-#include <stdlib.h>
-#include <stdbool.h>
-#include <grp.h>
-#include <pwd.h>
-#include <fcntl.h>
-#include <errno.h>
-
-#define ENSC_WRAPPERS_PREFIX "rpm-fake-resolver: "
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_IO 1
-#define ENSC_WRAPPERS_FCNTL 1
-#include <wrappers.h>
-
-#define MAX_RQSIZE 0x1000
-
-int wrapper_exit_code = 1;
-
-struct ArgInfo {
- xid_t ctx;
- uid_t uid;
- gid_t gid;
- bool do_fork;
- bool in_ctx;
- char const * pid_file;
- char const * chroot;
- uint32_t caps;
- int flags;
-};
-
-static struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, 'h' },
- { "version", no_argument, 0, 'v' },
- { 0,0,0,0 }
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [-c <ctx>] [-u <uid>] [-g <gid>] [-r <chroot>] [-s] [-n]\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "rpm-fake-resolver " VERSION " -- NSS resovler for rpm-fake\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-
-inline static void
-parseArgs(struct ArgInfo *args, int argc, char *argv[])
-{
- while (1) {
- int c = getopt_long(argc, argv, "F:C:c:u:g:r:ns", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case 'h' : showHelp(1, argv[0], 0);
- case 'v' : showVersion();
-
- case 'c' : args->ctx = atoi(optarg); break;
- case 'u' : args->uid = atoi(optarg); break;
- case 'g' : args->gid = atoi(optarg); break;
- case 'F' : args->flags = atoi(optarg); break;
- case 'C' : args->caps = atoi(optarg); break;
- case 'r' : args->chroot = optarg; break;
- case 'n' : args->do_fork = false; break;
- case 's' : args->in_ctx = true; break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- exit(1);
- break;
- }
- }
-
- if (optind!=argc) {
- WRITE_MSG(2, "No further options allowed; aborting ...\n");
- exit(1);
- }
-
- if (args->chroot==0) {
- WRITE_MSG(2, "No chroot specified; aborting...\n");
- exit(1);
- }
-}
-
-static void
-sendResult(bool state, uint32_t res)
-{
- if (state) {
- static uint8_t ONE = 1;
- Ewrite(1, &ONE, sizeof ONE);
- }
- else {
- static uint8_t ZERO = 0;
- Ewrite(1, &ZERO, sizeof ZERO);
- }
-
- Ewrite(1, &res, sizeof res);
-}
-
-static void
-do_getpwnam()
-{
- uint32_t len;
-
- if (EreadAll(0, &len, sizeof len) &&
- len<MAX_RQSIZE) {
- char buf[len+1];
- struct passwd * res = 0;
-
- if (EreadAll(0, buf, len)) {
- buf[len] = '\0';
- res = getpwnam(buf);
- }
-
- if (res!=0) sendResult(true, res->pw_uid);
- else sendResult(false, -1);
- }
- // TODO: logging
-}
-
-static void
-do_getgrnam()
-{
- uint32_t len;
-
- if (EreadAll(0, &len, sizeof len) &&
- len<MAX_RQSIZE) {
- char buf[len+1];
- struct group * res = 0;
-
- if (EreadAll(0, buf, len)) {
- buf[len] = '\0';
- res = getgrnam(buf);
- }
-
- if (res!=0) sendResult(true, res->gr_gid);
- else sendResult(false, -1);
- }
- // TODO: logging
-}
-
-static void
-do_closenss()
-{
- uint8_t what;
-
- if (EreadAll(0, &what, sizeof what)) {
- switch (what) {
- case 'p' : endpwent(); break;
- case 'g' : endgrent(); break;
- default : break;
- }
- }
-}
-
-static void
-run()
-{
- uint8_t c;
-
- while (EwriteAll(3, ".", 1),
- EreadAll (0, &c, sizeof c)) {
- switch (c) {
- case 'P' : do_getpwnam(); break;
- case 'G' : do_getgrnam(); break;
- case 'Q' : exit(0);
- case 'C' : do_closenss(); break;
- case '.' : Ewrite(1, ".", 1); break;
- default : Ewrite(1, "?", 1); break;
- }
- }
-}
-
-static void
-daemonize(struct ArgInfo const UNUSED * args, int pid_fd)
-{
- int p[2];
- pid_t pid;
- char c;
-
- Epipe(p);
- pid = Efork();
-
- if (pid!=0) {
- if (pid_fd!=-1) {
- char buf[sizeof(id_t)*3 + 2];
- size_t l;
-
- l = utilvserver_fmt_uint(buf, pid);
- Ewrite(pid_fd, buf, l);
- Ewrite(pid_fd, "\n", 1);
- }
- _exit(0);
- }
- Eclose(p[1]);
- TEMP_FAILURE_RETRY(read(p[0], &c, 1));
- Eclose(p[0]);
-}
-
-static void
-activateContext(xid_t xid, bool in_ctx,
- uint32_t UNUSED xid_caps, int UNUSED xid_flags)
-{
- if (in_ctx) {
- struct vc_ctx_flags flags = {
- .flagword = 0,
- .mask = VC_VXF_STATE_SETUP,
- };
-
- Evc_set_cflags(xid, &flags);
- }
- else if (vc_isSupported(vcFEATURE_MIGRATE))
- Evc_ctx_migrate(xid, 0);
- else {
-#ifdef VC_ENABLE_API_COMPAT
- Evc_new_s_context(xid, xid_caps, xid_flags);
-#else
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "can not change context: migrate kernel feature missing and 'compat' API disabled\n");
- exit(wrapper_exit_code);
-#endif
- }
-}
-
-int main(int argc, char * argv[])
-{
- struct ArgInfo args = {
- .ctx = VC_DYNAMIC_XID,
- .uid = 99,
- .gid = 99,
- .do_fork = true,
- .pid_file = 0,
- .chroot = 0,
- .in_ctx = false,
- .flags = S_CTX_INFO_LOCK,
- };
- int pid_fd = -1;
-
-#ifndef __dietlibc__
-# warning *** rpm-fake-resolver is built against glibc; please do not report errors before trying a dietlibc version ***
- WRITE_MSG(2,
- "*** rpm-fake-resolver was built with glibc; please do ***\n"
- "*** not report errors before trying a dietlibc version. ***\n");
-#endif
-
- parseArgs(&args, argc, argv);
- if (args.pid_file && args.do_fork)
- pid_fd = EopenD(args.pid_file, O_CREAT|O_WRONLY, 0644);
-
- if (args.chroot) Echroot(args.chroot);
- Echdir("/");
-
- activateContext(args.ctx, args.in_ctx, args.caps, args.flags);
- Esetgroups(0, &args.gid);
- Esetgid(args.gid);
- Esetuid(args.uid);
-
- if (args.do_fork) daemonize(&args, pid_fd);
- if (pid_fd!=-1) close(pid_fd);
- run();
-}
+++ /dev/null
-// $Id: rpm-fake.c 2578 2007-08-08 20:05:26Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-//
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "pathconfig.h"
-#include "util.h"
-
-#include <lib/vserver.h>
-#include <lib/internal.h>
-#include <lib_internal/sys_clone.h>
-
-#include <sys/socket.h>
-#include <dlfcn.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <asm/unistd.h>
-#include <string.h>
-#include <stdbool.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <stdarg.h>
-#include <sys/mount.h>
-#include <linux/fs.h>
-#include <sched.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/un.h>
-#include <fcntl.h>
-#include <pwd.h>
-#include <grp.h>
-
-
- // from selinux.h
- // FIXME: add configure autodetection and include <selinux.h> directly
-int rpm_execcon(unsigned int verified,
- const char *filename,
- char *const argv[], char *const envp[]);
-
-
-#define ENSC_WRAPPERS_PREFIX "rpm-fake.so: "
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-#undef _POSIX_SOURCE
-#include "capability-compat.h"
-
-#define LIBNAME "rpm-fake.so"
-#define PLATFORM_FILE "/etc/rpm/platform"
-
-#define INIT(FILE,FUNC) FUNC##_func = ((__typeof__(FUNC) *) (xdlsym(FILE, #FUNC)))
-#define DECLARE(FUNC) static __typeof__(FUNC) * FUNC##_func = 0
-
-#define DEBUG 1
-
-#define DBG_INIT 0x0001
-#define DBG_VARIABLES 0x0002
-#define DBG_RESOLVER 0x0004
-#define DBG_EXECV 0x0008
-#define DBG_ENV 0x0010
-#define DBG_VERBOSE0 0x8000
-#define DBG_VERBOSE1 (0x4000 | DBG_VERBOSE0)
-#define DBG_VERBOSE2 (0x2000 | DBG_VERBOSE1)
-
-int wrapper_exit_code = 255;
-
-static xid_t ctx = VC_NOCTX;
-static uint32_t caps = ~0;
-static int flags = 0;
-static char const * mnts = 0;
-static char const * root = 0;
-static int pw_sock = -1;
-static int sync_sock = -1;
-static unsigned int debug_level = 0;
-
-static bool is_initialized = false;
-
- //DECLARE(rpm_execcon);
- //DECLARE(execv);
-DECLARE(getpwnam);
-DECLARE(getgrnam);
-DECLARE(endpwent);
-DECLARE(endgrent);
-
-static void initRPMFake() __attribute__((__constructor__));
-static void exitRPMFake() __attribute__((__destructor__));
-
-static inline bool
-isDbgLevel(unsigned int level)
-{
- return ((debug_level&level)==level);
-}
-
-static void *
-xdlsym(void *handle, const char *symbol)
-{
- void *res = dlsym(handle, symbol);
- if (res==0) {
- char const *error = dlerror();
- Vwrite(2, symbol, strlen(symbol));
- Vwrite(2, ": ", 2);
- Vwrite(2, error, strlen(error));
- Vwrite(2, "\n", 2);
-
- _exit(255);
- }
-
- return res;
-}
-
-static void
-showHelp()
-{
- WRITE_MSG(1,
- "Usage: LD_PRELOAD=" LIBNAME " <executable> <args>*\n\n"
- LIBNAME " unterstands the following environment variables:\n"
- " $RPM_FAKE_RESOLVER ... program which does the NSS resolving (defaults\n"
- " to " RESOLVER_PROG ")\n"
- " $RPM_FAKE_RESOLVER_UID ... uid of the resolver program\n"
- " $RPM_FAKE_RESOLVER_GID ... gid of the resolver program\n"
- " $RPM_FAKE_CTX ... vserver context which shall be used for resolver\n"
- " and scriptlets\n"
- " $RPM_FAKE_CAP ... linux capability remove-mask for the context\n"
- " $RPM_FAKE_FLAGS ... vserver flags of the context\n"
- " $RPM_FAKE_CHROOT ... directory of the chroot environment\n"
- " $RPM_FAKE_NAMESPACE_MOUNTS\n"
- " ... colon separated list of directories which will\n"
- " umounted before scriptlet execution\n\n"
- " $RPM_FAKE_HELP ... shows this message\n"
- " $RPM_FAKE_VERSION ... shows the version of this program\n\n"
- " $RPM_FAKE_DEBUG ... sets the debuglevel bitmask\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- LIBNAME " " VERSION " -- wrapper around rpm\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-unsetPreloadEnv()
-{
- char *env = getenv("LD_PRELOAD");
- char *pos;
-
- // the const <-> non-const assignment is not an issue since the following
- // modifying operations will not be executed in the const-case
- env = env ? env : "";
- pos = strstr(env, LIBNAME);
-
- if (pos!=0) {
- char *end_pos = pos + sizeof(LIBNAME);
- bool is_end = (end_pos[-1]=='\0');
- char *start_pos;
-
- end_pos[-1] = '\0';
- start_pos = strrchr(env, ':');
- if (start_pos==0) start_pos = env;
- else if (!is_end) ++start_pos;
-
- if (is_end) *start_pos = '\0';
- else memmove(start_pos, end_pos, strlen(end_pos)+1);
- }
-
-#ifdef DEBUG
- if (isDbgLevel(DBG_VERBOSE1|DBG_VARIABLES)) {
- WRITE_MSG(2, "env='");
- WRITE_STR(2, env);
- WRITE_MSG(2, "'\n");
- }
-#endif
-
- if (*env=='\0') unsetenv("LD_PRELOAD");
-}
-
-static void
-clearEnv()
-{
- if (isDbgLevel(DBG_ENV)) WRITE_MSG(2, "clearEnv()\n");
-
- unsetenv("RPM_FAKE_S_CONTEXT_REV");
- unsetenv("RPM_FAKE_S_CONTEXT_NR");
- unsetenv("RPM_FAKE_CTX");
- unsetenv("RPM_FAKE_FLAGS");
- unsetenv("RPM_FAKE_CHROOT");
- unsetenv("RPM_FAKE_NAMESPACE_MOUNTS");
-
- unsetenv("RPM_FAKE_RESOLVER_GID");
- unsetenv("RPM_FAKE_RESOLVER_UID");
- unsetenv("RPM_FAKE_RESOLVER");
- unsetenv("RPM_FAKE_PWSOCKET");
-
- unsetenv("RPM_FAKE_DEBUG");
-
- unsetPreloadEnv();
-}
-
-static int
-getDefaultEnv(char const *key, int dflt)
-{
- char *env = getenv(key);
- int res;
-
- if (env==0 || env[0]=='\0') res = dflt;
- else res = atoi(env);
-
- return res;
-}
-
- /// \returns true iff we are in ctx after leaving this function
-static bool
-setupContext(xid_t xid, char const **xid_str)
-{
- bool res = false;
-
- if (vc_isSupported(vcFEATURE_MIGRATE)) {
- xid_t rc=VC_NOCTX;
-
- if ((xid==VC_DYNAMIC_XID || !vc_is_dynamic_xid(xid)) &&
- (rc=vc_ctx_create(xid, NULL))==VC_NOCTX &&
- errno!=EEXIST) {
- perror(ENSC_WRAPPERS_PREFIX "vc_ctx_create()");
- exit(255);
- }
-
- if (rc!=VC_NOCTX) {
- char buf[sizeof(xid_t)*3 + 128];
- size_t l;
- struct vc_ctx_caps caps;
-
- strcpy(buf, "rpm-fake.so #");
- l = utilvserver_fmt_uint(buf+sizeof("rpm-fake.so #")-1, getppid());
- Evc_set_vhi_name(rc, vcVHI_CONTEXT, buf, sizeof("rpm-fake.so #")+l-1);
-
- caps.ccaps = 0ull;
- caps.cmask = ~0ull;
- caps.bcaps = ~vc_get_insecurebcaps();
- caps.bmask = ~0ull;
- Evc_set_ccaps(rc, &caps);
-
- // context will be activated later...
-
- xid = rc;
- res = true;
- }
- }
-
- if (xid==VC_DYNAMIC_XID)
- *xid_str = 0;
- else {
- char buf[sizeof(xid_t)*3 + 2];
- size_t l;
-
- l = utilvserver_fmt_uint(buf, xid); buf[l] = '\0';
- *xid_str = strdup(buf);
- }
-
- Ewrite(3, &xid, sizeof xid);
- return res;
-}
-
-#if 0
-static void
-initPwSocket()
-{
- char const * sock_name = getenv("RPM_FAKE_PWSOCKET");
- if (sock_name!=0) {
- int flag;
- struct sockaddr_un addr = {
- .sun_family = AF_UNIX,
- };
-
- strncpy(addr.sun_path, sock_name, sizeof(addr.sun_path)-1);
- addr.sun_path[sizeof(addr.sun_path)-1]='\0';
-
- if ((pw_sock=socket(AF_UNIX, SOCK_STREAM, 0))==-1 ||
- connect(pw_sock, (struct sockaddr *)(&addr), sizeof addr)==-1 ||
- (flag=fcntl(pw_sock, F_GETFD))==-1 ||
- fcntl(pw_sock, F_SETFD, flag | FD_CLOEXEC)==-1) {
- perror(ENSC_WRAPPERS_PREFIX "error while initializing pw-socket");
- exit(255);
- }
- }
-}
-#else
-static void
-initPwSocket()
-{
- char const * resolver = getenv("RPM_FAKE_RESOLVER");
- if (resolver==0) resolver=RESOLVER_PROG;
-
- if (resolver!=0 && *resolver!='\0') {
- int res_sock[2];
- int sync_pipe[2];
- pid_t pid;
- char const * uid=0;
- char const * gid=0;
-
- uid=getenv("RPM_FAKE_RESOLVER_UID");
- gid=getenv("RPM_FAKE_RESOLVER_GID");
-
- if (socketpair(AF_UNIX, SOCK_STREAM, 0, res_sock)==-1 ||
- pipe(sync_pipe)==-1 ||
- fcntl(res_sock[0], F_SETFD, FD_CLOEXEC)==-1 ||
- fcntl(sync_pipe[0], F_SETFD, FD_CLOEXEC)==-1) {
- perror(ENSC_WRAPPERS_PREFIX "failed to create/initialize resolver-socket or pipe");
- exit(255);
- }
-
- pid = fork();
- if (pid==-1) {
- perror(ENSC_WRAPPERS_PREFIX "fork()");
- exit(255);
- }
-
- if (pid==0) {
- char const *args[20];
- char const **ptr = args;
- char const *env[] = { "HOME=/", "PATH=/bin:/usr/bin", 0 };
- char const *xid_str;
- char flag_str[ sizeof(flags)*3 + 2];
- char caps_str[ sizeof(caps)*3 + 2];
-
- clearEnv();
-
- setsid();
- dup2(res_sock[1], 0);
- dup2(res_sock[1], 1);
- if (sync_pipe[1]!=3) {
- close(3);
- dup2(sync_pipe[1], 3);
- close(sync_pipe[1]);
- }
- close(res_sock[1]);
- /* ... *socket[0] are marked as close-on-exec ...*/
-
- flag_str[utilvserver_fmt_uint(flag_str, flags)] = '\0';
- caps_str[utilvserver_fmt_uint(caps_str, caps)] = '\0';
-
- *ptr++ = resolver;
- *ptr++ = "-F"; *ptr++ = flag_str;
- *ptr++ = "-C"; *ptr++ = caps_str;
- if (root) { *ptr++ = "-r"; *ptr++ = "."; }
- if (uid) { *ptr++ = "-u"; *ptr++ = uid; }
- if (gid) { *ptr++ = "-g"; *ptr++ = gid; }
-
- if (root) Echdir(root);
-
- if (setupContext(ctx, &xid_str)) { *ptr++ = "-s"; }
- else if (xid_str) { *ptr++ = "-c"; *ptr++ = xid_str; }
-
- *ptr++ = 0;
- execve(resolver, (char **)args, (char **)env);
- perror(ENSC_WRAPPERS_PREFIX "failed to exec resolver");
- exit(255);
- }
- else {
- uint8_t c;
-
- close(res_sock[1]);
- close(sync_pipe[1]);
- pw_sock = res_sock[0];
- sync_sock = sync_pipe[0];
-
- if (read(sync_sock, &ctx, sizeof ctx)!=sizeof(ctx) ||
- read(sync_sock, &c, 1)!=1 ||
- write(pw_sock, ".", 1)!=1 ||
- read(pw_sock, &c, 1)!=1 ||
- c!='.') {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "failed to initialize communication with resolver\n");
- exit(255);
- }
-
- if (wait4(pid, 0, WNOHANG,0)==-1) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX" unexpected initialization-error of resolver\n");
- exit(255);
- }
- }
- }
-}
-#endif
-
-static void
-reduceCapabilities()
-{
- struct __user_cap_header_struct header;
- struct __user_cap_data_struct user;
-
- header.version = _LINUX_CAPABILITY_VERSION;
- header.pid = 0;
-
- if (capget(&header, &user)==-1) {
- perror("capget()");
- exit(wrapper_exit_code);
- }
-
- user.effective &= ~(1<<CAP_MKNOD);
- user.permitted &= ~(1<<CAP_MKNOD);
- user.inheritable &= ~(1<<CAP_MKNOD);
-
- if (capset(&header, &user)==-1) {
- perror("capset()");
- exit(wrapper_exit_code);
- }
-}
-
-static void
-initEnvironment()
-{
- int syscall_rev;
- int syscall_nr;
-
- if (is_initialized) return;
-
- syscall_rev = getDefaultEnv("RPM_FAKE_S_CONTEXT_REV", 0);
- syscall_nr = getDefaultEnv("RPM_FAKE_S_CONTEXT_NR", 273);
-
-#ifdef VC_ENABLE_API_LEGACY
- {
- extern void vc_init_internal_legacy(int ctx_rev, int ctx_number,
- int ipv4_rev, int ipv4_number);
-
- vc_init_internal_legacy(syscall_rev, syscall_nr, 3, 274);
- }
-#endif
-
- ctx = getDefaultEnv("RPM_FAKE_CTX", VC_DYNAMIC_XID);
- caps = getDefaultEnv("RPM_FAKE_CAP", ~0x3404040f);
- flags = getDefaultEnv("RPM_FAKE_FLAGS", 0);
- root = getenv("RPM_FAKE_CHROOT");
- mnts = getenv("RPM_FAKE_NAMESPACE_MOUNTS");
- if (mnts && *mnts) mnts = strdup(mnts);
- else mnts = 0;
-
-#if DEBUG
- if (isDbgLevel(DBG_VERBOSE1))
- dprintf(2, "ctx=%u, caps=%016x, flags=%016x,\nroot='%s',\nmnts='%s'\n",
- ctx, caps, flags, root, mnts);
-#endif
-
- is_initialized = true;
-}
-
-static void
-initSymbols()
-{
- //INIT(RTLD_NEXT, rpm_execcon);
- //INIT(RTLD_NEXT, execv);
- INIT(RTLD_NEXT, getgrnam);
- INIT(RTLD_NEXT, getpwnam);
- INIT(RTLD_NEXT, endpwent);
- INIT(RTLD_NEXT, endgrent);
-}
-
-void
-initRPMFake()
-{
- if (getenv("RPM_FAKE_VERSION")) showVersion();
- if (getenv("RPM_FAKE_HELP")) showHelp();
-
- debug_level = getDefaultEnv("RPM_FAKE_DEBUG", 0);
-
- if (isDbgLevel(DBG_INIT)) WRITE_MSG(2, ">>>>> initRPMFake <<<<<\n");
-
- reduceCapabilities();
- initSymbols();
- initEnvironment();
- initPwSocket();
-
-#if 0
- if (isDbgLevel(DBG_VARIABLES|DBG_VERBOSE2)) {
-
- }
-#endif
-}
-
-void
-exitRPMFake()
-{
- if (isDbgLevel(DBG_INIT)) WRITE_MSG(2, ">>>>> exitRPMFake <<<<<\n");
- if (pw_sock!=-1) {
- uint8_t c;
- if (read(sync_sock, &c, 1)!=1) { /*...*/ }
- if (write(pw_sock, "Q", 1)!=1) { /*...*/ }
- }
-}
-
-
- //============ the worker part ===========
-
-
-static bool
-doPwStringRequest(uint32_t *result, char style, char const *name)
-{
- uint32_t len = strlen(name);
- uint8_t code;
- uint8_t c;
-
- return (TEMP_FAILURE_RETRY(read (sync_sock, &c, 1))==1 &&
- TEMP_FAILURE_RETRY(write(pw_sock, &style, 1))==1 &&
- TEMP_FAILURE_RETRY(write(pw_sock, &len, sizeof len))==sizeof(len) &&
- TEMP_FAILURE_RETRY(write(pw_sock, name, len))==(ssize_t)(len) &&
- TEMP_FAILURE_RETRY(read (pw_sock, &code, sizeof code))==sizeof(code) &&
- TEMP_FAILURE_RETRY(read (pw_sock, result, sizeof *result))==sizeof(*result) &&
- code!=0);
-}
-
-struct passwd *
-getpwnam(const char * name)
-{
- if (pw_sock==-1) return getpwnam_func(name);
- else {
- uint32_t id;
- static struct passwd res = {
- .pw_passwd = "*",
- .pw_gid = -1,
- .pw_gecos = "",
- .pw_dir = "/",
- .pw_shell = "/bin/false"
- };
-
- res.pw_name = (char *)(name);
- if (!doPwStringRequest(&id, 'P', name)) return 0;
- res.pw_uid = id;
-
- return &res;
- }
-}
-
-struct group *
-getgrnam(const char * name)
-{
- if (pw_sock==-1) return getgrnam_func(name);
- else {
- uint32_t id;
- static struct group res = {
- .gr_passwd = "*",
- .gr_mem = 0
- };
-
- res.gr_name = (char *)(name);
- if (!doPwStringRequest(&id, 'G', name)) return 0;
- res.gr_gid = id;
-
- return &res;
- }
-}
-
-void
-endgrent()
-{
- if (pw_sock==-1) endgrent_func();
- TEMP_FAILURE_RETRY(write(pw_sock, "Cg", 2));
-}
-
-void
-endpwent()
-{
- if (pw_sock==-1) endpwent_func();
- TEMP_FAILURE_RETRY(write(pw_sock, "Cp", 2));
-}
-
-
-static int
-execvWorker(char const *path, char * const argv[], char * const envp[])
-{
- int res = -1;
-
- if (vc_isSupported(vcFEATURE_MIGRATE))
- res = vc_ctx_migrate(ctx, 0);
- else {
-#ifdef VC_ENABLE_API_COMPAT
- res = vc_new_s_context(ctx,caps,flags);
-#else
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "can not change context: migrate kernel feature missing and 'compat' API disabled\n");
-#endif
- }
-
- clearEnv();
-
- if (res!=-1)
- res=execve(path, argv, envp);
-
- return res;
-}
-
-struct ExecvParams
-{
- char const * path;
- char * const * argv;
- char * const * envp;
- char const * mnts;
-};
-
-static int
-removeNamespaceMountsChild(struct ExecvParams const *params)
-{
- char buf[strlen(params->mnts)+1], *ptr;
-
- strcpy(buf, params->mnts);
- ptr = strtok(buf, ":");
- while (ptr) {
- if (umount2(ptr, 0)==-1) {
- // FIXME: What is the semantic for CLONE_NEWNS? Is it ok that mounts in
- // chroots are visible only, when chroot is on /dev/root?
- //
- // For now, ignore any errors, but future versions should handle them.
-
- //return -1;
- }
- ptr = strtok(0, ":");
- }
-
- return execvWorker(params->path, params->argv, params->envp);
-}
-
-static int
-removeNamespaceMounts(char const *path,
- char * const argv[], char * const envp[])
-{
- if (mnts==0) return execvWorker(path, argv, envp);
-
- {
- int status;
- pid_t p, pid;
- struct ExecvParams params;
-
- params.path = path;
- params.argv = argv;
- params.envp = envp;
- params.mnts = mnts;
-
- // the rpmlib signal-handler is still active; use the default one to
- // make wait4() working...
- signal(SIGCHLD, SIG_DFL);
-
-#ifdef NDEBUG
- pid = sys_clone(CLONE_NEWNS|SIGCHLD|CLONE_VFORK, 0);
-#else
- pid = sys_clone(CLONE_NEWNS|SIGCHLD, 0);
-#endif
-
- switch (pid) {
- case -1 : return -1;
- case 0 : _exit(removeNamespaceMountsChild(¶ms));
- default : break;
- }
-
- while ((p=wait4(pid, &status, 0,0))==-1 &&
- (errno==EINTR || errno==EAGAIN)) ;
-
- if (p==-1) return -1;
-
- if (WIFEXITED(status)) _exit(WEXITSTATUS(status));
- if (WIFSIGNALED(status)) kill(getpid(), WTERMSIG(status));
-
- return -1;
- }
-}
-
-
-int
-execv(char const *path, char * const argv[])
-{
- extern char **environ;
-
- if (isDbgLevel(DBG_EXECV)) {
- WRITE_MSG(2, "execv('");
- WRITE_STR(2, path);
- WRITE_MSG(2, "', ...)\n");
- }
-
- return removeNamespaceMounts(path, argv, environ);
-}
-
-int
-rpm_execcon(unsigned int UNUSED verified,
- const char *filename,
- char *const argv[], char *const envp[])
-{
- if (isDbgLevel(DBG_EXECV)) {
- WRITE_MSG(2, "rpm_execcon(..., '");
- WRITE_STR(2, filename);
- WRITE_MSG(2, "', ...)\n");
- }
-
- return removeNamespaceMounts(filename, argv, envp);
-}
-
-int
-is_selinux_enabled()
-{
- return 0;
-}
+++ /dev/null
-// $Id: save_ctxinfo.c 1859 2005-02-15 18:04:11Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-// Saves current ctx + vserver-info into 'argv[1] + /run' which must be a dead
-// symlink
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "pathconfig.h"
-#include "vserver.h"
-#include "internal.h"
-#include "util.h"
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <limits.h>
-#include <errno.h>
-
-#define ENSC_WRAPPERS_PREFIX "save_ctxinfo: "
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#include <wrappers.h>
-
-int wrapper_exit_code = 255;
-
-inline static void
-checkParams(int argc, char UNUSED * argv[])
-{
- if (argc<3) {
- WRITE_MSG(2, "Usage: save_ctxinfo <VSERVER_DIR> <cmd> <args>*\n");
- exit(255);
- }
-}
-
-int main(int argc, char *argv[])
-{
- char runfile[(checkParams(argc,argv),strlen(argv[1])) + sizeof(DEFAULT_PKGSTATEREVDIR "/99999")];
- char dstfile[PATH_MAX];
- int fd;
- char buf[sizeof(int)*3+2];
- xid_t ctx;
- ssize_t len;
- ssize_t len1 = strlen(argv[1]);
-
- strcpy(runfile, argv[1]);
- strcpy(runfile+len1, "/run");
-
- ctx=Evc_get_task_xid(0);
-
- if (ctx==0) {
- WRITE_MSG(2, "save_ctxinfo: Can not operate in context 0\n");
- return 255;
- }
-
- if (reinterpret_cast(unsigned int)(ctx)>99999) {
- WRITE_MSG(2, "save_ctxinfo: unexpected context\n");
- return 255;
- }
-
- len = EreadlinkD(runfile, dstfile, sizeof(dstfile)-1);
- dstfile[len] = '\0';
- len = utilvserver_fmt_uint(buf, ctx);
-
- fd = EopenD(dstfile, O_EXCL|O_CREAT|O_WRONLY, 0644);
- if (write(fd, buf, len) !=len ||
- write(fd, "\n", 1) !=1) {
- perror("save_ctxinfo: write()");
- return -1;
- }
- Eclose(fd);
-
- strcpy(runfile, DEFAULT_PKGSTATEREVDIR "/");
- strncat(runfile, buf, len);
- unlink(runfile);
- EsymlinkD(argv[1], runfile);
-
- Eexecv(argv[2], argv+2);
-}
+++ /dev/null
-// $Id: secure-mount.c 2480 2007-01-28 11:35:19Z dhozac $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
- // secure-mount <general mount(8) options> [--chroot]
- // [--mtab <mtabfile>] [--fstab <fstabfile>]
- //
- // Executes mount-operations under the current directory: it assumes sources
- // in the current root-dir while destinations are expected in the chroot
- // environment.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "pathconfig.h"
-
-#include <lib/internal.h>
-
-#include <getopt.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <strings.h>
-#include <unistd.h>
-#include <stdbool.h>
-#include <sys/mount.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <sys/file.h>
-#include <linux/fs.h>
-#include <assert.h>
-#include <ctype.h>
-#include <sys/wait.h>
-#include <libgen.h>
-#include <signal.h>
-#include <stdlib.h>
-
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-#define MNTPOINT "/etc"
-
-typedef enum { rfsYES, rfsNO, rfsONLY } RootFsOption;
-
-struct MountInfo {
- char const * src;
- char const * dst;
- char const * type;
- unsigned long flag;
- unsigned long xflag;
- unsigned long mask;
- char * data;
- char * data_parsed;
-};
-
-struct Options {
- char const * mtab;
- char const * fstab;
- bool do_chroot;
- bool ignore_mtab;
- bool mount_all;
- RootFsOption rootfs;
-
- int cur_dir_fd;
- int cur_rootdir_fd;
-};
-
-#define OPTION_BIND 1024
-#define OPTION_MOVE 1025
-#define OPTION_MTAB 1026
-#define OPTION_FSTAB 1027
-#define OPTION_CHROOT 1028
-#define OPTION_SECURE 1029
-#define OPTION_RBIND 1030
-#define OPTION_ROOTFS 1031
-
-#define XFLAG_NOAUTO 0x01
-
-static struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, 'h' },
- { "version", no_argument, 0, 'v' },
- { "bind", no_argument, 0, OPTION_BIND },
- { "move", no_argument, 0, OPTION_MOVE },
- { "mtab", required_argument, 0, OPTION_MTAB },
- { "fstab", required_argument, 0, OPTION_FSTAB },
- { "rootfs", required_argument, 0, OPTION_ROOTFS },
- { "chroot", no_argument, 0, OPTION_CHROOT },
- { "secure", no_argument, 0, OPTION_SECURE },
- { "rbind", no_argument, 0, OPTION_RBIND },
- { 0, 0, 0, 0 }
-};
-
-#ifndef MS_REC
-# define MS_REC 0x4000
-#endif
-
-static struct FstabOption {
- char const * const opt;
- unsigned long const flag;
- unsigned long const mask;
- unsigned long const xflag;
- bool const is_dflt;
-} const FSTAB_OPTIONS[] = {
- { "defaults", MS_NODEV, (MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC|
- MS_SYNCHRONOUS), 0, false },
- { "rbind", MS_BIND|MS_REC, MS_BIND|MS_REC, 0, false },
- { "bind", MS_BIND, MS_BIND, 0, false },
- { "move", MS_MOVE, MS_MOVE, 0, false },
- { "async", 0, MS_SYNCHRONOUS, 0, false },
- { "sync", MS_SYNCHRONOUS, MS_SYNCHRONOUS, 0, false },
- { "atime", 0, MS_NOATIME, 0, false },
- { "noatime", MS_NOATIME, MS_NOATIME, 0, false },
- { "dev", 0, MS_NODEV, 0, false },
- { "nodev", MS_NODEV, MS_NODEV, 0, false },
- { "exec", 0, MS_NOEXEC, 0, false },
- { "noexec", MS_NOEXEC, MS_NOEXEC, 0, false },
- { "suid", 0, MS_NOSUID, 0, false },
- { "nosuid", MS_NOSUID, MS_NOSUID, 0, false },
- { "ro", MS_RDONLY, MS_RDONLY, 0, false },
- { "rw", 0, MS_RDONLY, 0, false },
-
- { "remount", MS_REMOUNT, MS_REMOUNT, 0, false },
- { "users", MS_NOEXEC|MS_NOSUID|MS_NODEV,
- MS_NOEXEC|MS_NOSUID|MS_NODEV, 0, false },
- { "mandlock", MS_MANDLOCK, MS_MANDLOCK, 0, false },
- { "nodiratime", MS_NODIRATIME, MS_NODIRATIME, 0, false },
-#ifdef MS_DIRSYNC
- { "dirsync", MS_DIRSYNC, MS_DIRSYNC, 0, false },
-#endif
- { "_netdev", 0, 0, 0, false },
- { "auto", 0, 0, 0, false },
- { "noauto", 0, 0, XFLAG_NOAUTO, false },
- { "user", 0, 0, 0, false },
- { "nouser", 0, 0, 0, false },
-};
-
-int wrapper_exit_code = 1;
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- VSERVER_DECLARE_CMD(cmd);
-
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--help] [--version] [--bind] [--move] [--rbind] [-t <type>] [--chroot]\n"
- " [--mtab <filename>] [--fstab <filename>] [--rootfs yes|no|only]\n"
- " [-n] -a|([-o <options>] [--] <src> <dst>)\n\n"
- "Executes mount-operations under the current directory: it assumes sources in\n"
- "the current root-dir while destinations are expected in the chroot environment.\n\n"
- "For non-trivial mount-operations it uses the external 'mount' program which\n"
- "can be overridden by the $MOUNT environment variable.\n\n"
- "Options:\n"
- " --bind|move|rbind ... set the correspond flags; with this options\n"
- " the mount will be executed internally without\n"
- " calling an external mount program.\n"
- " -t <type> ... assume the given filesystem type\n"
- " -o <options> ... set additional options; see mount(2) for details\n"
- " -n ... do not update the mtab-file\n"
- " --mtab <filename> ... use <filename> as an alternative mtab file\n"
- " [default: /etc/mtab]\n"
- " --chroot ... chroot into the current directory before\n"
- " mounting the filesystem\n"
- " --fstab <filename> ... use <filename> as an alternative fstab file;\n"
- " this option has an effect only with the '-a'\n"
- " option [default: /etc/fstab]\n"
- " --rootfs yes|no|only ... specifies how to handle an entry for a rootfs\n"
- " ('/') when processing an fstab file. 'yes' will\n"
- " mount it among the other entries, 'only' will\n"
- " mount only the rootfs entry, and 'no' will ignore\n"
- " it and mount only the other entries [default: yes]\n"
- " -a ... mount everything listed in the fstab-file\n\n"
- " <src> ... the source-filesystem; this path is absolute\n"
- " to the current root-filesystem. Only valid\n"
- " without the '-a' option.\n"
- " <dst> ... the destination mount-point; when used with\n"
- " '--chroot', this path is relative to the current\n"
- " directory. Only valid without the '-a' option\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "secure-mount " VERSION " -- secure mounting of directories\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-inline static bool
-isSameObject(struct stat const *lhs,
- struct stat const *rhs)
-{
- return (lhs->st_dev==rhs->st_dev &&
- lhs->st_ino==rhs->st_ino);
-}
-
-static int
-fchroot(int fd)
-{
- if (fchdir(fd)==-1 || chroot(".")==-1) return -1;
- return 0;
-}
-
-static int
-writeX(int fd, void const *buf, size_t len)
-{
- if ((size_t)(write(fd, buf, len))!=len) return -1;
- return 0;
-}
-
-static int
-writeStrX(int fd, char const *str)
-{
- return writeX(fd, str, strlen(str));
-}
-
-static inline char const *
-getType(struct MountInfo const *mnt)
-{
- if (mnt->type==0) return "none";
- else if (strncmp(mnt->type, "ext", 3)==0) return "ufs";
- else return mnt->type;
-}
-
-inline static void
-restoreRoot(struct Options const *opt)
-{
- if (opt->do_chroot!=0 && fchroot(opt->cur_rootdir_fd)==-1) {
- perror("secure-mount: fchdir(\"/\")");
- WRITE_MSG(2, "Failed to restore root-directory; aborting\n");
- exit(1);
- }
-}
-
-static int
-updateMtab(struct MountInfo const *mnt, struct Options const *opt)
-{
- int res = -1;
- int fd;
- assert(opt->mtab!=0);
-
- if (opt->do_chroot && fchroot(opt->cur_dir_fd)==-1) {
- perror("secure-mount: fchroot(\".\")");
- return -1;
- }
-
- fd=open(opt->mtab, O_CREAT|O_APPEND|O_WRONLY, 0644);
-
- if (fd==-1) {
- perror("secure-mount: open(<mtab>)");
- goto err0;
- }
-
- if (flock(fd, LOCK_EX)==-1) {
- perror("secure-mount: flock()");
- goto err1;
- }
-
- if (writeStrX(fd, mnt->src)==-1 ||
- writeStrX(fd, " ")==-1 ||
- writeStrX(fd, mnt->dst)==-1 ||
- writeStrX(fd, " ")==-1 ||
- writeStrX(fd, getType(mnt))==-1 ||
- writeStrX(fd, " ")==-1 ||
- writeStrX(fd, mnt->data ? mnt->data : "defaults")==-1 ||
- writeStrX(fd, " 0 0\n")==-1) {
- perror("secure-mount: write()");
- goto err1;
- }
-
- res = 0;
-
- err1: close(fd);
- err0:
- restoreRoot(opt);
- return res;
-}
-
-static bool
-callExternalMount(struct MountInfo const *mnt)
-{
- char const * argv[10];
- size_t idx = 0;
- pid_t pid;
- int status;
- char const * mount_prog = getenv("MOUNT");
-
- if (mount_prog==0) mount_prog = MOUNT_PROG;
-
- argv[idx++] = mount_prog;
- argv[idx++] = "-n";
- if (mnt->flag & MS_BIND) argv[idx++] = "--bind";
- else if (mnt->flag & MS_MOVE) argv[idx++] = "--move";
-
- argv[idx++] = "-o";
- if (mnt->data && *mnt->data &&
- strcmp(mnt->data, "defaults")!=0) {
- if (mnt->mask & MS_NODEV)
- argv[idx++] = mnt->data;
- else {
- char * tmp = alloca(strlen(mnt->data) + sizeof("nodev,"));
- strcpy(tmp, "nodev,");
- strcat(tmp, mnt->data);
- argv[idx++] = tmp;
- }
- }
- else
- argv[idx++] = "nodev";
-
- if (mnt->type) {
- argv[idx++] = "-t";
- argv[idx++] = mnt->type;
- }
-
- argv[idx++] = mnt->src;
- argv[idx++] = ".";
- argv[idx] = 0;
-
- pid = fork();
- if (pid==-1) {
- perror("secure-mount: fork()");
- return false;
- }
-
- if (pid==0) {
- execv(mount_prog, const_cast(char **)(argv));
- PERROR_Q("secure-mount: execv", mount_prog);
- exit(1);
- }
-
- if (wait4(pid, &status, 0, 0)==-1) {
- perror("secure-mount: wait4()");
- return false;
- }
-
- return (WIFEXITED(status)) && (WEXITSTATUS(status)==0);
-}
-
-inline static bool
-secureChdir(char const *dir, struct Options const *opt)
-{
- int dir_fd;
- bool res = false;
-
- if (opt->do_chroot!=0 && fchroot(opt->cur_dir_fd)==-1) {
- perror("secure-mount: fchroot(\".\")");
- return false;
- }
-
- if (chdir(dir)==-1) {
- PERROR_Q("secure-mount: chdir", dir);
- goto err;
- }
-
- dir_fd = open(".", O_RDONLY|O_DIRECTORY);
- if (dir_fd==-1) {
- perror("secure-mount: open(\".\")");
- goto err;
- }
-
- restoreRoot(opt);
- if (fchdir(dir_fd)==-1)
- PERROR_Q("secure-mount: fchdir", dir);
- else
- res = true;
-
- close(dir_fd);
- return res;
-
- err:
- restoreRoot(opt);
- return false;
-}
-
-static bool
-canHandleInternal(struct MountInfo const *mnt)
-{
- static char const * FS[] = {
- "tmpfs", "sysfs", "proc", "sockfs", "pipefs", "futexfs",
- "inotifyfs", "devpts", "ext3", "ext2", "ramfs",
- "hugetlbfs", "usbfs", "binfmt_misc",
- 0
- };
- char const ** i;
-
- if (!mnt) return false;
- else if ((mnt->flag & (MS_BIND|MS_MOVE))) return true;
- else if (mnt->type==0) return false;
-
- for (i=FS+0; *i!=0; ++i)
- if (strcmp(mnt->type, *i)==0) return true;
-
- return false;
-}
-
-static bool
-mountSingle(struct MountInfo const *mnt, struct Options const *opt)
-{
- assert(mnt->dst!=0);
-
- if (!secureChdir(mnt->dst, opt))
- return false;
-
- if (canHandleInternal(mnt)) {
- if (mount(mnt->src, ".",
- mnt->type ? mnt->type : "",
- mnt->flag, mnt->data_parsed)==-1) {
- perror("secure-mount: mount()");
- return false;
- }
- }
- else if (!callExternalMount(mnt))
- return false;
-
- if (!opt->ignore_mtab &&
- updateMtab(mnt, opt)==-1) {
- WRITE_MSG(2, "Failed to update mtab-file\n");
- // no error
- }
-
- return true;
-}
-
-static struct FstabOption const *
-searchOption(char const *opt, size_t len)
-{
- struct FstabOption const * i;
- for (i=FSTAB_OPTIONS+0; i<FSTAB_OPTIONS+DIM_OF(FSTAB_OPTIONS); ++i)
- if (strncmp(i->opt, opt, len)==0) return i;
-
- return 0;
-}
-
-static bool
-transformOptionList(struct MountInfo *info, size_t UNUSED *col)
-{
- char const * ptr = info->data;
- char * data = malloc(strlen(info->data));
- char * dst = data;
-
- do {
- char const * pos = strchr(ptr, ',');
- struct FstabOption const * opt;
-
- if (pos==0) pos = ptr+strlen(ptr);
- opt = searchOption(ptr, pos-ptr);
-
- if (opt!=0) {
- info->flag &= ~opt->mask;
- info->flag |= opt->flag;
- info->mask |= opt->mask;
- info->xflag |= opt->xflag;
- }
- else {
- if (dst != data)
- *(dst++) = ',';
- strncpy(dst, ptr, pos-ptr);
- dst += pos - ptr;
- *dst = '\0';
- }
-
- if (*pos!='\0')
- ptr = pos+1;
- else
- ptr = pos;
-
- } while (*ptr!='\0');
-
- info->data_parsed = data;
- return true;
-}
-
-#define MOVE_TO_NEXT_FIELD(PTR,ALLOW_EOL) \
- while (!isspace(*PTR) && *PTR!='\0') ++PTR; \
- if (col) *col = buf-start_buf+1; \
- if (!(ALLOW_EOL) && *PTR=='\0') return prFAIL; \
- *PTR++ = '\0'; \
- while (isspace(*PTR)) ++PTR
-
-static enum {prDOIT, prFAIL, prIGNORE}
- parseFstabLine(struct MountInfo *info, char *buf, size_t *col)
-{
- char const * const start_buf = buf;
- size_t err_col;
-
- while (isspace(*buf)) ++buf;
- if (*buf=='#' || *buf=='\0') return prIGNORE;
-
- info->src = buf;
- MOVE_TO_NEXT_FIELD(buf, false);
- info->dst = buf;
- MOVE_TO_NEXT_FIELD(buf, false);
- info->type = buf;
- MOVE_TO_NEXT_FIELD(buf, false);
- err_col = buf-start_buf+1;
- info->data = buf;
- MOVE_TO_NEXT_FIELD(buf, true);
-
- info->flag = MS_NODEV;
- info->mask = 0;
- info->xflag = 0;
-
- if (strcmp(info->type, "swap") ==0) return prIGNORE;
- else if (strcmp(info->type, "none") ==0) info->type = 0;
- else if (strcmp(info->type, "devpts")==0) {
- info->mask |= MS_NODEV;
- info->flag &= ~MS_NODEV;
- }
-
- if (col) *col = err_col;
- if (!transformOptionList(info,col)) return prFAIL;
- if (info->xflag & XFLAG_NOAUTO) return prIGNORE;
-
- return prDOIT;
-}
-
-#undef MOVE_TO_NEXT_FIELD
-
-static void
-showFstabPosition(int fd, char const *fname, size_t line_nr, size_t col_nr)
-{
- char buf[3*sizeof(line_nr)*2 + 4];
- size_t len = utilvserver_fmt_uint(buf+1, line_nr)+1;
-
- buf[0] = ':';
- buf[len++] = ':';
- len += utilvserver_fmt_uint(buf+len, col_nr);
- WRITE_STR(fd, fname);
- Vwrite(fd, buf, len);
-}
-
-
-static bool
-mountFstab(struct Options const *opt)
-{
- bool res = false;
- int fd;
- off_t len;
-
- assert(opt->fstab!=0);
- fd = open(opt->fstab, O_RDONLY);
- if (fd==-1) {
- perror("secure-mount: open(<fstab>)");
- goto err0;
- }
-
- len = lseek(fd, 0, SEEK_END);
- if (len==-1 ||
- lseek(fd, 0, SEEK_SET)==-1) {
- perror("secure-mount: lseek(<fstab>)");
- goto err1;
- }
-
- {
- char buf[len+2];
- char *ptr, *ptrptr;
- size_t line_nr=0, col_nr;
-
- if (read(fd, buf, len+1)!=len) {
- perror("secure-mount: read()");
- goto err1;
- }
- buf[len] = '#'; // workaround for broken dietlibc strtok_r()
- // implementation
- buf[len+1] = '\0';
- ptrptr = buf;
-
- while ((ptr=strsep(&ptrptr, "\n")) != 0) {
- struct MountInfo mnt;
- ++line_nr;
-
- switch (parseFstabLine(&mnt, ptr, &col_nr)) {
- case prFAIL :
- showFstabPosition(2, opt->fstab, line_nr, col_nr);
- WRITE_MSG(2, ": syntax error\n");
- goto err1;
-
- case prIGNORE : break;
- case prDOIT : {
- bool is_rootfs = (strcmp(mnt.dst, "/")==0);
- Echdir("/");
- if (( is_rootfs && opt->rootfs==rfsNO) ||
- (!is_rootfs && opt->rootfs==rfsONLY)) { /* ignore the entry */ }
- else if (!mountSingle(&mnt, opt)) {
- showFstabPosition(2, opt->fstab, line_nr, 1);
- WRITE_MSG(2, ": failed to mount fstab-entry\n");
- }
- break;
- }
- default :
- assert(false);
- }
- }
- }
-
- res = true;
-
- err1: close(fd);
- err0: return res;
-}
-
-static void
-initFDs(struct Options *opt)
-{
- opt->cur_dir_fd = Eopen(".", O_RDONLY|O_DIRECTORY, 0);
- opt->cur_rootdir_fd = Eopen("/", O_RDONLY|O_DIRECTORY, 0);
-
- Efcntl(opt->cur_dir_fd, F_SETFD, FD_CLOEXEC);
- Efcntl(opt->cur_rootdir_fd, F_SETFD, FD_CLOEXEC);
-}
-
-static RootFsOption
-parseRootFS(char const *str)
-{
- if (strcasecmp(str, "yes")==0) return rfsYES;
- else if (strcasecmp(str, "no")==0) return rfsNO;
- else if (strcasecmp(str, "only")==0) return rfsONLY;
- else {
- WRITE_MSG(2, "secure-mount: invalid option for '--rootfs': '");
- WRITE_STR(2, str);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-}
-
-int main(int argc, char *argv[])
-{
- struct MountInfo mnt = {
- .src = 0,
- .dst = 0,
- .type = 0,
- .flag = MS_NODEV,
- .xflag = 0,
- .data = 0,
- };
-
- struct Options opt = {
- .mtab = "/etc/mtab",
- .fstab = "/etc/fstab",
- .do_chroot = 0,
- .ignore_mtab = false,
- .mount_all = false,
- .cur_dir_fd = -1,
- .cur_rootdir_fd = -1,
- .rootfs = rfsYES
- };
-
- while (1) {
- int c = getopt_long(argc, argv, "ht:nao:", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case 'h' : showHelp(1, argv[0], 0);
- case 'v' : showVersion();
- case 't' : mnt.type = optarg; break;
- case 'n' : opt.ignore_mtab = true; break;
- case 'a' : opt.mount_all = true; break;
- case 'o' : mnt.data = optarg; break;
- case OPTION_RBIND : mnt.flag |= MS_REC; /*@fallthrough@*/
- case OPTION_BIND : mnt.flag |= MS_BIND; break;
- case OPTION_MOVE : mnt.flag |= MS_MOVE; break;
- case OPTION_MTAB : opt.mtab = optarg; break;
- case OPTION_FSTAB : opt.fstab = optarg; break;
- case OPTION_CHROOT: opt.do_chroot = true; break;
- case OPTION_ROOTFS: opt.rootfs = parseRootFS(optarg); break;
- case OPTION_SECURE:
- WRITE_MSG(2, "secure-mount: The '--secure' option is deprecated...\n");
- break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
-
- if (opt.mount_all && optind<argc) {
- WRITE_MSG(2, "Can not specify <src> and '-a' at the same time\n");
- return EXIT_FAILURE;
- }
-
- initFDs(&opt);
- signal(SIGCHLD, SIG_DFL);
-
- if (opt.mount_all) {
- if (!mountFstab(&opt)) return EXIT_FAILURE;
- else return EXIT_SUCCESS;
- }
-
- if (optind+2!=argc) {
- WRITE_MSG(2, "Invalid <src> <dst> pair specified\n");
- return EXIT_FAILURE;
- }
-
- if (mnt.data) {
- mnt.data = strdup(mnt.data);
- if (!transformOptionList(&mnt, 0)) {
- WRITE_MSG(2, "Invalid options specified\n");
- return EXIT_FAILURE;
- }
- }
-
- mnt.src = argv[optind++];
- mnt.dst = argv[optind++];
-
- if (!mountSingle(&mnt, &opt)) return EXIT_FAILURE;
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: setattr.c 2592 2007-08-16 20:33:45Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "fstool.h"
-#include "util.h"
-
-#include <lib/fmt.h>
-#include <lib/vserver.h>
-#include <lib/vserver-internal.h>
-
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "immu", no_argument, 0, CMD_IMMU },
- { "iunlink", no_argument, 0, CMD_IMMU },
- { "admin", no_argument, 0, CMD_ADMIN },
- { "watch", no_argument, 0, CMD_WATCH },
- { "hide", no_argument, 0, CMD_HIDE },
- { "barrier", no_argument, 0, CMD_BARRIER },
- { "~iunlink", no_argument, 0, CMD_UNSET_IMMU },
- { "!iunlink", no_argument, 0, CMD_UNSET_IMMU },
- { "~immu", no_argument, 0, CMD_UNSET_IMMU },
- { "!immu", no_argument, 0, CMD_UNSET_IMMU },
- { "~admin", no_argument, 0, CMD_UNSET_ADMIN },
- { "!admin", no_argument, 0, CMD_UNSET_ADMIN },
- { "~watch", no_argument, 0, CMD_UNSET_WATCH },
- { "!watch", no_argument, 0, CMD_UNSET_WATCH },
- { "~hide", no_argument, 0, CMD_UNSET_HIDE },
- { "!hide", no_argument, 0, CMD_UNSET_HIDE },
- { "~barrier", no_argument, 0, CMD_UNSET_BARRIER },
- { "!barrier", no_argument, 0, CMD_UNSET_BARRIER },
- { "iunlink-but-not-immutable", no_argument, 0, CMD_IMMUX },
- { "~iunlink-but-not-immutable", no_argument, 0, CMD_UNSET_IMMUX },
- { "!iunlink-but-not-immutable", no_argument, 0, CMD_UNSET_IMMUX },
- { "immutable", no_argument, 0, CMD_IMMUTABLE },
- { "~immutable", no_argument, 0, CMD_UNSET_IMMUTABLE },
- { "!immutable", no_argument, 0, CMD_UNSET_IMMUTABLE },
- { 0,0,0,0 }
-};
-
-char const CMDLINE_OPTIONS_SHORT[] = "Rx";
-
-void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [-Rx] [--[~](iunlink|admin|watch|hide|barrier|iunlink-but-not-immutable|immutable)]* [--] <file>+\n\n"
- " Options:\n"
- " -R ... recurse through directories\n"
- " -x ... do not cross filesystems\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-void
-showVersion()
-{
- WRITE_MSG(1,
- "setattr " VERSION " -- sets vserver specific file attributes\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-void
-fixupParams(struct Arguments * args, int argc)
-{
- if (optind==argc) {
- WRITE_MSG(2, "No filename given; use '--help' for more information\n");
- exit(1);
- }
-
- args->do_display_dir = !args->do_recurse;
- args->do_display_dot = true;
-}
-
-bool
-handleFile(char const *name, char const * display_name)
-{
- int rc = vc_set_iattr(name,
- 0,
- global_args->set_mask & ~global_args->del_mask,
- global_args->set_mask | global_args->del_mask);
-
- if (rc==-1) {
- perror(display_name);
- return false;
- }
-
- return true;
-}
+++ /dev/null
-// $Id: showattr.c 1980 2005-03-24 12:44:17Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on showattr.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "fstool.h"
-#include "util.h"
-
-#include <lib/fmt.h>
-#include <lib/vserver.h>
-#include <lib/vserver-internal.h>
-
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <ctype.h>
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
-#ifdef VC_ENABLE_API_LEGACY
- { "legacy", no_argument, 0, CMD_LEGACY },
-#endif
- { 0,0,0,0 }
-};
-
-char const CMDLINE_OPTIONS_SHORT[] = "Radx";
-
-void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [-Radx] [--] <file>*\n\n"
- " Options:\n"
- " -R ... recurse through directories\n"
- " -a ... display files starting with '.' also\n"
- " -d ... list directories like other files instead of listing\n"
- " their content\n"
- " -x ... do not cross filesystems\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-void
-showVersion()
-{
- WRITE_MSG(1,
- "showattr " VERSION " -- shows vserver specific file attributes\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-void
-fixupParams(struct Arguments UNUSED * args, int UNUSED argc)
-{
-}
-
-static bool
-getFlags(char const *name, uint32_t *flags, uint32_t *mask)
-{
- xid_t xid;
- *mask = ~0;
-
- if (vc_get_iattr(name, &xid, flags, mask)==-1) {
- perror("vc_get_iattr()");
- return false;
- }
-
- return true;
-}
-
-bool
-handleFile(char const *name, char const *display_name)
-{
- bool res = true;
- char buf[40];
- char *ptr = buf;
- uint32_t flags;
- uint32_t mask;
-
- memset(buf, ' ', sizeof buf);
-
- if (getFlags(name, &flags, &mask)) {
- // 1 1 0 0
- // fedcba9876543210fedcba9876543210
- static char const MARKER[33] = ".......x.....iub.............hwa";
- int i;
- uint32_t used_flags = (VC_IATTR_XID|VC_IATTR_ADMIN|
- VC_IATTR_WATCH|VC_IATTR_HIDE|
- VC_IATTR_BARRIER|VC_IATTR_IUNLINK|
- VC_IATTR_IMMUTABLE);
-
- for (i=0; i<32; ++i) {
- if (used_flags & 1) {
- if (! (mask & 1) ) *ptr++ = '-';
- else if (flags & 1) *ptr++ = toupper(MARKER[31-i]);
- else *ptr++ = MARKER[31-i];
- }
-
- used_flags >>= 1;
- flags >>= 1;
- mask >>= 1;
- }
- }
- else {
- memcpy(buf, "ERR ", 7);
- res = false;
- }
-
- Vwrite(1, buf, 8);
- Vwrite(1, display_name, strlen(display_name));
- Vwrite(1, "\n", 1);
-
- return res;
-}
+++ /dev/null
-// $Id: showperm.c 19 2003-09-30 20:16:53Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on showperm.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <sys/stat.h>
-
-int main (int argc, char *argv[])
-{
- int ret = -1;
- if (argc < 2){
- fprintf (stderr,"showperm version %s\n",VERSION);
- fprintf (stderr,
- "showperm file or directory ...\n"
- "prints permission bits for files\n"
- "A very stripped down stat utility\n"
- );
- }else{
- int i;
- ret = 0;
- for (i=1; i<argc; i++){
- struct stat st;
- if (lstat(argv[i],&st)==-1){
- fprintf (stderr,"can't lstat %s (%s)\n",argv[i]
- ,strerror(errno));
- ret = -1;
- }else{
- printf ("%03o\n",(st.st_mode & 0777));
- }
- }
- }
- return ret;
-}
-
+++ /dev/null
-// $Id: sigexec.c 1562 2004-05-11 18:32:58Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <signal.h>
-#include <unistd.h>
-#include <errno.h>
-
-#define ENSC_WRAPPERS_PREFIX "sigexec: "
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-int wrapper_exit_code = 255;
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--] <cmd> <args>*\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "sigexec " VERSION " -- executes commands with defined sigmasks\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-
-int main(int argc, char *argv[])
-{
- int idx = 1;
-
- if (argc>=2) {
- if (strcmp(argv[1], "--help") ==0) showHelp(1, argv[0], 0);
- if (strcmp(argv[1], "--version")==0) showVersion();
- if (strcmp(argv[1], "--") ==0) ++idx;
- }
-
- if (argc<idx+1) {
- WRITE_MSG(2, "Not enough parameters; use '--help' for more information\n");
- return wrapper_exit_code;
- }
-
- signal(SIGCHLD, SIG_DFL);
-
- Eexecv(argv[idx], argv+idx);
-}
+++ /dev/null
-// $Id: stack-start.h 968 2004-02-20 17:02:20Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_STACK_START_H
-#define H_UTIL_VSERVER_SRC_STACK_START_H
-
-#ifdef HAVE_GROWING_STACK
-# define STACK_START(PTR) (PTR)
-#else
-# define STACK_START(PTR) ((PTR)+sizeof(PTR)/sizeof(PTR[0])-1)
-#endif
-
-#endif // H_UTIL_VSERVER_SRC_STACK_START_H
+++ /dev/null
-## $Id: Makefile-files 2245 2006-01-04 17:28:42Z ensc $ --*- makefile -*--
-
-## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-src_testsuite_check_active_PRGS = src/testsuite/vunify-functest \
- src/testsuite/chcontext-test \
- src/testsuite/chbind-test
-
-src_testsuite_check_passive_PRGS = src/testsuite/rpm-fake-test
-
-if ENSC_HAVE_C99_COMPILER
-if ENSC_HAVE_BEECRYPT
-src_testsuite_check_passive_PRGS += src/testsuite/hashcalc \
- src/testsuite/hashcalc-plain
-endif
-endif
-
-check_PROGRAMS += $(src_testsuite_check_passive_PRGS) \
- $(src_testsuite_check_active_PRGS)
-
-if ENSC_HAVE_C99_COMPILER
-src_testsuite_check_src_C99_SCRPTS = src/testsuite/vunify-test.sh
-if ENSC_HAVE_BEECRYPT
-src_testsuite_check_src_C99_SCRPTS += src/testsuite/hashcalc-plain.sh \
- src/testsuite/hashcalc.sh
-endif
-else
-src_testsuite_check_src_C99_SCRPTS =
-endif
-
-src_testsuite_check_src_SCRPTS = $(src_testsuite_check_src_C99_SCRPTS)
-src_testsuite_check_gen_SCRPTS =
-
-check_SCRIPTS += $(src_testsuite_check_src_SCRPTS) \
- $(src_testsuite_check_gen_SCRPTS)
-
-TESTS += $(src_testsuite_check_active_PRGS) \
- $(src_testsuite_check_src_SCRPTS) \
- $(src_testsuite_check_gen_SCRPTS)
-
-EXTRA_DIST += $(src_testsuite_check_src_SCRPTS) \
- src/testsuite/vunify-test.sh \
- src/testsuite/hashcalc.sh \
- src/testsuite/hashcalc-plain.sh \
- src/testsuite/vwait-test.sh
-
-src_testsuite_rpm_fake_test_SOURCES = src/testsuite/rpm-fake-test.c
-
-src_testsuite_vunify_functest_SOURCES = src/testsuite/vunify-functest.c
-src_testsuite_vunify_functest_LDADD = $(LIBINTERNAL)
-src_testsuite_vunify_functest_CPPFLAGS= $(AM_CPPFLAGS) $(src_testsuite_CPPFLAGS)
-
-
-src_testsuite_chcontext_test_SOURCES = src/testsuite/chcontext-test.c
-src_testsuite_chcontext_test_LDADD = lib/libvserver.la $(LIBINTERNAL)
-
-
-src_testsuite_chbind_test_SOURCES = src/testsuite/chbind-test.c
-src_testsuite_chbind_test_LDADD = lib/libvserver.la
-
-src_testsuite_hashcalc_SOURCES = src/testsuite/hashcalc.c
-src_testsuite_hashcalc_plain_SOURCES = src/testsuite/hashcalc-plain.c
-if ENSC_CAN_BEECRYPT_WITH_DIETLIBC
-src_testsuite_hashcalc_LDADD = $(LIBINTERNAL) $(LIBENSCVECTOR) -lbeecrypt $(VSERVER_LDADDS)
-src_testsuite_hashcalc_LDFLAGS = $(VSERVER_LDFLGS)
-
-src_testsuite_hashcalc_plain_LDADD = $(LIBINTERNAL) $(LIBENSCVECTOR) -lbeecrypt $(VSERVER_LDADDS)
-src_testsuite_hashcalc_plain_LDFLAGS = $(VSERVER_LDFLGS)
-else
-src_testsuite_hashcalc_LDADD = $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) -lbeecrypt
-src_testsuite_hashcalc_LDFLAGS =
-
-src_testsuite_hashcalc_plain_LDADD = $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) -lbeecrypt
-src_testsuite_hashcalc_plain_LDFLAGS =
-endif
-
-src_testsuite_CPPFLAGS = -I $(top_srcdir)/src -D ENSC_TESTSUITE
-
-
-clean-local: clean-testsuite
-
-clean-testsuite:
- rm -rf src/testsuite/.libs src/testsuite/_libs
+++ /dev/null
-// $Id: chbind-test.c 847 2004-02-09 23:30:20Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define ENSC_TESTSUITE 1
-#define main fake_main
-#include "src/chbind.c"
-#undef main
-
-int main()
-{
- if (0) fake_main(0,0);
- test();
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: chcontext-test.c 856 2004-02-09 23:40:45Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define ENSC_TESTSUITE 1
-#define main fake_main
-#include "src/chcontext.c"
-#undef main
-
-int main()
-{
- if (0) fake_main(0,0);
- test();
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: hashcalc-plain.c 2245 2006-01-04 17:28:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <beecrypt/beecrypt.h>
-#include <stdbool.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/mman.h>
-
-#define ENSC_TESTSUITE
-#include "lib_internal/coreassert.h"
-
-#define HASH_BLOCKSIZE 0x10000000u
-
-static bool
-convertDigest(char res[], hashFunctionContext * h_ctx)
-{
- static char const HEX_DIGIT[] = "0123456789abcdef";
- size_t d_size = h_ctx->algo->digestsize;
-
- unsigned char digest[d_size];
- size_t out = 0;
-
- if (hashFunctionContextDigest(h_ctx, digest)==-1)
- return false;
-
- for (size_t in=0; in<d_size; ++in) {
- res[out++] = HEX_DIGIT[digest[in] >> 4];
- res[out++] = HEX_DIGIT[digest[in] & 0x0f];
- }
- res[out++] = '\0';
-
- return true;
-}
-
-int main(int UNUSED argc, char *argv[])
-{
- int fd = open(argv[1], O_NOFOLLOW|O_NONBLOCK|O_RDONLY|O_NOCTTY);
- hashFunctionContext hash_context;
- hashFunction const *method;
- struct stat st;
- off_t size;
- loff_t offset = 0;
- char digest[1024];
-
- assert((method = hashFunctionFind(argv[2]))!=0);
- assert(hashFunctionContextInit(&hash_context, method)!=-1);
-
- assert(fstat(fd, &st)!=-1);
- assert(hashFunctionContextReset(&hash_context)!=-1);
-
- size = st.st_size;
-
- while (offset < size) {
- loff_t volatile buf_size = size-offset;
- void const * buf;
- if (buf_size>HASH_BLOCKSIZE) buf_size = HASH_BLOCKSIZE;
-
- assert((buf=mmap(0, buf_size, PROT_READ, MAP_SHARED, fd, offset))!=0);
- offset += buf_size;
- assert(hashFunctionContextUpdate(&hash_context, buf, buf_size)!=-1);
- munmap((void *)(buf), buf_size);
- }
-
- assert(convertDigest(digest, &hash_context));
-
- Vwrite(1, digest, strlen(digest));
- Vwrite(1, "\n", 1);
-
- hashFunctionContextFree(&hash_context);
-
- return 0;
-}
+++ /dev/null
-#! /bin/bash
-
-# Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-hashcalc=${builddir:-.}/src/testsuite/hashcalc-plain \
-exec ${srcdir:-.}/src/testsuite/hashcalc.sh
+++ /dev/null
-// $Id: hashcalc.c 2209 2005-10-29 10:33:02Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define ENSC_TESTSUITE
-#define main Xmain
-# include "../vhashify.c"
-#undef main
-
-#include "lib_internal/coreassert.h"
-
-int main(int UNUSED argc, char *argv[])
-{
- int fd = open(argv[1], O_NOFOLLOW|O_NONBLOCK|O_RDONLY|O_NOCTTY);
- struct stat st;
- off_t size;
- struct {
- volatile unsigned int canary0;
- volatile unsigned int canary1;
- HashPath d;
- volatile unsigned int canary2;
- volatile unsigned int canary3;
- } __attribute__((__packed__)) d_path;
-
- d_path.canary0 = 0x12345678;
- d_path.canary1 = 0x21436587;
- d_path.canary2 = 0x89abcdef;
- d_path.canary3 = 0x98badcfe;
- memset(d_path.d, 0x66, sizeof d_path.d);
-
- global_info.hash_conf.method = hashFunctionFind(argv[2]);
-
- assert(hashFunctionContextInit(&global_info.hash_context,
- global_info.hash_conf.method)!=-1);
-
- assert(fstat(fd, &st)!=-1);
-
- // set members of st to defined values so that the hash (which is
- // influenced by them) is predictable
- size = st.st_size;
- memset(&st, 0, sizeof st);
- st.st_size = size;
-
- assert(calculateHashFromFD(fd, d_path.d, &st));
- assert(d_path.canary0 == 0x12345678);
- assert(d_path.canary1 == 0x21436587);
- assert(d_path.canary2 == 0x89abcdef);
- assert(d_path.canary3 == 0x98badcfe);
-
- Vwrite(1, d_path.d, strlen(d_path.d));
- Vwrite(1, "\n", 1);
-
- hashFunctionContextFree(&global_info.hash_context);
-
- return 0;
-}
+++ /dev/null
-#! /bin/bash
-
-# Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-#
-# 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; version 2 of the License.
-#
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-: ${srcdir=.}
-: ${builddir=.}
-: ${srctestsuitedir=$srcdir/src/testsuite}
-: ${srcdatadir=$srctestsuitedir/data}
-: ${tmptopdir=/var/tmp}
-: ${hashcalc:=$builddir/src/testsuite/hashcalc}
-
-set -e
-
-tmpdir=$(mktemp -d "$tmptopdir"/rpm-fake-test.XXXXXX)
-trap "rm -rf $tmpdir" EXIT
-
-## Usage: createRandFile <name> <size>
-function createRandFile
-{
- dd if=/dev/urandom of=$tmpdir/$1-$2 bs=$2 count=1 &>/dev/null
-}
-
-pg=$(getconf PAGESIZE)
-
-for i in 2 4 8 15 16 23 42 32 64 68 $pg $[ pg+42 ] $[ pg*2 ] \
- $[ pg*2-23 ] $[ pg*23+42 ]; do
- createRandFile rand $[ i - 1 ]
- createRandFile rand $i
- createRandFile rand $[ i + 1 ]
-done
-
-: > $tmpdir/rand-0
-
-test x"$ensc_use_expensive_tests" != xyes || {
- dd if=/dev/urandom of=$tmpdir/rand-LARGE1 bs=$[ pg-1 ] count=1 seek=124123
- dd if=/dev/urandom of=$tmpdir/rand-LARGE2 bs=$[ 1024*1024-1 ] count=1 seek=5003
- #dd if=/dev/urandom of=$tmpdir/rand-LARGE3 bs=$[ pg-1 ] count=1 seek=12412373
-} &>/dev/null
-
-for i in $tmpdir/rand-*; do
- sha1_0=$($hashcalc "$i" SHA-1 | tr -d / )
- sha1_1=$(sha1sum "$i" | awk '{ print $1}' )
-
- test x"$sha1_0" = x"$sha1_1" || {
- echo "SHA-1 mismatch at $(basename $i)"
- exit 1
- }
-
- md5_0=$($hashcalc "$i" MD5 | tr -d / )
- md5_1=$(md5sum "$i" | awk '{ print $1}' )
-
- test x"$md5_0" = x"$md5_1" || {
- echo "MD5 mismatch at $(basename $i)"
- exit 1
- }
-done
-
-true
+++ /dev/null
-// $Id: rpm-fake-test.c 1044 2004-02-27 18:57:28Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-
-#include <grp.h>
-#include <pwd.h>
-#include <unistd.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-int wrapper_exit_code = 1;
-
-int main(/*int argc, char *argv[]*/)
-{
- char buf[1000];
-
- while (true) {
- char *ptr = buf;
- char c;
- do {
- if (read(0, &c, 1)==0) break;
- if (c=='\n') break;
- *ptr++ = c;
- } while (ptr<buf+sizeof(buf));
- *ptr = '\0';
- if (ptr==buf) break;
-
- switch (buf[0]) {
- case 'P' : {
- struct passwd *pw;
-
- pw = getpwnam(buf+1);
- printf("P(%s) = ", buf+1);
- if (pw) printf("%u\n", pw->pw_uid);
- else printf("(null)\n");
-
- break;
- }
-
- case 'G' : {
- struct group *gr;
-
- gr = getgrnam(buf+1);
- printf("G(%s) = ", buf+1);
- if (gr) printf("%u\n", gr->gr_gid);
- else printf("(null)\n");
-
- break;
- }
-
- case 'C' :
- switch (buf[1]) {
- case 'g' : endgrent(); break;
- case 'p' : endpwent(); break;
- default : abort(); break;
- }
- break;
-
- default :
- abort();
- }
- }
-
- {
- char * cmd[] = { "/bin/grep", "^s_context", "/proc/self/status", 0 };
- Eexecv(cmd[0], cmd);
- }
-}
+++ /dev/null
-// $Id: vunify-functest.c 920 2004-02-17 19:51:21Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "lib_internal/matchlist.h"
-
-int wrapper_exit_code = 1;
-extern void PathInfo_test();
-
-int main()
-{
- PathInfo_test();
- return 0;
-}
+++ /dev/null
-#! /bin/bash
-
-: ${srcdir=.}
-: ${tmptopdir=/var/tmp}
-
-set -e
-
-tmpdir=$(mktemp -d /var/tmp/vunify-test.XXXXXX)
-trap "rm -rf $tmpdir" EXIT
-
-function createFiles
-{
- local base=$1
- shift
-
- local idx=0
- local i
- for i; do
- echo $i >$base$idx
- let ++idx
- done
-}
-
-function createSet
-{
- local base=$1
-
- createFiles a/$base a b c d
- createFiles b/$base a b c
- createFiles c/$base XX XX
-
- ln a/${base}3 b/${base}3
-}
-
-pushd $tmpdir &>/dev/null
- mkdir -p {a,b,c}{/etc/sysconfig,/usr/lib,/usr/local/lib/foobar,/var/run}
-
- createSet etc/CFG
- createSet etc/sysconfig/CFG
-
- createSet usr/PROG
- createSet usr/lib/PROG
-
- createSet usr/local/lib/LOCAL
- createSet usr/local/lib/foobar/LOCAL
-
- createSet var/TEMP
- createSet var/run/TEMP
-popd &>/dev/null
-
-
-$D ./src/vunify -n --manually $tmpdir/a '' $tmpdir/b '' >/dev/null
-$D ./src/vunify -n --manually $tmpdir/a '' $tmpdir/c '' >/dev/null
+++ /dev/null
-#! /bin/bash
-
-: ${srcdir:=.}
-: ${builddir:=.}
-: ${XID:=1234}
-
-test "$(id -u)" -eq 0 || {
- echo "Skipping vwait-test; it requires root rights" >&2
- exit 0
-}
-
-
-! $builddir/src/vserver-info $XID RUNNING || {
- echo "Skipping vwait-test because context '$XID' is already used" >&2
- exit 0
-}
-
-tmpdir=$(mktemp -d /tmp/vwaittest.XXXXXX)
-trap "rm -rf $tmpdir" EXIT
-
-: ${VWAIT:=$builddir/src/vwait}
-: ${CHCONTEXT:=$builddir/src/chcontext-compat}
-
-
-
-############
-$CHCONTEXT --disconnect --silent --xid $XID /bin/bash -c "sleep 2"
-status=$($VWAIT --status-fd 1 -- $XID)
-rc=$?
-
-case $status in
- (FINISHED\ *) ;;
- (*) echo "vwait exited with bad status '$status'/$rc" >&2
- exit 1
-esac
-
-wait
-
-
-############
-$CHCONTEXT --disconnect --silent --xid $XID /bin/bash -c "sleep 5"
-status=$($VWAIT --status-fd 1 --timeout 1 -- $XID)
-rc=$?
-
-case $status in
- (TIMEOUT) ;;
- (*) echo "vwait exited with bad status '$status'/$rc" >&2
- exit 1
-esac
-
-
-
-############
-$CHCONTEXT --disconnect --silent --xid $XID /bin/bash -c "sleep 5"
-status=$($VWAIT --terminate --status-fd 1 --timeout 1 -- $XID)
-rc=$?
-
-case $status in
- (KILLED) ;;
- (*) echo "vwait exited with bad status '$status'/$rc" >&2
- exit 1
-esac
+++ /dev/null
-// $Id: util.h 1012 2004-02-26 13:10:15Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTILVSERVER_SRC_UTIL_H
-#define H_UTILVSERVER_SRC_UTIL_H
-
-#include <lib_internal/util.h>
-
-#endif // H_UTILVSERVER_SRC_UTIL_H
+++ /dev/null
-// $Id: vattribute.c 2403 2006-11-24 23:06:08Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <lib/vserver.h>
-
-#include <getopt.h>
-#include <stdint.h>
-#include <errno.h>
-
-#define ENSC_WRAPPERS_PREFIX "vattribute: "
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_XID 0x2000
-#define CMD_SET 0x2001
-#define CMD_CCAP 0x2002
-#define CMD_FLAG 0x2003
-#define CMD_SECURE 0x2004
-#define CMD_BCAP 0x2005
-
-int wrapper_exit_code = 1;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "xid", required_argument, 0, CMD_XID },
- { "set", no_argument, 0, CMD_SET },
- { "ccap", required_argument, 0, CMD_CCAP },
- { "bcap", required_argument, 0, CMD_BCAP },
- { "flag", required_argument, 0, CMD_FLAG },
- { "secure", no_argument, 0, CMD_SECURE },
- {0,0,0,0}
-};
-
-struct Arguments {
- xid_t xid;
- struct vc_ctx_flags flags;
- struct vc_ctx_caps caps;
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --set [--xid <xid>] [--bcap [~!]<cap>] [--ccap [~!]<cap>] [--flag [~!]<flag>] [--secure] -- [<program> <args>*]\n"
- "\n"
- " --bcap <cap> ... system capability to be added\n"
- " --cap <cap> ... context capability to be added\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vattribute " VERSION " -- sets attributes of vservers\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-parseFlags(char const *str, struct vc_ctx_flags *flags)
-{
- struct vc_err_listparser err;
- int rc;
-
- rc = vc_list2cflag(str,0, &err, flags);
-
- if (rc==-1) {
- WRITE_MSG(2, "Unknown flag '");
- Vwrite(2, err.ptr, err.len);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-}
-
-static void
-parseBCaps(char const *str, struct vc_ctx_caps *caps)
-{
- struct vc_err_listparser err;
- int rc;
-
- rc = vc_list2bcap(str,0, &err, caps);
-
- if (rc==-1) {
- WRITE_MSG(2, "Unknown bcap '");
- Vwrite(2, err.ptr, err.len);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-}
-
-static void
-parseCCaps(char const *str, struct vc_ctx_caps *caps)
-{
- struct vc_err_listparser err;
- int rc;
-
- rc = vc_list2ccap(str,0, &err, caps);
-
- if (rc==-1) {
- WRITE_MSG(2, "Unknown ccap '");
- Vwrite(2, err.ptr, err.len);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-}
-
-static void
-parseSecure(struct vc_ctx_flags UNUSED * flags,
- struct vc_ctx_caps UNUSED * caps)
-{
- caps->ccaps = ~vc_get_insecureccaps();
- caps->cmask = ~0ull;
- caps->bcaps = ~vc_get_insecurebcaps();
- caps->bmask = ~0ull;
-
- // TODO: generalize this
- flags->flagword = VC_VXF_HIDE_NETIF;
- flags->mask = VC_VXF_HIDE_NETIF;
-}
-
-int main(int argc, char *argv[])
-{
- struct Arguments args = {
- .xid = VC_NOCTX,
- .flags = { .flagword = 0, .mask = 0 },
- .caps = { .bcaps = 0, .bmask = 0,.ccaps = 0, .cmask = 0 },
- };
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_SET : break; // default op currently
- case CMD_XID : args.xid = Evc_xidopt2xid(optarg,true); break;
- case CMD_FLAG : parseFlags(optarg, &args.flags); break;
- case CMD_CCAP : parseCCaps(optarg, &args.caps); break;
- case CMD_BCAP : parseBCaps(optarg, &args.caps); break;
- case CMD_SECURE : parseSecure(&args.flags, &args.caps); break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return 255;
- break;
- }
- }
-
- if (args.xid==VC_NOCTX) args.xid = Evc_get_task_xid(0);
-
- if ((args.caps.cmask || args.caps.bmask) &&
- vc_set_ccaps(args.xid, &args.caps)==-1)
- perror(ENSC_WRAPPERS_PREFIX "vc_set_ccaps()");
- else if (args.flags.mask &&
- vc_set_cflags(args.xid, &args.flags)==-1)
- perror(ENSC_WRAPPERS_PREFIX "vc_set_flags()");
- else if (optind<argc)
- EexecvpD(argv[optind], argv+optind);
- else
- return EXIT_SUCCESS;
-
- return EXIT_FAILURE;
-}
+++ /dev/null
-// $Id: vclone.c 2569 2007-07-22 17:24:29Z dhozac $ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "vserver.h"
-
-#include "lib_internal/pathinfo.h"
-#include "lib_internal/unify.h"
-#include "lib_internal/matchlist.h"
-
-#include <unistd.h>
-#include <getopt.h>
-#include <fcntl.h>
-#include <dirent.h>
-#include <errno.h>
-#include <assert.h>
-#include <utime.h>
-#include <libgen.h>
-#include <sys/param.h>
-
-#define ENSC_WRAPPERS_PREFIX "vclone: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_DIRENT 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x8000
-#define CMD_VERSION 0x8001
-#define CMD_XID 0x8002
-
-struct WalkdownInfo
-{
- PathInfo state;
- PathInfo src;
- PathInfo dst;
- struct MatchList excludes;
-};
-
-struct Arguments {
- unsigned int verbosity;
- xid_t xid;
- const char * exclude_list;
-};
-
-static struct WalkdownInfo global_info;
-static struct Arguments const * global_args;
-
-int wrapper_exit_code = 1;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "xid", required_argument, 0, CMD_XID },
- { "exclude-from", required_argument, 0, 'X' },
- { 0,0,0,0 }
-};
-
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- VSERVER_DECLARE_CMD(cmd);
-
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--xid <xid>] [--exclude-from <exclude-list>]\n"
- " <source> <absolute path to destination>\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vclone " VERSION " -- clones a guest\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2007 Daniel Hokka Zakrisson\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-int Global_getVerbosity() {
- return global_args->verbosity;
-}
-
-bool Global_doRenew() {
- return true;
-}
-
-#include "vserver-visitdir.hc"
-
-static bool
-handleDirEntry(const PathInfo *src_path, const PathInfo *basename,
- bool *is_dir, struct stat *st)
-{
- bool res = false;
-
- *is_dir = false;
-
- if (lstat(basename->d, st)==-1)
- PERROR_Q(ENSC_WRAPPERS_PREFIX "lstat", src_path->d);
- else {
- PathInfo dst_path = global_info.dst;
- char dst_path_buf[ENSC_PI_APPSZ(dst_path, *src_path)];
-
- if (S_ISDIR(st->st_mode))
- *is_dir = true;
-
- if (MatchList_compare(&global_info.excludes, src_path->d) != stINCLUDE) {
- if (Global_getVerbosity() > 1) {
- WRITE_MSG(1, " skipping '");
- Vwrite(1, src_path->d, src_path->l);
- WRITE_MSG(1, "' (excluded)\n");
- }
- return false;
- }
-
- PathInfo_append(&dst_path, src_path, dst_path_buf);
-
- /* skip files that already exist */
- if (access(dst_path.d, F_OK)!=-1) {
- if (Global_getVerbosity() > 1) {
- WRITE_MSG(1, " skipping '");
- Vwrite(1, src_path->d, src_path->l);
- WRITE_MSG(1, "' (exists in destination)\n");
- }
- res = true;
- }
- else {
- /* create directory that might have been skipped */
- if (global_info.excludes.skip_depth > 0) {
- if (Global_getVerbosity() > 4) {
- WRITE_MSG(1, " creating directories for '");
- Vwrite(1, dst_path.d, dst_path.l);
- WRITE_MSG(1, "'\n");
- }
- if (mkdirRecursive(dst_path.d) == -1)
- PERROR_Q(ENSC_WRAPPERS_PREFIX "mkdirRecursive", dst_path.d);
- }
-
- /* already unified file */
- if (S_ISREG(st->st_mode) && Unify_isIUnlinkable(basename->d) == unifyBUSY) {
- if (Global_getVerbosity() > 2) {
- WRITE_MSG(1, " linking unified file '");
- Vwrite(1, src_path->d, src_path->l);
- WRITE_MSG(1, "'\n");
- }
- Elink(basename->d, dst_path.d);
- res = true;
- }
- /* something we have to copy */
- else {
- if (Global_getVerbosity() > 2) {
- WRITE_MSG(1, " copying non-unified file '");
- Vwrite(1, src_path->d, src_path->l);
- WRITE_MSG(1, "'\n");
- }
- if (!Unify_copy(basename->d, st, dst_path.d))
- PERROR_Q(ENSC_WRAPPERS_PREFIX "Unify_copy", dst_path.d);
- else if (global_args->xid != VC_NOCTX &&
- vc_set_iattr(dst_path.d, global_args->xid, 0, VC_IATTR_XID) == -1)
- PERROR_Q(ENSC_WRAPPERS_PREFIX "vc_set_iattr", dst_path.d);
- else
- res = true;
- }
- }
- }
-
- return res;
-}
-
-/* returns 1 on error, 0 on success */
-static uint64_t
-visitDirEntry(struct dirent const *ent)
-{
- char const * dirname = ent->d_name;
- if (isDotfile(dirname)) return 0;
-
- uint64_t res = 1;
- PathInfo src_path = global_info.state;
- PathInfo src_d_path = {
- .d = dirname,
- .l = strlen(dirname)
- };
- char path_buf[ENSC_PI_APPSZ(src_path, src_d_path)];
- struct stat f_stat = { .st_dev = 0 };
- bool is_dir;
-
- PathInfo_append(&src_path, &src_d_path, path_buf);
-
- if (handleDirEntry(&src_path, &src_d_path, &is_dir, &f_stat))
- res = 0;
-
- if (is_dir) {
- if (res || global_info.excludes.skip_depth > 0)
- global_info.excludes.skip_depth++;
- res = res + visitDir(dirname, &f_stat);
- if (global_info.excludes.skip_depth > 0)
- global_info.excludes.skip_depth--;
- }
-
- return res;
-}
-
-int main(int argc, char *argv[])
-{
- struct Arguments args = {
- .verbosity = 0,
- .xid = VC_NOCTX,
- .exclude_list = NULL,
- };
- uint64_t res;
- int num_args;
-
- global_args = &args;
- while (1) {
- int c = getopt_long(argc, argv, "+vX:",
- CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case 'v' : args.verbosity++; break;
- case 'X' : args.exclude_list = optarg; break;
- case CMD_XID : args.xid = Evc_xidopt2xid(optarg,true); break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- num_args = argc - optind;
- if (num_args < 1) {
- WRITE_MSG(2, "Source is missing; try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- }
- else if (num_args < 2) {
- WRITE_MSG(2, "Destination is missing; try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- }
- else if (num_args > 2) {
- WRITE_MSG(2, "Too many arguments; try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- }
- else if (*argv[optind+1] != '/') {
- WRITE_MSG(2, "The destination must be an absolute path; try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- }
- ENSC_PI_SETSTR(global_info.src, argv[optind]);
- ENSC_PI_SETSTR(global_info.dst, argv[optind+1]);
-
- if (global_args->exclude_list)
- MatchList_initManually(&global_info.excludes, 0, strdup(argv[optind]),
- global_args->exclude_list);
- else
- MatchList_init(&global_info.excludes, argv[optind], 0);
-
- if (global_args->verbosity>3)
- WRITE_MSG(1, "Starting to traverse directories...\n");
-
- Echdir(global_info.src.d);
- res = visitDir("/", 0);
-
- MatchList_destroy(&global_info.excludes);
-
- return res>0 ? 1 : 0;
-}
+++ /dev/null
-// $Id: vcontext.c 2578 2007-08-08 20:05:26Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004-2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "lib/internal.h"
-#include "lib_internal/jail.h"
-#include "lib_internal/sys_personality.h"
-
-#include <vserver.h>
-#include <getopt.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <assert.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <pwd.h>
-#include <grp.h>
-
-#include <linux/personality.h>
-
-#define ENSC_WRAPPERS_PREFIX "vcontext: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_SOCKET 1
-#define ENSC_WRAPPERS_IOSOCK 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_XID 0x4000
-#define CMD_CREATE 0x4001
-#define CMD_MIGRATE 0x4003
-#define CMD_INITPID 0x4002
-#define CMD_DISCONNECT 0x4004
-#define CMD_UID 0x4005
-#define CMD_CHROOT 0x4006
-#define CMD_SILENT 0x4007
-#define CMD_SYNCSOCK 0x4008
-#define CMD_SYNCMSG 0x4009
-#define CMD_MIGRATESELF 0x400a
-#define CMD_ENDSETUP 0x400b
-#define CMD_SILENTEXIST 0x400c
-#define CMD_NAMESPACE 0x400d
-#define CMD_PERSTYPE 0x400e
-#define CMD_PERSFLAG 0x400f
-#define CMD_VLOGIN 0x4010
-
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "ctx", required_argument, 0, CMD_XID },
- { "xid", required_argument, 0, CMD_XID },
- { "create", no_argument, 0, CMD_CREATE },
- { "migrate", no_argument, 0, CMD_MIGRATE },
- { "migrate-self", no_argument, 0, CMD_MIGRATESELF },
- { "initpid", no_argument, 0, CMD_INITPID },
- { "endsetup", no_argument, 0, CMD_ENDSETUP },
- { "disconnect", no_argument, 0, CMD_DISCONNECT },
- { "silent", no_argument, 0, CMD_SILENT },
- { "silentexist", no_argument, 0, CMD_SILENTEXIST },
- { "uid", required_argument, 0, CMD_UID },
- { "chroot", no_argument, 0, CMD_CHROOT },
- { "namespace", no_argument, 0, CMD_NAMESPACE },
- { "syncsock", required_argument, 0, CMD_SYNCSOCK },
- { "syncmsg", required_argument, 0, CMD_SYNCMSG },
- { "personality-type", required_argument, 0, CMD_PERSTYPE },
- { "personality-flags", required_argument, 0, CMD_PERSFLAG },
- { "vlogin", no_argument, 0, CMD_VLOGIN },
-#if 1
- { "fakeinit", no_argument, 0, CMD_INITPID }, // compatibility
-#endif
- { 0,0,0,0 },
-};
-
-struct Arguments {
- bool do_create;
- bool do_migrate;
- bool do_migrateself;
- bool do_disconnect;
- bool do_endsetup;
- bool is_initpid;
- bool is_silentexist;
- bool set_namespace;
- bool do_vlogin;
- uint_least32_t personality_flags;
- uint_least32_t personality_type;
- int verbosity;
- bool do_chroot;
- char const * uid;
- xid_t xid;
- char const * sync_sock;
- char const * sync_msg;
-};
-
-int wrapper_exit_code = 255;
-
-void do_vlogin(int argc, char *argv[], int ind);
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --create [--xid <xid>] <opts>* [--] <program> <args>*\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [(--migrate --xid <xid>)|--migrate-self] <opts>* [--] <program> <args>*\n"
- "\n"
- "<opts> can be:\n"
- " --chroot ... chroot into current directory\n"
- " --namespace ... execute namespace management operations\n"
- " --uid <uid> ... change uid\n"
- " --initpid ... set current process as general process reaper\n"
- " for ctx (possible for --migrate only)\n"
- " --endsetup ... clear the setup flag; usefully for migrate only\n"
- " --disconnect ... start program in background\n"
- " --personality-type <type>\n"
- " ... execute <program> in the given execution domain\n"
- " --personality-flags <flags>+\n"
- " ... set special flags for the given execution domain\n"
- " --silent ... be silent\n"
- " --silentexist ... be silent when context exists already; usefully\n"
- " for '--create' only\n"
- " --syncsock <file-name>\n"
- " ... before executing the program, send a message\n"
- " to the socket and wait until it closes.\n"
- " <file-name> must be a SOCK_STREAM unix socket\n"
- " --syncmsg <message>\n"
- " ... use <message> as synchronization message; by\n"
- " default, 'ok' will be used\n"
- " --vlogin ... enable terminal proxy\n"
- "\n"
- "'vcontext --create' exits with code 254 iff the context exists already.\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vcontext " VERSION " -- manages the creation of security contexts\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004-2006 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-#include "context-sync.hc"
-
-static inline ALWAYSINLINE void
-tellContext(xid_t ctx, bool do_it)
-{
- char buf[sizeof(xid_t)*3+2];
- size_t l;
-
- if (!do_it) return;
-
- l = utilvserver_fmt_long(buf,ctx);
-
- WRITE_MSG(1, "New security context is ");
- Vwrite (1, buf, l);
- WRITE_MSG(1, "\n");
-}
-
-static int
-connectExternalSync(char const *filename)
-{
- int fd;
- struct sockaddr_un addr;
-
- if (filename==0) return -1;
-
- ENSC_INIT_UNIX_SOCK(addr, filename);
-
- fd = Esocket(PF_UNIX, SOCK_STREAM, 0);
- Econnect(fd, &addr, sizeof(addr));
-
- return fd;
-}
-
-static void
-setFlags(struct Arguments const *args, xid_t xid)
-{
- struct vc_ctx_flags flags = { 0,0 };
-
- if (args->is_initpid)
- flags.mask |= VC_VXF_STATE_INIT;
-
- if (args->do_endsetup)
- flags.mask |= VC_VXF_STATE_SETUP;
-
- if (flags.mask!=0) {
- DPRINTF("set_flags: mask=%08llx, flag=%08llx\n", flags.mask, flags.flagword);
- Evc_set_cflags(xid, &flags);
- }
-}
-
-static void
-doExternalSync(int fd, char const *msg)
-{
- char c;
-
- if (fd==-1) return;
-
- if (msg) EsendAll(fd, msg, strlen(msg));
- Eshutdown(fd, SHUT_WR);
-
- if (TEMP_FAILURE_RETRY(recv(fd, &c, 1, MSG_NOSIGNAL))!=0) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "unexpected external synchronization event\n");
- exit(wrapper_exit_code);
- }
-
- Eclose(fd);
-}
-
-static inline ALWAYSINLINE int
-doit(struct Arguments const *args, int argc, char *argv[])
-{
- int p[2][2];
- pid_t pid = initSync(p, args->do_disconnect);
-
- if (pid==0) {
- xid_t xid;
- int ext_sync_fd = connectExternalSync(args->sync_sock);
-
- doSyncStage0(p, args->do_disconnect);
-
- if (args->do_create) {
- xid = vc_ctx_create(args->xid, NULL);
- if (xid==VC_NOCTX) {
- switch (errno) {
- case EEXIST :
- if (!args->is_silentexist)
- perror(ENSC_WRAPPERS_PREFIX "vc_ctx_create()");
- return 254;
- default :
- perror(ENSC_WRAPPERS_PREFIX "vc_ctx_create()");
- return wrapper_exit_code;
- }
- }
- tellContext(xid, args->verbosity>=1);
- }
- else
- xid = args->xid;
-
- if (args->do_chroot) {
- Echroot(".");
- if (args->set_namespace) {
- if (args->do_migrateself) Evc_set_namespace(xid, 0);
- else if (args->do_migrate) Evc_enter_namespace(xid, 0);
- }
- }
-
- setFlags(args, xid);
-
- if (args->do_migrate && !args->do_migrateself)
- Evc_ctx_migrate(xid, 0);
-
- if (args->uid != NULL) {
- uid_t uid = 0;
- unsigned long tmp;
-
- if (!isNumberUnsigned(args->uid, &tmp, false)) {
-#ifdef __dietlibc__
- struct passwd *pw;
- pw = getpwnam(args->uid);
- if (pw == NULL) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "Username '");
- WRITE_STR(2, args->uid);
- WRITE_MSG(2, "' does not exist\n");
- return wrapper_exit_code;
- }
- uid = pw->pw_uid;
- Einitgroups(args->uid, pw->pw_gid);
- Esetgid(pw->pw_gid);
-#else
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "Uid '");
- WRITE_STR(2, args->uid);
- WRITE_MSG(2, "' is not a number\n");
- return wrapper_exit_code;
-#endif
- }
- else
- uid = (uid_t) tmp;
-
- Esetuid((uid_t) uid);
- if (getuid()!=uid) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "Something went wrong while changing the UID\n");
- exit(wrapper_exit_code);
- }
- }
-
- if (args->personality_type!=VC_BAD_PERSONALITY &&
- sys_personality(args->personality_type | args->personality_flags)==-1) {
- perror(ENSC_WRAPPERS_PREFIX "personality()");
- exit(wrapper_exit_code);
- }
-
- doExternalSync(ext_sync_fd, args->sync_msg);
- doSyncStage1(p, args->do_disconnect);
- DPRINTF("doit: pid=%u, ppid=%u\n", getpid(), getppid());
- if (!args->do_vlogin)
- execvp (argv[optind],argv+optind);
- else
- do_vlogin(argc, argv, optind);
- doSyncStage2(p, args->do_disconnect);
-
- PERROR_Q(ENSC_WRAPPERS_PREFIX "execvp", argv[optind]);
- exit(wrapper_exit_code);
- }
-
- assert(args->do_disconnect);
-
- waitOnSync(pid, p, args->xid!=VC_DYNAMIC_XID && args->do_migrate);
- return EXIT_SUCCESS;
-}
-
-static uint_least32_t
-parsePersonalityType(char const *str)
-{
- uint_least32_t res = vc_str2personalitytype(str, 0);
- if (res==VC_BAD_PERSONALITY) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "bad personality type\n");
- exit(wrapper_exit_code);
- }
-
- return res;
-}
-
-static uint_least32_t
-parsePersonalityFlags(char const *str)
-{
- struct vc_err_listparser err;
- uint_least32_t res;
-
- if (vc_list2personalityflag(str, 0, &res, &err)==-1) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "bad personality flag '");
- Vwrite(2, err.ptr, err.len);
- WRITE_MSG(2, "'\n");
- exit(wrapper_exit_code);
- }
-
- return res;
-}
-
-int main (int argc, char *argv[])
-{
- struct Arguments args = {
- .do_create = false,
- .do_migrate = false,
- .do_migrateself = false,
- .do_disconnect = false,
- .do_endsetup = false,
- .do_vlogin = false,
- .is_initpid = false,
- .is_silentexist = false,
- .set_namespace = false,
- .verbosity = 1,
- .uid = NULL,
- .xid = VC_DYNAMIC_XID,
- .personality_type = VC_BAD_PERSONALITY,
- .personality_flags = 0,
- .sync_msg = "ok",
- };
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_CREATE : args.do_create = true; break;
- case CMD_MIGRATE : args.do_migrate = true; break;
- case CMD_DISCONNECT : args.do_disconnect = true; break;
- case CMD_ENDSETUP : args.do_endsetup = true; break;
- case CMD_VLOGIN : args.do_vlogin = true; break;
- case CMD_INITPID : args.is_initpid = true; break;
- case CMD_CHROOT : args.do_chroot = true; break;
- case CMD_NAMESPACE : args.set_namespace = true; break;
- case CMD_SILENTEXIST : args.is_silentexist = true; break;
- case CMD_SYNCSOCK : args.sync_sock = optarg; break;
- case CMD_SYNCMSG : args.sync_msg = optarg; break;
- case CMD_UID : args.uid = optarg; break;
- case CMD_XID : args.xid = Evc_xidopt2xid(optarg,true); break;
- case CMD_SILENT : --args.verbosity; break;
- case CMD_PERSTYPE :
- args.personality_type = parsePersonalityType(optarg);
- break;
- case CMD_PERSFLAG :
- args.personality_flags |= parsePersonalityFlags(optarg);
- break;
- case CMD_MIGRATESELF :
- args.do_migrate = true;
- args.do_migrateself = true;
- break;
-
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return wrapper_exit_code;
- break;
- }
- }
-
- signal(SIGCHLD, SIG_DFL);
-
- if (args.do_migrateself)
- args.xid = Evc_get_task_xid(0);
-
- if (!args.do_create && !args.do_migrate)
- WRITE_MSG(2, "Neither '--create' nor '--migrate' specified; try '--help' for more information\n");
- else if (args.do_create && args.do_migrate)
- WRITE_MSG(2, "Can not specify '--create' and '--migrate' at the same time; try '--help' for more information\n");
- else if (!args.do_migrate && args.is_initpid)
- WRITE_MSG(2, "'--initpid' is possible in combination with '--migrate' only\n");
- else if (!args.do_create && args.xid==VC_DYNAMIC_XID)
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "Can not migrate to an unknown context\n");
- else if (optind>=argc)
- WRITE_MSG(2, "No command given; use '--help' for more information.\n");
- else
- return doit(&args, argc, argv);
-
- return wrapper_exit_code;
-}
+++ /dev/null
-// $Id: vcopy-init.hc 1921 2005-03-18 00:24:27Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-static void
-createSkeleton(char const *name)
-{
- char const * app_dir;
-
- app_dir = vc_getVserverAppDir(name, vcCFG_AUTO, "vunify");
- if (app_dir==0 &&
- vc_createSkeleton(name, vcCFG_AUTO, vcSKEL_FILESYSTEM|vcSKEL_PKGMGMT)==-1) {
- perror("vc_createSkeleton()");
- exit(1);
- }
-
- if (app_dir==0) {
- app_dir = vc_getVserverAppDir(name, vcCFG_AUTO, "");
-
- PathInfo path = {
- .d = app_dir,
- .l = strlen(app_dir),
- };
- PathInfo rhs_path = {
- .d = "vunify",
- .l = sizeof("vunify")-1
- };
-
- char p_buf[ENSC_PI_APPSZ(path, rhs_path)];
- PathInfo_append(&path, &rhs_path, p_buf);
-
- Emkdir(path.d, 0755);
- }
-
- free(const_cast(char *)(app_dir));
-}
-
-
-static void
-initModeManually(int argc, char *argv[])
-{
- int count=argc/2;
-
- if (count!=2) {
- WRITE_MSG(2, "Bad arguments; try '--help' for more information\n");
- exit(1);
- }
-
- MatchList_initManually(&global_info.dst_list, 0, strdup(argv[0]), argv[1]);
- MatchList_initManually(&global_info.src_list, 0, strdup(argv[2]), argv[3]);
-}
-
-
-static void
-initModeVserver(int argc, char *argv[])
-{
- int count = argc;
- struct MatchVserverInfo src_vserver = {
- .name = argv[1],
- .use_pkgmgmt = true
- };
-
- if (!MatchVserverInfo_init(&src_vserver)) {
- WRITE_MSG(2, "Failed to initialize unification for source-vserver\n");
- exit(1);
- }
-
- if (count!=2) {
- WRITE_MSG(2, "Bad arguments; try '--help' for more information\n");
- exit(1);
- }
-
- if (!MatchList_initByVserver(&global_info.src_list, &src_vserver)) {
- WRITE_MSG(2, "unification not configured for source vserver\n");
- exit(1);
- }
-
- MatchVserverInfo_free(&src_vserver);
-
-
-
- struct MatchVserverInfo dst_vserver = {
- .name = argv[0],
- .use_pkgmgmt = false
- };
-
- if (!global_args->is_strict)
- createSkeleton(dst_vserver.name);
-
- if (!MatchVserverInfo_init(&dst_vserver)) {
- WRITE_MSG(2, "Failed to initialize unification for destination-vserver\n");
- exit(1);
- }
-
- if (!MatchList_initByVserver(&global_info.dst_list, &dst_vserver)) {
- WRITE_MSG(2, "unification not configured for destination vserver\n");
- exit(1);
- }
-
- MatchVserverInfo_free(&dst_vserver);
-}
+++ /dev/null
-// $Id: vcopy.c 2403 2006-11-24 23:06:08Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "vserver.h"
-
-#include "lib_internal/matchlist.h"
-#include "lib_internal/unify.h"
-
-#include <unistd.h>
-#include <getopt.h>
-#include <fcntl.h>
-#include <dirent.h>
-#include <errno.h>
-#include <assert.h>
-#include <utime.h>
-#include <libgen.h>
-#include <sys/param.h>
-
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_DIRENT 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x8000
-#define CMD_VERSION 0x8001
-#define CMD_MANUALLY 0x8002
-#define CMD_STRICT 0x8003
-
-struct WalkdownInfo
-{
- PathInfo state;
- struct MatchList dst_list;
- struct MatchList src_list;
-};
-
-struct Arguments {
- enum {mdMANUALLY, mdVSERVER} mode;
- bool do_dry_run;
- unsigned int verbosity;
- bool local_fs;
- bool is_strict;
-};
-
-static struct WalkdownInfo global_info;
-static struct Arguments const * global_args;
-
-int wrapper_exit_code = 1;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "manually", no_argument, 0, CMD_MANUALLY },
- { "strict", no_argument, 0, CMD_STRICT },
- { 0,0,0,0 }
-};
-
-typedef enum { opUNIFY, opCOPY, opDIR, opSKIP } Operation;
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- VSERVER_DECLARE_CMD(cmd);
-
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [-nv] [--strict] <dst-vserver> <src-vserver>\n or\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --manually [-nvx] [--] <dst-path> <dst-excludelist> <src-path> <src-excludelist>\n\n"
- " --manually ... unify generic paths; excludelists must be generated\n"
- " manually\n"
- " --strict ... require an existing vserver configuration for dst-vserver;\n"
- " by default, a base skeleton will be created but manual\n"
- " configuration wil be still needed to make the new vserver work\n"
- " -n ... do not modify anything; just show what there will be\n"
- " done (in combination with '-v')\n"
- " -v ... verbose mode\n"
- " -x ... do not cross filesystems; this is valid in manual\n"
- " mode only and will be ignored for vserver unification\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vcopy " VERSION " -- copies directories and vserver files\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003,2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-int Global_getVerbosity() {
- return global_args->verbosity;
-}
-
-bool Global_doRenew() {
- return true;
-}
-
-#include "vserver-visitdir.hc"
-
-static Operation
-checkDirEntry(PathInfo const *path, struct stat const *st)
-{
- struct WalkdownInfo const * const info = &global_info;
- MatchType res;
-
- // when marked as 'skip' in the first excludelist already, we do not need to
- // visit the second one since it could not change that.
- res=MatchList_compare(&info->dst_list, path->d);
- if (res!=stSKIP) {
- MatchType tmp = MatchList_compare(&info->src_list, path->d);
-
- // stINCLUDE gets overridden by stEXCLUDE+stSKIP, and stEXCLUDE by stSKIP.
- // Using the MAX() macro is a hack but it works
- res=MAX(res,tmp);
- }
-
- // non-skipped directories are marked as opDIR
- if (res!=stSKIP && S_ISDIR(st->st_mode))
- return opDIR;
-
- // non-skipped symlinks will be copied always
- if (res!=stSKIP && S_ISLNK(st->st_mode))
- return opCOPY;
-
- // skipped files or non regular files (character/block devices) will be skipped
- // always
- if (res==stSKIP || !S_ISREG(st->st_mode))
- return opSKIP;
-
- switch (res) {
- case stINCLUDE : return opUNIFY;
- case stEXCLUDE : return opCOPY;
- case stSKIP : assert(false); // already handled above
- default : assert(false); abort();
- }
-}
-
-static bool
-doit(Operation op,
- PathInfo const *dst_path,
- PathInfo const *src_path, struct stat const *exp_stat,
- PathInfo const *show_path)
-{
-#if 0
- struct stat st;
-
- if (lstat(dst_path->d, &st)!=-1) {
- if (global_args->do_keep &&
- (!S_ISDIR(exp_stat->st_mode) || S_ISDIR(st.st_mode))) {
- // when keep-mode is enable and, do nothing
- if (global_args->do_dry_run || global_args->verbosity>1) {
- WRITE_MSG(1, "keeping '");
- write(1, show_path->d, show_path->l);
- WRITE_MSG(1, "'\n");
- }
- return true;
- }
-
- }
-#endif
-
- if (global_args->do_dry_run || global_args->verbosity>1) {
- if (op==opUNIFY) WRITE_MSG(1, "linking '");
- else if (op==opCOPY) WRITE_MSG(1, "copying '");
- else if (op==opDIR) WRITE_MSG(1, "creating '");
- else if (op==opSKIP) WRITE_MSG(1, "skipping '");
- else { assert(false); abort(); }
-
- Vwrite(1, show_path->d, show_path->l);
- WRITE_MSG(1, "'\n");
- }
-
- return (global_args->do_dry_run ||
- ( op==opSKIP) ||
- ( op==opUNIFY && Unify_unify(src_path->d, exp_stat, dst_path->d, false)) ||
- ((op==opCOPY ||
- op==opDIR) && Unify_copy (src_path->d, exp_stat, dst_path->d)));
-}
-
-static uint64_t
-visitDirEntry(struct dirent const *ent)
-{
- char const * dirname = ent->d_name;
- if (isDotfile(dirname)) return 0;
-
- uint64_t res = 1;
- PathInfo src_path = global_info.state;
- PathInfo src_d_path = {
- .d = dirname,
- .l = strlen(dirname)
- };
- char path_buf[ENSC_PI_APPSZ(src_path, src_d_path)];
- struct stat f_stat = { .st_dev = 0 };
-
- PathInfo_append(&src_path, &src_d_path, path_buf);
-
-
- if (lstat(dirname, &f_stat)==-1)
- perror("lstat()");
- else {
- Operation op = checkDirEntry(&src_path, &f_stat);
- PathInfo dst_path = global_info.dst_list.root;
- char dst_path_buf[ENSC_PI_APPSZ(dst_path, src_path)];
-
- PathInfo_append(&dst_path, &src_path, dst_path_buf);
- if (!doit(op, &dst_path, &src_d_path, &f_stat, &src_path))
- perror(src_path.d);
- else if (op==opDIR) {
- res = visitDir(dirname, &f_stat);
- if (!global_args->do_dry_run &&
- !Unify_setTime(dst_path.d, &f_stat))
- perror("utime()");
- }
- else
- res = 0;
- }
-
- return res;
-}
-
-#include "vcopy-init.hc"
-
-int main(int argc, char *argv[])
-{
- struct Arguments args = {
- .mode = mdVSERVER,
- .do_dry_run = false,
- .verbosity = 0,
- .local_fs = false,
- };
- uint64_t res;
-
- global_args = &args;
- while (1) {
- int c = getopt_long(argc, argv, "nvcx",
- CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_MANUALLY : args.mode = mdMANUALLY; break;
- case CMD_STRICT : args.is_strict = true; break;
- case 'n' : args.do_dry_run = true; break;
- case 'x' : args.local_fs = true; break;
- case 'v' : ++args.verbosity; break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- if (argc==optind) {
- WRITE_MSG(2, "No directory/vserver given\n");
- return EXIT_FAILURE;
- }
-
- switch (args.mode) {
- case mdMANUALLY : initModeManually(argc-optind, argv+optind); break;
- case mdVSERVER : initModeVserver (argc-optind, argv+optind); break;
- default : assert(false); return EXIT_FAILURE;
- }
-
- if (global_args->verbosity>3)
- WRITE_MSG(1, "Starting to traverse directories...\n");
-
- Echdir(global_info.src_list.root.d);
- res = visitDir("/", 0);
-
-#ifndef NDEBUG
- {
- MatchList_destroy(&global_info.dst_list);
- MatchList_destroy(&global_info.src_list);
- }
-#endif
-
- return res>0 ? 1 : 0;
-}
+++ /dev/null
-// $Id: vdevmap.c 2490 2007-02-05 20:45:25Z dhozac $ --*- c -*--
-
-// Copyright (C) 2006 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <lib/internal.h>
-
-#include <vserver.h>
-
-#include <getopt.h>
-#include <errno.h>
-
-#define ENSC_WRAPPERS_PREFIX "vdevmap: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-
-int wrapper_exit_code = 1;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "xid", required_argument, 0, 'x' },
- { "open", no_argument, 0, 'o' },
- { "create", no_argument, 0, 'c' },
- { "remap", no_argument, 0, 'r' },
- { "flags", required_argument, 0, 'f' },
- { "device", required_argument, 0, 'd' },
- { "target", required_argument, 0, 't' },
- {0,0,0,0}
-};
-
-static void
-showHelp(int fd, char const *cmd)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --xid <xid> [--flags <flags>] [--open] [--create] [--remap] [--device <dev>] [--target <dev>]\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vdevmap " VERSION " -- manages device mappings\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2006 Daniel Hokka Zakrisson\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-int main(int argc, char *argv[])
-{
- xid_t xid = VC_NOCTX;
- bool allow_open = false;
- bool allow_create = false;
- bool do_remap = false;
- uint32_t flags = 0;
- char *device = NULL;
- char *target = NULL;
- unsigned long tmp = 0;
-
- while (1) {
- int c = getopt_long(argc, argv, "+x:ocrf:d:t:", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0]);
- case CMD_VERSION : showVersion();
- case 'x' : xid = Evc_xidopt2xid(optarg, true); break;
- case 'o' : allow_open = true; break;
- case 'c' : allow_create = true; break;
- case 'r' : do_remap = true; break;
- case 'd' : device = optarg; break;
- case 't' : target = optarg; break;
- case 'f' :
- if (!isNumberUnsigned(optarg, &tmp, false)) {
- WRITE_MSG(2, "Invalid flags argument: '");
- WRITE_STR(2, optarg);
- WRITE_MSG(2, "'; try '--help' for more information\n");
- return EXIT_FAILURE;
- }
- flags |= (uint32_t) tmp;
- break;
-
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- if (allow_open) flags |= VC_DATTR_OPEN;
- if (allow_create) flags |= VC_DATTR_CREATE;
- if (do_remap) flags |= VC_DATTR_REMAP;
-
- if (xid==VC_NOCTX)
- WRITE_MSG(2, "No xid specified; try '--help' for more information\n");
- else if (optind!=argc)
- WRITE_MSG(2, "Unused argument(s); try '--help' for more information\n");
- else if (vc_set_mapping(xid, device, target, flags)==-1)
- perror("vc_set_mapping()");
- else
- return EXIT_SUCCESS;
-
- return EXIT_FAILURE;
-}
+++ /dev/null
-// $Id: vdlimit.c,v 1.5 2007/06/28 15:20:30 dhozac Exp $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <lib/internal.h>
-
-#include <vserver.h>
-
-#include <getopt.h>
-#include <libgen.h>
-#include <errno.h>
-#include <signal.h>
-#include <sched.h>
-
-#define ENSC_WRAPPERS_PREFIX "vdlimit: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-
-int wrapper_exit_code = 1;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "xid", required_argument, 0, 'x' },
- { "set", required_argument, 0, 's' },
- { "remove", no_argument, 0, 'd' },
- { "flags", required_argument, 0, 'f' },
- {0,0,0,0}
-};
-
-static void
-showHelp(int fd, char const *cmd)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --xid <xid> [--flags <flags>] (--set <limit>=<value>|--remove) <mount point>\n"
- "\n"
- " --set|-s <limit>=<value> ... set <limit> to <value>, where limit is \n"
- " one of: space_used, space_total, inodes_used,\n"
- " inodes_total, reserved\n"
- " --remove|-d ... removes the disk limit for <xid> from <mount point>\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vdlimit " VERSION " -- manages disk limits\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2005 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-setDlimit(char const *filename, xid_t xid, uint32_t flags, struct vc_ctx_dlimit const *limit)
-{
- bool was_added = false;
-
- if (vc_get_dlimit(filename, xid, flags, 0) == -1) {
- if (vc_add_dlimit(filename, xid, flags) == -1) {
- perror(ENSC_WRAPPERS_PREFIX "vc_add_dlimit()");
- exit(wrapper_exit_code);
- }
-
- was_added = true;
- }
-
- if (vc_set_dlimit(filename, xid, flags, limit) == -1) {
- perror(ENSC_WRAPPERS_PREFIX "vc_set_dlimit()");
-
- if (was_added &&
- vc_rem_dlimit(filename, xid, flags)==-1)
- perror(ENSC_WRAPPERS_PREFIX "vc_rem_dlimit()");
-
- exit(wrapper_exit_code);
- }
-}
-
-static void
-remDlimit(char const *filename, xid_t xid, uint32_t flags)
-{
- if (vc_rem_dlimit(filename, xid, flags) == -1) {
- perror(ENSC_WRAPPERS_PREFIX "vc_rem_dlimit()");
- exit(wrapper_exit_code);
- }
-}
-
-static void
-writeInt(int fd, char const *prefix, int val)
-{
- char buf[sizeof(val)*3 + 2];
- size_t len = utilvserver_fmt_int(buf, val);
-
- if (prefix)
- WRITE_STR(fd, prefix);
- Vwrite(fd, buf, len);
-}
-
-static void
-printDlimit(char const *filename, xid_t xid, uint32_t flags, bool formatted)
-{
- struct vc_ctx_dlimit limit;
-
- if (vc_get_dlimit(filename, xid, flags, &limit) == -1) {
- perror(ENSC_WRAPPERS_PREFIX "vc_get_dlimit()");
- exit(wrapper_exit_code);
- }
-
- if (formatted) {
- writeInt (1, 0, xid);
- WRITE_MSG(1, " ");
- WRITE_STR(1, filename);
- writeInt (1, "\nspace_used=", limit.space_used);
- writeInt (1, "\nspace_total=", limit.space_total);
- writeInt (1, "\ninodes_used=", limit.inodes_used);
- writeInt (1, "\ninodes_total=", limit.inodes_total);
- writeInt (1, "\nreserved=", limit.reserved);
- WRITE_MSG(1, "\n");
- }
- else {
- writeInt (1, 0, xid);
- writeInt (1, " ", limit.space_used);
- writeInt (1, " ", limit.space_total);
- writeInt (1, " ", limit.inodes_used);
- writeInt (1, " ", limit.inodes_total);
- writeInt (1, " ", limit.reserved);
- WRITE_MSG(1, " ");
- WRITE_STR(1, filename);
- WRITE_MSG(1, "\n");
- }
-}
-
-
-static bool
-setDLimitField(struct vc_ctx_dlimit *dst, char const *opt)
-{
- uint_least32_t *ptr;
- char const * const orig_opt = opt;
-
-#define GET_VAL_PTR(CMP, VAL) \
- (strncmp(opt, CMP "=", sizeof(CMP))==0) ? \
- (opt+=sizeof(CMP), &VAL) : 0
-
- if ((ptr=GET_VAL_PTR("space_used", dst->space_used))!=0) {}
- else if ((ptr=GET_VAL_PTR("space_total", dst->space_total))!=0) {}
- else if ((ptr=GET_VAL_PTR("inodes_used", dst->inodes_used))!=0) {}
- else if ((ptr=GET_VAL_PTR("inodes_total", dst->inodes_total))!=0) {}
- else if ((ptr=GET_VAL_PTR("reserved", dst->reserved))!=0) {}
- else ptr=0;
-
-#undef GET_VAL_PTR
-
- if (ptr!=0 && *ptr==VC_CDLIM_KEEP) {
- char *endptr;
- long val = strtol(opt, &endptr, 0);
-
- if (*opt==0 || *endptr!='\0') {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "can not parse number in '");
- WRITE_STR(2, orig_opt);
- WRITE_MSG(2, "'\n");
- return false;
- }
-
- *ptr = val;
- }
- else if (ptr!=0) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "value already set in '");
- WRITE_STR(2, orig_opt);
- WRITE_MSG(2, "'\n");
- return false;
- }
- else {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "unknown limit in '");
- WRITE_STR(2, orig_opt);
- WRITE_MSG(2, "'\n");
- return false;
- }
-
- return true;
-}
-
-bool
-isHigherLimit(uint_least32_t lhs, uint_least32_t rhs)
-{
- if (lhs==VC_CDLIM_KEEP || rhs==VC_CDLIM_KEEP) return false;
-
- return lhs > rhs;
-}
-
-int main(int argc, char *argv[])
-{
- bool do_set = false;
- bool do_remove = false;
- xid_t xid = VC_NOCTX;
- uint32_t flags = 0;
- char *endptr;
- int sum = 0;
-
- struct vc_ctx_dlimit limit = {
- .space_used = VC_CDLIM_KEEP,
- .space_total = VC_CDLIM_KEEP,
- .inodes_used = VC_CDLIM_KEEP,
- .inodes_total = VC_CDLIM_KEEP,
- .reserved = VC_CDLIM_KEEP
- };
-
- while (1) {
- int c = getopt_long(argc, argv, "+x:s:df:", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0]);
- case CMD_VERSION : showVersion();
- case 'x' : xid = Evc_xidopt2xid(optarg, true); break;
- case 's' :
- if (!setDLimitField(&limit, optarg))
- return EXIT_FAILURE;
- else
- do_set = true;
- break;
- case 'd' : do_remove = true; break;
- case 'f' :
- {
- flags = strtol(optarg, &endptr, 0);
- if ((flags == 0 && errno != 0) || *endptr != '\0') {
- WRITE_MSG(2, "Invalid flags argument: '");
- WRITE_STR(2, optarg);
- WRITE_MSG(2, "'; try '--help' for more information\n");
- return EXIT_FAILURE;
- }
- }
- break;
-
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- sum = ((do_set ? 1 : 0) + (do_remove ? 1 : 0));
-
- if (sum>1)
- WRITE_MSG(2, "Can not specify multiple operations; try '--help' for more information\n");
- else if (optind==argc)
- WRITE_MSG(2, "No mount point specified; try '--help' for more information\n");
- else if (xid==VC_NOCTX)
- WRITE_MSG(2, "No xid specified; try '--help' for more information\n");
- else if (isHigherLimit(limit.space_used, limit.space_total))
- WRITE_MSG(2, "invalid parameters: 'space_used' is larger than 'space_total'\n");
- else if (isHigherLimit(limit.inodes_used, limit.inodes_total))
- WRITE_MSG(2, "invalid parameters: 'inodes_used' is larger than 'inodes_total'\n");
- else {
- for (; optind < argc; ++optind) {
- if (do_set) setDlimit(argv[optind], xid, flags, &limit);
- else if (do_remove) remDlimit(argv[optind], xid, flags);
- else printDlimit(argv[optind], xid, flags, true);
- }
-
- return EXIT_SUCCESS;
- }
-
- return EXIT_FAILURE;
-}
+++ /dev/null
-// $Id: vdu.c 2260 2006-01-22 11:56:28Z ensc $ --*- c -*--
-
-// Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <lib/vserver.h>
-#include <lib/fmt.h>
-
-#include <stdlib.h>
-#include <getopt.h>
-#include <stdint.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <dirent.h>
-#include <fcntl.h>
-
-#define ENSC_WRAPPERS_PREFIX "vdu: "
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_DIRENT 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_STAT 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_XID 0x2000
-#define CMD_SPACE 0x2001
-#define CMD_INODES 0x2002
-#define CMD_SCRIPT 0x2003
-#define CMD_BLOCKSIZE 0x2005
-
-int wrapper_exit_code = 1;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "xid", required_argument, 0, CMD_XID },
- { "space", no_argument, 0, CMD_SPACE },
- { "inodes", no_argument, 0, CMD_INODES },
- { "script", no_argument, 0, CMD_SCRIPT },
- { "blocksize", required_argument, 0, CMD_BLOCKSIZE },
- {0,0,0,0}
-};
-
-struct Arguments {
- xid_t xid;
- bool space;
- bool inodes;
- bool script;
- unsigned long blocksize;
-};
-
-struct Result {
- uint_least64_t blocks;
- uint_least64_t inodes;
-};
-
-struct TraversalParams {
- struct Arguments const * const args;
- struct Result * const result;
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --xid <xid> (--space|--inodes) [--blocksize <blocksize>] [--script] <directory>*\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vdu " VERSION " -- calculates the size of a directory\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2006 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-/* basic hash table implementation for inode tracking */
-#define HASH_SIZE 103
-typedef struct hash_entry {
- struct hash_entry *next;
- ino_t inode;
-} hash_entry;
-
-typedef struct hash_table {
- hash_entry *entries[HASH_SIZE];
-} hash_table;
-
-static hash_table ht;
-
-static void
-hash_init(void)
-{
- memset(&ht, 0, sizeof(hash_table));
-}
-
-static void
-hash_free(void)
-{
- int i;
- hash_entry *e, *p;
- for (i = 0; i < HASH_SIZE; i++) {
- for (e = ht.entries[i], p = NULL; e; e = e->next) {
- free(p);
- p = e;
- }
- free(p);
- }
-}
-
-static int
-hash_insert(ino_t inode)
-{
- hash_entry *e, *p;
- unsigned int hashval = inode % HASH_SIZE;
-
- /* no one else here */
- if (ht.entries[hashval] == NULL) {
- ht.entries[hashval] = malloc(sizeof(hash_entry));
- ht.entries[hashval]->next = NULL;
- ht.entries[hashval]->inode = inode;
- return 0;
- }
-
- for (e = ht.entries[hashval], p = NULL; e; e = e->next) {
- /* already in the hash table */
- if (e->inode == inode)
- return -1;
- else if (e->inode > inode) {
- /* we're first */
- if (p == NULL) {
- ht.entries[hashval] = malloc(sizeof(hash_entry));
- ht.entries[hashval]->next = e;
- ht.entries[hashval]->inode = inode;
- }
- /* we're in the middle */
- else {
- p->next = malloc(sizeof(hash_entry));
- p->next->next = e;
- p->next->inode = inode;
- }
- return 0;
- }
- p = e;
- }
- /* we're last */
- p->next = malloc(sizeof(hash_entry));
- p->next->next = NULL;
- p->next->inode = inode;
-
- return 0;
-}
-
-static void
-visitDirEntry(char const *name, dev_t const dir_dev,
- struct TraversalParams *params);
-
-static void
-visitDir(char const *name, struct stat const *expected_stat, struct TraversalParams *params)
-{
- int fd = Eopen(".", O_RDONLY|O_DIRECTORY, 0);
- DIR * dir;
-
- EsafeChdir(name, expected_stat);
-
- dir = Eopendir(".");
-
- for (;;) {
- struct dirent *ent = Ereaddir(dir);
- if (ent==0) break;
-
- if (isDotfile(ent->d_name)) continue;
- visitDirEntry(ent->d_name, expected_stat->st_dev, params);
- }
-
- Eclosedir(dir);
-
- Efchdir(fd);
- Eclose(fd);
-}
-
-static void
-visitDirEntry(char const *name, dev_t const dir_dev,
- struct TraversalParams *params)
-{
- struct stat st;
- xid_t xid;
-
- ElstatD(name, &st);
-
- xid = vc_getfilecontext(name);
- if (xid == params->args->xid &&
- (st.st_nlink == 1 || hash_insert(st.st_ino) != -1)) {
- params->result->blocks += st.st_blocks;
- params->result->inodes += 1;
- }
-
- if (S_ISDIR(st.st_mode) && dir_dev == st.st_dev)
- visitDir(name, &st, params);
-}
-
-static void
-visitDirStart(char const *name, struct TraversalParams *params)
-{
- struct stat st;
- int fd = Eopen(".", O_RDONLY|O_DIRECTORY, 0);
-
- Estat(name, &st);
- Echdir(name);
-
- visitDirEntry(".", st.st_dev, params);
-
- Efchdir(fd);
- Eclose(fd);
-}
-
-int main(int argc, char *argv[])
-{
- struct Arguments args = {
- .xid = VC_NOCTX,
- .space = false,
- .inodes = false,
- .script = false,
- .blocksize = 1024,
- };
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_XID : args.xid = Evc_xidopt2xid(optarg,true); break;
- case CMD_SPACE : args.space = true; break;
- case CMD_INODES : args.inodes = true; break;
- case CMD_SCRIPT : args.script = true; break;
- case CMD_BLOCKSIZE:
- if (!isNumberUnsigned(optarg, &args.blocksize, false)) {
- WRITE_MSG(2, "Invalid block size argument: '");
- WRITE_STR(2, optarg);
- WRITE_MSG(2, "'; try '--help' for more information\n");
- return EXIT_FAILURE;
- }
- break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return 255;
- break;
- }
- }
-
- if (args.xid==VC_NOCTX)
- WRITE_MSG(2, "No xid specified; try '--help' for more information\n");
- else if (!args.space && !args.inodes)
- WRITE_MSG(2, "Must specify --space or --inodes; try '--help' for more information\n");
- else if (optind==argc)
- WRITE_MSG(2, "No directory specified; try '--help' for more information\n");
- else {
- int i;
- size_t len;
- struct Result result;
- struct TraversalParams params = {
- .args = &args,
- .result = &result
- };
-
- for (i = optind; i < argc; i++) {
- uint_least64_t size;
- char buf[sizeof(size)*3 + 3];
- char const * delim = "";
-
- result.blocks = 0;
- result.inodes = 0;
-
- hash_init();
- visitDirStart(argv[i], ¶ms);
- hash_free();
-
- if (!args.script) {
- WRITE_STR(1, argv[i]);
- WRITE_MSG(1, " ");
- }
-
- if (args.space) {
- len = utilvserver_fmt_uint64(buf, result.blocks*512 / args.blocksize);
- if (*delim) WRITE_STR(1, delim);
- Vwrite(1, buf, len);
- delim = " ";
- }
- if (args.inodes) {
- len = utilvserver_fmt_uint64(buf, result.inodes);
- if (*delim) WRITE_STR(1, delim);
- Vwrite(1, buf, len);
- delim = " ";
- }
- WRITE_MSG(1, "\n");
- }
- return EXIT_SUCCESS;
- }
-
- return EXIT_FAILURE;
-}
+++ /dev/null
-#ifndef __VDU_H
-#define __VDU_H
-
-typedef ino64_t KEY;
-typedef KEY *PKEY;
-typedef struct stat64 VAL;
-typedef VAL *PVAL;
-
-static inline
-unsigned int
-HASH(PKEY key){
- return (int) *key;
-}
-
-static inline
-unsigned int // boolean
-EQUAL(PKEY key1, PKEY key2){
- return *key1 == *key2;
-}
-
-#ifndef MIN
-#define MIN(x,y) (((x)<(y))?(x):(y))
-#endif // MIN
-
-#ifndef MAX
-#define MAX(x,y) (((x)>(y))?(x):(y))
-#endif // MAX
-
-
-////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////
-// hash table support for efficient lookup of duplicate inodes */
-////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////
-
-#define Multiplier (0x9e3779b9)
-#define MaxLogBuckets (((sizeof (unsigned long))*8) - 2)
-#define MaxBuckets (1<<MaxLogBuckets)
-#define MinLogBuckets (4)
-#define MinBuckets (1<<MinLogBuckets)
-
-// Thresholds for rehashing the table: *)
-// to avoid crazy oscillations, we must have MaxDensity > 2*MinDensity; *)
-// to avoid excessive probes, we must try to keep MaxDensity low. *)
-// Divide by 100 before using
-#define MaxDensity 75 /* max numEntries/NUMBER(buckets) */
-#define MinDensity 20 /* min numEntries/NUMBER(buckets) */
-#define IdealDensity 50
-#define BITSIZE(x) (sizeof(x)*8)
-
-#define NEW(type,num) ((type*)malloc(sizeof(type)*num))
-#define DISPOSE(ptr) (free((void*)ptr))
-
-////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////
-// Generic Hash Entry Type
-////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////
-
-typedef struct VoidList {
- struct VoidList *tail;
-} VoidList, *PVoidList;
-
-typedef struct HashTable {
- PVoidList *buckets;
- unsigned int numBuckets; // number of buckets
- unsigned int minLogBuckets; // minimum value for Log_2(initial size)
- unsigned int logBuckets; // CEILING(Log2(NUMBER(buckets^)))
- unsigned int maxEntries; // maximum number of entries
- unsigned int minEntries; // minimum number of entries
- unsigned int numEntries; // current num of entries in table
- PVoidList cache; // cache of removed elements
- int cacheSize; // current size of the cache
- int maxCacheSize; // maximum size, -1 means unbounded, 0 no cache
-} HashTable, *PHashTable;
-
-////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////
-// Hash Prototypes
-////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////
-
-PHashTable
-Init(PHashTable tbl, unsigned int n, int maxCacheSize);
-
-void
-Dispose(PHashTable tbl);
-
-unsigned int
-Log_2(unsigned int x);
-
-void
-NewBuckets(PHashTable tbl, unsigned int logBuckets);
-
-//
-// Generic Hash Table support
-//
-
-PHashTable
-Init(PHashTable tbl, unsigned int n, int maxCacheSize){
- int idealBuckets;
- int minBuckets;
-
- idealBuckets = MIN(((n*100)/IdealDensity),MaxBuckets);
- minBuckets = MAX(MinBuckets, idealBuckets);
- tbl->minLogBuckets = Log_2(minBuckets);
-
- NewBuckets(tbl, tbl->minLogBuckets);
- tbl->numEntries = 0;
- tbl->maxCacheSize = maxCacheSize;
- tbl->cacheSize = 0;
- tbl->cache = 0;
- return tbl;
-} // Init()
-
-
-//
-// Internal procedures
-//
-
-unsigned int
-Log_2(unsigned int x){
- // return CEILING(LOG_2(x))
- unsigned int log = 0;
- unsigned int n= 1;
-
- assert(x != 0);
- while ((log < MaxLogBuckets) && (x > n)){
- log++;
- n += n;
- }
- return log;
-} // Log_2()
-
-void
-NewBuckets(PHashTable tbl, unsigned int logBuckets){
- // Allocate "2^logBuckets" buckets.
- unsigned int numBuckets = 1 << logBuckets;
- PVoidList *b;
- unsigned int i;
-
- tbl->buckets = NEW(PVoidList, numBuckets);
- tbl->numBuckets = numBuckets;
- b = tbl->buckets;
-
- for (i=0; i<tbl->numBuckets; i++){
- b[i] = NULL;
- }
- tbl->logBuckets = logBuckets;
- tbl->maxEntries = MaxDensity * numBuckets / 100;
- tbl->minEntries = MinDensity * numBuckets / 100;
-} // NewBuckets()
-
-#ifndef NULL
-#define NULL (void*)0
-#endif // !NULL
-
-#ifndef TRUE
-#define TRUE 1
-#endif // !TRUE
-
-#ifndef FALSE
-#define FALSE 0
-#endif // !FALSE
-
-////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////
-// Type specific hash entry
-////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////
-typedef struct EntryList {
- struct EntryList *tail;
- KEY key;
- VAL val;
-}EntryList, *PEntryList;
-
-////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////
-// Type specific Hash implementation functions
-////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////
-
-static
-void
-Rehash(PHashTable tbl, unsigned int logBuckets) {
- // Reallocate "2^logBuckets" buckets, and rehash the entries into
- // the new table.
-
- PVoidList *oldBucketPointer;
- PEntryList *ob, obi;
- PEntryList *nb, *nbh;
- PEntryList that, tail;
- unsigned int index;
- unsigned int i;
- unsigned int oldNumBuckets;
-
- return;
- assert(logBuckets <= MaxLogBuckets);
- assert(logBuckets >= tbl->minLogBuckets);
- oldBucketPointer = tbl->buckets;
- ob = (PEntryList*)tbl->buckets;
- oldNumBuckets = tbl->numBuckets;
-
- NewBuckets(tbl, logBuckets);
- nb = (PEntryList*)tbl->buckets;
-
- for(i=0;i<oldNumBuckets;i++){
- obi = ob[i];
- that = obi;
- while (that != NULL) {
- index = (HASH(&(that->key))*Multiplier)>>(BITSIZE(unsigned long)-tbl->logBuckets);
- nbh = &(nb[index]);
- tail = that->tail;
- that->tail = *nbh;
- *nbh = that;
- that = tail;
- }
- }
- DISPOSE (oldBucketPointer);
-}
-
-static inline
-unsigned int // boolean
-Get(PHashTable tbl, PKEY key, PVAL *val){
- PEntryList that;
- unsigned int index;
-
- index = (HASH(key)*Multiplier)>>(BITSIZE(unsigned long)-tbl->logBuckets);
- that = (PEntryList)tbl->buckets[index];
- while ((that != NULL) && !EQUAL(key,&(that->key))) {
- that = that->tail;
- }
- if (that != NULL){
- *val = &that->val;
- return TRUE;
- }
- else {
- return FALSE;
- }
-} // Get()
-
-static inline
-unsigned int // boolean
-Put(PHashTable tbl, PKEY key, PVAL *val){
- PEntryList that;
- PEntryList *first;
- unsigned int index;
- unsigned int res;
-
- index = (HASH(key)*Multiplier)>>(BITSIZE(unsigned long)-tbl->logBuckets);
- first = (PEntryList*)&(tbl->buckets[index]);
- that = *first;
- while ((that != NULL) && !EQUAL(key, &(that->key))){
- that = that->tail;
- }
-
- // found an entry in the hash table given above key
- if (that != NULL){
- res = TRUE;
- }
- else {
- // check if we can reuse something from the cache
- if (tbl->cache != NULL) {
- that = (PEntryList)tbl->cache;
- tbl->cache = (PVoidList)tbl->cache->tail;
- that->key = *key;
- that->tail = *first;
- *first = that;
- }
- else {
- that = NEW(EntryList,1);
- that->key = *key;
- that->tail = *first;
- *first = that;
- }
- that->val = **val;
-
- tbl->numEntries++;
- if ((tbl->logBuckets < MaxLogBuckets)
- && (tbl->numEntries > tbl->maxEntries)){
- Rehash(tbl, tbl->logBuckets + 1); // too crowded
- }
- res = FALSE;
- }
- *val = &that->val;
- return res;
-
-} // Put()
-
-static inline
-int
-Delete(PHashTable tbl,PKEY key){
- PEntryList that, prev;
- PEntryList *first;
- unsigned int index;
-
- index = (HASH(key)*Multiplier)>>(BITSIZE(unsigned long)-tbl->logBuckets);
- first = (PEntryList*)&(tbl->buckets[index]);
- that = *first;
- prev = NULL;
-
- while ((that != NULL) && !EQUAL(key, &(that->key))){
- prev = that;
- that = that->tail;
- }
- if (that != NULL) {
- if (prev == NULL) {
- *first = that->tail;
- }
- else {
- prev->tail = that->tail;
- }
- if ((tbl->maxCacheSize == -1)||(tbl->cacheSize < tbl->maxCacheSize)) {
- that->tail = (PEntryList)tbl->cache;
- tbl->cache = (PVoidList)that;
- tbl->cacheSize++;
- }
- else {
- DISPOSE (that);
- }
- tbl->numEntries--;
- if (tbl->maxCacheSize == 0) {
- if ((tbl->logBuckets > tbl->minLogBuckets)
- && (tbl->numEntries < tbl->minEntries)) {
- Rehash(tbl, tbl->logBuckets - 1); // too sparse
- }
- }
- return TRUE;
- }
- else {
- return FALSE;
- }
-} // Delete()
-
-typedef void (*callback)(PKEY key, PVAL val);
-
-void
-Iterate(PHashTable tbl, callback fn)
-{
- PVoidList that;
- unsigned int i;
-
- for(i=0;i<tbl->numBuckets;i++) {
- that = tbl->buckets[i];
- while ( that != (PVoidList)0 ) {
- PEntryList entry = (PEntryList)that;
- fn(&entry->key,&entry->val);
- that = that->tail;
- }
- }
-}
-
-void
-Dispose(PHashTable tbl)
-{
- PVoidList that, next;
- unsigned int i;
-
- for(i=0;i<tbl->numBuckets;i++) {
- that = tbl->buckets[i];
- while( that != NULL) {
- next = that->tail;
- DISPOSE (that);
- tbl->numEntries--;
- that = next;
- }
- }
- DISPOSE(tbl->buckets);
- assert(tbl->numEntries = 0);
-} // Dispose;
-
-
-
-#endif // __VDU_H
+++ /dev/null
-// $Id: vhashify-init.hc 1967 2005-03-23 02:10:23Z ensc $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#include "pathconfig.h"
-#include "lib_internal/util-dotfile.h"
-
-#include <sys/param.h>
-
-static UNUSED void
-freeHashList(HashDirCollection *hash_vec)
-{
- for (struct HashDirInfo *itm = Vector_begin(hash_vec);
- itm!=Vector_end(hash_vec);
- ++itm) {
- free(const_cast(char *)(itm->path.d));
- }
-
- Vector_free(hash_vec);
-}
-
-static size_t
-initHashList(HashDirCollection *hash_vec, char const *hashdir)
-{
- int cur_dir = Eopen(".", O_RDONLY|O_DIRECTORY, 0);
- Echdir(hashdir);
-
- DIR *d = Eopendir(".");
- struct dirent *ep;
- size_t l = strlen(hashdir);
- size_t res = 0;
-
- while ((ep=readdir(d)) != 0) {
- struct stat st;
-
- if (isDotfile(ep->d_name) ||
- stat(ep->d_name, &st)==-1 || !S_ISDIR(st.st_mode))
- continue;
-
- if (HashDirInfo_findDevice(hash_vec, st.st_dev)!=0) {
- WRITE_MSG(2, "Duplicate hash-dir entry '");
- WRITE_STR(2, ep->d_name);
- WRITE_MSG(2, "' found\n");
- continue;
- }
-
- char *full_path = Emalloc(l + strlen(ep->d_name) + 3);
- char *ptr = full_path + l;
-
- memcpy(full_path, hashdir, l);
- while (ptr>full_path && ptr[-1]=='/') --ptr;
- *ptr++ = '/';
- strcpy(ptr, ep->d_name);
- strcat(ptr, "/"); // append a trailing '/'
-
-
- struct HashDirInfo tmp = {
- .device = st.st_dev,
- .path = { full_path, strlen(full_path) },
- };
-
- res = MAX(res, tmp.path.l);
-
- memcpy(Vector_pushback(hash_vec), &tmp, sizeof tmp);
- }
-
- if (Vector_count(hash_vec)==0) {
- WRITE_MSG(2, "Could not find a place for the hashified files at '");
- WRITE_STR(2, hashdir);
- WRITE_MSG(2, "'.\n");
- exit(wrapper_exit_code);
- }
-
- Eclosedir(d);
- Efchdir(cur_dir);
- Eclose(cur_dir);
-
- return res;
-}
-
-static bool
-initHashMethod(struct HashDirConfiguration *conf, char const *filename)
-{
- int fd = open(filename, O_RDONLY);
- if (fd==-1 && conf->method==0)
- conf->method = hashFunctionDefault();
-
- if (fd==-1) {
- assert(conf->method!=0);
- if (conf->method==0) return false;
- if (global_args->dry_run) return true; // do not create the file
-
- fd = Eopen(filename, O_WRONLY|O_CREAT|O_EXCL|O_NOFOLLOW, 0644);
- TEMP_FAILURE_RETRY(write(fd, conf->method->name, strlen(conf->method->name)));
- TEMP_FAILURE_RETRY(write(fd, "\n", 1));
- }
- else {
- off_t s = Elseek(fd, 0, SEEK_END);
- char buf[s + 1];
- Elseek(fd, 0, SEEK_SET);
-
- conf->method=0;
-
- if (s>0 && read(fd, buf, s+1)==s) {
- while (s>0 && (buf[s-1]=='\0' || buf[s-1]=='\n'))
- --s;
- buf[s] = '\0';
-
- conf->method = hashFunctionFind(buf);
- if (conf->method==0) {
- WRITE_MSG(2, "Can not find hash-function '");
- WRITE_STR(2, buf);
- WRITE_MSG(2, "'\n");
- }
- }
- else
- WRITE_MSG(2, "Can not read configuration file for hash-method\n");
- }
-
- if (conf->method!=0 && conf->method->digestsize*8>HASH_MAXBITS) {
- WRITE_MSG(2, "Wow... what an huge hash-function. I can not handle so much bits; giving up...\n");
- conf->method=0;
- }
-
- Eclose(fd);
- return conf->method!=0;
-}
-
-static bool
-initHashBlocks(struct HashDirConfiguration *conf, char const *filename)
-{
- int fd = open(filename, O_RDONLY);
-
- if (fd==-1) {
- char str[sizeof("all,start,middle,end,")] = { [0] = '\0' };
-
- if (global_args->dry_run) return true; // do not create the file
-
- fd = Eopen(filename, O_WRONLY|O_CREAT|O_EXCL|O_NOFOLLOW, 0644);
-
- if (conf->blocks== hshALL) strcat(str, "all\n");
- if (conf->blocks & hshSTART) strcat(str, "start\n");
- if (conf->blocks & hshMIDDLE) strcat(str, "middle\n");
- if (conf->blocks & hshEND) strcat(str, "end\n");
-
- EwriteAll(fd, str, strlen(str));
- }
- else {
- off_t s = Elseek(fd, 0, SEEK_END);
- char buf[s + 1];
- Elseek(fd, 0, SEEK_SET);
-
- conf->blocks = hshINVALID;
-
- if (s>0 && read(fd, buf, s+1)==s) {
- char *tok = buf;
- char *sep = "\n,\t ";
-
- buf[s] = '\0';
- conf->blocks = hshALL;
-
- do {
- char *ptr = strsep(&tok, sep);
-
- if (*ptr=='#') { sep = "\n"; continue; }
- sep = "\n,\t ";
- if (*ptr=='\0') continue;
-
- if (strcasecmp(ptr, "all") ==0) conf->blocks = hshALL;
- else {
- if (conf->blocks==hshINVALID) conf->blocks = 0;
-
- else if (strcasecmp(ptr, "start") ==0) conf->blocks |= hshSTART;
- else if (strcasecmp(ptr, "middle")==0) conf->blocks |= hshMIDDLE;
- else if (strcasecmp(ptr, "end") ==0) conf->blocks |= hshEND;
- else {
- WRITE_MSG(2, "Invalid block descriptor '");
- WRITE_STR(2, ptr);
- WRITE_MSG(2, "'\n");
- conf->blocks = hshINVALID;
- tok = 0;
- }
- }
- } while (tok!=0);
- }
- else
- WRITE_MSG(2, "Can not read configuration file for hash-blocks\n");
- }
-
- Eclose(fd);
- return conf->blocks!=hshINVALID;
-}
-
-static bool
-initHashBlockSize(struct HashDirConfiguration *conf, char const *filename)
-{
- if (conf->blocks==hshALL) return true;
-
- int fd = open(filename, O_RDONLY);
- if (fd==-1) {
- char str[sizeof("0x") + sizeof(size_t)*3+2] = {
- [0] = '0', [1] = 'x'
- };
- size_t len = utilvserver_fmt_xuint(str+2, conf->blocksize);
-
- if (global_args->dry_run) return true; // do not create the file
-
- fd = Eopen(filename, O_WRONLY|O_CREAT|O_EXCL|O_NOFOLLOW, 0644);
- EwriteAll(fd, str, len+2);
- }
- else {
- off_t s = Elseek(fd, 0, SEEK_END);
- char buf[s + 1];
- Elseek(fd, 0, SEEK_SET);
-
- conf->blocksize = (size_t)(-1);
-
- if (s>0 && read(fd, buf, s+1)==s) {
- char *errptr;
-
- while (s>0 && (buf[s-1]=='\0' || buf[s-1]=='\n'))
- --s;
- buf[s] = '\0';
-
- conf->blocksize = strtol(buf, &errptr, 0);
- if (errptr==buf || (*errptr!='\0' && *errptr!='\n')) {
- WRITE_MSG(2, "Failed to parse blocksize '");
- WRITE_STR(2, buf);
- WRITE_MSG(2, "'\n");
- conf->blocksize = (size_t)(-1);
- }
- }
- else
- WRITE_MSG(2, "Can not read configuration file for hash-blocksize\n");
- }
-
- Eclose(fd);
- return conf->blocksize!=(size_t)(-1);
-}
-
-static bool
-initHashConf(struct HashDirConfiguration *conf, char const *hashdir)
-{
- size_t l = strlen(hashdir);
- char tmp[l + MAX(MAX(sizeof("/method"), sizeof("/blocks")),
- sizeof("/blocksize"))];
-
- memcpy(tmp, hashdir, l);
-
- return ((strcpy(tmp+l, "/method"), initHashMethod (conf, tmp)) &&
- (strcpy(tmp+l, "/blocks"), initHashBlocks (conf, tmp)) &&
- (strcpy(tmp+l, "/blocksize"), initHashBlockSize(conf, tmp)));
-}
-
-static char *
-searchHashdir(char const *lhs, char const *rhs)
-{
- size_t l1 = strlen(lhs);
- size_t l2 = rhs ? strlen(rhs) : 0;
- char * res = Emalloc(l1 + l2 + 1);
- struct stat st;
-
- strcpy(res, lhs);
- if (rhs) strcat(res, rhs);
-
- if (stat(res, &st)==-1 || !S_ISDIR(st.st_mode)) {
- free(res);
- res = 0;
- }
-
- return res;
-}
-
-static void
-initModeManually(struct Arguments const UNUSED *args, int argc, char *argv[])
-{
- assert(args->hash_dir!=0);
-
- if (argc<2) {
- WRITE_MSG(2, "No exclude list specified\n");
- exit(1);
- }
-
- if (!initHashConf(&global_info.hash_conf, args->hash_dir)) {
- WRITE_MSG(2, "failed to initialize hash-configuration\n");
- exit(1);
- }
-
- global_info.hash_dirs_max_size = initHashList(&global_info.hash_dirs,
- args->hash_dir);
- MatchList_initManually(&global_info.dst_list, 0, strdup(argv[0]), argv[1]);
-}
-
-static void
-initModeVserver(struct Arguments const UNUSED *args, int argc, char *argv[])
-{
- char const *hashdir = args->hash_dir;
- struct MatchVserverInfo vserver = {
- .name = argv[0],
- .use_pkgmgmt = true
- };
-
- if (!MatchVserverInfo_init(&vserver)) {
- WRITE_MSG(2, "Failed to initialize unification for vserver\n");
- exit(1);
- }
-
- if (argc!=1) {
- WRITE_MSG(2, "More than one vserver is not supported\n");
- exit(1);
- }
-
- if (!MatchList_initByVserver(&global_info.dst_list, &vserver)) {
- WRITE_MSG(2, "unification not configured for this vserver\n");
- exit(1);
- }
-
- if (hashdir==0) hashdir = searchHashdir(vserver.appdir.d, "/hash");
- if (hashdir==0) hashdir = searchHashdir(CONFDIR "/.defaults/apps/vunify/hash", 0);
-
- if (hashdir==0) {
- WRITE_MSG(2, "no hash-directory configured for this vserver.\n");
- exit(1);
- }
-
- if (!initHashConf(&global_info.hash_conf, hashdir)) {
- WRITE_MSG(2, "failed to initialize hash-configuration\n");
- exit(1);
- }
-
- global_info.hash_dirs_max_size = initHashList(&global_info.hash_dirs, hashdir);
-
- free(const_cast(char *)(hashdir));
- MatchVserverInfo_free(&vserver);
-}
-
+++ /dev/null
-// $Id: vhashify.c 2569 2007-07-22 17:24:29Z dhozac $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define UTIL_VSERVER_UNIFY_MTIME_OPTIONAL
-
-#include "vhashify.h"
-#include "util.h"
-
-#include "lib/internal.h"
-#include "lib_internal/matchlist.h"
-#include "lib_internal/unify.h"
-#include "ensc_vector/vector.h"
-
-#include <beecrypt/beecrypt.h>
-
-#include <setjmp.h>
-#include <unistd.h>
-#include <getopt.h>
-#include <string.h>
-#include <assert.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <dirent.h>
-#include <errno.h>
-#include <signal.h>
-#include <limits.h>
-#include <sys/mman.h>
-#include <sys/stat.h>
-
-#define ENSC_WRAPPERS_STDLIB 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_DIRENT 1
-#define ENSC_WRAPPERS_IO 1
-#include <wrappers.h>
-
-
-#define HASH_BLOCKSIZE 0x10000000u
-#define HASH_MINSIZE 0x10
-#define HASH_MAXBITS 256 // we have to take care about
- // max filename-length...
-
-#if HASH_MINSIZE<=0
-# error HASH_MINSIZE must be not '0'
-#endif
-
-
-#define CMD_HELP 0x8000
-#define CMD_VERSION 0x8001
-
-#define CMD_DESTINATION 0x1000
-#define CMD_INSECURE 0x1001
-#define CMD_SLEDGE 0x1002
-#define CMD_MANUALLY 0x1003
-#define CMD_REFRESH 0x1004
-#define CMD_NOMTIME 0x1005
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "destination", required_argument, 0, CMD_DESTINATION },
- { "insecure", no_argument, 0, CMD_INSECURE },
- { "sledgehammer", no_argument, 0, CMD_SLEDGE },
- { "manually", no_argument, 0, CMD_MANUALLY },
- { "refresh", no_argument, 0, CMD_REFRESH },
- { "ignore-mtime", no_argument, 0, CMD_NOMTIME },
- { "dry-run", no_argument, 0, 'n' },
- { "verbose", no_argument, 0, 'v' },
- { 0,0,0,0 }
-};
-
- // hash digest grouped by 2 digits + hash-collision counter + 2* '/' + NULL
-typedef char HashPath[HASH_MAXBITS/4 + (HASH_MAXBITS/4/2) +
- sizeof(unsigned int)*2 + 3];
-
-struct HashDirConfiguration
-{
- hashFunction const *method;
- enum { hshALL=0, hshSTART = 1, hshMIDDLE=2,
- hshEND = 4, hshINVALID = -1 } blocks;
- size_t blocksize;
-};
-
-struct WalkdownInfo
-{
- PathInfo state;
- struct MatchList dst_list;
- struct HashDirConfiguration hash_conf;
- HashDirCollection hash_dirs;
- size_t hash_dirs_max_size;
-
- hashFunctionContext hash_context;
-};
-
-int wrapper_exit_code = 1;
-struct Arguments const *global_args;
-static struct SkipReason skip_reason;
-
-struct WalkdownInfo global_info = {
- .hash_conf = { .method = 0,
- .blocks = hshALL,
- .blocksize = 0x10000 }
-};
-
-#include "vhashify-init.hc"
-
-int Global_getVerbosity() {
- return global_args->verbosity;
-}
-
-int Global_doRenew() {
- return true;
-}
-
-int Global_isVserverRunning() {
- // TODO
- return global_args->insecure<2;
-}
-
-static void
-showHelp(char const *cmd)
-{
- WRITE_MSG(1, "Usage:\n ");
- WRITE_STR(1, cmd);
- WRITE_MSG(1,
- " [-nv] [--refresh] <vserver>\n or\n ");
- WRITE_STR(1, cmd);
- WRITE_MSG(1,
- " --manually [-nv] [--] <hashdir> <path> <excludelist>\n\n"
- " --manually ... hashify generic paths; excludelists must be generated\n"
- " manually\n"
- " --refresh ... hashify already hashified files also\n"
- " -n ... do not modify anything; just show what there will be\n"
- " done (in combination with '-v')\n"
- " -v ... verbose mode\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vhashify " VERSION " -- hashifies vservers and/or directories\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2005 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-int
-HashDirInfo_compareDevice(void const *lhs_v, void const *rhs_v)
-{
- struct HashDirInfo const * const lhs = lhs_v;
- dev_t const * const rhs = rhs_v;
-
- assert(lhs!=0 && rhs!=0);
- return lhs->device - *rhs;
-}
-
-PathInfo const *
-HashDirInfo_findDevice(HashDirCollection const *coll, dev_t dev)
-{
- struct HashDirInfo const *res;
-
- res = Vector_searchSelfOrg_const(coll, &dev,
- HashDirInfo_compareDevice, vecSHIFT_ONCE);
-
- if (res!=0) return &res->path;
- else return 0;
-}
-
-#include "vserver-visitdir.hc"
-
-static bool
-checkFstat(PathInfo const * const basename,
- struct stat * const st)
-{
- assert(basename->d[0] != '/');
-
- // local file does not exist... strange
- // TODO: message
- skip_reason.r = rsFSTAT;
- if (lstat(basename->d, st)==-1) return false;
-
- // this is a directory and succeeds everytime
- if (S_ISDIR(st->st_mode))
- return true;
-
- // ignore symlinks
- skip_reason.r = rsSYMLINK;
- if (S_ISLNK(st->st_mode)) return false;
-
- // ignore special files
- skip_reason.r = rsSPECIAL;
- if (!S_ISREG(st->st_mode) &&
- !S_ISDIR(st->st_mode)) return false;
-
- // ignore small files
- skip_reason.r = rsTOOSMALL;
- if (st->st_size < HASH_MINSIZE) return false;
-
- switch (Unify_isIUnlinkable(basename->d)) {
- case unifyUNSUPPORTED : skip_reason.r = rsUNSUPPORTED; return false;
- case unifyBUSY :
- // do an implicit refresh on busy files when there are no active links
- if (st->st_nlink>1 && !global_args->do_refresh) {
- // TODO: message
- skip_reason.r = rsUNIFIED;
- return false;
- }
- break;
- default : break;
- }
-
- return true;
-}
-
-static sigjmp_buf bus_error_restore;
-static volatile sig_atomic_t bus_error;
-
-static void
-handlerSIGBUS(int UNUSED num)
-{
- bus_error = 1;
- siglongjmp(bus_error_restore, 1);
-}
-
-static bool
-convertDigest(HashPath d_path)
-{
- static char const HEX_DIGIT[] = "0123456789abcdef";
- hashFunctionContext * const h_ctx = &global_info.hash_context;
- size_t d_size = h_ctx->algo->digestsize;
-
- unsigned char digest[d_size];
- size_t out = 0;
-
- if (hashFunctionContextDigest(h_ctx, digest)==-1)
- return false;
-
- for (size_t in=0;
- out+1<sizeof(HashPath)-(sizeof(unsigned int)*2 + 2) && in<d_size;
- ++in) {
- if ((in+254)%(in<=2 ? 1 : 256) == 0 && in>0)
- d_path[out++]='/';
- d_path[out++] = HEX_DIGIT[digest[in] >> 4];
- d_path[out++] = HEX_DIGIT[digest[in] & 0x0f];
- }
- d_path[out++] = '\0';
-
- return true;
-}
-
-#ifndef ENSC_TESTSUITE
-static bool
-addStatHash(hashFunctionContext *h_ctx, struct stat const * const st)
-{
-#define DECL_ATTR(X) __typeof__(st->st_##X) X
-#define SET_ATTR(X) .X = st->st_##X
-
- struct __attribute__((__packed__)) {
- DECL_ATTR(mode);
- DECL_ATTR(uid);
- DECL_ATTR(gid);
- DECL_ATTR(rdev);
- DECL_ATTR(size);
- DECL_ATTR(mtime);
- } tmp = {
- SET_ATTR(mode),
- SET_ATTR(uid),
- SET_ATTR(gid),
- SET_ATTR(rdev),
- SET_ATTR(size),
- .mtime = (global_args->ignore_mtime ? 0 : st->st_mtime),
- };
-
-#undef SET_ATTR
-#undef DECL_ATTR
-
-
- return hashFunctionContextUpdate(h_ctx, (void *)&tmp, sizeof tmp)!=-1;
-}
-#else
-static bool
-addStatHash(hashFunctionContext UNUSED *h_ctx, struct stat const UNUSED * const st)
-{
- return true;
-}
-#endif
-
-static bool
-calculateHashFromFD(int fd, HashPath d_path, struct stat const * const st)
-{
- hashFunctionContext * const h_ctx = &global_info.hash_context;
- void const * volatile buf = 0;
- loff_t volatile buf_size = 0;
- bool volatile res = false;
-
-
- if (hashFunctionContextReset(h_ctx)==-1 ||
- !addStatHash(h_ctx, st))
- return false;
-
- bus_error = 0;
- if (sigsetjmp(bus_error_restore,1)==0) {
- loff_t offset = 0;
- off_t size = st->st_size;
-
- while (offset < size) {
- buf_size = size-offset;
- if (buf_size>HASH_BLOCKSIZE) buf_size = HASH_BLOCKSIZE;
-
- if ((buf=mmap(0, buf_size, PROT_READ, MAP_SHARED, fd, offset))==0) {
- perror("mmap(<hash>)");
- goto out;
- }
-
- offset += buf_size;
- madvise(const_cast(void *)(buf), buf_size, MADV_SEQUENTIAL); // ignore error...
-
- if (hashFunctionContextUpdate(h_ctx, buf, buf_size)==-1) goto out;
-
- munmap(const_cast(void *)(buf), buf_size);
- buf = 0;
- }
-
- res = convertDigest(d_path);
- }
-
- out:
- if (buf!=0) munmap(const_cast(void *)(buf), buf_size);
- return res;
-}
-
-static bool
-calculateHash(PathInfo const *filename, HashPath d_path, struct stat const * const st)
-{
- int fd = open(filename->d, O_NOFOLLOW|O_NONBLOCK|O_RDONLY|O_NOCTTY);
- struct stat fst;
- bool res = false;
-
- do {
- if (fd==-1) {
- int old_errno = errno;
- WRITE_MSG(2, "Failed to open '");
- WRITE_STR(2, filename->d);
- errno = old_errno;
- perror("'");
- break;;
- }
-
- if (fstat(fd, &fst)==-1 ||
- fst.st_dev!=st->st_dev || fst.st_ino!=st->st_ino) {
- WRITE_MSG(2, "An unexpected event occured while stating '");
- WRITE_STR(2, filename->d);
- WRITE_MSG(2, "'.\n");
- break;
- }
-
- if (!calculateHashFromFD(fd, d_path, st)) {
- WRITE_MSG(2, "Failed to calculate hash for '");
- WRITE_STR(2, filename->d);
- WRITE_MSG(2, "'.\n");
- break;
- }
-
- res = true;
- } while (false);
-
- if (fd!=-1) close(fd);
- return res;
-}
-
-static bool
-resolveCollisions(char *result, PathInfo const *root, HashPath d_path,
- struct stat *st, struct stat *hash_st)
-{
- strcpy(result, root->d); // 'root' ends on '/' already (see initHashList())
- strcat(result, d_path);
-
- char *ptr = result + strlen(result);
- unsigned int idx = 0;
- char buf[sizeof(int)*2 + 1];
- size_t len;
-
- *ptr = '-';
- ptr[sizeof(int)*2+1] = '\0';
-
- for (;; ++idx) {
- len = utilvserver_fmt_xuint(buf, idx);
- memset(ptr+1, '0', sizeof(int)*2 - len);
- memcpy(ptr+1 + sizeof(int)*2 - len, buf, len);
-
- if (lstat(result, hash_st)==-1) {
- if (global_args->dry_run && errno!=ENOENT) {
- int old_errno = errno;
- WRITE_MSG(2, "lstat('");
- WRITE_STR(2, buf);
- errno = old_errno;
- perror("')");
- return false;
- }
- }
- else if (Unify_isUnified(st, hash_st)) {
- skip_reason.r = rsUNIFIED;
- return false;
- }
- else if (!Unify_isUnifyable(st, hash_st))
- continue; // continue with next number*****
- else
- break; // ok, we finish here
-
- if (!global_args->dry_run) {
- *ptr = '\0';
- if (!mkdirRecursive(result)) {
- PERROR_Q("mkdir", result);
- return false;
- }
- *ptr = '-';
-
- int fd = open(result, O_NOFOLLOW|O_EXCL|O_CREAT|O_WRONLY, 0200);
-
- if (fd==-1) {
- PERROR_Q("open", buf);
- return false;
- }
-
- close(fd);
- }
-
- // HACK: avoid an additional lstat on the resulting hash-file
- hash_st->st_size = 0;
- break;
- }
-
- return true;
-}
-
-static char const *
-checkDirEntry(PathInfo const *path, PathInfo const *basename,
- bool *is_dir,
- struct stat *st, struct stat *hash_st,
- char *result_buf)
-{
- //printf("checkDirEntry(%s, %s, %u)\n", path->d, d_path, is_dir);
-
- struct WalkdownInfo const * const info = &global_info;
-
- // Check if it is in the exclude/include list of the destination vserver and
- // abort when it is not matching an allowed entry
- skip_reason.r = rsEXCL;
- if (MatchList_compare(&info->dst_list, path->d)!=stINCLUDE) return 0;
-
- if (checkFstat(basename, st)) {
- PathInfo const *hash_root_path;
- HashPath d_path;
-
- *is_dir = S_ISDIR(st->st_mode);
-
- if (!*is_dir &&
- !((skip_reason.r = rsWRONGDEV,
- (hash_root_path = HashDirInfo_findDevice(&info->hash_dirs, st->st_dev))!=0) &&
- (skip_reason.r = rsGENERAL,
- calculateHash(basename, d_path, st)) &&
- resolveCollisions(result_buf, hash_root_path, d_path, st, hash_st)))
- return 0;
-
- return result_buf;
- }
-
- return 0;
-}
-
-static void
-printSkipReason()
-{
- WRITE_MSG(1, " (");
- switch (skip_reason.r) {
- case rsDOTFILE : WRITE_MSG(1, "dotfile"); break;
- case rsEXCL : WRITE_MSG(1, "excluded"); break;
- case rsTOOSMALL : WRITE_MSG(1, "too small"); break;
- case rsUNSUPPORTED : WRITE_MSG(1, "operation not supported"); break;
- case rsFSTAT : WRITE_MSG(1, "fstat error"); break;
- case rsSYMLINK : WRITE_MSG(1, "symlink"); break;
- case rsUNIFIED : WRITE_MSG(1, "already unified"); break;
- case rsSPECIAL : WRITE_MSG(1, "non regular file"); break;
- case rsWRONGDEV : WRITE_MSG(1, "no matching device"); break;
- case rsGENERAL : WRITE_MSG(1, "general error"); break;
- default : assert(false); abort();
- }
- WRITE_MSG(1, ")");
-}
-
-static bool
-doit(char const *src, char const *dst,
- struct stat const *src_st, struct stat const *dst_st,
- PathInfo const *path)
-{
- if (global_args->dry_run || Global_getVerbosity()>=2) {
- WRITE_MSG(1, "unifying '");
- Vwrite(1, path->d, path->l);
- WRITE_MSG(1, "'");
-
- if (Global_getVerbosity()>=4) {
- WRITE_MSG(1, " (to '");
- WRITE_STR(1, dst);
- WRITE_MSG(1, "')");
- }
-
- WRITE_MSG(1, "\n");
- }
-
- // abort here in dry-run mode
- if (global_args->dry_run) return true;
-
- if (dst_st->st_size==0) {
- // file was not unified yet
-
- if (Global_isVserverRunning()) {
- (void)unlink(dst);
- if (Unify_copy (src, src_st, dst) &&
- // the mixed 'dst' and 'src_st' params are intentionally...
- Unify_unify(dst, src_st, src, false))
- return true;
- }
- else if (Unify_unify(src, src_st, dst, true))
- return true;
-
- (void)unlink(dst); // cleanup in error-case
- }
- // there exists already a reference-file
- else if (Unify_unify(dst, dst_st, src, false))
- return true;
-
- return false;
-}
-
-static uint64_t
-visitDirEntry(struct dirent const *ent)
-{
- uint64_t res = 0;
- char const * dirname = ent->d_name;
- PathInfo path = global_info.state;
- PathInfo tmp_path = {
- .d = dirname,
- .l = strlen(dirname)
- };
- char path_buf[ENSC_PI_APPSZ(path, tmp_path)];
- char const *match = 0;
-
-
- PathInfo_append(&path, &tmp_path, path_buf);
-
- bool is_dotfile = isDotfile(dirname);
- bool is_dir;
- struct stat src_stat = { .st_mode=0 };
- struct stat hash_stat;
- char tmpbuf[global_info.hash_dirs_max_size +
- sizeof(HashPath) + 2];
-
- skip_reason.r = rsDOTFILE;
-
- if (is_dotfile ||
- (match=checkDirEntry(&path, &tmp_path,
- &is_dir, &src_stat, &hash_stat,
- tmpbuf))==0) {
-
- bool is_link = !is_dotfile && S_ISLNK(src_stat.st_mode);
-
- if (Global_getVerbosity()>=1 &&
- (Global_getVerbosity()>=3 || skip_reason.r!=rsUNIFIED) &&
- ((!is_dotfile && !is_link) ||
- (Global_getVerbosity()>=6 && is_dotfile) ||
- (Global_getVerbosity()>=6 && is_link)) ) {
- WRITE_MSG(1, " skipping '");
- Vwrite(1, path.d, path.l);
- WRITE_MSG(1, "'");
- if (Global_getVerbosity()>=2) printSkipReason();
- WRITE_MSG(1, "\n");
- }
-
- return 0;
- }
-
- if (is_dir) {
- res = visitDir(dirname, &src_stat);
- }
- else if (doit(dirname, match, &src_stat, &hash_stat, &path))
- res = 1;
- else {
- // TODO: message
- res = 0;
- }
-
- return res;
-
-}
-
-int main(int argc, char *argv[])
-{
- struct Arguments args = {
- .mode = mdVSERVER,
- .hash_dir = 0,
- .verbosity = 0,
- .insecure = 0,
- .dry_run = false,
- .do_refresh = false,
- .ignore_mtime = false,
- };
-
- Vector_init(&global_info.hash_dirs, sizeof(struct HashDirInfo));
-
- global_args = &args;
- while (1) {
- int c = getopt_long(argc, argv, "+nv",
- CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(argv[0]);
- case CMD_VERSION : showVersion();
- case CMD_DESTINATION : args.hash_dir = optarg; break;
- case CMD_MANUALLY : args.mode = mdMANUALLY; break;
- case CMD_INSECURE : args.insecure = 1; break;
- case CMD_SLEDGE : args.insecure = 2; break;
- case CMD_REFRESH : args.do_refresh = true; break;
- case CMD_NOMTIME : args.ignore_mtime = true; break;
- case 'n' : args.dry_run = true; break;
- case 'v' : ++args.verbosity; break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- if (argc==optind) {
- WRITE_MSG(2, "No directory/vserver given\n");
- return EXIT_FAILURE;
- }
-
- if (args.hash_dir==0 && args.mode==mdMANUALLY) {
- WRITE_MSG(2, "'--manually' requires '--destination'\n");
- return EXIT_FAILURE;
- }
-
- switch (args.mode) {
- case mdMANUALLY : initModeManually(&args, argc-optind, argv+optind); break;
- case mdVSERVER : initModeVserver (&args, argc-optind, argv+optind); break;
- default : assert(false); return EXIT_FAILURE;
- };
-
- if (hashFunctionContextInit(&global_info.hash_context,
- global_info.hash_conf.method)==-1) {
- WRITE_MSG(2, "Failed to initialize hash-context\n");
- return EXIT_FAILURE;
- }
-
- if (Global_getVerbosity()>=1)
- WRITE_MSG(1, "Starting to traverse directories...\n");
-
- signal(SIGBUS, handlerSIGBUS);
-
- Echdir(global_info.dst_list.root.d);
- visitDir("/", 0);
-
-#ifndef NDEBUG
- MatchList_destroy(&global_info.dst_list);
- freeHashList(&global_info.hash_dirs);
- hashFunctionContextFree(&global_info.hash_context);
-#endif
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: vhashify.h 2475 2007-01-27 09:38:56Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_VHASHIFY_H
-#define H_UTIL_VSERVER_SRC_VHASHIFY_H
-
-#include "ensc_vector/list.h"
-#include "lib_internal/pathinfo.h"
-
-#include <sys/types.h>
-#include <stdbool.h>
-
-struct Arguments {
- enum {mdMANUALLY, mdVSERVER} mode;
- unsigned int verbosity;
- unsigned int insecure;
- char const * hash_dir;
- bool dry_run;
- bool do_refresh;
- bool ignore_mtime;
-};
-
-struct HashDirInfo {
- PathInfo const path;
- dev_t device;
-};
-
-struct SkipReason {
- enum { rsDOTFILE, rsEXCL, rsTOOSMALL, rsUNSUPPORTED,
- rsFSTAT, rsSYMLINK, rsUNIFIED, rsWRONGDEV,
- rsSPECIAL, rsGENERAL } r;
-};
-
-typedef struct Vector HashDirCollection;
-
-int HashDirInfo_compareDevice(void const *lhs, void const *rhs);
-PathInfo const * HashDirInfo_findDevice(HashDirCollection const *, dev_t dev);
-
-#endif // H_UTIL_VSERVER_SRC_VHASHIFY_H
+++ /dev/null
-/*
- * $Id$
- * Copyright (c) 2007 The Trustees of Princeton University
- * Author: Daniel Hokka Zakrisson <daniel@hozac.com>
- *
- * Licensed under the terms of the GNU General Public License
- * version 2 or later.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdint.h>
-#include <string.h>
-#include <time.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <arpa/inet.h>
-#include <dirent.h>
-#include <ctype.h>
-#include <errno.h>
-#include <signal.h>
-#include <syslog.h>
-
-#include <asm/types.h>
-#include <netlink/netlink.h>
-#include <netlink/route/addr.h>
-
-#include <vserver.h>
-#include "pathconfig.h"
-
-#define HAS_ADDRESS 0x01
-#define HAS_PREFIX 0x02
-
-struct nid_list {
- nid_t nid;
- struct nid_list *next;
-};
-struct prefix {
- uint32_t mask;
- int ifindex;
- struct {
- struct in6_addr addr;
- int prefix_len;
- time_t valid_until;
- } prefix;
- struct {
- struct in6_addr addr;
- int prefix_len;
- time_t valid_until;
- } address;
-};
-struct nid_prefix_map {
- struct {
- struct nid_prefix_map *prev;
- struct nid_prefix_map *next;
- } n;
- struct {
- struct nid_prefix_map *prev;
- struct nid_prefix_map *next;
- } p;
- struct prefix *prefix;
- nid_t nid;
-};
-
-struct nl_handle *handle;
-
-/* from linux/include/net/ipv6.h */
-static inline int ipv6_prefix_equal(struct in6_addr *prefix,
- struct in6_addr *addr, int prefixlen)
-{
- uint32_t *a1 = prefix->s6_addr32, *a2 = addr->s6_addr32;
- unsigned pdw, pbi;
-
- /* check complete u32 in prefix */
- pdw = prefixlen >> 5;
- if (pdw && memcmp(a1, a2, pdw << 2))
- return 0;
-
- /* check incomplete u32 in prefix */
- pbi = prefixlen & 0x1f;
- if (pbi && ((a1[pdw] ^ a2[pdw]) & htonl((0xffffffff) << (32 - pbi))))
- return 0;
-
- return 1;
-}
-
-static int add_address_to_interface(int ifindex, struct in6_addr *address,
- int prefix)
-{
- int err = -1;
- struct rtnl_addr *rta;
- struct nl_addr *nl;
-
- nl = nl_addr_build(AF_INET6, address, sizeof(struct in6_addr));
- rta = rtnl_addr_alloc();
-
- rtnl_addr_set_family(rta, AF_INET6);
- rtnl_addr_set_ifindex(rta, ifindex);
- rtnl_addr_set_local(rta, nl);
- rtnl_addr_set_prefixlen(rta, prefix);
-
- if (rtnl_addr_add(handle, rta, NLM_F_REPLACE) != -1 || errno == EEXIST)
- err = 0;
-
- rtnl_addr_free(rta);
- nl_addr_destroy(nl);
- return err;
-}
-
-static inline int remove_address_from_interface(struct nid_prefix_map *entry)
-{
- struct rtnl_addr *rta;
- struct nl_addr *nl;
- struct in6_addr a;
- int ret;
-
- memcpy(&a, &entry->prefix->address.addr, sizeof(a));
- if (entry->nid != 0) {
- a.s6_addr[11] = (entry->nid & 0x7f80) >> 7;
- a.s6_addr[12] = (entry->nid & 0x7f) << 1;
- }
-
- nl = nl_addr_build(AF_INET6, &a, sizeof(a));
- if (!nl)
- return -1;
- rta = rtnl_addr_alloc();
- if (!rta)
- return -1;
-
- rtnl_addr_set_family(rta, AF_INET6);
- rtnl_addr_set_ifindex(rta, entry->prefix->ifindex);
- rtnl_addr_set_local(rta, nl);
- rtnl_addr_set_prefixlen(rta, entry->prefix->address.prefix_len);
-
- ret = rtnl_addr_delete(handle, rta, 0);
-
- rtnl_addr_free(rta);
- nl_addr_destroy(nl);
-
- return ret;
-}
-
-static int add_to_map(struct nid_prefix_map *map, struct nid_prefix_map *new)
-{
- struct nid_prefix_map *i;
-#define PUT_IT_IN_PLACE(node, member, om) \
- /* find the correct location in the list */ \
- for (i = map->node.next; i->node.next && i->member < \
- new->member; i = i->node.next) \
- ; \
- if (i && i->member == new->member && i->om == new->om) \
- return 0; \
- /* first in the list */ \
- if (!i || !i->node.prev) { \
- new->node.prev = NULL; \
- new->node.next = i; \
- map->node.next = new; \
- if (i) \
- i->node.prev = new; \
- } \
- /* last in the list */ \
- else if (i->node.next == NULL) { \
- new->node.prev = i; \
- new->node.next = NULL; \
- i->node.next = new; \
- } \
- /* somewhere in the middle */ \
- else { \
- new->node.prev = i->node.prev; \
- new->node.next = i; \
- i->node.prev->node.next = new; \
- i->node.prev = new; \
- }
- PUT_IT_IN_PLACE(p, prefix, nid)
- PUT_IT_IN_PLACE(n, nid, prefix)
- return 1;
-}
-
-static inline void remove_from_map(struct nid_prefix_map *map,
- struct nid_prefix_map *entry)
-{
- if (map->n.next == entry)
- map->n.next = entry->n.next;
- if (map->n.prev == entry)
- map->n.prev = entry->n.prev;
- if (map->p.next == entry)
- map->p.next = entry->p.next;
- if (map->p.prev == entry)
- map->p.prev = entry->p.prev;
-}
-
-static inline void remove_from_map_and_free(struct nid_prefix_map *map,
- struct nid_prefix_map *entry)
-{
- remove_from_map(map, entry);
- free(entry);
-}
-
-static int add_nid_to_map(struct nid_prefix_map *map, struct prefix *prefix,
- nid_t nid)
-{
- struct nid_prefix_map *new = calloc(1, sizeof(struct nid_prefix_map));
- int ret;
-
- if (!new)
- return -1;
-
- new->prefix = prefix;
- new->nid = nid;
- ret = add_to_map(map, new);
-
- if (ret == 0)
- free(new);
-
- return ret;
-}
-
-static int add_prefix_to_map(struct nid_prefix_map *map, struct prefix *prefix)
-{
- return add_nid_to_map(map, prefix, 0);
-}
-
-static void cleanup_prefix(struct nid_prefix_map *map,
- struct nid_prefix_map *first)
-{
- struct nid_prefix_map *i, *p = NULL;
-
- for (i = first; i && first->prefix == i->prefix; i = i->p.next) {
- if (p)
- remove_from_map_and_free(map, p);
-
- /* ignore errors */
- remove_address_from_interface(i);
-
- p = i;
- }
- if (p)
- remove_from_map_and_free(map, p);
-}
-
-static inline int add_nid_to_list(struct nid_list **head, nid_t nid)
-{
- struct nid_list *i, *new;
-
- for (i = *head; i && i->next && i->next->nid < nid; i = i->next)
- ;
- /* check if this nid is first in the list */
- if (i && i->nid == nid)
- return 0;
- /* check if it's already in the list */
- if (i && i->next && i->next->nid == nid)
- return 0;
-
- /* add it */
- new = calloc(1, sizeof(struct nid_list));
- if (!new)
- return -1;
- new->nid = nid;
-
- /* this is the lowest nid in the list */
- if (i == *head) {
- *head = new;
- new->next = i;
- }
- /* in the middle/at the end */
- else if (i) {
- new->next = i->next;
- i->next = new;
- }
- /* there was no list */
- else
- *head = new;
-
- return 1;
-}
-
-static inline void free_nid_list(struct nid_list *head)
-{
- struct nid_list *p;
- for (p = NULL; head; head = head->next) {
- if (p)
- free(p);
- p = head;
- }
- if (p)
- free(p);
-}
-
-static inline void cleanup_nid(struct nid_prefix_map *map,
- nid_t nid)
-{
- struct nid_prefix_map *i, *p = NULL;
- for (i = map->n.next; i->nid < nid; i = i->n.next)
- ;
- /* this nid doesn't have any entries in the map */
- if (i->nid != nid)
- return;
- for (; i->nid == nid; i = i->n.next) {
- if (p)
- remove_from_map_and_free(map, p);
- remove_address_from_interface(i);
- p = i;
- }
- if (p)
- remove_from_map_and_free(map, p);
-}
-
-static inline void cleanup_nids(struct nid_prefix_map *map,
- struct nid_list *previous,
- struct nid_list *current)
-{
- struct nid_list *p, *pprev = NULL, *c;
- for (p = previous, c = current; p; pprev = p, p = p->next) {
- if (pprev)
- free(pprev);
- while (c->nid < p->nid)
- c = c->next;
- if (c->nid == p->nid)
- continue;
- /* this context has disappeared */
- cleanup_nid(map, p->nid);
- }
- if (pprev)
- free(pprev);
-}
-
-static void do_slices_autoconf(struct nid_prefix_map *map)
-{
- DIR *dp;
- struct dirent *de;
- struct vc_net_addr addr;
- struct nid_prefix_map *i;
- struct nid_list *current = NULL, *n;
- static struct nid_list *previous = NULL;
-
- if ((dp = opendir("/proc/virtnet")) == NULL)
- return;
- while ((de = readdir(dp)) != NULL) {
- nid_t nid;
-
- if (!isdigit(de->d_name[0]))
- continue;
-
- nid = strtoul(de->d_name, NULL, 10);
- addr.vna_type = VC_NXA_TYPE_IPV6 | VC_NXA_TYPE_ANY;
- if (vc_net_remove(nid, &addr) == -1) {
- syslog(LOG_ERR, "vc_net_remove(%u): %s", nid, strerror(errno));
- continue;
- }
-
- add_nid_to_list(¤t, nid);
- }
- closedir(dp);
-
- for (n = current; n; n = n->next) {
- for (i = map->p.next; i && i->nid == 0;) {
- /* expired */
- if (i->prefix->mask & HAS_PREFIX && i->prefix->prefix.valid_until < time(NULL)) {
- struct nid_prefix_map *tmp;
- char buf[64];
-
- inet_ntop(AF_INET6, &i->prefix->address.addr, buf, sizeof(buf));
- syslog(LOG_NOTICE, "Address %s timed out", buf);
-
- tmp = i->p.next;
-
- cleanup_prefix(map, i);
-
- i = tmp;
- continue;
- }
- if (i->prefix->mask != (HAS_ADDRESS|HAS_PREFIX))
- goto next;
-
- addr.vna_type = VC_NXA_TYPE_IPV6 | VC_NXA_TYPE_ADDR;
- memcpy(&addr.vna_v6_ip, &i->prefix->address.addr, sizeof(struct in6_addr));
- addr.vna_prefix = i->prefix->prefix.prefix_len;
- if (addr.vna_prefix == 64) {
- addr.vna_v6_mask.s6_addr32[0] = addr.vna_v6_mask.s6_addr32[1] = 0xffffffff;
- addr.vna_v6_mask.s6_addr32[2] = addr.vna_v6_mask.s6_addr32[3] = 0;
- }
- addr.vna_v6_ip.s6_addr[11] = (n->nid & 0x7f80) >> 7;
- addr.vna_v6_ip.s6_addr[12] = (n->nid & 0x007f) << 1;
- if (vc_net_add(n->nid, &addr) == -1) {
- syslog(LOG_ERR, "vc_net_add(%u): %s", n->nid, strerror(errno));
- goto next;
- }
- if (add_address_to_interface(i->prefix->ifindex, &addr.vna_v6_ip, addr.vna_prefix) == -1) {
- syslog(LOG_ERR, "add_address_to_interface: %s", strerror(errno));
- goto next;
- }
- if (add_nid_to_map(map, i->prefix, n->nid) == -1) {
- syslog(LOG_ERR, "add_nid_to_map: %s", strerror(errno));
- goto next;
- }
-next:
- i = i->p.next;
- }
- }
-
- cleanup_nids(map, previous, current);
- previous = current;
-}
-
-/* XXX These two functions are very similar */
-static int add_prefix(struct nid_prefix_map *map, struct prefixmsg *msg,
- struct in6_addr *prefix, struct prefix_cacheinfo *cache)
-{
- struct nid_prefix_map *i = map;
- struct prefix *new;
-
- if (!msg || !prefix || !cache)
- return -1;
- /* XXX IF_PREFIX_AUTOCONF == 0x02 */
- if (!(msg->prefix_flags & 0x02))
- return -1;
-
- do {
- if (i->p.next != NULL)
- i = i->p.next;
- if (ipv6_prefix_equal(prefix, &i->prefix->prefix.addr, msg->prefix_len) ||
- ipv6_prefix_equal(prefix, &i->prefix->address.addr, msg->prefix_len)) {
- i->prefix->mask |= HAS_PREFIX;
- i->prefix->ifindex = msg->prefix_ifindex;
- memcpy(&i->prefix->prefix.addr, prefix, sizeof(*prefix));
- i->prefix->prefix.prefix_len = msg->prefix_len;
- i->prefix->prefix.valid_until = time(NULL) + cache->preferred_time;
- return 0;
- }
- } while (i->p.next && i->nid == 0);
-
- /* not yet in the map */
- new = calloc(1, sizeof(*new));
- if (!new)
- return -1;
- new->mask = HAS_PREFIX;
- memcpy(&new->prefix.addr, prefix, sizeof(*prefix));
- new->prefix.prefix_len = msg->prefix_len;
- new->prefix.valid_until = time(NULL) + cache->preferred_time;
- if (add_prefix_to_map(map, new) == -1)
- return -1;
-
- return 1;
-}
-
-static inline int add_address(struct nid_prefix_map *map, struct ifaddrmsg *msg,
- struct in6_addr *address, struct ifa_cacheinfo *cache)
-{
- struct nid_prefix_map *i = map;
- struct prefix *new;
-
- if (!msg || !address || !cache)
- return -1;
-
- if (address->s6_addr[11] != 0xFF || address->s6_addr[12] != 0xFE)
- return -1;
-
- do {
- if (i->p.next != NULL)
- i = i->p.next;
- if (ipv6_prefix_equal(address, &i->prefix->prefix.addr, msg->ifa_prefixlen) ||
- ipv6_prefix_equal(address, &i->prefix->address.addr, 128)) {
- i->prefix->mask |= HAS_ADDRESS;
- memcpy(&i->prefix->address.addr, address, sizeof(*address));
- i->prefix->address.prefix_len = msg->ifa_prefixlen;
- i->prefix->address.valid_until = time(NULL) + cache->ifa_prefered;
- return 0;
- }
- } while (i->p.next && i->nid == 0);
-
- new = calloc(1, sizeof(*new));
- if (!new)
- return -1;
- new->mask = HAS_ADDRESS;
- memcpy(&new->address.addr, address, sizeof(*address));
- new->address.prefix_len = msg->ifa_prefixlen;
- new->address.valid_until = time(NULL) + cache->ifa_prefered;
- if (add_prefix_to_map(map, new) == -1)
- return -1;
-
- return 1;
-}
-
-static struct nla_policy addr_policy[IFA_MAX+1] = {
- [IFA_ADDRESS] = { .minlen = sizeof(struct in6_addr) },
- [IFA_LABEL] = { .type = NLA_STRING,
- .maxlen = IFNAMSIZ },
- [IFA_CACHEINFO] = { .minlen = sizeof(struct ifa_cacheinfo) },
-};
-static struct nla_policy prefix_policy[PREFIX_MAX+1] = {
- [PREFIX_ADDRESS] = { .minlen = sizeof(struct in6_addr) },
- [PREFIX_CACHEINFO] = { .minlen = sizeof(struct prefix_cacheinfo) },
-};
-int handle_valid_msg(struct nl_msg *msg, void *arg)
-{
- struct nlmsghdr *nlh = nlmsg_hdr(msg);
- int ret = -1;
- char *payload;
- struct sockaddr_nl *source = nlmsg_get_src(msg);
-
- payload = nlmsg_data(nlh);
- if (source->nl_groups == RTMGRP_IPV6_PREFIX) {
- struct prefixmsg *prefixmsg;
- struct in6_addr *prefix = NULL;
- struct prefix_cacheinfo *cacheinfo = NULL;
- struct nlattr *tb[PREFIX_MAX+1];
-
- if (nlmsg_parse(nlh, sizeof(struct prefixmsg), tb, PREFIX_MAX, prefix_policy) < 0) {
- syslog(LOG_ERR, "Failed to parse prefixmsg");
- return -1;
- }
-
- prefixmsg = (struct prefixmsg *) payload;
- if (tb[PREFIX_ADDRESS])
- prefix = nl_data_get(nla_get_data(tb[PREFIX_ADDRESS]));
- if (tb[PREFIX_CACHEINFO])
- cacheinfo = nl_data_get(nla_get_data(tb[PREFIX_CACHEINFO]));
- ret = add_prefix(arg, prefixmsg, prefix, cacheinfo);
- }
- else if (source->nl_groups == RTMGRP_IPV6_IFADDR) {
- struct ifaddrmsg *ifaddrmsg;
- struct in6_addr *address = NULL;
- struct ifa_cacheinfo *cacheinfo = NULL;
- struct nlattr *tb[IFA_MAX+1];
-
- if (nlmsg_parse(nlh, sizeof(struct ifaddrmsg), tb, IFA_MAX, addr_policy) < 0) {
- syslog(LOG_ERR, "Failed to parse ifaddrmsg");
- return -1;
- }
-
- ifaddrmsg = (struct ifaddrmsg *) payload;
- if (tb[IFA_ADDRESS])
- address = nl_data_get(nla_get_data(tb[IFA_ADDRESS]));
- if (tb[IFA_CACHEINFO])
- cacheinfo = nl_data_get(nla_get_data(tb[IFA_CACHEINFO]));
- ret = add_address(arg, ifaddrmsg, address, cacheinfo);
- }
- if (ret >= 0)
- do_slices_autoconf(arg);
-
- return 0;
-}
-
-int handle_error_msg(struct sockaddr_nl *source, struct nlmsgerr *err,
- void *arg)
-{
- syslog(LOG_ERR, "%s", strerror(err->error));
- return 0;
-}
-
-int handle_no_op(struct nl_msg *msg, void *arg)
-{
- return 0;
-}
-
-/* only for access in the signal handler */
-struct nid_prefix_map map = {
- .n = {
- .next = NULL,
- .prev = NULL,
- },
- .p = {
- .next = NULL,
- .prev = NULL,
- },
-};
-void signal_handler(int signal)
-{
- switch (signal) {
- case SIGUSR1:
- do_slices_autoconf(&map);
- break;
- }
-}
-
-static int write_pidfile(const char *filename)
-{
- FILE *fp;
- fp = fopen(filename, "w");
- if (!fp)
- return -1;
- fprintf(fp, "%d\n", getpid());
- fclose(fp);
- return 0;
-}
-
-int main(int argc, char *argv[])
-{
- struct nl_cb *cbs;
-
- openlog("vip6-autod", LOG_PERROR, LOG_DAEMON);
-
- handle = nl_handle_alloc_nondefault(NL_CB_VERBOSE);
- cbs = nl_handle_get_cb(handle);
- nl_cb_set(cbs, NL_CB_VALID, NL_CB_CUSTOM, handle_valid_msg, &map);
- nl_cb_set(cbs, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, handle_no_op, NULL);
- nl_cb_err(cbs, NL_CB_CUSTOM, handle_error_msg, &map);
- nl_disable_sequence_check(handle);
-
- nl_join_groups(handle, RTMGRP_IPV6_PREFIX|RTMGRP_IPV6_IFADDR);
- if (nl_connect(handle, NETLINK_ROUTE) == -1) {
- syslog(LOG_CRIT, "nl_connect: %s", strerror(errno));
- exit(1);
- }
-
- if (daemon(0, 0) == -1)
- return -1;
-
- /* XXX .. here is a hack */
- write_pidfile(DEFAULT_PKGSTATEDIR "/../vip6-autod.pid");
-
- signal(SIGUSR1, signal_handler);
-
- while (nl_recvmsgs(handle, cbs) > 0);
-
- nl_close(handle);
- closelog();
- return 0;
-}
+++ /dev/null
-// $Id: vkill.c 2491 2007-02-05 20:59:03Z dhozac $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "util.h"
-
-#include "lib/virtual.h"
-
-#include <getopt.h>
-#include <signal.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/resource.h>
-#include <sys/wait.h>
-
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x8000
-#define CMD_VERSION 0x8001
-
-int wrapper_exit_code = 1;
-
-static struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "xid", required_argument, 0, 'c' },
- { 0,0,0,0 }
-};
-
-struct Arguments
-{
- xid_t xid;
- int sig;
-};
-
-static char const * const SIGNALS[] = {
- // 0 1 2 3 4 5 6 7
- "UNUSED", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "UNUSED",
- "FPE", "KILL", "USR1", "SEGV", "USR2", "PIPE", "ALRM", "TERM",
- "STKFLT", "CHLD", "CONT", "STOP", "TSTP", "TTIN", "TTOU", "IO",
- "XCPU", "XFSZ", "VTALRM", "PROF", "WINCH",
- 0,
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--xid|-c <xid>] [-s <signal>] [--] <pid>*\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vkill " VERSION " -- sends signals to processes within other contexts\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static int
-str2sig(char const *str)
-{
- char *errptr;
- int res = strtol(str, &errptr, 10);
-
- if (*errptr!='\0') res=-1;
- if (res==-1 && strncmp(str,"SIG",3)==0) str+=3;
- if (res==-1) {
- char const * const *ptr = SIGNALS;
- for (;*ptr!=0; ++ptr) {
- if (strcmp(*ptr,str)!=0) continue;
- res = ptr-SIGNALS;
- break;
- }
- }
-
- return res;
-}
-
-#if defined(VC_ENABLE_API_LEGACY)
-inline static ALWAYSINLINE int
-kill_wrapper_legacy(xid_t UNUSED xid, char const *proc, int UNUSED sig)
-{
- pid_t pid;
-
- signal(SIGCHLD, SIG_DFL);
- pid = Efork();
-
- if (pid==0) {
- int status;
- int res;
- while ((res=wait4(pid, &status, 0,0))==-1 &&
- (errno==EAGAIN || errno==EINTR)) {}
-
- return (res==0 && WIFEXITED(status) && WEXITSTATUS(status)) ? 0 : 1;
- }
-
- execl(LEGACYDIR "/vkill", "legacy/vkill", proc, (void *)(0));
- perror("vkill: execl()");
- exit(1);
-}
-
-static int
-kill_wrapper(xid_t xid, char const *pid, int sig)
-{
- //printf("kill_wrapper(%u, %s, %i)\n", xid, pid, sig);
- if (vc_ctx_kill(xid,atoi(pid),sig)==-1) {
- int err = errno;
- if (vc_get_version(VC_CAT_COMPAT)==-1)
- return kill_wrapper_legacy(xid, pid, sig);
- else {
- errno = err;
- perror("vkill: vc_ctx_kill()");
- return 1;
- }
- }
-
- return 0;
-}
-#else // VC_ENABLE_API_LEGACY
-inline static int
-kill_wrapper(xid_t xid, char const *pid_s, int sig)
-{
- pid_t pid;
- long tmp;
-
- if (!isNumber(pid_s, &tmp, true)) {
- WRITE_MSG(2, "vkill: '");
- WRITE_STR(2, pid_s);
- WRITE_MSG(2, "' is not a number\n");
- }
- pid = (pid_t) tmp;
-
- if (xid==VC_NOCTX)
- xid = vc_get_task_xid(pid);
- if (vc_ctx_kill(xid,pid,sig)==-1) {
- perror("vkill: vc_ctx_kill()");
- return 1;
- }
- return 0;
-}
-#endif
-
-
-int main(int argc, char *argv[])
-{
- int fail = 0;
- struct Arguments args = {
- .xid = VC_NOCTX,
- .sig = SIGTERM,
- };
-
- while (1) {
- int c = getopt_long(argc, argv, "c:s:", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case 'c' : args.xid = Evc_xidopt2xid(optarg,true); break;
- case 's' : args.sig = str2sig(optarg); break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- if (args.sig==-1) {
- WRITE_MSG(2, "Invalid signal specified\n");
- return EXIT_FAILURE;
- }
-
- if (args.xid==VC_NOCTX && optind==argc) {
- WRITE_MSG(2, "No pid specified\n");
- return EXIT_FAILURE;
- }
-
- if (optind==argc)
- fail += kill_wrapper(args.xid, "0", args.sig);
- else for (;optind<argc;++optind)
- fail += kill_wrapper(args.xid, argv[optind], args.sig);
-
- return fail==0 ? EXIT_SUCCESS : EXIT_FAILURE;
-}
-
-#ifdef TESTSUITE
-void
-vkill_test()
-{
- assert(str2sig("0") ==0 );
- assert(str2sig("1") ==1 );
- assert(str2sig("10")==10);
- assert(str2sig("SIGHUP")==1);
- assert(str2sig("HUP") ==1);
- assert(str2sig("SIGCHLD")==17);
- assert(str2sig("CHLD") ==17);
- assert(str2sig("x")==-1);
- assert(str2sig("1 0")==-1);
-
- return 0;
-}
-#endif
+++ /dev/null
-// $Id: vlimit.c 2403 2006-11-24 23:06:08Z dhozac $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- Set the global per context limit of a resource (memory, file handle).
- This utility can do it either for the current context or a selected
- one.
-
- It uses the same options as ulimit, when possible
-*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "compat.h"
-
-#include "vserver.h"
-#include "internal.h"
-#include "util.h"
-
-#include <getopt.h>
-#include <string.h>
-#include <unistd.h>
-#include <assert.h>
-#include <stdbool.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <libgen.h>
-#include <sys/resource.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <sys/stat.h>
-#include <ctype.h>
-
-#define ENSC_WRAPPERS_PREFIX "vlimit: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_XID 0x4000
-#define CMD_DIR 0x8000
-#define CMD_MISSINGOK 0x8001
-
-int wrapper_exit_code = 255;
-
-#ifndef RLIMIT_MSGQUEUE
-# define RLIMIT_MSGQUEUE 12
-#endif
-
-#define NUMLIM(X) \
-{ #X, required_argument, 0, 2048|X }
-#define OPT_RESLIM(RES,V) \
- { #RES, required_argument, 0, 2048|RLIMIT_##V }
-#define OPT_VLIMIT(RES,V) \
- { #RES, required_argument, 0, 2048|VC_VLIMIT_##V }
-
-static struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "all", no_argument, 0, 'a' },
- { "xid", required_argument, 0, CMD_XID },
- { "dir", required_argument, 0, CMD_DIR },
- { "missingok", no_argument, 0, CMD_MISSINGOK },
- NUMLIM( 0), NUMLIM( 1), NUMLIM( 2), NUMLIM( 3),
- NUMLIM( 4), NUMLIM( 5), NUMLIM( 6), NUMLIM( 7),
- NUMLIM( 8), NUMLIM( 9), NUMLIM(10), NUMLIM(11),
- NUMLIM(12), NUMLIM(13), NUMLIM(14), NUMLIM(15),
- NUMLIM(16), NUMLIM(17), NUMLIM(18), NUMLIM(19),
- NUMLIM(20), NUMLIM(21), NUMLIM(22), NUMLIM(23),
- NUMLIM(24), NUMLIM(25), NUMLIM(26), NUMLIM(27),
- NUMLIM(28), NUMLIM(29), NUMLIM(30), NUMLIM(31),
- OPT_RESLIM(cpu, CPU),
- OPT_RESLIM(fsize, FSIZE),
- OPT_RESLIM(data, DATA),
- OPT_RESLIM(stack, STACK),
- OPT_RESLIM(core, CORE),
- OPT_RESLIM(rss, RSS),
- OPT_RESLIM(nproc, NPROC),
- OPT_RESLIM(nofile, NOFILE),
- OPT_RESLIM(memlock, MEMLOCK),
- OPT_RESLIM(as, AS),
- OPT_RESLIM(locks, LOCKS),
- OPT_RESLIM(msgqueue, MSGQUEUE),
- OPT_VLIMIT(nsock, NSOCK),
- OPT_VLIMIT(openfd, OPENFD),
- OPT_VLIMIT(anon, ANON),
- OPT_VLIMIT(shmem, SHMEM),
- OPT_VLIMIT(semary, SEMARY),
- OPT_VLIMIT(nsems, NSEMS),
- OPT_VLIMIT(dentry, DENTRY),
- { 0,0,0,0 }
-};
-
-#define REV_RESLIM(X) [RLIMIT_##X] = #X
-#define REV_VLIMIT(X) [VC_VLIMIT_##X] = #X
-static char const * const LIMIT_STR[] = {
- REV_RESLIM(CPU), REV_RESLIM(FSIZE), REV_RESLIM(DATA), REV_RESLIM(STACK),
- REV_RESLIM(CORE), REV_RESLIM(RSS), REV_RESLIM(NPROC), REV_RESLIM(NOFILE),
- REV_RESLIM(MEMLOCK), REV_RESLIM(AS), REV_RESLIM(LOCKS), REV_RESLIM(MSGQUEUE),
- REV_VLIMIT(NSOCK), REV_VLIMIT(OPENFD), REV_VLIMIT(ANON), REV_VLIMIT(SHMEM),
- REV_VLIMIT(SEMARY), REV_VLIMIT(NSEMS), REV_VLIMIT(DENTRY),
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- VSERVER_DECLARE_CMD(cmd);
-
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--xid|-c <xid>] [-nd] [-a|--all] [[-MSH] --(<resource>|<nr>) <value>]*\n"
- " [--dir <pathname> [--missingok]] [--] [<program> <args>*]\n\n"
- "Options:\n"
- " -c|--xid <xid>\n"
- " ... operate on context <xid>\n"
- " -a|--all ... show all available limits\n"
- " -n ... do not resolve limit-names\n"
- " -d ... show limits in decimal\n"
- " -M ... set Minimum limit\n"
- " -S ... set Soft limit\n"
- " -H ... set Hard limit (assumed by default, when neither\n"
- " M nor S was requested)\n"
- " --dir <pathname>\n"
- " ... read limits from <pathname>/; allowed filenames are\n"
- " <resource> and <resource>.{min,soft,hard}. When a limit\n"
- " was set by the CLI already, the corresponding file\n"
- " will be ignored\n"
- " --missingok ... do not fail when <pathname> does not exist\n"
- " --<resource>|<nr> <value>\n"
- " ... set specified (MSH) limit for <resource> to <value>\n\n"
- "Valid values for resource are cpu, fsize, data, stack, core, rss, nproc,\n"
- "nofile, memlock, as, locks, msgqueue, nsock, openfd, anon, shmem, semary,\n"
- "nsems, and dentry.\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vlimit " VERSION " -- limits context-resources\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static size_t
-fmtHex(char *ptr, vc_limit_t lim)
-{
- memcpy(ptr, "0x", 2);
- return utilvserver_fmt_xuint64(ptr+2, lim) + 2;
-}
-
-static bool do_resolve = true;
-static size_t (*fmt_func)(char *, vc_limit_t) = fmtHex;
-
-static void *
-appendLimit(char *ptr, bool do_it, vc_limit_t lim)
-{
- memcpy(ptr, " ", 2);
- ptr += 2;
- if (do_it) {
- if (lim==VC_LIM_INFINITY) {
- memcpy(ptr, "inf", 3);
- ptr += 3;
- }
- else {
- ptr += (*fmt_func)(ptr, lim);
- *ptr = ' ';
- }
- }
- else {
- memcpy(ptr, "N/A", 3);
- ptr += 3;
- }
-
- return ptr;
-}
-
-static void
-showAll(int ctx)
-{
- struct vc_rlimit_mask mask;
- size_t i;
-
- if (vc_get_rlimit_mask(ctx, &mask)==-1) {
- perror("vc_get_rlimit_mask()");
- exit(wrapper_exit_code);
- }
-
- for (i=0; i<32; ++i) {
- uint32_t bitmask = (1<<i);
- struct vc_rlimit limit;
- char buf[128], *ptr=buf;
-
- if (((mask.min|mask.soft|mask.hard) & bitmask)==0) continue;
- if (vc_get_rlimit(ctx, i, &limit)==-1) {
- perror("vc_get_rlimit()");
- continue;
- }
-
- memset(buf, ' ', sizeof buf);
- if (do_resolve && i<DIM_OF(LIMIT_STR)) {
- size_t l = strlen(LIMIT_STR[i]);
- memcpy(ptr, LIMIT_STR[i], l);
- ptr += l;
- }
- else {
- ptr += utilvserver_fmt_uint(ptr, i);
- *ptr = ' ';
- }
-
- ptr = appendLimit(buf+10, mask.min &bitmask, limit.min);
- ptr = appendLimit(buf+30, mask.soft&bitmask, limit.soft);
- ptr = appendLimit(buf+50, mask.hard&bitmask, limit.hard);
-
- *ptr++ = '\n';
- Vwrite(1, buf, ptr-buf);
- }
-}
-
-static void
-setLimits(int ctx, struct vc_rlimit const limits[], uint32_t mask)
-{
- size_t i;
- for (i=0; i<32; ++i) {
- if ((mask & (1<<i))==0) continue;
- if (vc_set_rlimit(ctx, i, limits+i)) {
- perror("vc_set_rlimit()");
- }
- }
-}
-
-static vc_limit_t
-readValue(int fd, char const *filename)
-{
- char buf[128];
- size_t len = Eread(fd, buf, sizeof(buf)-1);
- vc_limit_t res;
-
- buf[len] = '\0';
-
- if (!vc_parseLimit(buf, &res)) {
- WRITE_MSG(2, "Invalid limit in '");
- WRITE_STR(2, filename);
- WRITE_STR(2, "'\n");
- exit(wrapper_exit_code);
- }
-
- return res;
-}
-
-static bool
-readFile(char const *file, char *base, char const *suffix,
- vc_limit_t *limit)
-{
- int fd;
-
- strcpy(base, suffix);
- fd = open(file, O_RDONLY);
- if (fd!=-1) {
- *limit = readValue(fd, file);
- Eclose(fd);
- }
-
- return fd!=-1;
-}
-
-static void
-readFromDir(struct vc_rlimit limits[32], uint_least32_t *mask,
- char const *pathname, bool missing_ok)
-{
- struct stat st;
- size_t i;
- size_t l_pathname = strlen(pathname);
- char buf[l_pathname + sizeof("/memlock.hard") + 32];
-
- if (stat(pathname, &st)==-1) {
- if (errno==ENOENT && missing_ok) return;
- PERROR_Q("vlimit: fstat", pathname);
- exit(wrapper_exit_code);
- }
-
- memcpy(buf, pathname, l_pathname);
- if (l_pathname>0 && pathname[l_pathname-1]!='/')
- buf[l_pathname++] = '/';
-
- for (i=0; i<DIM_OF(LIMIT_STR); ++i) {
- size_t l_res;
- char * ptr = buf+l_pathname;
-
- // ignore unimplemented limits
- if (LIMIT_STR[i]==0) continue;
-
- // ignore limits set on cli already
- if (*mask & (1<<i)) continue;
-
- l_res = strlen(LIMIT_STR[i]);
- memcpy(ptr, LIMIT_STR[i], l_res+1);
- while (*ptr) {
- *ptr = tolower(*ptr);
- ++ptr;
- }
-
- if (readFile(buf, ptr, "", &limits[i].min)) {
- limits[i].soft = limits[i].hard = limits[i].min;
- *mask |= (1<<i);
- }
-
- if (readFile(buf, ptr, ".min", &limits[i].min))
- *mask |= (1<<i);
-
- if (readFile(buf, ptr, ".soft", &limits[i].soft))
- *mask |= (1<<i);
-
- if (readFile(buf, ptr, ".hard", &limits[i].hard))
- *mask |= (1<<i);
- }
-}
-
-int main (int argc, char *argv[])
-{
- // overall used limits
- uint32_t lim_mask = 0;
- int set_mask = 0;
- struct vc_rlimit limits[32];
- bool show_all = false;
- xid_t ctx = VC_NOCTX;
- char const * dir = 0;
- bool missing_ok = false;
-
- {
- size_t i;
- for (i=0; i<32; ++i) {
- limits[i].min = VC_LIM_KEEP;
- limits[i].soft = VC_LIM_KEEP;
- limits[i].hard = VC_LIM_KEEP;
- }
- }
-
- while (1) {
- int c = getopt_long(argc, argv, "+MSHndac:", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- if (2048<=c && c<2048+32) {
- int id = c-2048;
- vc_limit_t val;
-
- if (!vc_parseLimit(optarg, &val)) {
- WRITE_MSG(2, "Can not parse limit '");
- WRITE_STR(2, optarg);
- WRITE_STR(2, "'\n");
- exit(wrapper_exit_code);
- }
-
- if (set_mask==0) set_mask=4;
-
- if (set_mask & 1) limits[id].min = val;
- if (set_mask & 2) limits[id].soft = val;
- if (set_mask & 4) limits[id].hard = val;
-
- lim_mask |= (1<<id);
- set_mask = 0;
- }
- else switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case 'a' : show_all = true; break;
- case 'n' : do_resolve = false; break;
- case CMD_DIR : dir = optarg; break;
- case CMD_MISSINGOK: missing_ok = true; break;
- case CMD_XID : /*@fallthrough@*/
- case 'c' : ctx = Evc_xidopt2xid(optarg,true); break;
- case 'd' : fmt_func = utilvserver_fmt_uint64; break;
- case 'M' :
- case 'S' :
- case 'H' :
- switch (c) {
- case 'M' : set_mask |= 1; break;
- case 'S' : set_mask |= 2; break;
- case 'H' : set_mask |= 4; break;
- default : assert(false);
- }
- break;
-
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- exit(wrapper_exit_code) ;
- break;
- }
- }
-
- if (ctx==VC_NOCTX)
- ctx = Evc_get_task_xid(0);
-
- if (dir)
- readFromDir(limits, &lim_mask, dir, missing_ok);
-
- setLimits(ctx, limits, lim_mask);
- if (show_all) showAll(ctx);
-
- if (optind<argc)
- EexecvpD(argv[optind], argv+optind);
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: vlogin.c 2525 2007-04-08 00:40:16Z dhozac $
-
-// Copyright (C) 2006 Benedikt Böhm <hollow@gentoo.org>
-// Based on vserver-utils' vlogin program.
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <lib/vserver.h>
-#include <lib/fmt.h>
-
-#include <stdlib.h>
-#include <getopt.h>
-#include <stdint.h>
-#include <string.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <sys/ioctl.h>
-#include <sys/wait.h>
-#include <sys/socket.h>
-#include <termios.h>
-#include <signal.h>
-#include <pty.h>
-#include <fcntl.h>
-
-#define ENSC_WRAPPERS_PREFIX "vlogin: "
-#define ENSC_WRAPPERS_IOCTL 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_SOCKET 1
-#define ENSC_WRAPPERS_IO 1
-#define ENSC_WRAPPERS_TERMIOS 1
-#define ENSC_WRAPPERS_FCNTL 1
-#include <wrappers.h>
-
-struct terminal {
- int fd; /* terminal file descriptor */
- struct termios term; /* terminal settings */
- struct winsize ws; /* terminal size */
- pid_t pid; /* terminal process id */
- struct termios termo; /* original terminal settings */
- enum { TS_RESET, TS_RAW } state; /* terminal state */
-};
-
-static struct terminal t;
-extern int wrapper_exit_code;
-
-/* set terminal to raw mode */
-static void
-terminal_raw(void)
-{
- struct termios buf;
-
- /* save original terminal settings */
- Etcgetattr(STDIN_FILENO, &t.termo);
-
- buf = t.termo;
-
- /* convert terminal settings to raw mode */
- cfmakeraw(&buf);
-
- /* apply raw terminal settings */
- Etcsetattr(STDIN_FILENO, TCSAFLUSH, &buf);
-
- t.state = TS_RAW;
-}
-
-/* reset terminal to original state */
-static void
-terminal_reset(void)
-{
- if (t.state != TS_RAW)
- return;
-
- Etcsetattr(STDIN_FILENO, TCSAFLUSH, &t.termo);
-
- t.state = TS_RESET;
-}
-
-/* send signal to terminal */
-static void
-terminal_kill(int sig)
-{
- pid_t pgrp = -1;
-
- /* try to get process group leader */
- if (ioctl(t.fd, TIOCGPGRP, &pgrp) >= 0 &&
- pgrp != -1 &&
- kill(-pgrp, sig) != -1)
- return;
-
- /* fallback using terminal pid */
- kill(-t.pid, sig);
-}
-
-/* redraw the terminal screen */
-static void
-terminal_redraw(void)
-{
- /* get winsize from stdin */
- if (ioctl(STDIN_FILENO, TIOCGWINSZ, &t.ws) == -1)
- return;
-
- /* set winsize in terminal */
- ioctl(t.fd, TIOCSWINSZ, &t.ws);
-
- /* set winsize change signal to terminal */
- terminal_kill(SIGWINCH);
-}
-
-/* copy terminal activities */
-static ssize_t
-terminal_copy(int src, int dst)
-{
- char buf[64];
- ssize_t len;
-
- /* read terminal activity */
- len = read(src, buf, sizeof(buf));
- if (len == -1 && errno != EINTR) {
- perror("read()");
- terminal_kill(SIGTERM);
- exit(1);
- } else if (len == -1)
- return -1;
-
- /* write activity to user */
- EwriteAll(dst, buf, len);
-
- return len;
-}
-
-/* shuffle all output, and reset the terminal */
-static void
-terminal_end(void)
-{
- char buf[64];
- ssize_t len;
- long options;
-
- options = Efcntl(t.fd, F_GETFL, 0) | O_NONBLOCK;
- Efcntl(t.fd, F_SETFL, options);
- for (;;) {
- len = read(t.fd, buf, sizeof(buf));
- if (len == 0 || len == -1)
- break;
- EwriteAll(STDOUT_FILENO, buf, len);
- }
-
- /* in case atexit hasn't been setup yet */
- terminal_reset();
-}
-
-/* catch signals */
-static void
-signal_handler(int sig)
-{
- int status;
-
- switch(sig) {
- /* catch interrupt */
- case SIGINT:
- terminal_kill(sig);
- break;
-
- /* terminal died */
- case SIGCHLD:
- terminal_end();
- wait(&status);
- exit(WEXITSTATUS(status));
- break;
-
- /* window size has changed */
- case SIGWINCH:
- terminal_redraw();
- break;
-
- default:
- exit(0);
- }
-
-}
-
-void do_vlogin(int argc, char *argv[], int ind)
-{
- int slave;
- pid_t pid;
- int n, i;
- fd_set rfds;
-
- if (!isatty(0) || !isatty(1)) {
- execvp(argv[ind], argv+ind);
- return;
- }
-
- /* set terminal to raw mode */
- terminal_raw();
-
- /* reset terminal to its original mode */
- atexit(terminal_reset);
-
- /* fork new pseudo terminal */
- if (openpty(&t.fd, &slave, NULL, NULL, NULL) == -1) {
- perror(ENSC_WRAPPERS_PREFIX "openpty()");
- exit(EXIT_FAILURE);
- }
-
- /* setup SIGCHLD here, so we're sure to get the signal */
- signal(SIGCHLD, signal_handler);
-
- pid = Efork();
-
- if (pid == 0) {
- /* we don't need the master side of the terminal */
- close(t.fd);
-
- /* login_tty() stupid dietlibc doesn't have it */
- Esetsid();
-
- Eioctl(slave, TIOCSCTTY, NULL);
-
- Edup2(slave, 0);
- Edup2(slave, 1);
- Edup2(slave, 2);
-
- if (slave > 2)
- close(slave);
-
- Eexecvp(argv[ind], argv+ind);
- }
-
- /* setup SIGINT and SIGWINCH here, as they can cause loops in the child */
- signal(SIGWINCH, signal_handler);
- signal(SIGINT, signal_handler);
-
- /* save terminals pid */
- t.pid = pid;
-
- /* set process title for ps */
- n = strlen(argv[0]);
-
- for (i = 0; i < argc; i++)
- memset(argv[i], '\0', strlen(argv[i]));
-
- strncpy(argv[0], "login", n);
-
- /* we want a redraw */
- terminal_redraw();
-
- /* main loop */
- for (;;) {
- /* init file descriptors for select */
- FD_ZERO(&rfds);
- FD_SET(STDIN_FILENO, &rfds);
- FD_SET(t.fd, &rfds);
- n = t.fd;
-
- /* wait for something to happen */
- while (select(n + 1, &rfds, NULL, NULL, NULL) == -1) {
- if (errno == EINTR || errno == EAGAIN)
- continue;
- perror(ENSC_WRAPPERS_PREFIX "select()");
- exit(wrapper_exit_code);
- }
-
- if (FD_ISSET(STDIN_FILENO, &rfds)) {
- /* EOF */
- if (terminal_copy(STDIN_FILENO, t.fd) == 0) {
- terminal_kill(SIGHUP);
- exit(0);
- }
- }
-
- if (FD_ISSET(t.fd, &rfds)) {
- /* EOF */
- if (terminal_copy(t.fd, STDOUT_FILENO) == 0) {
- terminal_kill(SIGHUP);
- exit(0);
- }
- }
- }
-
- /* never get here, signal handler exits */
-}
+++ /dev/null
-// $Id: vnamespace.c 2415 2006-12-08 13:24:49Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <lib_internal/sys_clone.h>
-
-#include <vserver.h>
-
-#include <getopt.h>
-#include <libgen.h>
-#include <errno.h>
-#include <signal.h>
-#include <sched.h>
-
-#define ENSC_WRAPPERS_PREFIX "vnamespace: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-
-int wrapper_exit_code = 255;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "new", no_argument, 0, 'n' },
- { "enter", required_argument, 0, 'e' },
- { "set", no_argument, 0, 's' },
- { "cleanup", no_argument, 0, 'c' },
- {0,0,0,0}
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " <operation> [--] [<program> <args>*]\n"
- "\n"
- "<operation> can be one of:\n"
- " --new|-n ... create new namespace and execute <program> there;\n"
- " <program> is mandatory in this case\n"
- " --enter|-e <xid> ... enter the namespace of context <xid> and execute\n"
- " <program> there; <program> is mandatory in this\n"
- " case\n"
- " --set|-s ... make current namespace the namespace of the\n"
- " current context\n"
- " --cleanup|-c ... remove all mounts from the namespace of the\n"
- " current context\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vnamespace " VERSION " -- manages filesystem-namespace\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-newNamespace(char const *cmd)
-{
- pid_t pid;
-
- signal(SIGCHLD, SIG_DFL);
-
-#ifdef NDEBUG
- pid = sys_clone(CLONE_NEWNS|CLONE_VFORK|SIGCHLD, 0);
-#else
- pid = sys_clone(CLONE_NEWNS|SIGCHLD, 0);
-#endif
-
- switch (pid) {
- case -1 :
- perror("vnamespace: clone()");
- exit(wrapper_exit_code);
- case 0 :
- break;
- default :
- exitLikeProcess(pid, cmd, wrapper_exit_code);
- }
-}
-
-static void
-enterNamespace(xid_t xid, uint_least64_t mask)
-{
- if (vc_enter_namespace(xid, mask)==-1) {
- perror("vnamespace: vc_enter_namespace()");
- exit(255);
- }
-}
-
-static void
-setNamespace(xid_t xid, uint_least64_t mask)
-{
- if (vc_set_namespace(xid, mask)==-1) {
- perror("vnamespace: vc_set_namespace()");
- exit(255);
- }
-}
-
-static void
-cleanupNamespace()
-{
- if (vc_cleanup_namespace()==-1) {
- perror("vnamespace: vc_cleanup_namespace()");
- exit(255);
- }
-}
-
-int main(int argc, char *argv[])
-{
- bool do_new = false;
- bool do_enter = false;
- bool do_set = false;
- bool do_cleanup = false;
- xid_t xid = VC_NOCTX;
- int sum = 0;
-
- while (1) {
- int c = getopt_long(argc, argv, "+nsce:", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case 'n' : do_new = true; break;
- case 's' : do_set = true; break;
- case 'c' : do_cleanup = true; break;
- case 'e' :
- do_enter = true;
- xid = Evc_xidopt2xid(optarg,true);
- break;
-
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return 255;
- break;
- }
- }
-
- sum = ((do_new ? 1 : 0) + (do_enter ? 1 : 0) +
- (do_set ? 1 : 0) + (do_cleanup ? 1 : 0));
-
- if (sum==0)
- WRITE_MSG(2, "No operation was specified; try '--help' for more information\n");
- else if (sum>1)
- WRITE_MSG(2, "Can not specify multiple operations; try '--help' for more information\n");
- else if (optind==argc && (do_new || do_enter))
- WRITE_MSG(2, "No command specified; try '--help' for more information\n");
- else {
- if (do_new) newNamespace(argv[optind]);
- else if (do_set) setNamespace(VC_SAMECTX, CLONE_NEWNS|CLONE_FS);
- else if (do_cleanup) cleanupNamespace();
- else if (do_enter) enterNamespace(xid, CLONE_NEWNS|CLONE_FS);
-
- if (optind<argc)
- EexecvpD(argv[optind], argv+optind);
-
- return EXIT_SUCCESS;
- }
-
- return 255;
-}
+++ /dev/null
-// $Id: vps.c 2396 2006-11-23 23:56:02Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "pathconfig.h"
-
-#include <lib/vserver.h>
-#include <lib/fmt.h>
-#include <assert.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <errno.h>
-
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_STDLIB 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#include <wrappers.h>
-
-#define CTXNR_WIDTH 5
-#define HUNK_SIZE 0x4000
-#define CONTEXT_WIDTH 20
-#define CONTEXT_PLACE " "
-
-int wrapper_exit_code = 254;
-
-struct ContextMapping {
- xid_t ctx;
- char const * id;
-};
-
-static struct ContextMapping *mapping = 0;
-static size_t mapping_len = 0;
-
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " <ps-opts>*\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vps " VERSION " -- shows processes in vserver-contexts\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-
-static size_t
-writeContextInfo(xid_t ctx, char const *name)
-{
- size_t l1 = name==0 ? 0 : strlen(name);
- size_t res = CTXNR_WIDTH + 1;
-
- if (ctx==VC_NOCTX) {
- if (3<CTXNR_WIDTH) Vwrite(1, CONTEXT_PLACE, CTXNR_WIDTH-3);
- Vwrite(1, "ERR ", 4);
- }
- else {
- char buf[sizeof(ctx)*3+1];
- size_t l = utilvserver_fmt_ulong(buf, ctx);
-
- if (l<CTXNR_WIDTH) Vwrite(1, CONTEXT_PLACE, CTXNR_WIDTH-l);
- Vwrite(1, buf, l);
- Vwrite(1, " ", 1);
- }
-
- if (l1!=0) {
- assert(name!=0);
- Vwrite(1, name, l1);
- }
-
- return res+l1;
-}
-
-static xid_t
-extractCtx(char *pid_str)
-{
- pid_t pid;
-
- while (*pid_str==' ') ++pid_str;
- pid = atoi(pid_str);
-
- return vc_get_task_xid(pid);
-}
-
-static char const *
-resolveCtx(xid_t ctx)
-{
- char const * res;
- size_t i;
-
- for (i=0; i<mapping_len; ++i)
- if (mapping[i].ctx==ctx) return mapping[i].id;
-
- ++mapping_len;
- mapping = Erealloc(mapping, mapping_len * sizeof(mapping[0]));
-
- if (ctx==0) res = strdup("MAIN");
- else if (ctx==1) res = strdup("ALL_PROC");
- else {
- vcCfgStyle style = vcCFG_AUTO;
- char *tmp = vc_getVserverByCtx(ctx, &style,0);
- if (tmp) res = vc_getVserverName(tmp, style);
- else res = 0;
- free(tmp);
- }
-
- mapping[mapping_len-1].ctx = ctx;
- mapping[mapping_len-1].id = res;
- return res;
-}
-
-static char *
-readOutput(int fd, size_t *total_len)
-{
- size_t len = 2*HUNK_SIZE;
- char *buf = Emalloc(len+1);
- size_t offset = 0;
-
- for (;;) {
- size_t l;
-
- while (offset >= len) {
- len += HUNK_SIZE;
- buf = Erealloc(buf, len+1);
- }
-
- l = Eread(fd, buf+offset, len - offset);
- if (l==0) break;
-
- offset += l;
- }
-
- buf[offset] = '\0';
-
- if (total_len)
- *total_len = offset;
-
- return buf;
-}
-
-static void
-processOutput(char *data, size_t len)
-{
- size_t pid_end;
- char * eol_pos = strchr(data, '\n');
- char * pos;
-
- if (eol_pos==0) eol_pos = data + len;
- else *eol_pos = '\0';
-
- pos = strstr(data, "PID");
- if (pos==0) {
- WRITE_MSG(2, "Failed to parse ps-output\n");
- exit(wrapper_exit_code);
- }
-
- pid_end = pos-data + 4;
-
- Vwrite(1, data, pid_end);
- Vwrite(1, "CONTEXT" CONTEXT_PLACE, CONTEXT_WIDTH);
- Vwrite(1, data+pid_end, eol_pos-(data+pid_end));
- Vwrite(1, "\n", 1);
-
- len -= eol_pos-data;
- data = eol_pos+1;
-
- while (len > 1) {
- char const *vserver_name = 0;
- xid_t ctx;
- size_t l;
-
- --len;
- eol_pos = strchr(data, '\n');
-
- if (eol_pos==0) eol_pos = data + len;
-
- ctx = extractCtx(data + pid_end - 6);
- vserver_name = resolveCtx(ctx);
-
- Vwrite(1, data, pid_end);
- l = writeContextInfo(ctx, vserver_name);
- if (l<CONTEXT_WIDTH) Vwrite(1, CONTEXT_PLACE, CONTEXT_WIDTH-l);
- else Vwrite(1, " ", 1);
- Vwrite(1, data+pid_end, eol_pos-(data+pid_end));
- Vwrite(1, "\n", 1);
-
- len -= eol_pos-data;
- data = eol_pos+1;
- }
-}
-
-int main(int argc, char *argv[])
-{
- int p[2];
- pid_t pid;
- char * data;
- size_t len;
- char const * errptr;
-
- if (argc>1) {
- if (strcmp(argv[1], "--help") ==0) showHelp(1, argv[0], 0);
- if (strcmp(argv[1], "--version")==0) showVersion();
- }
-
- signal(SIGCHLD, SIG_DFL);
-
- if (!switchToWatchXid(&errptr)) {
- perror(errptr);
- exit(wrapper_exit_code);
- }
-
- if (access("/proc/uptime",R_OK)==-1 && errno==ENOENT)
- WRITE_MSG(2,
- "WARNING: can not access /proc/uptime. Usually, this is caused by\n"
- " procfs-security. Please read the FAQ for more details\n"
- " http://linux-vserver.org/Proc-Security\n");
-
- Epipe(p);
- pid = Efork();
-
- if (pid==0) {
- int fd = Eopen("/dev/null", O_RDONLY, 0);
- Edup2(fd, 0);
- Edup2(p[1], 1);
- Eclose(p[0]);
- Eclose(p[1]);
- Eclose(fd);
-
- argv[0] = "ps";
-
- Eexecv(PS_PROG, argv);
- }
-
- Eclose(p[1]);
- data = readOutput(p[0], &len);
- Eclose(p[0]);
-
- processOutput(data, len);
- exitLikeProcess(pid, "ps", wrapper_exit_code);
-}
+++ /dev/null
-// $Id: vreboot.c 19 2003-09-30 20:16:53Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on vreboot.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- Used to send a reboot message to the reboot manager. It opens /dev/reboot
- and write "reboot\n".
-*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <stdbool.h>
-
-/*
- Connect to a unix domain socket
-*/
-static int vreboot_connect (const char *sockpath, bool showerror)
-{
- int ret = -1;
- int fd = socket (AF_UNIX,SOCK_STREAM,0);
- if (fd == -1){
- if (showerror) perror("socket client");
- }else{
- struct sockaddr_un un;
- int s;
-
- un.sun_family = AF_UNIX;
- strcpy (un.sun_path,sockpath);
- s = connect(fd,(struct sockaddr*)&un,sizeof(un));
- if (s == -1){
- if (showerror) fprintf (stderr,"connect %s (%s)\n"
- ,sockpath,strerror(errno));
- }else{
- ret = fd;
- }
- }
- return ret;
-}
-
-static void usage()
-{
- fprintf (stderr,"vreboot version %s\n",VERSION);
- fprintf (stderr,"\n");
- fprintf (stderr,"vreboot [ --socket path ]\n");
- fprintf (stderr,"vhalt [ --socket path ]\n");
- fprintf (stderr,"vreboot request a reboot or a halt of a virtual server\n");
-}
-
-int main (int argc, char *argv[])
-{
- int ret = -1;
- int i;
- const char *sockpath = "/dev/reboot";
- for (i=1; i<argc; i++){
- const char *arg = argv[i];
- const char *opt = argv[i+1];
- if (strcmp(arg,"--socket")==0){
- sockpath = opt;
- i++;
- }else if (strcmp(arg,"--help")==0){
- break;
-
- }else{
- fprintf (stderr,"Invalid option %s\n",arg);
- break;
- }
- }
- if (argc != i){
- usage();
- }else{
- int fd = vreboot_connect (sockpath,true);
- if (fd != -1){
- if (strstr(argv[0],"halt")!=NULL){
- write (fd,"halt\n",5);
- }else{
- write (fd,"reboot\n",7);
- }
- close (fd);
- ret = 0;
- }
- }
- return ret;
-}
-
+++ /dev/null
-// $Id: vrsetup.c 2403 2006-11-24 23:06:08Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-
-#include <getopt.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <sys/ioctl.h>
-
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_IOCTL 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include <wrappers.h>
-
-int wrapper_exit_code = 1;
-
-
-#define VROOT_SET_DEV 0x5600
-#define VROOT_CLR_DEV 0x5601
-#define VROOT_INC_USE 0x56FE
-#define VROOT_DEC_USE 0x56FF
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, 'h' },
- { "version", no_argument, 0, 'v' },
- { 0,0,0,0 }
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [-dID] <rootdev>\n"
- " or ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " <rootdev> <real-rootdev>\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vrsetup " VERSION " -- set up and control vroot devices\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-
-int main(int argc, char *argv[])
-{
- bool do_delete = false;
- bool do_decrement = false;
- bool do_increment = false;
- bool do_setup = false;
- char const * root_device = 0;
- char const * real_root_device = 0;
- int fd;
-
- while (1) {
- int c = getopt_long(argc, argv, "dID", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case 'h' : showHelp(1, argv[0], 0);
- case 'v' : showVersion();
- case 'd' : do_delete = true; break;
- case 'D' : do_decrement = true; break;
- case 'I' : do_increment = true; break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- do_setup = !(do_delete || do_decrement || do_increment);
-
- if (optind+1>argc) {
- WRITE_MSG(2, "No vroot-device given\n");
- return EXIT_FAILURE;
- }
-
- if (do_setup && optind+2>argc) {
- WRITE_MSG(2, "No real root-device given\n");
- return EXIT_FAILURE;
- }
-
- root_device = argv[optind];
- if (do_setup) real_root_device = argv[optind+1];
-
- fd = EopenD(root_device, O_RDONLY, 0);
- if (do_increment) Eioctl(fd, VROOT_INC_USE, 0);
- else if (do_decrement) Eioctl(fd, VROOT_DEC_USE, 0);
- else if (do_delete) Eioctl(fd, VROOT_CLR_DEV, 0);
- else {
- int dfd = EopenD(real_root_device, O_RDONLY, 0);
- Eioctl(fd, VROOT_SET_DEV, (void*)dfd);
- Eclose(dfd);
- }
-
- Eclose(fd);
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: vsched.c 2510 2007-03-07 20:33:56Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// Copyright (C) 2006 Daniel Hokka Zakrisson <daniel@hozac.com>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include "vserver.h"
-
-#include <errno.h>
-#include <unistd.h>
-#include <getopt.h>
-#include <libgen.h>
-#include <dirent.h>
-#include <fcntl.h>
-#include <sys/stat.h>
-#include <stddef.h>
-
-#define ENSC_WRAPPERS_PREFIX "vsched: "
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_DIRENT 1
-#define ENSC_WRAPPERS_STAT 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_XID 0x4000
-#define CMD_FRATE 0x4001
-#define CMD_INTERVAL 0x4002
-#define CMD_TOKENS 0x4003
-#define CMD_TOK_MIN 0x4004
-#define CMD_TOK_MAX 0x4005
-#define CMD_CPU_MASK 0x4006
-#define CMD_PRIO_BIAS 0x4007
-#define CMD_FRATE2 0x4008
-#define CMD_INTERVAL2 0x4009
-#define CMD_CPUID 0x400a
-#define CMD_BUCKETID 0x400b
-#define CMD_FORCE 0x400c
-#define CMD_IDLE_TIME 0x400d
-#define CMD_DIR 0x400e
-#define CMD_MISSING 0x400f
-
-int wrapper_exit_code = 255;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "ctx", required_argument, 0, CMD_XID },
- { "xid", required_argument, 0, CMD_XID },
- { "fill-rate", required_argument, 0, CMD_FRATE },
- { "interval", required_argument, 0, CMD_INTERVAL },
- { "tokens", required_argument, 0, CMD_TOKENS },
- { "tokens_min", required_argument, 0, CMD_TOK_MIN },
- { "tokens-min", required_argument, 0, CMD_TOK_MIN },
- { "tokens_max", required_argument, 0, CMD_TOK_MAX },
- { "tokens-max", required_argument, 0, CMD_TOK_MAX },
- { "prio_bias", required_argument, 0, CMD_PRIO_BIAS },
- { "prio-bias", required_argument, 0, CMD_PRIO_BIAS },
- { "priority_bias", required_argument, 0, CMD_PRIO_BIAS },
- { "priority-bias", required_argument, 0, CMD_PRIO_BIAS },
- { "cpu_mask", required_argument, 0, CMD_CPU_MASK },
- { "fill-rate2", required_argument, 0, CMD_FRATE2 },
- { "interval2", required_argument, 0, CMD_INTERVAL2 },
- { "cpu-id", required_argument, 0, CMD_CPUID },
- { "bucket-id", required_argument, 0, CMD_BUCKETID },
- { "force", no_argument, 0, CMD_FORCE },
- { "idle-time", no_argument, 0, CMD_IDLE_TIME },
- { "dir", required_argument, 0, CMD_DIR },
- { "missingok", no_argument, 0, CMD_MISSING },
- {0,0,0,0}
-};
-
-struct sched_opt {
- const char * const name;
- uint_least32_t mask;
- size_t offset;
-};
-#define FOPT(NAME,MASK,FIELD) { #NAME, MASK, offsetof(struct vc_set_sched, FIELD) }
-static struct sched_opt FILE_OPTIONS[] = {
- FOPT(fill-rate, VC_VXSM_FILL_RATE, fill_rate),
- FOPT(interval, VC_VXSM_INTERVAL, interval),
- FOPT(tokens, VC_VXSM_TOKENS, tokens),
- FOPT(tokens-min, VC_VXSM_TOKENS_MIN, tokens_min),
- FOPT(tokens-max, VC_VXSM_TOKENS_MAX, tokens_max),
- FOPT(prio-bias, VC_VXSM_PRIO_BIAS, priority_bias),
- FOPT(priority-bias, VC_VXSM_PRIO_BIAS, priority_bias),
- FOPT(fill-rate2, VC_VXSM_FILL_RATE2|VC_VXSM_IDLE_TIME, fill_rate2),
- FOPT(interval2, VC_VXSM_INTERVAL2|VC_VXSM_IDLE_TIME, interval2),
- FOPT(cpu-id, VC_VXSM_CPU_ID, cpu_id),
- FOPT(bucket-id, VC_VXSM_BUCKET_ID, bucket_id),
- FOPT(idle-time, VC_VXSM_IDLE_TIME, set_mask),
- {0,0,0}
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- VSERVER_DECLARE_CMD(cmd);
-
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--xid <xid>] <sched options>* [--dir <dir>] [--] [<command> <args>*]\n"
- "\n"
- "Options:\n"
- " --fill-rate <rate>\n"
- " --interval <interval>\n"
- " --tokens <tokens>\n"
- " --tokens-min <tokens>\n"
- " --tokens-max <tokens>\n"
- " --prio-bias <bias>\n"
- " --fill-rate2 <rate>\n"
- " --interval2 <interval>\n"
- " --cpu-id <CPU id>\n"
- " --bucket-id <bucket id>\n"
- " --idle-time ... set the idle time flag; this is required for\n"
- " all updates to the scheduler to keep it enabled\n"
- " --force ... force update of all per-CPU schedulers now\n"
- " --dir <dir> ... read settings from <dir>\n"
- " --missingok ... do not fail when <dir> does not exist\n"
- "\nPlease report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vsched " VERSION " -- modifies scheduling parameters\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003,2004 Enrico Scholz\n"
- "Copyright (C) 2006 Daniel Hokka Zakrisson\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void do_dir_entry(struct vc_set_sched *sched, const char *name)
-{
- struct sched_opt *opt;
-
- for (opt = FILE_OPTIONS; opt->name != 0; opt++) {
- if (strcmp(name, opt->name) == 0)
- break;
- }
- if (opt->name == 0)
- return;
-
- if (opt->offset != offsetof(struct vc_set_sched, set_mask)) {
- int fd;
- char buf[128], *newline;
- signed long val;
- ssize_t len;
-
- fd = Eopen(name, O_RDONLY, 0);
- len = Eread(fd, buf, sizeof(buf)-1);
- Eclose(fd);
- buf[len] = '\0';
- if ((newline=strchr(buf, '\n')) != NULL)
- *newline = '\0';
-
- if (!isNumber(buf, &val, true)) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX);
- WRITE_STR(2, name);
- WRITE_MSG(2, ": is not a number\n");
- exit(1);
- }
-
- *(int_least32_t *)(((char *)sched)+opt->offset) = (int_least32_t) val;
- }
-
- sched->set_mask |= opt->mask;
-}
-
-static void do_dir(xid_t xid, struct vc_set_sched *sched, const char *dir, int missing_ok, int per_cpu)
-{
- DIR *dp;
- struct dirent *de;
- int cur_fd = Eopen(".", O_RDONLY, 0);
- struct stat st;
-
- if (chdir(dir)!=-1) {
- dp = Eopendir(".");
- while ((de = Ereaddir(dp)) != NULL) {
- if (de->d_name[0] == '.' && (de->d_name[1] == '\0' || (de->d_name[1] == '.' && de->d_name[2] == '\0')))
- continue;
- Estat(de->d_name, &st);
- if (S_ISDIR(st.st_mode))
- continue;
- do_dir_entry(sched, de->d_name);
- }
-
- /* set the values now */
- if (vc_set_sched(xid, sched) == -1) {
- perror(ENSC_WRAPPERS_PREFIX "vc_set_sched()");
- exit(1);
- }
-
- if (!per_cpu) {
- struct vc_set_sched per_cpu_sched;
-
- rewinddir(dp);
- while ((de = Ereaddir(dp)) != NULL) {
- if (de->d_name[0] == '.' && (de->d_name[1] == '\0' || (de->d_name[1] == '.' && de->d_name[2] == '\0')))
- continue;
- Estat(de->d_name, &st);
- if (S_ISDIR(st.st_mode)) {
- per_cpu_sched.set_mask = sched->set_mask & (VC_VXSM_IDLE_TIME|VC_VXSM_FORCE);
- do_dir(xid, &per_cpu_sched, de->d_name, 0, 1);
- }
- }
- }
-
- Eclosedir(dp);
- }
- else if (!missing_ok) {
- perror(ENSC_WRAPPERS_PREFIX "chdir()");
- exit(wrapper_exit_code);
- }
-
- Efchdir(cur_fd);
-}
-
-#define SETVAL(ATTR,MASK) \
- if (!isNumber(optarg, &tmp, false)) { \
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "non-numeric value specified for '--" #ATTR "'\n"); \
- exit(wrapper_exit_code); \
- } \
- else { \
- sched.ATTR = tmp; \
- sched.set_mask |= MASK; \
- }
-
-int main(int argc, char *argv[])
-{
- xid_t xid = VC_NOCTX;
- signed long tmp;
- struct vc_set_sched sched = {
- .set_mask = 0
- };
- const char *dir = NULL;
- int missing_ok = 0;
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_XID : xid = Evc_xidopt2xid(optarg,true); break;
- case CMD_FRATE : SETVAL(fill_rate, VC_VXSM_FILL_RATE); break;
- case CMD_INTERVAL : SETVAL(interval, VC_VXSM_INTERVAL); break;
- case CMD_TOKENS : SETVAL(tokens, VC_VXSM_TOKENS); break;
- case CMD_TOK_MIN : SETVAL(tokens_min, VC_VXSM_TOKENS_MIN); break;
- case CMD_TOK_MAX : SETVAL(tokens_max, VC_VXSM_TOKENS_MAX); break;
- case CMD_PRIO_BIAS: SETVAL(priority_bias, VC_VXSM_PRIO_BIAS); break;
- case CMD_CPU_MASK :
- WRITE_MSG(2, "vsched: WARNING: the '--cpu_mask' parameter is deprecated and will not have any effect\n");
- break;
- case CMD_FRATE2 : SETVAL(fill_rate2, VC_VXSM_FILL_RATE2); break;
- case CMD_INTERVAL2: SETVAL(interval2, VC_VXSM_INTERVAL2); break;
- case CMD_CPUID : SETVAL(cpu_id, VC_VXSM_CPU_ID); break;
- case CMD_BUCKETID : SETVAL(bucket_id, VC_VXSM_BUCKET_ID); break;
- case CMD_DIR : dir = optarg; break;
- case CMD_MISSING : missing_ok = 1; break;
- case CMD_FORCE : sched.set_mask |= VC_VXSM_FORCE; break;
- case CMD_IDLE_TIME: sched.set_mask |= VC_VXSM_IDLE_TIME; break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- if (xid==VC_NOCTX && optind==argc) {
- WRITE_MSG(2, "Without a program, '--xid' must be used; try '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
- if (sched.set_mask==0 && dir==NULL && optind==argc) {
- WRITE_MSG(2, "Neither an option nor a program was specified; try '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
- if (xid==VC_NOCTX)
- xid = Evc_get_task_xid(0);
-
- if (dir) {
- do_dir(xid, &sched, dir, missing_ok, 0);
- }
- else {
- if (sched.set_mask!=0 && vc_set_sched(xid, &sched)==-1) {
- perror("vc_set_sched()");
- exit(255);
- }
- }
-
- if (optind<argc)
- EexecvpD(argv[optind],argv+optind);
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: vserver-info.c 2589 2007-08-16 03:06:50Z dhozac $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "lib/utils-legacy.h"
-#include "pathconfig.h"
-#include "util.h"
-
-#include "internal.h"
-#include "vserver.h"
-
-#include <stdlib.h>
-#include <getopt.h>
-#include <assert.h>
-#include <stdbool.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <sys/utsname.h>
-#include <dirent.h>
-#include <strings.h>
-
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_IO 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include <wrappers.h>
-
-#undef _POSIX_SOURCE
-#include "capability-compat.h"
-
-typedef enum { tgNONE,tgCONTEXT, tgID, tgRUNNING,
- tgVDIR, tgNAME, tgCFGDIR, tgAPPDIR,
- tgAPIVER, tgPXID,
- tgINITPID, tgINITPID_PID,
- tgXID, tgUTS, tgSYSINFO,
- tgFEATURE, tgCANONIFY,
- tgVERIFYCAP, tgXIDTYPE, tgVERIFYPROC,
- tgNID, tgTAG,
-} VserverTag;
-
-static struct {
- char const * const tag;
- VserverTag const val;
- char const * const descr;
-} const TAGS[] = {
- { "CONTEXT", tgCONTEXT, ("the current and/or assigned context; when an optinal argument "
- "evaluates to false,only the current context will be printed") },
- { "ID", tgID, "gives out the vserver-id for the context-xid" },
- { "RUNNING", tgRUNNING, "gives out '1' when vserver is running; else, it fails without output" },
- { "VDIR", tgVDIR, "gives out the root-directory of the vserver" },
- { "NAME", tgNAME, "gives out the name of the vserver" },
- { "CFGDIR", tgCFGDIR, "gives out the configuration directory of the vserver" },
- { "APPDIR", tgAPPDIR, "gives out the name of the toplevel application cfgdir" },
- { "INITPID", tgINITPID, "gives out the initpid of the given context" },
- { "INITPID_PID", tgINITPID_PID, "gives out the initpid of the given pid" },
- { "XID", tgXID, "gives out the context-id of the given pid" },
- { "APIVER", tgAPIVER, "gives out the version of the kernel API" },
- { "UTS", tgUTS, ("gives out an uts-entry; possible entries are "
- "context, sysname, nodename, release, version, "
- "machine and domainname") },
- { "SYSINFO", tgSYSINFO, "gives out information about the systen" },
- { "FEATURE", tgFEATURE, "returns 0 iff the queried feature is supported" },
- { "PXID", tgPXID, "returns the xid of the parent context" },
- { "CANONIFY", tgCANONIFY, "canonifies the vserver-name and removes dangerous characters" },
- { "VERIFYCAP", tgVERIFYCAP, "test if the kernel supports linux capabilities" },
- { "VERIFYPROC", tgVERIFYPROC, "test if /proc can be read by contexts!=0" },
- { "XIDTYPE", tgXIDTYPE, "returns the type of the given XID" },
- { "NID", tgNID, "outputs the network context-id of the given pid" },
- { "TAG", tgTAG, "outputs the filesystem tag of the given pid" },
-};
-
-int wrapper_exit_code = 1;
-
-static struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, 'h' },
- { "version", no_argument, 0, 'v' },
- { 0,0,0,0 }
-};
-
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [-ql] <vserver>|<pid>|<context> <tag>\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vserver-info " VERSION " -- returns information about vservers\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-showTags()
-{
- char const * delim = "";
- size_t i;
-
- WRITE_MSG(1, "Valid tags are: ");
- for (i=0; i<DIM_OF(TAGS); ++i) {
- WRITE_STR(1, delim);
- WRITE_STR(1, TAGS[i].tag);
-
- delim = ", ";
- }
- WRITE_MSG(1, "\n");
- exit(0);
-}
-
-static VserverTag
-stringToTag(char const *str)
-{
- size_t i;
- for (i=0; i<DIM_OF(TAGS); ++i)
- if (strcmp(TAGS[i].tag, str)==0) return TAGS[i].val;
-
- return tgNONE;
-}
-
-static vc_uts_type
-utsText2Tag(char const *str)
-{
- if (strcmp(str, "context") ==0) return vcVHI_CONTEXT;
- else if (strcmp(str, "sysname") ==0) return vcVHI_SYSNAME;
- else if (strcmp(str, "nodename") ==0) return vcVHI_NODENAME;
- else if (strcmp(str, "release") ==0) return vcVHI_RELEASE;
- else if (strcmp(str, "version") ==0) return vcVHI_VERSION;
- else if (strcmp(str, "machine") ==0) return vcVHI_MACHINE;
- else if (strcmp(str, "domainname")==0) return vcVHI_DOMAINNAME;
- else {
- WRITE_MSG(2, "Unknown UTS tag\n");
- exit(1);
- }
-}
-
-static bool
-verifyProc()
-{
- char const *errptr;
-
- if (!switchToWatchXid(&errptr)) {
- perror(errptr);
- return false;
- }
-
- if (access("/proc/uptime", R_OK)==-1) {
- if (errno!=ENOENT)
- perror("access(\"/proc/uptime\")");
-
- return false;
- }
-
- return true;
-}
-
-static bool
-verifyCap()
-{
- struct __user_cap_header_struct header;
- struct __user_cap_data_struct user;
- header.version = _LINUX_CAPABILITY_VERSION;
- header.pid = 0;
-
- if (getuid()!=0) {
- WRITE_MSG(2, "'VERIFYCAP' can be executed as root only\n");
- return false;
- }
-
-// if( prctl( PR_SET_KEEPCAPS, 1,0,0,0 ) < 0 ) {
-// perror( "prctl:" );
-// return false;
-// }
-
- if (capget(&header, &user)==-1) {
- perror("capget()");
- return false;
- }
-
- user.effective = 0;
- user.permitted = 0;
- user.inheritable = 0;
-
- if (capset(&header, &user)==-1) {
- perror("capset()");
- return false;
- }
-
- return chroot("/")==-1;
-}
-
-static char *
-getAPIVer(char *buf)
-{
- int v = vc_get_version();
- size_t l;
-
- if (v==-1) return 0;
-
-
- l = utilvserver_fmt_xulong(0, (unsigned int)v);
- memcpy(buf, "0x00000000", 10);
- utilvserver_fmt_xulong(buf+2+8-l, (unsigned int)v);
-
- return buf;
-}
-
-static inline char *
-getCtxId(char *buf, const char *pid_str, xid_t (*get_id)(pid_t pid), const char *err_str)
-{
- pid_t pid = atoi(pid_str);
- xid_t xid = get_id(pid);
-
- if (xid==VC_NOCTX) perror(err_str);
- else {
- utilvserver_fmt_long(buf, xid);
- return buf;
- }
-
- return 0;
-}
-
-static char *
-getXid(char *buf, char const *pid_str)
-{
- return getCtxId(buf, pid_str, vc_get_task_xid, "vc_get_task_xid()");
-}
-
-static char *
-getNid(char *buf, const char *pid_str)
-{
- return getCtxId(buf, pid_str, vc_get_task_nid, "vc_get_task_nid()");
-}
-
-static char *
-getTag(char *buf, const char *pid_str)
-{
- return getCtxId(buf, pid_str, vc_get_task_tag, "vc_get_task_tag()");
-}
-
-static char *
-getPXid(char UNUSED *buf, char const UNUSED *vserver)
-{
- // TODO: implement me when available
- return 0;
-}
-
-static char *
-getInitPid_native(char *buf, xid_t xid)
-{
- struct vc_vx_info info;
-
- if (vc_get_vx_info(xid, &info)==-1) perror("vc_get_vx_info()");
- else {
- utilvserver_fmt_long(buf, info.initpid);
- return buf;
- }
-
- return 0;
-}
-
-#if defined(VC_ENABLE_API_COMPAT) || defined(VC_ENABLE_API_V11)
-static int
-selectPid(struct dirent const *ent)
-{
- return atoi(ent->d_name)!=0;
-}
-
-static bool
-getInitPid_internal(pid_t pid, xid_t xid, pid_t *res)
-{
- *res = -1;
-
- for (;*res==-1;) {
- size_t bufsize = utilvserver_getProcEntryBufsize();
- char buf[bufsize+1];
- char *pos = 0;
-
- pos = utilvserver_getProcEntry(pid, "\ns_context: ", buf, bufsize);
- if (pos==0 && errno==EAGAIN) continue;
-
- if (pos==0 || (xid_t)atoi(pos)!=xid) return false;
-
- buf[bufsize] = '\0';
- pos = strstr(buf, "\ninitpid: ");
-
- if (pos!=0) {
- pos += sizeof("\ninitpid: ")-1;
- if (strncmp(pos, "none", 4)==0) *res = -1;
- else *res = atoi(pos);
- }
- }
-
- return true;
-}
-
-static char *
-getInitPid_emulated(char *buf, xid_t xid)
-{
- struct dirent **namelist;
- int n;
-
- switchToWatchXid(0); // ignore errors silently...
- n = scandir("/proc", &namelist, selectPid, alphasort);
- if (n<0) perror("scandir()");
- else while (n--) {
- pid_t pid;
- if (!getInitPid_internal(atoi(namelist[n]->d_name), xid, &pid)) continue;
-
- utilvserver_fmt_long(buf, pid);
- return buf;
- }
-
- return 0;
-}
-#else // VC_ENABLE_API_COMPAT
-static char *
-getInitPid_emulated(char UNUSED *buf, xid_t UNUSED xid)
-{
- WRITE_MSG(2, "tools were built without compat API, getInitPid() not available\n");
- return 0;
-}
-#endif // VC_ENABLE_API_COMPAT
-
-static char *
-getInitPid(char *buf, xid_t xid)
-{
- if (vc_isSupported(vcFEATURE_VINFO))
- return getInitPid_native(buf, xid);
- else
- return getInitPid_emulated(buf, xid);
-}
-
-static char *
-getInitPidPid(char *buf, char const *vserver)
-{
- struct vc_vx_info info;
- pid_t pid = atoi(vserver);
- xid_t xid = vc_get_task_xid(pid);
-
- if (xid==VC_NOCTX) perror("vc_get_task_xid()");
- else if (vc_get_vx_info(xid, &info)==-1) perror("vc_get_vx_info()");
- else {
- utilvserver_fmt_long(buf, info.initpid);
- return buf;
- }
-
- return 0;
-}
-
-static char *
-getUTS(char *buf, xid_t xid, size_t argc, char * argv[])
-{
- if (argc>0) {
- vc_uts_type type = utsText2Tag(argv[0]);
- if (vc_get_vhi_name(xid, type, buf, sizeof(buf)-1)==-1)
- perror("vc_get_vhi_name()");
- else
- return buf;
- }
- else {
- bool is_passed = false;
- char tmp[128];
-#define APPEND_UTS(TYPE) \
- (((vc_get_vhi_name(xid, TYPE, tmp, sizeof(tmp)-1)!=-1) && (strcat(buf, tmp), strcat(buf, " "), is_passed=true)) || \
- (strcat(buf, "??? ")))
-
- if (APPEND_UTS(vcVHI_CONTEXT) &&
- APPEND_UTS(vcVHI_SYSNAME) &&
- APPEND_UTS(vcVHI_NODENAME) &&
- APPEND_UTS(vcVHI_RELEASE) &&
- APPEND_UTS(vcVHI_VERSION) &&
- APPEND_UTS(vcVHI_MACHINE) &&
- APPEND_UTS(vcVHI_DOMAINNAME) &&
- is_passed)
- return buf;
-
- perror("vc_get_vhi_name()");
-#undef APPEND_UTS
- }
-
- return 0;
-}
-
-static int
-printSysInfo(char *buf)
-{
- int fd = open(PKGLIBDIR "/FEATURES.txt", O_RDONLY);
- struct utsname uts;
-
- if (uname(&uts)==-1)
- perror("uname()");
- else {
- WRITE_MSG(1,
- "Versions:\n"
- " Kernel: ");
- WRITE_STR(1, uts.release);
- WRITE_MSG(1, "\n"
- " VS-API: ");
-
- memset(buf, 0, 128);
- if (getAPIVer(buf)) WRITE_STR(1, buf);
- else WRITE_MSG(1, "???");
-
- WRITE_MSG(1, "\n"
- " util-vserver: " PACKAGE_VERSION "; " __DATE__ ", " __TIME__"\n"
- "\n");
- }
-
- if (fd==-1)
- WRITE_MSG(1, "FEATURES.txt not found\n");
- else {
- off_t l = Elseek(fd, 0, SEEK_END);
- Elseek(fd, 0, SEEK_SET);
- {
- char buf[l];
- EreadAll(fd, buf, l);
- EwriteAll(1, buf, l);
- }
- Eclose(fd);
- }
-
- return EXIT_SUCCESS;
-}
-
-static char *
-getContext(char *buf, char const *vserver, bool allow_only_static)
-{
- xid_t xid = vc_getVserverCtx(vserver, vcCFG_AUTO,
- allow_only_static, 0, vcCTX_XID);
- if (xid==VC_NOCTX) return 0;
-
- utilvserver_fmt_long(buf, xid);
- return buf;
-}
-
-static char const *
-getXIDType(xid_t xid, int argc, char *argv[])
-{
- char const * tp;
-
- switch (vc_getXIDType(xid)) {
- case vcTYPE_INVALID : tp = "invalid"; break;
- case vcTYPE_MAIN : tp = "main"; break;
- case vcTYPE_WATCH : tp = "watch"; break;
- case vcTYPE_STATIC : tp = "static"; break;
- case vcTYPE_DYNAMIC : tp = "dynamic"; break;
- default : tp = 0; break;
- }
-
- if (argc==0 || tp==0)
- return tp;
-
- while (argc>0) {
- --argc;
- if (strcasecmp(argv[argc], tp)==0) return tp;
- }
-
- return 0;
-}
-
-static int
-testFeature(int argc, char *argv[])
-{
- return (argc>0 && vc_isSupportedString(argv[0])) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
-
-static bool
-str2bool(char const *str)
-{
- return atoi(str)!=0 || strchr("yYtT", str[0])!=0 || strcasecmp("true", str)==0;
-}
-
-static int
-execQuery(char const *vserver, VserverTag tag, int argc, char *argv[])
-{
- char const * res = 0;
- char buf[sizeof(xid_t)*4 + 1024 + strlen(vserver)];
-
- memset(buf, 0, sizeof buf);
- switch (tag) {
- case tgNAME : res = vc_getVserverName(vserver, vcCFG_AUTO); break;
- case tgVDIR :
- res = vc_getVserverVdir(vserver, vcCFG_AUTO, argc>0 && atoi(argv[0]));
- break;
- case tgCFGDIR : res = vc_getVserverCfgDir(vserver, vcCFG_AUTO); break;
- case tgAPPDIR :
- res = vc_getVserverAppDir(vserver, vcCFG_AUTO, argc==0 ? "" : argv[0]);
- break;
-
- case tgRUNNING : {
- signed long xid; // type is a small hack, but should be ok...
- struct vc_vx_info info;
-
- if (isNumber(vserver, &xid, true) && xid>=0)
- res = (vc_get_vx_info(xid, &info)==-1) ? 0 : "1";
- else
- res = (vc_getVserverCtx(vserver, vcCFG_AUTO, false, 0, vcCTX_XID)==VC_NOCTX) ? 0 : "1";
-
- break;
- }
-
- case tgCANONIFY :
- strcpy(buf, vserver);
- if (canonifyVserverName(buf)>0) res = buf;
- break;
-
- case tgCONTEXT : res = getContext(buf, vserver,
- argc==0 || str2bool(argv[0])); break;
- case tgINITPID_PID : res = getInitPidPid(buf, vserver); break;
- case tgAPIVER : res = getAPIVer(buf); break;
- case tgXID : res = getXid(buf, vserver); break;
- case tgPXID : res = getPXid(buf, vserver); break;
- case tgSYSINFO : return printSysInfo(buf); break;
- case tgFEATURE : return testFeature(argc,argv); break;
- case tgVERIFYCAP : return verifyCap() ? 0 : 1; break;
- case tgVERIFYPROC : return verifyProc() ? 0 : 1; break;
- case tgNID : res = getNid(buf, vserver); break;
- case tgTAG : res = getTag(buf, vserver); break;
-
-
- default : {
- xid_t xid = *vserver!='\0' ? vc_xidopt2xid(vserver,true,0) : VC_SAMECTX;
-
- switch (tag) {
- case tgID : res = vc_getVserverByCtx(xid,0,0); break;
- case tgINITPID : res = getInitPid(buf, xid); break;
- case tgUTS : res = getUTS(buf, xid, argc, argv); break;
- case tgXIDTYPE : res = getXIDType(xid, argc, argv); break;
-
- default : assert(false); abort(); // TODO
- }
- }
- }
-
- if (res==0) return EXIT_FAILURE;
- WRITE_STR(1, res);
- WRITE_MSG(1, "\n");
- return EXIT_SUCCESS;
-}
-
-int main(int argc, char *argv[])
-{
- bool quiet = false;
- char const * vserver;
- VserverTag tag;
-
- while (1) {
- int c = getopt_long(argc, argv, "ql", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case 'h' : showHelp(1, argv[0], 0);
- case 'v' : showVersion();
- case 'l' : showTags();
- case 'q' : quiet = true; break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- exit(1);
- break;
- }
- }
-
- if (optind+2>argc) {
- execQuery("-", tgSYSINFO, 0, 0);
- WRITE_MSG(2, "\nAssumed 'SYSINFO' as no other option given; try '--help' for more information.\n");
- exit(0);
- }
-
- vserver = argv[optind];
- tag = stringToTag(argv[optind+1]);
-
- if (tag==tgNONE) {
- WRITE_MSG(2, "Unknown tag; use '-l' to get list of valid tags\n");
- exit(1);
- }
-
- if (quiet) {
- int fd = Eopen("/dev/null", O_WRONLY, 0644);
- Edup2(fd, 1);
- Eclose(fd);
- }
-
- return execQuery(vserver, tag, argc-(optind+2), argv+optind+2);
-}
+++ /dev/null
-// $Id: vserver-stat.c 2450 2007-01-10 19:27:56Z dhozac $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on vserver-stat.cc by Guillaum Dallaire and Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "util.h"
-#include "internal.h"
-
-#include <ensc_vector/vector.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <ctype.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <dirent.h>
-#include <string.h>
-#include <errno.h>
-#include <syscall.h>
-#include <time.h>
-#include <stdbool.h>
-#include <getopt.h>
-#include <sys/param.h>
-#include <sys/resource.h>
-
-#define ENSC_WRAPPERS_DIRENT 1
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_UNISTD 1
-#include "wrappers.h"
-
-#define PROC_DIR_NAME "/proc"
-#define PROC_VIRT_DIR_NAME "/proc/virtual"
-#define CTX_DIR_NAME "/var/run/vservers/"
-#define CTX_NAME_MAX_LEN 50
-
-int wrapper_exit_code = 1;
-
-#ifndef AT_CLKTCK
-#define AT_CLKTCK 17 /* frequency of times() */
-#endif
-
-static unsigned long hertz =0x42;
-static unsigned long pagesize=0x42;
-
-struct XidData
-{
- xid_t xid;
- int process_count;
- int VmSize_total;
- int VmRSS_total;
- uint64_t start_time_oldest;
- uint64_t stime_total, utime_total;
-
- vcCfgStyle cfgstyle;
- char const * name;
-};
-
-struct process_info
-{
- long VmSize; // number of pages of virtual memory
- long VmRSS; // resident set size from /proc/#/stat
- uint64_t start_time; // start time of process -- milliseconds since 1-1-70
- uint64_t stime, utime; // kernel & user-mode CPU time accumulated by process
- uint64_t cstime, cutime; // cumulative time of process and reaped children
- xid_t s_context;
-};
-
-struct ArgInfo {
- enum { tpUNSET, tpCTX, tpPID } type;
- xid_t ctx;
- pid_t pid;
- unsigned int interval;
- bool shutdown;
- bool omit_init;
- size_t argc;
- char * const * argv;
-};
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "sort", required_argument, 0, 'O' },
- {0,0,0,0}
-};
-
-static void
-showHelp(char const *cmd)
-{
- WRITE_MSG(1, "Usage: ");
- WRITE_STR(1, cmd);
- WRITE_MSG(1,
- "\n"
- "Show informations about all the active context.\n\n"
- " CTX# Context number\n"
- " #0 = root context\n"
- " #1 = monitoring context\n"
- " PROC QTY Quantity of processes in each context\n"
- " VSZ Number of pages of virtual memory\n"
- " RSS Resident set size\n"
- " userTIME User-mode CPU time accumulated\n"
- " sysTIME Kernel-mode CPU time accumulated\n"
- " UPTIME Uptime/context\n"
- " NAME Virtual server name\n"
- "\n");
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vserver-stat " VERSION " -- show virtual context statistics\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003,2005 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-
-// return uptime (in ms) from /proc/uptime
-static uint64_t
-getUptime()
-{
- int fd;
- char buffer[64];
- char * errptr;
- size_t len;
- uint64_t secs;
- uint32_t msecs=0;
-
- // open the /proc/uptime file
- fd = EopenD("/proc/uptime", O_RDONLY, 0);
- len = Eread(fd, buffer, sizeof buffer);
-
- if (len==sizeof(buffer)) {
- WRITE_MSG(2, "Too much data in /proc/uptime; aborting...\n");
- exit(1);
- }
- Eclose(fd);
-
- while (len>0 && buffer[len-1]=='\n') --len;
- buffer[len] = '\0';
-
- secs = strtol(buffer, &errptr, 10);
- if (*errptr!='.') errptr = buffer;
- else {
- unsigned int mult;
- switch (strlen(errptr+1)) {
- case 0 : mult = 1000; break;
- case 1 : mult = 100; break;
- case 2 : mult = 10; break;
- case 3 : mult = 1; break;
- default : mult = 0; break;
- }
- msecs = strtol(errptr+1, &errptr, 10) * mult;
- }
-
- if ((*errptr!='\0' && *errptr!=' ') || errptr==buffer) {
- WRITE_MSG(2, "Bad data in /proc/uptime\n");
- exit(1);
- }
-
- return secs*1000 + msecs;
-}
-
-static int
-cmpData(void const *xid_v, void const *map_v)
-{
- xid_t const * const xid = xid_v;
- struct XidData const * const map = map_v;
- int res = *xid - map->xid;
-
- return res;
-}
-
-static void
-registerXid(struct Vector *vec, struct process_info *process)
-{
- struct XidData *res;
-
- res = Vector_search(vec, &process->s_context, cmpData);
- if (res==0) {
- res = Vector_insert(vec, &process->s_context, cmpData);
- res->xid = process->s_context;
- res->process_count = 0;
- res->VmSize_total = 0;
- res->VmRSS_total = 0;
- res->utime_total = 0;
- res->stime_total = 0;
- res->start_time_oldest = process->start_time;
- }
-
- ++res->process_count;
- res->VmSize_total += process->VmSize;
- res->VmRSS_total += process->VmRSS;
- res->utime_total += process->utime + process->cutime;
- res->stime_total += process->stime + process->cstime;
-
- res->start_time_oldest = MIN(res->start_time_oldest, process->start_time);
-}
-
-static void
-registerXidVstat(struct Vector *vec, unsigned long xid_l)
-{
- xid_t xid = (xid_t) xid_l;
- struct XidData *res;
- struct vc_rlimit_stat limit[3];
- struct vc_virt_stat vstat;
- struct vc_sched_info sched;
- int cpu;
-
- res = Vector_search(vec, &xid, cmpData);
- if (res!=0) {
- WRITE_MSG(2, "Duplicate xid found?!\n");
- return;
- }
- if (vc_virt_stat(xid, &vstat) == -1) {
- perror("vc_virt_stat()");
- return;
- }
- if (vc_rlimit_stat(xid, RLIMIT_NPROC, &limit[0]) == -1) {
- perror("vc_rlimit_stat(RLIMIT_NRPOC)");
- return;
- }
- if (vc_rlimit_stat(xid, RLIMIT_AS, &limit[1]) == -1) {
- perror("vc_rlimit_stat(RLIMIT_AS)");
- return;
- }
- if (vc_rlimit_stat(xid, RLIMIT_RSS, &limit[2]) == -1) {
- perror("vc_rlimit_stat(RLIMIT_RSS)");
- return;
- }
-
- res = Vector_insert(vec, &xid, cmpData);
- res->xid = xid;
-
- res->process_count = limit[0].value;
- res->VmSize_total = limit[1].value * pagesize;
- res->VmRSS_total = limit[2].value;
- res->start_time_oldest= getUptime() - vstat.uptime/1000000;
-
- res->utime_total = 0;
- res->stime_total = 0;
- // XXX: arbitrary CPU limit.
- for (cpu = 0; cpu < 1024; cpu++) {
- sched.cpu_id = cpu;
- sched.bucket_id = 0;
- if (vc_sched_info(xid, &sched) == -1)
- break;
-
- res->utime_total += sched.user_msec;
- res->stime_total += sched.sys_msec;
- }
-}
-
-static inline uint64_t
-toMsec(uint64_t v)
-{
- return v*1000llu/hertz;
-}
-
-
-// shamelessly stolen from procps...
-static unsigned long
-find_elf_note(unsigned long findme){
- unsigned long *ep = (unsigned long *)environ;
- while(*ep++);
- while(*ep){
- if(ep[0]==findme) return ep[1];
- ep+=2;
- }
- return (unsigned long)(-1);
-}
-
-static void initHertz() __attribute__((__constructor__));
-static void initPageSize() __attribute__((__constructor__));
-
-static void
-initHertz()
-{
- hertz = find_elf_note(AT_CLKTCK);
- if (hertz==(unsigned long)(-1))
- hertz = sysconf(_SC_CLK_TCK);
-}
-
-static void
-initPageSize()
-{
- pagesize = sysconf(_SC_PAGESIZE);
-}
-
-// open the process's status file to get the ctx number, and other stat
-struct process_info *
-get_process_info(char *pid)
-{
- int fd;
- char buffer[1024];
- char *p;
- size_t idx, l=strlen(pid);
- static struct process_info process;
-
-#if 1
- process.s_context = vc_get_task_xid(atoi(pid));
-#else
-# warning Compiling in debug-code
- process.s_context = random()%6;
-#endif
-
- if (process.s_context==VC_NOCTX) {
- int err=errno;
- WRITE_MSG(2, "vc_get_task_xid(");
- WRITE_STR(2, pid);
- WRITE_MSG(2, "): ");
- WRITE_STR(2, strerror(err));
- WRITE_MSG(2, "\n");
-
- return 0;
- }
-
- memcpy(buffer, "/proc/", 6); idx = 6;
- memcpy(buffer+idx, pid, l); idx += l;
- memcpy(buffer+idx, "/stat", 6);
-
- // open the /proc/#/stat file
- if ((fd = open(buffer, O_RDONLY, 0)) == -1)
- return NULL;
- // put the file in a buffer
- if (read(fd, buffer, sizeof(buffer)) < 1)
- return NULL;
-
- close(fd);
-
- p = strchr(buffer, ')'); // go after the PID (process_name)
- for (idx = 0; idx<12 && *p!='\0'; ++p)
- if ((*p)==' ') ++idx;
-
- process.utime = toMsec(strtol(p, &p, 10));
- process.stime = toMsec(strtol(p+1, &p, 10));
- process.cutime = toMsec(strtol(p+1, &p, 10));
- process.cstime = toMsec(strtol(p+1, &p, 10));
-
- for (idx = 0; idx<5 && *p!='\0'; ++p)
- if ((*p)==' ') ++idx;
-
- process.start_time = toMsec(strtol(p, &p, 10));
- process.VmSize = strtol(p+1, &p, 10);
- process.VmRSS = strtol(p+1, &p, 10);
-
- //printf("pid=%s, start_time=%llu\n", pid, process.start_time);
- return &process;
-}
-
-static size_t
-fillUintZero(char *buf, unsigned long val, size_t cnt)
-{
- size_t l;
-
- l = utilvserver_fmt_ulong(buf, val);
- if (l<cnt) {
- memmove(buf+cnt-l, buf, l);
- memset(buf, '0', cnt-l);
- }
- buf[cnt] = '\0';
-
- return cnt;
-}
-
-static void
-shortenMem(char *buf, unsigned long val)
-{
- char const * SUFFIXES[] = { " ", "K", "M", "G", "T", "+" };
- char tmp[16];
- char const * suffix = "+";
- size_t i, l;
- unsigned int mod = 0;
-
- for (i=0; i<6; ++i) {
- if (val<1000) {
- suffix = SUFFIXES[i];
- break;
- }
- mod = 10*(val & 1023)/1024;
- val >>= 10;
- }
-
- if (val >9999) val=9999;
- if (val>=1000) mod=0;
-
- l = utilvserver_fmt_ulong(tmp, val);
- if (mod!=0) {
- tmp[l++] = '.';
- l += utilvserver_fmt_ulong(tmp+l, mod);
- }
- i = 7-l-strlen(suffix);
-
- memcpy(buf+i, tmp, l);
- memcpy(buf+i+l, suffix, strlen(suffix));
-}
-
-static void
-shortenTime(char *buf, uint64_t t)
-{
- char tmp[32];
- char *ptr = tmp;
-
- unsigned long hh, mm, ss, ms;
-
- ms = t % 1000;
- t /= 1000;
-
- ss = t%60;
- t /= 60;
- mm = t%60;
- t /= 60;
- hh = t%24;
- t /= 24;
-
- if (t>999*999) {
- memcpy(ptr, "INVALID", 7);
- ptr += 7;
- }
- else if (t>999) {
- ptr += utilvserver_fmt_ulong(ptr, t/365);
- *ptr++ = 'y';
- ptr += fillUintZero(ptr, t%365, 2);
- *ptr++ = 'd';
- ptr += fillUintZero(ptr, hh, 2);
- }
- else if (t>0) {
- ptr += utilvserver_fmt_ulong(ptr, t);
- *ptr++ = 'd';
- ptr += fillUintZero(ptr, hh, 2);
- *ptr++ = 'h';
- ptr += fillUintZero(ptr, mm, 2);
- }
- else if (hh>0) {
- ptr += utilvserver_fmt_ulong(ptr, hh);
- *ptr++ = 'h';
- ptr += fillUintZero(ptr, mm, 2);
- *ptr++ = 'm';
- ptr += fillUintZero(ptr, ss, 2);
- }
- else {
- ptr += utilvserver_fmt_ulong(ptr, mm);
- *ptr++ = 'm';
- ptr += fillUintZero(ptr, ss, 2);
- *ptr++ = 's';
- ptr += fillUintZero(ptr, ms, 2);
- }
-
- *ptr = ' ';
- memcpy(buf+10-(ptr-tmp), tmp, ptr-tmp);
-}
-
-static char *
-formatName(char *dst, vcCfgStyle style, char const *name)
-{
- size_t len;
-
- if (name==0) name = "";
- len = strlen(name);
-
- switch (style) {
- case vcCFG_LEGACY :
- len = MIN(len, 18);
- *dst++ = '[';
- memcpy(dst, name, len);
- dst += len;
- *dst++ = ']';
- break;
-
- default :
- len = MIN(len, 20);
- memcpy(dst, name, len);
- dst += len;
- break;
- }
-
- return dst;
-}
-
-static void
-showContexts(struct Vector const *vec)
-{
- uint64_t uptime = getUptime();
- struct XidData const * ptr = Vector_begin_const(vec);
- struct XidData const * const end_ptr = Vector_end_const(vec);
-
-
- WRITE_MSG(1, "CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME\n");
- for (; ptr<end_ptr; ++ptr) {
- char buf[sizeof(xid_t)*3 + 512];
- char tmp[sizeof(int)*3 + 2];
- size_t l;
-
- memset(buf, ' ', sizeof(buf));
- l = utilvserver_fmt_long(buf, ptr->xid);
- l = utilvserver_fmt_long(tmp, ptr->process_count);
- memcpy(buf+10-l, tmp, l);
-
- shortenMem (buf+10, ptr->VmSize_total);
- shortenMem (buf+17, ptr->VmRSS_total*pagesize);
- shortenTime(buf+24, ptr->utime_total);
- shortenTime(buf+34, ptr->stime_total);
- //printf("%llu, %llu\n", uptime, ptr->start_time_oldest);
- shortenTime(buf+44, uptime - ptr->start_time_oldest);
-
- formatName(buf+55, ptr->cfgstyle, ptr->name)[0] = '\0';
-
- Vwrite(1, buf, strlen(buf));
- Vwrite(1, "\n", 1);
- }
-}
-
-static void
-fillName(void *obj_v, void UNUSED * a)
-{
- struct XidData * obj = obj_v;
-
- switch (obj->xid) {
- case 0 :
- obj->cfgstyle = vcCFG_NONE;
- obj->name = strdup("root server");
- break;
-
- case 1 :
- obj->cfgstyle = vcCFG_NONE;
- obj->name = strdup("monitoring server");
- break;
-
- default : {
- char * cfgpath;
-
- obj->cfgstyle = vcCFG_AUTO;
-
- if ((cfgpath = vc_getVserverByCtx(obj->xid, &obj->cfgstyle, 0))==0 ||
- (obj->name = vc_getVserverName(cfgpath, obj->cfgstyle))==0) {
- obj->name = 0;
- obj->cfgstyle = vcCFG_NONE;
- }
-
- free(cfgpath);
-
- break;
- }
- }
-}
-
-static void UNUSED
-freeXidData(void *obj_v, void UNUSED * a)
-{
- struct XidData * obj = obj_v;
-
- free(const_cast(char *)(obj->name));
-}
-
-int main(int argc, char **argv)
-{
- DIR * proc_dir;
- struct dirent* dir_entry;
- pid_t my_pid;
- struct Vector xid_data;
- char const * errptr;
-
- while (1) {
- int c = getopt_long(argc, argv, "+O:", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(argv[0]);
- case CMD_VERSION : showVersion();
- case 'O' : break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- if (optind!=argc) {
- WRITE_MSG(2, "Unknown parameter, use '--help' for more information\n");
- return EXIT_FAILURE;
- }
-
- if (hertz==0x42) initHertz();
- if (pagesize==0x42) initPageSize();
-
- Vector_init(&xid_data, sizeof(struct XidData));
-
- if (vc_isSupported(vcFEATURE_VSTAT)) {
- unsigned long xid;
- Echdir(PROC_VIRT_DIR_NAME);
- proc_dir = Eopendir(".");
- while ((dir_entry = readdir(proc_dir)) != NULL) {
- if (!isNumberUnsigned(dir_entry->d_name, &xid, false))
- continue;
-
- registerXidVstat(&xid_data, xid);
- }
- closedir(proc_dir);
- }
- else {
- my_pid = getpid();
-
- if (!switchToWatchXid(&errptr)) {
- perror(errptr);
- exit(1);
- }
-
- if (access("/proc/uptime",R_OK)==-1 && errno==ENOENT)
- WRITE_MSG(2,
- "WARNING: can not access /proc/uptime. Usually, this is caused by\n"
- " procfs-security. Please read the FAQ for more details\n"
- " http://linux-vserver.org/Proc-Security\n");
-
- Echdir(PROC_DIR_NAME);
- proc_dir = Eopendir(".");
- while ((dir_entry = readdir(proc_dir)) != NULL)
- {
- // select only process file
- if (!isdigit(*dir_entry->d_name))
- continue;
-
- if (atoi(dir_entry->d_name) != my_pid) {
- struct process_info * info = get_process_info(dir_entry->d_name);
- if (info)
- registerXid(&xid_data, info);
- }
- }
- closedir(proc_dir);
- }
-
- Vector_foreach(&xid_data, fillName, 0);
-
- // output the ctx_list
- showContexts(&xid_data);
-
-#ifndef NDEBUG
- Vector_foreach(&xid_data, freeXidData, 0);
- Vector_free(&xid_data);
-#endif
-
- return 0;
-}
+++ /dev/null
-// $Id: vserver-visitdir.hc 934 2004-02-18 04:42:38Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-static uint64_t
-visitDirEntry(struct dirent const *ent);
-
-static uint64_t
-visitDir(char const *name, struct stat const *expected_stat)
-{
- int fd = Eopen(".", O_RDONLY, 0);
- PathInfo old_state = global_info.state;
- PathInfo rhs_path = {
- .d = name,
- .l = strlen(name)
- };
- char new_path[ENSC_PI_APPSZ(global_info.state, rhs_path)];
- DIR * dir;
- uint64_t res = 0;
-
- PathInfo_append(&global_info.state, &rhs_path, new_path);
-
- if (expected_stat!=0)
- EsafeChdir(name, expected_stat);
-
- dir = Eopendir(".");
-
- for (;;) {
- struct dirent *ent = Ereaddir(dir);
- if (ent==0) break;
-
- res += visitDirEntry(ent);
- }
-
- Eclosedir(dir);
-
- Efchdir(fd);
- Eclose(fd);
-
- global_info.state = old_state;
- return res;
-}
+++ /dev/null
-/*
- * Marc E. Fiuczynski <mef@cs.princeton.edu>
- *
- * Copyright (c) 2004 The Trustees of Princeton University (Trustees).
- *
- * vsh is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * vsh 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 Poptop; see the file COPYING. If not, write to the Free
- * Software Foundation, 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "compat.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-#include <limits.h>
-#include <pwd.h>
-#include <unistd.h>
-#include <syscall.h>
-#include <sys/syscall.h>
-#include <asm/unistd.h>
-#include <sys/mount.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/resource.h>
-#include <fcntl.h>
-#include <ctype.h>
-#include <stdarg.h>
-
-//--------------------------------------------------------------------
-#include "vserver.h"
-#include "planetlab.h"
-
-#undef CONFIG_VSERVER_LEGACY
-
-/* Base for all vserver roots for chroot */
-#define VSERVER_ROOT_BASE "/vservers"
-
-/* Change to root:root (before entering new context) */
-static int setuidgid_root()
-{
- if (setgid(0) < 0) {
- PERROR("setgid(0)");
- return -1;
- }
- if (setuid(0) < 0) {
- PERROR("setuid(0)");
- return -1;
- }
- return 0;
-}
-
-static void compute_new_root(char *base, char **root, const struct passwd *pwd)
-{
- int root_len;
-
- root_len =
- strlen(base) + strlen("/") +
- strlen(pwd->pw_name) + NULLBYTE_SIZE;
- (*root) = (char *)malloc(root_len);
- if ((*root) == NULL) {
- PERROR("malloc(%d)", root_len);
- exit(1);
- }
-
- sprintf((*root), "%s/%s", base, pwd->pw_name);
- (*root)[root_len - 1] = '\0';
-}
-
-static int sandbox_chroot(const struct passwd *pwd)
-{
- char *sandbox_root = NULL;
-
- compute_new_root(VSERVER_ROOT_BASE,&sandbox_root, pwd);
- if (chroot(sandbox_root) < 0) {
- PERROR("chroot(%s)", sandbox_root);
- exit(1);
- }
- if (chdir("/") < 0) {
- PERROR("chdir(/)");
- exit(1);
- }
- return 0;
-}
-
-static int sandbox_processes(xid_t ctx, const char *context, const struct passwd *pwd)
-{
-#ifdef CONFIG_VSERVER_LEGACY
- int flags;
-
- flags = 0;
- flags |= 1; /* VX_INFO_LOCK -- cannot request a new vx_id */
- /* flags |= 4; VX_INFO_NPROC -- limit number of procs in a context */
-
- (void) vc_new_s_context(ctx, 0, flags);
-
- /* use legacy dirty hack for capremove */
- if (vc_new_s_context(VC_SAMECTX, vc_get_insecurebcaps(), flags) == VC_NOCTX) {
- PERROR("vc_new_s_context(%u, 0x%16llx, 0x%08x)",
- VC_SAMECTX, vc_get_insecurebcaps(), flags);
- exit(1);
- }
-#else
- int ctx_is_new;
- struct sliver_resources slr;
- char hostname[HOST_NAME_MAX+1];
- pl_get_limits(context,&slr);
-
- if (gethostname(hostname, sizeof hostname) == -1)
- {
- PERROR("gethostname(...)");
- exit(1);
- }
-
- /* check whether the slice has been suspended */
- if (slr.vs_cpu==0)
- {
- fprintf(stderr, "*** %s: %s has zero cpu resources and presumably it has been disabled/suspended ***\n", hostname, context);
- exit(0);
- }
-
- (void) (sandbox_chroot(pwd));
-
- if ((ctx_is_new = pl_chcontext(ctx, ~vc_get_insecurebcaps(),&slr)) < 0)
- {
- PERROR("pl_chcontext(%u)", ctx);
- exit(1);
- }
- if (ctx_is_new)
- {
- fprintf(stderr, " *** %s: %s has not been started yet, please check back later ***\n", hostname, context);
- exit(1);
- }
-#endif
- return 0;
-}
-
-
-void runas_slice_user(struct passwd *pwd)
-{
- char *username = pwd->pw_name;
- char *home_env, *logname_env, *mail_env, *shell_env, *user_env;
- int home_len, logname_len, mail_len, shell_len, user_len;
- static char *envp[10];
-
- if (setgid(pwd->pw_gid) < 0) {
- PERROR("setgid(%d)", pwd->pw_gid);
- exit(1);
- }
-
- if (setuid(pwd->pw_uid) < 0) {
- PERROR("setuid(%d)", pwd->pw_uid);
- exit(1);
- }
-
- if (chdir(pwd->pw_dir) < 0) {
- PERROR("chdir(%s)", pwd->pw_dir);
- exit(1);
- }
-
- home_len = strlen("HOME=") + strlen(pwd->pw_dir) + NULLBYTE_SIZE;
- logname_len = strlen("LOGNAME=") + strlen(username) + NULLBYTE_SIZE;
- mail_len = strlen("MAIL=/var/spool/mail/") + strlen(username)
- + NULLBYTE_SIZE;
- shell_len = strlen("SHELL=") + strlen(pwd->pw_shell) + NULLBYTE_SIZE;
- user_len = strlen("USER=") + strlen(username) + NULLBYTE_SIZE;
-
- home_env = (char *)malloc(home_len);
- logname_env = (char *)malloc(logname_len);
- mail_env = (char *)malloc(mail_len);
- shell_env = (char *)malloc(shell_len);
- user_env = (char *)malloc(user_len);
-
- if ((home_env == NULL) ||
- (logname_env == NULL) ||
- (mail_env == NULL) ||
- (shell_env == NULL) ||
- (user_env == NULL)) {
- PERROR("malloc");
- exit(1);
- }
-
- sprintf(home_env, "HOME=%s", pwd->pw_dir);
- sprintf(logname_env, "LOGNAME=%s", username);
- sprintf(mail_env, "MAIL=/var/spool/mail/%s", username);
- sprintf(shell_env, "SHELL=%s", pwd->pw_shell);
- sprintf(user_env, "USER=%s", username);
-
- home_env[home_len - 1] = '\0';
- logname_env[logname_len - 1] = '\0';
- mail_env[mail_len - 1] = '\0';
- shell_env[shell_len - 1] = '\0';
- user_env[user_len - 1] = '\0';
-
- envp[0] = home_env;
- envp[1] = logname_env;
- envp[2] = mail_env;
- envp[3] = shell_env;
- envp[4] = user_env;
- envp[5] = 0;
-
- if ((putenv(home_env) < 0) ||
- (putenv(logname_env) < 0) ||
- (putenv(mail_env) < 0) ||
- (putenv(shell_env) < 0) ||
- (putenv(user_env) < 0)) {
- PERROR("vserver: putenv error ");
- exit(1);
- }
-}
-
-void slice_enter(struct passwd *pwd)
-{
- if (setuidgid_root() < 0) { /* For chroot, new_s_context */
- fprintf(stderr, "vsh: Could not become root, check that SUID flag is set on binary\n");
- exit(2);
- }
-
-#ifdef CONFIG_VSERVER_LEGACY
- (void) (sandbox_chroot(pwd));
-#endif
-
- if (sandbox_processes((xid_t) pwd->pw_uid, pwd->pw_name, pwd) < 0) {
- fprintf(stderr, "vsh: Could not change context to %d\n", pwd->pw_uid);
- exit(2);
- }
-}
-
-//--------------------------------------------------------------------
-
-#define DEFAULT_SHELL "/bin/sh"
-
-/* Exit statuses for programs like 'env' that exec other programs.
- EXIT_FAILURE might not be 1, so use EXIT_FAIL in such programs. */
-enum
-{
- EXIT_CANNOT_INVOKE = 126,
- EXIT_ENOENT = 127
-};
-
-int main(int argc, char **argv)
-{
- struct passwd pwdd, *result, *prechroot, *postchroot = &pwdd;
- char *context, *username, *shell, *pwdBuffer;
- long pwdBuffer_len;
- uid_t uid;
- int index, i;
-
- if (argv[0][0]=='-')
- index = 1;
- else
- index = 0;
-
- uid = getuid();
- if ((prechroot = getpwuid(uid)) == NULL) {
- PERROR("getpwuid(%d)", uid);
- exit(1);
- }
-
- context = (char*)strdup(prechroot->pw_name);
- if (!context) {
- PERROR("strdup");
- exit(2);
- }
-
- /* enter vserver "context" */
- slice_enter(prechroot);
-
- /* Get the /etc/passwd entry for this user, this time inside
- * the chroot.
- */
- username = context;
-
- pwdBuffer_len = sysconf(_SC_GETPW_R_SIZE_MAX);
- if (pwdBuffer_len == -1) {
- PERROR("sysconf(_SC_GETPW_R_SIZE_MAX");
- exit(1);
- }
- pwdBuffer = (char*)malloc(pwdBuffer_len);
- if (pwdBuffer == NULL) {
- PERROR("malloc(%d)", pwdBuffer_len);
- exit(1);
- }
-
- errno = 0;
- if ((getpwnam_r(username,postchroot,pwdBuffer,pwdBuffer_len, &result) != 0) ||
- (errno != 0) || result != postchroot) {
- PERROR("getpwnam_r(%s)", username);
- exit(1);
- }
-
- /* Now run as username in this context. Note that for PlanetLab's
- vserver configuration the context name also happens to be the
- "default" username within the vserver context.
- */
- runas_slice_user(postchroot);
-
- /* Make sure pw->pw_shell is non-NULL.*/
- if (postchroot->pw_shell == NULL || postchroot->pw_shell[0] == '\0') {
- postchroot->pw_shell = (char *) DEFAULT_SHELL;
- }
-
- shell = (char *)strdup(postchroot->pw_shell);
- if (!shell) {
- PERROR("strdup");
- exit(2);
- }
-
- /* Check whether 'su' or 'sshd' invoked us as a login shell or
- not; did this above when testing argv[0]=='-'.
- */
- argv[0] = shell;
- if (index == 1) {
- char **args;
- args = (char**)malloc(sizeof(char*)*(argc+2));
- if (!args) {
- PERROR("malloc(%d)", sizeof(char*)*(argc+2));
- exit(1);
- }
- args[0] = argv[0];
- args[1] = "-l";
- for(i=1;i<argc+1;i++) {
- args[i+1] = argv[i];
- }
- argv = args;
- }
- (void) execvp(shell,argv);
- {
- int exit_status = (errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE);
- exit (exit_status);
- }
-
- return 0; /* shutup compiler */
-}
+++ /dev/null
-// $Id: vshelper-sync.c 2087 2005-05-05 09:21:21Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-
-#include <stdlib.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <signal.h>
-#include <stdio.h>
-#include <assert.h>
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [--] <pipe> <timeout>\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vshelper-sync " VERSION " -- waits for data from a pipe"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-int main(int argc, char *argv[])
-{
- int fd;
- int idx = 1;
- struct timeval timeout;
-
- if (argc>=2) {
- if (strcmp(argv[1], "--help") ==0) showHelp(1, argv[0], 0);
- if (strcmp(argv[1], "--version")==0) showVersion();
- if (strcmp(argv[1], "--") ==0) ++idx;
- }
-
- if (argc<idx+2) {
- WRITE_MSG(2, "Not enough parameters; use '--help' for more information\n");
- return EXIT_FAILURE;
- }
-
- fd = open(argv[idx], O_RDONLY|O_NONBLOCK, 0);
- if (fd==-1) {
- perror("vshelper-sync: open()");
- return EXIT_FAILURE;
- }
-
- timeout.tv_sec = atoi(argv[idx+1]);
- timeout.tv_usec = 0;
-
- for (;;) {
- char buf[512];
- ssize_t len;
- fd_set fds;
-
- FD_ZERO(&fds);
- FD_SET(fd, &fds);
-
-#ifndef __linux__
-# error vshelper relies on the Linux select() behavior (timeout holds remaining time)
-#endif
-
- switch (select(fd+1, &fds, 0,0, &timeout)) {
- case 0 : return EXIT_FAILURE; // timeout
- case -1 :
- perror("vshelper: select()");
- return EXIT_FAILURE;
- default : break;
- }
-
- assert(FD_ISSET(fd, &fds));
-
- len = read(fd,buf,sizeof buf);
- if (len==0) break;
- if (len==-1) {
- perror("vshelper-sync: read()");
- return EXIT_FAILURE;
- }
- }
-
- return EXIT_SUCCESS;
-}
+++ /dev/null
-// $Id: vsysctl.c 2466 2007-01-21 08:02:44Z dhozac $ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-#include <lib/internal.h>
-
-#include <vserver.h>
-
-#include <stdio.h>
-#include <getopt.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <string.h>
-#include <dirent.h>
-
-#define ENSC_WRAPPERS_PREFIX "vsysctl: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_DIRENT 1
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_IO 1
-#include <wrappers.h>
-
-
-#define PROC_SYS_DIRECTORY "/proc/sys"
-
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_XID 0x4000
-#define CMD_DIR 0x4001
-#define CMD_MISSINGOK 0x4002
-
-int wrapper_exit_code = 1;
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "xid", required_argument, 0, CMD_XID },
- { "dir", required_argument, 0, CMD_DIR },
- { "missingok", no_argument, 0, CMD_MISSINGOK },
- {0,0,0,0}
-};
-
-static void
-showHelp(int fd, char const *cmd)
-{
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --xid <xid> --dir <directory> [--missingok] -- <command> <args>*\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vsysctl " VERSION " -- sets sysctl values during guest boot\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2007 Daniel Hokka Zakrisson\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-void handle_setting(const char *dir, const char *name)
-{
- int len_dir = strlen(dir), len_name = strlen(name);
- char filename[len_dir+1+len_name+sizeof("/setting")];
- char setting[128], value[128], *ptr;
- int fd;
- size_t setting_len, value_len;
-
- strcpy(filename, dir);
- *(filename+len_dir) = '/';
- strcpy(filename+len_dir+1, name);
-
-#define READFILE(f) \
- strcpy(filename+len_dir+1+len_name, "/" #f); \
- fd = EopenD(filename, O_RDONLY, 0); \
- f##_len = Eread(fd, f, sizeof(f)); \
- if (f##_len == sizeof(f)) { \
- errno = EOVERFLOW; \
- perror(ENSC_WRAPPERS_PREFIX "read"); \
- exit(EXIT_FAILURE); \
- } \
- f[f##_len] = '\0'; \
- Eclose(fd);
-
- READFILE(setting);
- READFILE(value);
-
- /* replace all . with / in setting to get a filename */
- for (ptr = strchr(setting, '.'); ptr; ptr = strchr(ptr, '.'))
- *ptr = '/';
-
- /* we just want the first line, and not the linefeed */
- if ((ptr = strchr(setting, '\n')) != NULL)
- *ptr = '\0';
-
- fd = EopenD(setting, O_WRONLY, 0);
- EwriteAll(fd, value, value_len);
- Eclose(fd);
-}
-
-int main(int argc, char *argv[])
-{
- xid_t xid = VC_NOCTX;
- const char *dir = NULL;
- bool missing = false;
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0]);
- case CMD_VERSION : showVersion();
- case CMD_XID : xid = Evc_xidopt2xid(optarg, true); break;
- case CMD_DIR : dir = optarg; break;
- case CMD_MISSINGOK: missing = true; break;
-
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- if (dir != NULL) {
- int curdir = EopenD(".", O_RDONLY, 0);
- DIR *dp;
- struct dirent *de;
-
- Echdir(PROC_SYS_DIRECTORY);
-
- dp = opendir(dir);
- if (dp != NULL) {
- while ((de = Ereaddir(dp)) != NULL) {
- if (*de->d_name == '.')
- continue;
- handle_setting(dir, de->d_name);
- }
- Eclosedir(dp);
- }
- else if (!missing) {
- perror(ENSC_WRAPPERS_PREFIX "opendir");
- exit(wrapper_exit_code);
- }
-
- Efchdir(curdir);
- }
-
- Eexecvp(argv[optind], argv+optind);
- return EXIT_FAILURE;
-}
+++ /dev/null
-// $Id$ --*- c -*--
-
-// Copyright (C) 2007 Daniel Hokka Zakrisson
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "util.h"
-
-#include <vserver.h>
-#include <getopt.h>
-#include <errno.h>
-#include <sys/types.h>
-
-
-#define ENSC_WRAPPERS_PREFIX "vtag: "
-#define ENSC_WRAPPERS_VSERVER 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_TAG 0x4000
-#define CMD_CREATE 0x4001
-#define CMD_MIGRATE 0x4002
-#define CMD_SILENTEXIST 0x4003
-#define CMD_SILENT 0x4004
-
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "tag", required_argument, 0, CMD_TAG },
- { "create", no_argument, 0, CMD_CREATE },
- { "migrate", no_argument, 0, CMD_MIGRATE },
- { "silent", no_argument, 0, CMD_SILENT },
- { "silentexist", no_argument, 0, CMD_SILENTEXIST },
- { 0,0,0,0 },
-};
-
-struct Arguments {
- bool do_create;
- bool do_migrate;
- bool is_silentexist;
- int verbosity;
- tag_t tag;
-};
-
-int wrapper_exit_code = 255;
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " (--create|--migrate) --tag <tag> <opts>* [--] <program> <args>*\n "
- "\n"
- "<opts> can be:\n"
- " --silentexist ... be silent when context exists already; useful\n"
- " for '--create' only\n"
- " --silent ... if the feature is not supported, just execute\n"
- " <program>\n"
- "\n"
- "'vtag --create' exits with code 254 iff the context exists already.\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vtag " VERSION " -- sets the process's filesystem tag\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2007 Daniel Hokka Zakrisson\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static inline ALWAYSINLINE int
-doit(struct Arguments const *args, char *argv[])
-{
- tag_t tag;
-
- if (!vc_isSupported(vcFEATURE_PPTAG)) {
- if (args->verbosity >= 1) {
- errno = ENOSYS;
- perror(ENSC_WRAPPERS_PREFIX);
- return wrapper_exit_code;
- }
- else
- goto exec;
- }
-
- if (args->do_create) {
- tag = vc_tag_create(args->tag);
- if (tag==VC_NOCTX) {
- switch (errno) {
- case EEXIST :
- if (!args->is_silentexist)
- perror(ENSC_WRAPPERS_PREFIX "vc_tag_create()");
- return 254;
- default :
- perror(ENSC_WRAPPERS_PREFIX "vc_tag_create()");
- return wrapper_exit_code;
- }
- }
- }
- else
- tag = args->tag;
-
- if (args->do_migrate)
- Evc_tag_migrate(tag);
-
-exec:
- execvp(argv[optind], argv+optind);
-
- PERROR_Q(ENSC_WRAPPERS_PREFIX "execvp", argv[optind]);
- return wrapper_exit_code;
-}
-
-int main (int argc, char *argv[])
-{
- struct Arguments args = {
- .tag = VC_NOCTX,
- .do_create = false,
- .do_migrate = false,
- .is_silentexist = false,
- .verbosity = 1,
- };
-
- while (1) {
- int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_CREATE : args.do_create = true; break;
- case CMD_MIGRATE : args.do_migrate = true; break;
- case CMD_SILENTEXIST : args.is_silentexist = true; break;
- case CMD_TAG : args.tag = Evc_tagopt2tag(optarg,true); break;
- case CMD_SILENT : args.verbosity--; break;
-
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return wrapper_exit_code;
- break;
- }
- }
-
- if (!args.do_create && !args.do_migrate)
- WRITE_MSG(2, "Neither '--create' nor '--migrate' specified; try '--help' for more information\n");
- else if (args.do_create && args.do_migrate)
- WRITE_MSG(2, "Can not specify '--create' and '--migrate' at the same time; try '--help' for more information\n");
- else if (args.tag==VC_NOCTX)
- WRITE_MSG(2, "You must specify the tag with '--tag'; try '--help' for more information\n");
- else if (optind>=argc)
- WRITE_MSG(2, "No command given; use '--help' for more information.\n");
- else
- return doit(&args, argv);
-
- return wrapper_exit_code;
-}
+++ /dev/null
-// $Id: vuname.c 2403 2006-11-24 23:06:08Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-#include "util.h"
-
-#include <getopt.h>
-#include <stdlib.h>
-#include <assert.h>
-#include <stdio.h>
-#include <libgen.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <ctype.h>
-#include <strings.h>
-
-#define ENSC_WRAPPERS_PREFIX "vuname: "
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_IO 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x1000
-#define CMD_VERSION 0x1001
-#define CMD_DIR 0x4007
-#define CMD_MISSINGOK 0x4008
-
-int wrapper_exit_code = 255;
-
-static vc_uts_type const UTS_MAPPING[7] = {
- vcVHI_CONTEXT, vcVHI_SYSNAME, vcVHI_NODENAME,
- vcVHI_RELEASE, vcVHI_VERSION, vcVHI_MACHINE,
- vcVHI_DOMAINNAME };
-
-#define DECL(UTS) [vcVHI_ ## UTS] = #UTS
-static char const * const UTS_STRINGS[] = {
- DECL(CONTEXT), DECL(SYSNAME), DECL(NODENAME),
- DECL(RELEASE), DECL(VERSION), DECL(MACHINE),
- DECL(DOMAINNAME)
-};
-
-struct Tag {
- bool is_set;
- char const * value;
-};
-
-struct Arguments {
- struct Tag tags[DIM_OF(UTS_MAPPING)];
- xid_t xid;
- bool do_set;
- char const * dir;
- bool is_missingok;
-};
-
-static struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "xid", required_argument, 0, 'x' },
- { "set", no_argument, 0, 's' },
- { "get", no_argument, 0, 'g' },
- { "dir", required_argument, 0, CMD_DIR },
- { "missingok", no_argument, 0, CMD_MISSINGOK },
- { 0,0,0,0 }
-};
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- VSERVER_DECLARE_CMD(cmd);
-
- WRITE_MSG(fd, "Usage: ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [-g] --xid <xid> <TAG>*\n"
- " or ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " -s --xid <xid> -t <TAG>=<VALUE> [--] [<command> <args>*]\n"
- " or ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --dir <dir> --xid <xid> [--missingok] [--] [<command> <args>*]\n\n"
- " Options:\n"
- " -g ... get and print the value\n"
- " -s ... set the value\n\n"
- " --xid <xid> ... operate on this context; 'self' means the current one\n"
- " -t <TAG>=<VALUE>\n"
- " ... set <TAG> to <VALUE>; this option can be repeated multiple time\n"
- " --dir <dir> ... read values from files in <dir>. These files must\n"
- " have a valid TAG as their name\n"
- " --missingok ... do not fail when the <DIR> from '--dir' does not exist.\n"
- "\n"
- " Possible values for TAG are:\n"
- " context, sysname, nodename, release, version, machine, domainname\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vuname " VERSION " -- modifies and shows uname entries of vserver contexts\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-setFromDir(char const *pathname, bool is_missingok, xid_t xid)
-{
- struct stat st;
- size_t i;
- size_t l_pathname = strlen(pathname);
- char buf[l_pathname + sizeof("/domainname") + 32];
-
- if (stat(pathname, &st)==-1) {
- if (errno==ENOENT && is_missingok) return;
- PERROR_Q(ENSC_WRAPPERS_PREFIX "fstat", pathname);
- exit(wrapper_exit_code);
- }
-
- memcpy(buf, pathname, l_pathname);
- if (l_pathname>0 && pathname[l_pathname-1]!='/')
- buf[l_pathname++] = '/';
-
- for (i=0; i<DIM_OF(UTS_STRINGS); ++i) {
- char * ptr = buf+l_pathname;
- int fd;
-
- // ignore unimplemented uts-names
- if (UTS_STRINGS[i]==0) continue;
- strcpy(ptr, UTS_STRINGS[i]);
- for (;*ptr;++ptr) *ptr = tolower(*ptr);
- fd = open(buf, O_RDONLY);
- if (fd!=-1) {
- size_t l = Elseek(fd, 0, SEEK_END);
- char name[l+1];
- Elseek(fd,0,SEEK_SET);
- EreadAll(fd, name, l);
- while (l>0 && name[l-1]=='\n') --l;
- name[l] = '\0';
- Eclose(fd);
-
- if (vc_set_vhi_name(xid, (vc_uts_type)(i), name, l)==-1) {
- PERROR_U(ENSC_WRAPPERS_PREFIX "vc_set_vhi_name", UTS_STRINGS[i]);
- exit(wrapper_exit_code);
- }
- }
- }
-}
-
-static size_t
-findUtsIdx(char const *str, size_t len)
-{
- size_t i;
- for (i=0; i<DIM_OF(UTS_STRINGS); ++i)
- if (UTS_STRINGS[i]!=0 && strncasecmp(UTS_STRINGS[i], str, len)==0)
- return i;
-
- WRITE_MSG(2, "Tag '");
- Vwrite (2, str, len);
- WRITE_STR(2, "' not recognized\n");
- exit(wrapper_exit_code);
-}
-
-static void
-registerValue(char const *str, struct Tag tags[DIM_OF(UTS_MAPPING)])
-{
- char const * ptr = strchr(str, '=');
- size_t idx;
-
- if (ptr==0) ptr = str + strlen(str);
- assert(*ptr=='=' || *ptr=='\0');
-
- idx = findUtsIdx(str, ptr-str);
-
- if (*ptr=='=') ++ptr;
- tags[idx].is_set = true;
- tags[idx].value = ptr;
-}
-
-static void
-printUtsValue(xid_t xid, int val)
-{
- char buf[128];
- if (vc_get_vhi_name(xid, val, buf, sizeof(buf)-1)==-1)
- WRITE_MSG(1, "???");
- else
- WRITE_STR(1, buf);
-
-}
-
-int main(int argc, char *argv[])
-{
- struct Arguments args = {
- .tags = { [0] = {false,0} },
- .do_set = false,
- .dir = 0,
- .is_missingok= false,
- .xid = VC_NOCTX,
- };
- size_t i;
-
- assert(DIM_OF(UTS_MAPPING) == DIM_OF(args.tags));
-
- while (1) {
- int c = getopt_long(argc, argv, "+gst:", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_DIR : args.dir = optarg; break;
- case CMD_MISSINGOK: args.is_missingok = true; break;
- case 'g' : args.do_set = false; break;
- case 's' : args.do_set = true; break;
- case 'x' : args.xid = Evc_xidopt2xid(optarg,true); break;
- case 't' : registerValue(optarg, args.tags); break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- if (args.xid==VC_NOCTX) {
- WRITE_MSG(2, "No context specified; try '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
- if (args.dir)
- setFromDir(args.dir, args.is_missingok, args.xid);
- else if (args.do_set) {
- for (i=0; i<DIM_OF(args.tags); ++i) {
- if (!args.tags[i].is_set) continue;
- Evc_set_vhi_name(args.xid, i, args.tags[i].value, strlen(args.tags[i].value));
- }
- }
- else if (optind==argc) {
- char const * delim = "";
- for (i=0; i<DIM_OF(UTS_MAPPING); ++i) {
- WRITE_STR(1, delim);
- printUtsValue(args.xid, i);
- delim = " ";
- }
- WRITE_MSG(1, "\n");
-
- return EXIT_SUCCESS;
- }
- else {
- char const * delim = "";
- while (optind <argc) {
- int idx = findUtsIdx(argv[optind], strlen(argv[optind]));
- WRITE_STR(1, delim);
- printUtsValue(args.xid, idx);
- delim = " ";
-
- ++optind;
- }
- WRITE_MSG(1, "\n");
-
- return EXIT_SUCCESS;
- }
-
- if (optind<argc)
- EexecvpD(argv[optind], argv+optind);
-
- return wrapper_exit_code;
-}
+++ /dev/null
-// $Id: vunify-init.hc 1921 2005-03-18 00:24:27Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#include "pathconfig.h"
-
-static void
-initModeManually(struct Arguments const UNUSED *args, int argc, char *argv[])
-{
- int i, count=argc/2;
-
- if (argc%2) {
- WRITE_MSG(2, "Odd number of (path,excludelist) arguments\n");
- exit(1);
- }
-
- if (count<2) {
- WRITE_MSG(2, "No reference path(s) given\n");
- exit(1);
- }
-
- MatchList_initManually(&global_info.dst_list, 0, strdup(argv[0]), argv[1]);
-
- --count;
- global_info.src_lists.v = Emalloc(sizeof(struct MatchList) * count);
- global_info.src_lists.l = count;
-
- for (i=0; i<count; ++i)
- MatchList_initManually(global_info.src_lists.v+i, 0,
- strdup(argv[2 + i*2]), argv[3 + i*2]);
-}
-
-
-static void
-initModeVserver(struct Arguments const UNUSED *args, int argc, char *argv[])
-{
- struct MatchVserverInfo vserver = {
- .name = argv[0],
- .use_pkgmgmt = true
- };
-
- if (!MatchVserverInfo_init(&vserver)) {
- WRITE_MSG(2, "Failed to initialize unification for this vserver\n");
- exit(1);
- }
-
- if (argc!=1) {
- WRITE_MSG(2, "More than one vserver is not supported\n");
- exit(1);
- }
-
- if (!MatchList_initByVserver(&global_info.dst_list, &vserver)) {
- WRITE_MSG(2, "unification not configured for this vserver\n");
- exit(1);
- }
-
- MatchList_initRefserverList(&global_info.src_lists.v,
- &global_info.src_lists.l,
- vserver.appdir.d);
-
- MatchVserverInfo_free(&vserver);
-}
+++ /dev/null
-// $Id: vunify.c 2403 2006-11-24 23:06:08Z dhozac $ --*- c -*--
-
-// Copyright (C) 2003,2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vunify.h"
-#include "util.h"
-
-#include "lib_internal/unify.h"
-#include "lib_internal/matchlist.h"
-#include "lib_internal/util-dotfile.h"
-#include "lib_internal/util-safechdir.h"
-#include <lib/vserver.h>
-
-#include <getopt.h>
-#include <dirent.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <stdbool.h>
-#include <errno.h>
-#include <wait.h>
-#include <fcntl.h>
-#include <assert.h>
-
-#define ENSC_WRAPPERS_IO 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_DIRENT 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_STDLIB 1
-#include <wrappers.h>
-
-int wrapper_exit_code = 1;
-
-
-#define CMD_HELP 0x8000
-#define CMD_VERSION 0x8001
-#define CMD_MANUALLY 0x8002
-
-struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "manually", no_argument, 0, CMD_MANUALLY },
- { 0,0,0,0 }
-};
-
-static struct WalkdownInfo global_info;
-static struct SkipReason skip_reason;
-static struct Arguments const * global_args;
-
-int Global_getVerbosity() {
- return global_args->verbosity;
-}
-
-bool Global_doRenew() {
- return global_args->do_renew;
-}
-
-static void
-showHelp(int fd, char const *cmd, int res)
-{
- WRITE_MSG(fd, "Usage:\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " [-Rnv] <vserver>\n or\n ");
- WRITE_STR(fd, cmd);
- WRITE_MSG(fd,
- " --manually [-Rnvx] [--] <path> <excludelist> [<path> <excludelist>]+\n\n"
- " --manually ... unify generic paths; excludelists must be generated\n"
- " manually\n"
- " -R ... revert operation; deunify files\n"
- " -n ... do not modify anything; just show what there will be\n"
- " done (in combination with '-v')\n"
- " -v ... verbose mode\n"
- " -x ... do not cross filesystems; this is valid in manual\n"
- " mode only and will be ignored for vserver unification\n\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
-#if 0
- " -C ... use cached excludelists; usually they will be\n"
- " regenerated after package installation to reflect e.g.\n"
- " added/removed configuration files\n\n"
-#endif
- exit(res);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vunify " VERSION " -- unifies vservers and/or directories\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2003,2004 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-// Returns 'false' iff one of the files is not existing, or of the files are different/not unifyable
-static bool
-checkFstat(struct MatchList const * const mlist,
- PathInfo const * const basename,
- PathInfo const * const path,
- struct stat const ** const dst_fstat, struct stat * const dst_fstat_buf,
- struct stat * const src_fstat)
-{
- assert(basename->d[0] != '/');
-
- if (*dst_fstat==0) {
- // local file does not exist... strange
- // TODO: message
- skip_reason.r = rsFSTAT;
- if (lstat(basename->d, dst_fstat_buf)==-1) return false;
- *dst_fstat = dst_fstat_buf;
- }
-
- assert(*dst_fstat!=0);
-
-
- PathInfo src_path = mlist->root;
- char src_path_buf[ENSC_PI_APPSZ(src_path, *path)];
-
- PathInfo_append(&src_path, path, src_path_buf);
-
- // source file does not exist
- skip_reason.r = rsNOEXISTS;
- if (lstat(src_path.d, src_fstat)==-1) return false;
-
- // these are directories; this succeeds everytime
- if (S_ISDIR((*dst_fstat)->st_mode) && S_ISDIR(src_fstat->st_mode)) return true;
-
- // both files are different, so return false
- skip_reason.r = rsDIFFERENT;
- if ((!global_args->do_revert && !Unify_isUnifyable(*dst_fstat, src_fstat)) ||
- ( global_args->do_revert && !Unify_isUnified (*dst_fstat, src_fstat)))
- return false;
-
- // these are the same files
- return true;
-}
-
-static struct MatchList const *
-checkDirEntry(PathInfo const *path,
- PathInfo const *d_path, bool *is_dir,
- struct stat *src_stat, struct stat *dst_stat)
-{
- struct WalkdownInfo const * const info = &global_info;
- struct MatchList const * mlist;
- struct stat const * cache_stat;
-
- // Check if it is in the exclude/include list of the destination vserver and
- // abort when it is not matching an allowed entry
- skip_reason.r = rsEXCL_DST;
- skip_reason.d.list = &info->dst_list;
- if (MatchList_compare(&info->dst_list, path->d)!=stINCLUDE) return 0;
-
- // Now, go through the reference vservers and do the lightweigt list-check
- // first and compare then the fstat's.
- for (mlist=info->src_lists.v; mlist<info->src_lists.v+info->src_lists.l; ++mlist) {
- cache_stat = 0;
- skip_reason.r = rsEXCL_SRC;
- skip_reason.d.list = mlist;
- if (MatchList_compare(mlist, path->d)==stINCLUDE &&
- checkFstat(mlist, d_path, path, &cache_stat, dst_stat, src_stat)) {
-
- // Failed the check or is it a symlink which can not be handled
- if (cache_stat==0) return 0;
-
- skip_reason.r = rsSYMLINK;
- if (S_ISLNK(dst_stat->st_mode)) return 0;
-
- skip_reason.r = rsSPECIAL;
- if (!S_ISREG(dst_stat->st_mode) &&
- !S_ISDIR(dst_stat->st_mode)) return 0;
-
- *is_dir = S_ISDIR(dst_stat->st_mode);
- return mlist;
- }
- else if (cache_stat!=0 && !global_args->do_revert &&
- skip_reason.r == rsDIFFERENT &&
- Unify_isUnified(cache_stat, src_stat)) {
- skip_reason.r = rsUNIFIED;
- skip_reason.d.list = mlist;
- return 0;
- }
- }
-
- // No luck...
- return 0;
-}
-
-static bool
-updateSkipDepth(PathInfo const *path, bool walk_down)
-{
- struct WalkdownInfo const * const info = &global_info;
- struct MatchList * mlist;
- bool result = false;
-
- for (mlist=info->src_lists.v; mlist<info->src_lists.v+info->src_lists.l; ++mlist) {
- // The easy way... this path is being skipped already
- if (mlist->skip_depth>0) {
- if (walk_down) ++mlist->skip_depth;
- else --mlist->skip_depth;
- continue;
- }
- else if (walk_down) {
- PathInfo src_path = mlist->root;
- char src_path_buf[ENSC_PI_APPSZ(src_path, *path)];
- struct stat src_fstat;
-
- PathInfo_append(&src_path, path, src_path_buf);
-
- // when the file/dir exist, we have do go deeper.
- // else skip it in deeper runs for *this* matchlist
- if (lstat(src_path.d, &src_fstat)!=-1) result = true;
- else ++mlist->skip_depth;
- }
- else {
- // TODO: warning
- }
- }
-
- return result;
-}
-
-static bool
-doit(struct MatchList const *mlist,
- PathInfo const *src_path, struct stat const *src_stat,
- char const *dst_path, struct stat const UNUSED *dst_stat)
-{
- PathInfo path = mlist->root;
- char path_buf[ENSC_PI_APPSZ(path, *src_path)];
-
- if (global_args->do_dry_run || Global_getVerbosity()>=2) {
- if (global_args->do_revert) WRITE_MSG(1, "deunifying '");
- else WRITE_MSG(1, "unifying '");
-
- Vwrite(1, src_path->d, src_path->l);
- WRITE_MSG(1, "'");
-
- if (Global_getVerbosity()>=4) {
- WRITE_MSG(1, " (from ");
- if (Global_getVerbosity()==4 && mlist->id.d)
- Vwrite(1, mlist->id.d, mlist->id.l);
- else
- Vwrite(1, mlist->root.d, mlist->root.l);
- WRITE_MSG(1, ")");
- }
- WRITE_MSG(1, "\n");
- }
-
- PathInfo_append(&path, src_path, path_buf);
- return (global_args->do_dry_run ||
- (!global_args->do_revert && Unify_unify (path.d, src_stat, dst_path, false)) ||
- ( global_args->do_revert && Unify_deUnify(dst_path)));
-}
-
-
-static void
-printSkipReason()
-{
- WRITE_MSG(1, " (");
- switch (skip_reason.r) {
- case rsDOTFILE : WRITE_MSG(1, "dotfile"); break;
- case rsEXCL_DST :
- case rsEXCL_SRC :
- WRITE_MSG(1, "excluded by ");
- MatchList_printId(skip_reason.d.list, 1);
- break;
- case rsFSTAT : WRITE_MSG(1, "fstat error"); break;
- case rsNOEXISTS : WRITE_MSG(1, "does not exist in refserver(s)"); break;
- case rsSYMLINK : WRITE_MSG(1, "symlink"); break;
- case rsSPECIAL : WRITE_MSG(1, "non regular file"); break;
- case rsUNIFIED : WRITE_MSG(1, "already unified"); break;
- case rsDIFFERENT : WRITE_MSG(1, "different"); break;
- default : assert(false); abort();
- }
- WRITE_MSG(1, ")");
-}
-
-#include "vserver-visitdir.hc"
-
-static uint64_t
-visitDirEntry(struct dirent const *ent)
-{
- bool is_dir;
- struct MatchList const * match;
- struct stat f_stat = { .st_dev = 0 };
- char const * dirname = ent->d_name;
- PathInfo path = global_info.state;
- PathInfo d_path = {
- .d = dirname,
- .l = strlen(dirname)
- };
- char path_buf[ENSC_PI_APPSZ(path, d_path)];
- bool is_dotfile;
- struct stat src_stat;
- uint64_t res = 1;
-
- PathInfo_append(&path, &d_path, path_buf);
-
- is_dotfile = isDotfile(dirname);
- skip_reason.r = rsDOTFILE;
-
- if (is_dotfile ||
- (match=checkDirEntry(&path, &d_path, &is_dir, &src_stat, &f_stat))==0) {
- bool is_link = is_dotfile ? false : S_ISLNK(f_stat.st_mode);
-
- if (Global_getVerbosity()>=1 &&
- (Global_getVerbosity()>=3 || skip_reason.r!=rsUNIFIED) &&
- ((!is_dotfile && !is_link) ||
- (Global_getVerbosity()>=6 && is_dotfile) ||
- (Global_getVerbosity()>=6 && is_link)) ) {
- WRITE_MSG(1, " skipping '");
- Vwrite(1, path.d, path.l);
- WRITE_MSG(1, "'");
- if (Global_getVerbosity()>=2) printSkipReason();
- WRITE_MSG(1, "\n");
- }
- return 0;
- }
-
- if (is_dir) {
- if (updateSkipDepth(&path, true)) {
- res = visitDir(dirname, &f_stat);
- updateSkipDepth(&path, false);
- }
- else
- res = 0;
- }
- else if (!doit(match, &path, &src_stat, dirname, &f_stat)) {
- // TODO: message
- }
- else
- res = 0;
-
- return res;
-}
-
-#include "vunify-init.hc"
-
-int main(int argc, char *argv[])
-{
- struct Arguments args = {
- .mode = mdVSERVER,
- .do_revert = false,
- .do_dry_run = false,
- .verbosity = 0,
- .local_fs = false,
- .do_renew = true,
- };
-
- global_args = &args;
- while (1) {
- int c = getopt_long(argc, argv, "Rnvcx",
- CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(1, argv[0], 0);
- case CMD_VERSION : showVersion();
- case CMD_MANUALLY : args.mode = mdMANUALLY; break;
- case 'R' : args.do_revert = true; break;
- case 'n' : args.do_dry_run = true; break;
- case 'x' : args.local_fs = true; break;
- //case 'C' : args.do_renew = false; break;
- case 'v' : ++args.verbosity; break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- if (argc==optind) {
- WRITE_MSG(2, "No directory/vserver given\n");
- return EXIT_FAILURE;
- }
-
- switch (args.mode) {
- case mdMANUALLY : initModeManually(&args, argc-optind, argv+optind); break;
- case mdVSERVER : initModeVserver (&args, argc-optind, argv+optind); break;
- default : assert(false); return EXIT_FAILURE;
- }
-
- global_info.state.d = "";
- global_info.state.l = 0;
-
-
- if (Global_getVerbosity()>=1) WRITE_MSG(1, "Starting to traverse directories...\n");
- Echdir(global_info.dst_list.root.d);
- visitDir("/", 0);
-
-#ifndef NDEBUG
- {
- size_t i;
- MatchList_destroy(&global_info.dst_list);
- for (i=0; i<global_info.src_lists.l; ++i)
- MatchList_destroy(global_info.src_lists.v+i);
-
- free(global_info.src_lists.v);
- }
-#endif
-}
+++ /dev/null
-// $Id: vunify.h 1926 2005-03-18 03:56:06Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_SRC_VUNIFY_H
-#define H_UTIL_VSERVER_SRC_VUNIFY_H
-
-#include "lib_internal/matchlist.h"
-
-#include <sys/stat.h>
-
-struct dirent;
-struct WalkdownInfo
-{
- PathInfo state;
- struct MatchList dst_list;
- struct {
- struct MatchList * v;
- size_t l;
- } src_lists;
-};
-
-struct SkipReason {
- enum { rsDOTFILE, rsEXCL_DST, rsEXCL_SRC,
- rsFSTAT, rsNOEXISTS, rsSYMLINK, rsUNIFIED,
- rsSPECIAL, rsDIFFERENT } r;
-
- union {
- struct MatchList const * list;
- } d;
-};
-
-struct Arguments {
- enum {mdMANUALLY, mdVSERVER} mode;
- bool do_revert;
- bool do_dry_run;
- unsigned int verbosity;
- bool local_fs;
- bool do_renew;
-};
-
-static bool checkFstat(struct MatchList const * const,
- PathInfo const * const,
- PathInfo const * const,
- struct stat const ** const, struct stat * const,
- struct stat *) NONNULL((1,2,3,4,5,6));
-
-static struct MatchList const *
-checkDirEntry(PathInfo const *,
- PathInfo const *,
- bool *, struct stat *, struct stat *) NONNULL((1,2,3,4,5));
-
-static bool updateSkipDepth(PathInfo const *, bool) NONNULL((1));
-static bool doit(struct MatchList const *,
- PathInfo const *, struct stat const *,
- char const *dst_path, struct stat const *) NONNULL((1,2,3));
-
-#endif // H_UTIL_VSERVER_SRC_VUNIFY_H
+++ /dev/null
-// $Id: vwait.c 2403 2006-11-24 23:06:08Z dhozac $ --*- c -*--
-
-// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "lib/vserver.h"
-#include "lib/internal.h"
-#include "util.h"
-
-#include <getopt.h>
-#include <signal.h>
-#include <time.h>
-#include <errno.h>
-#include <libgen.h>
-#include <assert.h>
-
-#define ENSC_WRAPPERS_PREFIX "vwait: "
-#define ENSC_WRAPPERS_STDLIB 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_VSERVER 1
-#include <wrappers.h>
-
-#define CMD_HELP 0x8000
-#define CMD_VERSION 0x8001
-
-#define CMD_TIMEOUT 0x4000
-#define CMD_TERMINATE 0x4001
-#define CMD_STATUS_FD 0x4002
-
-static struct option const
-CMDLINE_OPTIONS[] = {
- { "help", no_argument, 0, CMD_HELP },
- { "version", no_argument, 0, CMD_VERSION },
- { "timeout", required_argument, 0, CMD_TIMEOUT },
- { "terminate", no_argument, 0, CMD_TERMINATE },
- { "status-fd", required_argument, 0, CMD_STATUS_FD },
- { 0,0,0,0 }
-};
-
-int wrapper_exit_code = 1;
-static sig_atomic_t aborted = 0;
-
-struct StatusType {
- enum {stERROR, stFINISHED, stKILLED,
- stTIMEOUT} status;
- int rc;
-};
-
-struct Arguments
-{
- xid_t xid;
- int timeout;
- int status_fd;
- bool do_terminate;
-};
-
-static void
-showHelp(char const *cmd)
-{
- VSERVER_DECLARE_CMD(cmd);
-
- WRITE_MSG(1, "Usage: ");
- WRITE_STR(1, cmd);
- WRITE_STR(1,
- " [--timeout <timeout>] [--terminate] [--status-fd <fd>] [--] <xid>\n"
- "\n"
- "Please report bugs to " PACKAGE_BUGREPORT "\n");
- exit(0);
-}
-
-static void
-showVersion()
-{
- WRITE_MSG(1,
- "vwait " VERSION " -- waits for a context to finish\n"
- "This program is part of " PACKAGE_STRING "\n\n"
- "Copyright (C) 2005 Enrico Scholz\n"
- VERSION_COPYRIGHT_DISCLAIMER);
- exit(0);
-}
-
-static void
-handler(int UNUSED num)
-{
- aborted = 1;
-}
-
-static struct StatusType
-doit(struct Arguments const *args)
-{
- time_t end_time = 0, now = 0;
- struct StatusType res;
-
- if (args->timeout>0) {
- end_time = time(0) + args->timeout;
- siginterrupt(SIGALRM, 1);
- signal(SIGALRM, handler);
- alarm(args->timeout);
- }
-
- for (;;) {
- res.rc = vc_wait_exit(args->xid);
-
- if (res.rc==-1 && errno!=EAGAIN && errno!=EINTR) {
- // the error-case
- res.rc = errno;
- res.status = stERROR;
- perror(ENSC_WRAPPERS_PREFIX "vc_wait_exit()");
- }
- else if (res.rc==-1 && args->timeout>0 && (now=time(0))>=end_time) {
- // an EINTR or EAGAIN signal was delivered, a timeout was set and
- // reached
- if (!args->do_terminate)
- res.status = stTIMEOUT;
- else {
- vc_ctx_kill(args->xid, 1, 9);
- vc_ctx_kill(args->xid, 0, 9);
- res.status = stKILLED;
- }
- }
- else if (res.rc==-1) {
- // an EINTR or EAGAIN signal was delivered but the timeout not set or
- // not reached yet
-
- // we are here, when args->timeout==0 or 'now' was initialized (and
- // compared with 'end_time'). So, 'now' can be used below.
- assert(args->timeout<=0 || (now < end_time));
-
- if (args->timeout>0) // (re)set the alarm-clock
- alarm(end_time-now);
-
- continue;
- }
- else
- // vc_wait_exit(2) finished successfully
- res.status = stFINISHED;
-
- break;
- }
-
- alarm(0);
- return res;
-}
-
-static void
-writeStatus(int fd, char const *str, int const *rc, int exit_code)
-{
- if (fd==-1) exit(exit_code);
-
- WRITE_STR(fd, str);
- if (rc) {
- char buf[sizeof(*rc)*3 + 2];
- size_t len = utilvserver_fmt_long(buf, *rc);
- WRITE_MSG(fd, " ");
- Vwrite (fd, buf, len);
- }
- WRITE_MSG(fd, "\n");
-
- exit(exit_code);
-}
-
-int main(int argc, char *argv[])
-{
- struct StatusType res;
- struct Arguments args = {
- .xid = VC_NOCTX,
- .timeout = -1,
- .status_fd = -1,
- .do_terminate = false,
- };
-
- while (1) {
- int c = getopt_long(argc, argv, "c:", CMDLINE_OPTIONS, 0);
- if (c==-1) break;
-
- switch (c) {
- case CMD_HELP : showHelp(argv[0]);
- case CMD_VERSION : showVersion();
- case CMD_TERMINATE : args.do_terminate = true; break;
- case CMD_TIMEOUT : args.timeout = atoi(optarg); break;
- case CMD_STATUS_FD : args.status_fd = atoi(optarg); break;
- default :
- WRITE_MSG(2, "Try '");
- WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help' for more information.\n");
- return EXIT_FAILURE;
- break;
- }
- }
-
- if (optind+1 > argc) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "no context specified; try '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
- if (optind+1 < argc) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "can not wait for more than one context; try '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
- args.xid = Evc_xidopt2xid(argv[optind], true);
-
- if (args.xid==VC_NOCTX) {
- WRITE_MSG(2, ENSC_WRAPPERS_PREFIX "invalid context specified; try '--help' for more information\n");
- exit(wrapper_exit_code);
- }
-
- res = doit(&args);
-
- switch (res.status) {
- case stERROR : writeStatus(args.status_fd, "ERROR", &res.rc, 127);
- case stFINISHED : writeStatus(args.status_fd, "FINISHED", &res.rc, 0);
- case stKILLED : writeStatus(args.status_fd, "KILLED", 0, 1);
- case stTIMEOUT : writeStatus(args.status_fd, "TIMEOUT", 0, 2);
- default : writeStatus(args.status_fd, "???", &res.rc, 126);
- }
-}
+++ /dev/null
-## $Id: Makefile-files 2483 2007-02-01 12:56:20Z dhozac $ -*- makefile -*-
-
-## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-AM_INSTALLCHECK_STD_OPTIONS_EXEMPT += \
- $(sysv_src_SCRPTS) \
- $(sysv_gen_SCRPTS)
-
-sysv_src_SCRPTS = sysv/rebootmgr \
- sysv/vprocunhide \
- sysv/vservers-default \
- sysv/vservers-legacy \
- sysv/util-vserver \
- sysv/vip6-autod
-sysv_gen_SCRPTS = sysv/v_gated \
- sysv/v_httpd \
- sysv/v_named \
- sysv/v_portmap \
- sysv/v_sendmail \
- sysv/v_smb \
- sysv/v_sshd \
- sysv/v_xinetd
-sysv_conf_DTA = sysv/vservers.conf
-
-EXTRA_DIST += sysv/v_gated.subst \
- sysv/v_httpd.subst \
- sysv/v_named.subst \
- sysv/v_portmap.subst \
- sysv/v_sendmail.subst \
- sysv/v_smb.subst \
- sysv/v_sshd.subst \
- sysv/v_xinetd.subst \
- $(sysv_src_SCRPTS) \
- $(sysv_conf_DTA)
-
-if HAVE_SYSV_INIT
-sysconf_DATA += $(sysv_conf_DTA)
-initrd_SCRIPTS += $(sysv_src_SCRPTS) \
- $(sysv_gen_SCRPTS)
-endif
-
-CLEANFILES += $(sysv_gen_SCRPTS)
-
-sysv_SUBSTRULE = s!/usr/lib/util-vserver!$(pkglibdir)!g; \
- s!^USR_SBIN=/usr/sbin$$!USR_SBIN=$(sbindir)!g; \
- s!^DEFAULT_VSERVERDIR=/vservers$$!DEFAULT_VSERVERDIR=$(vserverdir)!g
-
-sysv/%: sysv/%.subst
- @mkdir -p $$(dirname '$@')
- sed -e '$(sysv_SUBSTRULE)' '$<' >'$@.tmp'
- @rm -f '$@'
- @if cmp -s '$<' '$@.tmp'; then \
- cp -p '$<' '$@'; \
- else \
- mv -f '$@.tmp' '$@'; \
- fi
- @rm -f '$@.tmp'
- @chmod a-w '$@'
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 98 02
-# description: The rebootmgr service is monitoring all virtual servers \
-# and restart them as need. Virtual servers are using \
-# the /sbin/vreboot command to talk with the reboot manager
-# processname: rebootmgr
-# config: /etc/vservers
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-PIDFILE=/var/run/rebootmgr.pid
-# See how we were called.
-case "$1" in
- start)
- echo "Starting the reboot manager"
- cd $__CONFDIR
- VSERVERS=
- for serv in *.conf
- do
- test -f "$serv" || continue
-
- serv=`basename $serv .conf`
- if [ -d $__DEFAULT_VSERVERDIR/$serv ] ; then
- VSERVERS="$VSERVERS $serv"
- fi
- done
- $_REBOOTMGR --pidfile $PIDFILE $VSERVERS &
- touch /var/lock/subsys/rebootmgr
- ;;
- stop)
- echo "Stopping the reboot manager"
- kill `cat $PIDFILE`
- rm -f /var/lock/subsys/rebootmgr
- rm -f $PIDFILE
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- reload)
- echo Not implemented
- ;;
- status)
- if [ -f $PIDFILE ] ; then
- if kill -0 `cat $PIDFILE`
- then
- echo rebootmgr is running
- else
- echo rebootmgr is NOT running
- fi
- fi
- ;;
- *)
- echo "Usage: rebootmgr {start|stop|restart|reload|status}"
- exit 1
-esac
-
-exit 0
-
-
-
-
-
+++ /dev/null
-#!/bin/bash
-#
-# util-vserver sets the path to vshelper and kills all guest processes
-#
-# chkconfig: 2345 10 90
-# description: Sets the path to vshelper and kills all guest processes
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-LOCKFILE=util-vserver
-. "$_LIB_VSERVER_INIT_FUNCTIONS"
-. "$_LIB_FUNCTIONS"
-. "$__PKGLIBDIR/vserver.functions"
-
-
-function set_helper()
-{
- local f="/proc/sys/kernel/vshelper"
- if test -e "$f"; then
- echo "$_VSHELPER" > "$f"
- return 0
- else
- return 2
- fi
-}
-
-function kill_contexts()
-{
- local xid
- for xid in `ls -1 /proc/virtual`; do
- test "$xid" = "info" -o "$xid" = "status" && continue
- $_VATTRIBUTE --xid $xid --set --flag ~persistent
- $_VKILL --xid $xid -s 15
- sleep 3
- $_VKILL --xid $xid -s 9
- done
- local alive=0
- for xid in `ls -1 /proc/virtual`; do
- test "$xid" = "info" -o "$xid" = "status" && continue
- let alive+=1
- done
- test $alive = 0
-}
-
-function create_dirs()
-{
- $_MKDIR -p "$__RUNDIR" && $_MKDIR -p "$__VSHELPERSTATEDIR" && $_MKDIR -p `getPhysicalDir "$__PKGSTATEREVDIR"`
-}
-
-function start()
-{
- _beginResult $"Creating required directories"
- create_dirs
- _endResult $?
- _beginResult $"Setting path to vshelper"
- set_helper
- _endResult $?
- local retval=$?
- _beginResult $"Loading default device map"
- loadDeviceMap 0 "$__CONFDIR/.defaults/apps/vdevmap"
- _endResult $?
- test "$retval" -ne 0 || touch "$lockfile"
- return $retval
-}
-
-function stop()
-{
- # Stop all running, but non-default guests"
- _beginResult $"Stopping all running guests"
- $_START_VSERVERS -j 1 --all --stop
- _endResult $?
- _beginResult $"Killing all running contexts"
- kill_contexts
- _endResult $?
- local retval=$?
- $_RM -f "$lockfile"
- return $retval
-}
-
-function restart()
-{
- stop
- start
-}
-
-case "$1" in
- start|stop|restart) $1;;
- reload) ;;
- condrestart)
- test -f $lockfile && restart || :
- ;;
- status)
- test -f $lockfile && {
- echo $"Path to vshelper has been set"
- exit 0
- }
- echo $"Path to vshelper has not been set"
- exit 1
- ;;
- *)
- echo "Usage: $0 {start|stop|reload|restart|condrestart|status}"
- exit 2
- ;;
-esac
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 32 75
-# description: Wrapper to start gated bound to a single IP
-
-# normally, you will need /etc/vservices/gated.conf
-# with the following line
-# IP=0.0.0.0
-# so gated is started without restriction even if you
-# restart it from an ssh session, itself "chbounded" to a single
-# IP.
-USR_LIB_VSERVER=/usr/lib/util-vserver
-exec $USR_LIB_VSERVER/vsysvwrapper gated $*
-
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 85 15
-# description: Wrapper to start httpd bound to a single IP
-USR_LIB_VSERVER=/usr/lib/util-vserver
-exec $USR_LIB_VSERVER/vsysvwrapper httpd $*
-
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 55 45
-# description: Wrapper to start named bound to a single IP
-USR_LIB_VSERVER=/usr/lib/util-vserver
-exec $USR_LIB_VSERVER/vsysvwrapper named $*
-
-
-
-
-
-
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 91 35
-# description: Wrapper to start portmap bound to a single IP
-USR_LIB_VSERVER=/usr/lib/util-vserver
-exec $USR_LIB_VSERVER/vsysvwrapper portmap $*
-
-
-
-
-
-
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 80 30
-# description: Wrapper to start sendmail bound to a single IP
-USR_LIB_VSERVER=/usr/lib/util-vserver
-exec $USR_LIB_VSERVER/vsysvwrapper sendmail $*
-
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 91 35
-# description: Wrapper to start smb bound to a single IP
-USR_LIB_VSERVER=/usr/lib/util-vserver
-exec $USR_LIB_VSERVER/vsysvwrapper smb $*
-
-
-
-
-
-
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 55 25
-# description: Wrapper to start sshd bound to a single IP
-USR_LIB_VSERVER=/usr/lib/util-vserver
-exec $USR_LIB_VSERVER/vsysvwrapper sshd $*
-
-
-
-
-
-
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 56 50
-# description: Wrapper to start xinetd bound to a single IP
-USR_LIB_VSERVER=/usr/lib/util-vserver
-exec $USR_LIB_VSERVER/vsysvwrapper xinetd $*
-
+++ /dev/null
-#!/bin/bash
-#
-# vip6-autod assigns auto-discovered IPv6 addresses to guests
-#
-# chkconfig: 2345 99 01
-# description: starts vip6-autod
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-LOCKFILE=vip6-autod
-. "$_LIB_VSERVER_INIT_FUNCTIONS"
-
-prog="vip6-autod"
-
-function start()
-{
- _beginResult $"Starting $prog"
- $__SBINDIR/$prog
- _endResult $?
- local retval=$?
- test "$retval" -ne 0 || touch "$lockfile"
- return $retval
-}
-
-function stop()
-{
- _beginResult $"Stopping $prog"
- kill `cat $__PKGSTATEDIR/../vip6-autod.pid` &>/dev/null
- _endResult $?
- local retval=$?
- $_RM -f "$lockfile"
- return $retval
-}
-
-function restart()
-{
- stop
- start
-}
-
-case "$1" in
- start|stop|restart) $1;;
- reload) ;;
- condrestart)
- test -f $lockfile && restart || :
- ;;
- status)
- status $prog
- ;;
- *)
- echo "Usage: $0 {start|stop|reload|restart|condrestart|status}"
- exit 2
- ;;
-esac
+++ /dev/null
-#!/bin/bash
-#
-# vprocunhide sets vserver related attributes for /proc
-#
-# chkconfig: 2345 26 74
-# description: Makes some /proc entries visibly for vservers
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-$_VSERVER_INFO - FEATURE iattr || exit 0
-
-LOCKFILE=vprocunhide
-. "$_LIB_VSERVER_INIT_FUNCTIONS"
-
-
-function start()
-{
- _beginResult $"Fixing /proc entries visibility"
- $_VPROCUNHIDE
- _endResult $?
- local retval=$?
- test "$retval" -ne 0 || touch "$lockfile"
- return $retval
-}
-
-function stop()
-{
- $_RM -f "$lockfile"
-}
-
-function restart()
-{
- stop
- start
-}
-
-case "$1" in
- start|stop|restart) $1;;
- reload) ;;
- condrestart)
- test -f $lockfile && restart || :
- ;;
- status)
- test -f $lockfile && {
- echo $"/proc entries were fixed"
- exit 0
- }
- echo $"/proc entries are not fixed"
- exit 1
- ;;
- *)
- echo "Usage: $0 {start|stop|reload|restart|condrestart|status}"
- exit 2
- ;;
-esac
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 98 02
-# description: Wrapper to start the default vservers
-
-## The *basename* of the lockfile; this must be the same name like
-## this if the initscript. Else, the vservers will not be stopped at
-## shutdown
-#LOCKFILE=vserver-default
-
-## Number of vservers which shall be started in parallel; since most
-## initmethods are spending much time time in sleeps, it is safe to
-## use a high number here
-#NUMPARALLEL=99
-
-## The vserver-flavor; the 'default' vservers will be started very late
-## which may be inappropriately for early services like nameservers or
-## VPN tunnels. By copying this initscript to a new name and adapting
-## the startup-position (for RH/Fedora the numbers in line 2), other
-## vservers can be selected. Identification of vservers happens by
-## putting the flavor into /etc/vservers/<vserver-id>/apps/init/mark.
-#MARK=default
-
-export MARK NUMPARALLEL LOCKFILE
-exec /usr/lib/util-vserver/vserver-wrapper "$@"
-
+++ /dev/null
-#!/bin/sh
-# chkconfig: - 98 02
-# description: The vservers service is used to start and stop all
-# the virtual servers.
-
-: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-test -e "$UTIL_VSERVER_VARS" || {
- echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
- exit 1
-}
-. "$UTIL_VSERVER_VARS"
-
-# Print the vserver name in priority/alpha order
-sortserver(){
- (
- cd $__CONFDIR
- for serv in *.conf
- do
- test -f "$serv" || continue
-
- PRIORITY=100
- . $serv
- test "$ONBOOT" || continue
- printf "%03d %s\n" $PRIORITY `basename $serv .conf`
- done
- ) | sort $* | (while read a b; do echo $b; done)
-}
-
-startservers(){
- echo "Starting the virtual servers"
- cd $__CONFDIR
- for name in `sortserver`
- do
- ONBOOT=
- . $name.conf
- if [ "$ONBOOT" = "yes" ] ; then
- $_VSERVER_LEGACY $name start
- else
- echo virtual server $name not configured for on boot start
- fi
- done
-}
-
-BACKGROUND=off
-if [ -f /etc/vservers.conf ] ; then
- . /etc/vservers.conf
-fi
-
-
-# See how we were called.
-case "$1" in
- start)
- if [ "$BACKGROUND" = "yes" ] ; then
- startservers >/dev/tty8 </dev/tty8 2>/dev/tty8 &
- else
- startservers
- fi
- touch /var/lock/subsys/vservers-legacy
- ;;
- stop)
- echo "Stopping the virtual servers"
- cd $__CONFDIR
- for name in `sortserver -r`
- do
- $_VSERVER_LEGACY $name stop
- done
- rm -f /var/lock/subsys/vservers-legacy
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- reload)
- echo Not implemented
- ;;
- status)
- cd $__CONFDIR
- for serv in *.conf
- do
- ONBOOT=no
- name=`basename $serv .conf`
- . $serv
- echo -n ONBOOT=$ONBOOT " "
- $_VSERVER_LEGACY $name running
- done
- ;;
- *)
- echo "Usage: vservers {start|stop|restart|reload|status}"
- exit 1
-esac
-
-exit 0
+++ /dev/null
-# Configuration file for the vservers service
-# BACKGROUND=yes
-# start the vservers on tty9, in background so the rest of the
-# boot process end early
-BACKGROUND=yes
-
-
+++ /dev/null
-## $Id: Makefile-files 1657 2004-08-19 14:01:33Z ensc $ -*- makefile -*-
-
-## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-
-tests_dietprogs = tests/getctx \
- tests/getinitpid \
- tests/vserver-info
-
-noinst_PROGRAMS += tests/escaperoot \
- tests/forkbomb \
- tests/testipc \
- tests/testlimit \
- tests/testopenf \
- $(tests_dietprogs)
-
-
-DIETPROGS += $(tests_dietprogs)
-
-tests_escaperoot_SOURCES = tests/escaperoot.c
-tests_forkbomb_SOURCES = tests/forkbomb.c
-tests_testipc_SOURCES = tests/testipc.c
-tests_testlimit_SOURCES = tests/testlimit.c
-tests_testopenf_SOURCES = tests/testopenf.c
-
-tests_getctx_SOURCES = tests/getctx.c
-tests_getctx_LDADD = $(VSERVER_LDADDS)
-tests_getctx_LDFLAGS = $(VSERVER_LDFLGS)
-
-tests_getinitpid_SOURCES = tests/getinitpid.c
-tests_getinitpid_LDADD = $(VSERVER_LDADDS)
-tests_getinitpid_LDFLAGS = $(VSERVER_LDFLGS)
-
-tests_vserver_info_SOURCES = tests/vserver-info.c
-tests_vserver_info_LDADD = $(VSERVER_LDADDS)
-tests_vserver_info_LDFLAGS = $(VSERVER_LDFLGS)
+++ /dev/null
-// $Id: escaperoot.c 570 2004-01-13 14:56:26Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on tests/escaperoot.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- This program tries to escape out of a vserver using chroot flaws.
- Once escaped, it exec a shell.
-
- None of this works on 2.4.13.
-*/
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <wait.h>
-#include <limits.h>
-
-static void print_pwd()
-{
- char path[PATH_MAX];
- if (getcwd(path,sizeof(path)-1)!=NULL){
- printf ("PWD: %s\n",path);
- }
-}
-/*
- Just set a chroot in a sub-directory and keep the
- current directory behind
-*/
-static void test1()
-{
- printf ("test1\n");
- print_pwd();
- mkdir ("dummy_dir",0755);
- if (chroot ("dummy_dir")==-1){
- fprintf (stderr,"Can't chroot into dummy_dir (%s)\n",strerror(errno));
- }else{
- int i;
- // Try to chdir into the real root
- for (i=0; i<1000; i++) chdir("..");
- print_pwd();
- if (execl ("/bin/sh","/bin/sh",NULL)==-1){
- fprintf (stderr,"execl /bin/sh failed (%s)\n",strerror(errno));
- }
- }
-}
-
-/*
- Same as test1, except we open the current directory and do
- a fchdir() to it before trying to escape to the real root.
-*/
-static void test2()
-{
- int fd;
-
- printf ("test2\n");
- print_pwd();
- mkdir ("dummy_dir",0755);
- fd = open (".",O_RDONLY);
- if (fd == -1){
- fprintf (stderr,"Can't open current directory (%s)\n",strerror(errno));
- }else if (chroot ("dummy_dir")==-1){
- fprintf (stderr,"Can't chroot into dummy_dir (%s)\n",strerror(errno));
- }else if (fchdir(fd)==-1){
- fprintf (stderr,"Can't fchdir to the current directory (%s)\n"
- ,strerror(errno));
- }else{
- int i;
- // Try to chdir into the real root
- for (i=0; i<1000; i++) chdir("..");
- print_pwd();
- if (execl ("/bin/sh","/bin/sh",NULL)==-1){
- fprintf (stderr,"execl /bin/sh failed (%s)\n",strerror(errno));
- }
- }
-}
-
-/*
- Perform the test in a sub-process so it won't affect the current one
-*/
-static void dotest (void (*f)())
-{
- pid_t pid = fork();
- if (pid == 0){
- f();
- _exit (0);
- }else if (pid == -1){
- fprintf (stderr,"Can't fork (%s)\n",strerror(errno));
- }else{
- int status;
- wait (&status);
- }
-}
-
-int main ()
-{
- dotest (test1);
- dotest (test2);
- printf ("All attempts failed\n");
- return 0;
-}
-
-
+++ /dev/null
-// $Id: forkbomb.c 495 2003-12-26 00:48:26Z uid68581 $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on tests/forkbomb.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#include <stdlib.h>
-#include <errno.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <unistd.h>
-#include <stdio.h>
-
-typedef enum {MODE_SLEEP,MODE_LOOP,MODE_FORK, MODE_FORKSHELL} MODE;
-
-
-static void forkbomb_userfork (MODE mode)
-{
- pid_t pid = fork();
- if (pid==-1){
- fprintf (stderr,"Fork failed (%s)\n",strerror(errno));
- }else if (pid == 0){
- if (mode == MODE_SLEEP){
- sleep(20);
- }else if (mode == MODE_LOOP){
- int k=0;
- while (1) k++;
- }else if (mode == MODE_FORKSHELL){
- system ("/bin/false");
- }
- _exit (0);
- }
-}
-
-
-int main (int argc, char *argv[])
-{
- if (argc != 4){
- fprintf (stderr,"formboom N M mode\n"
- "where N is the number of process to start\n"
- "and M is the number of user to start\n"
- "Each user will try to start N process\n"
- "\n"
- "mode is:\n"
- " sleep: Each process sleeps for 20 seconds and exits\n"
- " loop: Each process loops forever\n"
- " fork: Each process exits immediatly and is restarted\n"
- " by the parent\n"
- " forkshell: Each process runs /bin/false in a shell and\n"
- " exits, then the parent start a new one\n"
- );
- }else{
- MODE mode;
- int i;
- if (strcmp(argv[3],"sleep")==0){
- mode = MODE_SLEEP;
- }else if (strcmp(argv[3],"loop")==0){
- mode = MODE_LOOP;
- }else if (strcmp(argv[3],"fork")==0){
- mode = MODE_FORK;
- }else if (strcmp(argv[3],"forkshell")==0){
- mode = MODE_FORKSHELL;
- }else{
- fprintf (stderr,"Invalid mode\n");
- exit (-1);
- }
- for (i=0; i<atoi(argv[2]); i++){
- if (fork()==0){
- if (setuid (i+1)==-1){
- fprintf (stderr,"Can't setuid to uid %d (%s)\n",i+1
- ,strerror(errno));
- }else{
- int j;
- for (j=0; j<atoi(argv[1]); j++){
- forkbomb_userfork (mode);
- }
- if (mode == MODE_FORK || mode == MODE_FORKSHELL){
- // Ok, all processes are started, in MODE_FORK
- // we create a new one all the time
- int status;
- while (wait(&status)!=-1) forkbomb_userfork(mode);
- }
- }
- _exit (0);
- }
- }
- system ("ps ax | wc -l");
- printf ("All the process are running now\n");
- printf ("Exit to end all processes\n");
- system ("/bin/sh");
- system ("killall forkbomb");
- }
- return 0;
-}
-
+++ /dev/null
-// $Id: getctx.c 675 2004-01-21 19:01:01Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "compat.h"
-#include "vserver.h"
-#include "internal.h"
-#include "src/util.h"
-
-#include <stdlib.h>
-#include <unistd.h>
-
-int main(int argc, char *argv[])
-{
- char buf[sizeof(int)*3+2];
- xid_t ctx;
-
- if (argc==1) ctx = vc_get_task_xid(0);
- else ctx = vc_get_task_xid(atoi(argv[1]));
-
- utilvserver_fmt_int(buf, ctx);
-
- WRITE_STR(1, buf);
- WRITE_MSG(1, "\n");
-
- return 0;
-}
+++ /dev/null
-// $Id: getinitpid.c 677 2004-01-21 19:06:14Z ensc $ --*- c++ -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "compat.h"
-#include "vserver.h"
-#include "internal.h"
-#include "src/util.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-int main(int argc, char *argv[])
-{
- char buf[sizeof(int)*3+2];
- xid_t xid;
- struct vc_vx_info info;
-
- if (argc==1) xid = vc_get_task_xid(0);
- else xid = vc_get_task_xid(atoi(argv[1]));
-
- if (xid==VC_NOCTX) {
- perror("vc_get_task_xid()");
- return EXIT_FAILURE;
- }
-
- if (vc_get_vx_info(xid, &info)==-1) {
- perror("vc_get_vx_info()");
- return EXIT_FAILURE;
- }
-
- utilvserver_fmt_int(buf, info.initpid);
-
- WRITE_STR(1, buf);
- WRITE_MSG(1, "\n");
-
- return 0;
-}
+++ /dev/null
-// $Id: testipc.c 570 2004-01-13 14:56:26Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on tests/testipc.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-/*
- Test to see isolation of the various IPC resources
- between security context
-*/
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <sys/ipc.h>
-#include <sys/shm.h>
-#include <sys/sem.h>
-
-int main (int argc, char *argv[])
-{
- int ret = -1;
- if (argc < 2){
- fprintf (stderr,
- "testipc createshm\n"
- );
- }else if(strcmp(argv[1],"createshm")==0){
- int id = shmget (1,1024,IPC_CREAT|0666);
- if (id == -1){
- fprintf (stderr,"shmget failed (%s)\n",strerror(errno));
- }else{
- void *pt = shmat (id,NULL,0);
- printf ("shmget id %d\n",id);
- if (pt == NULL){
- fprintf (stderr,"can't shmat to id %d (%s)\n",id,strerror(errno));
- }else{
- char tmp[100];
- int ok;
- strcpy ((char*)pt,"original string");
-
- printf ("Letting a sub-program attach to this memory\n");
- sprintf (tmp,"./testipc accessshm %d",id);
- ok = system (tmp);
- printf ("\tSub-program returned %d\n",ok);
-
- printf ("\tThe segment now hold :%s:\n",(char*)pt);
- shmdt (pt);
-
- printf ("A sub-program in another context can't attach\n");
- sprintf (tmp,"/usr/sbin/chcontext ./testipc accessshm %d",id);
- ok = system (tmp);
- printf ("\tSub-program returned %d\n",ok);
-
- printf ("Executing a sub-shell\n");
- system ("/bin/sh");
- }
- printf ("Delete the share memory segment\n");
- if (shmctl (id,IPC_RMID,NULL)==-1){
- fprintf (stderr,"shmctl failed (%s)\n",strerror(errno));
- }else{
- ret = 0;
- }
- }
- }else if(strcmp(argv[1],"accessshm")==0){
- int id = atoi(argv[2]);
- void *pt = shmat (id,NULL,0);
- if (pt == (void*)-1){
- fprintf (stderr,"can't shmat to id %d (%s)\n",id,strerror(errno));
- }else{
- printf ("\tWriting hello in share memory\n");
- strcpy ((char*)pt,"hello");
- ret = 0;
- }
- }else if(strcmp(argv[1],"createsem")==0){
- int id = semget (1,1,IPC_CREAT|0666);
- if (id == -1){
- fprintf (stderr,"semget failed (%s)\n",strerror(errno));
- }else{
- char tmp[100];
- int ok;
- printf ("semget id %d\n",id);
-
- printf ("Letting a sub-program play with this semaphore\n");
- sprintf (tmp,"./testipc accesssem %d",id);
- ok = system (tmp);
- printf ("\tSub-program returned %d\n",ok);
-
- printf ("A sub-program in another context can't use the semaphore\n");
- sprintf (tmp,"/usr/sbin/chcontext ./testipc accesssem %d",id);
- ok = system (tmp);
- printf ("\tSub-program returned %d\n",ok);
-
- printf ("Executing a sub-shell\n");
- system ("/bin/sh");
-
- printf ("Delete the semaphore\n");
- if (semctl (id,0,IPC_RMID,NULL)==-1){
- fprintf (stderr,"semctl failed (%s)\n",strerror(errno));
- }else{
- ret = 0;
- }
- }
- }else if(strcmp(argv[1],"accesssem")==0){
- int id = atoi(argv[2]);
- struct sembuf ops[]={
- {0,0,0}
- };
- if (semop (id,ops,1) == -1){
- fprintf (stderr,"can't semop with id %d (%s)\n",id,strerror(errno));
- }else{
- ret = 0;
- }
- }
- return ret;
-}
-
-
+++ /dev/null
-// $Id: testlimit.c 570 2004-01-13 14:56:26Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on tests/testlimit.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/wait.h>
-#include <string.h>
-#include <errno.h>
-#include <unistd.h>
-
-int main (int argc, char *argv[])
-{
- if (argc != 3){
- fprintf (stderr,"testlimit nbprocess malloc_size\n");
- }else{
- int nbproc = atoi(argv[1]);
- int size = atoi(argv[2]);
- int i;
- int status;
- for (i=0; i<nbproc; i++){
- if (fork()==0){
- void *pt = malloc(size);
- if (pt == NULL){
- fprintf (stderr,"Child %d: can't malloc (%s)\n"
- ,i,strerror(errno));
- }else{
- memset (pt,1,size);
- }
- sleep (100);
- _exit (0);
- }
- }
- while (wait(&status)!=-1);
- }
- return 0;
-}
-
+++ /dev/null
-// $Id: testopenf.c 570 2004-01-13 14:56:26Z ensc $
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-// based on tests/testopenf.cc by Jacques Gelinas
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/wait.h>
-#include <string.h>
-#include <errno.h>
-#include <unistd.h>
-
-int main (int argc, char *argv[])
-{
- if (argc != 3){
- fprintf (stderr,"testlimit nbprocess nbopen\n");
- }else{
- int nbproc = atoi(argv[1]);
- int nbopen = atoi(argv[2]);
- int i;
- int status;
- for (i=0; i<nbproc; i++){
- if (fork()==0){
- int j;
- for (j=0; j<nbopen; j++){
- FILE *fin = fopen ("/proc/self/status","r");
- if (fin == NULL){
- fprintf (stderr,"Can't open %d (%s)\n",errno,strerror(errno));
- break;
- }
- }
- printf ("%d open files, sleeping\n",j);
- sleep (100);
- _exit (0);
- }
- }
- while (wait(&status)!=-1);
- }
- return 0;
-}
-
+++ /dev/null
-// $Id: vserver-info.c 636 2004-01-17 05:25:04Z ensc $ --*- c -*--
-
-// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver.h"
-
-#include "src/util.h"
-#include <stdlib.h>
-
-static void
-checkArgs(int argc, char *argv[])
-{
- if (argc==2) {
- if (strcmp(argv[1], "--help")==0) {
- WRITE_MSG(1, "Usage: vserver-info <vserver>\n");
- exit(0);
- }
- if (strcmp(argv[1], "--version")==0) {
- WRITE_MSG(1, "vserver-info " VERSION "\n");
- exit(0);
- }
- }
- else {
- WRITE_MSG(2, "No vserver specified; try '--help' for more inforamtion\n");
- exit(1);
- }
-}
-
-int
-main(int argc, char *argv[])
-{
- vcCfgStyle style = (checkArgs(argc, argv), vc_getVserverCfgStyle(argv[1]));
- char const * name = vc_getVserverName(argv[1], style);
- char const * vdir = vc_getVserverVdir(argv[1], style, true);
-
- WRITE_MSG(2, "Style: ");
- switch (style) {
- case vcCFG_NONE : WRITE_MSG(2, "CFG_NONE"); break;
- case vcCFG_AUTO : WRITE_MSG(2, "CFG_AUTO"); break;
- case vcCFG_LEGACY : WRITE_MSG(2, "CFG_LEGACY"); break;
- case vcCFG_RECENT_FULL : WRITE_MSG(2, "CFG_RECENT_FULL"); break;
- case vcCFG_RECENT_SHORT : WRITE_MSG(2, "CFG_RECENT_SHORT"); break;
- default : WRITE_MSG(2, "???"); break;
- }
-
- WRITE_MSG(2, "\nName: ");
- if (name==0) WRITE_MSG(2, "<null>");
- else WRITE_STR(2, name);
-
- WRITE_MSG(2, "\nVdir: ");
- if (vdir==0) WRITE_MSG(2, "<null>");
- else WRITE_STR(2, vdir);
-
- WRITE_MSG(2, "\n");
- return EXIT_SUCCESS;
-}
-# $Id$
-%define url $URL$
+# $Id: util-vserver.spec.in 2807 2008-10-30 01:59:52Z dhozac $
+
+%if "%{?_without_python:1}" != "1"
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%endif
## This package understands the following switches:
## --without dietlibc ... disable usage of dietlibc
%global _localstatedir %_var
-%define name util-vserver
-%define version 0.30.214
-%define taglevel 1
-
-%global ver %( echo %{version} | sed 's/-.*//' )
-%global subver %( s=`echo %{version} | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
-%global fullver %{version}
-
-
-%{!?release_func:%global release_func() %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}}
+%global fullver 0.30.216-pre2883
+%global ver %( echo %fullver | sed 's/-.*//' )
+%global subver %( s=`echo %fullver | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
-%global python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" )
+# for module-tools
+%global module_version_varname fullver
+%global taglevel 0
-%define _without_dietlibc 1
-%define _without_xalan 1
-
-# don't build debuginfo RPM
-%define debug_package %{nil}
-
-Vendor: PlanetLab
-Packager: PlanetLab Central <support@planet-lab.org>
-Distribution: PlanetLab %{plrelease}
-URL: %(echo %{url} | cut -d ' ' -f 2)
+%{!?release_func:%global release_func() %1%{?dist}}
Summary: Linux virtual server utilities
Name: util-vserver
Version: %ver
-Release: %release_func 0%subver
+Release: %taglevel
License: GPL
Group: System Environment/Base
-#URL: http://savannah.nongnu.org/projects/util-vserver/
-Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%version.tar.bz2
-#Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%version.tar.bz2.asc
+URL: http://savannah.nongnu.org/projects/util-vserver/
+Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
+#Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2.asc
BuildRoot: %_tmppath/%name-%version-%release-root
Requires: init(%name)
Requires: %name-core = %version-%release
Requires: diffutils mktemp sed
Provides: vserver = %version-%release
Obsoletes: vserver < %version
-BuildRequires: mount vconfig gawk iproute iptables
+BuildRequires: mount vconfig gawk /sbin/ip iptables
BuildRequires: gcc-c++ wget which diffutils
-BuildRequires: e2fsprogs-devel beecrypt-devel
+BuildRequires: e2fsprogs-devel e2fsprogs
+%{!?_without_beecrypt:BuildRequires: beecrypt-devel}
+%{?_without_beecrypt:BuildRequires: nss-devel}
+BuildRequires: e2fsprogs
%{!?_without_doc:BuildRequires: doxygen tetex-latex}
+%{!?_without_python:BuildRequires: python python-devel ctags}
Requires(post): %name-core
Requires(pre): %pkglibdir
Requires(postun): %pkglibdir
%package build
Summary: Tools which can be used to build vservers
Group: Applications/System
-Requires: rpm wget tar
+Requires: rpm wget binutils tar
Requires: %name = %version-%release
Requires(pre): %confdir
Requires(postun): %confdir
Requires: %name-lib = %version-%release
%package python
-Summary: Python modules for manipulating vservers
-Group: Applications/System
-Requires: python
-Obsoletes: util-vserver-py23 resman
+Summary: Python bindings to develop vserver-based applications
+Group: Development/Libraries
+Requires: %name-lib = %version-%release
%description
This package contains header files and libraries which are needed to
develop VServer related applications.
-
%description python
-Python modules for manipulating vservers. Provides a superset of the
-functionality of the vserver script (at least will do in the future),
-but more readily accessible from Python code.
+util-vserver provides the components and a framework to setup virtual
+servers. A virtual server runs inside a linux server. It is nevertheless
+highly independent. As such, you can run various services with normal
+configuration. The various vservers can't interact with each other and
+can't interact with services in the main server.
+
+This package contains the files needed to interface with the
+Linux-VServer API from Python.
%prep
%setup -q -n %name-%fullver
-aclocal -I m4
-autoconf
-automake --add-missing
%build
%configure --with-initrddir=%_initrddir --enable-release \
%{?_without_dietlibc:--disable-dietlibc} \
- %{!?_without_legacy:--enable-apis=NOLEGACY} \
- --with-initscripts=sysv
+ %{?_with_legacy:--enable-apis=NOLEGACY} \
+ --with-initscripts=sysv \
+ %{?_without_python:--without-python}
%__make %{?_smp_mflags} all
%{!?_without_doc:%__make %{?_smp_mflags} doc}
+
%install
rm -rf $RPM_BUILD_ROOT
%__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
-rm -f $RPM_BUILD_ROOT/%_libdir/*.la $RPM_BUILD_ROOT%{python_sitearch}/*.{la,a}
+rm -f $RPM_BUILD_ROOT/%_libdir/*.la
MANIFEST_CONFIG='%config' \
MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
-# Generate file list for python package
-find "%{buildroot}" -name '*.py' | { while read FILE; do
- f="${FILE#%{buildroot}}"
- echo "${f}"
- # need to touch these files, as they are not produced on FC4 or below
- touch ${FILE}c
- touch ${FILE}o
- echo %%ghost "${f}c"
- echo %%ghost "${f}o"
-done } > %name-python.list
-
-%check || :
-#%__make check
+%check
+%__make check
%clean
%preun
test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
-# add /bin/vsh to list of secure shells
-if [ ! -f /etc/shells ] || ! grep -q '^/bin/vsh$' /etc/shells ; then
- echo /bin/vsh >> /etc/shells
-fi
-
-
-%postun
-# 0 = erase, 1 = upgrade
-if [ "$1" = 0 ] ; then
- perl -i -n -e 'next if /^\/bin\/vsh$/; print' /etc/shells
-fi
-
%post lib -p /sbin/ldconfig
%postun lib -p /sbin/ldconfig
%post sysv
-#%chkconfig --add vservers-default
-#%chkconfig --add vprocunhide
-# PlanetLab Node Manager takes care of starting and stopping VServers
-%chkconfig --del vservers-default
-%chkconfig --del util-vserver
-# PlanetLab does not require /proc security
-%chkconfig --del vprocunhide
-# vip6-autod handles IPv6 auto-assignments
-%chkconfig --add vip6-autod
+%chkconfig --add vservers-default
+%chkconfig --add vprocunhide
+%chkconfig --add util-vserver
+%chkconfig util-vserver on
%preun sysv
-#test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
+test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
-#test "$1" != 0 || %chkconfig --del vprocunhide
-#test "$1" != 0 || %chkconfig --del vservers-default
-#test "$1" != 0 || %chkconfig --del util-vserver
-test "$1" != 0 || %chkconfig --del vip6-autod
+test "$1" != 0 || %chkconfig --del vprocunhide
+test "$1" != 0 || %chkconfig --del vservers-default
+test "$1" != 0 || %chkconfig --del util-vserver
%postun sysv
-#test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
+test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
%triggerin build -- fedora-release, centos-release
copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
+%pre build
+x="%_libdir/util-vserver/distributions/etch"
+test -d "$x" && mv "$x" "$x.rpmsave" || :
+
+
%post build
test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
%post legacy
-# PlanetLab Node Manager takes care of starting and stopping VServers
-#%chkconfig --add rebootmgr
-#%chkconfig --add vservers-legacy
+%chkconfig --add rebootmgr
+%chkconfig --add vservers-legacy
-# PlanetLab does not require these legacy services
-#for i in %v_services; do
-# %chkconfig --add v_$i
-#done
+for i in %v_services; do
+ %chkconfig --add v_$i
+done
%preun legacy
-#test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
+test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
-#test "$1" != 0 || for i in %v_services; do
-# %chkconfig --del v_$i
-#done
+test "$1" != 0 || for i in %v_services; do
+ %chkconfig --del v_$i
+done
-#test "$1" != 0 || %chkconfig --del rebootmgr
-#test "$1" != 0 || %chkconfig --del vservers-legacy
+test "$1" != 0 || %chkconfig --del rebootmgr
+test "$1" != 0 || %chkconfig --del vservers-legacy
%postun legacy
-#test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
+test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
%files -f %name-base.list
%{!?_without_doc:%doc lib/apidoc/html}
-%files python -f %name-python.list
-%{_sbindir}/bwlimit
-%{_sbindir}/disklimit
-%{python_sitearch}/vserverimpl.so
+%files python
+%defattr(-,root,root,-)
+%{!?_without_python:%{python_sitearch}/*}
%changelog
-* Wed Oct 03 2007 Daniel Hokka Zakrisson <daniel@hozac.com>
-- build python code as part of the regular build process
-
-* Mon Jul 30 2007 Daniel Hokka Zakrisson <daniel@hozac.com>
-- add vip6-autod
-
* Mon Jun 25 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.214-0
- updated URLs
- get rid of e2fsprogs requirement
- add --with legacy and --without doc switches
- add util-vserver initscript
-* Fri Feb 17 2006 Steve Muir <smuir@cs.princeton.edu>
-- add support for setting guaranteed CPU share flag in rspec
-
* Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
- do not require 'xalan' anymore by default
- removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
trigger script
- create '/vservers/.hash' and add initial configuration for it
-* Fri Jan 13 2006 Steve Muir <smuir@cs.princeton.edu>
-- fix bug in python/vserverimpl.c where attempting to adjust CPU share
- for a context that didn't exist would cause an error (it should be a
- safe no-op)
-
-* Fri Dec 2 2005 Steve Muir <smuir@cs.princeton.edu>
-- fix bugs in python/vserverimpl.c where exceptions were not raised when
- they should be and thus occured later at unexpected times
-- add support for stopping a vserver
-
-* Wed Nov 9 2005 Steve Muir <smuir@cs.princeton.edu>
-- add support for removing resource limits e.g., when a slice is deleted
-
-* Mon Nov 7 2005 Steve Muir <smuir@cs.princeton.edu>
-- fix file descriptor leak in vduimpl
-- clean up handling of network parameters
-- don't rely upon /etc/vservers/foo.conf to initialise vserver object
-
-* Wed Nov 2 2005 Steve Muir <smuir@cs.princeton.edu>
-- fix Python modules to handling scheduling parameters correctly
-
* Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-0
- version 0.30.209
- copy centos keys
-* Fri Oct 28 2005 Steve Muir <smuir@cs.princeton.edu>
-- raise exception about being over disk limit after setting usage values
-
-* Fri Oct 7 2005 Steve Muir <smuir@cs.princeton.edu>
-- create common function to be used for entering a vserver and applying
- resource limits
-
-* Thu Aug 21 2005 Mark Huang <mlhuang@cs.princeton.edu>
-- restore build of python modules
-
-* Sat Aug 20 2005 Mark Huang <mlhuang@cs.princeton.edu>
-- upgrade to util-vserver-0.30.208
-- forward-port vbuild and legacy support until we can find a suitable
- replacement
-- make vsh use new vc_create_context() call
-
-* Thu Jul 28 2005 Steve Muir <smuir@cs.princeton.edu>
-- add support for static vserver IDs to vuseradd and vuserdel
-
-* Thu Jul 21 2005 Steve Muir <smuir@cs.princeton.edu>
-- add bwlimit and cpulimit modules
-
* Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
- updated URLs
- require the -lib subpackage by -devel
- copy GPG keys from /etc/pki/rpm-gpg/
-* Mon Jun 20 2005 Steve Muir <smuir@cs.princeton.edu>
-- import Marc's vdu implementation
-
-* Wed Jun 15 2005 Steve Muir <smuir@cs.princeton.edu>
-- 'vserver-init start' functionality subsumed by Node Manager
-
-* Thu Jun 02 2005 Marc E. Fiuczynski <mef@cs.princeton.edu>
-- Fixed vlimit command
-
-* Wed May 25 2005 Steve Muir <smuir@cs.princeton.edu>
-- add Python modules for manipulating vservers
-
* Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
- added patches to make yum work in chroot environments
- version 0.30.206
-* Thu Apr 7 2005 Steve Muir <smuir@cs.princeton.edu>
-- vuserdel changes: don't shutdown vserver, just kill all processes;
- unmount all mountpoints in vserver before deleting
-
* Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
- added some %%descriptions
- copy GPG keys from the system into the confdir
- do not ship the /vservers directory itself; as it is immutable, the
extraction will fail else
-* Fri Nov 19 2004 Mark Huang <mlhuang@cs.princeton.edu>
-- vcached no longer runs as a daemon
-- do not restart vservers when package is upgraded
-
-* Wed Nov 17 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-6.planetlab
-+ planetlab-3_0-rc4
-- PL2445
-- Both vcached and vuseradd now print a warning message when vbuild
- succeeds but the resulting new vserver image is smaller in size than
- the vserver-reference image.
-- vuseradd: clean up some more junk on failure
-
-* Tue Nov 16 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-5.planetlab
-+ planetlab-3_0-rc3
-- PL3026: This is the upgraded version of vdu that maintains an
- internal hash table of files with a nlink count > 1. Only if vdu
- sees all hard links to a particular inode does it add its size and
- block count to the total.
-
-* Fri Nov 12 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-4.planetlab
-- PL2445 Use -b option to du to avoid rounding errors.
-
-* Sat Nov 6 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-3.planetlab
-+ planetlab-3_0-rc2
-- don't create the symbolic link /home/slice/.ssh, this is not how
- pl_sshd works
-
-* Mon Oct 11 2004 Marc E. Fiuczynski <mef@cs.princeton.edu>
-- added vsh
-
* Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
- documented switches for 'rpmbuild'
-* Wed Aug 11 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.29-1.planetlab
-- initial PlanetLab 3.0 build.
-
* Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
- (re)added the MANIFEST_* variables which were lost some time ago;
this will preserve %%config files...
+++ /dev/null
-# $Id: util-vserver.spec.in 2575 2007-08-05 18:35:40Z dhozac $
-
-## This package understands the following switches:
-## --without dietlibc ... disable usage of dietlibc
-## --with xalan ... require/use the xalan xslt processor
-## --without doc ... disable doc generation
-## --with legacy ... enable the legacy APIs
-
-%global confdir %_sysconfdir/vservers
-%global confdefaultdir %confdir/.defaults
-%global pkglibdir %_libdir/%name
-%global chkconfig /sbin/chkconfig
-
-%global _localstatedir %_var
-
-%global ver %( echo @VERSION@ | sed 's/-.*//' )
-%global subver %( s=`echo @VERSION@ | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
-%global fullver @VERSION@
-
-
-%define name @PACKAGE@
-%define version @VERSION@
-%{!?release_func:%global release_func() 1%{?pldistro:.%{pldistro}}%{?date:.%{date}}}
-
-%global python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" )
-
-%define _without_dietlibc 1
-%define _without_xalan 1
-
-# don't build debuginfo RPM
-%define debug_package %{nil}
-
-Vendor: PlanetLab
-Packager: PlanetLab Central <support@planet-lab.org>
-Distribution: PlanetLab 3.0
-URL: http://cvs.planet-lab.org/cvs/util-vserver
-
-Summary: Linux virtual server utilities
-Name: @PACKAGE@
-Version: %ver
-Release: %release_func 0%subver
-License: GPL
-Group: System Environment/Base
-#URL: http://savannah.nongnu.org/projects/util-vserver/
-Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%version.tar.bz2
-#Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%version.tar.bz2.asc
-BuildRoot: %_tmppath/%name-%version-%release-root
-Requires: init(%name)
-Requires: %name-core = %version-%release
-Requires: %name-lib = %version-%release
-Requires: diffutils mktemp sed
-Provides: vserver = %version-%release
-Obsoletes: vserver < %version
-BuildRequires: mount vconfig gawk iproute iptables
-BuildRequires: gcc-c++ wget which diffutils
-BuildRequires: e2fsprogs-devel beecrypt-devel
-%{!?_without_doc:BuildRequires: doxygen tetex-latex}
-Requires(post): %name-core
-Requires(pre): %pkglibdir
-Requires(postun): %pkglibdir
-%{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.25}
-%{?_with_xalan:BuildRequires: xalan-j}
-
-%package lib
-Summary: Dynamic libraries for util-vserver
-Group: System Environment/Libraries
-
-%package core
-Summary: The core-utilities for util-vserver
-Group: Applications/System
-Requires: util-linux
-
-%package build
-Summary: Tools which can be used to build vservers
-Group: Applications/System
-Requires: rpm wget tar
-Requires: %name = %version-%release
-Requires(pre): %confdir
-Requires(postun): %confdir
-Requires(post): %name-core
-
-%package sysv
-Summary: SysV-initscripts for vserver
-Group: System Environment/Base
-Provides: init(%name) = sysv
-Requires: make diffutils
-Requires: initscripts
-Requires: %name = %version-%release
-Requires(post): %chkconfig
-Requires(preun): %chkconfig
-Requires(pre): %_initrddir %pkglibdir
-requires(postun): %_initrddir %pkglibdir
-
-%package legacy
-Summary: Legacy utilities for util-vserver
-Group: Applications/System
-Requires: %name = %version-%release
-Requires(post): %chkconfig
-Requires(preun): %chkconfig
-Requires(pre): %_initrddir %pkglibdir
-requires(postun): %_initrddir %pkglibdir
-
-%package devel
-Summary: Header-files and libraries needed to develop vserver based applications
-Group: Development/Libraries
-Requires: pkgconfig
-Requires: %name-lib = %version-%release
-
-%package python
-Summary: Python modules for manipulating vservers
-Group: Applications/System
-Requires: python
-Obsoletes: util-vserver-py23 resman
-
-
-%description
-util-vserver provides the components and a framework to setup virtual
-servers. A virtual server runs inside a linux server. It is nevertheless
-highly independent. As such, you can run various services with normal
-configuration. The various vservers can't interact with each other and
-can't interact with services in the main server.
-
-This requires a special kernel supporting the new new_s_context and
-set_ipv4root system call.
-
-%description lib
-util-vserver provides the components and a framework to setup virtual
-servers. A virtual server runs inside a linux server. It is nevertheless
-highly independent. As such, you can run various services with normal
-configuration. The various vservers can't interact with each other and
-can't interact with services in the main server.
-
-This package contains the shared libraries needed by all other
-'util-vserver' subpackages.
-
-%description core
-util-vserver provides the components and a framework to setup virtual
-servers. A virtual server runs inside a linux server. It is nevertheless
-highly independent. As such, you can run various services with normal
-configuration. The various vservers can't interact with each other and
-can't interact with services in the main server.
-
-This package contains utilities which are required to communicate with
-the Linux-Vserver enabled kernel.
-
-
-%description build
-util-vserver provides the components and a framework to setup virtual
-servers. A virtual server runs inside a linux server. It is nevertheless
-highly independent. As such, you can run various services with normal
-configuration. The various vservers can't interact with each other and
-can't interact with services in the main server.
-
-This package contains utilities which assist in building Vservers.
-
-%description sysv
-util-vserver provides the components and a framework to setup virtual
-servers. A virtual server runs inside a linux server. It is nevertheless
-highly independent. As such, you can run various services with normal
-configuration. The various vservers can't interact with each other and
-can't interact with services in the main server.
-
-This package contains the SysV initscripts which start and stop
-VServers and related tools.
-
-
-%description legacy
-util-vserver provides the components and a framework to setup virtual
-servers. A virtual server runs inside a linux server. It is nevertheless
-highly independent. As such, you can run various services with normal
-configuration. The various vservers can't interact with each other and
-can't interact with services in the main server.
-
-This package contains the tools which are needed to work with VServers
-having an old-style configuration.
-
-
-%description devel
-util-vserver provides the components and a framework to setup virtual
-servers. A virtual server runs inside a linux server. It is nevertheless
-highly independent. As such, you can run various services with normal
-configuration. The various vservers can't interact with each other and
-can't interact with services in the main server.
-
-This package contains header files and libraries which are needed to
-develop VServer related applications.
-
-
-%description python
-Python modules for manipulating vservers. Provides a superset of the
-functionality of the vserver script (at least will do in the future),
-but more readily accessible from Python code.
-
-
-%prep
-%setup -q -n %name-%fullver
-
-aclocal -I m4
-autoconf
-automake --add-missing
-
-%build
-%configure --with-initrddir=%_initrddir --enable-release \
- %{?_without_dietlibc:--disable-dietlibc} \
- %{!?_without_legacy:--enable-apis=NOLEGACY} \
- --with-initscripts=sysv
-
-%__make %{?_smp_mflags} all
-%{!?_without_doc:%__make %{?_smp_mflags} doc}
-
-%install
-rm -rf $RPM_BUILD_ROOT
-%__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
-
-rm -f $RPM_BUILD_ROOT/%_libdir/*.la $RPM_BUILD_ROOT%{python_sitearch}/*.{la,a}
-
-MANIFEST_CONFIG='%config' \
-MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
-contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
-
-# Generate file list for python package
-find "%{buildroot}" -name '*.py' | { while read FILE; do
- f="${FILE#%{buildroot}}"
- echo "${f}"
- # need to touch these files, as they are not produced on FC4 or below
- touch ${FILE}c
- touch ${FILE}o
- echo %%ghost "${f}c"
- echo %%ghost "${f}o"
-done } > %name-python.list
-
-
-%check || :
-#%__make check
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
-%post
-test -d /vservers || mkdir -m0000 /vservers
-test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
-
-f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
-f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
-f="%confdefaultdir/cachebase"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/cache/vservers "$f"
-
-%_sbindir/setattr --barrier /vservers /vservers/.pkg || :
-
-
-%preun
-test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
-
-# add /bin/vsh to list of secure shells
-if [ ! -f /etc/shells ] || ! grep -q '^/bin/vsh$' /etc/shells ; then
- echo /bin/vsh >> /etc/shells
-fi
-
-
-%postun
-# 0 = erase, 1 = upgrade
-if [ "$1" = 0 ] ; then
- perl -i -n -e 'next if /^\/bin\/vsh$/; print' /etc/shells
-fi
-
-
-%post lib -p /sbin/ldconfig
-%postun lib -p /sbin/ldconfig
-
-
-%post sysv
-#%chkconfig --add vservers-default
-#%chkconfig --add vprocunhide
-# PlanetLab Node Manager takes care of starting and stopping VServers
-%chkconfig --del vservers-default
-%chkconfig --del util-vserver
-# PlanetLab does not require /proc security
-%chkconfig --del vprocunhide
-# vip6-autod handles IPv6 auto-assignments
-%chkconfig --add vip6-autod
-
-
-%preun sysv
-#test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
-
-#test "$1" != 0 || %chkconfig --del vprocunhide
-#test "$1" != 0 || %chkconfig --del vservers-default
-#test "$1" != 0 || %chkconfig --del util-vserver
-test "$1" != 0 || %chkconfig --del vip6-autod
-
-
-%postun sysv
-#test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
-
-
-%triggerin build -- fedora-release, centos-release
-function copy()
-{
- base=$1
- shift
-
- for i; do
- test -r "$i" || continue
-
- target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
- cp -a "$i" "$target"
- done
-}
-copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
-copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
-copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
-
-
-%post build
-test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
-
-f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
- ln -s /vservers/.hash "$f"/00
-
-%_sbindir/setattr --barrier /vservers/.hash || :
-
-
-%preun build
-test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
-
-
-## Temporary workaround to remove old v_* files; it will conflict
-## somehow with the -legacy package but can be fixed by reinstalling
-## this package.
-## TODO: remove me in the final .spec file
-%define v_services httpd named portmap sendmail smb sshd xinetd gated
-%triggerun sysv -- util-vserver-sysv < 0.30.198
-for i in %v_services; do
- %chkconfig --del v_$i || :
-done
-
-
-%post legacy
-# PlanetLab Node Manager takes care of starting and stopping VServers
-#%chkconfig --add rebootmgr
-#%chkconfig --add vservers-legacy
-
-# PlanetLab does not require these legacy services
-#for i in %v_services; do
-# %chkconfig --add v_$i
-#done
-
-
-%preun legacy
-#test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
-
-#test "$1" != 0 || for i in %v_services; do
-# %chkconfig --del v_$i
-#done
-
-#test "$1" != 0 || %chkconfig --del rebootmgr
-#test "$1" != 0 || %chkconfig --del vservers-legacy
-
-%postun legacy
-#test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
-
-
-%files -f %name-base.list
-%defattr(-,root,root,-)
-%doc AUTHORS COPYING ChangeLog NEWS README THANKS
-%doc doc/*.html doc/*.css
-/sbin/vshelper
-%dir %confdir
-%dir %confdefaultdir
-%dir %confdefaultdir/apps
-%dir %confdefaultdir/files
-%dir %pkglibdir/defaults
-%ghost %confdefaultdir/cachebase
-%ghost %confdefaultdir/vdirbase
-%ghost %confdefaultdir/run.rev
-
-%dir %_localstatedir/cache/vservers
-%dir %_localstatedir/run/vservers
-%dir %_localstatedir/run/vservers.rev
-%dir %_localstatedir/run/vshelper
-
-
-%files lib -f %name-lib.list
-%files sysv -f %name-sysv.list
-
-
-%files core -f %name-core.list
-%defattr(-,root,root,-)
-%dir %pkglibdir
-
-
-%files build -f %name-build.list
-%defattr(-,root,root,-)
-%doc contrib/yum*.patch
-%dir %confdir/.distributions
-%dir %confdir/.distributions/*
-%dir %confdir/.distributions/*/apt
-%dir %confdir/.distributions/.common
-%dir %confdir/.distributions/.common/pubkeys
-%dir %confdefaultdir/apps/vunify
-%dir %confdefaultdir/apps/vunify/hash
-
-
-%files legacy -f %name-legacy.list
-%defattr(-,root,root,-)
-%dir %pkglibdir/legacy
-
-
-%files devel -f %name-devel.list
-%defattr(-,root,root,-)
-%{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
-%{!?_without_doc:%doc lib/apidoc/html}
-
-
-%files python -f %name-python.list
-%{_sbindir}/bwlimit
-%{_sbindir}/disklimit
-%{python_sitearch}/vserverimpl.so
-
-
-%changelog
-* Wed Oct 03 2007 Daniel Hokka Zakrisson <daniel@hozac.com>
-- build python code as part of the regular build process
-
-* Mon Jul 30 2007 Daniel Hokka Zakrisson <daniel@hozac.com>
-- add vip6-autod
-
-* Mon Jun 25 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.214-0
-- updated URLs
-- get rid of e2fsprogs requirement
-
-* Fri Dec 29 2006 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.213-0
-- add --with legacy and --without doc switches
-- add util-vserver initscript
-
-* Fri Feb 17 2006 Steve Muir <smuir@cs.princeton.edu>
-- add support for setting guaranteed CPU share flag in rspec
-
-* Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
-- do not require 'xalan' anymore by default
-- removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
-- removed 'chattr' leftovers
-- create the '/etc/vservers/.defaults/cachebase' symlink
-- added /var/cache/vservers and the needed support
-- set barrier attribute on /vservers/.pkg and /vservers/.hash
-- added 'centos-release' to the list of packages in the copy-the-keys
- trigger script
-- create '/vservers/.hash' and add initial configuration for it
-
-* Fri Jan 13 2006 Steve Muir <smuir@cs.princeton.edu>
-- fix bug in python/vserverimpl.c where attempting to adjust CPU share
- for a context that didn't exist would cause an error (it should be a
- safe no-op)
-
-* Fri Dec 2 2005 Steve Muir <smuir@cs.princeton.edu>
-- fix bugs in python/vserverimpl.c where exceptions were not raised when
- they should be and thus occured later at unexpected times
-- add support for stopping a vserver
-
-* Wed Nov 9 2005 Steve Muir <smuir@cs.princeton.edu>
-- add support for removing resource limits e.g., when a slice is deleted
-
-* Mon Nov 7 2005 Steve Muir <smuir@cs.princeton.edu>
-- fix file descriptor leak in vduimpl
-- clean up handling of network parameters
-- don't rely upon /etc/vservers/foo.conf to initialise vserver object
-
-* Wed Nov 2 2005 Steve Muir <smuir@cs.princeton.edu>
-- fix Python modules to handling scheduling parameters correctly
-
-* Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-0
-- version 0.30.209
-- copy centos keys
-
-* Fri Oct 28 2005 Steve Muir <smuir@cs.princeton.edu>
-- raise exception about being over disk limit after setting usage values
-
-* Fri Oct 7 2005 Steve Muir <smuir@cs.princeton.edu>
-- create common function to be used for entering a vserver and applying
- resource limits
-
-* Thu Aug 21 2005 Mark Huang <mlhuang@cs.princeton.edu>
-- restore build of python modules
-
-* Sat Aug 20 2005 Mark Huang <mlhuang@cs.princeton.edu>
-- upgrade to util-vserver-0.30.208
-- forward-port vbuild and legacy support until we can find a suitable
- replacement
-- make vsh use new vc_create_context() call
-
-* Thu Jul 28 2005 Steve Muir <smuir@cs.princeton.edu>
-- add support for static vserver IDs to vuseradd and vuserdel
-
-* Thu Jul 21 2005 Steve Muir <smuir@cs.princeton.edu>
-- add bwlimit and cpulimit modules
-
-* Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
-- updated URLs
-
-* Fri Jul 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-1
-- version 0.30.208
-- require the -lib subpackage by -devel
-- copy GPG keys from /etc/pki/rpm-gpg/
-
-* Mon Jun 20 2005 Steve Muir <smuir@cs.princeton.edu>
-- import Marc's vdu implementation
-
-* Wed Jun 15 2005 Steve Muir <smuir@cs.princeton.edu>
-- 'vserver-init start' functionality subsumed by Node Manager
-
-* Thu Jun 02 2005 Marc E. Fiuczynski <mef@cs.princeton.edu>
-- Fixed vlimit command
-
-* Wed May 25 2005 Steve Muir <smuir@cs.princeton.edu>
-- add Python modules for manipulating vservers
-
-* Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
-- added patches to make yum work in chroot environments
-- version 0.30.206
-
-* Thu Apr 7 2005 Steve Muir <smuir@cs.princeton.edu>
-- vuserdel changes: don't shutdown vserver, just kill all processes;
- unmount all mountpoints in vserver before deleting
-
-* Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
-- added some %%descriptions
-- copy GPG keys from the system into the confdir
-- buildrequire dietlibc-0.25
-- BuildRequire beecrypt-devel
-- cleanups
-- use %%global instead of %%define
-- removed 'run.rev' as a vserver-local variable and made it a system-wide setting
-
-* Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
-- updated BuildRequires:
-- use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
-- moved the v_* initscripts to legacy
-- do not ship the /vservers directory itself; as it is immutable, the
- extraction will fail else
-
-* Fri Nov 19 2004 Mark Huang <mlhuang@cs.princeton.edu>
-- vcached no longer runs as a daemon
-- do not restart vservers when package is upgraded
-
-* Wed Nov 17 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-6.planetlab
-+ planetlab-3_0-rc4
-- PL2445
-- Both vcached and vuseradd now print a warning message when vbuild
- succeeds but the resulting new vserver image is smaller in size than
- the vserver-reference image.
-- vuseradd: clean up some more junk on failure
-
-* Tue Nov 16 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-5.planetlab
-+ planetlab-3_0-rc3
-- PL3026: This is the upgraded version of vdu that maintains an
- internal hash table of files with a nlink count > 1. Only if vdu
- sees all hard links to a particular inode does it add its size and
- block count to the total.
-
-* Fri Nov 12 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-4.planetlab
-- PL2445 Use -b option to du to avoid rounding errors.
-
-* Sat Nov 6 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.30-3.planetlab
-+ planetlab-3_0-rc2
-- don't create the symbolic link /home/slice/.ssh, this is not how
- pl_sshd works
-
-* Mon Oct 11 2004 Marc E. Fiuczynski <mef@cs.princeton.edu>
-- added vsh
-
-* Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
-- documented switches for 'rpmbuild'
-
-* Wed Aug 11 2004 Mark Huang <mlhuang@cs.princeton.edu> 0.29-1.planetlab
-- initial PlanetLab 3.0 build.
-
-* Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
-- (re)added the MANIFEST_* variables which were lost some time ago;
- this will preserve %%config files...
-
-* Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
-- use file-list for sysv scripts also
-
-* Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
-- added vprocunhide-service support
-- added doxygen support
-- updated Requires:
-
-* Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0
-- Initial build.
+++ /dev/null
-## $Id: Makefile-files 1923 2005-03-18 00:33:20Z ensc $ --*- makefile -*--
-
-## Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-##
-## 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; version 2 of the License.
-##
-## 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, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-if ENSC_HAVE_C99_COMPILER
-DIETPROGS += vserver-start/vserver.start.bin
-pkglib_PROGRAMS += vserver-start/vserver.start.bin
-endif
-
-## HACK: for now...
-AM_INSTALLCHECK_STD_OPTIONS_EXEMPT += vserver-start/vserver.start.bin
-
-vserver_start_vserver_start_bin_SOURCES = \
- vserver-start/main.c \
- vserver-start/mount.c \
- vserver-start/mount.h \
- vserver-start/defaulttty.c \
- vserver-start/scriptlets.c \
- vserver-start/undo.c \
- vserver-start/undo.h \
- vserver-start/vshelper.c \
- vserver-start/vshelper.h \
- vserver-start/interface.c \
- vserver-start/interface.h \
- vserver-start/interface-add.c \
- vserver-start/interface-read.c \
- vserver-start/interface-free.hc \
- vserver-start/interface-init.hc \
- vserver-start/interface-remove.c \
- vserver-start/interface-print.c \
- vserver-start/configuration.c \
- vserver-start/configuration-init.c \
- vserver-start/configuration.h \
- vserver-start/vserver-start.h
-
-vserver_start_vserver_start_bin_LDADD = $(VSERVER_LDADDS) \
- $(LIBINTERNAL) \
- $(LIBENSCVECTOR)
-vserver_start_vserver_start_bin_LDFLAGS = $(VSERVER_LDFLGS)
+++ /dev/null
-// $Id: configuration-init.c 1746 2004-10-19 21:11:10Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "configuration.h"
-#include "interface.h"
-void
-Cfg_init(struct Configuration *cfg)
-{
- struct vc_ctx_caps const caps = {
- .bcaps = 0,
- .bmask = 0,
- .ccaps = 0,
- .cmask = 0
- };
-
- struct vc_ctx_flags const flags = {
- .flagword = 0,
- .mask = 0
- };
-
- Vector_init(&cfg->interfaces, sizeof(struct Interface));
- cfg->vdir = 0;
- cfg->xid = VC_DYNAMIC_XID;
- cfg->broadcast = 0;
- cfg->ctx_caps = caps;
- cfg->ctx_flags = flags;
-}
+++ /dev/null
-// $Id: configuration.c 1746 2004-10-19 21:11:10Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "configuration.h"
-#include "interface.h"
-
-#include <lib_internal/util.h>
-#include <lib_internal/filecfg.h>
-#include <ensc_vector/vector.h>
-#include <lib/internal.h>
-
-#include <dirent.h>
-#include <string.h>
-
-static inline bool
-getSingleInterface(struct Interface *res,
- struct Interface const *tmpl,
- PathInfo const *basedir, char const *d_entry)
-{
- PathInfo ent = { .d = d_entry, .l = strlen(d_entry) };
- PathInfo path = *basedir;
- char path_buf[ENSC_PI_APPSZ(path, ent)];
-
- PathInfo_append(&path, &ent, path_buf);
- if (!utilvserver_isDirectory(path.d, true))
- return true; // skip non-directories
-
- return Iface_read(res, &path, tmpl);
-}
-
-static inline bool
-getInterfaces(struct Configuration *cfg)
-{
- ENSC_PI_DECLARE(iface_subdir, "interfaces");
- PathInfo ifacepath = cfg->cfgdir;
- char path_buf[ENSC_PI_APPSZ(ifacepath, iface_subdir)];
- struct Interface iface_default;
- DIR *dir;
- bool rc = true;
-
- PathInfo_append(&ifacepath, &iface_subdir, path_buf);
-
- if (!utilvserver_isDirectory(ifacepath.d, true))
- return true; // no interface configuration -> ok
-
- Iface_init(&iface_default);
- if (!Iface_read(&iface_default, &ifacepath, 0))
- return false;
-
- // iterate through dir-entries...
- dir = opendir(ifacepath.d);
- while (dir!=0) {
- struct dirent *ent = readdir(dir);
- struct Interface iface;
-
- if (ent==0) break;
- if (isDotfile(ent->d_name)) continue; // skip dot-files
-
- Iface_init(&iface);
- if (!getSingleInterface(&iface, &iface_default, &ifacepath, ent->d_name))
- rc = false;
- else if (iface.addr.ipv4.ip!=0) { // HACK: non-directory entries would return true also
- struct Interface *new_iface = Vector_pushback(&cfg->interfaces);
- *new_iface = iface;
- }
- }
-
- if (dir!=0)
- closedir(dir);
-
- return rc;
-}
-
-static bool
-initVdir(char const **vdir, PathInfo const *cfgdir)
-{
- *vdir = vc_getVserverVdir(cfgdir->d, vcCFG_RECENT_FULL, true);
- if (*vdir==0) {
- WRITE_MSG(2, "Can not find root-directory of the vserver\n");
- return false;
- }
-
- return true;
-}
-
-static bool
-setFlag(void *flags_v, char const *str, size_t len)
-{
- struct vc_ctx_flags *flags = flags_v;
- int rc = vc_list2cflag(str,len, 0,flags);
-
- return rc!=-1;
-}
-
-static bool
-setCCap(void *caps_v, char const *str, size_t len)
-{
- struct vc_ctx_caps *caps = caps_v;
- int rc = vc_list2ccap(str,len, 0,caps);
-
- return rc!=-1;
-}
-
-static bool
-setBCap(void *caps_v, char const *str, size_t len)
-{
- struct vc_ctx_caps *caps = caps_v;
- int rc = vc_list2bcap(str,len, 0,caps);
-
- return rc!=-1;
-}
-
-static bool
-readSomething(void *dest, PathInfo const *cfgdir, char const *item,
- FileCfg_MultiLineHandler handler)
-{
- char const *data = FileCfg_readEntryStr(cfgdir, item, true, 0);
- bool res = false;
-
- if (!data) return true;
- if (!FileCfg_iterateOverMultiLine(data, handler, dest)) {
- WRITE_MSG(2, "Failed to parse '");
- WRITE_STR(2, item);
- WRITE_MSG(2, "' configuration\n");
- goto finish;
- }
-
- res = true;
- finish:
- free(const_cast(char *)(data));
- return res;
-}
-
-bool
-getConfiguration(struct Configuration *cfg, PathInfo const *cfgdir)
-{
- cfg->cfgdir = *cfgdir;
- cfg->nice = FileCfg_readEntryStr(cfgdir, "nice", false, 0);
-
- return (initVdir(&cfg->vdir, cfgdir) &&
- readSomething(&cfg->ctx_flags, cfgdir, "flags", setFlag) &&
- readSomething(&cfg->ctx_caps, cfgdir, "ccapabilities", setCCap) &&
- readSomething(&cfg->ctx_caps, cfgdir, "bcapabilities", setBCap) &&
- getInterfaces(cfg));
-}
+++ /dev/null
-// $Id: configuration.h 1746 2004-10-19 21:11:10Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_VSERVER_START_CONFIGURATION_H
-#define H_UTIL_VSERVER_VSERVER_START_CONFIGURATION_H
-
-#include <lib/vserver.h>
-#include <ensc_vector/vector.h>
-#include <lib_internal/pathinfo.h>
-
-#include <stdbool.h>
-
-typedef struct Vector InterfaceList;
-
-struct Configuration {
- PathInfo cfgdir;
- char const * vdir;
- xid_t xid;
- uint32_t broadcast;
- InterfaceList interfaces;
- char const * nice;
-
- struct vc_ctx_caps ctx_caps;
- struct vc_ctx_flags ctx_flags;
-};
-
- //extern struct Configuration cfg;
-
-void Cfg_init(struct Configuration *);
-bool getConfiguration(struct Configuration *, PathInfo const *cfgdir);
-
-
-#endif // H_UTIL_VSERVER_VSERVER_START_CONFIGURATION_H
+++ /dev/null
-// $Id: defaulttty.c 1794 2005-01-26 15:30:40Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver-start.h"
-#include <pathconfig.h>
-
-#include <lib_internal/string.h>
-
-#include <string.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#include <wrappers.h>
-
-
-inline static bool
-checkTTY(char const /*@null@*/ *p)
-{
- return p!=0 && access(p, R_OK|W_OK)==0;
-}
-
-void
-setDefaultTTY(PathInfo const *cfgdir, char const *dflt)
-{
- PathInfo subpath = ENSC_STRING_FIXED("/apps/init/tty");
- char buf[ENSC_PI_APPSZ(*cfgdir, subpath)];
- char const * new_tty = 0;
-
- do {
- PathInfo ttypath = *cfgdir;
-
- PathInfo_append(&ttypath, &subpath, buf);
- new_tty = String_c_str(&ttypath, buf);
- if (checkTTY(new_tty)) break;
-
- new_tty = CONFDIR "/.defaults/apps/init/tty";
- if (checkTTY(new_tty)) break;
-
- new_tty = dflt;
- if (checkTTY(new_tty)) break;
-
- new_tty = "/dev/null";
- } while (false);
-
- int fd_in = Eopen(new_tty, O_RDONLY, 0);
- if (fd_in!=0) {
- Edup2(fd_in, 0);
- Eclose(fd_in);
- }
-
- int fd_out = Eopen(new_tty, O_WRONLY, 0600);
- if (fd_out!=1) {
- Edup2(fd_out, 1);
- Eclose(fd_out);
- }
-
- Edup2(1, 2);
-}
+++ /dev/null
-// $Id: interface-add.c 1939 2005-03-19 02:07:40Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "interface.h"
-#include "pathconfig.h"
-
-#include <lib_internal/command.h>
-#include <lib_internal/util.h>
-#include <ensc_fmt/fmt.h>
-
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-unsigned int
-Iface_getIPv4Prefix(struct Interface const *iface)
-{
- uint32_t mask = iface->addr.ipv4.mask;
- unsigned int res = 0;
- while (mask!=0) {
- res += mask & 1;
- mask >>= 1;
- }
-
- return res;
-}
-
-static bool
-invokeIpAddr(struct Interface const *iface)
-{
- struct Command cmd;
- unsigned int prefix = Iface_getIPv4Prefix(iface);
- char * tmp = inet_ntoa(*reinterpret_cast(struct in_addr *)(&iface->addr.ipv4.ip));
- size_t l = strlen(tmp);
- char addr[l + sizeof("/") + sizeof(unsigned int)*3 + 1];
- char * ptr;
- size_t l1 = strlen(iface->dev);
- size_t l2 = iface->name ? strlen(iface->name) : 0;
- char devlabel[l1 + l2 + sizeof(":")];
- bool result = true;
-
- ptr = Xmemcpy(addr, tmp, l);
- *ptr++ = '/';
- l = utilvserver_fmt_uint(ptr, prefix);
- ptr[l] = '\0';
-
- Command_init(&cmd);
-
- size_t idx = 6;
- char const * argv[] = {
- "/bin/echo",
- PROG_IP, "addr", "add",
- addr,
- "broadcast", 0,
- 0, 0, // label <name>
- 0, 0, // dev <dev>
- 0
- };
-
- if (iface->addr.ipv4.bcast!=0)
- argv[idx++] = inet_ntoa(*reinterpret_cast(struct in_addr *)(&iface->addr.ipv4.bcast));
- else
- argv[idx++] = "+";
-
- if (iface->name) {
- ptr = Xmemcpy(devlabel, iface->dev, l1);
- *ptr++ = ':';
- ptr = Xmemcpy(ptr, iface->name, l2);
- *ptr = '\0';
-
- argv[idx++] = "label";
- argv[idx++] = devlabel;
- }
-
- argv[idx++] = "dev";
- argv[idx++] = iface->dev;
-
- Command_setParams(&cmd, argv);
- if (!Command_exec(&cmd, true) ||
- !Command_wait(&cmd, true) ||
- cmd.rc!=0)
- result = false;
-
- Command_free(&cmd);
-
- return result;
-}
-
-static bool
-addVLAN(struct Interface const UNUSED *iface)
-{
- abort(); // TODO: implement me
-}
-
-static bool
-addIndirect(struct Interface const UNUSED *iface)
-{
- abort(); // TODO: implement me
-}
-
-static bool
-addIP(struct Interface const *iface)
-{
- return invokeIpAddr(iface);
- //invokeIpLink(iface);
-}
-
-bool
-Iface_add(struct Interface const *iface)
-{
- if (iface->nodev) return true;
- if (strchr(iface->dev, '.')!=0) return addVLAN(iface);
- if (!iface->direct) return addIndirect(iface);
- return addIP(iface);
-}
+++ /dev/null
-// $Id: interface-free.hc 1628 2004-07-03 00:07:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-static inline UNUSED void
-Iface_free(struct Interface *iface)
-{
- free(const_cast(char *)(iface->name));
- free(const_cast(char *)(iface->scope));
- free(const_cast(char *)(iface->dev));
- free(const_cast(char *)(iface->mac));
-}
+++ /dev/null
-// $Id: interface-init.hc 1628 2004-07-03 00:07:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#include <string.h>
-
-static inline UNUSED void
-Iface_init(struct Interface *iface)
-{
- memset(&iface->addr, 0, sizeof (iface->addr));
- iface->name = 0;
- iface->scope = 0;
- iface->dev = 0;
- iface->mac = 0;
- iface->nodev = false;
- iface->direct = false;
- iface->up = true;
-}
+++ /dev/null
-// $Id: interface-print.c 1939 2005-03-19 02:07:40Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "interface.h"
-
-void
-Iface_print(struct Interface const UNUSED *iface, int UNUSED fd)
-{
-
-}
+++ /dev/null
-// $Id: interface-read.c 1980 2005-03-24 12:44:17Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "interface.h"
-
-#include <lib_internal/filecfg.h>
-#include <lib_internal/util.h>
-
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-static inline char *
-readEntryStr(PathInfo const *cfgdir, char const *file, char const *dflt)
-{
- return FileCfg_readEntryStr(cfgdir, file, false, dflt);
-}
-
-static inline bool
-readEntryFlag(PathInfo const *cfgdir, char const *file, bool dflt)
-{
- return FileCfg_readEntryFlag(cfgdir, file, dflt);
-}
-
-static int
-assumeNonNull(PathInfo const *cfgdir, char const *file, char const *val)
-{
- if (val!=0) return 0;
-
- WRITE_MSG(2, "vserver-start: no value configured for '");
- Vwrite (2, cfgdir->d, cfgdir->l);
- WRITE_MSG(2, "/");
- WRITE_STR(2, file);
- WRITE_STR(2, "'\n");
- return 1;
-}
-
-bool
-Iface_read(struct Interface *res, PathInfo *cfgdir,
- struct Interface const *dflt)
-{
- char const * extip;
- char const * ip;
- char const * mask;
- char const * prefix;
- char const * bcast;
- bool rc = false;
-
- // skip 'disabled' interfaces
- if (readEntryFlag(cfgdir, "disabled", false)) return true;
-
- ip = readEntryStr (cfgdir, "ip", 0);
- mask = readEntryStr (cfgdir, "mask", 0);
- prefix = readEntryStr (cfgdir, "prefix", 0);
- extip = readEntryStr (cfgdir, "extip", 0);
- bcast = readEntryStr (cfgdir, "bcast", 0);
- res->mac = readEntryStr (cfgdir, "mac", 0);
- res->name = readEntryStr (cfgdir, "name", 0);
- res->dev = readEntryStr (cfgdir, "dev", dflt ? dflt->dev : 0);
- res->scope = readEntryStr (cfgdir, "scope", dflt ? dflt->scope : 0);
- res->nodev = readEntryFlag(cfgdir, "nodev", false);
- res->direct = !readEntryFlag(cfgdir, "indirect", false);
- res->up = !readEntryFlag(cfgdir, "down", false);
-
- if (dflt && (
- assumeNonNull(cfgdir, "ip", ip) +
- assumeNonNull(cfgdir, "dev", res->dev) +
- (dflt->addr.ipv4.mask>0) ? 0 : (
- (mask ? 0 : assumeNonNull(cfgdir, "prefix", prefix)) +
- (prefix ? 0 : assumeNonNull(cfgdir, "mask", mask))
- )))
- goto err;
-
- if (mask && prefix) {
- WRITE_MSG(2, "vserver-start: both 'prefix' and 'mask' specified in '");
- Vwrite (2, cfgdir->d, cfgdir->l);
- WRITE_MSG(2, "'\n");
- goto err;
- }
-
- if (bcast)
- res->addr.ipv4.bcast = inet_addr(bcast);
-
- if (ip)
- res->addr.ipv4.ip = inet_addr(ip);
-
- if (extip)
- res->addr.ipv4.extip = inet_addr(extip);
-
- if (prefix) {
- int p = atoi(prefix);
- if (p==0) {
- WRITE_MSG(2, "vserver-start: invalid 'prefix' specified in '");
- Vwrite (2, cfgdir->d, cfgdir->l);
- WRITE_MSG(2, "'\n");
- goto err;
- }
-
- res->addr.ipv4.mask = htonl(-1u << (32-p));
- }
- else if (mask)
- res->addr.ipv4.mask = inet_addr(mask);
- else if (dflt)
- res->addr.ipv4.mask = dflt->addr.ipv4.mask;
-
- rc = true;
-
- err:
- free(const_cast(void *)(bcast));
- free(const_cast(void *)(extip));
- free(const_cast(void *)(ip));
- free(const_cast(void *)(mask));
- free(const_cast(void *)(prefix));
-
- return rc;
-}
+++ /dev/null
-// $Id: interface-remove.c 1939 2005-03-19 02:07:40Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "interface.h"
-
-bool
-Iface_remove(struct Interface const UNUSED *iface)
-{
- return true;
-}
+++ /dev/null
-// $Id: interface.c 1746 2004-10-19 21:11:10Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "interface.h"
-
-#include "vserver-start.h"
-#include "configuration.h"
-#include "undo.h"
-
-#include <lib_internal/util.h>
-
-static void
-Iface_removeWrapper(void const *iface)
-{
- (void)Iface_remove(iface);
-}
-
-void
-activateInterfaces(InterfaceList const *interfaces)
-{
- struct Interface const * iface;
-
- for (iface=Vector_begin_const(interfaces);
- iface!=Vector_end_const(interfaces);
- ++iface) {
- if (!Iface_add(iface)) {
- WRITE_MSG(2, "Failed to add interface ");
- Iface_print(iface, 2);
- WRITE_MSG(2, "\n");
-
- exit(1);
- }
- Undo_addTask(Iface_removeWrapper, iface);
- }
-}
+++ /dev/null
-// $Id: interface.h 1746 2004-10-19 21:11:10Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_VSERVER_START_INTERFACE_H
-#define H_UTIL_VSERVER_VSERVER_START_INTERFACE_H
-
-#include "configuration.h"
-
-#include <lib_internal/util-cast.h>
-#include <lib_internal/pathinfo.h>
-#include <lib/vserver.h>
-#include <stdbool.h>
-
-struct Interface {
- union {
- struct {
- uint32_t ip;
- uint32_t mask;
- uint32_t extip;
- uint32_t bcast;
- } ipv4;
- } addr;
-
- char const * name;
- char const * scope;
- char const * dev;
- char const * mac;
- bool nodev;
- bool direct;
- bool up;
-};
-
-void activateInterfaces(InterfaceList const *interfaces);
-void deactivateInterfaces(InterfaceList const *interfaces);
-
-static void Iface_init(struct Interface *);
-static void Iface_free(struct Interface *);
-bool Iface_read(struct Interface *, PathInfo *cfgdir,
- struct Interface const *dflt);
-bool Iface_add(struct Interface const *);
-bool Iface_del(struct Interface const *);
-bool Iface_remove(struct Interface const *);
-void Iface_print(struct Interface const *, int fd);
-
-#include "interface-init.hc"
-#include "interface-free.hc"
-
-#endif // H_UTIL_VSERVER_VSERVER_START_INTERFACE_H
+++ /dev/null
-// $Id: main.c 2589 2007-08-16 03:06:50Z dhozac $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver-start.h"
-#include "vshelper.h"
-#include "pathconfig.h"
-#include "interface.h"
-#include "configuration.h"
-#include "mount.h"
-#include "undo.h"
-
-#include "lib_internal/util.h"
-#include "lib_internal/errinfo.h"
-#include "lib_internal/sys_clone.h"
-#include "lib/vserver.h"
-#include "lib/internal.h"
-
-#include <sys/file.h>
-#include <sched.h>
-#include <signal.h>
-#include <unistd.h>
-#include <sys/socket.h>
-
-#define ENSC_WRAPPERS_VSERVER 1
-#define ENSC_WRAPPERS_SOCKET 1
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#define ENSC_WRAPPERS_STDLIB 1
-#include <ensc_wrappers/wrappers.h>
-
-struct Options opts;
-struct Configuration cfg;
-int wrapper_exit_code;
-
-static void
-env2Str(char const **var, char const *env, bool req)
-{
- char const * tmp = getenv(env);
- if (req && tmp==0) {
- WRITE_MSG(2, "vserver.start: required environment variable $");
- WRITE_STR(2, env);
- WRITE_STR(2, " not set; aborting...\n");
- exit(1);
- }
-
- *var = tmp;
- unsetenv(env);
-}
-
-static void
-env2Bool(bool *var, char const *env, bool req)
-{
- char const * tmp;
- env2Str(&tmp, env, req);
- *var = !(tmp==0 || atoi(tmp)==0);
-}
-
-static void
-initGlobals()
-{
- env2Str (&opts.VSERVER_DIR, "VSERVER_DIR", true);
- env2Str (&opts.VSERVER_NAME, "VSERVER_NAME", true);
- env2Bool(&opts.OPTION_DEBUG, "OPTION_DEBUG", false);
- env2Bool(&opts.OPTION_DEFAULTTTY, "OPTION_DEFAULTTTY", false);
-}
-
-static void
-initLock()
-{
- size_t l = strlen(opts.VSERVER_DIR);
- char tmp[sizeof(LOCKDIR "/vserver..startup") + l];
- char * ptr = tmp;
- struct ErrorInformation err = { .app = 0 };
- int fd;
-
- ptr = Xmemcpy(ptr, LOCKDIR "/vserver.", sizeof(LOCKDIR "/vserver.")-1);
- ((char *)(Xmemcpy(ptr, opts.VSERVER_DIR, l)))[0] = '\0';
- ptr += canonifyVserverName(ptr);
- ptr = Xmemcpy(ptr, ".startup", sizeof(".startup"));
- *ptr = '\0';
-
- if (!lockfile(&fd, tmp, LOCK_EX, 30, &err)) {
- WRITE_MSG(2, "vserver.start: failed to lock '");
- WRITE_STR(2, tmp);
- WRITE_MSG(2, "': ");
- ErrInfo_writeErrno(&err);
- exit(1);
- }
-}
-
-static void
-checkConstraints()
-{
- xid_t xid;
- bool is_running;
- struct vc_vx_info info;
-
- xid = vc_getVserverCtx(opts.VSERVER_DIR, vcCFG_RECENT_FULL,
- true, &is_running, vcCTX_XID);
-
- if (xid!=VC_NOCTX && vc_get_vx_info(xid, &info)!=-1) {
- WRITE_MSG(2, "vserver.start: vserver '");
- WRITE_STR(2, opts.VSERVER_NAME);
- WRITE_MSG(2, "' already running; aborting...\n");
- exit(1);
- }
-
- Vshelper_doSanityCheck();
-}
-
-static void
-setCFlag(xid_t xid, uint_least64_t value)
-{
- struct vc_ctx_flags flags = {
- .flagword = value,
- .mask = value
- };
-
- Evc_set_cflags(xid, &flags);
-}
-
-int main(int UNUSED argc, char UNUSED *argv[])
-{
- Cfg_init(&cfg);
-
- initGlobals();
- initLock();
- checkConstraints();
-
- int sync_fd[2];
- char c;
- xid_t xid;
- char buf[sizeof(xid)*3 + 2];
- PathInfo cfgdir = { .d = opts.VSERVER_DIR, .l = strlen(opts.VSERVER_DIR) };
-
- Esocketpair(AF_UNIX, SOCK_STREAM, 0, sync_fd);
- Efcntl(sync_fd[0], F_SETFD, FD_CLOEXEC);
- Efcntl(sync_fd[1], F_SETFD, FD_CLOEXEC);
-
- getConfiguration(&cfg, &cfgdir);
- pid_t pid = sys_clone(CLONE_NEWNS|SIGCHLD, 0);
- FatalErrnoError(pid==-1, "sys_clone()");
-
- switch (pid) {
- case 0 :
- Undo_init();
- execScriptlets(&cfgdir, opts.VSERVER_NAME, "prepre-start");
- activateInterfaces(&cfg.interfaces);
-
- xid = Evc_ctx_create(cfg.xid, NULL);
- setCFlag(xid, VC_VXF_INFO_NAMESPACE);
-
- mountVserver(&cfg);
- // prepareInit(&cfg, &cfgdir);
-
- Esend(sync_fd[0], &xid, sizeof xid, MSG_NOSIGNAL);
- // 'pre-start.parent' will be executed now in the parent-context
- Erecv(sync_fd[0], &c, 1, 0);
- execScriptlets(&cfgdir, opts.VSERVER_NAME, "pre-start");
-
- if (cfg.nice)
- Enice(atoi(cfg.nice));
- if (opts.OPTION_DEFAULTTTY)
- setDefaultTTY(&cfgdir, 0);
-
-
-
- Undo_detach();
- break;
-
- default :
- Erecv(sync_fd[1], &xid, sizeof xid, 0);
- utilvserver_fmt_uint(buf, xid);
- Esetenv("CHILD_XID", buf, 1);
-
- execScriptlets(&cfgdir, opts.VSERVER_NAME, "pre-start.parent");
- Esend(sync_fd[1], ".", 1, MSG_NOSIGNAL);
-
- break;
- }
-}
+++ /dev/null
-// $Id: mount.c 1679 2004-08-25 00:11:50Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "mount.h"
-#include "configuration.h"
-#include "undo.h"
-
-#include <pathconfig.h>
-
-#include <lib/internal.h>
-#include <lib_internal/command.h>
-
-#include <unistd.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <wait.h>
-#include <string.h>
-
-#define ENSC_WRAPPERS_UNISTD 1
-#define ENSC_WRAPPERS_FCNTL 1
-#include <ensc_wrappers/wrappers.h>
-
-static char const *
-findMtab(char const *vserver_mtab)
-{
- char const *tmp;
-
- if (utilvserver_isFile(vserver_mtab, true)) return vserver_mtab;
-
- tmp=CONFDIR "/.defaults/init/mtab";
- if (utilvserver_isFile(tmp, true)) return tmp;
-
- tmp=PKGLIBDEFAULTDIR "/mtab";
- if (utilvserver_isFile(tmp, true)) return tmp;
-
- return 0;
-}
-
-static void
-initMtab(struct Configuration const *cfg)
-{
- ENSC_PI_DECLARE(mtab_subpath, "apps/init/mtab");
- PathInfo mtab_path = cfg->cfgdir;
- char mtab_buf[ENSC_PI_APPSZ(mtab_path, mtab_subpath)];
-
- PathInfo_append(&mtab_path, &mtab_subpath, mtab_buf);
- char const * mtab = findMtab(mtab_path.d);
- pid_t pid;
- int p[2];
-
- Epipe(p);
- pid = Efork();
- if (pid==0) {
- Undo_detach();
- Eclose(p[1]);
-
- Echdir(cfg->vdir);
- Echroot(".");
-
- int fd = Eopen("/etc/mtab", O_WRONLY|O_CREAT, 0644);
- for (;;) {
- char buf[4096];
- ssize_t len = TEMP_FAILURE_RETRY(read(p[0], buf, sizeof buf));
- if (len==0) break;
- if (len==-1) {
- perror("vserver-start: initMtab/read():");
- _exit(1);
- }
-
- Ewrite(fd, buf, len);
- }
- Eclose(fd);
- Eclose(p[0]);
- _exit(0);
- }
- else {
- Eclose(p[0]);
-
- if (mtab!=0) {
- int fd = Eopen(mtab, O_RDONLY, 0644);
-
- for (;;) {
- char buf[4096];
- ssize_t len = TEMP_FAILURE_RETRY(read(fd, buf, sizeof buf));
- if (len==0) break;
- if (len==-1) {
- perror("vserver-start: initMtab/read():");
- _exit(1);
- }
-
- Ewrite(p[1], buf, len);
- }
-
- Eclose(fd);
- }
-
- Eclose(p[1]);
-
- int status;
- TEMP_FAILURE_RETRY(wait4(pid, &status, 0,0));
-
- if (!WIFEXITED(status) || WEXITSTATUS(status)!=0) {
- exit(1);
- }
- }
-}
-
-static void
-mountVserverInternal(struct Configuration const *cfg,
- PathInfo const *path, bool use_chbind)
-{
- if (!utilvserver_isFile(path->d,true)) return;
-
- pid_t pid = Efork();
- if (pid==0) {
- Undo_detach();
-
- Echdir(cfg->vdir);
-
- if (use_chbind) {
- // TODO
- }
-
- struct Command cmd;
- char const * argv[] = {
- PROG_SECURE_MOUNT,
- "-a",
- "--chroot",
- "--fstab", path->d,
- 0
- };
-
- Command_init(&cmd);
- Command_setParams(&cmd, argv);
- Command_exec(&cmd, false);
- }
- else {
- int status;
- TEMP_FAILURE_RETRY(wait4(pid, &status, 0,0));
-
- if (!WIFEXITED(status) || WEXITSTATUS(status)!=0)
- exit(1);
- }
-}
-
-void
-mountVserver(struct Configuration const *cfg)
-{
- ENSC_PI_DECLARE(fstab_subpath, "fstab");
- ENSC_PI_DECLARE(fstabl_subpath, "fstab.local");
-
- PathInfo fstab_path = cfg->cfgdir;
- char fstab_buf[ENSC_PI_APPSZ(fstab_path, fstab_subpath)];
-
- PathInfo fstabl_path = cfg->cfgdir;
- char fstabl_buf[ENSC_PI_APPSZ(fstabl_path, fstabl_subpath)];
-
-
- PathInfo_append(&fstab_path, &fstab_subpath, fstab_buf);
- PathInfo_append(&fstabl_path, &fstabl_subpath, fstabl_buf);
- initMtab(cfg);
-
- mountVserverInternal(cfg, &fstab_path, true);
- mountVserverInternal(cfg, &fstabl_path, false);
-}
+++ /dev/null
-// $Id: mount.h 1676 2004-08-19 15:02:57Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_VSERVER_START_MOUNT_H
-#define H_UTIL_VSERVER_VSERVER_START_MOUNT_H
-
-#include <lib_internal/pathinfo.h>
-
-struct Configuration;
-void mountVserver(struct Configuration const *cfg);
-
-#endif // H_UTIL_VSERVER_VSERVER_START_MOUNT_H
+++ /dev/null
-// $Id: scriptlets.c 1746 2004-10-19 21:11:10Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver-start.h"
-
-#include <pathconfig.h>
-#include <lib_internal/command.h>
-#include <lib_internal/util.h>
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/param.h>
-#include <unistd.h>
-#include <dirent.h>
-
-#define HAS_SUFFIX(STR, LEN, SUF) \
- (LEN>sizeof(SUF) && strcmp(STR+LEN-sizeof(SUF), SUF)==0)
-
-static bool
-visitFile(char const *fname, char const *vname, char const *style)
-{
- struct stat st;
- struct Command cmd;
-
- if (stat(fname, &st)==-1 ||
- !S_ISREG(st.st_mode))
- return false;
-
- if ((st.st_mode & 0111)==0) {
- WRITE_MSG(2,
- "!!!LEGACY ALERT!!!\n"
- "The special handling of non-executable scriptlets which allows to\n"
- "override environment variables is not supported anymore. This change\n"
- "was needed as 'vserver ... start' is done by a native C program now.\n"
- "If you need the old functionality please fill a bugreport so that\n"
- "workarounds can be found/implemented.\n"
- "The file triggering this message was\n"
- " '");
- WRITE_STR(2, fname);
- WRITE_MSG(2, "'\n");
-
- return false;
- }
-
- char const *par[] = { fname, style, vname, 0 };
- Command_setParams(&cmd, par);
-
- if (!Command_exec(&cmd, true) ||
- !Command_wait(&cmd, true)) {
- WRITE_MSG(2, "vserver-start: exec('");
- WRITE_STR(2, fname);
- WRITE_MSG(2, "'): ");
- WRITE_STR(2, strerror(cmd.err));
- WRITE_MSG(2, "; aborting...\n");
-
- exit(1);
- }
-
- if (cmd.rc!=0) {
- WRITE_MSG(2, "vserver-start: scriptlet '");
- WRITE_STR(2, fname);
- WRITE_MSG(2, "' failed; aborting...\n");
-
- exit (1);
- }
-
- Command_free(&cmd);
-
- return true;
-}
-
-static bool
-visitDirentry(PathInfo const *basepath, char const *d_name,
- char const *vname,
- char const *style)
-{
- size_t l = strlen(d_name);
- char path[basepath->l + l + 1];
- char * ptr;
-
- if (isDotfile(d_name) ||
- HAS_SUFFIX(d_name, l, ".rpmnew") ||
- HAS_SUFFIX(d_name, l, ".rpmsave") ||
- HAS_SUFFIX(d_name, l, ".rpmorig") ||
- HAS_SUFFIX(d_name, l, ".cfsaved"))
- return false;
-
- ptr = Xmemcpy(path, basepath->d, basepath->l);
- ptr = Xmemcpy(ptr, d_name, l);
- *ptr = '\0';
-
- return visitFile(path, vname, style);
-}
-
-static bool
-visitPath(PathInfo const *basepath,
- char const *vname,
- PathInfo const *style)
-{
- char tmp[basepath->l + style->l + sizeof(".d/")];
- PathInfo path = { .d = tmp };
- char * ptr;
- DIR * dir;
- bool did_something = false;
-
- ptr = Xmemcpy(tmp, basepath->d, basepath->l);
- ptr = Xmemcpy(ptr, style->d, style->l);
- *ptr = '\0';
- path.l = ptr-tmp;
-
- did_something = visitFile(path.d, vname, style->d) || did_something;
-
- ptr = Xmemcpy(ptr, ".d/", sizeof(".d/"));
- path.l = ptr-tmp;
-
- dir = opendir(tmp);
- while (dir) {
- struct dirent *ent = readdir(dir);
- if (ent==0) break;
-
- did_something = visitDirentry(&path, ent->d_name, vname, style->d) || did_something;
- }
- if (dir!=0) closedir(dir);
-
- return did_something;
-}
-
-void
-execScriptlets(PathInfo const *cfgdir, char const *vname, char const *style)
-{
- char path_buf[MAX(cfgdir->l, sizeof(CONFDIR "/.defaults")) +
- sizeof("/scripts/")];
- PathInfo basepath = { .d = path_buf };
- PathInfo styledir = {
- .d = style,
- .l = strlen(style)
- };
- char * ptr;
- bool doit = true;
-
- ptr = Xmemcpy(path_buf, cfgdir->d, cfgdir->l);
- ptr = Xmemcpy(ptr, "/scripts/", sizeof("/scripts/"));
- basepath.l = ptr-path_buf-1;
- doit = !visitPath(&basepath, vname, &styledir);
-
- if (doit) {
- ptr = Xmemcpy(path_buf, CONFDIR "/.defaults/scripts/",
- sizeof(CONFDIR "/.defaults/scripts/"));
- basepath.l = ptr-path_buf-1;
- doit = !visitPath(&basepath, vname, &styledir);
- }
-}
+++ /dev/null
-// $Id: undo.c 1676 2004-08-19 15:02:57Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "undo.h"
-
-#include <lib_internal/util.h>
-#include <ensc_vector/vector.h>
-
-#include <stdlib.h>
-#include <unistd.h>
-#include <assert.h>
-
-struct FuncData
-{
- ExitFunction fn;
- void const * args;
-};
-
-struct Undo
-{
- pid_t pid_;
- struct Vector funcs;
-};
-
-
-static struct Undo undo_data = {
- .pid_ = -1
-};
-
-static void
-atexitHandler()
-{
- struct FuncData const * ptr;
-
- if (undo_data.pid_ != getpid())
- return; // skip 'exit()' from forked processes
-
- for (ptr=Vector_end(&undo_data.funcs);
- ptr!=Vector_begin(&undo_data.funcs);
- --ptr)
- (ptr[-1].fn)(ptr[-1].args);
-}
-
-void
-Undo_init()
-{
- if (undo_data.pid_!=-1) {
- WRITE_MSG(2, "Undo already initialized; internal error...\n");
- _exit(1);
- }
-
- undo_data.pid_ = getpid();
- Vector_init(&undo_data.funcs, sizeof(struct FuncData));
-
- atexit(&atexitHandler);
-}
-
-void
-Undo_addTask(ExitFunction fn, void const *args)
-{
- struct FuncData *tmp = Vector_pushback(&undo_data.funcs);
- assert(tmp!=0); // Vector_pushback never returns a null-pointer
-
- tmp->fn = fn;
- tmp->args = args;
-}
-
-void
-Undo_detach()
-{
- Vector_free(&undo_data.funcs);
- undo_data.pid_ = -1;
-}
+++ /dev/null
-// $Id: undo.h 1676 2004-08-19 15:02:57Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_VSERVER_START_UNDO_H
-#define H_UTIL_VSERVER_VSERVER_START_UNDO_H
-
-typedef void (*ExitFunction)(void const *);
-
-void Undo_init();
-void Undo_addTask(ExitFunction fn, void const *args);
-void Undo_detach();
-
-#endif // H_UTIL_VSERVER_VSERVER_START_UNDO_H
+++ /dev/null
-// $Id: vserver-start.h 1746 2004-10-19 21:11:10Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_VSERVER_START_VSERVER_START_H
-#define H_UTIL_VSERVER_VSERVER_START_VSERVER_START_H
-
-#include <lib_internal/pathinfo.h>
-#include <stdbool.h>
-
-struct Options {
- char const * VSERVER_DIR;
- char const * VSERVER_NAME;
- bool OPTION_DEBUG;
- bool OPTION_DEFAULTTTY;
- bool OPTION_SECURE;
-};
-
-extern struct Options opts;
-
-void execScriptlets(PathInfo const *cfgdir, char const *name, char const *style);
-void setDefaultTTY(PathInfo const *cfgdir, char const *dflt);
-
-#endif // H_UTIL_VSERVER_VSERVER_START_VSERVER_START_H
+++ /dev/null
-// $Id: vshelper.c 1677 2004-08-19 16:06:37Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "vserver-start.h"
-#include "pathconfig.h"
-
-#include <lib_internal/util.h>
-#include <lib_internal/command.h>
-
-void
-Vshelper_doSanityCheck()
-{
- struct Command cmd;
- char const * argv[] = {
- "/bin/bash", "-c",
- ". " PATH_UTILVSERVER_VARS ";. " PATH_FUNCTIONS "; vshelper.doSanityCheck",
- 0
- };
-
- Command_init(&cmd);
- Command_setParams(&cmd, argv);
- if (!Command_exec(&cmd, true) ||
- !Command_wait(&cmd, true))
- WRITE_MSG(2, "vserver-start: failed to do the vshelper-sanitycheck\n");
-
- if (cmd.rc!=0)
- exit(0);
-}
+++ /dev/null
-// $Id: vshelper.h 1628 2004-07-03 00:07:42Z ensc $ --*- c -*--
-
-// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
-//
-// 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; version 2 of the License.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-#ifndef H_UTIL_VSERVER_VSERVER_START_VSHELPER_H
-#define H_UTIL_VSERVER_VSERVER_START_VSHELPER_H
-
-void Vshelper_doSanityCheck();
-
-
-#endif // H_UTIL_VSERVER_VSERVER_START_VSHELPER_H