ia64/xen-unstable

changeset 7647:ecb5997f7b25

Wholesale import of xm-test 0.4.0.

This is not yet integrated with the rest of the Xen build system.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Nov 07 12:36:16 2005 +0100 (2005-11-07)
parents 365245f2a106
children a4bff55d4a16
files tools/xm-test/COPYING tools/xm-test/ChangeLog tools/xm-test/Makefile.am tools/xm-test/Makefile.in tools/xm-test/README tools/xm-test/TODO tools/xm-test/aclocal.m4 tools/xm-test/configure tools/xm-test/configure.ac tools/xm-test/install-sh tools/xm-test/lib/XmTestLib/Console.py tools/xm-test/lib/XmTestLib/Test.py tools/xm-test/lib/XmTestLib/XenDomain.py tools/xm-test/lib/XmTestLib/Xm.py tools/xm-test/lib/XmTestLib/__init__.py tools/xm-test/lib/XmTestLib/config.py tools/xm-test/lib/XmTestLib/config.py.in tools/xm-test/lib/XmTestReport/OSReport.py tools/xm-test/lib/XmTestReport/ProgReport.py tools/xm-test/lib/XmTestReport/Report.py tools/xm-test/lib/XmTestReport/ResultReport.py tools/xm-test/lib/XmTestReport/utils.py tools/xm-test/lib/XmTestReport/xmtest.py tools/xm-test/lib/XmTestReport/xmtest.py.in tools/xm-test/missing tools/xm-test/mkreport tools/xm-test/ramdisk/Makefile.am tools/xm-test/ramdisk/Makefile.in tools/xm-test/ramdisk/configs/buildroot tools/xm-test/ramdisk/configs/busybox tools/xm-test/ramdisk/configs/uClibc tools/xm-test/ramdisk/skel/.profile tools/xm-test/ramdisk/skel/etc/init.d/rcS tools/xm-test/ramdisk/skel/etc/inittab tools/xm-test/ramdisk/skel/root/.profile tools/xm-test/runtest.sh tools/xm-test/tests/Makefile.am tools/xm-test/tests/Makefile.am.template tools/xm-test/tests/Makefile.in tools/xm-test/tests/block-create/01_block_attach_device_pos.py tools/xm-test/tests/block-create/02_block_attach_file_device_pos.py tools/xm-test/tests/block-create/04_block_attach_device_repeatedly_pos.py tools/xm-test/tests/block-create/05_block_attach_and_dettach_device_repeatedly_pos.py tools/xm-test/tests/block-create/06_block_attach_baddomain_neg.py tools/xm-test/tests/block-create/07_block_attach_baddevice_neg.py tools/xm-test/tests/block-create/08_block_attach_bad_filedevice_neg.py tools/xm-test/tests/block-create/09_block_attach_and_dettach_device_check_data_pos.py tools/xm-test/tests/block-create/10_block_attach_dettach_multiple_devices.py tools/xm-test/tests/block-create/Makefile tools/xm-test/tests/block-create/Makefile.am tools/xm-test/tests/block-create/Makefile.in tools/xm-test/tests/block-destroy/01_block-destroy_btblock_pos.py tools/xm-test/tests/block-destroy/02_block-destroy_rtblock_pos.py tools/xm-test/tests/block-destroy/03_block-destroy_nonexist_neg.py tools/xm-test/tests/block-destroy/04_block-destroy_nonattached_neg.py tools/xm-test/tests/block-destroy/05_block-destroy_byname_pos.py tools/xm-test/tests/block-destroy/Makefile tools/xm-test/tests/block-destroy/Makefile.am tools/xm-test/tests/block-destroy/Makefile.in tools/xm-test/tests/block-list/01_block-list_pos.py tools/xm-test/tests/block-list/02_block-list_attachbd_pos.py tools/xm-test/tests/block-list/03_block-list_anotherbd_pos.py tools/xm-test/tests/block-list/04_block-list_nodb_pos.py tools/xm-test/tests/block-list/05_block-list_nonexist_neg.py tools/xm-test/tests/block-list/Makefile tools/xm-test/tests/block-list/Makefile.am tools/xm-test/tests/block-list/Makefile.in tools/xm-test/tests/console/01_console_badopt_neg.py tools/xm-test/tests/console/02_console_baddom_neg.py tools/xm-test/tests/console/Makefile tools/xm-test/tests/console/Makefile.am tools/xm-test/tests/console/Makefile.in tools/xm-test/tests/create/01_create_basic_pos.py tools/xm-test/tests/create/02_create_noparm_neg.py tools/xm-test/tests/create/03_create_badparm_neg.py tools/xm-test/tests/create/04_create_conflictname_neg.py tools/xm-test/tests/create/05_create_noroot_noram_neg.py tools/xm-test/tests/create/06_create_mem_neg.py tools/xm-test/tests/create/07_create_mem64_pos.py tools/xm-test/tests/create/08_create_mem128_pos.py tools/xm-test/tests/create/09_create_mem256_pos.py tools/xm-test/tests/create/10_create_fastdestroy.py tools/xm-test/tests/create/11_create_concurrent_pos.py tools/xm-test/tests/create/12_create_concurrent_stress_pos.py tools/xm-test/tests/create/13_create_multinic_pos.py tools/xm-test/tests/create/14_create_blockroot_pos.py tools/xm-test/tests/create/Makefile tools/xm-test/tests/create/Makefile.am tools/xm-test/tests/create/Makefile.in tools/xm-test/tests/create/log tools/xm-test/tests/destroy/01_destroy_basic_pos.py tools/xm-test/tests/destroy/02_destroy_noparm_neg.py tools/xm-test/tests/destroy/03_destroy_nonexist_neg.py tools/xm-test/tests/destroy/04_destroy_badparm_neg.py tools/xm-test/tests/destroy/05_destroy_byid_pos.py tools/xm-test/tests/destroy/06_destroy_dom0_neg.py tools/xm-test/tests/destroy/07_destroy_stale_pos.py tools/xm-test/tests/destroy/Makefile tools/xm-test/tests/destroy/Makefile.am tools/xm-test/tests/destroy/Makefile.in tools/xm-test/tests/dmesg/01_dmesg_basic_pos.py tools/xm-test/tests/dmesg/02_dmesg_basic_neg.py tools/xm-test/tests/dmesg/Makefile tools/xm-test/tests/dmesg/Makefile.am tools/xm-test/tests/dmesg/Makefile.in tools/xm-test/tests/domid/01_domid_basic_pos.py tools/xm-test/tests/domid/02_domid_basic_neg.py tools/xm-test/tests/domid/Makefile tools/xm-test/tests/domid/Makefile.am tools/xm-test/tests/domid/Makefile.in tools/xm-test/tests/domname/01_domname_basic_pos.py tools/xm-test/tests/domname/02_domname_basic_neg.py tools/xm-test/tests/domname/Makefile tools/xm-test/tests/domname/Makefile.am tools/xm-test/tests/domname/Makefile.in tools/xm-test/tests/enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py tools/xm-test/tests/enforce_dom0_cpus/Makefile tools/xm-test/tests/enforce_dom0_cpus/Makefile.am tools/xm-test/tests/enforce_dom0_cpus/Makefile.in tools/xm-test/tests/help/01_help_basic_pos.py tools/xm-test/tests/help/02_help_basic_neg.py tools/xm-test/tests/help/03_help_badparm_neg.py tools/xm-test/tests/help/04_help_long_pos.py tools/xm-test/tests/help/05_help_nonroot_pos.py tools/xm-test/tests/help/Makefile tools/xm-test/tests/help/Makefile.am tools/xm-test/tests/help/Makefile.in tools/xm-test/tests/info/01_info_basic_pos.py tools/xm-test/tests/info/02_info_compiledata_pos.py tools/xm-test/tests/info/Makefile tools/xm-test/tests/info/Makefile.am tools/xm-test/tests/info/Makefile.in tools/xm-test/tests/list/01_list_basic_pos.py tools/xm-test/tests/list/02_list_badparm_neg.py tools/xm-test/tests/list/03_list_nonexist_neg.py tools/xm-test/tests/list/04_list_goodparm_pos.py tools/xm-test/tests/list/05_list_long_pos.py tools/xm-test/tests/list/06_list_nonroot.py tools/xm-test/tests/list/Makefile tools/xm-test/tests/list/Makefile.am tools/xm-test/tests/list/Makefile.in tools/xm-test/tests/memmax/01_memmax_badparm_neg.py tools/xm-test/tests/memmax/Makefile tools/xm-test/tests/memmax/Makefile.am tools/xm-test/tests/memmax/Makefile.in tools/xm-test/tests/memset/01_memset_basic_pos.py tools/xm-test/tests/memset/02_memset_badparm_neg.py tools/xm-test/tests/memset/03_memset_random_pos.py tools/xm-test/tests/memset/04_memset_smallmem_pos.py tools/xm-test/tests/memset/Makefile tools/xm-test/tests/memset/Makefile.am tools/xm-test/tests/memset/Makefile.in tools/xm-test/tests/migrate/01_migrate_localhost_pos.py tools/xm-test/tests/migrate/Makefile tools/xm-test/tests/migrate/Makefile.am tools/xm-test/tests/migrate/Makefile.in tools/xm-test/tests/pause/01_pause_basic_pos.py tools/xm-test/tests/pause/02_pause_badopt_neg.py tools/xm-test/tests/pause/03_pause_badname_neg.py tools/xm-test/tests/pause/04_pause_badid_neg.py tools/xm-test/tests/pause/Makefile tools/xm-test/tests/pause/Makefile.am tools/xm-test/tests/pause/Makefile.in tools/xm-test/tests/reboot/01_reboot_basic_pos.py tools/xm-test/tests/reboot/02_reboot_badopt_neg.py tools/xm-test/tests/reboot/03_reboot_badname_neg.py tools/xm-test/tests/reboot/Makefile tools/xm-test/tests/reboot/Makefile.am tools/xm-test/tests/reboot/Makefile.in tools/xm-test/tests/restore/01_restore_basic_pos.py tools/xm-test/tests/restore/02_restore_badparm_neg.py tools/xm-test/tests/restore/03_restore_badfilename_neg.py tools/xm-test/tests/restore/Makefile tools/xm-test/tests/restore/Makefile.am tools/xm-test/tests/restore/Makefile.in tools/xm-test/tests/save/01_save_basic_pos.py tools/xm-test/tests/save/02_save_badparm_neg.py tools/xm-test/tests/save/03_save_bogusfile_neg.py tools/xm-test/tests/save/Makefile tools/xm-test/tests/save/Makefile.am tools/xm-test/tests/save/Makefile.in tools/xm-test/tests/sedf/01_sedf_multi_pos.py tools/xm-test/tests/sedf/Makefile tools/xm-test/tests/sedf/Makefile.am tools/xm-test/tests/sedf/Makefile.in tools/xm-test/tests/shutdown/01_shutdown_basic_pos.py tools/xm-test/tests/shutdown/02_shutdown_badparm_neg.py tools/xm-test/tests/shutdown/03_shutdown_nonexist_neg.py tools/xm-test/tests/shutdown/Makefile tools/xm-test/tests/shutdown/Makefile.am tools/xm-test/tests/shutdown/Makefile.in tools/xm-test/tests/sysrq/01_sysrq_basic_neg.py tools/xm-test/tests/sysrq/02_sysrq_sync_pos.py tools/xm-test/tests/sysrq/03_sysrq_withreboot_pos.py tools/xm-test/tests/sysrq/Makefile tools/xm-test/tests/sysrq/Makefile.am tools/xm-test/tests/sysrq/Makefile.in tools/xm-test/tests/unpause/01_unpause_basic_pos.py tools/xm-test/tests/unpause/Makefile tools/xm-test/tests/unpause/Makefile.am tools/xm-test/tests/unpause/Makefile.in tools/xm-test/tests/vcpu-disable/01_vcpu-disable_basic_pos.py tools/xm-test/tests/vcpu-disable/Makefile tools/xm-test/tests/vcpu-disable/Makefile.am tools/xm-test/tests/vcpu-disable/Makefile.in tools/xm-test/tests/vcpu-pin/01_vcpu-pin_basic_pos.py tools/xm-test/tests/vcpu-pin/Makefile tools/xm-test/tests/vcpu-pin/Makefile.am tools/xm-test/tests/vcpu-pin/Makefile.in
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/xm-test/COPYING	Mon Nov 07 12:36:16 2005 +0100
     1.3 @@ -0,0 +1,340 @@
     1.4 +		    GNU GENERAL PUBLIC LICENSE
     1.5 +		       Version 2, June 1991
     1.6 +
     1.7 + Copyright (C) 1989, 1991 Free Software Foundation, Inc.
     1.8 +     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     1.9 + Everyone is permitted to copy and distribute verbatim copies
    1.10 + of this license document, but changing it is not allowed.
    1.11 +
    1.12 +			    Preamble
    1.13 +
    1.14 +  The licenses for most software are designed to take away your
    1.15 +freedom to share and change it.  By contrast, the GNU General Public
    1.16 +License is intended to guarantee your freedom to share and change free
    1.17 +software--to make sure the software is free for all its users.  This
    1.18 +General Public License applies to most of the Free Software
    1.19 +Foundation's software and to any other program whose authors commit to
    1.20 +using it.  (Some other Free Software Foundation software is covered by
    1.21 +the GNU Library General Public License instead.)  You can apply it to
    1.22 +your programs, too.
    1.23 +
    1.24 +  When we speak of free software, we are referring to freedom, not
    1.25 +price.  Our General Public Licenses are designed to make sure that you
    1.26 +have the freedom to distribute copies of free software (and charge for
    1.27 +this service if you wish), that you receive source code or can get it
    1.28 +if you want it, that you can change the software or use pieces of it
    1.29 +in new free programs; and that you know you can do these things.
    1.30 +
    1.31 +  To protect your rights, we need to make restrictions that forbid
    1.32 +anyone to deny you these rights or to ask you to surrender the rights.
    1.33 +These restrictions translate to certain responsibilities for you if you
    1.34 +distribute copies of the software, or if you modify it.
    1.35 +
    1.36 +  For example, if you distribute copies of such a program, whether
    1.37 +gratis or for a fee, you must give the recipients all the rights that
    1.38 +you have.  You must make sure that they, too, receive or can get the
    1.39 +source code.  And you must show them these terms so they know their
    1.40 +rights.
    1.41 +
    1.42 +  We protect your rights with two steps: (1) copyright the software, and
    1.43 +(2) offer you this license which gives you legal permission to copy,
    1.44 +distribute and/or modify the software.
    1.45 +
    1.46 +  Also, for each author's protection and ours, we want to make certain
    1.47 +that everyone understands that there is no warranty for this free
    1.48 +software.  If the software is modified by someone else and passed on, we
    1.49 +want its recipients to know that what they have is not the original, so
    1.50 +that any problems introduced by others will not reflect on the original
    1.51 +authors' reputations.
    1.52 +
    1.53 +  Finally, any free program is threatened constantly by software
    1.54 +patents.  We wish to avoid the danger that redistributors of a free
    1.55 +program will individually obtain patent licenses, in effect making the
    1.56 +program proprietary.  To prevent this, we have made it clear that any
    1.57 +patent must be licensed for everyone's free use or not licensed at all.
    1.58 +
    1.59 +  The precise terms and conditions for copying, distribution and
    1.60 +modification follow.
    1.61 +
    1.62 +		    GNU GENERAL PUBLIC LICENSE
    1.63 +   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    1.64 +
    1.65 +  0. This License applies to any program or other work which contains
    1.66 +a notice placed by the copyright holder saying it may be distributed
    1.67 +under the terms of this General Public License.  The "Program", below,
    1.68 +refers to any such program or work, and a "work based on the Program"
    1.69 +means either the Program or any derivative work under copyright law:
    1.70 +that is to say, a work containing the Program or a portion of it,
    1.71 +either verbatim or with modifications and/or translated into another
    1.72 +language.  (Hereinafter, translation is included without limitation in
    1.73 +the term "modification".)  Each licensee is addressed as "you".
    1.74 +
    1.75 +Activities other than copying, distribution and modification are not
    1.76 +covered by this License; they are outside its scope.  The act of
    1.77 +running the Program is not restricted, and the output from the Program
    1.78 +is covered only if its contents constitute a work based on the
    1.79 +Program (independent of having been made by running the Program).
    1.80 +Whether that is true depends on what the Program does.
    1.81 +
    1.82 +  1. You may copy and distribute verbatim copies of the Program's
    1.83 +source code as you receive it, in any medium, provided that you
    1.84 +conspicuously and appropriately publish on each copy an appropriate
    1.85 +copyright notice and disclaimer of warranty; keep intact all the
    1.86 +notices that refer to this License and to the absence of any warranty;
    1.87 +and give any other recipients of the Program a copy of this License
    1.88 +along with the Program.
    1.89 +
    1.90 +You may charge a fee for the physical act of transferring a copy, and
    1.91 +you may at your option offer warranty protection in exchange for a fee.
    1.92 +
    1.93 +  2. You may modify your copy or copies of the Program or any portion
    1.94 +of it, thus forming a work based on the Program, and copy and
    1.95 +distribute such modifications or work under the terms of Section 1
    1.96 +above, provided that you also meet all of these conditions:
    1.97 +
    1.98 +    a) You must cause the modified files to carry prominent notices
    1.99 +    stating that you changed the files and the date of any change.
   1.100 +
   1.101 +    b) You must cause any work that you distribute or publish, that in
   1.102 +    whole or in part contains or is derived from the Program or any
   1.103 +    part thereof, to be licensed as a whole at no charge to all third
   1.104 +    parties under the terms of this License.
   1.105 +
   1.106 +    c) If the modified program normally reads commands interactively
   1.107 +    when run, you must cause it, when started running for such
   1.108 +    interactive use in the most ordinary way, to print or display an
   1.109 +    announcement including an appropriate copyright notice and a
   1.110 +    notice that there is no warranty (or else, saying that you provide
   1.111 +    a warranty) and that users may redistribute the program under
   1.112 +    these conditions, and telling the user how to view a copy of this
   1.113 +    License.  (Exception: if the Program itself is interactive but
   1.114 +    does not normally print such an announcement, your work based on
   1.115 +    the Program is not required to print an announcement.)
   1.116 +
   1.117 +These requirements apply to the modified work as a whole.  If
   1.118 +identifiable sections of that work are not derived from the Program,
   1.119 +and can be reasonably considered independent and separate works in
   1.120 +themselves, then this License, and its terms, do not apply to those
   1.121 +sections when you distribute them as separate works.  But when you
   1.122 +distribute the same sections as part of a whole which is a work based
   1.123 +on the Program, the distribution of the whole must be on the terms of
   1.124 +this License, whose permissions for other licensees extend to the
   1.125 +entire whole, and thus to each and every part regardless of who wrote it.
   1.126 +
   1.127 +Thus, it is not the intent of this section to claim rights or contest
   1.128 +your rights to work written entirely by you; rather, the intent is to
   1.129 +exercise the right to control the distribution of derivative or
   1.130 +collective works based on the Program.
   1.131 +
   1.132 +In addition, mere aggregation of another work not based on the Program
   1.133 +with the Program (or with a work based on the Program) on a volume of
   1.134 +a storage or distribution medium does not bring the other work under
   1.135 +the scope of this License.
   1.136 +
   1.137 +  3. You may copy and distribute the Program (or a work based on it,
   1.138 +under Section 2) in object code or executable form under the terms of
   1.139 +Sections 1 and 2 above provided that you also do one of the following:
   1.140 +
   1.141 +    a) Accompany it with the complete corresponding machine-readable
   1.142 +    source code, which must be distributed under the terms of Sections
   1.143 +    1 and 2 above on a medium customarily used for software interchange; or,
   1.144 +
   1.145 +    b) Accompany it with a written offer, valid for at least three
   1.146 +    years, to give any third party, for a charge no more than your
   1.147 +    cost of physically performing source distribution, a complete
   1.148 +    machine-readable copy of the corresponding source code, to be
   1.149 +    distributed under the terms of Sections 1 and 2 above on a medium
   1.150 +    customarily used for software interchange; or,
   1.151 +
   1.152 +    c) Accompany it with the information you received as to the offer
   1.153 +    to distribute corresponding source code.  (This alternative is
   1.154 +    allowed only for noncommercial distribution and only if you
   1.155 +    received the program in object code or executable form with such
   1.156 +    an offer, in accord with Subsection b above.)
   1.157 +
   1.158 +The source code for a work means the preferred form of the work for
   1.159 +making modifications to it.  For an executable work, complete source
   1.160 +code means all the source code for all modules it contains, plus any
   1.161 +associated interface definition files, plus the scripts used to
   1.162 +control compilation and installation of the executable.  However, as a
   1.163 +special exception, the source code distributed need not include
   1.164 +anything that is normally distributed (in either source or binary
   1.165 +form) with the major components (compiler, kernel, and so on) of the
   1.166 +operating system on which the executable runs, unless that component
   1.167 +itself accompanies the executable.
   1.168 +
   1.169 +If distribution of executable or object code is made by offering
   1.170 +access to copy from a designated place, then offering equivalent
   1.171 +access to copy the source code from the same place counts as
   1.172 +distribution of the source code, even though third parties are not
   1.173 +compelled to copy the source along with the object code.
   1.174 +
   1.175 +  4. You may not copy, modify, sublicense, or distribute the Program
   1.176 +except as expressly provided under this License.  Any attempt
   1.177 +otherwise to copy, modify, sublicense or distribute the Program is
   1.178 +void, and will automatically terminate your rights under this License.
   1.179 +However, parties who have received copies, or rights, from you under
   1.180 +this License will not have their licenses terminated so long as such
   1.181 +parties remain in full compliance.
   1.182 +
   1.183 +  5. You are not required to accept this License, since you have not
   1.184 +signed it.  However, nothing else grants you permission to modify or
   1.185 +distribute the Program or its derivative works.  These actions are
   1.186 +prohibited by law if you do not accept this License.  Therefore, by
   1.187 +modifying or distributing the Program (or any work based on the
   1.188 +Program), you indicate your acceptance of this License to do so, and
   1.189 +all its terms and conditions for copying, distributing or modifying
   1.190 +the Program or works based on it.
   1.191 +
   1.192 +  6. Each time you redistribute the Program (or any work based on the
   1.193 +Program), the recipient automatically receives a license from the
   1.194 +original licensor to copy, distribute or modify the Program subject to
   1.195 +these terms and conditions.  You may not impose any further
   1.196 +restrictions on the recipients' exercise of the rights granted herein.
   1.197 +You are not responsible for enforcing compliance by third parties to
   1.198 +this License.
   1.199 +
   1.200 +  7. If, as a consequence of a court judgment or allegation of patent
   1.201 +infringement or for any other reason (not limited to patent issues),
   1.202 +conditions are imposed on you (whether by court order, agreement or
   1.203 +otherwise) that contradict the conditions of this License, they do not
   1.204 +excuse you from the conditions of this License.  If you cannot
   1.205 +distribute so as to satisfy simultaneously your obligations under this
   1.206 +License and any other pertinent obligations, then as a consequence you
   1.207 +may not distribute the Program at all.  For example, if a patent
   1.208 +license would not permit royalty-free redistribution of the Program by
   1.209 +all those who receive copies directly or indirectly through you, then
   1.210 +the only way you could satisfy both it and this License would be to
   1.211 +refrain entirely from distribution of the Program.
   1.212 +
   1.213 +If any portion of this section is held invalid or unenforceable under
   1.214 +any particular circumstance, the balance of the section is intended to
   1.215 +apply and the section as a whole is intended to apply in other
   1.216 +circumstances.
   1.217 +
   1.218 +It is not the purpose of this section to induce you to infringe any
   1.219 +patents or other property right claims or to contest validity of any
   1.220 +such claims; this section has the sole purpose of protecting the
   1.221 +integrity of the free software distribution system, which is
   1.222 +implemented by public license practices.  Many people have made
   1.223 +generous contributions to the wide range of software distributed
   1.224 +through that system in reliance on consistent application of that
   1.225 +system; it is up to the author/donor to decide if he or she is willing
   1.226 +to distribute software through any other system and a licensee cannot
   1.227 +impose that choice.
   1.228 +
   1.229 +This section is intended to make thoroughly clear what is believed to
   1.230 +be a consequence of the rest of this License.
   1.231 +
   1.232 +  8. If the distribution and/or use of the Program is restricted in
   1.233 +certain countries either by patents or by copyrighted interfaces, the
   1.234 +original copyright holder who places the Program under this License
   1.235 +may add an explicit geographical distribution limitation excluding
   1.236 +those countries, so that distribution is permitted only in or among
   1.237 +countries not thus excluded.  In such case, this License incorporates
   1.238 +the limitation as if written in the body of this License.
   1.239 +
   1.240 +  9. The Free Software Foundation may publish revised and/or new versions
   1.241 +of the General Public License from time to time.  Such new versions will
   1.242 +be similar in spirit to the present version, but may differ in detail to
   1.243 +address new problems or concerns.
   1.244 +
   1.245 +Each version is given a distinguishing version number.  If the Program
   1.246 +specifies a version number of this License which applies to it and "any
   1.247 +later version", you have the option of following the terms and conditions
   1.248 +either of that version or of any later version published by the Free
   1.249 +Software Foundation.  If the Program does not specify a version number of
   1.250 +this License, you may choose any version ever published by the Free Software
   1.251 +Foundation.
   1.252 +
   1.253 +  10. If you wish to incorporate parts of the Program into other free
   1.254 +programs whose distribution conditions are different, write to the author
   1.255 +to ask for permission.  For software which is copyrighted by the Free
   1.256 +Software Foundation, write to the Free Software Foundation; we sometimes
   1.257 +make exceptions for this.  Our decision will be guided by the two goals
   1.258 +of preserving the free status of all derivatives of our free software and
   1.259 +of promoting the sharing and reuse of software generally.
   1.260 +
   1.261 +			    NO WARRANTY
   1.262 +
   1.263 +  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
   1.264 +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
   1.265 +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
   1.266 +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
   1.267 +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
   1.268 +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
   1.269 +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
   1.270 +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
   1.271 +REPAIR OR CORRECTION.
   1.272 +
   1.273 +  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
   1.274 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
   1.275 +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
   1.276 +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
   1.277 +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
   1.278 +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
   1.279 +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
   1.280 +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
   1.281 +POSSIBILITY OF SUCH DAMAGES.
   1.282 +
   1.283 +		     END OF TERMS AND CONDITIONS
   1.284 +
   1.285 +	    How to Apply These Terms to Your New Programs
   1.286 +
   1.287 +  If you develop a new program, and you want it to be of the greatest
   1.288 +possible use to the public, the best way to achieve this is to make it
   1.289 +free software which everyone can redistribute and change under these terms.
   1.290 +
   1.291 +  To do so, attach the following notices to the program.  It is safest
   1.292 +to attach them to the start of each source file to most effectively
   1.293 +convey the exclusion of warranty; and each file should have at least
   1.294 +the "copyright" line and a pointer to where the full notice is found.
   1.295 +
   1.296 +    <one line to give the program's name and a brief idea of what it does.>
   1.297 +    Copyright (C) <year>  <name of author>
   1.298 +
   1.299 +    This program is free software; you can redistribute it and/or modify
   1.300 +    it under the terms of the GNU General Public License as published by
   1.301 +    the Free Software Foundation; either version 2 of the License, or
   1.302 +    (at your option) any later version.
   1.303 +
   1.304 +    This program is distributed in the hope that it will be useful,
   1.305 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.306 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.307 +    GNU General Public License for more details.
   1.308 +
   1.309 +    You should have received a copy of the GNU General Public License
   1.310 +    along with this program; if not, write to the Free Software
   1.311 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   1.312 +
   1.313 +
   1.314 +Also add information on how to contact you by electronic and paper mail.
   1.315 +
   1.316 +If the program is interactive, make it output a short notice like this
   1.317 +when it starts in an interactive mode:
   1.318 +
   1.319 +    Gnomovision version 69, Copyright (C) year  name of author
   1.320 +    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
   1.321 +    This is free software, and you are welcome to redistribute it
   1.322 +    under certain conditions; type `show c' for details.
   1.323 +
   1.324 +The hypothetical commands `show w' and `show c' should show the appropriate
   1.325 +parts of the General Public License.  Of course, the commands you use may
   1.326 +be called something other than `show w' and `show c'; they could even be
   1.327 +mouse-clicks or menu items--whatever suits your program.
   1.328 +
   1.329 +You should also get your employer (if you work as a programmer) or your
   1.330 +school, if any, to sign a "copyright disclaimer" for the program, if
   1.331 +necessary.  Here is a sample; alter the names:
   1.332 +
   1.333 +  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
   1.334 +  `Gnomovision' (which makes passes at compilers) written by James Hacker.
   1.335 +
   1.336 +  <signature of Ty Coon>, 1 April 1989
   1.337 +  Ty Coon, President of Vice
   1.338 +
   1.339 +This General Public License does not permit incorporating your program into
   1.340 +proprietary programs.  If your program is a subroutine library, you may
   1.341 +consider it more useful to permit linking proprietary applications with the
   1.342 +library.  If this is what you want to do, use the GNU Library General
   1.343 +Public License instead of this License.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/tools/xm-test/ChangeLog	Mon Nov 07 12:36:16 2005 +0100
     2.3 @@ -0,0 +1,11 @@
     2.4 +0.1.1
     2.5 +	Dan Smith <danms@us.ibm.com>
     2.6 +
     2.7 +	- More tests
     2.8 +	- Added build check for Flex/Bison
     2.9 +
    2.10 +
    2.11 +0.1.0
    2.12 +	Dan Smith <danms@us.ibm.com>
    2.13 +
    2.14 +	- initial release
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/tools/xm-test/Makefile.am	Mon Nov 07 12:36:16 2005 +0100
     3.3 @@ -0,0 +1,15 @@
     3.4 +SUBDIRS = ramdisk tests
     3.5 +EXTRA_DIST = lib runtest.sh mkreport
     3.6 +
     3.7 +# Remove any pyc's, CVS dirs, and prune the skel dirs
     3.8 +dist-hook:
     3.9 +	find $(distdir) -name '*~' -delete -print
    3.10 +	find $(distdir) -name '*.pyc' -delete -print
    3.11 +	for i in Root Repository Entries; do \
    3.12 +	  find $(distdir) -name $$i -delete ;\
    3.13 +	done
    3.14 +	find $(distdir) -name CVS -delete
    3.15 +	find $(distdir) -name '*.test' -delete
    3.16 +	cd $(distdir)/ramdisk/skel && find . -empty -delete
    3.17 +	chmod a+x $(distdir)/runtest.sh
    3.18 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/tools/xm-test/Makefile.in	Mon Nov 07 12:36:16 2005 +0100
     4.3 @@ -0,0 +1,578 @@
     4.4 +# Makefile.in generated by automake 1.9.5 from Makefile.am.
     4.5 +# @configure_input@
     4.6 +
     4.7 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     4.8 +# 2003, 2004, 2005  Free Software Foundation, Inc.
     4.9 +# This Makefile.in is free software; the Free Software Foundation
    4.10 +# gives unlimited permission to copy and/or distribute it,
    4.11 +# with or without modifications, as long as this notice is preserved.
    4.12 +
    4.13 +# This program is distributed in the hope that it will be useful,
    4.14 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    4.15 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    4.16 +# PARTICULAR PURPOSE.
    4.17 +
    4.18 +@SET_MAKE@
    4.19 +srcdir = @srcdir@
    4.20 +top_srcdir = @top_srcdir@
    4.21 +VPATH = @srcdir@
    4.22 +pkgdatadir = $(datadir)/@PACKAGE@
    4.23 +pkglibdir = $(libdir)/@PACKAGE@
    4.24 +pkgincludedir = $(includedir)/@PACKAGE@
    4.25 +top_builddir = .
    4.26 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
    4.27 +INSTALL = @INSTALL@
    4.28 +install_sh_DATA = $(install_sh) -c -m 644
    4.29 +install_sh_PROGRAM = $(install_sh) -c
    4.30 +install_sh_SCRIPT = $(install_sh) -c
    4.31 +INSTALL_HEADER = $(INSTALL_DATA)
    4.32 +transform = $(program_transform_name)
    4.33 +NORMAL_INSTALL = :
    4.34 +PRE_INSTALL = :
    4.35 +POST_INSTALL = :
    4.36 +NORMAL_UNINSTALL = :
    4.37 +PRE_UNINSTALL = :
    4.38 +POST_UNINSTALL = :
    4.39 +subdir = .
    4.40 +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
    4.41 +	$(srcdir)/Makefile.in $(top_srcdir)/configure \
    4.42 +	$(top_srcdir)/lib/XmTestLib/config.py.in \
    4.43 +	$(top_srcdir)/lib/XmTestReport/xmtest.py.in COPYING ChangeLog \
    4.44 +	TODO install-sh missing
    4.45 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    4.46 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
    4.47 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    4.48 +	$(ACLOCAL_M4)
    4.49 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
    4.50 + configure.lineno configure.status.lineno
    4.51 +mkinstalldirs = $(install_sh) -d
    4.52 +CONFIG_CLEAN_FILES = lib/XmTestReport/xmtest.py \
    4.53 +	lib/XmTestLib/config.py
    4.54 +SOURCES =
    4.55 +DIST_SOURCES =
    4.56 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
    4.57 +	html-recursive info-recursive install-data-recursive \
    4.58 +	install-exec-recursive install-info-recursive \
    4.59 +	install-recursive installcheck-recursive installdirs-recursive \
    4.60 +	pdf-recursive ps-recursive uninstall-info-recursive \
    4.61 +	uninstall-recursive
    4.62 +ETAGS = etags
    4.63 +CTAGS = ctags
    4.64 +DIST_SUBDIRS = $(SUBDIRS)
    4.65 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    4.66 +distdir = $(PACKAGE)-$(VERSION)
    4.67 +top_distdir = $(distdir)
    4.68 +am__remove_distdir = \
    4.69 +  { test ! -d $(distdir) \
    4.70 +    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
    4.71 +         && rm -fr $(distdir); }; }
    4.72 +DIST_ARCHIVES = $(distdir).tar.gz
    4.73 +GZIP_ENV = --best
    4.74 +distuninstallcheck_listfiles = find . -type f -print
    4.75 +distcleancheck_listfiles = find . -type f -print
    4.76 +ACLOCAL = @ACLOCAL@
    4.77 +AMDEP_FALSE = @AMDEP_FALSE@
    4.78 +AMDEP_TRUE = @AMDEP_TRUE@
    4.79 +AMTAR = @AMTAR@
    4.80 +AUTOCONF = @AUTOCONF@
    4.81 +AUTOHEADER = @AUTOHEADER@
    4.82 +AUTOMAKE = @AUTOMAKE@
    4.83 +AWK = @AWK@
    4.84 +CC = @CC@
    4.85 +CCDEPMODE = @CCDEPMODE@
    4.86 +CFLAGS = @CFLAGS@
    4.87 +CPPFLAGS = @CPPFLAGS@
    4.88 +CYGPATH_W = @CYGPATH_W@
    4.89 +DEFS = @DEFS@
    4.90 +DEPDIR = @DEPDIR@
    4.91 +ECHO_C = @ECHO_C@
    4.92 +ECHO_N = @ECHO_N@
    4.93 +ECHO_T = @ECHO_T@
    4.94 +ENABLE_VMX = @ENABLE_VMX@
    4.95 +EXEEXT = @EXEEXT@
    4.96 +INSTALL_DATA = @INSTALL_DATA@
    4.97 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
    4.98 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
    4.99 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
   4.100 +LDFLAGS = @LDFLAGS@
   4.101 +LEX = @LEX@
   4.102 +LEXLIB = @LEXLIB@
   4.103 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
   4.104 +LIBOBJS = @LIBOBJS@
   4.105 +LIBS = @LIBS@
   4.106 +LTLIBOBJS = @LTLIBOBJS@
   4.107 +MAKEINFO = @MAKEINFO@
   4.108 +OBJEXT = @OBJEXT@
   4.109 +PACKAGE = @PACKAGE@
   4.110 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
   4.111 +PACKAGE_NAME = @PACKAGE_NAME@
   4.112 +PACKAGE_STRING = @PACKAGE_STRING@
   4.113 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
   4.114 +PACKAGE_VERSION = @PACKAGE_VERSION@
   4.115 +PATH_SEPARATOR = @PATH_SEPARATOR@
   4.116 +SET_MAKE = @SET_MAKE@
   4.117 +SHELL = @SHELL@
   4.118 +STRIP = @STRIP@
   4.119 +TENV = @TENV@
   4.120 +VERSION = @VERSION@
   4.121 +YACC = @YACC@
   4.122 +ac_ct_CC = @ac_ct_CC@
   4.123 +ac_ct_STRIP = @ac_ct_STRIP@
   4.124 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
   4.125 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
   4.126 +am__include = @am__include@
   4.127 +am__leading_dot = @am__leading_dot@
   4.128 +am__quote = @am__quote@
   4.129 +am__tar = @am__tar@
   4.130 +am__untar = @am__untar@
   4.131 +bindir = @bindir@
   4.132 +build_alias = @build_alias@
   4.133 +datadir = @datadir@
   4.134 +exec_prefix = @exec_prefix@
   4.135 +host_alias = @host_alias@
   4.136 +includedir = @includedir@
   4.137 +infodir = @infodir@
   4.138 +install_sh = @install_sh@
   4.139 +libdir = @libdir@
   4.140 +libexecdir = @libexecdir@
   4.141 +localstatedir = @localstatedir@
   4.142 +mandir = @mandir@
   4.143 +mkdir_p = @mkdir_p@
   4.144 +oldincludedir = @oldincludedir@
   4.145 +prefix = @prefix@
   4.146 +program_transform_name = @program_transform_name@
   4.147 +sbindir = @sbindir@
   4.148 +sharedstatedir = @sharedstatedir@
   4.149 +sysconfdir = @sysconfdir@
   4.150 +target_alias = @target_alias@
   4.151 +SUBDIRS = ramdisk tests
   4.152 +EXTRA_DIST = lib runtest.sh mkreport
   4.153 +all: all-recursive
   4.154 +
   4.155 +.SUFFIXES:
   4.156 +am--refresh:
   4.157 +	@:
   4.158 +$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
   4.159 +	@for dep in $?; do \
   4.160 +	  case '$(am__configure_deps)' in \
   4.161 +	    *$$dep*) \
   4.162 +	      echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
   4.163 +	      cd $(srcdir) && $(AUTOMAKE) --foreign  \
   4.164 +		&& exit 0; \
   4.165 +	      exit 1;; \
   4.166 +	  esac; \
   4.167 +	done; \
   4.168 +	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  Makefile'; \
   4.169 +	cd $(top_srcdir) && \
   4.170 +	  $(AUTOMAKE) --foreign  Makefile
   4.171 +.PRECIOUS: Makefile
   4.172 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
   4.173 +	@case '$?' in \
   4.174 +	  *config.status*) \
   4.175 +	    echo ' $(SHELL) ./config.status'; \
   4.176 +	    $(SHELL) ./config.status;; \
   4.177 +	  *) \
   4.178 +	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
   4.179 +	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
   4.180 +	esac;
   4.181 +
   4.182 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
   4.183 +	$(SHELL) ./config.status --recheck
   4.184 +
   4.185 +$(top_srcdir)/configure:  $(am__configure_deps)
   4.186 +	cd $(srcdir) && $(AUTOCONF)
   4.187 +$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
   4.188 +	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
   4.189 +lib/XmTestReport/xmtest.py: $(top_builddir)/config.status $(top_srcdir)/lib/XmTestReport/xmtest.py.in
   4.190 +	cd $(top_builddir) && $(SHELL) ./config.status $@
   4.191 +lib/XmTestLib/config.py: $(top_builddir)/config.status $(top_srcdir)/lib/XmTestLib/config.py.in
   4.192 +	cd $(top_builddir) && $(SHELL) ./config.status $@
   4.193 +uninstall-info-am:
   4.194 +
   4.195 +# This directory's subdirectories are mostly independent; you can cd
   4.196 +# into them and run `make' without going through this Makefile.
   4.197 +# To change the values of `make' variables: instead of editing Makefiles,
   4.198 +# (1) if the variable is set in `config.status', edit `config.status'
   4.199 +#     (which will cause the Makefiles to be regenerated when you run `make');
   4.200 +# (2) otherwise, pass the desired values on the `make' command line.
   4.201 +$(RECURSIVE_TARGETS):
   4.202 +	@failcom='exit 1'; \
   4.203 +	for f in x $$MAKEFLAGS; do \
   4.204 +	  case $$f in \
   4.205 +	    *=* | --[!k]*);; \
   4.206 +	    *k*) failcom='fail=yes';; \
   4.207 +	  esac; \
   4.208 +	done; \
   4.209 +	dot_seen=no; \
   4.210 +	target=`echo $@ | sed s/-recursive//`; \
   4.211 +	list='$(SUBDIRS)'; for subdir in $$list; do \
   4.212 +	  echo "Making $$target in $$subdir"; \
   4.213 +	  if test "$$subdir" = "."; then \
   4.214 +	    dot_seen=yes; \
   4.215 +	    local_target="$$target-am"; \
   4.216 +	  else \
   4.217 +	    local_target="$$target"; \
   4.218 +	  fi; \
   4.219 +	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
   4.220 +	  || eval $$failcom; \
   4.221 +	done; \
   4.222 +	if test "$$dot_seen" = "no"; then \
   4.223 +	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
   4.224 +	fi; test -z "$$fail"
   4.225 +
   4.226 +mostlyclean-recursive clean-recursive distclean-recursive \
   4.227 +maintainer-clean-recursive:
   4.228 +	@failcom='exit 1'; \
   4.229 +	for f in x $$MAKEFLAGS; do \
   4.230 +	  case $$f in \
   4.231 +	    *=* | --[!k]*);; \
   4.232 +	    *k*) failcom='fail=yes';; \
   4.233 +	  esac; \
   4.234 +	done; \
   4.235 +	dot_seen=no; \
   4.236 +	case "$@" in \
   4.237 +	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
   4.238 +	  *) list='$(SUBDIRS)' ;; \
   4.239 +	esac; \
   4.240 +	rev=''; for subdir in $$list; do \
   4.241 +	  if test "$$subdir" = "."; then :; else \
   4.242 +	    rev="$$subdir $$rev"; \
   4.243 +	  fi; \
   4.244 +	done; \
   4.245 +	rev="$$rev ."; \
   4.246 +	target=`echo $@ | sed s/-recursive//`; \
   4.247 +	for subdir in $$rev; do \
   4.248 +	  echo "Making $$target in $$subdir"; \
   4.249 +	  if test "$$subdir" = "."; then \
   4.250 +	    local_target="$$target-am"; \
   4.251 +	  else \
   4.252 +	    local_target="$$target"; \
   4.253 +	  fi; \
   4.254 +	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
   4.255 +	  || eval $$failcom; \
   4.256 +	done && test -z "$$fail"
   4.257 +tags-recursive:
   4.258 +	list='$(SUBDIRS)'; for subdir in $$list; do \
   4.259 +	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
   4.260 +	done
   4.261 +ctags-recursive:
   4.262 +	list='$(SUBDIRS)'; for subdir in $$list; do \
   4.263 +	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
   4.264 +	done
   4.265 +
   4.266 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
   4.267 +	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
   4.268 +	unique=`for i in $$list; do \
   4.269 +	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   4.270 +	  done | \
   4.271 +	  $(AWK) '    { files[$$0] = 1; } \
   4.272 +	       END { for (i in files) print i; }'`; \
   4.273 +	mkid -fID $$unique
   4.274 +tags: TAGS
   4.275 +
   4.276 +TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
   4.277 +		$(TAGS_FILES) $(LISP)
   4.278 +	tags=; \
   4.279 +	here=`pwd`; \
   4.280 +	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
   4.281 +	  include_option=--etags-include; \
   4.282 +	  empty_fix=.; \
   4.283 +	else \
   4.284 +	  include_option=--include; \
   4.285 +	  empty_fix=; \
   4.286 +	fi; \
   4.287 +	list='$(SUBDIRS)'; for subdir in $$list; do \
   4.288 +	  if test "$$subdir" = .; then :; else \
   4.289 +	    test ! -f $$subdir/TAGS || \
   4.290 +	      tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
   4.291 +	  fi; \
   4.292 +	done; \
   4.293 +	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
   4.294 +	unique=`for i in $$list; do \
   4.295 +	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   4.296 +	  done | \
   4.297 +	  $(AWK) '    { files[$$0] = 1; } \
   4.298 +	       END { for (i in files) print i; }'`; \
   4.299 +	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
   4.300 +	  test -n "$$unique" || unique=$$empty_fix; \
   4.301 +	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
   4.302 +	    $$tags $$unique; \
   4.303 +	fi
   4.304 +ctags: CTAGS
   4.305 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
   4.306 +		$(TAGS_FILES) $(LISP)
   4.307 +	tags=; \
   4.308 +	here=`pwd`; \
   4.309 +	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
   4.310 +	unique=`for i in $$list; do \
   4.311 +	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   4.312 +	  done | \
   4.313 +	  $(AWK) '    { files[$$0] = 1; } \
   4.314 +	       END { for (i in files) print i; }'`; \
   4.315 +	test -z "$(CTAGS_ARGS)$$tags$$unique" \
   4.316 +	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
   4.317 +	     $$tags $$unique
   4.318 +
   4.319 +GTAGS:
   4.320 +	here=`$(am__cd) $(top_builddir) && pwd` \
   4.321 +	  && cd $(top_srcdir) \
   4.322 +	  && gtags -i $(GTAGS_ARGS) $$here
   4.323 +
   4.324 +distclean-tags:
   4.325 +	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
   4.326 +
   4.327 +distdir: $(DISTFILES)
   4.328 +	$(am__remove_distdir)
   4.329 +	mkdir $(distdir)
   4.330 +	$(mkdir_p) $(distdir)/lib/XmTestLib $(distdir)/lib/XmTestReport
   4.331 +	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
   4.332 +	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
   4.333 +	list='$(DISTFILES)'; for file in $$list; do \
   4.334 +	  case $$file in \
   4.335 +	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
   4.336 +	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
   4.337 +	  esac; \
   4.338 +	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
   4.339 +	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
   4.340 +	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
   4.341 +	    dir="/$$dir"; \
   4.342 +	    $(mkdir_p) "$(distdir)$$dir"; \
   4.343 +	  else \
   4.344 +	    dir=''; \
   4.345 +	  fi; \
   4.346 +	  if test -d $$d/$$file; then \
   4.347 +	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
   4.348 +	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
   4.349 +	    fi; \
   4.350 +	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
   4.351 +	  else \
   4.352 +	    test -f $(distdir)/$$file \
   4.353 +	    || cp -p $$d/$$file $(distdir)/$$file \
   4.354 +	    || exit 1; \
   4.355 +	  fi; \
   4.356 +	done
   4.357 +	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
   4.358 +	  if test "$$subdir" = .; then :; else \
   4.359 +	    test -d "$(distdir)/$$subdir" \
   4.360 +	    || $(mkdir_p) "$(distdir)/$$subdir" \
   4.361 +	    || exit 1; \
   4.362 +	    distdir=`$(am__cd) $(distdir) && pwd`; \
   4.363 +	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
   4.364 +	    (cd $$subdir && \
   4.365 +	      $(MAKE) $(AM_MAKEFLAGS) \
   4.366 +	        top_distdir="$$top_distdir" \
   4.367 +	        distdir="$$distdir/$$subdir" \
   4.368 +	        distdir) \
   4.369 +	      || exit 1; \
   4.370 +	  fi; \
   4.371 +	done
   4.372 +	$(MAKE) $(AM_MAKEFLAGS) \
   4.373 +	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
   4.374 +	  dist-hook
   4.375 +	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
   4.376 +	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
   4.377 +	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
   4.378 +	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
   4.379 +	|| chmod -R a+r $(distdir)
   4.380 +dist-gzip: distdir
   4.381 +	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
   4.382 +	$(am__remove_distdir)
   4.383 +
   4.384 +dist-bzip2: distdir
   4.385 +	tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
   4.386 +	$(am__remove_distdir)
   4.387 +
   4.388 +dist-tarZ: distdir
   4.389 +	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
   4.390 +	$(am__remove_distdir)
   4.391 +
   4.392 +dist-shar: distdir
   4.393 +	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
   4.394 +	$(am__remove_distdir)
   4.395 +
   4.396 +dist-zip: distdir
   4.397 +	-rm -f $(distdir).zip
   4.398 +	zip -rq $(distdir).zip $(distdir)
   4.399 +	$(am__remove_distdir)
   4.400 +
   4.401 +dist dist-all: distdir
   4.402 +	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
   4.403 +	$(am__remove_distdir)
   4.404 +
   4.405 +# This target untars the dist file and tries a VPATH configuration.  Then
   4.406 +# it guarantees that the distribution is self-contained by making another
   4.407 +# tarfile.
   4.408 +distcheck: dist
   4.409 +	case '$(DIST_ARCHIVES)' in \
   4.410 +	*.tar.gz*) \
   4.411 +	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
   4.412 +	*.tar.bz2*) \
   4.413 +	  bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
   4.414 +	*.tar.Z*) \
   4.415 +	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
   4.416 +	*.shar.gz*) \
   4.417 +	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
   4.418 +	*.zip*) \
   4.419 +	  unzip $(distdir).zip ;;\
   4.420 +	esac
   4.421 +	chmod -R a-w $(distdir); chmod a+w $(distdir)
   4.422 +	mkdir $(distdir)/_build
   4.423 +	mkdir $(distdir)/_inst
   4.424 +	chmod a-w $(distdir)
   4.425 +	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
   4.426 +	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
   4.427 +	  && cd $(distdir)/_build \
   4.428 +	  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
   4.429 +	    $(DISTCHECK_CONFIGURE_FLAGS) \
   4.430 +	  && $(MAKE) $(AM_MAKEFLAGS) \
   4.431 +	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
   4.432 +	  && $(MAKE) $(AM_MAKEFLAGS) check \
   4.433 +	  && $(MAKE) $(AM_MAKEFLAGS) install \
   4.434 +	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
   4.435 +	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
   4.436 +	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
   4.437 +	        distuninstallcheck \
   4.438 +	  && chmod -R a-w "$$dc_install_base" \
   4.439 +	  && ({ \
   4.440 +	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
   4.441 +	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
   4.442 +	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
   4.443 +	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
   4.444 +	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
   4.445 +	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
   4.446 +	  && rm -rf "$$dc_destdir" \
   4.447 +	  && $(MAKE) $(AM_MAKEFLAGS) dist \
   4.448 +	  && rm -rf $(DIST_ARCHIVES) \
   4.449 +	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
   4.450 +	$(am__remove_distdir)
   4.451 +	@(echo "$(distdir) archives ready for distribution: "; \
   4.452 +	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
   4.453 +	  sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
   4.454 +distuninstallcheck:
   4.455 +	@cd $(distuninstallcheck_dir) \
   4.456 +	&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
   4.457 +	   || { echo "ERROR: files left after uninstall:" ; \
   4.458 +	        if test -n "$(DESTDIR)"; then \
   4.459 +	          echo "  (check DESTDIR support)"; \
   4.460 +	        fi ; \
   4.461 +	        $(distuninstallcheck_listfiles) ; \
   4.462 +	        exit 1; } >&2
   4.463 +distcleancheck: distclean
   4.464 +	@if test '$(srcdir)' = . ; then \
   4.465 +	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
   4.466 +	  exit 1 ; \
   4.467 +	fi
   4.468 +	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
   4.469 +	  || { echo "ERROR: files left in build directory after distclean:" ; \
   4.470 +	       $(distcleancheck_listfiles) ; \
   4.471 +	       exit 1; } >&2
   4.472 +check-am: all-am
   4.473 +check: check-recursive
   4.474 +all-am: Makefile
   4.475 +installdirs: installdirs-recursive
   4.476 +installdirs-am:
   4.477 +install: install-recursive
   4.478 +install-exec: install-exec-recursive
   4.479 +install-data: install-data-recursive
   4.480 +uninstall: uninstall-recursive
   4.481 +
   4.482 +install-am: all-am
   4.483 +	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
   4.484 +
   4.485 +installcheck: installcheck-recursive
   4.486 +install-strip:
   4.487 +	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
   4.488 +	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
   4.489 +	  `test -z '$(STRIP)' || \
   4.490 +	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
   4.491 +mostlyclean-generic:
   4.492 +
   4.493 +clean-generic:
   4.494 +
   4.495 +distclean-generic:
   4.496 +	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
   4.497 +
   4.498 +maintainer-clean-generic:
   4.499 +	@echo "This command is intended for maintainers to use"
   4.500 +	@echo "it deletes files that may require special tools to rebuild."
   4.501 +clean: clean-recursive
   4.502 +
   4.503 +clean-am: clean-generic mostlyclean-am
   4.504 +
   4.505 +distclean: distclean-recursive
   4.506 +	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
   4.507 +	-rm -f Makefile
   4.508 +distclean-am: clean-am distclean-generic distclean-tags
   4.509 +
   4.510 +dvi: dvi-recursive
   4.511 +
   4.512 +dvi-am:
   4.513 +
   4.514 +html: html-recursive
   4.515 +
   4.516 +info: info-recursive
   4.517 +
   4.518 +info-am:
   4.519 +
   4.520 +install-data-am:
   4.521 +
   4.522 +install-exec-am:
   4.523 +
   4.524 +install-info: install-info-recursive
   4.525 +
   4.526 +install-man:
   4.527 +
   4.528 +installcheck-am:
   4.529 +
   4.530 +maintainer-clean: maintainer-clean-recursive
   4.531 +	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
   4.532 +	-rm -rf $(top_srcdir)/autom4te.cache
   4.533 +	-rm -f Makefile
   4.534 +maintainer-clean-am: distclean-am maintainer-clean-generic
   4.535 +
   4.536 +mostlyclean: mostlyclean-recursive
   4.537 +
   4.538 +mostlyclean-am: mostlyclean-generic
   4.539 +
   4.540 +pdf: pdf-recursive
   4.541 +
   4.542 +pdf-am:
   4.543 +
   4.544 +ps: ps-recursive
   4.545 +
   4.546 +ps-am:
   4.547 +
   4.548 +uninstall-am: uninstall-info-am
   4.549 +
   4.550 +uninstall-info: uninstall-info-recursive
   4.551 +
   4.552 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
   4.553 +	check-am clean clean-generic clean-recursive ctags \
   4.554 +	ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \
   4.555 +	dist-shar dist-tarZ dist-zip distcheck distclean \
   4.556 +	distclean-generic distclean-recursive distclean-tags \
   4.557 +	distcleancheck distdir distuninstallcheck dvi dvi-am html \
   4.558 +	html-am info info-am install install-am install-data \
   4.559 +	install-data-am install-exec install-exec-am install-info \
   4.560 +	install-info-am install-man install-strip installcheck \
   4.561 +	installcheck-am installdirs installdirs-am maintainer-clean \
   4.562 +	maintainer-clean-generic maintainer-clean-recursive \
   4.563 +	mostlyclean mostlyclean-generic mostlyclean-recursive pdf \
   4.564 +	pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
   4.565 +	uninstall-info-am
   4.566 +
   4.567 +
   4.568 +# Remove any pyc's, CVS dirs, and prune the skel dirs
   4.569 +dist-hook:
   4.570 +	find $(distdir) -name '*~' -delete -print
   4.571 +	find $(distdir) -name '*.pyc' -delete -print
   4.572 +	for i in Root Repository Entries; do \
   4.573 +	  find $(distdir) -name $$i -delete ;\
   4.574 +	done
   4.575 +	find $(distdir) -name CVS -delete
   4.576 +	find $(distdir) -name '*.test' -delete
   4.577 +	cd $(distdir)/ramdisk/skel && find . -empty -delete
   4.578 +	chmod a+x $(distdir)/runtest.sh
   4.579 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
   4.580 +# Otherwise a system limit (for SysV at least) may be exceeded.
   4.581 +.NOEXPORT:
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/tools/xm-test/README	Mon Nov 07 12:36:16 2005 +0100
     5.3 @@ -0,0 +1,133 @@
     5.4 +
     5.5 +xm-test README
     5.6 +
     5.7 +Copyright (C) International Business Machines Corp., 2005
     5.8 +Author(s): Dan Smith <danms@us.ibm.com> 
     5.9 +  	   Woody Marvel <marvel@us.ibm.com>
    5.10 +
    5.11 +Overview
    5.12 +========
    5.13 +
    5.14 +This suite provides a framework for testing the Xen userspace tools.
    5.15 +The directory structure is:
    5.16 +
    5.17 +  ./xm-test
    5.18 +   |
    5.19 +   +-/lib: Python support libraries
    5.20 +   |
    5.21 +   +-/ramdisk: Staging area for building the test ramdisk
    5.22 +   |
    5.23 +   +-/tests
    5.24 +   | |
    5.25 +   | +-/create: Tests for the 'xm create' command
    5.26 +   | +-/destroy: Tests for the 'xm destroy' command
    5.27 +   |  . . .
    5.28 +   |
    5.29 +   +-/utils: Utility scripts for ramdisk building
    5.30 +
    5.31 +
    5.32 +Building
    5.33 +========
    5.34 +
    5.35 +Before the test suite can be used, the ramdisk must be built from
    5.36 +source.  All source needed for this process is automatically
    5.37 +downloaded, extracted, and compiled.  Due to the need to create
    5.38 +special files, this process must be done as root:
    5.39 +
    5.40 +   # ./configure
    5.41 +   # make
    5.42 +
    5.43 +NB: If you have the initrd.img from a previous version of xm-test, you
    5.44 +can copy it into the ramdisk directory to eliminate the need to
    5.45 +rebuild it.  So far, nothing has changed in the ramdisk since xm-test
    5.46 +version 0.1.1.  If you do this, there is no need to run 'make' again.
    5.47 +Simply copy the initrd.img file into ramdisk/ and then run the
    5.48 +runtest.sh script.
    5.49 +
    5.50 +
    5.51 +Running
    5.52 +=======
    5.53 +
    5.54 +By running "./runtest.sh logfile" at the top level, all tests will be
    5.55 +run in alphabetic order.  To run a specific test group, run "make
    5.56 +check" from inside that group directory.  For example:
    5.57 +
    5.58 +   # cd tests/create
    5.59 +   # make check
    5.60 +
    5.61 +The runtest.sh script will create several files, including a .report
    5.62 +file, which is the cleaned up, email-friendly report of failures.
    5.63 +Additionally, the script will submit your results to the development
    5.64 +team for trend analysis.  This helps us determine the level of success
    5.65 +people "out there" are having with different versions of Xen.
    5.66 +
    5.67 +If you wish to run xm-test in an automated batch environment, you can
    5.68 +run the script with the "-b" flag, which will try to prevent it from
    5.69 +asking any questions interactively.  You should run it manually at
    5.70 +least once to generate the "contact_info" file, which will be used in
    5.71 +subsequent runs.
    5.72 +
    5.73 +BIG FAT WARNING: The framework assumes it is running on a dedicated
    5.74 +machine.  As such, the library automatically destroys any running
    5.75 +DomUs on the sytem to provide each test with a "clean slate".
    5.76 +
    5.77 +
    5.78 +Extending
    5.79 +=========
    5.80 +
    5.81 +Additional tests may be added in existing groups to test additional
    5.82 +cases for a given xm subcommand.  Test programs should be named
    5.83 +according to the following scheme:
    5.84 +	
    5.85 +  XY_group_name_{pos,neg}.py
    5.86 +
    5.87 +Where:
    5.88 +  XY        is the next number in line
    5.89 +  group     is the name of the subcommand being tested
    5.90 +  name      is the short name of the test
    5.91 +  {pos,neg} denotes whether this is a positive or negative test case
    5.92 +
    5.93 +New subcommand groups should be added as directories named after the
    5.94 +subcommand itself.  The "Makefile.am.template" should be copied into
    5.95 +the new group directory as "Makefile.am".
    5.96 +
    5.97 +
    5.98 +Developer Notes
    5.99 +===============
   5.100 +
   5.101 +Our library provides a DomU console abstraction for automated
   5.102 +execution of commands.  Please note that this is relatively fragile,
   5.103 +and is intended for use only with the ramdisk built by the framework.
   5.104 +Because the console experiences some occasional corruption, this
   5.105 +method is not completely perfect at the moment, although the authors
   5.106 +use it with relatively few problems.
   5.107 +
   5.108 +
   5.109 +Known Issues
   5.110 +============
   5.111 +
   5.112 +- 08/22/2005 Dan Smith:
   5.113 +    Current versions of Xen experience long delays on
   5.114 +    boot, due to the blkif frontend waiting (and timing
   5.115 +    out) for the backend.  We now implicitly introduce
   5.116 +    a pause in XmTestDomain.start() to remedy
   5.117 +    this across all tests that need it.
   5.118 +
   5.119 +- 09/22/2005 Dan Smith:
   5.120 +    The save, restore, and migrate tests have been turned
   5.121 +    back on, as we have implemented timeout functionality 
   5.122 +    in "traceCommand".  Since migrate is known to hang, we 
   5.123 +    can now safely include it in the default test run, and
   5.124 +    have it be killed if it never finishes.  As before,
   5.125 +    feedback about these tests would be specifically
   5.126 +    appreciated.
   5.127 +
   5.128 +Reporting Bugs
   5.129 +==============
   5.130 +
   5.131 +If you find a bug in the test framework, report it to:
   5.132 +
   5.133 +   Dan Smith <danms@us.ibm.com>
   5.134 +
   5.135 +If you find a bug in a specific test case, contact the author of the
   5.136 +test case first.
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/tools/xm-test/TODO	Mon Nov 07 12:36:16 2005 +0100
     6.3 @@ -0,0 +1,3 @@
     6.4 +Todo List for xm-test
     6.5 +
     6.6 +
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/tools/xm-test/aclocal.m4	Mon Nov 07 12:36:16 2005 +0100
     7.3 @@ -0,0 +1,850 @@
     7.4 +# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
     7.5 +
     7.6 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
     7.7 +# 2005  Free Software Foundation, Inc.
     7.8 +# This file is free software; the Free Software Foundation
     7.9 +# gives unlimited permission to copy and/or distribute it,
    7.10 +# with or without modifications, as long as this notice is preserved.
    7.11 +
    7.12 +# This program is distributed in the hope that it will be useful,
    7.13 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    7.14 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    7.15 +# PARTICULAR PURPOSE.
    7.16 +
    7.17 +# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
    7.18 +#
    7.19 +# This file is free software; the Free Software Foundation
    7.20 +# gives unlimited permission to copy and/or distribute it,
    7.21 +# with or without modifications, as long as this notice is preserved.
    7.22 +
    7.23 +# AM_AUTOMAKE_VERSION(VERSION)
    7.24 +# ----------------------------
    7.25 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
    7.26 +# generated from the m4 files accompanying Automake X.Y.
    7.27 +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
    7.28 +
    7.29 +# AM_SET_CURRENT_AUTOMAKE_VERSION
    7.30 +# -------------------------------
    7.31 +# Call AM_AUTOMAKE_VERSION so it can be traced.
    7.32 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    7.33 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    7.34 +	 [AM_AUTOMAKE_VERSION([1.9.5])])
    7.35 +
    7.36 +# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
    7.37 +
    7.38 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
    7.39 +#
    7.40 +# This file is free software; the Free Software Foundation
    7.41 +# gives unlimited permission to copy and/or distribute it,
    7.42 +# with or without modifications, as long as this notice is preserved.
    7.43 +
    7.44 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
    7.45 +# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
    7.46 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
    7.47 +#
    7.48 +# Of course, Automake must honor this variable whenever it calls a
    7.49 +# tool from the auxiliary directory.  The problem is that $srcdir (and
    7.50 +# therefore $ac_aux_dir as well) can be either absolute or relative,
    7.51 +# depending on how configure is run.  This is pretty annoying, since
    7.52 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
    7.53 +# source directory, any form will work fine, but in subdirectories a
    7.54 +# relative path needs to be adjusted first.
    7.55 +#
    7.56 +# $ac_aux_dir/missing
    7.57 +#    fails when called from a subdirectory if $ac_aux_dir is relative
    7.58 +# $top_srcdir/$ac_aux_dir/missing
    7.59 +#    fails if $ac_aux_dir is absolute,
    7.60 +#    fails when called from a subdirectory in a VPATH build with
    7.61 +#          a relative $ac_aux_dir
    7.62 +#
    7.63 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
    7.64 +# are both prefixed by $srcdir.  In an in-source build this is usually
    7.65 +# harmless because $srcdir is `.', but things will broke when you
    7.66 +# start a VPATH build or use an absolute $srcdir.
    7.67 +#
    7.68 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
    7.69 +# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
    7.70 +#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
    7.71 +# and then we would define $MISSING as
    7.72 +#   MISSING="\${SHELL} $am_aux_dir/missing"
    7.73 +# This will work as long as MISSING is not called from configure, because
    7.74 +# unfortunately $(top_srcdir) has no meaning in configure.
    7.75 +# However there are other variables, like CC, which are often used in
    7.76 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
    7.77 +#
    7.78 +# Another solution, used here, is to always expand $ac_aux_dir to an
    7.79 +# absolute PATH.  The drawback is that using absolute paths prevent a
    7.80 +# configured tree to be moved without reconfiguration.
    7.81 +
    7.82 +AC_DEFUN([AM_AUX_DIR_EXPAND],
    7.83 +[dnl Rely on autoconf to set up CDPATH properly.
    7.84 +AC_PREREQ([2.50])dnl
    7.85 +# expand $ac_aux_dir to an absolute path
    7.86 +am_aux_dir=`cd $ac_aux_dir && pwd`
    7.87 +])
    7.88 +
    7.89 +# AM_CONDITIONAL                                            -*- Autoconf -*-
    7.90 +
    7.91 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
    7.92 +# Free Software Foundation, Inc.
    7.93 +#
    7.94 +# This file is free software; the Free Software Foundation
    7.95 +# gives unlimited permission to copy and/or distribute it,
    7.96 +# with or without modifications, as long as this notice is preserved.
    7.97 +
    7.98 +# serial 7
    7.99 +
   7.100 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
   7.101 +# -------------------------------------
   7.102 +# Define a conditional.
   7.103 +AC_DEFUN([AM_CONDITIONAL],
   7.104 +[AC_PREREQ(2.52)dnl
   7.105 + ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
   7.106 +	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
   7.107 +AC_SUBST([$1_TRUE])
   7.108 +AC_SUBST([$1_FALSE])
   7.109 +if $2; then
   7.110 +  $1_TRUE=
   7.111 +  $1_FALSE='#'
   7.112 +else
   7.113 +  $1_TRUE='#'
   7.114 +  $1_FALSE=
   7.115 +fi
   7.116 +AC_CONFIG_COMMANDS_PRE(
   7.117 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
   7.118 +  AC_MSG_ERROR([[conditional "$1" was never defined.
   7.119 +Usually this means the macro was only invoked conditionally.]])
   7.120 +fi])])
   7.121 +
   7.122 +
   7.123 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
   7.124 +# Free Software Foundation, Inc.
   7.125 +#
   7.126 +# This file is free software; the Free Software Foundation
   7.127 +# gives unlimited permission to copy and/or distribute it,
   7.128 +# with or without modifications, as long as this notice is preserved.
   7.129 +
   7.130 +# serial 8
   7.131 +
   7.132 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
   7.133 +# written in clear, in which case automake, when reading aclocal.m4,
   7.134 +# will think it sees a *use*, and therefore will trigger all it's
   7.135 +# C support machinery.  Also note that it means that autoscan, seeing
   7.136 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
   7.137 +
   7.138 +
   7.139 +# _AM_DEPENDENCIES(NAME)
   7.140 +# ----------------------
   7.141 +# See how the compiler implements dependency checking.
   7.142 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
   7.143 +# We try a few techniques and use that to set a single cache variable.
   7.144 +#
   7.145 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
   7.146 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
   7.147 +# dependency, and given that the user is not expected to run this macro,
   7.148 +# just rely on AC_PROG_CC.
   7.149 +AC_DEFUN([_AM_DEPENDENCIES],
   7.150 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
   7.151 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
   7.152 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
   7.153 +AC_REQUIRE([AM_DEP_TRACK])dnl
   7.154 +
   7.155 +ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
   7.156 +       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
   7.157 +       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
   7.158 +       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
   7.159 +                   [depcc="$$1"   am_compiler_list=])
   7.160 +
   7.161 +AC_CACHE_CHECK([dependency style of $depcc],
   7.162 +               [am_cv_$1_dependencies_compiler_type],
   7.163 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   7.164 +  # We make a subdir and do the tests there.  Otherwise we can end up
   7.165 +  # making bogus files that we don't know about and never remove.  For
   7.166 +  # instance it was reported that on HP-UX the gcc test will end up
   7.167 +  # making a dummy file named `D' -- because `-MD' means `put the output
   7.168 +  # in D'.
   7.169 +  mkdir conftest.dir
   7.170 +  # Copy depcomp to subdir because otherwise we won't find it if we're
   7.171 +  # using a relative directory.
   7.172 +  cp "$am_depcomp" conftest.dir
   7.173 +  cd conftest.dir
   7.174 +  # We will build objects and dependencies in a subdirectory because
   7.175 +  # it helps to detect inapplicable dependency modes.  For instance
   7.176 +  # both Tru64's cc and ICC support -MD to output dependencies as a
   7.177 +  # side effect of compilation, but ICC will put the dependencies in
   7.178 +  # the current directory while Tru64 will put them in the object
   7.179 +  # directory.
   7.180 +  mkdir sub
   7.181 +
   7.182 +  am_cv_$1_dependencies_compiler_type=none
   7.183 +  if test "$am_compiler_list" = ""; then
   7.184 +     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
   7.185 +  fi
   7.186 +  for depmode in $am_compiler_list; do
   7.187 +    # Setup a source with many dependencies, because some compilers
   7.188 +    # like to wrap large dependency lists on column 80 (with \), and
   7.189 +    # we should not choose a depcomp mode which is confused by this.
   7.190 +    #
   7.191 +    # We need to recreate these files for each test, as the compiler may
   7.192 +    # overwrite some of them when testing with obscure command lines.
   7.193 +    # This happens at least with the AIX C compiler.
   7.194 +    : > sub/conftest.c
   7.195 +    for i in 1 2 3 4 5 6; do
   7.196 +      echo '#include "conftst'$i'.h"' >> sub/conftest.c
   7.197 +      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   7.198 +      # Solaris 8's {/usr,}/bin/sh.
   7.199 +      touch sub/conftst$i.h
   7.200 +    done
   7.201 +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   7.202 +
   7.203 +    case $depmode in
   7.204 +    nosideeffect)
   7.205 +      # after this tag, mechanisms are not by side-effect, so they'll
   7.206 +      # only be used when explicitly requested
   7.207 +      if test "x$enable_dependency_tracking" = xyes; then
   7.208 +	continue
   7.209 +      else
   7.210 +	break
   7.211 +      fi
   7.212 +      ;;
   7.213 +    none) break ;;
   7.214 +    esac
   7.215 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
   7.216 +    # mode.  It turns out that the SunPro C++ compiler does not properly
   7.217 +    # handle `-M -o', and we need to detect this.
   7.218 +    if depmode=$depmode \
   7.219 +       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   7.220 +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   7.221 +       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
   7.222 +         >/dev/null 2>conftest.err &&
   7.223 +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   7.224 +       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
   7.225 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   7.226 +      # icc doesn't choke on unknown options, it will just issue warnings
   7.227 +      # or remarks (even with -Werror).  So we grep stderr for any message
   7.228 +      # that says an option was ignored or not supported.
   7.229 +      # When given -MP, icc 7.0 and 7.1 complain thusly:
   7.230 +      #   icc: Command line warning: ignoring option '-M'; no argument required
   7.231 +      # The diagnosis changed in icc 8.0:
   7.232 +      #   icc: Command line remark: option '-MP' not supported
   7.233 +      if (grep 'ignoring option' conftest.err ||
   7.234 +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   7.235 +        am_cv_$1_dependencies_compiler_type=$depmode
   7.236 +        break
   7.237 +      fi
   7.238 +    fi
   7.239 +  done
   7.240 +
   7.241 +  cd ..
   7.242 +  rm -rf conftest.dir
   7.243 +else
   7.244 +  am_cv_$1_dependencies_compiler_type=none
   7.245 +fi
   7.246 +])
   7.247 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
   7.248 +AM_CONDITIONAL([am__fastdep$1], [
   7.249 +  test "x$enable_dependency_tracking" != xno \
   7.250 +  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
   7.251 +])
   7.252 +
   7.253 +
   7.254 +# AM_SET_DEPDIR
   7.255 +# -------------
   7.256 +# Choose a directory name for dependency files.
   7.257 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
   7.258 +AC_DEFUN([AM_SET_DEPDIR],
   7.259 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
   7.260 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
   7.261 +])
   7.262 +
   7.263 +
   7.264 +# AM_DEP_TRACK
   7.265 +# ------------
   7.266 +AC_DEFUN([AM_DEP_TRACK],
   7.267 +[AC_ARG_ENABLE(dependency-tracking,
   7.268 +[  --disable-dependency-tracking  speeds up one-time build
   7.269 +  --enable-dependency-tracking   do not reject slow dependency extractors])
   7.270 +if test "x$enable_dependency_tracking" != xno; then
   7.271 +  am_depcomp="$ac_aux_dir/depcomp"
   7.272 +  AMDEPBACKSLASH='\'
   7.273 +fi
   7.274 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
   7.275 +AC_SUBST([AMDEPBACKSLASH])
   7.276 +])
   7.277 +
   7.278 +# Generate code to set up dependency tracking.              -*- Autoconf -*-
   7.279 +
   7.280 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
   7.281 +# Free Software Foundation, Inc.
   7.282 +#
   7.283 +# This file is free software; the Free Software Foundation
   7.284 +# gives unlimited permission to copy and/or distribute it,
   7.285 +# with or without modifications, as long as this notice is preserved.
   7.286 +
   7.287 +#serial 3
   7.288 +
   7.289 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
   7.290 +# ------------------------------
   7.291 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
   7.292 +[for mf in $CONFIG_FILES; do
   7.293 +  # Strip MF so we end up with the name of the file.
   7.294 +  mf=`echo "$mf" | sed -e 's/:.*$//'`
   7.295 +  # Check whether this is an Automake generated Makefile or not.
   7.296 +  # We used to match only the files named `Makefile.in', but
   7.297 +  # some people rename them; so instead we look at the file content.
   7.298 +  # Grep'ing the first line is not enough: some people post-process
   7.299 +  # each Makefile.in and add a new line on top of each file to say so.
   7.300 +  # So let's grep whole file.
   7.301 +  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
   7.302 +    dirpart=`AS_DIRNAME("$mf")`
   7.303 +  else
   7.304 +    continue
   7.305 +  fi
   7.306 +  # Extract the definition of DEPDIR, am__include, and am__quote
   7.307 +  # from the Makefile without running `make'.
   7.308 +  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   7.309 +  test -z "$DEPDIR" && continue
   7.310 +  am__include=`sed -n 's/^am__include = //p' < "$mf"`
   7.311 +  test -z "am__include" && continue
   7.312 +  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   7.313 +  # When using ansi2knr, U may be empty or an underscore; expand it
   7.314 +  U=`sed -n 's/^U = //p' < "$mf"`
   7.315 +  # Find all dependency output files, they are included files with
   7.316 +  # $(DEPDIR) in their names.  We invoke sed twice because it is the
   7.317 +  # simplest approach to changing $(DEPDIR) to its actual value in the
   7.318 +  # expansion.
   7.319 +  for file in `sed -n "
   7.320 +    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   7.321 +       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
   7.322 +    # Make sure the directory exists.
   7.323 +    test -f "$dirpart/$file" && continue
   7.324 +    fdir=`AS_DIRNAME(["$file"])`
   7.325 +    AS_MKDIR_P([$dirpart/$fdir])
   7.326 +    # echo "creating $dirpart/$file"
   7.327 +    echo '# dummy' > "$dirpart/$file"
   7.328 +  done
   7.329 +done
   7.330 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
   7.331 +
   7.332 +
   7.333 +# AM_OUTPUT_DEPENDENCY_COMMANDS
   7.334 +# -----------------------------
   7.335 +# This macro should only be invoked once -- use via AC_REQUIRE.
   7.336 +#
   7.337 +# This code is only required when automatic dependency tracking
   7.338 +# is enabled.  FIXME.  This creates each `.P' file that we will
   7.339 +# need in order to bootstrap the dependency handling code.
   7.340 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
   7.341 +[AC_CONFIG_COMMANDS([depfiles],
   7.342 +     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
   7.343 +     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
   7.344 +])
   7.345 +
   7.346 +# Do all the work for Automake.                             -*- Autoconf -*-
   7.347 +
   7.348 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
   7.349 +# Free Software Foundation, Inc.
   7.350 +#
   7.351 +# This file is free software; the Free Software Foundation
   7.352 +# gives unlimited permission to copy and/or distribute it,
   7.353 +# with or without modifications, as long as this notice is preserved.
   7.354 +
   7.355 +# serial 12
   7.356 +
   7.357 +# This macro actually does too much.  Some checks are only needed if
   7.358 +# your package does certain things.  But this isn't really a big deal.
   7.359 +
   7.360 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
   7.361 +# AM_INIT_AUTOMAKE([OPTIONS])
   7.362 +# -----------------------------------------------
   7.363 +# The call with PACKAGE and VERSION arguments is the old style
   7.364 +# call (pre autoconf-2.50), which is being phased out.  PACKAGE
   7.365 +# and VERSION should now be passed to AC_INIT and removed from
   7.366 +# the call to AM_INIT_AUTOMAKE.
   7.367 +# We support both call styles for the transition.  After
   7.368 +# the next Automake release, Autoconf can make the AC_INIT
   7.369 +# arguments mandatory, and then we can depend on a new Autoconf
   7.370 +# release and drop the old call support.
   7.371 +AC_DEFUN([AM_INIT_AUTOMAKE],
   7.372 +[AC_PREREQ([2.58])dnl
   7.373 +dnl Autoconf wants to disallow AM_ names.  We explicitly allow
   7.374 +dnl the ones we care about.
   7.375 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
   7.376 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
   7.377 +AC_REQUIRE([AC_PROG_INSTALL])dnl
   7.378 +# test to see if srcdir already configured
   7.379 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
   7.380 +   test -f $srcdir/config.status; then
   7.381 +  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
   7.382 +fi
   7.383 +
   7.384 +# test whether we have cygpath
   7.385 +if test -z "$CYGPATH_W"; then
   7.386 +  if (cygpath --version) >/dev/null 2>/dev/null; then
   7.387 +    CYGPATH_W='cygpath -w'
   7.388 +  else
   7.389 +    CYGPATH_W=echo
   7.390 +  fi
   7.391 +fi
   7.392 +AC_SUBST([CYGPATH_W])
   7.393 +
   7.394 +# Define the identity of the package.
   7.395 +dnl Distinguish between old-style and new-style calls.
   7.396 +m4_ifval([$2],
   7.397 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
   7.398 + AC_SUBST([PACKAGE], [$1])dnl
   7.399 + AC_SUBST([VERSION], [$2])],
   7.400 +[_AM_SET_OPTIONS([$1])dnl
   7.401 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
   7.402 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
   7.403 +
   7.404 +_AM_IF_OPTION([no-define],,
   7.405 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
   7.406 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
   7.407 +
   7.408 +# Some tools Automake needs.
   7.409 +AC_REQUIRE([AM_SANITY_CHECK])dnl
   7.410 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
   7.411 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
   7.412 +AM_MISSING_PROG(AUTOCONF, autoconf)
   7.413 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
   7.414 +AM_MISSING_PROG(AUTOHEADER, autoheader)
   7.415 +AM_MISSING_PROG(MAKEINFO, makeinfo)
   7.416 +AM_PROG_INSTALL_SH
   7.417 +AM_PROG_INSTALL_STRIP
   7.418 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
   7.419 +# We need awk for the "check" target.  The system "awk" is bad on
   7.420 +# some platforms.
   7.421 +AC_REQUIRE([AC_PROG_AWK])dnl
   7.422 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
   7.423 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
   7.424 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
   7.425 +              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
   7.426 +	      		     [_AM_PROG_TAR([v7])])])
   7.427 +_AM_IF_OPTION([no-dependencies],,
   7.428 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
   7.429 +                  [_AM_DEPENDENCIES(CC)],
   7.430 +                  [define([AC_PROG_CC],
   7.431 +                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
   7.432 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
   7.433 +                  [_AM_DEPENDENCIES(CXX)],
   7.434 +                  [define([AC_PROG_CXX],
   7.435 +                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
   7.436 +])
   7.437 +])
   7.438 +
   7.439 +
   7.440 +# When config.status generates a header, we must update the stamp-h file.
   7.441 +# This file resides in the same directory as the config header
   7.442 +# that is generated.  The stamp files are numbered to have different names.
   7.443 +
   7.444 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
   7.445 +# loop where config.status creates the headers, so we can generate
   7.446 +# our stamp files there.
   7.447 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
   7.448 +[# Compute $1's index in $config_headers.
   7.449 +_am_stamp_count=1
   7.450 +for _am_header in $config_headers :; do
   7.451 +  case $_am_header in
   7.452 +    $1 | $1:* )
   7.453 +      break ;;
   7.454 +    * )
   7.455 +      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   7.456 +  esac
   7.457 +done
   7.458 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
   7.459 +
   7.460 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
   7.461 +#
   7.462 +# This file is free software; the Free Software Foundation
   7.463 +# gives unlimited permission to copy and/or distribute it,
   7.464 +# with or without modifications, as long as this notice is preserved.
   7.465 +
   7.466 +# AM_PROG_INSTALL_SH
   7.467 +# ------------------
   7.468 +# Define $install_sh.
   7.469 +AC_DEFUN([AM_PROG_INSTALL_SH],
   7.470 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
   7.471 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
   7.472 +AC_SUBST(install_sh)])
   7.473 +
   7.474 +# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
   7.475 +#
   7.476 +# This file is free software; the Free Software Foundation
   7.477 +# gives unlimited permission to copy and/or distribute it,
   7.478 +# with or without modifications, as long as this notice is preserved.
   7.479 +
   7.480 +# serial 2
   7.481 +
   7.482 +# Check whether the underlying file-system supports filenames
   7.483 +# with a leading dot.  For instance MS-DOS doesn't.
   7.484 +AC_DEFUN([AM_SET_LEADING_DOT],
   7.485 +[rm -rf .tst 2>/dev/null
   7.486 +mkdir .tst 2>/dev/null
   7.487 +if test -d .tst; then
   7.488 +  am__leading_dot=.
   7.489 +else
   7.490 +  am__leading_dot=_
   7.491 +fi
   7.492 +rmdir .tst 2>/dev/null
   7.493 +AC_SUBST([am__leading_dot])])
   7.494 +
   7.495 +# Check to see how 'make' treats includes.	            -*- Autoconf -*-
   7.496 +
   7.497 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
   7.498 +#
   7.499 +# This file is free software; the Free Software Foundation
   7.500 +# gives unlimited permission to copy and/or distribute it,
   7.501 +# with or without modifications, as long as this notice is preserved.
   7.502 +
   7.503 +# serial 3
   7.504 +
   7.505 +# AM_MAKE_INCLUDE()
   7.506 +# -----------------
   7.507 +# Check to see how make treats includes.
   7.508 +AC_DEFUN([AM_MAKE_INCLUDE],
   7.509 +[am_make=${MAKE-make}
   7.510 +cat > confinc << 'END'
   7.511 +am__doit:
   7.512 +	@echo done
   7.513 +.PHONY: am__doit
   7.514 +END
   7.515 +# If we don't find an include directive, just comment out the code.
   7.516 +AC_MSG_CHECKING([for style of include used by $am_make])
   7.517 +am__include="#"
   7.518 +am__quote=
   7.519 +_am_result=none
   7.520 +# First try GNU make style include.
   7.521 +echo "include confinc" > confmf
   7.522 +# We grep out `Entering directory' and `Leaving directory'
   7.523 +# messages which can occur if `w' ends up in MAKEFLAGS.
   7.524 +# In particular we don't look at `^make:' because GNU make might
   7.525 +# be invoked under some other name (usually "gmake"), in which
   7.526 +# case it prints its new name instead of `make'.
   7.527 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
   7.528 +   am__include=include
   7.529 +   am__quote=
   7.530 +   _am_result=GNU
   7.531 +fi
   7.532 +# Now try BSD make style include.
   7.533 +if test "$am__include" = "#"; then
   7.534 +   echo '.include "confinc"' > confmf
   7.535 +   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
   7.536 +      am__include=.include
   7.537 +      am__quote="\""
   7.538 +      _am_result=BSD
   7.539 +   fi
   7.540 +fi
   7.541 +AC_SUBST([am__include])
   7.542 +AC_SUBST([am__quote])
   7.543 +AC_MSG_RESULT([$_am_result])
   7.544 +rm -f confinc confmf
   7.545 +])
   7.546 +
   7.547 +# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
   7.548 +
   7.549 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
   7.550 +# Free Software Foundation, Inc.
   7.551 +#
   7.552 +# This file is free software; the Free Software Foundation
   7.553 +# gives unlimited permission to copy and/or distribute it,
   7.554 +# with or without modifications, as long as this notice is preserved.
   7.555 +
   7.556 +# serial 4
   7.557 +
   7.558 +# AM_MISSING_PROG(NAME, PROGRAM)
   7.559 +# ------------------------------
   7.560 +AC_DEFUN([AM_MISSING_PROG],
   7.561 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
   7.562 +$1=${$1-"${am_missing_run}$2"}
   7.563 +AC_SUBST($1)])
   7.564 +
   7.565 +
   7.566 +# AM_MISSING_HAS_RUN
   7.567 +# ------------------
   7.568 +# Define MISSING if not defined so far and test if it supports --run.
   7.569 +# If it does, set am_missing_run to use it, otherwise, to nothing.
   7.570 +AC_DEFUN([AM_MISSING_HAS_RUN],
   7.571 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
   7.572 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
   7.573 +# Use eval to expand $SHELL
   7.574 +if eval "$MISSING --run true"; then
   7.575 +  am_missing_run="$MISSING --run "
   7.576 +else
   7.577 +  am_missing_run=
   7.578 +  AC_MSG_WARN([`missing' script is too old or missing])
   7.579 +fi
   7.580 +])
   7.581 +
   7.582 +# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
   7.583 +#
   7.584 +# This file is free software; the Free Software Foundation
   7.585 +# gives unlimited permission to copy and/or distribute it,
   7.586 +# with or without modifications, as long as this notice is preserved.
   7.587 +
   7.588 +# AM_PROG_MKDIR_P
   7.589 +# ---------------
   7.590 +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
   7.591 +#
   7.592 +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
   7.593 +# created by `make install' are always world readable, even if the
   7.594 +# installer happens to have an overly restrictive umask (e.g. 077).
   7.595 +# This was a mistake.  There are at least two reasons why we must not
   7.596 +# use `-m 0755':
   7.597 +#   - it causes special bits like SGID to be ignored,
   7.598 +#   - it may be too restrictive (some setups expect 775 directories).
   7.599 +#
   7.600 +# Do not use -m 0755 and let people choose whatever they expect by
   7.601 +# setting umask.
   7.602 +#
   7.603 +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
   7.604 +# Some implementations (such as Solaris 8's) are not thread-safe: if a
   7.605 +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
   7.606 +# concurrently, both version can detect that a/ is missing, but only
   7.607 +# one can create it and the other will error out.  Consequently we
   7.608 +# restrict ourselves to GNU make (using the --version option ensures
   7.609 +# this.)
   7.610 +AC_DEFUN([AM_PROG_MKDIR_P],
   7.611 +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
   7.612 +  # We used to keeping the `.' as first argument, in order to
   7.613 +  # allow $(mkdir_p) to be used without argument.  As in
   7.614 +  #   $(mkdir_p) $(somedir)
   7.615 +  # where $(somedir) is conditionally defined.  However this is wrong
   7.616 +  # for two reasons:
   7.617 +  #  1. if the package is installed by a user who cannot write `.'
   7.618 +  #     make install will fail,
   7.619 +  #  2. the above comment should most certainly read
   7.620 +  #     $(mkdir_p) $(DESTDIR)$(somedir)
   7.621 +  #     so it does not work when $(somedir) is undefined and
   7.622 +  #     $(DESTDIR) is not.
   7.623 +  #  To support the latter case, we have to write
   7.624 +  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
   7.625 +  #  so the `.' trick is pointless.
   7.626 +  mkdir_p='mkdir -p --'
   7.627 +else
   7.628 +  # On NextStep and OpenStep, the `mkdir' command does not
   7.629 +  # recognize any option.  It will interpret all options as
   7.630 +  # directories to create, and then abort because `.' already
   7.631 +  # exists.
   7.632 +  for d in ./-p ./--version;
   7.633 +  do
   7.634 +    test -d $d && rmdir $d
   7.635 +  done
   7.636 +  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
   7.637 +  if test -f "$ac_aux_dir/mkinstalldirs"; then
   7.638 +    mkdir_p='$(mkinstalldirs)'
   7.639 +  else
   7.640 +    mkdir_p='$(install_sh) -d'
   7.641 +  fi
   7.642 +fi
   7.643 +AC_SUBST([mkdir_p])])
   7.644 +
   7.645 +# Helper functions for option handling.                     -*- Autoconf -*-
   7.646 +
   7.647 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
   7.648 +#
   7.649 +# This file is free software; the Free Software Foundation
   7.650 +# gives unlimited permission to copy and/or distribute it,
   7.651 +# with or without modifications, as long as this notice is preserved.
   7.652 +
   7.653 +# serial 3
   7.654 +
   7.655 +# _AM_MANGLE_OPTION(NAME)
   7.656 +# -----------------------
   7.657 +AC_DEFUN([_AM_MANGLE_OPTION],
   7.658 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
   7.659 +
   7.660 +# _AM_SET_OPTION(NAME)
   7.661 +# ------------------------------
   7.662 +# Set option NAME.  Presently that only means defining a flag for this option.
   7.663 +AC_DEFUN([_AM_SET_OPTION],
   7.664 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
   7.665 +
   7.666 +# _AM_SET_OPTIONS(OPTIONS)
   7.667 +# ----------------------------------
   7.668 +# OPTIONS is a space-separated list of Automake options.
   7.669 +AC_DEFUN([_AM_SET_OPTIONS],
   7.670 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
   7.671 +
   7.672 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
   7.673 +# -------------------------------------------
   7.674 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
   7.675 +AC_DEFUN([_AM_IF_OPTION],
   7.676 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
   7.677 +
   7.678 +# Check to make sure that the build environment is sane.    -*- Autoconf -*-
   7.679 +
   7.680 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
   7.681 +# Free Software Foundation, Inc.
   7.682 +#
   7.683 +# This file is free software; the Free Software Foundation
   7.684 +# gives unlimited permission to copy and/or distribute it,
   7.685 +# with or without modifications, as long as this notice is preserved.
   7.686 +
   7.687 +# serial 4
   7.688 +
   7.689 +# AM_SANITY_CHECK
   7.690 +# ---------------
   7.691 +AC_DEFUN([AM_SANITY_CHECK],
   7.692 +[AC_MSG_CHECKING([whether build environment is sane])
   7.693 +# Just in case
   7.694 +sleep 1
   7.695 +echo timestamp > conftest.file
   7.696 +# Do `set' in a subshell so we don't clobber the current shell's
   7.697 +# arguments.  Must try -L first in case configure is actually a
   7.698 +# symlink; some systems play weird games with the mod time of symlinks
   7.699 +# (eg FreeBSD returns the mod time of the symlink's containing
   7.700 +# directory).
   7.701 +if (
   7.702 +   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   7.703 +   if test "$[*]" = "X"; then
   7.704 +      # -L didn't work.
   7.705 +      set X `ls -t $srcdir/configure conftest.file`
   7.706 +   fi
   7.707 +   rm -f conftest.file
   7.708 +   if test "$[*]" != "X $srcdir/configure conftest.file" \
   7.709 +      && test "$[*]" != "X conftest.file $srcdir/configure"; then
   7.710 +
   7.711 +      # If neither matched, then we have a broken ls.  This can happen
   7.712 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
   7.713 +      # broken ls alias from the environment.  This has actually
   7.714 +      # happened.  Such a system could not be considered "sane".
   7.715 +      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
   7.716 +alias in your environment])
   7.717 +   fi
   7.718 +
   7.719 +   test "$[2]" = conftest.file
   7.720 +   )
   7.721 +then
   7.722 +   # Ok.
   7.723 +   :
   7.724 +else
   7.725 +   AC_MSG_ERROR([newly created file is older than distributed files!
   7.726 +Check your system clock])
   7.727 +fi
   7.728 +AC_MSG_RESULT(yes)])
   7.729 +
   7.730 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
   7.731 +#
   7.732 +# This file is free software; the Free Software Foundation
   7.733 +# gives unlimited permission to copy and/or distribute it,
   7.734 +# with or without modifications, as long as this notice is preserved.
   7.735 +
   7.736 +# AM_PROG_INSTALL_STRIP
   7.737 +# ---------------------
   7.738 +# One issue with vendor `install' (even GNU) is that you can't
   7.739 +# specify the program used to strip binaries.  This is especially
   7.740 +# annoying in cross-compiling environments, where the build's strip
   7.741 +# is unlikely to handle the host's binaries.
   7.742 +# Fortunately install-sh will honor a STRIPPROG variable, so we
   7.743 +# always use install-sh in `make install-strip', and initialize
   7.744 +# STRIPPROG with the value of the STRIP variable (set by the user).
   7.745 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
   7.746 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
   7.747 +# Installed binaries are usually stripped using `strip' when the user
   7.748 +# run `make install-strip'.  However `strip' might not be the right
   7.749 +# tool to use in cross-compilation environments, therefore Automake
   7.750 +# will honor the `STRIP' environment variable to overrule this program.
   7.751 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
   7.752 +if test "$cross_compiling" != no; then
   7.753 +  AC_CHECK_TOOL([STRIP], [strip], :)
   7.754 +fi
   7.755 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
   7.756 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
   7.757 +
   7.758 +# Check how to create a tarball.                            -*- Autoconf -*-
   7.759 +
   7.760 +# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
   7.761 +#
   7.762 +# This file is free software; the Free Software Foundation
   7.763 +# gives unlimited permission to copy and/or distribute it,
   7.764 +# with or without modifications, as long as this notice is preserved.
   7.765 +
   7.766 +# serial 2
   7.767 +
   7.768 +# _AM_PROG_TAR(FORMAT)
   7.769 +# --------------------
   7.770 +# Check how to create a tarball in format FORMAT.
   7.771 +# FORMAT should be one of `v7', `ustar', or `pax'.
   7.772 +#
   7.773 +# Substitute a variable $(am__tar) that is a command
   7.774 +# writing to stdout a FORMAT-tarball containing the directory
   7.775 +# $tardir.
   7.776 +#     tardir=directory && $(am__tar) > result.tar
   7.777 +#
   7.778 +# Substitute a variable $(am__untar) that extract such
   7.779 +# a tarball read from stdin.
   7.780 +#     $(am__untar) < result.tar
   7.781 +AC_DEFUN([_AM_PROG_TAR],
   7.782 +[# Always define AMTAR for backward compatibility.
   7.783 +AM_MISSING_PROG([AMTAR], [tar])
   7.784 +m4_if([$1], [v7],
   7.785 +     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
   7.786 +     [m4_case([$1], [ustar],, [pax],,
   7.787 +              [m4_fatal([Unknown tar format])])
   7.788 +AC_MSG_CHECKING([how to create a $1 tar archive])
   7.789 +# Loop over all known methods to create a tar archive until one works.
   7.790 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
   7.791 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
   7.792 +# Do not fold the above two line into one, because Tru64 sh and
   7.793 +# Solaris sh will not grok spaces in the rhs of `-'.
   7.794 +for _am_tool in $_am_tools
   7.795 +do
   7.796 +  case $_am_tool in
   7.797 +  gnutar)
   7.798 +    for _am_tar in tar gnutar gtar;
   7.799 +    do
   7.800 +      AM_RUN_LOG([$_am_tar --version]) && break
   7.801 +    done
   7.802 +    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
   7.803 +    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
   7.804 +    am__untar="$_am_tar -xf -"
   7.805 +    ;;
   7.806 +  plaintar)
   7.807 +    # Must skip GNU tar: if it does not support --format= it doesn't create
   7.808 +    # ustar tarball either.
   7.809 +    (tar --version) >/dev/null 2>&1 && continue
   7.810 +    am__tar='tar chf - "$$tardir"'
   7.811 +    am__tar_='tar chf - "$tardir"'
   7.812 +    am__untar='tar xf -'
   7.813 +    ;;
   7.814 +  pax)
   7.815 +    am__tar='pax -L -x $1 -w "$$tardir"'
   7.816 +    am__tar_='pax -L -x $1 -w "$tardir"'
   7.817 +    am__untar='pax -r'
   7.818 +    ;;
   7.819 +  cpio)
   7.820 +    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
   7.821 +    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
   7.822 +    am__untar='cpio -i -H $1 -d'
   7.823 +    ;;
   7.824 +  none)
   7.825 +    am__tar=false
   7.826 +    am__tar_=false
   7.827 +    am__untar=false
   7.828 +    ;;
   7.829 +  esac
   7.830 +
   7.831 +  # If the value was cached, stop now.  We just wanted to have am__tar
   7.832 +  # and am__untar set.
   7.833 +  test -n "${am_cv_prog_tar_$1}" && break
   7.834 +
   7.835 +  # tar/untar a dummy directory, and stop if the command works
   7.836 +  rm -rf conftest.dir
   7.837 +  mkdir conftest.dir
   7.838 +  echo GrepMe > conftest.dir/file
   7.839 +  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
   7.840 +  rm -rf conftest.dir
   7.841 +  if test -s conftest.tar; then
   7.842 +    AM_RUN_LOG([$am__untar <conftest.tar])
   7.843 +    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
   7.844 +  fi
   7.845 +done
   7.846 +rm -rf conftest.dir
   7.847 +
   7.848 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
   7.849 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
   7.850 +AC_SUBST([am__tar])
   7.851 +AC_SUBST([am__untar])
   7.852 +]) # _AM_PROG_TAR
   7.853 +
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/tools/xm-test/configure	Mon Nov 07 12:36:16 2005 +0100
     8.3 @@ -0,0 +1,4364 @@
     8.4 +#! /bin/sh
     8.5 +# Guess values for system-dependent variables and create Makefiles.
     8.6 +# Generated by GNU Autoconf 2.59 for xm-test 0.4.0.
     8.7 +#
     8.8 +# Copyright (C) 2003 Free Software Foundation, Inc.
     8.9 +# This configure script is free software; the Free Software Foundation
    8.10 +# gives unlimited permission to copy, distribute and modify it.
    8.11 +## --------------------- ##
    8.12 +## M4sh Initialization.  ##
    8.13 +## --------------------- ##
    8.14 +
    8.15 +# Be Bourne compatible
    8.16 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    8.17 +  emulate sh
    8.18 +  NULLCMD=:
    8.19 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    8.20 +  # is contrary to our usage.  Disable this feature.
    8.21 +  alias -g '${1+"$@"}'='"$@"'
    8.22 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    8.23 +  set -o posix
    8.24 +fi
    8.25 +DUALCASE=1; export DUALCASE # for MKS sh
    8.26 +
    8.27 +# Support unset when possible.
    8.28 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    8.29 +  as_unset=unset
    8.30 +else
    8.31 +  as_unset=false
    8.32 +fi
    8.33 +
    8.34 +
    8.35 +# Work around bugs in pre-3.0 UWIN ksh.
    8.36 +$as_unset ENV MAIL MAILPATH
    8.37 +PS1='$ '
    8.38 +PS2='> '
    8.39 +PS4='+ '
    8.40 +
    8.41 +# NLS nuisances.
    8.42 +for as_var in \
    8.43 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    8.44 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    8.45 +  LC_TELEPHONE LC_TIME
    8.46 +do
    8.47 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    8.48 +    eval $as_var=C; export $as_var
    8.49 +  else
    8.50 +    $as_unset $as_var
    8.51 +  fi
    8.52 +done
    8.53 +
    8.54 +# Required to use basename.
    8.55 +if expr a : '\(a\)' >/dev/null 2>&1; then
    8.56 +  as_expr=expr
    8.57 +else
    8.58 +  as_expr=false
    8.59 +fi
    8.60 +
    8.61 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    8.62 +  as_basename=basename
    8.63 +else
    8.64 +  as_basename=false
    8.65 +fi
    8.66 +
    8.67 +
    8.68 +# Name of the executable.
    8.69 +as_me=`$as_basename "$0" ||
    8.70 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    8.71 +	 X"$0" : 'X\(//\)$' \| \
    8.72 +	 X"$0" : 'X\(/\)$' \| \
    8.73 +	 .     : '\(.\)' 2>/dev/null ||
    8.74 +echo X/"$0" |
    8.75 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    8.76 +  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
    8.77 +  	  /^X\/\(\/\).*/{ s//\1/; q; }
    8.78 +  	  s/.*/./; q'`
    8.79 +
    8.80 +
    8.81 +# PATH needs CR, and LINENO needs CR and PATH.
    8.82 +# Avoid depending upon Character Ranges.
    8.83 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    8.84 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    8.85 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    8.86 +as_cr_digits='0123456789'
    8.87 +as_cr_alnum=$as_cr_Letters$as_cr_digits
    8.88 +
    8.89 +# The user is always right.
    8.90 +if test "${PATH_SEPARATOR+set}" != set; then
    8.91 +  echo "#! /bin/sh" >conf$$.sh
    8.92 +  echo  "exit 0"   >>conf$$.sh
    8.93 +  chmod +x conf$$.sh
    8.94 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    8.95 +    PATH_SEPARATOR=';'
    8.96 +  else
    8.97 +    PATH_SEPARATOR=:
    8.98 +  fi
    8.99 +  rm -f conf$$.sh
   8.100 +fi
   8.101 +
   8.102 +
   8.103 +  as_lineno_1=$LINENO
   8.104 +  as_lineno_2=$LINENO
   8.105 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   8.106 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
   8.107 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
   8.108 +  # Find who we are.  Look in the path if we contain no path at all
   8.109 +  # relative or not.
   8.110 +  case $0 in
   8.111 +    *[\\/]* ) as_myself=$0 ;;
   8.112 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8.113 +for as_dir in $PATH
   8.114 +do
   8.115 +  IFS=$as_save_IFS
   8.116 +  test -z "$as_dir" && as_dir=.
   8.117 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   8.118 +done
   8.119 +
   8.120 +       ;;
   8.121 +  esac
   8.122 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
   8.123 +  # in which case we are not to be found in the path.
   8.124 +  if test "x$as_myself" = x; then
   8.125 +    as_myself=$0
   8.126 +  fi
   8.127 +  if test ! -f "$as_myself"; then
   8.128 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
   8.129 +   { (exit 1); exit 1; }; }
   8.130 +  fi
   8.131 +  case $CONFIG_SHELL in
   8.132 +  '')
   8.133 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8.134 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   8.135 +do
   8.136 +  IFS=$as_save_IFS
   8.137 +  test -z "$as_dir" && as_dir=.
   8.138 +  for as_base in sh bash ksh sh5; do
   8.139 +	 case $as_dir in
   8.140 +	 /*)
   8.141 +	   if ("$as_dir/$as_base" -c '
   8.142 +  as_lineno_1=$LINENO
   8.143 +  as_lineno_2=$LINENO
   8.144 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   8.145 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
   8.146 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
   8.147 +	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
   8.148 +	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
   8.149 +	     CONFIG_SHELL=$as_dir/$as_base
   8.150 +	     export CONFIG_SHELL
   8.151 +	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
   8.152 +	   fi;;
   8.153 +	 esac
   8.154 +       done
   8.155 +done
   8.156 +;;
   8.157 +  esac
   8.158 +
   8.159 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   8.160 +  # uniformly replaced by the line number.  The first 'sed' inserts a
   8.161 +  # line-number line before each line; the second 'sed' does the real
   8.162 +  # work.  The second script uses 'N' to pair each line-number line
   8.163 +  # with the numbered line, and appends trailing '-' during
   8.164 +  # substitution so that $LINENO is not a special case at line end.
   8.165 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   8.166 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
   8.167 +  sed '=' <$as_myself |
   8.168 +    sed '
   8.169 +      N
   8.170 +      s,$,-,
   8.171 +      : loop
   8.172 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
   8.173 +      t loop
   8.174 +      s,-$,,
   8.175 +      s,^['$as_cr_digits']*\n,,
   8.176 +    ' >$as_me.lineno &&
   8.177 +  chmod +x $as_me.lineno ||
   8.178 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   8.179 +   { (exit 1); exit 1; }; }
   8.180 +
   8.181 +  # Don't try to exec as it changes $[0], causing all sort of problems
   8.182 +  # (the dirname of $[0] is not the place where we might find the
   8.183 +  # original and so on.  Autoconf is especially sensible to this).
   8.184 +  . ./$as_me.lineno
   8.185 +  # Exit status is that of the last command.
   8.186 +  exit
   8.187 +}
   8.188 +
   8.189 +
   8.190 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
   8.191 +  *c*,-n*) ECHO_N= ECHO_C='
   8.192 +' ECHO_T='	' ;;
   8.193 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
   8.194 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
   8.195 +esac
   8.196 +
   8.197 +if expr a : '\(a\)' >/dev/null 2>&1; then
   8.198 +  as_expr=expr
   8.199 +else
   8.200 +  as_expr=false
   8.201 +fi
   8.202 +
   8.203 +rm -f conf$$ conf$$.exe conf$$.file
   8.204 +echo >conf$$.file
   8.205 +if ln -s conf$$.file conf$$ 2>/dev/null; then
   8.206 +  # We could just check for DJGPP; but this test a) works b) is more generic
   8.207 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   8.208 +  if test -f conf$$.exe; then
   8.209 +    # Don't use ln at all; we don't have any links
   8.210 +    as_ln_s='cp -p'
   8.211 +  else
   8.212 +    as_ln_s='ln -s'
   8.213 +  fi
   8.214 +elif ln conf$$.file conf$$ 2>/dev/null; then
   8.215 +  as_ln_s=ln
   8.216 +else
   8.217 +  as_ln_s='cp -p'
   8.218 +fi
   8.219 +rm -f conf$$ conf$$.exe conf$$.file
   8.220 +
   8.221 +if mkdir -p . 2>/dev/null; then
   8.222 +  as_mkdir_p=:
   8.223 +else
   8.224 +  test -d ./-p && rmdir ./-p
   8.225 +  as_mkdir_p=false
   8.226 +fi
   8.227 +
   8.228 +as_executable_p="test -f"
   8.229 +
   8.230 +# Sed expression to map a string onto a valid CPP name.
   8.231 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   8.232 +
   8.233 +# Sed expression to map a string onto a valid variable name.
   8.234 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   8.235 +
   8.236 +
   8.237 +# IFS
   8.238 +# We need space, tab and new line, in precisely that order.
   8.239 +as_nl='
   8.240 +'
   8.241 +IFS=" 	$as_nl"
   8.242 +
   8.243 +# CDPATH.
   8.244 +$as_unset CDPATH
   8.245 +
   8.246 +
   8.247 +# Name of the host.
   8.248 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   8.249 +# so uname gets run too.
   8.250 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   8.251 +
   8.252 +exec 6>&1
   8.253 +
   8.254 +#
   8.255 +# Initializations.
   8.256 +#
   8.257 +ac_default_prefix=/usr/local
   8.258 +ac_config_libobj_dir=.
   8.259 +cross_compiling=no
   8.260 +subdirs=
   8.261 +MFLAGS=
   8.262 +MAKEFLAGS=
   8.263 +SHELL=${CONFIG_SHELL-/bin/sh}
   8.264 +
   8.265 +# Maximum number of lines to put in a shell here document.
   8.266 +# This variable seems obsolete.  It should probably be removed, and
   8.267 +# only ac_max_sed_lines should be used.
   8.268 +: ${ac_max_here_lines=38}
   8.269 +
   8.270 +# Identity of this package.
   8.271 +PACKAGE_NAME='xm-test'
   8.272 +PACKAGE_TARNAME='xm-test'
   8.273 +PACKAGE_VERSION='0.4.0'
   8.274 +PACKAGE_STRING='xm-test 0.4.0'
   8.275 +PACKAGE_BUGREPORT=''
   8.276 +
   8.277 +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 datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE ENABLE_VMX TENV YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS LTLIBOBJS'
   8.278 +ac_subst_files=''
   8.279 +
   8.280 +# Initialize some variables set by options.
   8.281 +ac_init_help=
   8.282 +ac_init_version=false
   8.283 +# The variables have the same names as the options, with
   8.284 +# dashes changed to underlines.
   8.285 +cache_file=/dev/null
   8.286 +exec_prefix=NONE
   8.287 +no_create=
   8.288 +no_recursion=
   8.289 +prefix=NONE
   8.290 +program_prefix=NONE
   8.291 +program_suffix=NONE
   8.292 +program_transform_name=s,x,x,
   8.293 +silent=
   8.294 +site=
   8.295 +srcdir=
   8.296 +verbose=
   8.297 +x_includes=NONE
   8.298 +x_libraries=NONE
   8.299 +
   8.300 +# Installation directory options.
   8.301 +# These are left unexpanded so users can "make install exec_prefix=/foo"
   8.302 +# and all the variables that are supposed to be based on exec_prefix
   8.303 +# by default will actually change.
   8.304 +# Use braces instead of parens because sh, perl, etc. also accept them.
   8.305 +bindir='${exec_prefix}/bin'
   8.306 +sbindir='${exec_prefix}/sbin'
   8.307 +libexecdir='${exec_prefix}/libexec'
   8.308 +datadir='${prefix}/share'
   8.309 +sysconfdir='${prefix}/etc'
   8.310 +sharedstatedir='${prefix}/com'
   8.311 +localstatedir='${prefix}/var'
   8.312 +libdir='${exec_prefix}/lib'
   8.313 +includedir='${prefix}/include'
   8.314 +oldincludedir='/usr/include'
   8.315 +infodir='${prefix}/info'
   8.316 +mandir='${prefix}/man'
   8.317 +
   8.318 +ac_prev=
   8.319 +for ac_option
   8.320 +do
   8.321 +  # If the previous option needs an argument, assign it.
   8.322 +  if test -n "$ac_prev"; then
   8.323 +    eval "$ac_prev=\$ac_option"
   8.324 +    ac_prev=
   8.325 +    continue
   8.326 +  fi
   8.327 +
   8.328 +  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
   8.329 +
   8.330 +  # Accept the important Cygnus configure options, so we can diagnose typos.
   8.331 +
   8.332 +  case $ac_option in
   8.333 +
   8.334 +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
   8.335 +    ac_prev=bindir ;;
   8.336 +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   8.337 +    bindir=$ac_optarg ;;
   8.338 +
   8.339 +  -build | --build | --buil | --bui | --bu)
   8.340 +    ac_prev=build_alias ;;
   8.341 +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   8.342 +    build_alias=$ac_optarg ;;
   8.343 +
   8.344 +  -cache-file | --cache-file | --cache-fil | --cache-fi \
   8.345 +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   8.346 +    ac_prev=cache_file ;;
   8.347 +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   8.348 +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   8.349 +    cache_file=$ac_optarg ;;
   8.350 +
   8.351 +  --config-cache | -C)
   8.352 +    cache_file=config.cache ;;
   8.353 +
   8.354 +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
   8.355 +    ac_prev=datadir ;;
   8.356 +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
   8.357 +  | --da=*)
   8.358 +    datadir=$ac_optarg ;;
   8.359 +
   8.360 +  -disable-* | --disable-*)
   8.361 +    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   8.362 +    # Reject names that are not valid shell variable names.
   8.363 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   8.364 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   8.365 +   { (exit 1); exit 1; }; }
   8.366 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
   8.367 +    eval "enable_$ac_feature=no" ;;
   8.368 +
   8.369 +  -enable-* | --enable-*)
   8.370 +    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   8.371 +    # Reject names that are not valid shell variable names.
   8.372 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   8.373 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   8.374 +   { (exit 1); exit 1; }; }
   8.375 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
   8.376 +    case $ac_option in
   8.377 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
   8.378 +      *) ac_optarg=yes ;;
   8.379 +    esac
   8.380 +    eval "enable_$ac_feature='$ac_optarg'" ;;
   8.381 +
   8.382 +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   8.383 +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   8.384 +  | --exec | --exe | --ex)
   8.385 +    ac_prev=exec_prefix ;;
   8.386 +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   8.387 +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   8.388 +  | --exec=* | --exe=* | --ex=*)
   8.389 +    exec_prefix=$ac_optarg ;;
   8.390 +
   8.391 +  -gas | --gas | --ga | --g)
   8.392 +    # Obsolete; use --with-gas.
   8.393 +    with_gas=yes ;;
   8.394 +
   8.395 +  -help | --help | --hel | --he | -h)
   8.396 +    ac_init_help=long ;;
   8.397 +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   8.398 +    ac_init_help=recursive ;;
   8.399 +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   8.400 +    ac_init_help=short ;;
   8.401 +
   8.402 +  -host | --host | --hos | --ho)
   8.403 +    ac_prev=host_alias ;;
   8.404 +  -host=* | --host=* | --hos=* | --ho=*)
   8.405 +    host_alias=$ac_optarg ;;
   8.406 +
   8.407 +  -includedir | --includedir | --includedi | --included | --include \
   8.408 +  | --includ | --inclu | --incl | --inc)
   8.409 +    ac_prev=includedir ;;
   8.410 +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   8.411 +  | --includ=* | --inclu=* | --incl=* | --inc=*)
   8.412 +    includedir=$ac_optarg ;;
   8.413 +
   8.414 +  -infodir | --infodir | --infodi | --infod | --info | --inf)
   8.415 +    ac_prev=infodir ;;
   8.416 +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   8.417 +    infodir=$ac_optarg ;;
   8.418 +
   8.419 +  -libdir | --libdir | --libdi | --libd)
   8.420 +    ac_prev=libdir ;;
   8.421 +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
   8.422 +    libdir=$ac_optarg ;;
   8.423 +
   8.424 +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   8.425 +  | --libexe | --libex | --libe)
   8.426 +    ac_prev=libexecdir ;;
   8.427 +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   8.428 +  | --libexe=* | --libex=* | --libe=*)
   8.429 +    libexecdir=$ac_optarg ;;
   8.430 +
   8.431 +  -localstatedir | --localstatedir | --localstatedi | --localstated \
   8.432 +  | --localstate | --localstat | --localsta | --localst \
   8.433 +  | --locals | --local | --loca | --loc | --lo)
   8.434 +    ac_prev=localstatedir ;;
   8.435 +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   8.436 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
   8.437 +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
   8.438 +    localstatedir=$ac_optarg ;;
   8.439 +
   8.440 +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   8.441 +    ac_prev=mandir ;;
   8.442 +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   8.443 +    mandir=$ac_optarg ;;
   8.444 +
   8.445 +  -nfp | --nfp | --nf)
   8.446 +    # Obsolete; use --without-fp.
   8.447 +    with_fp=no ;;
   8.448 +
   8.449 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   8.450 +  | --no-cr | --no-c | -n)
   8.451 +    no_create=yes ;;
   8.452 +
   8.453 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   8.454 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   8.455 +    no_recursion=yes ;;
   8.456 +
   8.457 +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   8.458 +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   8.459 +  | --oldin | --oldi | --old | --ol | --o)
   8.460 +    ac_prev=oldincludedir ;;
   8.461 +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   8.462 +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   8.463 +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   8.464 +    oldincludedir=$ac_optarg ;;
   8.465 +
   8.466 +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   8.467 +    ac_prev=prefix ;;
   8.468 +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   8.469 +    prefix=$ac_optarg ;;
   8.470 +
   8.471 +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
   8.472 +  | --program-pre | --program-pr | --program-p)
   8.473 +    ac_prev=program_prefix ;;
   8.474 +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
   8.475 +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   8.476 +    program_prefix=$ac_optarg ;;
   8.477 +
   8.478 +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
   8.479 +  | --program-suf | --program-su | --program-s)
   8.480 +    ac_prev=program_suffix ;;
   8.481 +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
   8.482 +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   8.483 +    program_suffix=$ac_optarg ;;
   8.484 +
   8.485 +  -program-transform-name | --program-transform-name \
   8.486 +  | --program-transform-nam | --program-transform-na \
   8.487 +  | --program-transform-n | --program-transform- \
   8.488 +  | --program-transform | --program-transfor \
   8.489 +  | --program-transfo | --program-transf \
   8.490 +  | --program-trans | --program-tran \
   8.491 +  | --progr-tra | --program-tr | --program-t)
   8.492 +    ac_prev=program_transform_name ;;
   8.493 +  -program-transform-name=* | --program-transform-name=* \
   8.494 +  | --program-transform-nam=* | --program-transform-na=* \
   8.495 +  | --program-transform-n=* | --program-transform-=* \
   8.496 +  | --program-transform=* | --program-transfor=* \
   8.497 +  | --program-transfo=* | --program-transf=* \
   8.498 +  | --program-trans=* | --program-tran=* \
   8.499 +  | --progr-tra=* | --program-tr=* | --program-t=*)
   8.500 +    program_transform_name=$ac_optarg ;;
   8.501 +
   8.502 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   8.503 +  | -silent | --silent | --silen | --sile | --sil)
   8.504 +    silent=yes ;;
   8.505 +
   8.506 +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   8.507 +    ac_prev=sbindir ;;
   8.508 +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   8.509 +  | --sbi=* | --sb=*)
   8.510 +    sbindir=$ac_optarg ;;
   8.511 +
   8.512 +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
   8.513 +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   8.514 +  | --sharedst | --shareds | --shared | --share | --shar \
   8.515 +  | --sha | --sh)
   8.516 +    ac_prev=sharedstatedir ;;
   8.517 +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   8.518 +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   8.519 +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   8.520 +  | --sha=* | --sh=*)
   8.521 +    sharedstatedir=$ac_optarg ;;
   8.522 +
   8.523 +  -site | --site | --sit)
   8.524 +    ac_prev=site ;;
   8.525 +  -site=* | --site=* | --sit=*)
   8.526 +    site=$ac_optarg ;;
   8.527 +
   8.528 +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   8.529 +    ac_prev=srcdir ;;
   8.530 +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   8.531 +    srcdir=$ac_optarg ;;
   8.532 +
   8.533 +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   8.534 +  | --syscon | --sysco | --sysc | --sys | --sy)
   8.535 +    ac_prev=sysconfdir ;;
   8.536 +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   8.537 +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   8.538 +    sysconfdir=$ac_optarg ;;
   8.539 +
   8.540 +  -target | --target | --targe | --targ | --tar | --ta | --t)
   8.541 +    ac_prev=target_alias ;;
   8.542 +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   8.543 +    target_alias=$ac_optarg ;;
   8.544 +
   8.545 +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
   8.546 +    verbose=yes ;;
   8.547 +
   8.548 +  -version | --version | --versio | --versi | --vers | -V)
   8.549 +    ac_init_version=: ;;
   8.550 +
   8.551 +  -with-* | --with-*)
   8.552 +    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   8.553 +    # Reject names that are not valid shell variable names.
   8.554 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   8.555 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
   8.556 +   { (exit 1); exit 1; }; }
   8.557 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
   8.558 +    case $ac_option in
   8.559 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
   8.560 +      *) ac_optarg=yes ;;
   8.561 +    esac
   8.562 +    eval "with_$ac_package='$ac_optarg'" ;;
   8.563 +
   8.564 +  -without-* | --without-*)
   8.565 +    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   8.566 +    # Reject names that are not valid shell variable names.
   8.567 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
   8.568 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
   8.569 +   { (exit 1); exit 1; }; }
   8.570 +    ac_package=`echo $ac_package | sed 's/-/_/g'`
   8.571 +    eval "with_$ac_package=no" ;;
   8.572 +
   8.573 +  --x)
   8.574 +    # Obsolete; use --with-x.
   8.575 +    with_x=yes ;;
   8.576 +
   8.577 +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   8.578 +  | --x-incl | --x-inc | --x-in | --x-i)
   8.579 +    ac_prev=x_includes ;;
   8.580 +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   8.581 +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   8.582 +    x_includes=$ac_optarg ;;
   8.583 +
   8.584 +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
   8.585 +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   8.586 +    ac_prev=x_libraries ;;
   8.587 +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   8.588 +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   8.589 +    x_libraries=$ac_optarg ;;
   8.590 +
   8.591 +  -*) { echo "$as_me: error: unrecognized option: $ac_option
   8.592 +Try \`$0 --help' for more information." >&2
   8.593 +   { (exit 1); exit 1; }; }
   8.594 +    ;;
   8.595 +
   8.596 +  *=*)
   8.597 +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   8.598 +    # Reject names that are not valid shell variable names.
   8.599 +    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   8.600 +      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   8.601 +   { (exit 1); exit 1; }; }
   8.602 +    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
   8.603 +    eval "$ac_envvar='$ac_optarg'"
   8.604 +    export $ac_envvar ;;
   8.605 +
   8.606 +  *)
   8.607 +    # FIXME: should be removed in autoconf 3.0.
   8.608 +    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   8.609 +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   8.610 +      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   8.611 +    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   8.612 +    ;;
   8.613 +
   8.614 +  esac
   8.615 +done
   8.616 +
   8.617 +if test -n "$ac_prev"; then
   8.618 +  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   8.619 +  { echo "$as_me: error: missing argument to $ac_option" >&2
   8.620 +   { (exit 1); exit 1; }; }
   8.621 +fi
   8.622 +
   8.623 +# Be sure to have absolute paths.
   8.624 +for ac_var in exec_prefix prefix
   8.625 +do
   8.626 +  eval ac_val=$`echo $ac_var`
   8.627 +  case $ac_val in
   8.628 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
   8.629 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   8.630 +   { (exit 1); exit 1; }; };;
   8.631 +  esac
   8.632 +done
   8.633 +
   8.634 +# Be sure to have absolute paths.
   8.635 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
   8.636 +	      localstatedir libdir includedir oldincludedir infodir mandir
   8.637 +do
   8.638 +  eval ac_val=$`echo $ac_var`
   8.639 +  case $ac_val in
   8.640 +    [\\/$]* | ?:[\\/]* ) ;;
   8.641 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   8.642 +   { (exit 1); exit 1; }; };;
   8.643 +  esac
   8.644 +done
   8.645 +
   8.646 +# There might be people who depend on the old broken behavior: `$host'
   8.647 +# used to hold the argument of --host etc.
   8.648 +# FIXME: To remove some day.
   8.649 +build=$build_alias
   8.650 +host=$host_alias
   8.651 +target=$target_alias
   8.652 +
   8.653 +# FIXME: To remove some day.
   8.654 +if test "x$host_alias" != x; then
   8.655 +  if test "x$build_alias" = x; then
   8.656 +    cross_compiling=maybe
   8.657 +    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   8.658 +    If a cross compiler is detected then cross compile mode will be used." >&2
   8.659 +  elif test "x$build_alias" != "x$host_alias"; then
   8.660 +    cross_compiling=yes
   8.661 +  fi
   8.662 +fi
   8.663 +
   8.664 +ac_tool_prefix=
   8.665 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
   8.666 +
   8.667 +test "$silent" = yes && exec 6>/dev/null
   8.668 +
   8.669 +
   8.670 +# Find the source files, if location was not specified.
   8.671 +if test -z "$srcdir"; then
   8.672 +  ac_srcdir_defaulted=yes
   8.673 +  # Try the directory containing this script, then its parent.
   8.674 +  ac_confdir=`(dirname "$0") 2>/dev/null ||
   8.675 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8.676 +	 X"$0" : 'X\(//\)[^/]' \| \
   8.677 +	 X"$0" : 'X\(//\)$' \| \
   8.678 +	 X"$0" : 'X\(/\)' \| \
   8.679 +	 .     : '\(.\)' 2>/dev/null ||
   8.680 +echo X"$0" |
   8.681 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   8.682 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   8.683 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
   8.684 +  	  /^X\(\/\).*/{ s//\1/; q; }
   8.685 +  	  s/.*/./; q'`
   8.686 +  srcdir=$ac_confdir
   8.687 +  if test ! -r $srcdir/$ac_unique_file; then
   8.688 +    srcdir=..
   8.689 +  fi
   8.690 +else
   8.691 +  ac_srcdir_defaulted=no
   8.692 +fi
   8.693 +if test ! -r $srcdir/$ac_unique_file; then
   8.694 +  if test "$ac_srcdir_defaulted" = yes; then
   8.695 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
   8.696 +   { (exit 1); exit 1; }; }
   8.697 +  else
   8.698 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   8.699 +   { (exit 1); exit 1; }; }
   8.700 +  fi
   8.701 +fi
   8.702 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
   8.703 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
   8.704 +   { (exit 1); exit 1; }; }
   8.705 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
   8.706 +ac_env_build_alias_set=${build_alias+set}
   8.707 +ac_env_build_alias_value=$build_alias
   8.708 +ac_cv_env_build_alias_set=${build_alias+set}
   8.709 +ac_cv_env_build_alias_value=$build_alias
   8.710 +ac_env_host_alias_set=${host_alias+set}
   8.711 +ac_env_host_alias_value=$host_alias
   8.712 +ac_cv_env_host_alias_set=${host_alias+set}
   8.713 +ac_cv_env_host_alias_value=$host_alias
   8.714 +ac_env_target_alias_set=${target_alias+set}
   8.715 +ac_env_target_alias_value=$target_alias
   8.716 +ac_cv_env_target_alias_set=${target_alias+set}
   8.717 +ac_cv_env_target_alias_value=$target_alias
   8.718 +ac_env_CC_set=${CC+set}
   8.719 +ac_env_CC_value=$CC
   8.720 +ac_cv_env_CC_set=${CC+set}
   8.721 +ac_cv_env_CC_value=$CC
   8.722 +ac_env_CFLAGS_set=${CFLAGS+set}
   8.723 +ac_env_CFLAGS_value=$CFLAGS
   8.724 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
   8.725 +ac_cv_env_CFLAGS_value=$CFLAGS
   8.726 +ac_env_LDFLAGS_set=${LDFLAGS+set}
   8.727 +ac_env_LDFLAGS_value=$LDFLAGS
   8.728 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
   8.729 +ac_cv_env_LDFLAGS_value=$LDFLAGS
   8.730 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
   8.731 +ac_env_CPPFLAGS_value=$CPPFLAGS
   8.732 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
   8.733 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
   8.734 +
   8.735 +#
   8.736 +# Report the --help message.
   8.737 +#
   8.738 +if test "$ac_init_help" = "long"; then
   8.739 +  # Omit some internal or obsolete options to make the list less imposing.
   8.740 +  # This message is too long to be a string in the A/UX 3.1 sh.
   8.741 +  cat <<_ACEOF
   8.742 +\`configure' configures xm-test 0.4.0 to adapt to many kinds of systems.
   8.743 +
   8.744 +Usage: $0 [OPTION]... [VAR=VALUE]...
   8.745 +
   8.746 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
   8.747 +VAR=VALUE.  See below for descriptions of some of the useful variables.
   8.748 +
   8.749 +Defaults for the options are specified in brackets.
   8.750 +
   8.751 +Configuration:
   8.752 +  -h, --help              display this help and exit
   8.753 +      --help=short        display options specific to this package
   8.754 +      --help=recursive    display the short help of all the included packages
   8.755 +  -V, --version           display version information and exit
   8.756 +  -q, --quiet, --silent   do not print \`checking...' messages
   8.757 +      --cache-file=FILE   cache test results in FILE [disabled]
   8.758 +  -C, --config-cache      alias for \`--cache-file=config.cache'
   8.759 +  -n, --no-create         do not create output files
   8.760 +      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   8.761 +
   8.762 +_ACEOF
   8.763 +
   8.764 +  cat <<_ACEOF
   8.765 +Installation directories:
   8.766 +  --prefix=PREFIX         install architecture-independent files in PREFIX
   8.767 +			  [$ac_default_prefix]
   8.768 +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   8.769 +			  [PREFIX]
   8.770 +
   8.771 +By default, \`make install' will install all the files in
   8.772 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   8.773 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   8.774 +for instance \`--prefix=\$HOME'.
   8.775 +
   8.776 +For better control, use the options below.
   8.777 +
   8.778 +Fine tuning of the installation directories:
   8.779 +  --bindir=DIR           user executables [EPREFIX/bin]
   8.780 +  --sbindir=DIR          system admin executables [EPREFIX/sbin]
   8.781 +  --libexecdir=DIR       program executables [EPREFIX/libexec]
   8.782 +  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
   8.783 +  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   8.784 +  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   8.785 +  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   8.786 +  --libdir=DIR           object code libraries [EPREFIX/lib]
   8.787 +  --includedir=DIR       C header files [PREFIX/include]
   8.788 +  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   8.789 +  --infodir=DIR          info documentation [PREFIX/info]
   8.790 +  --mandir=DIR           man documentation [PREFIX/man]
   8.791 +_ACEOF
   8.792 +
   8.793 +  cat <<\_ACEOF
   8.794 +
   8.795 +Program names:
   8.796 +  --program-prefix=PREFIX            prepend PREFIX to installed program names
   8.797 +  --program-suffix=SUFFIX            append SUFFIX to installed program names
   8.798 +  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   8.799 +_ACEOF
   8.800 +fi
   8.801 +
   8.802 +if test -n "$ac_init_help"; then
   8.803 +  case $ac_init_help in
   8.804 +     short | recursive ) echo "Configuration of xm-test 0.4.0:";;
   8.805 +   esac
   8.806 +  cat <<\_ACEOF
   8.807 +
   8.808 +Optional Features:
   8.809 +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   8.810 +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   8.811 +  --disable-dependency-tracking  speeds up one-time build
   8.812 +  --enable-dependency-tracking   do not reject slow dependency extractors
   8.813 +  --enable-vmx-support           use block devices instead of ramdisks
   8.814 +
   8.815 +Some influential environment variables:
   8.816 +  CC          C compiler command
   8.817 +  CFLAGS      C compiler flags
   8.818 +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   8.819 +              nonstandard directory <lib dir>
   8.820 +  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
   8.821 +              headers in a nonstandard directory <include dir>
   8.822 +
   8.823 +Use these variables to override the choices made by `configure' or to help
   8.824 +it to find libraries and programs with nonstandard names/locations.
   8.825 +
   8.826 +_ACEOF
   8.827 +fi
   8.828 +
   8.829 +if test "$ac_init_help" = "recursive"; then
   8.830 +  # If there are subdirs, report their specific --help.
   8.831 +  ac_popdir=`pwd`
   8.832 +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   8.833 +    test -d $ac_dir || continue
   8.834 +    ac_builddir=.
   8.835 +
   8.836 +if test "$ac_dir" != .; then
   8.837 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   8.838 +  # A "../" for each directory in $ac_dir_suffix.
   8.839 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   8.840 +else
   8.841 +  ac_dir_suffix= ac_top_builddir=
   8.842 +fi
   8.843 +
   8.844 +case $srcdir in
   8.845 +  .)  # No --srcdir option.  We are building in place.
   8.846 +    ac_srcdir=.
   8.847 +    if test -z "$ac_top_builddir"; then
   8.848 +       ac_top_srcdir=.
   8.849 +    else
   8.850 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   8.851 +    fi ;;
   8.852 +  [\\/]* | ?:[\\/]* )  # Absolute path.
   8.853 +    ac_srcdir=$srcdir$ac_dir_suffix;
   8.854 +    ac_top_srcdir=$srcdir ;;
   8.855 +  *) # Relative path.
   8.856 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   8.857 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
   8.858 +esac
   8.859 +
   8.860 +# Do not use `cd foo && pwd` to compute absolute paths, because
   8.861 +# the directories may not exist.
   8.862 +case `pwd` in
   8.863 +.) ac_abs_builddir="$ac_dir";;
   8.864 +*)
   8.865 +  case "$ac_dir" in
   8.866 +  .) ac_abs_builddir=`pwd`;;
   8.867 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
   8.868 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
   8.869 +  esac;;
   8.870 +esac
   8.871 +case $ac_abs_builddir in
   8.872 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
   8.873 +*)
   8.874 +  case ${ac_top_builddir}. in
   8.875 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
   8.876 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
   8.877 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
   8.878 +  esac;;
   8.879 +esac
   8.880 +case $ac_abs_builddir in
   8.881 +.) ac_abs_srcdir=$ac_srcdir;;
   8.882 +*)
   8.883 +  case $ac_srcdir in
   8.884 +  .) ac_abs_srcdir=$ac_abs_builddir;;
   8.885 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
   8.886 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
   8.887 +  esac;;
   8.888 +esac
   8.889 +case $ac_abs_builddir in
   8.890 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
   8.891 +*)
   8.892 +  case $ac_top_srcdir in
   8.893 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
   8.894 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
   8.895 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
   8.896 +  esac;;
   8.897 +esac
   8.898 +
   8.899 +    cd $ac_dir
   8.900 +    # Check for guested configure; otherwise get Cygnus style configure.
   8.901 +    if test -f $ac_srcdir/configure.gnu; then
   8.902 +      echo
   8.903 +      $SHELL $ac_srcdir/configure.gnu  --help=recursive
   8.904 +    elif test -f $ac_srcdir/configure; then
   8.905 +      echo
   8.906 +      $SHELL $ac_srcdir/configure  --help=recursive
   8.907 +    elif test -f $ac_srcdir/configure.ac ||
   8.908 +	   test -f $ac_srcdir/configure.in; then
   8.909 +      echo
   8.910 +      $ac_configure --help
   8.911 +    else
   8.912 +      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   8.913 +    fi
   8.914 +    cd $ac_popdir
   8.915 +  done
   8.916 +fi
   8.917 +
   8.918 +test -n "$ac_init_help" && exit 0
   8.919 +if $ac_init_version; then
   8.920 +  cat <<\_ACEOF
   8.921 +xm-test configure 0.4.0
   8.922 +generated by GNU Autoconf 2.59
   8.923 +
   8.924 +Copyright (C) 2003 Free Software Foundation, Inc.
   8.925 +This configure script is free software; the Free Software Foundation
   8.926 +gives unlimited permission to copy, distribute and modify it.
   8.927 +_ACEOF
   8.928 +  exit 0
   8.929 +fi
   8.930 +exec 5>config.log
   8.931 +cat >&5 <<_ACEOF
   8.932 +This file contains any messages produced by compilers while
   8.933 +running configure, to aid debugging if configure makes a mistake.
   8.934 +
   8.935 +It was created by xm-test $as_me 0.4.0, which was
   8.936 +generated by GNU Autoconf 2.59.  Invocation command line was
   8.937 +
   8.938 +  $ $0 $@
   8.939 +
   8.940 +_ACEOF
   8.941 +{
   8.942 +cat <<_ASUNAME
   8.943 +## --------- ##
   8.944 +## Platform. ##
   8.945 +## --------- ##
   8.946 +
   8.947 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   8.948 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
   8.949 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
   8.950 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
   8.951 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
   8.952 +
   8.953 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   8.954 +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   8.955 +
   8.956 +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   8.957 +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   8.958 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   8.959 +hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
   8.960 +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   8.961 +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   8.962 +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   8.963 +
   8.964 +_ASUNAME
   8.965 +
   8.966 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8.967 +for as_dir in $PATH
   8.968 +do
   8.969 +  IFS=$as_save_IFS
   8.970 +  test -z "$as_dir" && as_dir=.
   8.971 +  echo "PATH: $as_dir"
   8.972 +done
   8.973 +
   8.974 +} >&5
   8.975 +
   8.976 +cat >&5 <<_ACEOF
   8.977 +
   8.978 +
   8.979 +## ----------- ##
   8.980 +## Core tests. ##
   8.981 +## ----------- ##
   8.982 +
   8.983 +_ACEOF
   8.984 +
   8.985 +
   8.986 +# Keep a trace of the command line.
   8.987 +# Strip out --no-create and --no-recursion so they do not pile up.
   8.988 +# Strip out --silent because we don't want to record it for future runs.
   8.989 +# Also quote any args containing shell meta-characters.
   8.990 +# Make two passes to allow for proper duplicate-argument suppression.
   8.991 +ac_configure_args=
   8.992 +ac_configure_args0=
   8.993 +ac_configure_args1=
   8.994 +ac_sep=
   8.995 +ac_must_keep_next=false
   8.996 +for ac_pass in 1 2
   8.997 +do
   8.998 +  for ac_arg
   8.999 +  do
  8.1000 +    case $ac_arg in
  8.1001 +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  8.1002 +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8.1003 +    | -silent | --silent | --silen | --sile | --sil)
  8.1004 +      continue ;;
  8.1005 +    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  8.1006 +      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8.1007 +    esac
  8.1008 +    case $ac_pass in
  8.1009 +    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  8.1010 +    2)
  8.1011 +      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  8.1012 +      if test $ac_must_keep_next = true; then
  8.1013 +	ac_must_keep_next=false # Got value, back to normal.
  8.1014 +      else
  8.1015 +	case $ac_arg in
  8.1016 +	  *=* | --config-cache | -C | -disable-* | --disable-* \
  8.1017 +	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  8.1018 +	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  8.1019 +	  | -with-* | --with-* | -without-* | --without-* | --x)
  8.1020 +	    case "$ac_configure_args0 " in
  8.1021 +	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  8.1022 +	    esac
  8.1023 +	    ;;
  8.1024 +	  -* ) ac_must_keep_next=true ;;
  8.1025 +	esac
  8.1026 +      fi
  8.1027 +      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  8.1028 +      # Get rid of the leading space.
  8.1029 +      ac_sep=" "
  8.1030 +      ;;
  8.1031 +    esac
  8.1032 +  done
  8.1033 +done
  8.1034 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  8.1035 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  8.1036 +
  8.1037 +# When interrupted or exit'd, cleanup temporary files, and complete
  8.1038 +# config.log.  We remove comments because anyway the quotes in there
  8.1039 +# would cause problems or look ugly.
  8.1040 +# WARNING: Be sure not to use single quotes in there, as some shells,
  8.1041 +# such as our DU 5.0 friend, will then `close' the trap.
  8.1042 +trap 'exit_status=$?
  8.1043 +  # Save into config.log some information that might help in debugging.
  8.1044 +  {
  8.1045 +    echo
  8.1046 +
  8.1047 +    cat <<\_ASBOX
  8.1048 +## ---------------- ##
  8.1049 +## Cache variables. ##
  8.1050 +## ---------------- ##
  8.1051 +_ASBOX
  8.1052 +    echo
  8.1053 +    # The following way of writing the cache mishandles newlines in values,
  8.1054 +{
  8.1055 +  (set) 2>&1 |
  8.1056 +    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  8.1057 +    *ac_space=\ *)
  8.1058 +      sed -n \
  8.1059 +	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  8.1060 +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  8.1061 +      ;;
  8.1062 +    *)
  8.1063 +      sed -n \
  8.1064 +	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8.1065 +      ;;
  8.1066 +    esac;
  8.1067 +}
  8.1068 +    echo
  8.1069 +
  8.1070 +    cat <<\_ASBOX
  8.1071 +## ----------------- ##
  8.1072 +## Output variables. ##
  8.1073 +## ----------------- ##
  8.1074 +_ASBOX
  8.1075 +    echo
  8.1076 +    for ac_var in $ac_subst_vars
  8.1077 +    do
  8.1078 +      eval ac_val=$`echo $ac_var`
  8.1079 +      echo "$ac_var='"'"'$ac_val'"'"'"
  8.1080 +    done | sort
  8.1081 +    echo
  8.1082 +
  8.1083 +    if test -n "$ac_subst_files"; then
  8.1084 +      cat <<\_ASBOX
  8.1085 +## ------------- ##
  8.1086 +## Output files. ##
  8.1087 +## ------------- ##
  8.1088 +_ASBOX
  8.1089 +      echo
  8.1090 +      for ac_var in $ac_subst_files
  8.1091 +      do
  8.1092 +	eval ac_val=$`echo $ac_var`
  8.1093 +	echo "$ac_var='"'"'$ac_val'"'"'"
  8.1094 +      done | sort
  8.1095 +      echo
  8.1096 +    fi
  8.1097 +
  8.1098 +    if test -s confdefs.h; then
  8.1099 +      cat <<\_ASBOX
  8.1100 +## ----------- ##
  8.1101 +## confdefs.h. ##
  8.1102 +## ----------- ##
  8.1103 +_ASBOX
  8.1104 +      echo
  8.1105 +      sed "/^$/d" confdefs.h | sort
  8.1106 +      echo
  8.1107 +    fi
  8.1108 +    test "$ac_signal" != 0 &&
  8.1109 +      echo "$as_me: caught signal $ac_signal"
  8.1110 +    echo "$as_me: exit $exit_status"
  8.1111 +  } >&5
  8.1112 +  rm -f core *.core &&
  8.1113 +  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  8.1114 +    exit $exit_status
  8.1115 +     ' 0
  8.1116 +for ac_signal in 1 2 13 15; do
  8.1117 +  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  8.1118 +done
  8.1119 +ac_signal=0
  8.1120 +
  8.1121 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  8.1122 +rm -rf conftest* confdefs.h
  8.1123 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  8.1124 +echo >confdefs.h
  8.1125 +
  8.1126 +# Predefined preprocessor variables.
  8.1127 +
  8.1128 +cat >>confdefs.h <<_ACEOF
  8.1129 +#define PACKAGE_NAME "$PACKAGE_NAME"
  8.1130 +_ACEOF
  8.1131 +
  8.1132 +
  8.1133 +cat >>confdefs.h <<_ACEOF
  8.1134 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  8.1135 +_ACEOF
  8.1136 +
  8.1137 +
  8.1138 +cat >>confdefs.h <<_ACEOF
  8.1139 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  8.1140 +_ACEOF
  8.1141 +
  8.1142 +
  8.1143 +cat >>confdefs.h <<_ACEOF
  8.1144 +#define PACKAGE_STRING "$PACKAGE_STRING"
  8.1145 +_ACEOF
  8.1146 +
  8.1147 +
  8.1148 +cat >>confdefs.h <<_ACEOF
  8.1149 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  8.1150 +_ACEOF
  8.1151 +
  8.1152 +
  8.1153 +# Let the site file select an alternate cache file if it wants to.
  8.1154 +# Prefer explicitly selected file to automatically selected ones.
  8.1155 +if test -z "$CONFIG_SITE"; then
  8.1156 +  if test "x$prefix" != xNONE; then
  8.1157 +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  8.1158 +  else
  8.1159 +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  8.1160 +  fi
  8.1161 +fi
  8.1162 +for ac_site_file in $CONFIG_SITE; do
  8.1163 +  if test -r "$ac_site_file"; then
  8.1164 +    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  8.1165 +echo "$as_me: loading site script $ac_site_file" >&6;}
  8.1166 +    sed 's/^/| /' "$ac_site_file" >&5
  8.1167 +    . "$ac_site_file"
  8.1168 +  fi
  8.1169 +done
  8.1170 +
  8.1171 +if test -r "$cache_file"; then
  8.1172 +  # Some versions of bash will fail to source /dev/null (special
  8.1173 +  # files actually), so we avoid doing that.
  8.1174 +  if test -f "$cache_file"; then
  8.1175 +    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  8.1176 +echo "$as_me: loading cache $cache_file" >&6;}
  8.1177 +    case $cache_file in
  8.1178 +      [\\/]* | ?:[\\/]* ) . $cache_file;;
  8.1179 +      *)                      . ./$cache_file;;
  8.1180 +    esac
  8.1181 +  fi
  8.1182 +else
  8.1183 +  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  8.1184 +echo "$as_me: creating cache $cache_file" >&6;}
  8.1185 +  >$cache_file
  8.1186 +fi
  8.1187 +
  8.1188 +# Check that the precious variables saved in the cache have kept the same
  8.1189 +# value.
  8.1190 +ac_cache_corrupted=false
  8.1191 +for ac_var in `(set) 2>&1 |
  8.1192 +	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  8.1193 +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  8.1194 +  eval ac_new_set=\$ac_env_${ac_var}_set
  8.1195 +  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  8.1196 +  eval ac_new_val="\$ac_env_${ac_var}_value"
  8.1197 +  case $ac_old_set,$ac_new_set in
  8.1198 +    set,)
  8.1199 +      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  8.1200 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  8.1201 +      ac_cache_corrupted=: ;;
  8.1202 +    ,set)
  8.1203 +      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  8.1204 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  8.1205 +      ac_cache_corrupted=: ;;
  8.1206 +    ,);;
  8.1207 +    *)
  8.1208 +      if test "x$ac_old_val" != "x$ac_new_val"; then
  8.1209 +	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  8.1210 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  8.1211 +	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  8.1212 +echo "$as_me:   former value:  $ac_old_val" >&2;}
  8.1213 +	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  8.1214 +echo "$as_me:   current value: $ac_new_val" >&2;}
  8.1215 +	ac_cache_corrupted=:
  8.1216 +      fi;;
  8.1217 +  esac
  8.1218 +  # Pass precious variables to config.status.
  8.1219 +  if test "$ac_new_set" = set; then
  8.1220 +    case $ac_new_val in
  8.1221 +    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  8.1222 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  8.1223 +    *) ac_arg=$ac_var=$ac_new_val ;;
  8.1224 +    esac
  8.1225 +    case " $ac_configure_args " in
  8.1226 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  8.1227 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  8.1228 +    esac
  8.1229 +  fi
  8.1230 +done
  8.1231 +if $ac_cache_corrupted; then
  8.1232 +  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  8.1233 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  8.1234 +  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  8.1235 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  8.1236 +   { (exit 1); exit 1; }; }
  8.1237 +fi
  8.1238 +
  8.1239 +ac_ext=c
  8.1240 +ac_cpp='$CPP $CPPFLAGS'
  8.1241 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8.1242 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8.1243 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8.1244 +
  8.1245 +
  8.1246 +
  8.1247 +
  8.1248 +
  8.1249 +
  8.1250 +
  8.1251 +
  8.1252 +
  8.1253 +
  8.1254 +
  8.1255 +
  8.1256 +
  8.1257 +
  8.1258 +
  8.1259 +
  8.1260 +
  8.1261 +
  8.1262 +
  8.1263 +
  8.1264 +
  8.1265 +
  8.1266 +
  8.1267 +
  8.1268 +
  8.1269 +
  8.1270 +
  8.1271 +am__api_version="1.9"
  8.1272 +ac_aux_dir=
  8.1273 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  8.1274 +  if test -f $ac_dir/install-sh; then
  8.1275 +    ac_aux_dir=$ac_dir
  8.1276 +    ac_install_sh="$ac_aux_dir/install-sh -c"
  8.1277 +    break
  8.1278 +  elif test -f $ac_dir/install.sh; then
  8.1279 +    ac_aux_dir=$ac_dir
  8.1280 +    ac_install_sh="$ac_aux_dir/install.sh -c"
  8.1281 +    break
  8.1282 +  elif test -f $ac_dir/shtool; then
  8.1283 +    ac_aux_dir=$ac_dir
  8.1284 +    ac_install_sh="$ac_aux_dir/shtool install -c"
  8.1285 +    break
  8.1286 +  fi
  8.1287 +done
  8.1288 +if test -z "$ac_aux_dir"; then
  8.1289 +  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  8.1290 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  8.1291 +   { (exit 1); exit 1; }; }
  8.1292 +fi
  8.1293 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  8.1294 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  8.1295 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  8.1296 +
  8.1297 +# Find a good install program.  We prefer a C program (faster),
  8.1298 +# so one script is as good as another.  But avoid the broken or
  8.1299 +# incompatible versions:
  8.1300 +# SysV /etc/install, /usr/sbin/install
  8.1301 +# SunOS /usr/etc/install
  8.1302 +# IRIX /sbin/install
  8.1303 +# AIX /bin/install
  8.1304 +# AmigaOS /C/install, which installs bootblocks on floppy discs
  8.1305 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  8.1306 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  8.1307 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  8.1308 +# OS/2's system install, which has a completely different semantic
  8.1309 +# ./install, which can be erroneously created by make from ./install.sh.
  8.1310 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  8.1311 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  8.1312 +if test -z "$INSTALL"; then
  8.1313 +if test "${ac_cv_path_install+set}" = set; then
  8.1314 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1315 +else
  8.1316 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1317 +for as_dir in $PATH
  8.1318 +do
  8.1319 +  IFS=$as_save_IFS
  8.1320 +  test -z "$as_dir" && as_dir=.
  8.1321 +  # Account for people who put trailing slashes in PATH elements.
  8.1322 +case $as_dir/ in
  8.1323 +  ./ | .// | /cC/* | \
  8.1324 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  8.1325 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  8.1326 +  /usr/ucb/* ) ;;
  8.1327 +  *)
  8.1328 +    # OSF1 and SCO ODT 3.0 have their own names for install.
  8.1329 +    # Don't use installbsd from OSF since it installs stuff as root
  8.1330 +    # by default.
  8.1331 +    for ac_prog in ginstall scoinst install; do
  8.1332 +      for ac_exec_ext in '' $ac_executable_extensions; do
  8.1333 +	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  8.1334 +	  if test $ac_prog = install &&
  8.1335 +	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8.1336 +	    # AIX install.  It has an incompatible calling convention.
  8.1337 +	    :
  8.1338 +	  elif test $ac_prog = install &&
  8.1339 +	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8.1340 +	    # program-specific install script used by HP pwplus--don't use.
  8.1341 +	    :
  8.1342 +	  else
  8.1343 +	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  8.1344 +	    break 3
  8.1345 +	  fi
  8.1346 +	fi
  8.1347 +      done
  8.1348 +    done
  8.1349 +    ;;
  8.1350 +esac
  8.1351 +done
  8.1352 +
  8.1353 +
  8.1354 +fi
  8.1355 +  if test "${ac_cv_path_install+set}" = set; then
  8.1356 +    INSTALL=$ac_cv_path_install
  8.1357 +  else
  8.1358 +    # As a last resort, use the slow shell script.  We don't cache a
  8.1359 +    # path for INSTALL within a source directory, because that will
  8.1360 +    # break other packages using the cache if that directory is
  8.1361 +    # removed, or if the path is relative.
  8.1362 +    INSTALL=$ac_install_sh
  8.1363 +  fi
  8.1364 +fi
  8.1365 +echo "$as_me:$LINENO: result: $INSTALL" >&5
  8.1366 +echo "${ECHO_T}$INSTALL" >&6
  8.1367 +
  8.1368 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  8.1369 +# It thinks the first close brace ends the variable substitution.
  8.1370 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  8.1371 +
  8.1372 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  8.1373 +
  8.1374 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  8.1375 +
  8.1376 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  8.1377 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  8.1378 +# Just in case
  8.1379 +sleep 1
  8.1380 +echo timestamp > conftest.file
  8.1381 +# Do `set' in a subshell so we don't clobber the current shell's
  8.1382 +# arguments.  Must try -L first in case configure is actually a
  8.1383 +# symlink; some systems play weird games with the mod time of symlinks
  8.1384 +# (eg FreeBSD returns the mod time of the symlink's containing
  8.1385 +# directory).
  8.1386 +if (
  8.1387 +   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  8.1388 +   if test "$*" = "X"; then
  8.1389 +      # -L didn't work.
  8.1390 +      set X `ls -t $srcdir/configure conftest.file`
  8.1391 +   fi
  8.1392 +   rm -f conftest.file
  8.1393 +   if test "$*" != "X $srcdir/configure conftest.file" \
  8.1394 +      && test "$*" != "X conftest.file $srcdir/configure"; then
  8.1395 +
  8.1396 +      # If neither matched, then we have a broken ls.  This can happen
  8.1397 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
  8.1398 +      # broken ls alias from the environment.  This has actually
  8.1399 +      # happened.  Such a system could not be considered "sane".
  8.1400 +      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  8.1401 +alias in your environment" >&5
  8.1402 +echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  8.1403 +alias in your environment" >&2;}
  8.1404 +   { (exit 1); exit 1; }; }
  8.1405 +   fi
  8.1406 +
  8.1407 +   test "$2" = conftest.file
  8.1408 +   )
  8.1409 +then
  8.1410 +   # Ok.
  8.1411 +   :
  8.1412 +else
  8.1413 +   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  8.1414 +Check your system clock" >&5
  8.1415 +echo "$as_me: error: newly created file is older than distributed files!
  8.1416 +Check your system clock" >&2;}
  8.1417 +   { (exit 1); exit 1; }; }
  8.1418 +fi
  8.1419 +echo "$as_me:$LINENO: result: yes" >&5
  8.1420 +echo "${ECHO_T}yes" >&6
  8.1421 +test "$program_prefix" != NONE &&
  8.1422 +  program_transform_name="s,^,$program_prefix,;$program_transform_name"
  8.1423 +# Use a double $ so make ignores it.
  8.1424 +test "$program_suffix" != NONE &&
  8.1425 +  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  8.1426 +# Double any \ or $.  echo might interpret backslashes.
  8.1427 +# By default was `s,x,x', remove it if useless.
  8.1428 +cat <<\_ACEOF >conftest.sed
  8.1429 +s/[\\$]/&&/g;s/;s,x,x,$//
  8.1430 +_ACEOF
  8.1431 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  8.1432 +rm conftest.sed
  8.1433 +
  8.1434 +# expand $ac_aux_dir to an absolute path
  8.1435 +am_aux_dir=`cd $ac_aux_dir && pwd`
  8.1436 +
  8.1437 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  8.1438 +# Use eval to expand $SHELL
  8.1439 +if eval "$MISSING --run true"; then
  8.1440 +  am_missing_run="$MISSING --run "
  8.1441 +else
  8.1442 +  am_missing_run=
  8.1443 +  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  8.1444 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  8.1445 +fi
  8.1446 +
  8.1447 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  8.1448 +  # We used to keeping the `.' as first argument, in order to
  8.1449 +  # allow $(mkdir_p) to be used without argument.  As in
  8.1450 +  #   $(mkdir_p) $(somedir)
  8.1451 +  # where $(somedir) is conditionally defined.  However this is wrong
  8.1452 +  # for two reasons:
  8.1453 +  #  1. if the package is installed by a user who cannot write `.'
  8.1454 +  #     make install will fail,
  8.1455 +  #  2. the above comment should most certainly read
  8.1456 +  #     $(mkdir_p) $(DESTDIR)$(somedir)
  8.1457 +  #     so it does not work when $(somedir) is undefined and
  8.1458 +  #     $(DESTDIR) is not.
  8.1459 +  #  To support the latter case, we have to write
  8.1460 +  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  8.1461 +  #  so the `.' trick is pointless.
  8.1462 +  mkdir_p='mkdir -p --'
  8.1463 +else
  8.1464 +  # On NextStep and OpenStep, the `mkdir' command does not
  8.1465 +  # recognize any option.  It will interpret all options as
  8.1466 +  # directories to create, and then abort because `.' already
  8.1467 +  # exists.
  8.1468 +  for d in ./-p ./--version;
  8.1469 +  do
  8.1470 +    test -d $d && rmdir $d
  8.1471 +  done
  8.1472 +  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  8.1473 +  if test -f "$ac_aux_dir/mkinstalldirs"; then
  8.1474 +    mkdir_p='$(mkinstalldirs)'
  8.1475 +  else
  8.1476 +    mkdir_p='$(install_sh) -d'
  8.1477 +  fi
  8.1478 +fi
  8.1479 +
  8.1480 +for ac_prog in gawk mawk nawk awk
  8.1481 +do
  8.1482 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  8.1483 +set dummy $ac_prog; ac_word=$2
  8.1484 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.1485 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.1486 +if test "${ac_cv_prog_AWK+set}" = set; then
  8.1487 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1488 +else
  8.1489 +  if test -n "$AWK"; then
  8.1490 +  ac_cv_prog_AWK="$AWK" # Let the user override the test.
  8.1491 +else
  8.1492 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1493 +for as_dir in $PATH
  8.1494 +do
  8.1495 +  IFS=$as_save_IFS
  8.1496 +  test -z "$as_dir" && as_dir=.
  8.1497 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.1498 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.1499 +    ac_cv_prog_AWK="$ac_prog"
  8.1500 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.1501 +    break 2
  8.1502 +  fi
  8.1503 +done
  8.1504 +done
  8.1505 +
  8.1506 +fi
  8.1507 +fi
  8.1508 +AWK=$ac_cv_prog_AWK
  8.1509 +if test -n "$AWK"; then
  8.1510 +  echo "$as_me:$LINENO: result: $AWK" >&5
  8.1511 +echo "${ECHO_T}$AWK" >&6
  8.1512 +else
  8.1513 +  echo "$as_me:$LINENO: result: no" >&5
  8.1514 +echo "${ECHO_T}no" >&6
  8.1515 +fi
  8.1516 +
  8.1517 +  test -n "$AWK" && break
  8.1518 +done
  8.1519 +
  8.1520 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  8.1521 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  8.1522 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  8.1523 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  8.1524 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1525 +else
  8.1526 +  cat >conftest.make <<\_ACEOF
  8.1527 +all:
  8.1528 +	@echo 'ac_maketemp="$(MAKE)"'
  8.1529 +_ACEOF
  8.1530 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  8.1531 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  8.1532 +if test -n "$ac_maketemp"; then
  8.1533 +  eval ac_cv_prog_make_${ac_make}_set=yes
  8.1534 +else
  8.1535 +  eval ac_cv_prog_make_${ac_make}_set=no
  8.1536 +fi
  8.1537 +rm -f conftest.make
  8.1538 +fi
  8.1539 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  8.1540 +  echo "$as_me:$LINENO: result: yes" >&5
  8.1541 +echo "${ECHO_T}yes" >&6
  8.1542 +  SET_MAKE=
  8.1543 +else
  8.1544 +  echo "$as_me:$LINENO: result: no" >&5
  8.1545 +echo "${ECHO_T}no" >&6
  8.1546 +  SET_MAKE="MAKE=${MAKE-make}"
  8.1547 +fi
  8.1548 +
  8.1549 +rm -rf .tst 2>/dev/null
  8.1550 +mkdir .tst 2>/dev/null
  8.1551 +if test -d .tst; then
  8.1552 +  am__leading_dot=.
  8.1553 +else
  8.1554 +  am__leading_dot=_
  8.1555 +fi
  8.1556 +rmdir .tst 2>/dev/null
  8.1557 +
  8.1558 +# test to see if srcdir already configured
  8.1559 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
  8.1560 +   test -f $srcdir/config.status; then
  8.1561 +  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  8.1562 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  8.1563 +   { (exit 1); exit 1; }; }
  8.1564 +fi
  8.1565 +
  8.1566 +# test whether we have cygpath
  8.1567 +if test -z "$CYGPATH_W"; then
  8.1568 +  if (cygpath --version) >/dev/null 2>/dev/null; then
  8.1569 +    CYGPATH_W='cygpath -w'
  8.1570 +  else
  8.1571 +    CYGPATH_W=echo
  8.1572 +  fi
  8.1573 +fi
  8.1574 +
  8.1575 +
  8.1576 +# Define the identity of the package.
  8.1577 + PACKAGE='xm-test'
  8.1578 + VERSION='0.4.0'
  8.1579 +
  8.1580 +
  8.1581 +cat >>confdefs.h <<_ACEOF
  8.1582 +#define PACKAGE "$PACKAGE"
  8.1583 +_ACEOF
  8.1584 +
  8.1585 +
  8.1586 +cat >>confdefs.h <<_ACEOF
  8.1587 +#define VERSION "$VERSION"
  8.1588 +_ACEOF
  8.1589 +
  8.1590 +# Some tools Automake needs.
  8.1591 +
  8.1592 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  8.1593 +
  8.1594 +
  8.1595 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  8.1596 +
  8.1597 +
  8.1598 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  8.1599 +
  8.1600 +
  8.1601 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  8.1602 +
  8.1603 +
  8.1604 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  8.1605 +
  8.1606 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
  8.1607 +
  8.1608 +# Installed binaries are usually stripped using `strip' when the user
  8.1609 +# run `make install-strip'.  However `strip' might not be the right
  8.1610 +# tool to use in cross-compilation environments, therefore Automake
  8.1611 +# will honor the `STRIP' environment variable to overrule this program.
  8.1612 +if test "$cross_compiling" != no; then
  8.1613 +  if test -n "$ac_tool_prefix"; then
  8.1614 +  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8.1615 +set dummy ${ac_tool_prefix}strip; ac_word=$2
  8.1616 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.1617 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.1618 +if test "${ac_cv_prog_STRIP+set}" = set; then
  8.1619 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1620 +else
  8.1621 +  if test -n "$STRIP"; then
  8.1622 +  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8.1623 +else
  8.1624 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1625 +for as_dir in $PATH
  8.1626 +do
  8.1627 +  IFS=$as_save_IFS
  8.1628 +  test -z "$as_dir" && as_dir=.
  8.1629 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.1630 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.1631 +    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8.1632 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.1633 +    break 2
  8.1634 +  fi
  8.1635 +done
  8.1636 +done
  8.1637 +
  8.1638 +fi
  8.1639 +fi
  8.1640 +STRIP=$ac_cv_prog_STRIP
  8.1641 +if test -n "$STRIP"; then
  8.1642 +  echo "$as_me:$LINENO: result: $STRIP" >&5
  8.1643 +echo "${ECHO_T}$STRIP" >&6
  8.1644 +else
  8.1645 +  echo "$as_me:$LINENO: result: no" >&5
  8.1646 +echo "${ECHO_T}no" >&6
  8.1647 +fi
  8.1648 +
  8.1649 +fi
  8.1650 +if test -z "$ac_cv_prog_STRIP"; then
  8.1651 +  ac_ct_STRIP=$STRIP
  8.1652 +  # Extract the first word of "strip", so it can be a program name with args.
  8.1653 +set dummy strip; ac_word=$2
  8.1654 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.1655 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.1656 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  8.1657 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1658 +else
  8.1659 +  if test -n "$ac_ct_STRIP"; then
  8.1660 +  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8.1661 +else
  8.1662 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1663 +for as_dir in $PATH
  8.1664 +do
  8.1665 +  IFS=$as_save_IFS
  8.1666 +  test -z "$as_dir" && as_dir=.
  8.1667 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.1668 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.1669 +    ac_cv_prog_ac_ct_STRIP="strip"
  8.1670 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.1671 +    break 2
  8.1672 +  fi
  8.1673 +done
  8.1674 +done
  8.1675 +
  8.1676 +  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  8.1677 +fi
  8.1678 +fi
  8.1679 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8.1680 +if test -n "$ac_ct_STRIP"; then
  8.1681 +  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  8.1682 +echo "${ECHO_T}$ac_ct_STRIP" >&6
  8.1683 +else
  8.1684 +  echo "$as_me:$LINENO: result: no" >&5
  8.1685 +echo "${ECHO_T}no" >&6
  8.1686 +fi
  8.1687 +
  8.1688 +  STRIP=$ac_ct_STRIP
  8.1689 +else
  8.1690 +  STRIP="$ac_cv_prog_STRIP"
  8.1691 +fi
  8.1692 +
  8.1693 +fi
  8.1694 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  8.1695 +
  8.1696 +# We need awk for the "check" target.  The system "awk" is bad on
  8.1697 +# some platforms.
  8.1698 +# Always define AMTAR for backward compatibility.
  8.1699 +
  8.1700 +AMTAR=${AMTAR-"${am_missing_run}tar"}
  8.1701 +
  8.1702 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  8.1703 +
  8.1704 +
  8.1705 +
  8.1706 +
  8.1707 +
  8.1708 +
  8.1709 +# Check for dependencies
  8.1710 +ac_ext=c
  8.1711 +ac_cpp='$CPP $CPPFLAGS'
  8.1712 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8.1713 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8.1714 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8.1715 +if test -n "$ac_tool_prefix"; then
  8.1716 +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  8.1717 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  8.1718 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.1719 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.1720 +if test "${ac_cv_prog_CC+set}" = set; then
  8.1721 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1722 +else
  8.1723 +  if test -n "$CC"; then
  8.1724 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  8.1725 +else
  8.1726 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1727 +for as_dir in $PATH
  8.1728 +do
  8.1729 +  IFS=$as_save_IFS
  8.1730 +  test -z "$as_dir" && as_dir=.
  8.1731 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.1732 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.1733 +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
  8.1734 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.1735 +    break 2
  8.1736 +  fi
  8.1737 +done
  8.1738 +done
  8.1739 +
  8.1740 +fi
  8.1741 +fi
  8.1742 +CC=$ac_cv_prog_CC
  8.1743 +if test -n "$CC"; then
  8.1744 +  echo "$as_me:$LINENO: result: $CC" >&5
  8.1745 +echo "${ECHO_T}$CC" >&6
  8.1746 +else
  8.1747 +  echo "$as_me:$LINENO: result: no" >&5
  8.1748 +echo "${ECHO_T}no" >&6
  8.1749 +fi
  8.1750 +
  8.1751 +fi
  8.1752 +if test -z "$ac_cv_prog_CC"; then
  8.1753 +  ac_ct_CC=$CC
  8.1754 +  # Extract the first word of "gcc", so it can be a program name with args.
  8.1755 +set dummy gcc; ac_word=$2
  8.1756 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.1757 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.1758 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  8.1759 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1760 +else
  8.1761 +  if test -n "$ac_ct_CC"; then
  8.1762 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  8.1763 +else
  8.1764 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1765 +for as_dir in $PATH
  8.1766 +do
  8.1767 +  IFS=$as_save_IFS
  8.1768 +  test -z "$as_dir" && as_dir=.
  8.1769 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.1770 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.1771 +    ac_cv_prog_ac_ct_CC="gcc"
  8.1772 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.1773 +    break 2
  8.1774 +  fi
  8.1775 +done
  8.1776 +done
  8.1777 +
  8.1778 +fi
  8.1779 +fi
  8.1780 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  8.1781 +if test -n "$ac_ct_CC"; then
  8.1782 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  8.1783 +echo "${ECHO_T}$ac_ct_CC" >&6
  8.1784 +else
  8.1785 +  echo "$as_me:$LINENO: result: no" >&5
  8.1786 +echo "${ECHO_T}no" >&6
  8.1787 +fi
  8.1788 +
  8.1789 +  CC=$ac_ct_CC
  8.1790 +else
  8.1791 +  CC="$ac_cv_prog_CC"
  8.1792 +fi
  8.1793 +
  8.1794 +if test -z "$CC"; then
  8.1795 +  if test -n "$ac_tool_prefix"; then
  8.1796 +  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  8.1797 +set dummy ${ac_tool_prefix}cc; ac_word=$2
  8.1798 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.1799 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.1800 +if test "${ac_cv_prog_CC+set}" = set; then
  8.1801 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1802 +else
  8.1803 +  if test -n "$CC"; then
  8.1804 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  8.1805 +else
  8.1806 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1807 +for as_dir in $PATH
  8.1808 +do
  8.1809 +  IFS=$as_save_IFS
  8.1810 +  test -z "$as_dir" && as_dir=.
  8.1811 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.1812 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.1813 +    ac_cv_prog_CC="${ac_tool_prefix}cc"
  8.1814 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.1815 +    break 2
  8.1816 +  fi
  8.1817 +done
  8.1818 +done
  8.1819 +
  8.1820 +fi
  8.1821 +fi
  8.1822 +CC=$ac_cv_prog_CC
  8.1823 +if test -n "$CC"; then
  8.1824 +  echo "$as_me:$LINENO: result: $CC" >&5
  8.1825 +echo "${ECHO_T}$CC" >&6
  8.1826 +else
  8.1827 +  echo "$as_me:$LINENO: result: no" >&5
  8.1828 +echo "${ECHO_T}no" >&6
  8.1829 +fi
  8.1830 +
  8.1831 +fi
  8.1832 +if test -z "$ac_cv_prog_CC"; then
  8.1833 +  ac_ct_CC=$CC
  8.1834 +  # Extract the first word of "cc", so it can be a program name with args.
  8.1835 +set dummy cc; ac_word=$2
  8.1836 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.1837 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.1838 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  8.1839 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1840 +else
  8.1841 +  if test -n "$ac_ct_CC"; then
  8.1842 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  8.1843 +else
  8.1844 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1845 +for as_dir in $PATH
  8.1846 +do
  8.1847 +  IFS=$as_save_IFS
  8.1848 +  test -z "$as_dir" && as_dir=.
  8.1849 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.1850 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.1851 +    ac_cv_prog_ac_ct_CC="cc"
  8.1852 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.1853 +    break 2
  8.1854 +  fi
  8.1855 +done
  8.1856 +done
  8.1857 +
  8.1858 +fi
  8.1859 +fi
  8.1860 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  8.1861 +if test -n "$ac_ct_CC"; then
  8.1862 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  8.1863 +echo "${ECHO_T}$ac_ct_CC" >&6
  8.1864 +else
  8.1865 +  echo "$as_me:$LINENO: result: no" >&5
  8.1866 +echo "${ECHO_T}no" >&6
  8.1867 +fi
  8.1868 +
  8.1869 +  CC=$ac_ct_CC
  8.1870 +else
  8.1871 +  CC="$ac_cv_prog_CC"
  8.1872 +fi
  8.1873 +
  8.1874 +fi
  8.1875 +if test -z "$CC"; then
  8.1876 +  # Extract the first word of "cc", so it can be a program name with args.
  8.1877 +set dummy cc; ac_word=$2
  8.1878 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.1879 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.1880 +if test "${ac_cv_prog_CC+set}" = set; then
  8.1881 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1882 +else
  8.1883 +  if test -n "$CC"; then
  8.1884 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  8.1885 +else
  8.1886 +  ac_prog_rejected=no
  8.1887 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1888 +for as_dir in $PATH
  8.1889 +do
  8.1890 +  IFS=$as_save_IFS
  8.1891 +  test -z "$as_dir" && as_dir=.
  8.1892 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.1893 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.1894 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  8.1895 +       ac_prog_rejected=yes
  8.1896 +       continue
  8.1897 +     fi
  8.1898 +    ac_cv_prog_CC="cc"
  8.1899 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.1900 +    break 2
  8.1901 +  fi
  8.1902 +done
  8.1903 +done
  8.1904 +
  8.1905 +if test $ac_prog_rejected = yes; then
  8.1906 +  # We found a bogon in the path, so make sure we never use it.
  8.1907 +  set dummy $ac_cv_prog_CC
  8.1908 +  shift
  8.1909 +  if test $# != 0; then
  8.1910 +    # We chose a different compiler from the bogus one.
  8.1911 +    # However, it has the same basename, so the bogon will be chosen
  8.1912 +    # first if we set CC to just the basename; use the full file name.
  8.1913 +    shift
  8.1914 +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  8.1915 +  fi
  8.1916 +fi
  8.1917 +fi
  8.1918 +fi
  8.1919 +CC=$ac_cv_prog_CC
  8.1920 +if test -n "$CC"; then
  8.1921 +  echo "$as_me:$LINENO: result: $CC" >&5
  8.1922 +echo "${ECHO_T}$CC" >&6
  8.1923 +else
  8.1924 +  echo "$as_me:$LINENO: result: no" >&5
  8.1925 +echo "${ECHO_T}no" >&6
  8.1926 +fi
  8.1927 +
  8.1928 +fi
  8.1929 +if test -z "$CC"; then
  8.1930 +  if test -n "$ac_tool_prefix"; then
  8.1931 +  for ac_prog in cl
  8.1932 +  do
  8.1933 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8.1934 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8.1935 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.1936 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.1937 +if test "${ac_cv_prog_CC+set}" = set; then
  8.1938 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1939 +else
  8.1940 +  if test -n "$CC"; then
  8.1941 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  8.1942 +else
  8.1943 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1944 +for as_dir in $PATH
  8.1945 +do
  8.1946 +  IFS=$as_save_IFS
  8.1947 +  test -z "$as_dir" && as_dir=.
  8.1948 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.1949 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.1950 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  8.1951 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.1952 +    break 2
  8.1953 +  fi
  8.1954 +done
  8.1955 +done
  8.1956 +
  8.1957 +fi
  8.1958 +fi
  8.1959 +CC=$ac_cv_prog_CC
  8.1960 +if test -n "$CC"; then
  8.1961 +  echo "$as_me:$LINENO: result: $CC" >&5
  8.1962 +echo "${ECHO_T}$CC" >&6
  8.1963 +else
  8.1964 +  echo "$as_me:$LINENO: result: no" >&5
  8.1965 +echo "${ECHO_T}no" >&6
  8.1966 +fi
  8.1967 +
  8.1968 +    test -n "$CC" && break
  8.1969 +  done
  8.1970 +fi
  8.1971 +if test -z "$CC"; then
  8.1972 +  ac_ct_CC=$CC
  8.1973 +  for ac_prog in cl
  8.1974 +do
  8.1975 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  8.1976 +set dummy $ac_prog; ac_word=$2
  8.1977 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.1978 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.1979 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  8.1980 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.1981 +else
  8.1982 +  if test -n "$ac_ct_CC"; then
  8.1983 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  8.1984 +else
  8.1985 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.1986 +for as_dir in $PATH
  8.1987 +do
  8.1988 +  IFS=$as_save_IFS
  8.1989 +  test -z "$as_dir" && as_dir=.
  8.1990 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.1991 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.1992 +    ac_cv_prog_ac_ct_CC="$ac_prog"
  8.1993 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.1994 +    break 2
  8.1995 +  fi
  8.1996 +done
  8.1997 +done
  8.1998 +
  8.1999 +fi
  8.2000 +fi
  8.2001 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  8.2002 +if test -n "$ac_ct_CC"; then
  8.2003 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  8.2004 +echo "${ECHO_T}$ac_ct_CC" >&6
  8.2005 +else
  8.2006 +  echo "$as_me:$LINENO: result: no" >&5
  8.2007 +echo "${ECHO_T}no" >&6
  8.2008 +fi
  8.2009 +
  8.2010 +  test -n "$ac_ct_CC" && break
  8.2011 +done
  8.2012 +
  8.2013 +  CC=$ac_ct_CC
  8.2014 +fi
  8.2015 +
  8.2016 +fi
  8.2017 +
  8.2018 +
  8.2019 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  8.2020 +See \`config.log' for more details." >&5
  8.2021 +echo "$as_me: error: no acceptable C compiler found in \$PATH
  8.2022 +See \`config.log' for more details." >&2;}
  8.2023 +   { (exit 1); exit 1; }; }
  8.2024 +
  8.2025 +# Provide some information about the compiler.
  8.2026 +echo "$as_me:$LINENO:" \
  8.2027 +     "checking for C compiler version" >&5
  8.2028 +ac_compiler=`set X $ac_compile; echo $2`
  8.2029 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  8.2030 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
  8.2031 +  ac_status=$?
  8.2032 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2033 +  (exit $ac_status); }
  8.2034 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  8.2035 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
  8.2036 +  ac_status=$?
  8.2037 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2038 +  (exit $ac_status); }
  8.2039 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  8.2040 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
  8.2041 +  ac_status=$?
  8.2042 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2043 +  (exit $ac_status); }
  8.2044 +
  8.2045 +cat >conftest.$ac_ext <<_ACEOF
  8.2046 +/* confdefs.h.  */
  8.2047 +_ACEOF
  8.2048 +cat confdefs.h >>conftest.$ac_ext
  8.2049 +cat >>conftest.$ac_ext <<_ACEOF
  8.2050 +/* end confdefs.h.  */
  8.2051 +
  8.2052 +int
  8.2053 +main ()
  8.2054 +{
  8.2055 +
  8.2056 +  ;
  8.2057 +  return 0;
  8.2058 +}
  8.2059 +_ACEOF
  8.2060 +ac_clean_files_save=$ac_clean_files
  8.2061 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  8.2062 +# Try to create an executable without -o first, disregard a.out.
  8.2063 +# It will help us diagnose broken compilers, and finding out an intuition
  8.2064 +# of exeext.
  8.2065 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  8.2066 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  8.2067 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  8.2068 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  8.2069 +  (eval $ac_link_default) 2>&5
  8.2070 +  ac_status=$?
  8.2071 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2072 +  (exit $ac_status); }; then
  8.2073 +  # Find the output, starting from the most likely.  This scheme is
  8.2074 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  8.2075 +# resort.
  8.2076 +
  8.2077 +# Be careful to initialize this variable, since it used to be cached.
  8.2078 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  8.2079 +ac_cv_exeext=
  8.2080 +# b.out is created by i960 compilers.
  8.2081 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  8.2082 +do
  8.2083 +  test -f "$ac_file" || continue
  8.2084 +  case $ac_file in
  8.2085 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  8.2086 +	;;
  8.2087 +    conftest.$ac_ext )
  8.2088 +	# This is the source file.
  8.2089 +	;;
  8.2090 +    [ab].out )
  8.2091 +	# We found the default executable, but exeext='' is most
  8.2092 +	# certainly right.
  8.2093 +	break;;
  8.2094 +    *.* )
  8.2095 +	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  8.2096 +	# FIXME: I believe we export ac_cv_exeext for Libtool,
  8.2097 +	# but it would be cool to find out if it's true.  Does anybody
  8.2098 +	# maintain Libtool? --akim.
  8.2099 +	export ac_cv_exeext
  8.2100 +	break;;
  8.2101 +    * )
  8.2102 +	break;;
  8.2103 +  esac
  8.2104 +done
  8.2105 +else
  8.2106 +  echo "$as_me: failed program was:" >&5
  8.2107 +sed 's/^/| /' conftest.$ac_ext >&5
  8.2108 +
  8.2109 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  8.2110 +See \`config.log' for more details." >&5
  8.2111 +echo "$as_me: error: C compiler cannot create executables
  8.2112 +See \`config.log' for more details." >&2;}
  8.2113 +   { (exit 77); exit 77; }; }
  8.2114 +fi
  8.2115 +
  8.2116 +ac_exeext=$ac_cv_exeext
  8.2117 +echo "$as_me:$LINENO: result: $ac_file" >&5
  8.2118 +echo "${ECHO_T}$ac_file" >&6
  8.2119 +
  8.2120 +# Check the compiler produces executables we can run.  If not, either
  8.2121 +# the compiler is broken, or we cross compile.
  8.2122 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  8.2123 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  8.2124 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  8.2125 +# If not cross compiling, check that we can run a simple program.
  8.2126 +if test "$cross_compiling" != yes; then
  8.2127 +  if { ac_try='./$ac_file'
  8.2128 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2129 +  (eval $ac_try) 2>&5
  8.2130 +  ac_status=$?
  8.2131 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2132 +  (exit $ac_status); }; }; then
  8.2133 +    cross_compiling=no
  8.2134 +  else
  8.2135 +    if test "$cross_compiling" = maybe; then
  8.2136 +	cross_compiling=yes
  8.2137 +    else
  8.2138 +	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  8.2139 +If you meant to cross compile, use \`--host'.
  8.2140 +See \`config.log' for more details." >&5
  8.2141 +echo "$as_me: error: cannot run C compiled programs.
  8.2142 +If you meant to cross compile, use \`--host'.
  8.2143 +See \`config.log' for more details." >&2;}
  8.2144 +   { (exit 1); exit 1; }; }
  8.2145 +    fi
  8.2146 +  fi
  8.2147 +fi
  8.2148 +echo "$as_me:$LINENO: result: yes" >&5
  8.2149 +echo "${ECHO_T}yes" >&6
  8.2150 +
  8.2151 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  8.2152 +ac_clean_files=$ac_clean_files_save
  8.2153 +# Check the compiler produces executables we can run.  If not, either
  8.2154 +# the compiler is broken, or we cross compile.
  8.2155 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  8.2156 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  8.2157 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  8.2158 +echo "${ECHO_T}$cross_compiling" >&6
  8.2159 +
  8.2160 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  8.2161 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  8.2162 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.2163 +  (eval $ac_link) 2>&5
  8.2164 +  ac_status=$?
  8.2165 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2166 +  (exit $ac_status); }; then
  8.2167 +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
  8.2168 +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  8.2169 +# work properly (i.e., refer to `conftest.exe'), while it won't with
  8.2170 +# `rm'.
  8.2171 +for ac_file in conftest.exe conftest conftest.*; do
  8.2172 +  test -f "$ac_file" || continue
  8.2173 +  case $ac_file in
  8.2174 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  8.2175 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  8.2176 +	  export ac_cv_exeext
  8.2177 +	  break;;
  8.2178 +    * ) break;;
  8.2179 +  esac
  8.2180 +done
  8.2181 +else
  8.2182 +  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  8.2183 +See \`config.log' for more details." >&5
  8.2184 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  8.2185 +See \`config.log' for more details." >&2;}
  8.2186 +   { (exit 1); exit 1; }; }
  8.2187 +fi
  8.2188 +
  8.2189 +rm -f conftest$ac_cv_exeext
  8.2190 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  8.2191 +echo "${ECHO_T}$ac_cv_exeext" >&6
  8.2192 +
  8.2193 +rm -f conftest.$ac_ext
  8.2194 +EXEEXT=$ac_cv_exeext
  8.2195 +ac_exeext=$EXEEXT
  8.2196 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  8.2197 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  8.2198 +if test "${ac_cv_objext+set}" = set; then
  8.2199 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2200 +else
  8.2201 +  cat >conftest.$ac_ext <<_ACEOF
  8.2202 +/* confdefs.h.  */
  8.2203 +_ACEOF
  8.2204 +cat confdefs.h >>conftest.$ac_ext
  8.2205 +cat >>conftest.$ac_ext <<_ACEOF
  8.2206 +/* end confdefs.h.  */
  8.2207 +
  8.2208 +int
  8.2209 +main ()
  8.2210 +{
  8.2211 +
  8.2212 +  ;
  8.2213 +  return 0;
  8.2214 +}
  8.2215 +_ACEOF
  8.2216 +rm -f conftest.o conftest.obj
  8.2217 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.2218 +  (eval $ac_compile) 2>&5
  8.2219 +  ac_status=$?
  8.2220 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2221 +  (exit $ac_status); }; then
  8.2222 +  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  8.2223 +  case $ac_file in
  8.2224 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  8.2225 +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  8.2226 +       break;;
  8.2227 +  esac
  8.2228 +done
  8.2229 +else
  8.2230 +  echo "$as_me: failed program was:" >&5
  8.2231 +sed 's/^/| /' conftest.$ac_ext >&5
  8.2232 +
  8.2233 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  8.2234 +See \`config.log' for more details." >&5
  8.2235 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  8.2236 +See \`config.log' for more details." >&2;}
  8.2237 +   { (exit 1); exit 1; }; }
  8.2238 +fi
  8.2239 +
  8.2240 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  8.2241 +fi
  8.2242 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  8.2243 +echo "${ECHO_T}$ac_cv_objext" >&6
  8.2244 +OBJEXT=$ac_cv_objext
  8.2245 +ac_objext=$OBJEXT
  8.2246 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  8.2247 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  8.2248 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  8.2249 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2250 +else
  8.2251 +  cat >conftest.$ac_ext <<_ACEOF
  8.2252 +/* confdefs.h.  */
  8.2253 +_ACEOF
  8.2254 +cat confdefs.h >>conftest.$ac_ext
  8.2255 +cat >>conftest.$ac_ext <<_ACEOF
  8.2256 +/* end confdefs.h.  */
  8.2257 +
  8.2258 +int
  8.2259 +main ()
  8.2260 +{
  8.2261 +#ifndef __GNUC__
  8.2262 +       choke me
  8.2263 +#endif
  8.2264 +
  8.2265 +  ;
  8.2266 +  return 0;
  8.2267 +}
  8.2268 +_ACEOF
  8.2269 +rm -f conftest.$ac_objext
  8.2270 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.2271 +  (eval $ac_compile) 2>conftest.er1
  8.2272 +  ac_status=$?
  8.2273 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.2274 +  rm -f conftest.er1
  8.2275 +  cat conftest.err >&5
  8.2276 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2277 +  (exit $ac_status); } &&
  8.2278 +	 { ac_try='test -z "$ac_c_werror_flag"
  8.2279 +			 || test ! -s conftest.err'
  8.2280 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2281 +  (eval $ac_try) 2>&5
  8.2282 +  ac_status=$?
  8.2283 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2284 +  (exit $ac_status); }; } &&
  8.2285 +	 { ac_try='test -s conftest.$ac_objext'
  8.2286 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2287 +  (eval $ac_try) 2>&5
  8.2288 +  ac_status=$?
  8.2289 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2290 +  (exit $ac_status); }; }; then
  8.2291 +  ac_compiler_gnu=yes
  8.2292 +else
  8.2293 +  echo "$as_me: failed program was:" >&5
  8.2294 +sed 's/^/| /' conftest.$ac_ext >&5
  8.2295 +
  8.2296 +ac_compiler_gnu=no
  8.2297 +fi
  8.2298 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.2299 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  8.2300 +
  8.2301 +fi
  8.2302 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  8.2303 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  8.2304 +GCC=`test $ac_compiler_gnu = yes && echo yes`
  8.2305 +ac_test_CFLAGS=${CFLAGS+set}
  8.2306 +ac_save_CFLAGS=$CFLAGS
  8.2307 +CFLAGS="-g"
  8.2308 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  8.2309 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  8.2310 +if test "${ac_cv_prog_cc_g+set}" = set; then
  8.2311 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2312 +else
  8.2313 +  cat >conftest.$ac_ext <<_ACEOF
  8.2314 +/* confdefs.h.  */
  8.2315 +_ACEOF
  8.2316 +cat confdefs.h >>conftest.$ac_ext
  8.2317 +cat >>conftest.$ac_ext <<_ACEOF
  8.2318 +/* end confdefs.h.  */
  8.2319 +
  8.2320 +int
  8.2321 +main ()
  8.2322 +{
  8.2323 +
  8.2324 +  ;
  8.2325 +  return 0;
  8.2326 +}
  8.2327 +_ACEOF
  8.2328 +rm -f conftest.$ac_objext
  8.2329 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.2330 +  (eval $ac_compile) 2>conftest.er1
  8.2331 +  ac_status=$?
  8.2332 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.2333 +  rm -f conftest.er1
  8.2334 +  cat conftest.err >&5
  8.2335 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2336 +  (exit $ac_status); } &&
  8.2337 +	 { ac_try='test -z "$ac_c_werror_flag"
  8.2338 +			 || test ! -s conftest.err'
  8.2339 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2340 +  (eval $ac_try) 2>&5
  8.2341 +  ac_status=$?
  8.2342 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2343 +  (exit $ac_status); }; } &&
  8.2344 +	 { ac_try='test -s conftest.$ac_objext'
  8.2345 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2346 +  (eval $ac_try) 2>&5
  8.2347 +  ac_status=$?
  8.2348 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2349 +  (exit $ac_status); }; }; then
  8.2350 +  ac_cv_prog_cc_g=yes
  8.2351 +else
  8.2352 +  echo "$as_me: failed program was:" >&5
  8.2353 +sed 's/^/| /' conftest.$ac_ext >&5
  8.2354 +
  8.2355 +ac_cv_prog_cc_g=no
  8.2356 +fi
  8.2357 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.2358 +fi
  8.2359 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  8.2360 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  8.2361 +if test "$ac_test_CFLAGS" = set; then
  8.2362 +  CFLAGS=$ac_save_CFLAGS
  8.2363 +elif test $ac_cv_prog_cc_g = yes; then
  8.2364 +  if test "$GCC" = yes; then
  8.2365 +    CFLAGS="-g -O2"
  8.2366 +  else
  8.2367 +    CFLAGS="-g"
  8.2368 +  fi
  8.2369 +else
  8.2370 +  if test "$GCC" = yes; then
  8.2371 +    CFLAGS="-O2"
  8.2372 +  else
  8.2373 +    CFLAGS=
  8.2374 +  fi
  8.2375 +fi
  8.2376 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  8.2377 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  8.2378 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  8.2379 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2380 +else
  8.2381 +  ac_cv_prog_cc_stdc=no
  8.2382 +ac_save_CC=$CC
  8.2383 +cat >conftest.$ac_ext <<_ACEOF
  8.2384 +/* confdefs.h.  */
  8.2385 +_ACEOF
  8.2386 +cat confdefs.h >>conftest.$ac_ext
  8.2387 +cat >>conftest.$ac_ext <<_ACEOF
  8.2388 +/* end confdefs.h.  */
  8.2389 +#include <stdarg.h>
  8.2390 +#include <stdio.h>
  8.2391 +#include <sys/types.h>
  8.2392 +#include <sys/stat.h>
  8.2393 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  8.2394 +struct buf { int x; };
  8.2395 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  8.2396 +static char *e (p, i)
  8.2397 +     char **p;
  8.2398 +     int i;
  8.2399 +{
  8.2400 +  return p[i];
  8.2401 +}
  8.2402 +static char *f (char * (*g) (char **, int), char **p, ...)
  8.2403 +{
  8.2404 +  char *s;
  8.2405 +  va_list v;
  8.2406 +  va_start (v,p);
  8.2407 +  s = g (p, va_arg (v,int));
  8.2408 +  va_end (v);
  8.2409 +  return s;
  8.2410 +}
  8.2411 +
  8.2412 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  8.2413 +   function prototypes and stuff, but not '\xHH' hex character constants.
  8.2414 +   These don't provoke an error unfortunately, instead are silently treated
  8.2415 +   as 'x'.  The following induces an error, until -std1 is added to get
  8.2416 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  8.2417 +   array size at least.  It's necessary to write '\x00'==0 to get something
  8.2418 +   that's true only with -std1.  */
  8.2419 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  8.2420 +
  8.2421 +int test (int i, double x);
  8.2422 +struct s1 {int (*f) (int a);};
  8.2423 +struct s2 {int (*f) (double a);};
  8.2424 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  8.2425 +int argc;
  8.2426 +char **argv;
  8.2427 +int
  8.2428 +main ()
  8.2429 +{
  8.2430 +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  8.2431 +  ;
  8.2432 +  return 0;
  8.2433 +}
  8.2434 +_ACEOF
  8.2435 +# Don't try gcc -ansi; that turns off useful extensions and
  8.2436 +# breaks some systems' header files.
  8.2437 +# AIX			-qlanglvl=ansi
  8.2438 +# Ultrix and OSF/1	-std1
  8.2439 +# HP-UX 10.20 and later	-Ae
  8.2440 +# HP-UX older versions	-Aa -D_HPUX_SOURCE
  8.2441 +# SVR4			-Xc -D__EXTENSIONS__
  8.2442 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  8.2443 +do
  8.2444 +  CC="$ac_save_CC $ac_arg"
  8.2445 +  rm -f conftest.$ac_objext
  8.2446 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.2447 +  (eval $ac_compile) 2>conftest.er1
  8.2448 +  ac_status=$?
  8.2449 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.2450 +  rm -f conftest.er1
  8.2451 +  cat conftest.err >&5
  8.2452 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2453 +  (exit $ac_status); } &&
  8.2454 +	 { ac_try='test -z "$ac_c_werror_flag"
  8.2455 +			 || test ! -s conftest.err'
  8.2456 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2457 +  (eval $ac_try) 2>&5
  8.2458 +  ac_status=$?
  8.2459 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2460 +  (exit $ac_status); }; } &&
  8.2461 +	 { ac_try='test -s conftest.$ac_objext'
  8.2462 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2463 +  (eval $ac_try) 2>&5
  8.2464 +  ac_status=$?
  8.2465 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2466 +  (exit $ac_status); }; }; then
  8.2467 +  ac_cv_prog_cc_stdc=$ac_arg
  8.2468 +break
  8.2469 +else
  8.2470 +  echo "$as_me: failed program was:" >&5
  8.2471 +sed 's/^/| /' conftest.$ac_ext >&5
  8.2472 +
  8.2473 +fi
  8.2474 +rm -f conftest.err conftest.$ac_objext
  8.2475 +done
  8.2476 +rm -f conftest.$ac_ext conftest.$ac_objext
  8.2477 +CC=$ac_save_CC
  8.2478 +
  8.2479 +fi
  8.2480 +
  8.2481 +case "x$ac_cv_prog_cc_stdc" in
  8.2482 +  x|xno)
  8.2483 +    echo "$as_me:$LINENO: result: none needed" >&5
  8.2484 +echo "${ECHO_T}none needed" >&6 ;;
  8.2485 +  *)
  8.2486 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  8.2487 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  8.2488 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
  8.2489 +esac
  8.2490 +
  8.2491 +# Some people use a C++ compiler to compile C.  Since we use `exit',
  8.2492 +# in C++ we need to declare it.  In case someone uses the same compiler
  8.2493 +# for both compiling C and C++ we need to have the C++ compiler decide
  8.2494 +# the declaration of exit, since it's the most demanding environment.
  8.2495 +cat >conftest.$ac_ext <<_ACEOF
  8.2496 +#ifndef __cplusplus
  8.2497 +  choke me
  8.2498 +#endif
  8.2499 +_ACEOF
  8.2500 +rm -f conftest.$ac_objext
  8.2501 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.2502 +  (eval $ac_compile) 2>conftest.er1
  8.2503 +  ac_status=$?
  8.2504 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.2505 +  rm -f conftest.er1
  8.2506 +  cat conftest.err >&5
  8.2507 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2508 +  (exit $ac_status); } &&
  8.2509 +	 { ac_try='test -z "$ac_c_werror_flag"
  8.2510 +			 || test ! -s conftest.err'
  8.2511 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2512 +  (eval $ac_try) 2>&5
  8.2513 +  ac_status=$?
  8.2514 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2515 +  (exit $ac_status); }; } &&
  8.2516 +	 { ac_try='test -s conftest.$ac_objext'
  8.2517 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2518 +  (eval $ac_try) 2>&5
  8.2519 +  ac_status=$?
  8.2520 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2521 +  (exit $ac_status); }; }; then
  8.2522 +  for ac_declaration in \
  8.2523 +   '' \
  8.2524 +   'extern "C" void std::exit (int) throw (); using std::exit;' \
  8.2525 +   'extern "C" void std::exit (int); using std::exit;' \
  8.2526 +   'extern "C" void exit (int) throw ();' \
  8.2527 +   'extern "C" void exit (int);' \
  8.2528 +   'void exit (int);'
  8.2529 +do
  8.2530 +  cat >conftest.$ac_ext <<_ACEOF
  8.2531 +/* confdefs.h.  */
  8.2532 +_ACEOF
  8.2533 +cat confdefs.h >>conftest.$ac_ext
  8.2534 +cat >>conftest.$ac_ext <<_ACEOF
  8.2535 +/* end confdefs.h.  */
  8.2536 +$ac_declaration
  8.2537 +#include <stdlib.h>
  8.2538 +int
  8.2539 +main ()
  8.2540 +{
  8.2541 +exit (42);
  8.2542 +  ;
  8.2543 +  return 0;
  8.2544 +}
  8.2545 +_ACEOF
  8.2546 +rm -f conftest.$ac_objext
  8.2547 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.2548 +  (eval $ac_compile) 2>conftest.er1
  8.2549 +  ac_status=$?
  8.2550 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.2551 +  rm -f conftest.er1
  8.2552 +  cat conftest.err >&5
  8.2553 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2554 +  (exit $ac_status); } &&
  8.2555 +	 { ac_try='test -z "$ac_c_werror_flag"
  8.2556 +			 || test ! -s conftest.err'
  8.2557 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2558 +  (eval $ac_try) 2>&5
  8.2559 +  ac_status=$?
  8.2560 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2561 +  (exit $ac_status); }; } &&
  8.2562 +	 { ac_try='test -s conftest.$ac_objext'
  8.2563 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2564 +  (eval $ac_try) 2>&5
  8.2565 +  ac_status=$?
  8.2566 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2567 +  (exit $ac_status); }; }; then
  8.2568 +  :
  8.2569 +else
  8.2570 +  echo "$as_me: failed program was:" >&5
  8.2571 +sed 's/^/| /' conftest.$ac_ext >&5
  8.2572 +
  8.2573 +continue
  8.2574 +fi
  8.2575 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.2576 +  cat >conftest.$ac_ext <<_ACEOF
  8.2577 +/* confdefs.h.  */
  8.2578 +_ACEOF
  8.2579 +cat confdefs.h >>conftest.$ac_ext
  8.2580 +cat >>conftest.$ac_ext <<_ACEOF
  8.2581 +/* end confdefs.h.  */
  8.2582 +$ac_declaration
  8.2583 +int
  8.2584 +main ()
  8.2585 +{
  8.2586 +exit (42);
  8.2587 +  ;
  8.2588 +  return 0;
  8.2589 +}
  8.2590 +_ACEOF
  8.2591 +rm -f conftest.$ac_objext
  8.2592 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8.2593 +  (eval $ac_compile) 2>conftest.er1
  8.2594 +  ac_status=$?
  8.2595 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.2596 +  rm -f conftest.er1
  8.2597 +  cat conftest.err >&5
  8.2598 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2599 +  (exit $ac_status); } &&
  8.2600 +	 { ac_try='test -z "$ac_c_werror_flag"
  8.2601 +			 || test ! -s conftest.err'
  8.2602 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2603 +  (eval $ac_try) 2>&5
  8.2604 +  ac_status=$?
  8.2605 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2606 +  (exit $ac_status); }; } &&
  8.2607 +	 { ac_try='test -s conftest.$ac_objext'
  8.2608 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2609 +  (eval $ac_try) 2>&5
  8.2610 +  ac_status=$?
  8.2611 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2612 +  (exit $ac_status); }; }; then
  8.2613 +  break
  8.2614 +else
  8.2615 +  echo "$as_me: failed program was:" >&5
  8.2616 +sed 's/^/| /' conftest.$ac_ext >&5
  8.2617 +
  8.2618 +fi
  8.2619 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.2620 +done
  8.2621 +rm -f conftest*
  8.2622 +if test -n "$ac_declaration"; then
  8.2623 +  echo '#ifdef __cplusplus' >>confdefs.h
  8.2624 +  echo $ac_declaration      >>confdefs.h
  8.2625 +  echo '#endif'             >>confdefs.h
  8.2626 +fi
  8.2627 +
  8.2628 +else
  8.2629 +  echo "$as_me: failed program was:" >&5
  8.2630 +sed 's/^/| /' conftest.$ac_ext >&5
  8.2631 +
  8.2632 +fi
  8.2633 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8.2634 +ac_ext=c
  8.2635 +ac_cpp='$CPP $CPPFLAGS'
  8.2636 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8.2637 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8.2638 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8.2639 +DEPDIR="${am__leading_dot}deps"
  8.2640 +
  8.2641 +          ac_config_commands="$ac_config_commands depfiles"
  8.2642 +
  8.2643 +
  8.2644 +am_make=${MAKE-make}
  8.2645 +cat > confinc << 'END'
  8.2646 +am__doit:
  8.2647 +	@echo done
  8.2648 +.PHONY: am__doit
  8.2649 +END
  8.2650 +# If we don't find an include directive, just comment out the code.
  8.2651 +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  8.2652 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  8.2653 +am__include="#"
  8.2654 +am__quote=
  8.2655 +_am_result=none
  8.2656 +# First try GNU make style include.
  8.2657 +echo "include confinc" > confmf
  8.2658 +# We grep out `Entering directory' and `Leaving directory'
  8.2659 +# messages which can occur if `w' ends up in MAKEFLAGS.
  8.2660 +# In particular we don't look at `^make:' because GNU make might
  8.2661 +# be invoked under some other name (usually "gmake"), in which
  8.2662 +# case it prints its new name instead of `make'.
  8.2663 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  8.2664 +   am__include=include
  8.2665 +   am__quote=
  8.2666 +   _am_result=GNU
  8.2667 +fi
  8.2668 +# Now try BSD make style include.
  8.2669 +if test "$am__include" = "#"; then
  8.2670 +   echo '.include "confinc"' > confmf
  8.2671 +   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  8.2672 +      am__include=.include
  8.2673 +      am__quote="\""
  8.2674 +      _am_result=BSD
  8.2675 +   fi
  8.2676 +fi
  8.2677 +
  8.2678 +
  8.2679 +echo "$as_me:$LINENO: result: $_am_result" >&5
  8.2680 +echo "${ECHO_T}$_am_result" >&6
  8.2681 +rm -f confinc confmf
  8.2682 +
  8.2683 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  8.2684 +if test "${enable_dependency_tracking+set}" = set; then
  8.2685 +  enableval="$enable_dependency_tracking"
  8.2686 +
  8.2687 +fi;
  8.2688 +if test "x$enable_dependency_tracking" != xno; then
  8.2689 +  am_depcomp="$ac_aux_dir/depcomp"
  8.2690 +  AMDEPBACKSLASH='\'
  8.2691 +fi
  8.2692 +
  8.2693 +
  8.2694 +if test "x$enable_dependency_tracking" != xno; then
  8.2695 +  AMDEP_TRUE=
  8.2696 +  AMDEP_FALSE='#'
  8.2697 +else
  8.2698 +  AMDEP_TRUE='#'
  8.2699 +  AMDEP_FALSE=
  8.2700 +fi
  8.2701 +
  8.2702 +
  8.2703 +
  8.2704 +
  8.2705 +depcc="$CC"   am_compiler_list=
  8.2706 +
  8.2707 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  8.2708 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  8.2709 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  8.2710 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2711 +else
  8.2712 +  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8.2713 +  # We make a subdir and do the tests there.  Otherwise we can end up
  8.2714 +  # making bogus files that we don't know about and never remove.  For
  8.2715 +  # instance it was reported that on HP-UX the gcc test will end up
  8.2716 +  # making a dummy file named `D' -- because `-MD' means `put the output
  8.2717 +  # in D'.
  8.2718 +  mkdir conftest.dir
  8.2719 +  # Copy depcomp to subdir because otherwise we won't find it if we're
  8.2720 +  # using a relative directory.
  8.2721 +  cp "$am_depcomp" conftest.dir
  8.2722 +  cd conftest.dir
  8.2723 +  # We will build objects and dependencies in a subdirectory because
  8.2724 +  # it helps to detect inapplicable dependency modes.  For instance
  8.2725 +  # both Tru64's cc and ICC support -MD to output dependencies as a
  8.2726 +  # side effect of compilation, but ICC will put the dependencies in
  8.2727 +  # the current directory while Tru64 will put them in the object
  8.2728 +  # directory.
  8.2729 +  mkdir sub
  8.2730 +
  8.2731 +  am_cv_CC_dependencies_compiler_type=none
  8.2732 +  if test "$am_compiler_list" = ""; then
  8.2733 +     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  8.2734 +  fi
  8.2735 +  for depmode in $am_compiler_list; do
  8.2736 +    # Setup a source with many dependencies, because some compilers
  8.2737 +    # like to wrap large dependency lists on column 80 (with \), and
  8.2738 +    # we should not choose a depcomp mode which is confused by this.
  8.2739 +    #
  8.2740 +    # We need to recreate these files for each test, as the compiler may
  8.2741 +    # overwrite some of them when testing with obscure command lines.
  8.2742 +    # This happens at least with the AIX C compiler.
  8.2743 +    : > sub/conftest.c
  8.2744 +    for i in 1 2 3 4 5 6; do
  8.2745 +      echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8.2746 +      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8.2747 +      # Solaris 8's {/usr,}/bin/sh.
  8.2748 +      touch sub/conftst$i.h
  8.2749 +    done
  8.2750 +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8.2751 +
  8.2752 +    case $depmode in
  8.2753 +    nosideeffect)
  8.2754 +      # after this tag, mechanisms are not by side-effect, so they'll
  8.2755 +      # only be used when explicitly requested
  8.2756 +      if test "x$enable_dependency_tracking" = xyes; then
  8.2757 +	continue
  8.2758 +      else
  8.2759 +	break
  8.2760 +      fi
  8.2761 +      ;;
  8.2762 +    none) break ;;
  8.2763 +    esac
  8.2764 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8.2765 +    # mode.  It turns out that the SunPro C++ compiler does not properly
  8.2766 +    # handle `-M -o', and we need to detect this.
  8.2767 +    if depmode=$depmode \
  8.2768 +       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8.2769 +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8.2770 +       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8.2771 +         >/dev/null 2>conftest.err &&
  8.2772 +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8.2773 +       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8.2774 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8.2775 +      # icc doesn't choke on unknown options, it will just issue warnings
  8.2776 +      # or remarks (even with -Werror).  So we grep stderr for any message
  8.2777 +      # that says an option was ignored or not supported.
  8.2778 +      # When given -MP, icc 7.0 and 7.1 complain thusly:
  8.2779 +      #   icc: Command line warning: ignoring option '-M'; no argument required
  8.2780 +      # The diagnosis changed in icc 8.0:
  8.2781 +      #   icc: Command line remark: option '-MP' not supported
  8.2782 +      if (grep 'ignoring option' conftest.err ||
  8.2783 +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8.2784 +        am_cv_CC_dependencies_compiler_type=$depmode
  8.2785 +        break
  8.2786 +      fi
  8.2787 +    fi
  8.2788 +  done
  8.2789 +
  8.2790 +  cd ..
  8.2791 +  rm -rf conftest.dir
  8.2792 +else
  8.2793 +  am_cv_CC_dependencies_compiler_type=none
  8.2794 +fi
  8.2795 +
  8.2796 +fi
  8.2797 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  8.2798 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  8.2799 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  8.2800 +
  8.2801 +
  8.2802 +
  8.2803 +if
  8.2804 +  test "x$enable_dependency_tracking" != xno \
  8.2805 +  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  8.2806 +  am__fastdepCC_TRUE=
  8.2807 +  am__fastdepCC_FALSE='#'
  8.2808 +else
  8.2809 +  am__fastdepCC_TRUE='#'
  8.2810 +  am__fastdepCC_FALSE=
  8.2811 +fi
  8.2812 +
  8.2813 +
  8.2814 +#AC_PROG_INSTALL
  8.2815 +
  8.2816 +# Right now, we can assume that the lib/ and ramdisk/ directories
  8.2817 +# are two levels above the tests
  8.2818 +TESTLIB=../../lib
  8.2819 +RD_PATH=../../ramdisk
  8.2820 +TENV="PYTHONPATH=$PYTHONPATH:$TESTLIB:/usr/lib/python RD_PATH=$RD_PATH"
  8.2821 +
  8.2822 +# Check whether --enable-vmx-support or --disable-vmx-support was given.
  8.2823 +if test "${enable_vmx_support+set}" = set; then
  8.2824 +  enableval="$enable_vmx_support"
  8.2825 +
  8.2826 +		ENABLE_VMX=True
  8.2827 +
  8.2828 +else
  8.2829 +
  8.2830 +		ENABLE_VMX=False
  8.2831 +
  8.2832 +fi;
  8.2833 +
  8.2834 +
  8.2835 +
  8.2836 +
  8.2837 +
  8.2838 +
  8.2839 +for ac_prog in 'bison -y' byacc
  8.2840 +do
  8.2841 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  8.2842 +set dummy $ac_prog; ac_word=$2
  8.2843 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2844 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.2845 +if test "${ac_cv_prog_YACC+set}" = set; then
  8.2846 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2847 +else
  8.2848 +  if test -n "$YACC"; then
  8.2849 +  ac_cv_prog_YACC="$YACC" # Let the user override the test.
  8.2850 +else
  8.2851 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.2852 +for as_dir in $PATH
  8.2853 +do
  8.2854 +  IFS=$as_save_IFS
  8.2855 +  test -z "$as_dir" && as_dir=.
  8.2856 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.2857 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.2858 +    ac_cv_prog_YACC="$ac_prog"
  8.2859 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.2860 +    break 2
  8.2861 +  fi
  8.2862 +done
  8.2863 +done
  8.2864 +
  8.2865 +fi
  8.2866 +fi
  8.2867 +YACC=$ac_cv_prog_YACC
  8.2868 +if test -n "$YACC"; then
  8.2869 +  echo "$as_me:$LINENO: result: $YACC" >&5
  8.2870 +echo "${ECHO_T}$YACC" >&6
  8.2871 +else
  8.2872 +  echo "$as_me:$LINENO: result: no" >&5
  8.2873 +echo "${ECHO_T}no" >&6
  8.2874 +fi
  8.2875 +
  8.2876 +  test -n "$YACC" && break
  8.2877 +done
  8.2878 +test -n "$YACC" || YACC="yacc"
  8.2879 +
  8.2880 +
  8.2881 +for ac_prog in flex lex
  8.2882 +do
  8.2883 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  8.2884 +set dummy $ac_prog; ac_word=$2
  8.2885 +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8.2886 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8.2887 +if test "${ac_cv_prog_LEX+set}" = set; then
  8.2888 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2889 +else
  8.2890 +  if test -n "$LEX"; then
  8.2891 +  ac_cv_prog_LEX="$LEX" # Let the user override the test.
  8.2892 +else
  8.2893 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.2894 +for as_dir in $PATH
  8.2895 +do
  8.2896 +  IFS=$as_save_IFS
  8.2897 +  test -z "$as_dir" && as_dir=.
  8.2898 +  for ac_exec_ext in '' $ac_executable_extensions; do
  8.2899 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8.2900 +    ac_cv_prog_LEX="$ac_prog"
  8.2901 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8.2902 +    break 2
  8.2903 +  fi
  8.2904 +done
  8.2905 +done
  8.2906 +
  8.2907 +fi
  8.2908 +fi
  8.2909 +LEX=$ac_cv_prog_LEX
  8.2910 +if test -n "$LEX"; then
  8.2911 +  echo "$as_me:$LINENO: result: $LEX" >&5
  8.2912 +echo "${ECHO_T}$LEX" >&6
  8.2913 +else
  8.2914 +  echo "$as_me:$LINENO: result: no" >&5
  8.2915 +echo "${ECHO_T}no" >&6
  8.2916 +fi
  8.2917 +
  8.2918 +  test -n "$LEX" && break
  8.2919 +done
  8.2920 +test -n "$LEX" || LEX=":"
  8.2921 +
  8.2922 +if test -z "$LEXLIB"
  8.2923 +then
  8.2924 +  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
  8.2925 +echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
  8.2926 +if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  8.2927 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2928 +else
  8.2929 +  ac_check_lib_save_LIBS=$LIBS
  8.2930 +LIBS="-lfl  $LIBS"
  8.2931 +cat >conftest.$ac_ext <<_ACEOF
  8.2932 +/* confdefs.h.  */
  8.2933 +_ACEOF
  8.2934 +cat confdefs.h >>conftest.$ac_ext
  8.2935 +cat >>conftest.$ac_ext <<_ACEOF
  8.2936 +/* end confdefs.h.  */
  8.2937 +
  8.2938 +/* Override any gcc2 internal prototype to avoid an error.  */
  8.2939 +#ifdef __cplusplus
  8.2940 +extern "C"
  8.2941 +#endif
  8.2942 +/* We use char because int might match the return type of a gcc2
  8.2943 +   builtin and then its argument prototype would still apply.  */
  8.2944 +char yywrap ();
  8.2945 +int
  8.2946 +main ()
  8.2947 +{
  8.2948 +yywrap ();
  8.2949 +  ;
  8.2950 +  return 0;
  8.2951 +}
  8.2952 +_ACEOF
  8.2953 +rm -f conftest.$ac_objext conftest$ac_exeext
  8.2954 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.2955 +  (eval $ac_link) 2>conftest.er1
  8.2956 +  ac_status=$?
  8.2957 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.2958 +  rm -f conftest.er1
  8.2959 +  cat conftest.err >&5
  8.2960 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2961 +  (exit $ac_status); } &&
  8.2962 +	 { ac_try='test -z "$ac_c_werror_flag"
  8.2963 +			 || test ! -s conftest.err'
  8.2964 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2965 +  (eval $ac_try) 2>&5
  8.2966 +  ac_status=$?
  8.2967 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2968 +  (exit $ac_status); }; } &&
  8.2969 +	 { ac_try='test -s conftest$ac_exeext'
  8.2970 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.2971 +  (eval $ac_try) 2>&5
  8.2972 +  ac_status=$?
  8.2973 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.2974 +  (exit $ac_status); }; }; then
  8.2975 +  ac_cv_lib_fl_yywrap=yes
  8.2976 +else
  8.2977 +  echo "$as_me: failed program was:" >&5
  8.2978 +sed 's/^/| /' conftest.$ac_ext >&5
  8.2979 +
  8.2980 +ac_cv_lib_fl_yywrap=no
  8.2981 +fi
  8.2982 +rm -f conftest.err conftest.$ac_objext \
  8.2983 +      conftest$ac_exeext conftest.$ac_ext
  8.2984 +LIBS=$ac_check_lib_save_LIBS
  8.2985 +fi
  8.2986 +echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
  8.2987 +echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
  8.2988 +if test $ac_cv_lib_fl_yywrap = yes; then
  8.2989 +  LEXLIB="-lfl"
  8.2990 +else
  8.2991 +  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
  8.2992 +echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
  8.2993 +if test "${ac_cv_lib_l_yywrap+set}" = set; then
  8.2994 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.2995 +else
  8.2996 +  ac_check_lib_save_LIBS=$LIBS
  8.2997 +LIBS="-ll  $LIBS"
  8.2998 +cat >conftest.$ac_ext <<_ACEOF
  8.2999 +/* confdefs.h.  */
  8.3000 +_ACEOF
  8.3001 +cat confdefs.h >>conftest.$ac_ext
  8.3002 +cat >>conftest.$ac_ext <<_ACEOF
  8.3003 +/* end confdefs.h.  */
  8.3004 +
  8.3005 +/* Override any gcc2 internal prototype to avoid an error.  */
  8.3006 +#ifdef __cplusplus
  8.3007 +extern "C"
  8.3008 +#endif
  8.3009 +/* We use char because int might match the return type of a gcc2
  8.3010 +   builtin and then its argument prototype would still apply.  */
  8.3011 +char yywrap ();
  8.3012 +int
  8.3013 +main ()
  8.3014 +{
  8.3015 +yywrap ();
  8.3016 +  ;
  8.3017 +  return 0;
  8.3018 +}
  8.3019 +_ACEOF
  8.3020 +rm -f conftest.$ac_objext conftest$ac_exeext
  8.3021 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.3022 +  (eval $ac_link) 2>conftest.er1
  8.3023 +  ac_status=$?
  8.3024 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.3025 +  rm -f conftest.er1
  8.3026 +  cat conftest.err >&5
  8.3027 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3028 +  (exit $ac_status); } &&
  8.3029 +	 { ac_try='test -z "$ac_c_werror_flag"
  8.3030 +			 || test ! -s conftest.err'
  8.3031 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3032 +  (eval $ac_try) 2>&5
  8.3033 +  ac_status=$?
  8.3034 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3035 +  (exit $ac_status); }; } &&
  8.3036 +	 { ac_try='test -s conftest$ac_exeext'
  8.3037 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3038 +  (eval $ac_try) 2>&5
  8.3039 +  ac_status=$?
  8.3040 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3041 +  (exit $ac_status); }; }; then
  8.3042 +  ac_cv_lib_l_yywrap=yes
  8.3043 +else
  8.3044 +  echo "$as_me: failed program was:" >&5
  8.3045 +sed 's/^/| /' conftest.$ac_ext >&5
  8.3046 +
  8.3047 +ac_cv_lib_l_yywrap=no
  8.3048 +fi
  8.3049 +rm -f conftest.err conftest.$ac_objext \
  8.3050 +      conftest$ac_exeext conftest.$ac_ext
  8.3051 +LIBS=$ac_check_lib_save_LIBS
  8.3052 +fi
  8.3053 +echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
  8.3054 +echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
  8.3055 +if test $ac_cv_lib_l_yywrap = yes; then
  8.3056 +  LEXLIB="-ll"
  8.3057 +fi
  8.3058 +
  8.3059 +fi
  8.3060 +
  8.3061 +fi
  8.3062 +
  8.3063 +if test "x$LEX" != "x:"; then
  8.3064 +  echo "$as_me:$LINENO: checking lex output file root" >&5
  8.3065 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
  8.3066 +if test "${ac_cv_prog_lex_root+set}" = set; then
  8.3067 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3068 +else
  8.3069 +  # The minimal lex program is just a single line: %%.  But some broken lexes
  8.3070 +# (Solaris, I think it was) want two %% lines, so accommodate them.
  8.3071 +cat >conftest.l <<_ACEOF
  8.3072 +%%
  8.3073 +%%
  8.3074 +_ACEOF
  8.3075 +{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  8.3076 +  (eval $LEX conftest.l) 2>&5
  8.3077 +  ac_status=$?
  8.3078 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3079 +  (exit $ac_status); }
  8.3080 +if test -f lex.yy.c; then
  8.3081 +  ac_cv_prog_lex_root=lex.yy
  8.3082 +elif test -f lexyy.c; then
  8.3083 +  ac_cv_prog_lex_root=lexyy
  8.3084 +else
  8.3085 +  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  8.3086 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  8.3087 +   { (exit 1); exit 1; }; }
  8.3088 +fi
  8.3089 +fi
  8.3090 +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  8.3091 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
  8.3092 +rm -f conftest.l
  8.3093 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  8.3094 +
  8.3095 +echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  8.3096 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
  8.3097 +if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  8.3098 +  echo $ECHO_N "(cached) $ECHO_C" >&6
  8.3099 +else
  8.3100 +  # POSIX says lex can declare yytext either as a pointer or an array; the
  8.3101 +# default is implementation-dependent. Figure out which it is, since
  8.3102 +# not all implementations provide the %pointer and %array declarations.
  8.3103 +ac_cv_prog_lex_yytext_pointer=no
  8.3104 +echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  8.3105 +ac_save_LIBS=$LIBS
  8.3106 +LIBS="$LIBS $LEXLIB"
  8.3107 +cat >conftest.$ac_ext <<_ACEOF
  8.3108 +`cat $LEX_OUTPUT_ROOT.c`
  8.3109 +_ACEOF
  8.3110 +rm -f conftest.$ac_objext conftest$ac_exeext
  8.3111 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8.3112 +  (eval $ac_link) 2>conftest.er1
  8.3113 +  ac_status=$?
  8.3114 +  grep -v '^ *+' conftest.er1 >conftest.err
  8.3115 +  rm -f conftest.er1
  8.3116 +  cat conftest.err >&5
  8.3117 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3118 +  (exit $ac_status); } &&
  8.3119 +	 { ac_try='test -z "$ac_c_werror_flag"
  8.3120 +			 || test ! -s conftest.err'
  8.3121 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3122 +  (eval $ac_try) 2>&5
  8.3123 +  ac_status=$?
  8.3124 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3125 +  (exit $ac_status); }; } &&
  8.3126 +	 { ac_try='test -s conftest$ac_exeext'
  8.3127 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8.3128 +  (eval $ac_try) 2>&5
  8.3129 +  ac_status=$?
  8.3130 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8.3131 +  (exit $ac_status); }; }; then
  8.3132 +  ac_cv_prog_lex_yytext_pointer=yes
  8.3133 +else
  8.3134 +  echo "$as_me: failed program was:" >&5
  8.3135 +sed 's/^/| /' conftest.$ac_ext >&5
  8.3136 +
  8.3137 +fi
  8.3138 +rm -f conftest.err conftest.$ac_objext \
  8.3139 +      conftest$ac_exeext conftest.$ac_ext
  8.3140 +LIBS=$ac_save_LIBS
  8.3141 +rm -f "${LEX_OUTPUT_ROOT}.c"
  8.3142 +
  8.3143 +fi
  8.3144 +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  8.3145 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
  8.3146 +if test $ac_cv_prog_lex_yytext_pointer = yes; then
  8.3147 +
  8.3148 +cat >>confdefs.h <<\_ACEOF
  8.3149 +#define YYTEXT_POINTER 1
  8.3150 +_ACEOF
  8.3151 +
  8.3152 +fi
  8.3153 +
  8.3154 +fi
  8.3155 +
  8.3156 +# basic build files
  8.3157 +                                                                                                                                                                                                                                                                                                                      ac_config_files="$ac_config_files Makefile ramdisk/Makefile tests/Makefile tests/block-list/Makefile tests/block-create/Makefile tests/block-destroy/Makefile tests/console/Makefile tests/create/Makefile tests/destroy/Makefile tests/dmesg/Makefile tests/domid/Makefile tests/domname/Makefile tests/help/Makefile tests/info/Makefile tests/list/Makefile tests/memmax/Makefile tests/memset/Makefile tests/migrate/Makefile tests/pause/Makefile tests/reboot/Makefile tests/restore/Makefile tests/save/Makefile tests/sedf/Makefile tests/shutdown/Makefile tests/sysrq/Makefile tests/unpause/Makefile tests/vcpu-pin/Makefile tests/vcpu-disable/Makefile tests/enforce_dom0_cpus/Makefile lib/XmTestReport/xmtest.py lib/XmTestLib/config.py"
  8.3158 +
  8.3159 +
  8.3160 +
  8.3161 +cat >confcache <<\_ACEOF
  8.3162 +# This file is a shell script that caches the results of configure
  8.3163 +# tests run on this system so they can be shared between configure
  8.3164 +# scripts and configure runs, see configure's option --config-cache.
  8.3165 +# It is not useful on other systems.  If it contains results you don't
  8.3166 +# want to keep, you may remove or edit it.
  8.3167 +#
  8.3168 +# config.status only pays attention to the cache file if you give it
  8.3169 +# the --recheck option to rerun configure.
  8.3170 +#
  8.3171 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  8.3172 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  8.3173 +# following values.
  8.3174 +
  8.3175 +_ACEOF
  8.3176 +
  8.3177 +# The following way of writing the cache mishandles newlines in values,
  8.3178 +# but we know of no workaround that is simple, portable, and efficient.
  8.3179 +# So, don't put newlines in cache variables' values.
  8.3180 +# Ultrix sh set writes to stderr and can't be redirected directly,
  8.3181 +# and sets the high bit in the cache file unless we assign to the vars.
  8.3182 +{
  8.3183 +  (set) 2>&1 |
  8.3184 +    case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8.3185 +    *ac_space=\ *)
  8.3186 +      # `set' does not quote correctly, so add quotes (double-quote
  8.3187 +      # substitution turns \\\\ into \\, and sed turns \\ into \).
  8.3188 +      sed -n \
  8.3189 +	"s/'/'\\\\''/g;
  8.3190 +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8.3191 +      ;;
  8.3192 +    *)
  8.3193 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
  8.3194 +      sed -n \
  8.3195 +	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8.3196 +      ;;
  8.3197 +    esac;
  8.3198 +} |
  8.3199 +  sed '
  8.3200 +     t clear
  8.3201 +     : clear
  8.3202 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8.3203 +     t end
  8.3204 +     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8.3205 +     : end' >>confcache
  8.3206 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8.3207 +  if test -w $cache_file; then
  8.3208 +    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8.3209 +    cat confcache >$cache_file
  8.3210 +  else
  8.3211 +    echo "not updating unwritable cache $cache_file"
  8.3212 +  fi
  8.3213 +fi
  8.3214 +rm -f confcache
  8.3215 +
  8.3216 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8.3217 +# Let make expand exec_prefix.
  8.3218 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8.3219 +
  8.3220 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  8.3221 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8.3222 +# trailing colons and then remove the whole line if VPATH becomes empty
  8.3223 +# (actually we leave an empty line to preserve line numbers).
  8.3224 +if test "x$srcdir" = x.; then
  8.3225 +  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
  8.3226 +s/:*\$(srcdir):*/:/;
  8.3227 +s/:*\${srcdir}:*/:/;
  8.3228 +s/:*@srcdir@:*/:/;
  8.3229 +s/^\([^=]*=[	 ]*\):*/\1/;
  8.3230 +s/:*$//;
  8.3231 +s/^[^=]*=[	 ]*$//;
  8.3232 +}'
  8.3233 +fi
  8.3234 +
  8.3235 +# Transform confdefs.h into DEFS.
  8.3236 +# Protect against shell expansion while executing Makefile rules.
  8.3237 +# Protect against Makefile macro expansion.
  8.3238 +#
  8.3239 +# If the first sed substitution is executed (which looks for macros that
  8.3240 +# take arguments), then we branch to the quote section.  Otherwise,
  8.3241 +# look for a macro that doesn't take arguments.
  8.3242 +cat >confdef2opt.sed <<\_ACEOF
  8.3243 +t clear
  8.3244 +: clear
  8.3245 +s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
  8.3246 +t quote
  8.3247 +s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
  8.3248 +t quote
  8.3249 +d
  8.3250 +: quote
  8.3251 +s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
  8.3252 +s,\[,\\&,g
  8.3253 +s,\],\\&,g
  8.3254 +s,\$,$$,g
  8.3255 +p
  8.3256 +_ACEOF
  8.3257 +# We use echo to avoid assuming a particular line-breaking character.
  8.3258 +# The extra dot is to prevent the shell from consuming trailing
  8.3259 +# line-breaks from the sub-command output.  A line-break within
  8.3260 +# single-quotes doesn't work because, if this script is created in a
  8.3261 +# platform that uses two characters for line-breaks (e.g., DOS), tr
  8.3262 +# would break.
  8.3263 +ac_LF_and_DOT=`echo; echo .`
  8.3264 +DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  8.3265 +rm -f confdef2opt.sed
  8.3266 +
  8.3267 +
  8.3268 +ac_libobjs=
  8.3269 +ac_ltlibobjs=
  8.3270 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8.3271 +  # 1. Remove the extension, and $U if already installed.
  8.3272 +  ac_i=`echo "$ac_i" |
  8.3273 +	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8.3274 +  # 2. Add them.
  8.3275 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8.3276 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8.3277 +done
  8.3278 +LIBOBJS=$ac_libobjs
  8.3279 +
  8.3280 +LTLIBOBJS=$ac_ltlibobjs
  8.3281 +
  8.3282 +
  8.3283 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8.3284 +  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  8.3285 +Usually this means the macro was only invoked conditionally." >&5
  8.3286 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
  8.3287 +Usually this means the macro was only invoked conditionally." >&2;}
  8.3288 +   { (exit 1); exit 1; }; }
  8.3289 +fi
  8.3290 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8.3291 +  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8.3292 +Usually this means the macro was only invoked conditionally." >&5
  8.3293 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8.3294 +Usually this means the macro was only invoked conditionally." >&2;}
  8.3295 +   { (exit 1); exit 1; }; }
  8.3296 +fi
  8.3297 +
  8.3298 +: ${CONFIG_STATUS=./config.status}
  8.3299 +ac_clean_files_save=$ac_clean_files
  8.3300 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8.3301 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8.3302 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8.3303 +cat >$CONFIG_STATUS <<_ACEOF
  8.3304 +#! $SHELL
  8.3305 +# Generated by $as_me.
  8.3306 +# Run this file to recreate the current configuration.
  8.3307 +# Compiler output produced by configure, useful for debugging
  8.3308 +# configure, is in config.log if it exists.
  8.3309 +
  8.3310 +debug=false
  8.3311 +ac_cs_recheck=false
  8.3312 +ac_cs_silent=false
  8.3313 +SHELL=\${CONFIG_SHELL-$SHELL}
  8.3314 +_ACEOF
  8.3315 +
  8.3316 +cat >>$CONFIG_STATUS <<\_ACEOF
  8.3317 +## --------------------- ##
  8.3318 +## M4sh Initialization.  ##
  8.3319 +## --------------------- ##
  8.3320 +
  8.3321 +# Be Bourne compatible
  8.3322 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8.3323 +  emulate sh
  8.3324 +  NULLCMD=:
  8.3325 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8.3326 +  # is contrary to our usage.  Disable this feature.
  8.3327 +  alias -g '${1+"$@"}'='"$@"'
  8.3328 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8.3329 +  set -o posix
  8.3330 +fi
  8.3331 +DUALCASE=1; export DUALCASE # for MKS sh
  8.3332 +
  8.3333 +# Support unset when possible.
  8.3334 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8.3335 +  as_unset=unset
  8.3336 +else
  8.3337 +  as_unset=false
  8.3338 +fi
  8.3339 +
  8.3340 +
  8.3341 +# Work around bugs in pre-3.0 UWIN ksh.
  8.3342 +$as_unset ENV MAIL MAILPATH
  8.3343 +PS1='$ '
  8.3344 +PS2='> '
  8.3345 +PS4='+ '
  8.3346 +
  8.3347 +# NLS nuisances.
  8.3348 +for as_var in \
  8.3349 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8.3350 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8.3351 +  LC_TELEPHONE LC_TIME
  8.3352 +do
  8.3353 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8.3354 +    eval $as_var=C; export $as_var
  8.3355 +  else
  8.3356 +    $as_unset $as_var
  8.3357 +  fi
  8.3358 +done
  8.3359 +
  8.3360 +# Required to use basename.
  8.3361 +if expr a : '\(a\)' >/dev/null 2>&1; then
  8.3362 +  as_expr=expr
  8.3363 +else
  8.3364 +  as_expr=false
  8.3365 +fi
  8.3366 +
  8.3367 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8.3368 +  as_basename=basename
  8.3369 +else
  8.3370 +  as_basename=false
  8.3371 +fi
  8.3372 +
  8.3373 +
  8.3374 +# Name of the executable.
  8.3375 +as_me=`$as_basename "$0" ||
  8.3376 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8.3377 +	 X"$0" : 'X\(//\)$' \| \
  8.3378 +	 X"$0" : 'X\(/\)$' \| \
  8.3379 +	 .     : '\(.\)' 2>/dev/null ||
  8.3380 +echo X/"$0" |
  8.3381 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8.3382 +  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  8.3383 +  	  /^X\/\(\/\).*/{ s//\1/; q; }
  8.3384 +  	  s/.*/./; q'`
  8.3385 +
  8.3386 +
  8.3387 +# PATH needs CR, and LINENO needs CR and PATH.
  8.3388 +# Avoid depending upon Character Ranges.
  8.3389 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8.3390 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8.3391 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8.3392 +as_cr_digits='0123456789'
  8.3393 +as_cr_alnum=$as_cr_Letters$as_cr_digits
  8.3394 +
  8.3395 +# The user is always right.
  8.3396 +if test "${PATH_SEPARATOR+set}" != set; then
  8.3397 +  echo "#! /bin/sh" >conf$$.sh
  8.3398 +  echo  "exit 0"   >>conf$$.sh
  8.3399 +  chmod +x conf$$.sh
  8.3400 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8.3401 +    PATH_SEPARATOR=';'
  8.3402 +  else
  8.3403 +    PATH_SEPARATOR=:
  8.3404 +  fi
  8.3405 +  rm -f conf$$.sh
  8.3406 +fi
  8.3407 +
  8.3408 +
  8.3409 +  as_lineno_1=$LINENO
  8.3410 +  as_lineno_2=$LINENO
  8.3411 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8.3412 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
  8.3413 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  8.3414 +  # Find who we are.  Look in the path if we contain no path at all
  8.3415 +  # relative or not.
  8.3416 +  case $0 in
  8.3417 +    *[\\/]* ) as_myself=$0 ;;
  8.3418 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.3419 +for as_dir in $PATH
  8.3420 +do
  8.3421 +  IFS=$as_save_IFS
  8.3422 +  test -z "$as_dir" && as_dir=.
  8.3423 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8.3424 +done
  8.3425 +
  8.3426 +       ;;
  8.3427 +  esac
  8.3428 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
  8.3429 +  # in which case we are not to be found in the path.
  8.3430 +  if test "x$as_myself" = x; then
  8.3431 +    as_myself=$0
  8.3432 +  fi
  8.3433 +  if test ! -f "$as_myself"; then
  8.3434 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8.3435 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8.3436 +   { (exit 1); exit 1; }; }
  8.3437 +  fi
  8.3438 +  case $CONFIG_SHELL in
  8.3439 +  '')
  8.3440 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8.3441 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8.3442 +do
  8.3443 +  IFS=$as_save_IFS
  8.3444 +  test -z "$as_dir" && as_dir=.
  8.3445 +  for as_base in sh bash ksh sh5; do
  8.3446 +	 case $as_dir in
  8.3447 +	 /*)
  8.3448 +	   if ("$as_dir/$as_base" -c '
  8.3449 +  as_lineno_1=$LINENO
  8.3450 +  as_lineno_2=$LINENO
  8.3451 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8.3452 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
  8.3453 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  8.3454 +	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8.3455 +	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8.3456 +	     CONFIG_SHELL=$as_dir/$as_base
  8.3457 +	     export CONFIG_SHELL
  8.3458 +	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8.3459 +	   fi;;
  8.3460 +	 esac
  8.3461 +       done
  8.3462 +done
  8.3463 +;;
  8.3464 +  esac
  8.3465 +
  8.3466 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8.3467 +  # uniformly replaced by the line number.  The first 'sed' inserts a
  8.3468 +  # line-number line before each line; the second 'sed' does the real
  8.3469 +  # work.  The second script uses 'N' to pair each line-number line
  8.3470 +  # with the numbered line, and appends trailing '-' during
  8.3471 +  # substitution so that $LINENO is not a special case at line end.
  8.3472 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8.3473 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  8.3474 +  sed '=' <$as_myself |
  8.3475 +    sed '
  8.3476 +      N
  8.3477 +      s,$,-,
  8.3478 +      : loop
  8.3479 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8.3480 +      t loop
  8.3481 +      s,-$,,
  8.3482 +      s,^['$as_cr_digits']*\n,,
  8.3483 +    ' >$as_me.lineno &&
  8.3484 +  chmod +x $as_me.lineno ||
  8.3485 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8.3486 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8.3487 +   { (exit 1); exit 1; }; }
  8.3488 +
  8.3489 +  # Don't try to exec as it changes $[0], causing all sort of problems
  8.3490 +  # (the dirname of $[0] is not the place where we might find the
  8.3491 +  # original and so on.  Autoconf is especially sensible to this).
  8.3492 +  . ./$as_me.lineno
  8.3493 +  # Exit status is that of the last command.
  8.3494 +  exit
  8.3495 +}
  8.3496 +
  8.3497 +
  8.3498 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8.3499 +  *c*,-n*) ECHO_N= ECHO_C='
  8.3500 +' ECHO_T='	' ;;
  8.3501 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8.3502 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8.3503 +esac
  8.3504 +
  8.3505 +if expr a : '\(a\)' >/dev/null 2>&1; then
  8.3506 +  as_expr=expr
  8.3507 +else
  8.3508 +  as_expr=false
  8.3509 +fi
  8.3510 +
  8.3511 +rm -f conf$$ conf$$.exe conf$$.file
  8.3512 +echo >conf$$.file
  8.3513 +if ln -s conf$$.file conf$$ 2>/dev/null; then
  8.3514 +  # We could just check for DJGPP; but this test a) works b) is more generic
  8.3515 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8.3516 +  if test -f conf$$.exe; then
  8.3517 +    # Don't use ln at all; we don't have any links
  8.3518 +    as_ln_s='cp -p'
  8.3519 +  else
  8.3520 +    as_ln_s='ln -s'
  8.3521 +  fi
  8.3522 +elif ln conf$$.file conf$$ 2>/dev/null; then
  8.3523 +  as_ln_s=ln
  8.3524 +else
  8.3525 +  as_ln_s='cp -p'
  8.3526 +fi
  8.3527 +rm -f conf$$ conf$$.exe conf$$.file
  8.3528 +
  8.3529 +if mkdir -p . 2>/dev/null; then
  8.3530 +  as_mkdir_p=:
  8.3531 +else
  8.3532 +  test -d ./-p && rmdir ./-p
  8.3533 +  as_mkdir_p=false
  8.3534 +fi
  8.3535 +
  8.3536 +as_executable_p="test -f"
  8.3537 +
  8.3538 +# Sed expression to map a string onto a valid CPP name.
  8.3539 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8.3540 +
  8.3541 +# Sed expression to map a string onto a valid variable name.
  8.3542 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8.3543 +
  8.3544 +
  8.3545 +# IFS
  8.3546 +# We need space, tab and new line, in precisely that order.
  8.3547 +as_nl='
  8.3548 +'
  8.3549 +IFS=" 	$as_nl"
  8.3550 +
  8.3551 +# CDPATH.
  8.3552 +$as_unset CDPATH
  8.3553 +
  8.3554 +exec 6>&1
  8.3555 +
  8.3556 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  8.3557 +# report actual input values of CONFIG_FILES etc. instead of their
  8.3558 +# values after options handling.  Logging --version etc. is OK.
  8.3559 +exec 5>>config.log
  8.3560 +{
  8.3561 +  echo
  8.3562 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8.3563 +## Running $as_me. ##
  8.3564 +_ASBOX
  8.3565 +} >&5
  8.3566 +cat >&5 <<_CSEOF
  8.3567 +
  8.3568 +This file was extended by xm-test $as_me 0.4.0, which was
  8.3569 +generated by GNU Autoconf 2.59.  Invocation command line was
  8.3570 +
  8.3571 +  CONFIG_FILES    = $CONFIG_FILES
  8.3572 +  CONFIG_HEADERS  = $CONFIG_HEADERS
  8.3573 +  CONFIG_LINKS    = $CONFIG_LINKS
  8.3574 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
  8.3575 +  $ $0 $@
  8.3576 +
  8.3577 +_CSEOF
  8.3578 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8.3579 +echo >&5
  8.3580 +_ACEOF
  8.3581 +
  8.3582 +# Files that config.status was made for.
  8.3583 +if test -n "$ac_config_files"; then
  8.3584 +  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8.3585 +fi
  8.3586 +
  8.3587 +if test -n "$ac_config_headers"; then
  8.3588 +  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8.3589 +fi
  8.3590 +
  8.3591 +if test -n "$ac_config_links"; then
  8.3592 +  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8.3593 +fi
  8.3594 +
  8.3595 +if test -n "$ac_config_commands"; then
  8.3596 +  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8.3597 +fi
  8.3598 +
  8.3599 +cat >>$CONFIG_STATUS <<\_ACEOF
  8.3600 +
  8.3601 +ac_cs_usage="\
  8.3602 +\`$as_me' instantiates files from templates according to the
  8.3603 +current configuration.
  8.3604 +
  8.3605 +Usage: $0 [OPTIONS] [FILE]...
  8.3606 +
  8.3607 +  -h, --help       print this help, then exit
  8.3608 +  -V, --version    print version number, then exit
  8.3609 +  -q, --quiet      do not print progress messages
  8.3610 +  -d, --debug      don't remove temporary files
  8.3611 +      --recheck    update $as_me by reconfiguring in the same conditions
  8.3612 +  --file=FILE[:TEMPLATE]
  8.3613 +		   instantiate the configuration file FILE
  8.3614 +
  8.3615 +Configuration files:
  8.3616 +$config_files
  8.3617 +
  8.3618 +Configuration commands:
  8.3619 +$config_commands
  8.3620 +
  8.3621 +Report bugs to <bug-autoconf@gnu.org>."
  8.3622 +_ACEOF
  8.3623 +
  8.3624 +cat >>$CONFIG_STATUS <<_ACEOF
  8.3625 +ac_cs_version="\\
  8.3626 +xm-test config.status 0.4.0
  8.3627 +configured by $0, generated by GNU Autoconf 2.59,
  8.3628 +  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8.3629 +
  8.3630 +Copyright (C) 2003 Free Software Foundation, Inc.
  8.3631 +This config.status script is free software; the Free Software Foundation
  8.3632 +gives unlimited permission to copy, distribute and modify it."
  8.3633 +srcdir=$srcdir
  8.3634 +INSTALL="$INSTALL"
  8.3635 +_ACEOF
  8.3636 +
  8.3637 +cat >>$CONFIG_STATUS <<\_ACEOF
  8.3638 +# If no file are specified by the user, then we need to provide default
  8.3639 +# value.  By we need to know if files were specified by the user.
  8.3640 +ac_need_defaults=:
  8.3641 +while test $# != 0
  8.3642 +do
  8.3643 +  case $1 in
  8.3644 +  --*=*)
  8.3645 +    ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8.3646 +    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8.3647 +    ac_shift=:
  8.3648 +    ;;
  8.3649 +  -*)
  8.3650 +    ac_option=$1
  8.3651 +    ac_optarg=$2
  8.3652 +    ac_shift=shift
  8.3653 +    ;;
  8.3654 +  *) # This is not an option, so the user has probably given explicit
  8.3655 +     # arguments.
  8.3656 +     ac_option=$1
  8.3657 +     ac_need_defaults=false;;
  8.3658 +  esac
  8.3659 +
  8.3660 +  case $ac_option in
  8.3661 +  # Handling of the options.
  8.3662 +_ACEOF
  8.3663 +cat >>$CONFIG_STATUS <<\_ACEOF
  8.3664 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8.3665 +    ac_cs_recheck=: ;;
  8.3666 +  --version | --vers* | -V )
  8.3667 +    echo "$ac_cs_version"; exit 0 ;;
  8.3668 +  --he | --h)
  8.3669 +    # Conflict between --help and --header
  8.3670 +    { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8.3671 +Try \`$0 --help' for more information." >&5
  8.3672 +echo "$as_me: error: ambiguous option: $1
  8.3673 +Try \`$0 --help' for more information." >&2;}
  8.3674 +   { (exit 1); exit 1; }; };;
  8.3675 +  --help | --hel | -h )
  8.3676 +    echo "$ac_cs_usage"; exit 0 ;;
  8.3677 +  --debug | --d* | -d )
  8.3678 +    debug=: ;;
  8.3679 +  --file | --fil | --fi | --f )
  8.3680 +    $ac_shift
  8.3681 +    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8.3682 +    ac_need_defaults=false;;
  8.3683 +  --header | --heade | --head | --hea )
  8.3684 +    $ac_shift
  8.3685 +    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8.3686 +    ac_need_defaults=false;;
  8.3687 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8.3688 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8.3689 +    ac_cs_silent=: ;;
  8.3690 +
  8.3691 +  # This is an error.
  8.3692 +  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8.3693 +Try \`$0 --help' for more information." >&5
  8.3694 +echo "$as_me: error: unrecognized option: $1
  8.3695 +Try \`$0 --help' for more information." >&2;}
  8.3696 +   { (exit 1); exit 1; }; } ;;
  8.3697 +
  8.3698 +  *) ac_config_targets="$ac_config_targets $1" ;;
  8.3699 +
  8.3700 +  esac
  8.3701 +  shift
  8.3702 +done
  8.3703 +
  8.3704 +ac_configure_extra_args=
  8.3705 +
  8.3706 +if $ac_cs_silent; then
  8.3707 +  exec 6>/dev/null
  8.3708 +  ac_configure_extra_args="$ac_configure_extra_args --silent"
  8.3709 +fi
  8.3710 +
  8.3711 +_ACEOF
  8.3712 +cat >>$CONFIG_STATUS <<_ACEOF
  8.3713 +if \$ac_cs_recheck; then
  8.3714 +  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8.3715 +  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8.3716 +fi
  8.3717 +
  8.3718 +_ACEOF
  8.3719 +
  8.3720 +cat >>$CONFIG_STATUS <<_ACEOF
  8.3721 +#
  8.3722 +# INIT-COMMANDS section.
  8.3723 +#
  8.3724 +
  8.3725 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  8.3726 +
  8.3727 +_ACEOF
  8.3728 +
  8.3729 +
  8.3730 +
  8.3731 +cat >>$CONFIG_STATUS <<\_ACEOF
  8.3732 +for ac_config_target in $ac_config_targets
  8.3733 +do
  8.3734 +  case "$ac_config_target" in
  8.3735 +  # Handling of arguments.
  8.3736 +  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8.3737 +  "ramdisk/Makefile" ) CONFIG_FILES="$CONFIG_FILES ramdisk/Makefile" ;;
  8.3738 +  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  8.3739 +  "tests/block-list/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/block-list/Makefile" ;;
  8.3740 +  "tests/block-create/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/block-create/Makefile" ;;
  8.3741 +  "tests/block-destroy/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/block-destroy/Makefile" ;;
  8.3742 +  "tests/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/console/Makefile" ;;
  8.3743 +  "tests/create/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/create/Makefile" ;;
  8.3744 +  "tests/destroy/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/destroy/Makefile" ;;
  8.3745 +  "tests/dmesg/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dmesg/Makefile" ;;
  8.3746 +  "tests/domid/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/domid/Makefile" ;;
  8.3747 +  "tests/domname/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/domname/Makefile" ;;
  8.3748 +  "tests/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/help/Makefile" ;;
  8.3749 +  "tests/info/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/info/Makefile" ;;
  8.3750 +  "tests/list/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/list/Makefile" ;;
  8.3751 +  "tests/memmax/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/memmax/Makefile" ;;
  8.3752 +  "tests/memset/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/memset/Makefile" ;;
  8.3753 +  "tests/migrate/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/migrate/Makefile" ;;
  8.3754 +  "tests/pause/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pause/Makefile" ;;
  8.3755 +  "tests/reboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/reboot/Makefile" ;;
  8.3756 +  "tests/restore/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/restore/Makefile" ;;
  8.3757 +  "tests/save/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/save/Makefile" ;;
  8.3758 +  "tests/sedf/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sedf/Makefile" ;;
  8.3759 +  "tests/shutdown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shutdown/Makefile" ;;
  8.3760 +  "tests/sysrq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sysrq/Makefile" ;;
  8.3761 +  "tests/unpause/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unpause/Makefile" ;;
  8.3762 +  "tests/vcpu-pin/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/vcpu-pin/Makefile" ;;
  8.3763 +  "tests/vcpu-disable/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/vcpu-disable/Makefile" ;;
  8.3764 +  "tests/enforce_dom0_cpus/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/enforce_dom0_cpus/Makefile" ;;
  8.3765 +  "lib/XmTestReport/xmtest.py" ) CONFIG_FILES="$CONFIG_FILES lib/XmTestReport/xmtest.py" ;;
  8.3766 +  "lib/XmTestLib/config.py" ) CONFIG_FILES="$CONFIG_FILES lib/XmTestLib/config.py" ;;
  8.3767 +  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  8.3768 +  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8.3769 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8.3770 +   { (exit 1); exit 1; }; };;
  8.3771 +  esac
  8.3772 +done
  8.3773 +
  8.3774 +# If the user did not use the arguments to specify the items to instantiate,
  8.3775 +# then the envvar interface is used.  Set only those that are not.
  8.3776 +# We use the long form for the default assignment because of an extremely
  8.3777 +# bizarre bug on SunOS 4.1.3.
  8.3778 +if $ac_need_defaults; then
  8.3779 +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8.3780 +  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8.3781 +fi
  8.3782 +
  8.3783 +# Have a temporary directory for convenience.  Make it in the build tree
  8.3784 +# simply because there is no reason to put it here, and in addition,
  8.3785 +# creating and moving files from /tmp can sometimes cause problems.
  8.3786 +# Create a temporary directory, and hook for its removal unless debugging.
  8.3787 +$debug ||
  8.3788 +{
  8.3789 +  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8.3790 +  trap '{ (exit 1); exit 1; }' 1 2 13 15
  8.3791 +}
  8.3792 +
  8.3793 +# Create a (secure) tmp directory for tmp files.
  8.3794 +
  8.3795 +{
  8.3796 +  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  8.3797 +  test -n "$tmp" && test -d "$tmp"
  8.3798 +}  ||
  8.3799 +{
  8.3800 +  tmp=./confstat$$-$RANDOM
  8.3801 +  (umask 077 && mkdir $tmp)
  8.3802 +} ||
  8.3803 +{
  8.3804 +   echo "$me: cannot create a temporary directory in ." >&2
  8.3805 +   { (exit 1); exit 1; }
  8.3806 +}
  8.3807 +
  8.3808 +_ACEOF
  8.3809 +
  8.3810 +cat >>$CONFIG_STATUS <<_ACEOF
  8.3811 +
  8.3812 +#
  8.3813 +# CONFIG_FILES section.
  8.3814 +#
  8.3815 +
  8.3816 +# No need to generate the scripts if there are no CONFIG_FILES.
  8.3817 +# This happens for instance when ./config.status config.h
  8.3818 +if test -n "\$CONFIG_FILES"; then
  8.3819 +  # Protect against being on the right side of a sed subst in config.status.
  8.3820 +  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  8.3821 +   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  8.3822 +s,@SHELL@,$SHELL,;t t
  8.3823 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  8.3824 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  8.3825 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  8.3826 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  8.3827 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  8.3828 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  8.3829 +s,@exec_prefix@,$exec_prefix,;t t
  8.3830 +s,@prefix@,$prefix,;t t
  8.3831 +s,@program_transform_name@,$program_transform_name,;t t
  8.3832 +s,@bindir@,$bindir,;t t
  8.3833 +s,@sbindir@,$sbindir,;t t
  8.3834 +s,@libexecdir@,$libexecdir,;t t
  8.3835 +s,@datadir@,$datadir,;t t
  8.3836 +s,@sysconfdir@,$sysconfdir,;t t
  8.3837 +s,@sharedstatedir@,$sharedstatedir,;t t
  8.3838 +s,@localstatedir@,$localstatedir,;t t
  8.3839 +s,@libdir@,$libdir,;t t
  8.3840 +s,@includedir@,$includedir,;t t
  8.3841 +s,@oldincludedir@,$oldincludedir,;t t
  8.3842 +s,@infodir@,$infodir,;t t
  8.3843 +s,@mandir@,$mandir,;t t
  8.3844 +s,@build_alias@,$build_alias,;t t
  8.3845 +s,@host_alias@,$host_alias,;t t
  8.3846 +s,@target_alias@,$target_alias,;t t
  8.3847 +s,@DEFS@,$DEFS,;t t
  8.3848 +s,@ECHO_C@,$ECHO_C,;t t
  8.3849 +s,@ECHO_N@,$ECHO_N,;t t
  8.3850 +s,@ECHO_T@,$ECHO_T,;t t
  8.3851 +s,@LIBS@,$LIBS,;t t
  8.3852 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  8.3853 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  8.3854 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  8.3855 +s,@CYGPATH_W@,$CYGPATH_W,;t t
  8.3856 +s,@PACKAGE@,$PACKAGE,;t t
  8.3857 +s,@VERSION@,$VERSION,;t t
  8.3858 +s,@ACLOCAL@,$ACLOCAL,;t t
  8.3859 +s,@AUTOCONF@,$AUTOCONF,;t t
  8.3860 +s,@AUTOMAKE@,$AUTOMAKE,;t t
  8.3861 +s,@AUTOHEADER@,$AUTOHEADER,;t t
  8.3862 +s,@MAKEINFO@,$MAKEINFO,;t t
  8.3863 +s,@install_sh@,$install_sh,;t t
  8.3864 +s,@STRIP@,$STRIP,;t t
  8.3865 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  8.3866 +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  8.3867 +s,@mkdir_p@,$mkdir_p,;t t
  8.3868 +s,@AWK@,$AWK,;t t
  8.3869 +s,@SET_MAKE@,$SET_MAKE,;t t
  8.3870 +s,@am__leading_dot@,$am__leading_dot,;t t
  8.3871 +s,@AMTAR@,$AMTAR,;t t
  8.3872 +s,@am__tar@,$am__tar,;t t
  8.3873 +s,@am__untar@,$am__untar,;t t
  8.3874 +s,@CC@,$CC,;t t
  8.3875 +s,@CFLAGS@,$CFLAGS,;t t
  8.3876 +s,@LDFLAGS@,$LDFLAGS,;t t
  8.3877 +s,@CPPFLAGS@,$CPPFLAGS,;t t
  8.3878 +s,@ac_ct_CC@,$ac_ct_CC,;t t
  8.3879 +s,@EXEEXT@,$EXEEXT,;t t
  8.3880 +s,@OBJEXT@,$OBJEXT,;t t
  8.3881 +s,@DEPDIR@,$DEPDIR,;t t
  8.3882 +s,@am__include@,$am__include,;t t
  8.3883 +s,@am__quote@,$am__quote,;t t
  8.3884 +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  8.3885 +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  8.3886 +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  8.3887 +s,@CCDEPMODE@,$CCDEPMODE,;t t
  8.3888 +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  8.3889 +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  8.3890 +s,@ENABLE_VMX@,$ENABLE_VMX,;t t
  8.3891 +s,@TENV@,$TENV,;t t
  8.3892 +s,@YACC@,$YACC,;t t
  8.3893 +s,@LEX@,$LEX,;t t
  8.3894 +s,@LEXLIB@,$LEXLIB,;t t
  8.3895 +s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
  8.3896 +s,@LIBOBJS@,$LIBOBJS,;t t
  8.3897 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  8.3898 +CEOF
  8.3899 +
  8.3900 +_ACEOF
  8.3901 +
  8.3902 +  cat >>$CONFIG_STATUS <<\_ACEOF
  8.3903 +  # Split the substitutions into bite-sized pieces for seds with
  8.3904 +  # small command number limits, like on Digital OSF/1 and HP-UX.
  8.3905 +  ac_max_sed_lines=48
  8.3906 +  ac_sed_frag=1 # Number of current file.
  8.3907 +  ac_beg=1 # First line for current file.
  8.3908 +  ac_end=$ac_max_sed_lines # Line after last line for current file.
  8.3909 +  ac_more_lines=:
  8.3910 +  ac_sed_cmds=
  8.3911 +  while $ac_more_lines; do
  8.3912 +    if test $ac_beg -gt 1; then
  8.3913 +      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8.3914 +    else
  8.3915 +      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8.3916 +    fi
  8.3917 +    if test ! -s $tmp/subs.frag; then
  8.3918 +      ac_more_lines=false
  8.3919 +    else
  8.3920 +      # The purpose of the label and of the branching condition is to
  8.3921 +      # speed up the sed processing (if there are no `@' at all, there
  8.3922 +      # is no need to browse any of the substitutions).
  8.3923 +      # These are the two extra sed commands mentioned above.
  8.3924 +      (echo ':t
  8.3925 +  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  8.3926 +      if test -z "$ac_sed_cmds"; then
  8.3927 +	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  8.3928 +      else
  8.3929 +	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  8.3930 +      fi
  8.3931 +      ac_sed_frag=`expr $ac_sed_frag + 1`
  8.3932 +      ac_beg=$ac_end
  8.3933 +      ac_end=`expr $ac_end + $ac_max_sed_lines`
  8.3934 +    fi
  8.3935 +  done
  8.3936 +  if test -z "$ac_sed_cmds"; then
  8.3937 +    ac_sed_cmds=cat
  8.3938 +  fi
  8.3939 +fi # test -n "$CONFIG_FILES"
  8.3940 +
  8.3941 +_ACEOF
  8.3942 +cat >>$CONFIG_STATUS <<\_ACEOF
  8.3943 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  8.3944 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8.3945 +  case $ac_file in
  8.3946 +  - | *:- | *:-:* ) # input from stdin
  8.3947 +	cat >$tmp/stdin
  8.3948 +	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8.3949 +	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8.3950 +  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8.3951 +	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8.3952 +  * )   ac_file_in=$ac_file.in ;;
  8.3953 +  esac
  8.3954 +
  8.3955 +  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  8.3956 +  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8.3957 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8.3958 +	 X"$ac_file" : 'X\(//\)[^/]' \| \
  8.3959 +	 X"$ac_file" : 'X\(//\)$' \| \
  8.3960 +	 X"$ac_file" : 'X\(/\)' \| \
  8.3961 +	 .     : '\(.\)' 2>/dev/null ||
  8.3962 +echo X"$ac_file" |
  8.3963 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8.3964 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8.3965 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
  8.3966 +  	  /^X\(\/\).*/{ s//\1/; q; }
  8.3967 +  	  s/.*/./; q'`
  8.3968 +  { if $as_mkdir_p; then
  8.3969 +    mkdir -p "$ac_dir"
  8.3970 +  else
  8.3971 +    as_dir="$ac_dir"
  8.3972 +    as_dirs=
  8.3973 +    while test ! -d "$as_dir"; do
  8.3974 +      as_dirs="$as_dir $as_dirs"
  8.3975 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8.3976 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8.3977 +	 X"$as_dir" : 'X\(//\)[^/]' \| \
  8.3978 +	 X"$as_dir" : 'X\(//\)$' \| \
  8.3979 +	 X"$as_dir" : 'X\(/\)' \| \
  8.3980 +	 .     : '\(.\)' 2>/dev/null ||
  8.3981 +echo X"$as_dir" |
  8.3982 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8.3983 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8.3984 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
  8.3985 +  	  /^X\(\/\).*/{ s//\1/; q; }
  8.3986 +  	  s/.*/./; q'`
  8.3987 +    done
  8.3988 +    test ! -n "$as_dirs" || mkdir $as_dirs
  8.3989 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8.3990 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8.3991 +   { (exit 1); exit 1; }; }; }
  8.3992 +
  8.3993 +  ac_builddir=.
  8.3994 +
  8.3995 +if test "$ac_dir" != .; then
  8.3996 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8.3997 +  # A "../" for each directory in $ac_dir_suffix.
  8.3998 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8.3999 +else
  8.4000 +  ac_dir_suffix= ac_top_builddir=
  8.4001 +fi
  8.4002 +
  8.4003 +case $srcdir in
  8.4004 +  .)  # No --srcdir option.  We are building in place.
  8.4005 +    ac_srcdir=.
  8.4006 +    if test -z "$ac_top_builddir"; then
  8.4007 +       ac_top_srcdir=.
  8.4008 +    else
  8.4009 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8.4010 +    fi ;;
  8.4011 +  [\\/]* | ?:[\\/]* )  # Absolute path.
  8.4012 +    ac_srcdir=$srcdir$ac_dir_suffix;
  8.4013 +    ac_top_srcdir=$srcdir ;;
  8.4014 +  *) # Relative path.
  8.4015 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8.4016 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8.4017 +esac
  8.4018 +
  8.4019 +# Do not use `cd foo && pwd` to compute absolute paths, because
  8.4020 +# the directories may not exist.
  8.4021 +case `pwd` in
  8.4022 +.) ac_abs_builddir="$ac_dir";;
  8.4023 +*)
  8.4024 +  case "$ac_dir" in
  8.4025 +  .) ac_abs_builddir=`pwd`;;
  8.4026 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8.4027 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8.4028 +  esac;;
  8.4029 +esac
  8.4030 +case $ac_abs_builddir in
  8.4031 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  8.4032 +*)
  8.4033 +  case ${ac_top_builddir}. in
  8.4034 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
  8.4035 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8.4036 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8.4037 +  esac;;
  8.4038 +esac
  8.4039 +case $ac_abs_builddir in
  8.4040 +.) ac_abs_srcdir=$ac_srcdir;;
  8.4041 +*)
  8.4042 +  case $ac_srcdir in
  8.4043 +  .) ac_abs_srcdir=$ac_abs_builddir;;
  8.4044 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8.4045 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8.4046 +  esac;;
  8.4047 +esac
  8.4048 +case $ac_abs_builddir in
  8.4049 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  8.4050 +*)
  8.4051 +  case $ac_top_srcdir in
  8.4052 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8.4053 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8.4054 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8.4055 +  esac;;
  8.4056 +esac
  8.4057 +
  8.4058 +
  8.4059 +  case $INSTALL in
  8.4060 +  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8.4061 +  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  8.4062 +  esac
  8.4063 +
  8.4064 +  if test x"$ac_file" != x-; then
  8.4065 +    { echo "$as_me:$LINENO: creating $ac_file" >&5
  8.4066 +echo "$as_me: creating $ac_file" >&6;}
  8.4067 +    rm -f "$ac_file"
  8.4068 +  fi
  8.4069 +  # Let's still pretend it is `configure' which instantiates (i.e., don't
  8.4070 +  # use $as_me), people would be surprised to read:
  8.4071 +  #    /* config.h.  Generated by config.status.  */
  8.4072 +  if test x"$ac_file" = x-; then
  8.4073 +    configure_input=
  8.4074 +  else
  8.4075 +    configure_input="$ac_file.  "
  8.4076 +  fi
  8.4077 +  configure_input=$configure_input"Generated from `echo $ac_file_in |
  8.4078 +				     sed 's,.*/,,'` by configure."
  8.4079 +
  8.4080 +  # First look for the input files in the build tree, otherwise in the
  8.4081 +  # src tree.
  8.4082 +  ac_file_inputs=`IFS=:
  8.4083 +    for f in $ac_file_in; do
  8.4084 +      case $f in
  8.4085 +      -) echo $tmp/stdin ;;
  8.4086 +      [\\/$]*)
  8.4087 +	 # Absolute (can't be DOS-style, as IFS=:)
  8.4088 +	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8.4089 +echo "$as_me: error: cannot find input file: $f" >&2;}
  8.4090 +   { (exit 1); exit 1; }; }
  8.4091 +	 echo "$f";;
  8.4092 +      *) # Relative
  8.4093 +	 if test -f "$f"; then
  8.4094 +	   # Build tree
  8.4095 +	   echo "$f"
  8.4096 +	 elif test -f "$srcdir/$f"; then
  8.4097 +	   # Source tree
  8.4098 +	   echo "$srcdir/$f"
  8.4099 +	 else
  8.4100 +	   # /dev/null tree
  8.4101 +	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8.4102 +echo "$as_me: error: cannot find input file: $f" >&2;}
  8.4103 +   { (exit 1); exit 1; }; }
  8.4104 +	 fi;;
  8.4105 +      esac
  8.4106 +    done` || { (exit 1); exit 1; }
  8.4107 +_ACEOF
  8.4108 +cat >>$CONFIG_STATUS <<_ACEOF
  8.4109 +  sed "$ac_vpsub
  8.4110 +$extrasub
  8.4111 +_ACEOF
  8.4112 +cat >>$CONFIG_STATUS <<\_ACEOF
  8.4113 +:t
  8.4114 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8.4115 +s,@configure_input@,$configure_input,;t t
  8.4116 +s,@srcdir@,$ac_srcdir,;t t
  8.4117 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  8.4118 +s,@top_srcdir@,$ac_top_srcdir,;t t
  8.4119 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  8.4120 +s,@builddir@,$ac_builddir,;t t
  8.4121 +s,@abs_builddir@,$ac_abs_builddir,;t t
  8.4122 +s,@top_builddir@,$ac_top_builddir,;t t
  8.4123 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  8.4124 +s,@INSTALL@,$ac_INSTALL,;t t
  8.4125 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  8.4126 +  rm -f $tmp/stdin
  8.4127 +  if test x"$ac_file" != x-; then
  8.4128 +    mv $tmp/out $ac_file
  8.4129 +  else
  8.4130 +    cat $tmp/out
  8.4131 +    rm -f $tmp/out
  8.4132 +  fi
  8.4133 +
  8.4134 +done
  8.4135 +_ACEOF
  8.4136 +cat >>$CONFIG_STATUS <<\_ACEOF
  8.4137 +
  8.4138 +#
  8.4139 +# CONFIG_COMMANDS section.
  8.4140 +#
  8.4141 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  8.4142 +  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  8.4143 +  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8.4144 +  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  8.4145 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8.4146 +	 X"$ac_dest" : 'X\(//\)[^/]' \| \
  8.4147 +	 X"$ac_dest" : 'X\(//\)$' \| \
  8.4148 +	 X"$ac_dest" : 'X\(/\)' \| \
  8.4149 +	 .     : '\(.\)' 2>/dev/null ||
  8.4150 +echo X"$ac_dest" |
  8.4151 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8.4152 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8.4153 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
  8.4154 +  	  /^X\(\/\).*/{ s//\1/; q; }
  8.4155 +  	  s/.*/./; q'`
  8.4156 +  { if $as_mkdir_p; then
  8.4157 +    mkdir -p "$ac_dir"
  8.4158 +  else
  8.4159 +    as_dir="$ac_dir"
  8.4160 +    as_dirs=
  8.4161 +    while test ! -d "$as_dir"; do
  8.4162 +      as_dirs="$as_dir $as_dirs"
  8.4163 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8.4164 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8.4165 +	 X"$as_dir" : 'X\(//\)[^/]' \| \
  8.4166 +	 X"$as_dir" : 'X\(//\)$' \| \
  8.4167 +	 X"$as_dir" : 'X\(/\)' \| \
  8.4168 +	 .     : '\(.\)' 2>/dev/null ||
  8.4169 +echo X"$as_dir" |
  8.4170 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8.4171 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8.4172 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
  8.4173 +  	  /^X\(\/\).*/{ s//\1/; q; }
  8.4174 +  	  s/.*/./; q'`
  8.4175 +    done
  8.4176 +    test ! -n "$as_dirs" || mkdir $as_dirs
  8.4177 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8.4178 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8.4179 +   { (exit 1); exit 1; }; }; }
  8.4180 +
  8.4181 +  ac_builddir=.
  8.4182 +
  8.4183 +if test "$ac_dir" != .; then
  8.4184 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8.4185 +  # A "../" for each directory in $ac_dir_suffix.
  8.4186 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8.4187 +else
  8.4188 +  ac_dir_suffix= ac_top_builddir=
  8.4189 +fi
  8.4190 +
  8.4191 +case $srcdir in
  8.4192 +  .)  # No --srcdir option.  We are building in place.
  8.4193 +    ac_srcdir=.
  8.4194 +    if test -z "$ac_top_builddir"; then
  8.4195 +       ac_top_srcdir=.
  8.4196 +    else
  8.4197 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8.4198 +    fi ;;
  8.4199 +  [\\/]* | ?:[\\/]* )  # Absolute path.
  8.4200 +    ac_srcdir=$srcdir$ac_dir_suffix;
  8.4201 +    ac_top_srcdir=$srcdir ;;
  8.4202 +  *) # Relative path.
  8.4203 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8.4204 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8.4205 +esac
  8.4206 +
  8.4207 +# Do not use `cd foo && pwd` to compute absolute paths, because
  8.4208 +# the directories may not exist.
  8.4209 +case `pwd` in
  8.4210 +.) ac_abs_builddir="$ac_dir";;
  8.4211 +*)
  8.4212 +  case "$ac_dir" in
  8.4213 +  .) ac_abs_builddir=`pwd`;;
  8.4214 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8.4215 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8.4216 +  esac;;
  8.4217 +esac
  8.4218 +case $ac_abs_builddir in
  8.4219 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  8.4220 +*)
  8.4221 +  case ${ac_top_builddir}. in
  8.4222 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
  8.4223 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8.4224 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8.4225 +  esac;;
  8.4226 +esac
  8.4227 +case $ac_abs_builddir in
  8.4228 +.) ac_abs_srcdir=$ac_srcdir;;
  8.4229 +*)
  8.4230 +  case $ac_srcdir in
  8.4231 +  .) ac_abs_srcdir=$ac_abs_builddir;;
  8.4232 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8.4233 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8.4234 +  esac;;
  8.4235 +esac
  8.4236 +case $ac_abs_builddir in
  8.4237 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  8.4238 +*)
  8.4239 +  case $ac_top_srcdir in
  8.4240 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8.4241 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8.4242 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8.4243 +  esac;;
  8.4244 +esac
  8.4245 +
  8.4246 +
  8.4247 +  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  8.4248 +echo "$as_me: executing $ac_dest commands" >&6;}
  8.4249 +  case $ac_dest in
  8.4250 +    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  8.4251 +  # Strip MF so we end up with the name of the file.
  8.4252 +  mf=`echo "$mf" | sed -e 's/:.*$//'`
  8.4253 +  # Check whether this is an Automake generated Makefile or not.
  8.4254 +  # We used to match only the files named `Makefile.in', but
  8.4255 +  # some people rename them; so instead we look at the file content.
  8.4256 +  # Grep'ing the first line is not enough: some people post-process
  8.4257 +  # each Makefile.in and add a new line on top of each file to say so.
  8.4258 +  # So let's grep whole file.
  8.4259 +  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  8.4260 +    dirpart=`(dirname "$mf") 2>/dev/null ||
  8.4261 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8.4262 +	 X"$mf" : 'X\(//\)[^/]' \| \
  8.4263 +	 X"$mf" : 'X\(//\)$' \| \
  8.4264 +	 X"$mf" : 'X\(/\)' \| \
  8.4265 +	 .     : '\(.\)' 2>/dev/null ||
  8.4266 +echo X"$mf" |
  8.4267 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8.4268 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8.4269 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
  8.4270 +  	  /^X\(\/\).*/{ s//\1/; q; }
  8.4271 +  	  s/.*/./; q'`
  8.4272 +  else
  8.4273 +    continue
  8.4274 +  fi
  8.4275 +  # Extract the definition of DEPDIR, am__include, and am__quote
  8.4276 +  # from the Makefile without running `make'.
  8.4277 +  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8.4278 +  test -z "$DEPDIR" && continue
  8.4279 +  am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8.4280 +  test -z "am__include" && continue
  8.4281 +  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8.4282 +  # When using ansi2knr, U may be empty or an underscore; expand it
  8.4283 +  U=`sed -n 's/^U = //p' < "$mf"`
  8.4284 +  # Find all dependency output files, they are included files with
  8.4285 +  # $(DEPDIR) in their names.  We invoke sed twice because it is the
  8.4286 +  # simplest approach to changing $(DEPDIR) to its actual value in the
  8.4287 +  # expansion.
  8.4288 +  for file in `sed -n "
  8.4289 +    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8.4290 +       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8.4291 +    # Make sure the directory exists.
  8.4292 +    test -f "$dirpart/$file" && continue
  8.4293 +    fdir=`(dirname "$file") 2>/dev/null ||
  8.4294 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8.4295 +	 X"$file" : 'X\(//\)[^/]' \| \
  8.4296 +	 X"$file" : 'X\(//\)$' \| \
  8.4297 +	 X"$file" : 'X\(/\)' \| \
  8.4298 +	 .     : '\(.\)' 2>/dev/null ||
  8.4299 +echo X"$file" |
  8.4300 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8.4301 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8.4302 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
  8.4303 +  	  /^X\(\/\).*/{ s//\1/; q; }
  8.4304 +  	  s/.*/./; q'`
  8.4305 +    { if $as_mkdir_p; then
  8.4306 +    mkdir -p $dirpart/$fdir
  8.4307 +  else
  8.4308 +    as_dir=$dirpart/$fdir
  8.4309 +    as_dirs=
  8.4310 +    while test ! -d "$as_dir"; do
  8.4311 +      as_dirs="$as_dir $as_dirs"
  8.4312 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8.4313 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8.4314 +	 X"$as_dir" : 'X\(//\)[^/]' \| \
  8.4315 +	 X"$as_dir" : 'X\(//\)$' \| \
  8.4316 +	 X"$as_dir" : 'X\(/\)' \| \
  8.4317 +	 .     : '\(.\)' 2>/dev/null ||
  8.4318 +echo X"$as_dir" |
  8.4319 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8.4320 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8.4321 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
  8.4322 +  	  /^X\(\/\).*/{ s//\1/; q; }
  8.4323 +  	  s/.*/./; q'`
  8.4324 +    done
  8.4325 +    test ! -n "$as_dirs" || mkdir $as_dirs
  8.4326 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  8.4327 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  8.4328 +   { (exit 1); exit 1; }; }; }
  8.4329 +
  8.4330 +    # echo "creating $dirpart/$file"
  8.4331 +    echo '# dummy' > "$dirpart/$file"
  8.4332 +  done
  8.4333 +done
  8.4334 + ;;
  8.4335 +  esac
  8.4336 +done
  8.4337 +_ACEOF
  8.4338 +
  8.4339 +cat >>$CONFIG_STATUS <<\_ACEOF
  8.4340 +
  8.4341 +{ (exit 0); exit 0; }
  8.4342 +_ACEOF
  8.4343 +chmod +x $CONFIG_STATUS
  8.4344 +ac_clean_files=$ac_clean_files_save
  8.4345 +
  8.4346 +
  8.4347 +# configure is writing to config.log, and then calls config.status.
  8.4348 +# config.status does its own redirection, appending to config.log.
  8.4349 +# Unfortunately, on DOS this fails, as config.log is still kept open
  8.4350 +# by configure, so config.status won't be able to write to it; its
  8.4351 +# output is simply discarded.  So we exec the FD to /dev/null,
  8.4352 +# effectively closing config.log, so it can be properly (re)opened and
  8.4353 +# appended to by config.status.  When coming back to configure, we
  8.4354 +# need to make the FD available again.
  8.4355 +if test "$no_create" != yes; then
  8.4356 +  ac_cs_success=:
  8.4357 +  ac_config_status_args=
  8.4358 +  test "$silent" = yes &&
  8.4359 +    ac_config_status_args="$ac_config_status_args --quiet"
  8.4360 +  exec 5>/dev/null
  8.4361 +  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8.4362 +  exec 5>>config.log
  8.4363 +  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8.4364 +  # would make configure fail if this is the last instruction.
  8.4365 +  $ac_cs_success || { (exit 1); exit 1; }
  8.4366 +fi
  8.4367 +
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/tools/xm-test/configure.ac	Mon Nov 07 12:36:16 2005 +0100
     9.3 @@ -0,0 +1,69 @@
     9.4 +# xm-test configure.ac input script
     9.5 +
     9.6 +# Basic header information
     9.7 +AC_INIT([xm-test], [0.4.0])
     9.8 +AM_INIT_AUTOMAKE([1.7 foreign])
     9.9 +
    9.10 +# Check for dependencies
    9.11 +AC_PROG_CC
    9.12 +#AC_PROG_INSTALL
    9.13 +
    9.14 +# Right now, we can assume that the lib/ and ramdisk/ directories
    9.15 +# are two levels above the tests
    9.16 +TESTLIB=../../lib
    9.17 +RD_PATH=../../ramdisk
    9.18 +TENV="PYTHONPATH=$PYTHONPATH:$TESTLIB:/usr/lib/python RD_PATH=$RD_PATH"
    9.19 +
    9.20 +AC_ARG_ENABLE(vmx-support,
    9.21 +	[[  --enable-vmx-support           use block devices instead of ramdisks]],
    9.22 +	[
    9.23 +		ENABLE_VMX=True
    9.24 +	],[
    9.25 +		ENABLE_VMX=False
    9.26 +	])
    9.27 +
    9.28 +AC_SUBST(ENABLE_VMX)
    9.29 +
    9.30 +AC_SUBST(TENV)
    9.31 +AC_SUBST(PACKAGE_VERSION)
    9.32 +
    9.33 +AC_PROG_YACC
    9.34 +AC_PROG_LEX
    9.35 +
    9.36 +# basic build files
    9.37 +AC_CONFIG_FILES([
    9.38 +    Makefile 
    9.39 +    ramdisk/Makefile
    9.40 +    tests/Makefile
    9.41 +    tests/block-list/Makefile
    9.42 +    tests/block-create/Makefile
    9.43 +    tests/block-destroy/Makefile
    9.44 +    tests/console/Makefile
    9.45 +    tests/create/Makefile
    9.46 +    tests/destroy/Makefile
    9.47 +    tests/dmesg/Makefile
    9.48 +    tests/domid/Makefile
    9.49 +    tests/domname/Makefile
    9.50 +    tests/help/Makefile
    9.51 +    tests/info/Makefile
    9.52 +    tests/list/Makefile
    9.53 +    tests/memmax/Makefile
    9.54 +    tests/memset/Makefile
    9.55 +    tests/migrate/Makefile
    9.56 +    tests/pause/Makefile
    9.57 +    tests/reboot/Makefile
    9.58 +    tests/restore/Makefile
    9.59 +    tests/save/Makefile
    9.60 +    tests/sedf/Makefile
    9.61 +    tests/shutdown/Makefile
    9.62 +    tests/sysrq/Makefile
    9.63 +    tests/unpause/Makefile
    9.64 +    tests/vcpu-pin/Makefile
    9.65 +    tests/vcpu-disable/Makefile
    9.66 +    tests/enforce_dom0_cpus/Makefile
    9.67 +    lib/XmTestReport/xmtest.py
    9.68 +    lib/XmTestLib/config.py
    9.69 +    ])
    9.70 +
    9.71 +
    9.72 +AC_OUTPUT
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/tools/xm-test/install-sh	Mon Nov 07 12:36:16 2005 +0100
    10.3 @@ -0,0 +1,323 @@
    10.4 +#!/bin/sh
    10.5 +# install - install a program, script, or datafile
    10.6 +
    10.7 +scriptversion=2005-02-02.21
    10.8 +
    10.9 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
   10.10 +# later released in X11R6 (xc/config/util/install.sh) with the
   10.11 +# following copyright and license.
   10.12 +#
   10.13 +# Copyright (C) 1994 X Consortium
   10.14 +#
   10.15 +# Permission is hereby granted, free of charge, to any person obtaining a copy
   10.16 +# of this software and associated documentation files (the "Software"), to
   10.17 +# deal in the Software without restriction, including without limitation the
   10.18 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   10.19 +# sell copies of the Software, and to permit persons to whom the Software is
   10.20 +# furnished to do so, subject to the following conditions:
   10.21 +#
   10.22 +# The above copyright notice and this permission notice shall be included in
   10.23 +# all copies or substantial portions of the Software.
   10.24 +#
   10.25 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   10.26 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   10.27 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
   10.28 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
   10.29 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
   10.30 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   10.31 +#
   10.32 +# Except as contained in this notice, the name of the X Consortium shall not
   10.33 +# be used in advertising or otherwise to promote the sale, use or other deal-
   10.34 +# ings in this Software without prior written authorization from the X Consor-
   10.35 +# tium.
   10.36 +#
   10.37 +#
   10.38 +# FSF changes to this file are in the public domain.
   10.39 +#
   10.40 +# Calling this script install-sh is preferred over install.sh, to prevent
   10.41 +# `make' implicit rules from creating a file called install from it
   10.42 +# when there is no Makefile.
   10.43 +#
   10.44 +# This script is compatible with the BSD install script, but was written
   10.45 +# from scratch.  It can only install one file at a time, a restriction
   10.46 +# shared with many OS's install programs.
   10.47 +
   10.48 +# set DOITPROG to echo to test this script
   10.49 +
   10.50 +# Don't use :- since 4.3BSD and earlier shells don't like it.
   10.51 +doit="${DOITPROG-}"
   10.52 +
   10.53 +# put in absolute paths if you don't have them in your path; or use env. vars.
   10.54 +
   10.55 +mvprog="${MVPROG-mv}"
   10.56 +cpprog="${CPPROG-cp}"
   10.57 +chmodprog="${CHMODPROG-chmod}"
   10.58 +chownprog="${CHOWNPROG-chown}"
   10.59 +chgrpprog="${CHGRPPROG-chgrp}"
   10.60 +stripprog="${STRIPPROG-strip}"
   10.61 +rmprog="${RMPROG-rm}"
   10.62 +mkdirprog="${MKDIRPROG-mkdir}"
   10.63 +
   10.64 +chmodcmd="$chmodprog 0755"
   10.65 +chowncmd=
   10.66 +chgrpcmd=
   10.67 +stripcmd=
   10.68 +rmcmd="$rmprog -f"
   10.69 +mvcmd="$mvprog"
   10.70 +src=
   10.71 +dst=
   10.72 +dir_arg=
   10.73 +dstarg=
   10.74 +no_target_directory=
   10.75 +
   10.76 +usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
   10.77 +   or: $0 [OPTION]... SRCFILES... DIRECTORY
   10.78 +   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
   10.79 +   or: $0 [OPTION]... -d DIRECTORIES...
   10.80 +
   10.81 +In the 1st form, copy SRCFILE to DSTFILE.
   10.82 +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
   10.83 +In the 4th, create DIRECTORIES.
   10.84 +
   10.85 +Options:
   10.86 +-c         (ignored)
   10.87 +-d         create directories instead of installing files.
   10.88 +-g GROUP   $chgrpprog installed files to GROUP.
   10.89 +-m MODE    $chmodprog installed files to MODE.
   10.90 +-o USER    $chownprog installed files to USER.
   10.91 +-s         $stripprog installed files.
   10.92 +-t DIRECTORY  install into DIRECTORY.
   10.93 +-T         report an error if DSTFILE is a directory.
   10.94 +--help     display this help and exit.
   10.95 +--version  display version info and exit.
   10.96 +
   10.97 +Environment variables override the default commands:
   10.98 +  CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
   10.99 +"
  10.100 +
  10.101 +while test -n "$1"; do
  10.102 +  case $1 in
  10.103 +    -c) shift
  10.104 +        continue;;
  10.105 +
  10.106 +    -d) dir_arg=true
  10.107 +        shift
  10.108 +        continue;;
  10.109 +
  10.110 +    -g) chgrpcmd="$chgrpprog $2"
  10.111 +        shift
  10.112 +        shift
  10.113 +        continue;;
  10.114 +
  10.115 +    --help) echo "$usage"; exit $?;;
  10.116 +
  10.117 +    -m) chmodcmd="$chmodprog $2"
  10.118 +        shift
  10.119 +        shift
  10.120 +        continue;;
  10.121 +
  10.122 +    -o) chowncmd="$chownprog $2"
  10.123 +        shift
  10.124 +        shift
  10.125 +        continue;;
  10.126 +
  10.127 +    -s) stripcmd=$stripprog
  10.128 +        shift
  10.129 +        continue;;
  10.130 +
  10.131 +    -t) dstarg=$2
  10.132 +	shift
  10.133 +	shift
  10.134 +	continue;;
  10.135 +
  10.136 +    -T) no_target_directory=true
  10.137 +	shift
  10.138 +	continue;;
  10.139 +
  10.140 +    --version) echo "$0 $scriptversion"; exit $?;;
  10.141 +
  10.142 +    *)  # When -d is used, all remaining arguments are directories to create.
  10.143 +	# When -t is used, the destination is already specified.
  10.144 +	test -n "$dir_arg$dstarg" && break
  10.145 +        # Otherwise, the last argument is the destination.  Remove it from $@.
  10.146 +	for arg
  10.147 +	do
  10.148 +          if test -n "$dstarg"; then
  10.149 +	    # $@ is not empty: it contains at least $arg.
  10.150 +	    set fnord "$@" "$dstarg"
  10.151 +	    shift # fnord
  10.152 +	  fi
  10.153 +	  shift # arg
  10.154 +	  dstarg=$arg
  10.155 +	done
  10.156 +	break;;
  10.157 +  esac
  10.158 +done
  10.159 +
  10.160 +if test -z "$1"; then
  10.161 +  if test -z "$dir_arg"; then
  10.162 +    echo "$0: no input file specified." >&2
  10.163 +    exit 1
  10.164 +  fi
  10.165 +  # It's OK to call `install-sh -d' without argument.
  10.166 +  # This can happen when creating conditional directories.
  10.167 +  exit 0
  10.168 +fi
  10.169 +
  10.170 +for src
  10.171 +do
  10.172 +  # Protect names starting with `-'.
  10.173 +  case $src in
  10.174 +    -*) src=./$src ;;
  10.175 +  esac
  10.176 +
  10.177 +  if test -n "$dir_arg"; then
  10.178 +    dst=$src
  10.179 +    src=
  10.180 +
  10.181 +    if test -d "$dst"; then
  10.182 +      mkdircmd=:
  10.183 +      chmodcmd=
  10.184 +    else
  10.185 +      mkdircmd=$mkdirprog
  10.186 +    fi
  10.187 +  else
  10.188 +    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  10.189 +    # might cause directories to be created, which would be especially bad
  10.190 +    # if $src (and thus $dsttmp) contains '*'.
  10.191 +    if test ! -f "$src" && test ! -d "$src"; then
  10.192 +      echo "$0: $src does not exist." >&2
  10.193 +      exit 1
  10.194 +    fi
  10.195 +
  10.196 +    if test -z "$dstarg"; then
  10.197 +      echo "$0: no destination specified." >&2
  10.198 +      exit 1
  10.199 +    fi
  10.200 +
  10.201 +    dst=$dstarg
  10.202 +    # Protect names starting with `-'.
  10.203 +    case $dst in
  10.204 +      -*) dst=./$dst ;;
  10.205 +    esac
  10.206 +
  10.207 +    # If destination is a directory, append the input filename; won't work
  10.208 +    # if double slashes aren't ignored.
  10.209 +    if test -d "$dst"; then
  10.210 +      if test -n "$no_target_directory"; then
  10.211 +	echo "$0: $dstarg: Is a directory" >&2
  10.212 +	exit 1
  10.213 +      fi
  10.214 +      dst=$dst/`basename "$src"`
  10.215 +    fi
  10.216 +  fi
  10.217 +
  10.218 +  # This sed command emulates the dirname command.
  10.219 +  dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
  10.220 +
  10.221 +  # Make sure that the destination directory exists.
  10.222 +
  10.223 +  # Skip lots of stat calls in the usual case.
  10.224 +  if test ! -d "$dstdir"; then
  10.225 +    defaultIFS='
  10.226 +	 '
  10.227 +    IFS="${IFS-$defaultIFS}"
  10.228 +
  10.229 +    oIFS=$IFS
  10.230 +    # Some sh's can't handle IFS=/ for some reason.
  10.231 +    IFS='%'
  10.232 +    set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
  10.233 +    shift
  10.234 +    IFS=$oIFS
  10.235 +
  10.236 +    pathcomp=
  10.237 +
  10.238 +    while test $# -ne 0 ; do
  10.239 +      pathcomp=$pathcomp$1
  10.240 +      shift
  10.241 +      if test ! -d "$pathcomp"; then
  10.242 +        $mkdirprog "$pathcomp"
  10.243 +	# mkdir can fail with a `File exist' error in case several
  10.244 +	# install-sh are creating the directory concurrently.  This
  10.245 +	# is OK.
  10.246 +	test -d "$pathcomp" || exit
  10.247 +      fi
  10.248 +      pathcomp=$pathcomp/
  10.249 +    done
  10.250 +  fi
  10.251 +
  10.252 +  if test -n "$dir_arg"; then
  10.253 +    $doit $mkdircmd "$dst" \
  10.254 +      && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
  10.255 +      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
  10.256 +      && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
  10.257 +      && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
  10.258 +
  10.259 +  else
  10.260 +    dstfile=`basename "$dst"`
  10.261 +
  10.262 +    # Make a couple of temp file names in the proper directory.
  10.263 +    dsttmp=$dstdir/_inst.$$_
  10.264 +    rmtmp=$dstdir/_rm.$$_
  10.265 +
  10.266 +    # Trap to clean up those temp files at exit.
  10.267 +    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  10.268 +    trap '(exit $?); exit' 1 2 13 15
  10.269 +
  10.270 +    # Copy the file name to the temp name.
  10.271 +    $doit $cpprog "$src" "$dsttmp" &&
  10.272 +
  10.273 +    # and set any options; do chmod last to preserve setuid bits.
  10.274 +    #
  10.275 +    # If any of these fail, we abort the whole thing.  If we want to
  10.276 +    # ignore errors from any of these, just make sure not to ignore
  10.277 +    # errors from the above "$doit $cpprog $src $dsttmp" command.
  10.278 +    #
  10.279 +    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  10.280 +      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  10.281 +      && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  10.282 +      && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
  10.283 +
  10.284 +    # Now rename the file to the real destination.
  10.285 +    { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
  10.286 +      || {
  10.287 +	   # The rename failed, perhaps because mv can't rename something else
  10.288 +	   # to itself, or perhaps because mv is so ancient that it does not
  10.289 +	   # support -f.
  10.290 +
  10.291 +	   # Now remove or move aside any old file at destination location.
  10.292 +	   # We try this two ways since rm can't unlink itself on some
  10.293 +	   # systems and the destination file might be busy for other
  10.294 +	   # reasons.  In this case, the final cleanup might fail but the new
  10.295 +	   # file should still install successfully.
  10.296 +	   {
  10.297 +	     if test -f "$dstdir/$dstfile"; then
  10.298 +	       $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
  10.299 +	       || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
  10.300 +	       || {
  10.301 +		 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
  10.302 +		 (exit 1); exit 1
  10.303 +	       }
  10.304 +	     else
  10.305 +	       :
  10.306 +	     fi
  10.307 +	   } &&
  10.308 +
  10.309 +	   # Now rename the file to the real destination.
  10.310 +	   $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
  10.311 +	 }
  10.312 +    }
  10.313 +  fi || { (exit 1); exit 1; }
  10.314 +done
  10.315 +
  10.316 +# The final little trick to "correctly" pass the exit status to the exit trap.
  10.317 +{
  10.318 +  (exit 0); exit 0
  10.319 +}
  10.320 +
  10.321 +# Local variables:
  10.322 +# eval: (add-hook 'write-file-hooks 'time-stamp)
  10.323 +# time-stamp-start: "scriptversion="
  10.324 +# time-stamp-format: "%:y-%02m-%02d.%02H"
  10.325 +# time-stamp-end: "$"
  10.326 +# End:
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/tools/xm-test/lib/XmTestLib/Console.py	Mon Nov 07 12:36:16 2005 +0100
    11.3 @@ -0,0 +1,278 @@
    11.4 +#!/usr/bin/python
    11.5 +"""
    11.6 + XmConsole.py - Interact with a xen console, getting return codes and
    11.7 +                output from commands executed there.
    11.8 +
    11.9 + Copyright (C) International Business Machines Corp., 2005
   11.10 + Author: Dan Smith <danms@us.ibm.com>
   11.11 +
   11.12 + This program is free software; you can redistribute it and/or modify
   11.13 + it under the terms of the GNU General Public License as published by
   11.14 + the Free Software Foundation; under version 2 of the License.
   11.15 +
   11.16 + This program is distributed in the hope that it will be useful,
   11.17 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   11.18 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   11.19 + GNU General Public License for more details.
   11.20 +
   11.21 + You should have received a copy of the GNU General Public License
   11.22 + along with this program; if not, write to the Free Software
   11.23 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   11.24 +
   11.25 + NB: This requires the domU's prompt to be set to
   11.26 +     a _very_ specific value, set in the PROMPT
   11.27 +     variable of this script
   11.28 +"""
   11.29 +import sys;
   11.30 +import os;
   11.31 +import pty;
   11.32 +import tty;
   11.33 +import termios;
   11.34 +import fcntl;
   11.35 +import select;
   11.36 +
   11.37 +from Test import *
   11.38 +
   11.39 +class ConsoleError(Exception):
   11.40 +    def __init__(self, msg):
   11.41 +        self.errMsg = msg
   11.42 +
   11.43 +    def __str__(self):
   11.44 +        return str(self.errMsg)
   11.45 +
   11.46 +class XmConsole:
   11.47 +
   11.48 +    def __init__(self, domain, historyLimit=256, historySaveAll=True, historySaveCmds=False):
   11.49 +        """
   11.50 +        Parameters:
   11.51 +          historyLimit:     specifies how many lines of history are maintained
   11.52 +          historySaveAll:   determines whether or not extra messages in
   11.53 +                            between commands are saved
   11.54 +          historySaveCmds : determines whether or not the command echos
   11.55 +                            are included in the history buffer
   11.56 +        """
   11.57 +
   11.58 +        self.TIMEOUT          = 30;
   11.59 +        self.PROMPT           = "@%@%> ";
   11.60 +        self.domain           = domain;
   11.61 +        self.historyBuffer    = [];
   11.62 +        self.historyLines     = 0;
   11.63 +        self.historyLimit     = historyLimit;
   11.64 +        self.historySaveAll   = historySaveAll;
   11.65 +        self.historySaveCmds  = historySaveCmds;
   11.66 +        self.debugMe          = False;
   11.67 +        self.limit            = None
   11.68 +
   11.69 +        consoleCmd = ["/usr/sbin/xm", "xm", "console", domain]
   11.70 +
   11.71 +        if verbose:
   11.72 +            print "Console executing: " + str(consoleCmd)
   11.73 +
   11.74 +        pid, fd = pty.fork();
   11.75 +
   11.76 +        if pid == 0:
   11.77 +            os.execvp("/usr/sbin/xm", consoleCmd[1:]);
   11.78 +
   11.79 +        self.consolePid = pid;
   11.80 +        self.consoleFd  = fd;
   11.81 +
   11.82 +        tty.setraw(self.consoleFd, termios.TCSANOW);
   11.83 +            
   11.84 +        bytes = self.__chewall(self.consoleFd)
   11.85 +        if bytes < 0:
   11.86 +            raise ConsoleError("Console didn't respond")
   11.87 +
   11.88 +    def __addToHistory(self, line):
   11.89 +        if self.debugMe:
   11.90 +            print ">" + line
   11.91 +        self.historyBuffer.append(line);
   11.92 +        self.historyLines += 1;
   11.93 +        if self.historyLines > self.historyLimit:
   11.94 +            self.historyBuffer = self.historyBuffer[1:];
   11.95 +            self.historyLines -= 1;
   11.96 +
   11.97 +
   11.98 +    def clearHistory(self):
   11.99 +        """Clear the history buffer"""
  11.100 +        self.historyBuffer = [];
  11.101 +        self.historyLines = 0;
  11.102 +
  11.103 +
  11.104 +    def getHistory(self):
  11.105 +        """Returns a string containing the entire history buffer"""
  11.106 +        output = "";
  11.107 +
  11.108 +        for line in self.historyBuffer:
  11.109 +            output += line + "\n";
  11.110 +
  11.111 +        return output;
  11.112 +
  11.113 +
  11.114 +    def setTimeout(self, timeout):
  11.115 +        """Sets the timeout used to determine if a remote command
  11.116 +        has blocked"""
  11.117 +        self.TIMEOUT = timeout;
  11.118 +
  11.119 +
  11.120 +    def setPrompt(self, prompt):
  11.121 +        """Sets the string key used to delimit the end of command
  11.122 +        output"""
  11.123 +        self.PROMPT = prompt;
  11.124 +
  11.125 +
  11.126 +    def __chewall(self, fd):
  11.127 +        timeout = 0;
  11.128 +        bytes   = 0;
  11.129 +        
  11.130 +        while timeout < 3:
  11.131 +            i, o, e = select.select([fd], [], [], 1);
  11.132 +            if fd in i:
  11.133 +                try:
  11.134 +                    foo = os.read(fd, 1)
  11.135 +                    if self.debugMe:
  11.136 +                        sys.stdout.write(foo)
  11.137 +                    bytes += 1
  11.138 +                except:
  11.139 +                    timeout += 1
  11.140 +
  11.141 +            else:
  11.142 +                timeout += 1
  11.143 +
  11.144 +            if self.limit and bytes >= self.limit:
  11.145 +                raise ConsoleError("Console run-away (exceeded %i bytes)"
  11.146 +                                   % self.limit)
  11.147 +
  11.148 +        if self.debugMe:
  11.149 +            print "Ignored %i bytes of miscellaneous console output" % bytes
  11.150 +        
  11.151 +        return bytes;
  11.152 +
  11.153 +
  11.154 +    def __runCmd(self, command, saveHistory=True):
  11.155 +        output = ""
  11.156 +        line   = ""
  11.157 +        lines  = 0
  11.158 +        bytes  = 0
  11.159 +
  11.160 +        self.__chewall(self.consoleFd);
  11.161 +
  11.162 +        if verbose:
  11.163 +            print "[%s] Sending `%s'" % (self.domain, command)
  11.164 +
  11.165 +        os.write(self.consoleFd, "%s\n" % command);
  11.166 +
  11.167 +        while 1==1:
  11.168 +            i, o, e = select.select([self.consoleFd], [], [], self.TIMEOUT);
  11.169 +
  11.170 +            if self.consoleFd in i:
  11.171 +                try:
  11.172 +                    str = os.read(self.consoleFd, 1)
  11.173 +                    bytes += 1
  11.174 +                except:
  11.175 +                    raise ConsoleError("Failed to read from console (fd=%i)"
  11.176 +                                       % self.consoleFd)
  11.177 +            else:
  11.178 +                raise ConsoleError("Timed out waiting for console")
  11.179 +
  11.180 +            if self.limit and bytes >= self.limit:
  11.181 +                raise ConsoleError("Console run-away (exceeded %i bytes)"
  11.182 +                                   % self.limit)
  11.183 +
  11.184 +            if str == "\n":
  11.185 +                if self.debugMe:
  11.186 +                    print "%s\n" % line
  11.187 +                if lines > 0:
  11.188 +                    output += line + "\n"
  11.189 +                    if saveHistory:
  11.190 +                        self.__addToHistory(line);
  11.191 +                elif self.historySaveCmds and saveHistory:
  11.192 +                    self.__addToHistory("*" + line);
  11.193 +                lines += 1;
  11.194 +                line = "";
  11.195 +            elif str == "\r":
  11.196 +                pass # ignore \r's
  11.197 +            else:
  11.198 +                line += str;
  11.199 +
  11.200 +            if line == self.PROMPT:
  11.201 +                break;
  11.202 +
  11.203 +        return output;
  11.204 +
  11.205 +
  11.206 +    def runCmd(self, command):
  11.207 +        """Runs a command on the remote terminal and returns the output
  11.208 +        as well as the return code.  For example:
  11.209 +        
  11.210 +        ret = c.runCmd("ls");
  11.211 +        print ret["output"];
  11.212 +        sys.exit(run["return"]);
  11.213 +        
  11.214 +        """
  11.215 +
  11.216 +        # Allow exceptions to bubble up
  11.217 +        realOutput = self.__runCmd(command);
  11.218 +        retOutput  = self.__runCmd("echo $?", saveHistory=False);
  11.219 +
  11.220 +        try:
  11.221 +            retCode =  int(retOutput);
  11.222 +        except:
  11.223 +            retCode = 255;
  11.224 +        return {
  11.225 +            "output": realOutput,
  11.226 +            "return": retCode,
  11.227 +            };
  11.228 +
  11.229 +    def sendInput(self, input):
  11.230 +        """Sends input to the remote terminal, but doesn't check
  11.231 +        for a return code"""
  11.232 +        realOutput = self.__runCmd(input);
  11.233 +        return {
  11.234 +            "output": realOutput,
  11.235 +            "return": 0,
  11.236 +            };
  11.237 +
  11.238 +    def closeConsole(self):
  11.239 +        """Closes the console connection and ensures that the console
  11.240 +        process is killed"""
  11.241 +        os.close(self.consoleFd);
  11.242 +        os.kill(self.consolePid, 2);
  11.243 +
  11.244 +
  11.245 +    def setLimit(self, limit):
  11.246 +        """Sets a limit on the number of bytes that can be
  11.247 +        read in an attempt to run a command.  We need this when
  11.248 +        running something that can run away"""
  11.249 +        try:
  11.250 +            self.limit = int(limit)
  11.251 +        except Exception, e:
  11.252 +            self.limit = None
  11.253 +            
  11.254 +                   
  11.255 +if __name__ == "__main__":
  11.256 +    """This is both an example of using the XmConsole class, as
  11.257 +    well as a utility for command-line execution of single commands
  11.258 +    on a domU console.  Prints output to stdout.  Exits with the same
  11.259 +    code as the domU command.
  11.260 +    """
  11.261 +
  11.262 +    verbose = True;
  11.263 +    
  11.264 +    try:
  11.265 +        t = XmConsole(sys.argv[1]);
  11.266 +    except ConsoleError, e:
  11.267 +        print "Failed to attach to console (%s)" % str(e)
  11.268 +        sys.exit(255)
  11.269 +
  11.270 +    try:
  11.271 +        run = t.runCmd(sys.argv[2]);
  11.272 +    except ConsoleError, e:
  11.273 +        print "Console failed (%)" % str(e)
  11.274 +        sys.exit(255)
  11.275 +        
  11.276 +    t.closeConsole();
  11.277 +    
  11.278 +    print run["output"],;
  11.279 +    sys.exit(run["return"]);
  11.280 +    
  11.281 +        
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/tools/xm-test/lib/XmTestLib/Test.py	Mon Nov 07 12:36:16 2005 +0100
    12.3 @@ -0,0 +1,169 @@
    12.4 +#!/usr/bin/python
    12.5 +
    12.6 +"""
    12.7 + Copyright (C) International Business Machines Corp., 2005
    12.8 + Author: Dan Smith <danms@us.ibm.com>
    12.9 +
   12.10 + This program is free software; you can redistribute it and/or modify
   12.11 + it under the terms of the GNU General Public License as published by
   12.12 + the Free Software Foundation; under version 2 of the License.
   12.13 +
   12.14 + This program is distributed in the hope that it will be useful,
   12.15 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   12.16 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12.17 + GNU General Public License for more details.
   12.18 +
   12.19 + You should have received a copy of the GNU General Public License
   12.20 + along with this program; if not, write to the Free Software
   12.21 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   12.22 +
   12.23 +"""
   12.24 +
   12.25 +##
   12.26 +## These are utility functions for test cases
   12.27 +##
   12.28 +
   12.29 +import sys
   12.30 +import commands
   12.31 +import os
   12.32 +import pwd
   12.33 +import time
   12.34 +import pty
   12.35 +import select
   12.36 +import signal
   12.37 +import re
   12.38 +
   12.39 +TEST_PASS = 0
   12.40 +TEST_FAIL = 255
   12.41 +TEST_SKIP = 77
   12.42 +
   12.43 +# We currently advise waiting this many seconds for the ramdisk to
   12.44 +# boot inside a domU
   12.45 +TEST_DOMU_BOOT_DELAY = 20
   12.46 +
   12.47 +if os.environ.get("TEST_VERBOSE"):
   12.48 +    verbose = True
   12.49 +else:
   12.50 +    verbose = False
   12.51 +
   12.52 +class TimeoutError(Exception):
   12.53 +    def __init__(self, msg, outputSoFar):
   12.54 +        self.msg = msg
   12.55 +        self.output = outputSoFar
   12.56 +
   12.57 +    def __str__(self):
   12.58 +        return str(self.msg)
   12.59 +
   12.60 +def runWithTimeout(cmd, timeout):
   12.61 +    args = cmd.split()
   12.62 +
   12.63 +    pid, fd = pty.fork();
   12.64 +
   12.65 +    startTime = time.time()
   12.66 +
   12.67 +    if pid == 0:
   12.68 +        os.execvp(args[0], args)
   12.69 +
   12.70 +    output = ""
   12.71 +
   12.72 +    while time.time() - startTime < timeout:
   12.73 +        i, o, e = select.select([fd], [], [], timeout)
   12.74 +
   12.75 +        if fd in i:
   12.76 +            try:
   12.77 +                str = os.read(fd, 1)
   12.78 +                output += str
   12.79 +            except OSError, e:
   12.80 +                exitPid, status = os.waitpid(pid, os.WNOHANG)
   12.81 +
   12.82 +                if exitPid == pid:
   12.83 +                    if verbose:
   12.84 +                        print "Child exited with %i" % status
   12.85 +                    return status, output
   12.86 +
   12.87 +    if verbose:
   12.88 +        print "Command timed out: killing pid %i" % pid
   12.89 +        
   12.90 +    os.kill(pid, signal.SIGINT)
   12.91 +    raise TimeoutError("Command execution time exceeded %i seconds" % timeout,
   12.92 +                       outputSoFar=output)
   12.93 +
   12.94 +def traceCommand(command, timeout=None, logOutput=True):
   12.95 +    if verbose:
   12.96 +        print "[dom0] Running `%s'" % command
   12.97 +
   12.98 +    if timeout:
   12.99 +        status, output = runWithTimeout(command, timeout)
  12.100 +    else:
  12.101 +        status, output = commands.getstatusoutput(command)
  12.102 +
  12.103 +    if logOutput and verbose:
  12.104 +        print output
  12.105 +
  12.106 +    return status, output
  12.107 +
  12.108 +def getTestName():
  12.109 +    script = sys.argv[0]
  12.110 +    fname = os.path.basename(script)
  12.111 +    match = re.match("([^\.]+)\.[a-z]+", fname)
  12.112 +    if match:
  12.113 +        tname = match.group(1)
  12.114 +    else:
  12.115 +        tname = "UNKNOWN"
  12.116 +
  12.117 +    return tname
  12.118 +
  12.119 +def becomeNonRoot():
  12.120 +    """Become a non-root user, or FAIL if this is not possible.  This call
  12.121 +    succeeds if we are already running as a non-root user.
  12.122 +    """
  12.123 +    
  12.124 +    if os.geteuid() == 0:
  12.125 +        # Try and become "nobody".  This user is commonly in place, but this
  12.126 +        # could be extended to consider any number of users to be acceptable,
  12.127 +        # if there are systems where "nobody" is not present.
  12.128 +        allusers = pwd.getpwall()
  12.129 +        for u in allusers:
  12.130 +            if u[0] == "nobody":
  12.131 +                os.seteuid(u[2])
  12.132 +                break
  12.133 +        if os.geteuid() == 0:
  12.134 +            FAIL("Could not become a non-root user")
  12.135 +
  12.136 +def FAIL(reason):
  12.137 +    print "REASON: %s" % reason
  12.138 +    sys.exit(TEST_FAIL)
  12.139 +
  12.140 +def SKIP(reason):
  12.141 +    print "REASON: %s" % reason
  12.142 +    sys.exit(TEST_SKIP)
  12.143 +
  12.144 +def saveLog(logText, filename=None):
  12.145 +    if not filename:
  12.146 +        filename = "log";
  12.147 +    logfile = open(filename, 'w');
  12.148 +    date = commands.getoutput("date");
  12.149 +    logfile.write("-- BEGIN XmTest Log @" + date + "\n");
  12.150 +    logfile.write(logText);
  12.151 +    logfile.write("\n-- END XmTest Log\n");
  12.152 +    logfile.close();
  12.153 +
  12.154 +def waitForBoot():
  12.155 +    if verbose:
  12.156 +        print "[dom0] Waiting %i seconds for domU boot..." % TEST_DOMU_BOOT_DELAY
  12.157 +    time.sleep(TEST_DOMU_BOOT_DELAY)
  12.158 +
  12.159 +def timeStamp():
  12.160 +    name = getTestName()
  12.161 +
  12.162 +    t = time.asctime(time.localtime())
  12.163 +
  12.164 +    print "*** Test %s started at %s %s" % (name, t,
  12.165 +                                            time.tzname[time.daylight])
  12.166 +
  12.167 +if __name__ == "__main__":
  12.168 +
  12.169 +    timeStamp()
  12.170 +
  12.171 +    FAIL("foo")
  12.172 +
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/tools/xm-test/lib/XmTestLib/XenDomain.py	Mon Nov 07 12:36:16 2005 +0100
    13.3 @@ -0,0 +1,246 @@
    13.4 +#!/usr/bin/python
    13.5 +"""
    13.6 + Copyright (C) International Business Machines Corp., 2005
    13.7 + Author: Dan Smith <danms@us.ibm.com>
    13.8 +
    13.9 + This program is free software; you can redistribute it and/or modify
   13.10 + it under the terms of the GNU General Public License as published by
   13.11 + the Free Software Foundation; under version 2 of the License.
   13.12 +
   13.13 + This program is distributed in the hope that it will be useful,
   13.14 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   13.15 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13.16 + GNU General Public License for more details.
   13.17 +
   13.18 + You should have received a copy of the GNU General Public License
   13.19 + along with this program; if not, write to the Free Software
   13.20 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   13.21 +
   13.22 +"""
   13.23 +
   13.24 +import sys
   13.25 +import commands
   13.26 +import os
   13.27 +import re
   13.28 +import time
   13.29 +import random
   13.30 +
   13.31 +from Xm import *
   13.32 +from Test import *
   13.33 +from config import *
   13.34 +
   13.35 +BLOCK_ROOT_DEV = "hdd1"
   13.36 +
   13.37 +def getDefaultKernel():
   13.38 +    dom0Ver = commands.getoutput("uname -r");
   13.39 +    domUVer = dom0Ver.replace("xen0", "xenU");
   13.40 +    
   13.41 +    return "/boot/vmlinuz-" + domUVer;
   13.42 +
   13.43 +
   13.44 +class DomainError(Exception):
   13.45 +    def __init__(self, msg, extra="", errorcode=0):
   13.46 +        self.msg = msg
   13.47 +        self.extra = extra
   13.48 +        try:
   13.49 +            self.errorcode = int(errorcode)
   13.50 +        except Exception, e:
   13.51 +            self.errorcode = -1
   13.52 +            
   13.53 +    def __str__(self):
   13.54 +        return str(self.msg)
   13.55 +
   13.56 +class XenDomain:
   13.57 +
   13.58 +    def __init__(self, opts={}, config="/dev/null"):
   13.59 +        """Create a domain object.  Optionally take a 
   13.60 +        dictionary of 'xm' options to use"""
   13.61 +
   13.62 +        self.domID = None;
   13.63 +        self.config = config
   13.64 +
   13.65 +        if not opts.has_key("name"):
   13.66 +            raise DomainError("Missing `name' option")
   13.67 +        if not opts.has_key("memory"):
   13.68 +            raise DomainError("Missing `memory' option")
   13.69 +        if not opts.has_key("kernel"):
   13.70 +            raise DomainError("Missing `kernel' option")
   13.71 +
   13.72 +        self.opts = opts
   13.73 +
   13.74 +        self.configVals = None
   13.75 +
   13.76 +    def __buildCmdLine(self):
   13.77 +        c = "xm create %s" % self.config
   13.78 +
   13.79 +        for k in self.opts.keys():
   13.80 +            c += " %s=%s" % (k, self.opts[k])
   13.81 +        
   13.82 +        return c
   13.83 +        
   13.84 +    def start(self):
   13.85 +
   13.86 +        if self.configVals:
   13.87 +            self.__writeConfig("/tmp/xm-test.conf")
   13.88 +            self.config = "/tmp/xm-test.conf"
   13.89 +
   13.90 +        commandLine = self.__buildCmdLine()
   13.91 +
   13.92 +        ret, output = traceCommand(commandLine);
   13.93 +
   13.94 +        try:
   13.95 +            self.domID = int(domid(self.domName));
   13.96 +        except:
   13.97 +            self.domID = -1;
   13.98 +
   13.99 +        if ret != 0:
  13.100 +            raise DomainError("Failed to create domain",
  13.101 +                              extra=output,
  13.102 +                              errorcode=ret)
  13.103 +
  13.104 +    def stop(self):
  13.105 +        prog = "xm";
  13.106 +        cmd = " shutdown ";
  13.107 +
  13.108 +        ret, output = traceCommand(prog + cmd + self.opts["name"]);
  13.109 +
  13.110 +        return ret;
  13.111 +
  13.112 +    def destroy(self):
  13.113 +        prog = "xm";
  13.114 +        cmd = " destroy ";
  13.115 +
  13.116 +        ret, output = traceCommand(prog + cmd + self.opts["name"]);
  13.117 +
  13.118 +        return ret;
  13.119 +
  13.120 +    def getName(self):
  13.121 +        return self.opts["name"];
  13.122 +
  13.123 +    def getId(self):
  13.124 +        return domid(self.getName());
  13.125 +
  13.126 +    def configSetVar(self, key, value):
  13.127 +        if not self.configVals:
  13.128 +            self.configVals = {}
  13.129 +
  13.130 +        self.configVals[key] = value
  13.131 +
  13.132 +    def configAddDisk(self, pdev, vdev, acc):
  13.133 +        if not self.configVals:
  13.134 +            self.configVals = {}
  13.135 +
  13.136 +        if not self.configVals.has_key("disk"):
  13.137 +            self.configVals["disk"] = []
  13.138 +
  13.139 +        self.configVals["disk"].append("%s,%s,%s" % (pdev,vdev,acc))
  13.140 +
  13.141 +    def __writeConfig(self, configFileName):
  13.142 +
  13.143 +        conf = file(configFileName, "w")
  13.144 +
  13.145 +        for k,v in self.configVals.items():
  13.146 +            print >>conf, "%s = %s" % (k, v)
  13.147 +
  13.148 +        conf.close()
  13.149 +
  13.150 +
  13.151 +class XmTestDomain(XenDomain):
  13.152 +
  13.153 +    def __getUniqueName(self):
  13.154 +        #
  13.155 +        # We avoid multiple duplicate names
  13.156 +        # here because they stick around in xend
  13.157 +        # too long
  13.158 +        #
  13.159 +        unixtime = int(time.time())
  13.160 +        test_name = sys.argv[0]
  13.161 +        test_name = re.sub("\.test", "", test_name)
  13.162 +        test_name = re.sub("[\/\.]", "", test_name)
  13.163 +        name = "%s-%i" % (test_name, unixtime)
  13.164 +
  13.165 +        return name
  13.166 +
  13.167 +    def __randomize(self):
  13.168 +        # Random amount of memory between min and free_memory/2
  13.169 +        freeMem = int(getInfo("free_memory"))
  13.170 +        self.defaults["memory"] = random.randint(self.minSafeMem(),
  13.171 +                                                 freeMem/2)
  13.172 +        
  13.173 +        self.defaults["vcpus"] = random.randint(1, 16)
  13.174 +
  13.175 +        self.defaults["nics"] = random.randint(0, 8)
  13.176 +
  13.177 +        if verbose:
  13.178 +            print "*** Defaults after randomization:"
  13.179 +            for k in self.defaults.keys():
  13.180 +                print "***  %10s : %s" % (k, self.defaults[k])
  13.181 +
  13.182 +    def __prepareBlockRoot(self, rdpath):
  13.183 +        image = os.path.abspath(rdpath + "/initrd.img")
  13.184 +        self.configAddDisk("file:%s" % image, BLOCK_ROOT_DEV, "w")
  13.185 +        self.defaults["root"] = "/dev/%s" % BLOCK_ROOT_DEV
  13.186 +        del self.defaults["ramdisk"]
  13.187 +
  13.188 +    def __init__(self, name=None, extraOpts=None, config="/dev/null",
  13.189 +                 random=False):
  13.190 +
  13.191 +        rdpath = os.environ.get("RD_PATH")
  13.192 +        if not rdpath:
  13.193 +            rdpath = "../../ramdisk"
  13.194 +
  13.195 +        self.opts = {}
  13.196 +        self.configVals = None
  13.197 +
  13.198 +        # Defaults
  13.199 +        self.defaults = {"memory"  : 64,
  13.200 +                         "vcpus"   : 1,
  13.201 +                         "nics"    : 0,
  13.202 +                         "kernel"  : getDefaultKernel(),
  13.203 +                         "root"    : "/dev/ram0",
  13.204 +                         "name"    : name or self.__getUniqueName(),
  13.205 +                         "ramdisk" : rdpath + "/initrd.img"
  13.206 +                         }
  13.207 +
  13.208 +        self.domID = None;
  13.209 +        self.config = config;
  13.210 +
  13.211 +        if random:
  13.212 +            self.__randomize()
  13.213 +
  13.214 +        if USE_BLKDEV_FOR_ROOT:
  13.215 +            self.__prepareBlockRoot(rdpath)
  13.216 +        
  13.217 +        # Copy over defaults
  13.218 +        for key in self.defaults.keys():
  13.219 +            self.opts[key] = self.defaults[key]
  13.220 +
  13.221 +        # Merge in extra options
  13.222 +        if extraOpts:
  13.223 +            for key in extraOpts.keys():
  13.224 +                self.opts[key] = extraOpts[key]
  13.225 +
  13.226 +    def start(self):
  13.227 +        """We know how about how long everyone will need to wait
  13.228 +        for our ramdisk to come up, so we do it here as a convenience"""
  13.229 +
  13.230 +#        for i in range(0,5):
  13.231 +#            status, output = traceCommand("xm list")
  13.232 +
  13.233 +        XenDomain.start(self)
  13.234 +        waitForBoot()
  13.235 +
  13.236 +    def startNow(self):
  13.237 +        XenDomain.start(self)
  13.238 +
  13.239 +    def getMem(self):
  13.240 +        return int(self.opts["memory"])
  13.241 +
  13.242 +    def minSafeMem(self):
  13.243 +        return 16
  13.244 +
  13.245 +if __name__ == "__main__":
  13.246 +
  13.247 +    d = XmTestDomain();
  13.248 +
  13.249 +    d.start();
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/tools/xm-test/lib/XmTestLib/Xm.py	Mon Nov 07 12:36:16 2005 +0100
    14.3 @@ -0,0 +1,252 @@
    14.4 +#!/usr/bin/python
    14.5 +
    14.6 +"""
    14.7 + Copyright (C) International Business Machines Corp., 2005
    14.8 + Author: Dan Smith <danms@us.ibm.com>
    14.9 +
   14.10 + This program is free software; you can redistribute it and/or modify
   14.11 + it under the terms of the GNU General Public License as published by
   14.12 + the Free Software Foundation; under version 2 of the License.
   14.13 +
   14.14 + This program is distributed in the hope that it will be useful,
   14.15 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   14.16 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14.17 + GNU General Public License for more details.
   14.18 +
   14.19 + You should have received a copy of the GNU General Public License
   14.20 + along with this program; if not, write to the Free Software
   14.21 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   14.22 +
   14.23 +
   14.24 +"""
   14.25 +
   14.26 +
   14.27 +##
   14.28 +## These are miscellaneous utility functions that query xm
   14.29 +##
   14.30 +
   14.31 +import commands
   14.32 +import re
   14.33 +import os
   14.34 +import time
   14.35 +
   14.36 +from Test import *;
   14.37 +
   14.38 +class XmError(Exception):
   14.39 +    def __init__(self, msg, trace="", status=0):
   14.40 +        self.msg = msg
   14.41 +        self.trace = trace
   14.42 +        try:
   14.43 +            self.status = int(status)
   14.44 +        except Exception, e:
   14.45 +            self.status = -1
   14.46 +
   14.47 +        def __str__(self):
   14.48 +            return trace
   14.49 +    
   14.50 +def domid(name):
   14.51 +    status, output = traceCommand("xm domid " + name);
   14.52 +
   14.53 +    if re.search("Traceback", output):
   14.54 +        print "*** xm domid failed with:"
   14.55 +        print output
   14.56 +        for i in range(0,10):
   14.57 +            status, output = traceCommand("xm list")
   14.58 +            status, output = traceCommand("xm domid " + name);
   14.59 +            if not re.search("Traceback", output):
   14.60 +                break
   14.61 +        
   14.62 +    try:
   14.63 +        id = int(output);
   14.64 +    except:
   14.65 +        id = -1;
   14.66 +    return id;
   14.67 +
   14.68 +def domname(id):
   14.69 +    status, output = traceCommand("xm domname " + str(id));
   14.70 +    return output;
   14.71 +
   14.72 +def isDomainRunning(domain):
   14.73 +    id = domid(domain);
   14.74 +    if id == -1:
   14.75 +        return False;
   14.76 +    else:
   14.77 +        return True;
   14.78 +
   14.79 +def getRunningDomains():
   14.80 +    status, output = traceCommand("xm list");
   14.81 +    if "Traceback" in output:
   14.82 +        raise XmError("xm failed", trace=output, status=status)
   14.83 +    
   14.84 +    lines = output.splitlines();
   14.85 +    domains = [];
   14.86 +    for l in lines[1:]:
   14.87 +        elms = l.split(" ", 1);
   14.88 +        domains.append(elms[0]);
   14.89 +    return domains;
   14.90 +
   14.91 +def destroyDomU(name):
   14.92 +    status, output = traceCommand("xm destroy " + name, logOutput=False);
   14.93 +    return status;
   14.94 +
   14.95 +def destroyAllDomUs():
   14.96 +    if verbose:
   14.97 +        print "*** Cleaning all running domU's"
   14.98 +
   14.99 +    attempt = 0
  14.100 +    trying = True
  14.101 +
  14.102 +    while trying:
  14.103 +        try:
  14.104 +            attempt += 1
  14.105 +            domainList = getRunningDomains()
  14.106 +            trying = False
  14.107 +        except XmError, e:
  14.108 +            if attempt >= 10:
  14.109 +                FAIL("XM-TEST: xm list not responding")
  14.110 +            time.sleep(1)
  14.111 +            print e.trace
  14.112 +            print "!!! Trying again to get a clean domain list..."
  14.113 +
  14.114 +    for d in domainList:
  14.115 +        if not d == "Domain-0":
  14.116 +            destroyDomU(d);
  14.117 +
  14.118 +    if verbose:
  14.119 +        print "*** Finished cleaning domUs"
  14.120 +
  14.121 +def getDomMem(domain):
  14.122 +    status, output = traceCommand("xm list")
  14.123 +    if status != 0:
  14.124 +        if verbose:
  14.125 +            print "xm list failed with %i" % status
  14.126 +        return None
  14.127 +
  14.128 +    lines = re.split("\n", output)
  14.129 +    for line in lines:
  14.130 +        fields = re.sub(" +", " ", line).split()
  14.131 +        if domain.isdigit():
  14.132 +            if fields[1] == domain:
  14.133 +                return int(fields[2])
  14.134 +        else:
  14.135 +            if fields[0] == domain:
  14.136 +                return int(fields[2])
  14.137 +    if verbose:
  14.138 +        print "Did not find domain " + str(domain)
  14.139 +    return None
  14.140 +
  14.141 +def getDomInfo(domain, key, opts=None):
  14.142 +    if opts:
  14.143 +        cmd = "xm list %s" % opts
  14.144 +    else:
  14.145 +        cmd = "xm list"
  14.146 +        
  14.147 +    status, output = traceCommand(cmd)
  14.148 +
  14.149 +    if status != 0:
  14.150 +        if verbose:
  14.151 +            print "xm list failed with %i" % status
  14.152 +        return None
  14.153 +
  14.154 +    lines = output.split("\n")
  14.155 +
  14.156 +    # Get the key values from the first line headers
  14.157 +    cleanHeader = re.sub("\([^\)]+\)", "", lines[0])
  14.158 +    colHeaders = re.split(" +", cleanHeader)
  14.159 +
  14.160 +    doms = {}
  14.161 +
  14.162 +    for line in lines[1:]:
  14.163 +        domValues = {}
  14.164 +        values = re.split(" +", line)
  14.165 +        i = 1
  14.166 +        for value in values[1:]:
  14.167 +            domValues[colHeaders[i]] = value
  14.168 +            i += 1
  14.169 +        doms[values[0]] = domValues
  14.170 +
  14.171 +
  14.172 +    if doms.has_key(domain) and doms[domain].has_key(key):
  14.173 +        return doms[domain].get(key)
  14.174 +
  14.175 +    return ""
  14.176 +
  14.177 +def getVcpuInfo(domain):
  14.178 +
  14.179 +    status, output = traceCommand("xm vcpu-list %s" % domain)
  14.180 +
  14.181 +    lines = output.split("\n")
  14.182 +
  14.183 +    vcpus = {}
  14.184 +
  14.185 +    for line in lines[1:]:
  14.186 +        cols = re.split(" +", line)
  14.187 +        if cols[3] == '-':
  14.188 +            vcpus[int(cols[2])] = None
  14.189 +        else:
  14.190 +            vcpus[int(cols[2])] = int(cols[3])
  14.191 +
  14.192 +    return vcpus
  14.193 +
  14.194 +def getInfo(key):
  14.195 +
  14.196 +    info = {}
  14.197 +
  14.198 +    status, output = traceCommand("xm info")
  14.199 +    lines = output.split("\n")
  14.200 +    for line in lines:
  14.201 +        match = re.match("^([A-z_]+)[^:]*: (.*)$", line)
  14.202 +        if match:
  14.203 +            info[match.group(1)] = match.group(2)
  14.204 +
  14.205 +    if info.has_key(key):
  14.206 +        return info[key]
  14.207 +    else:
  14.208 +        return ""
  14.209 +
  14.210 +def restartXend():
  14.211 +    if verbose:
  14.212 +        print "*** Restarting xend ..."
  14.213 +
  14.214 +    if os.access("/etc/init.d/xend", os.X_OK):
  14.215 +        status, output = traceCommand("/etc/init.d/xend stop")
  14.216 +        time.sleep(1)
  14.217 +        status, output = traceCommand("/etc/init.d/xend start")
  14.218 +
  14.219 +        return status
  14.220 +
  14.221 +    else:
  14.222 +        status, output = traceCommand("xend stop")
  14.223 +        time.sleep(1)
  14.224 +        status, output = traceCommand("xend start")
  14.225 +
  14.226 +        return status
  14.227 +
  14.228 +def smpConcurrencyLevel():
  14.229 +    cores = int(getInfo("cores_per_socket"))
  14.230 +    threads = int(getInfo("threads_per_core"))
  14.231 +    sockets = int(getInfo("sockets_per_node"))
  14.232 +
  14.233 +    return cores * sockets * threads
  14.234 +
  14.235 +if __name__ == "__main__":
  14.236 +    if isDomainRunning("0"):
  14.237 +        print "Domain-0 is running; I must be working!"
  14.238 +    else:
  14.239 +        print "Domain-0 is not running; I may be broken!"
  14.240 +
  14.241 +    mem = getDomMem("Domain-0")
  14.242 +    if not mem:
  14.243 +        print "Failed to get memory for Domain-0!"
  14.244 +    else:
  14.245 +        print "Domain-0 mem: %i" % mem
  14.246 +
  14.247 +    cpu = getDomInfo("Domain-0", "CPU")
  14.248 +    state = getDomInfo("Domain-0", "State")
  14.249 +
  14.250 +    print "Domain-0 CPU: " + cpu
  14.251 +    print "Domain-0 state: " + state
  14.252 +    
  14.253 +    v = getVcpuInfo("Domain-0")
  14.254 +    for key in v.keys():
  14.255 +        print "VCPU%i is on CPU %i" % (key, v[key])
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/tools/xm-test/lib/XmTestLib/__init__.py	Mon Nov 07 12:36:16 2005 +0100
    15.3 @@ -0,0 +1,22 @@
    15.4 +#
    15.5 +# Copyright (C) International Business Machines Corp., 2005
    15.6 +# Author: Dan Smith <danms@us.ibm.com>
    15.7 +#
    15.8 +
    15.9 +from Console import *
   15.10 +from Test import *
   15.11 +from Xm import *
   15.12 +from XenDomain import *
   15.13 +from config import *
   15.14 +
   15.15 +# Give this test a clean slate
   15.16 +destroyAllDomUs();
   15.17 +
   15.18 +if os.environ.get("TEST_VERBOSE"):
   15.19 +    verbose = True
   15.20 +else:
   15.21 +    verbose = False
   15.22 +
   15.23 +
   15.24 +if verbose:
   15.25 +    timeStamp()
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/tools/xm-test/lib/XmTestLib/config.py	Mon Nov 07 12:36:16 2005 +0100
    16.3 @@ -0,0 +1,4 @@
    16.4 +#!/usr/bin/python
    16.5 +
    16.6 +USE_BLKDEV_FOR_ROOT = False
    16.7 +
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/tools/xm-test/lib/XmTestLib/config.py.in	Mon Nov 07 12:36:16 2005 +0100
    17.3 @@ -0,0 +1,4 @@
    17.4 +#!/usr/bin/python
    17.5 +
    17.6 +USE_BLKDEV_FOR_ROOT = @ENABLE_VMX@
    17.7 +
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/tools/xm-test/lib/XmTestReport/OSReport.py	Mon Nov 07 12:36:16 2005 +0100
    18.3 @@ -0,0 +1,250 @@
    18.4 +#!/usr/bin/python
    18.5 +
    18.6 +"""
    18.7 + OSReport.py - Handles the gathering and xml-formatting of operating
    18.8 +               system environment information.
    18.9 +
   18.10 + Copyright (C) International Business Machines Corp., 2005
   18.11 + Author: Dan Smith <danms@us.ibm.com>
   18.12 +
   18.13 + This program is free software; you can redistribute it and/or modify
   18.14 + it under the terms of the GNU General Public License as published by
   18.15 + the Free Software Foundation; under version 2 of the License.
   18.16 +
   18.17 + This program is distributed in the hope that it will be useful,
   18.18 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   18.19 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   18.20 + GNU General Public License for more details.
   18.21 +
   18.22 + You should have received a copy of the GNU General Public License
   18.23 + along with this program; if not, write to the Free Software
   18.24 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   18.25 +
   18.26 +"""
   18.27 +
   18.28 +import utils
   18.29 +
   18.30 +import posix
   18.31 +import re
   18.32 +import os
   18.33 +import commands
   18.34 +import sys
   18.35 +
   18.36 +class Machine:
   18.37 +
   18.38 +    def __parseInfoLine(self, line):
   18.39 +        if ":" in line:
   18.40 +            name, value = line.split(":", 1)
   18.41 +            name  = name.strip()
   18.42 +            value = value.strip()
   18.43 +            
   18.44 +            name = re.sub(" ", "_", name)
   18.45 +
   18.46 +            return name, value
   18.47 +        else:
   18.48 +            return None, None
   18.49 +
   18.50 +    def __getCpuInfo(self, values):
   18.51 +
   18.52 +        processors = 0
   18.53 +        cpuinfo = file("/proc/cpuinfo")
   18.54 +
   18.55 +        if not cpuinfo:
   18.56 +            return "Unable to read /proc/cpuinfo"
   18.57 +
   18.58 +        lines = cpuinfo.readlines()
   18.59 +
   18.60 +        for l in lines:
   18.61 +            name, value = self.__parseInfoLine(l)
   18.62 +            
   18.63 +            if name in values.keys():
   18.64 +                values[name] = value
   18.65 +
   18.66 +            if name == "processor":
   18.67 +                processors += 1
   18.68 +
   18.69 +        values["dom0procs"] = str(processors)
   18.70 +
   18.71 +        return values
   18.72 +
   18.73 +    def __getXenInfo(self, values):
   18.74 +
   18.75 +        status, output = commands.getstatusoutput("xm info")
   18.76 +        if status != 0:
   18.77 +            self.errors += 1
   18.78 +            return values
   18.79 +
   18.80 +        lines = output.split("\n")
   18.81 +
   18.82 +        for l in lines:
   18.83 +            name, value = self.__parseInfoLine(l)
   18.84 +
   18.85 +            if name in values.keys():
   18.86 +                values[name] = value
   18.87 +
   18.88 +        return values
   18.89 +
   18.90 +    def __init__(self):
   18.91 +
   18.92 +        self.values = {}
   18.93 +        self.errors = 0
   18.94 +
   18.95 +        cpuValues = {"model_name"       : "Unknown",
   18.96 +                     "flags"            : "Unknown"}
   18.97 +        xenValues = {"nr_cpus"          : "Unknown",
   18.98 +                     "nr_nodes"         : "Unknown",
   18.99 +                     "sockets_per_node" : "Unknown",
  18.100 +                     "cores_per_socket" : "Unknown",
  18.101 +                     "threads_per_core" : "Unknown",
  18.102 +                     "cpu_mhz"          : "Unknown",
  18.103 +                     "memory"           : "Unknown"}
  18.104 +
  18.105 +        xen = self.__getXenInfo(xenValues)
  18.106 +        cpu = self.__getCpuInfo(cpuValues)
  18.107 +
  18.108 +        for k in xen.keys():
  18.109 +            self.values[k] = xen[k]
  18.110 +            if xen[k] == "Unknown":
  18.111 +                self.errors += 1
  18.112 +
  18.113 +        for k in cpu.keys():
  18.114 +            self.values[k] = cpu[k]
  18.115 +            if cpu[k] == "Unknown":
  18.116 +                self.errors += 1
  18.117 +
  18.118 +        
  18.119 +    def __str__(self):
  18.120 +        string = "<machine>\n"
  18.121 +        
  18.122 +        for k in self.values.keys():
  18.123 +            string += "  " + utils.tagify(k, self.values[k]) + "\n"
  18.124 +
  18.125 +        string += "</machine>\n"
  18.126 +
  18.127 +        return string
  18.128 +
  18.129 +class OperatingSystem:
  18.130 +
  18.131 +    def __redhatStyleRelease(self):
  18.132 +        rFile = None
  18.133 +        
  18.134 +        if os.access("/etc/redhat-release", os.R_OK):
  18.135 +            rFile = file("/etc/redhat-release")
  18.136 +        if os.access("/etc/SuSe-release", os.R_OK):
  18.137 +            rFile = file("/etc/SuSe-release")
  18.138 +        if os.access("/etc/SuSE-release", os.R_OK):
  18.139 +            rFile = file("/etc/SuSE-release")
  18.140 +        if os.access("/etc/mandrake-release", os.R_OK):
  18.141 +            rFile = file("/etc/mandrake-release")
  18.142 +
  18.143 +        if not rFile:
  18.144 +            return None, None
  18.145 +        
  18.146 +        rLine = rFile.readline()
  18.147 +        rFile.close()
  18.148 +      
  18.149 +        match = re.match("^([^0-9]+)([0-9\.]+).*$", rLine)
  18.150 +        if match:
  18.151 +            return match.group(1), match.group(2)
  18.152 +        else:
  18.153 +            return None, None
  18.154 +
  18.155 +    def __debianStyleRelease(self):
  18.156 +	if os.access("/etc/debian_version", os.R_OK):
  18.157 +	    rFile = file("/etc/debian_version")
  18.158 +	else:
  18.159 +	    rFile = None
  18.160 +
  18.161 +	if not rFile:
  18.162 +	    return None, None
  18.163 +
  18.164 +	line = rFile.readline()
  18.165 +	return "Debian", line.rstrip("\n");
  18.166 +
  18.167 +    def __lsbStyleRelease(self):
  18.168 +        if os.access("/etc/lsb-release", os.R_OK):
  18.169 +            rFile = file("/etc/lsb-release")
  18.170 +        else:
  18.171 +            rFile = None
  18.172 +
  18.173 +        if not rFile:
  18.174 +            return None, None
  18.175 +
  18.176 +        lines = rFile.readlines()
  18.177 +
  18.178 +        vendor  = None
  18.179 +        version = None
  18.180 +
  18.181 +        for l in lines:
  18.182 +            match = re.match("^DISTRIB_ID=(.*)$", l)
  18.183 +            if match:
  18.184 +                vendor = match.group(1)
  18.185 +            match = re.match("^DISTRIB_RELEASE=(.*)$", l)
  18.186 +            if match:
  18.187 +                version = match.group(1)
  18.188 +
  18.189 +        return vendor, version
  18.190 +                
  18.191 +    def __init__(self):
  18.192 +
  18.193 +        self.values = {}
  18.194 +        self.errors = 0
  18.195 +
  18.196 +        # Try to resolve the vendor and version information
  18.197 +        # for the distro we're running on
  18.198 +        vendor = None
  18.199 +        version = None
  18.200 +        for r in [self.__redhatStyleRelease, self.__debianStyleRelease, self.__lsbStyleRelease]:
  18.201 +            vendor, version = r()
  18.202 +            if vendor and version:
  18.203 +                break
  18.204 +        
  18.205 +        self.values["vendor"]  = vendor or "Unknown vendor"
  18.206 +        self.values["version"] = version or "Unknown version"
  18.207 +
  18.208 +        self.values["name"], nodename, release, version, self.values["arch"] = posix.uname()
  18.209 +
  18.210 +        for k in self.values.keys():
  18.211 +            if not self.values[k]:
  18.212 +                self.errors += 1
  18.213 +
  18.214 +    def __str__(self):
  18.215 +        string = "<os>\n"
  18.216 +
  18.217 +        for k in self.values.keys():
  18.218 +            string += "  " + utils.tagify(k, self.values[k]) + "\n"
  18.219 +
  18.220 +        string += "</os>\n"
  18.221 +
  18.222 +        return string
  18.223 +        
  18.224 +
  18.225 +class OSReport:
  18.226 +
  18.227 +    def __init__(self):
  18.228 +
  18.229 +        self.reports = {}
  18.230 +        self.reports["os"] = OperatingSystem()
  18.231 +        self.reports["machine"] = Machine()
  18.232 +        self.errors = 0
  18.233 +
  18.234 +        for k in self.reports.keys():
  18.235 +            self.errors += self.reports[k].errors
  18.236 +                 
  18.237 +    def __str__(self):
  18.238 +
  18.239 +        string = ""
  18.240 +
  18.241 +        for k in self.reports.keys():
  18.242 +            string += str(self.reports[k])
  18.243 +
  18.244 +        return string
  18.245 +
  18.246 +if __name__ == "__main__":
  18.247 +    r = OSReport()
  18.248 +
  18.249 +    print str(r)
  18.250 +
  18.251 +    sys.exit(r.errors)
  18.252 +
  18.253 +    
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/tools/xm-test/lib/XmTestReport/ProgReport.py	Mon Nov 07 12:36:16 2005 +0100
    19.3 @@ -0,0 +1,119 @@
    19.4 +#!/usr/bin/python
    19.5 +
    19.6 +"""
    19.7 + ProgReport.py - Handles the gathering and xml-formatting of supporting
    19.8 +                 program information
    19.9 +
   19.10 + Copyright (C) International Business Machines Corp., 2005
   19.11 + Author: Dan Smith <danms@us.ibm.com>
   19.12 +
   19.13 + This program is free software; you can redistribute it and/or modify
   19.14 + it under the terms of the GNU General Public License as published by
   19.15 + the Free Software Foundation; under version 2 of the License.
   19.16 +
   19.17 + This program is distributed in the hope that it will be useful,
   19.18 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   19.19 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   19.20 + GNU General Public License for more details.
   19.21 +
   19.22 + You should have received a copy of the GNU General Public License
   19.23 + along with this program; if not, write to the Free Software
   19.24 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   19.25 +
   19.26 +"""
   19.27 +
   19.28 +import utils
   19.29 +
   19.30 +import commands
   19.31 +import re
   19.32 +import distutils.sysconfig
   19.33 +import sys
   19.34 +
   19.35 +from xmtest import XM_TEST_VERSION
   19.36 +
   19.37 +class Prog:
   19.38 +
   19.39 +    def __init__(self, name, version):
   19.40 +        self.vars = {}
   19.41 +        self.vars["name"] = name
   19.42 +        self.vars["version"] = version
   19.43 +
   19.44 +    def __str__(self):
   19.45 +        string = "<prog>\n"
   19.46 +
   19.47 +        for k in self.vars.keys():
   19.48 +            string += "  " + utils.tagify(k, self.vars[k]) + "\n"
   19.49 +
   19.50 +        string += "</prog>\n"
   19.51 +
   19.52 +        return string
   19.53 +
   19.54 +class UnknownProg(Prog):
   19.55 +
   19.56 +    def __init__(self, name):
   19.57 +        Prog.__init__(self, name, "Unknown Version")
   19.58 +        
   19.59 +class ProgFactory:
   19.60 +
   19.61 +    def getXen(self):
   19.62 +        status, output = commands.getstatusoutput("xm info")
   19.63 +        if status != 0:
   19.64 +            return UnknownProg("xen")
   19.65 +        
   19.66 +        for l in output.split("\n"):
   19.67 +            match = re.match("^([a-z_]+)[ ]*: (.*)$", l)
   19.68 +            if match and match.group(1) == "xen_changeset":
   19.69 +                return Prog("xen", match.group(2))
   19.70 +
   19.71 +        return UnknownProg("xen")
   19.72 +
   19.73 +    def getXmTest(self):
   19.74 +        return Prog("xm-test", XM_TEST_VERSION)
   19.75 +
   19.76 +    def getPython(self):
   19.77 +        return Prog("python", distutils.sysconfig.get_python_version())
   19.78 +
   19.79 +    def getXenCaps(self):
   19.80 +        s, o = commands.getstatusoutput("xm info")
   19.81 +        if s != 0:
   19.82 +            return UnknownProg("xen_caps")
   19.83 +
   19.84 +        for l in o.split("\n"):
   19.85 +            match = re.match("^xen_caps[ \t]*: (.*)$", l)
   19.86 +            if match:
   19.87 +                return Prog("xen_caps", match.group(1))
   19.88 +
   19.89 +class ProgReport:
   19.90 +
   19.91 +    def __init__(self):
   19.92 +
   19.93 +        self.progs = []
   19.94 +        self.errors = 0
   19.95 +
   19.96 +        f = ProgFactory()
   19.97 +
   19.98 +        self.progs.append(f.getXen())
   19.99 +        self.progs.append(f.getXmTest())
  19.100 +        self.progs.append(f.getPython())
  19.101 +        self.progs.append(f.getXenCaps())
  19.102 +
  19.103 +        for p in self.progs:
  19.104 +            if isinstance(p, UnknownProg):
  19.105 +                self.errors += 1
  19.106 +
  19.107 +    def __str__(self):
  19.108 +        string = "<progs>\n"
  19.109 +
  19.110 +        for p in self.progs:
  19.111 +            string += str(p)
  19.112 +
  19.113 +        string += "</progs>\n"
  19.114 +
  19.115 +        return string
  19.116 +
  19.117 +if __name__ == "__main__":
  19.118 +    r = ProgReport()
  19.119 +
  19.120 +    print str(r)
  19.121 +
  19.122 +    sys.exit(r.errors)
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/tools/xm-test/lib/XmTestReport/Report.py	Mon Nov 07 12:36:16 2005 +0100
    20.3 @@ -0,0 +1,153 @@
    20.4 +#!/usr/bin/python
    20.5 +
    20.6 +"""
    20.7 + Report.py - Handles the coordination of xm-test xml-reporting modules
    20.8 +
    20.9 + Copyright (C) International Business Machines Corp., 2005
   20.10 + Author: Dan Smith <danms@us.ibm.com>
   20.11 +
   20.12 + This program is free software; you can redistribute it and/or modify
   20.13 + it under the terms of the GNU General Public License as published by
   20.14 + the Free Software Foundation; under version 2 of the License.
   20.15 +
   20.16 + This program is distributed in the hope that it will be useful,
   20.17 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   20.18 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   20.19 + GNU General Public License for more details.
   20.20 +
   20.21 + You should have received a copy of the GNU General Public License
   20.22 + along with this program; if not, write to the Free Software
   20.23 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   20.24 +
   20.25 +"""
   20.26 +
   20.27 +import OSReport
   20.28 +import ProgReport
   20.29 +import ResultReport
   20.30 +import utils
   20.31 +
   20.32 +import sys
   20.33 +import os
   20.34 +import xml.dom.minidom
   20.35 +import httplib
   20.36 +import urllib
   20.37 +
   20.38 +#REPORT_HOST = "xmtest-dev.dague.org"
   20.39 +REPORT_HOST = "xmtest.dague.org"
   20.40 +REPORT_URL  = "/cgi-bin/report-results";
   20.41 +
   20.42 +class XmTestReport:
   20.43 +
   20.44 +    def __init__(self, files):
   20.45 +        self.files = files
   20.46 +
   20.47 +    def __getContactInfo(self):
   20.48 +        if os.access("contact_info", os.R_OK):
   20.49 +            c = file("contact_info")
   20.50 +            line = c.readline()
   20.51 +            line = line.strip()
   20.52 +            return line
   20.53 +        else:
   20.54 +            return "nobody@nowhere.com"
   20.55 +
   20.56 +    def __stringify(self, fileName):
   20.57 +        f = file(fileName)
   20.58 +        str = f.read()
   20.59 +        f.close()
   20.60 +
   20.61 +        return str
   20.62 +
   20.63 +    def __str__(self):
   20.64 +        string  = "<testname>xm-test</testname>\n"
   20.65 +        string += "<user>%s</user>\n" % self.__getContactInfo()
   20.66 +
   20.67 +        for f in self.files:
   20.68 +            string += self.__stringify(f)
   20.69 +
   20.70 +        return string
   20.71 +
   20.72 +# Taken from example in Python Cookbook
   20.73 +def encodeForm(fieldList):
   20.74 +    body = []
   20.75 +    boundary = "-------XmTestReportingXML"
   20.76 +
   20.77 +    for name in fieldList.keys():
   20.78 +        body.append('--' + boundary)
   20.79 +        body.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (name, "%s.txt" % name))
   20.80 +        body.append('Content-Type: text/plain')
   20.81 +        body.append('')
   20.82 +        body.append(fieldList[name])
   20.83 +
   20.84 +    body.append('')
   20.85 +    body.append("--" + boundary + "--")
   20.86 +    body.append('')
   20.87 +
   20.88 +    textBody = "\r\n".join(body)
   20.89 +
   20.90 +    return 'multipart/form-data; boundary=%s' % boundary, textBody
   20.91 +
   20.92 +def postResults(results):
   20.93 +    conn = httplib.HTTPConnection(REPORT_HOST)
   20.94 +
   20.95 +    type, body = encodeForm({"log" : results})
   20.96 +
   20.97 +    headers = {"content-type" : type}
   20.98 +
   20.99 +    # DEBUG OUTPUT
  20.100 +    # print "BODY\n%s\nBODY\n" % body
  20.101 +    # print "%s\n" % type
  20.102 +    # print headers
  20.103 +    
  20.104 +    conn.request("POST", REPORT_URL, body, headers)
  20.105 +    
  20.106 +    resp = conn.getresponse()
  20.107 +    if resp.status == 200:
  20.108 +        print >>sys.stderr, "Your results have been submitted successfully!"
  20.109 +    else:
  20.110 +        print >>sys.stderr, "Unable to submit results:"
  20.111 +        print >>sys.stderr, "[http://%s%s] said %i: %s" % (REPORT_HOST,
  20.112 +                                                           REPORT_URL,
  20.113 +                                                           resp.status,
  20.114 +                                                           resp.reason)
  20.115 +
  20.116 +        data = resp.read()
  20.117 +        print >>sys.stderr, data
  20.118 +
  20.119 +if __name__ == "__main__":
  20.120 +
  20.121 +    if len(sys.argv) <= 1:
  20.122 +        print "Usage: Report.py [opt] <outputfiles...>"
  20.123 +        print "Where:"
  20.124 +        print "-d    : don't submit, just dump XML"
  20.125 +        print "-D    : do submit and dump XML"
  20.126 +        sys.exit(1)
  20.127 +
  20.128 +    submit = True
  20.129 +    dump = False
  20.130 +    files = []
  20.131 +
  20.132 +    for a in sys.argv[1:]:
  20.133 +        if a == "-d":
  20.134 +            submit = False
  20.135 +            dump = True
  20.136 +        elif a == "-D":
  20.137 +            dump = True
  20.138 +            submit = True
  20.139 +
  20.140 +        else:
  20.141 +            if not os.access(a, os.R_OK):
  20.142 +                print "Unable to access file: %s" % a
  20.143 +                sys.exit(1)
  20.144 +            else:
  20.145 +                files.append(a)
  20.146 +
  20.147 +    report = XmTestReport(files)
  20.148 +
  20.149 +    xmlout = "<xml>\n%s</xml>\n" % report
  20.150 +
  20.151 +    if dump:
  20.152 +        print xmlout
  20.153 +
  20.154 +    if submit:
  20.155 +        postResults(xmlout)
  20.156 +    
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/tools/xm-test/lib/XmTestReport/ResultReport.py	Mon Nov 07 12:36:16 2005 +0100
    21.3 @@ -0,0 +1,157 @@
    21.4 +#!/usr/bin/python
    21.5 +
    21.6 +"""
    21.7 + ResultReport.py - Handles the gathering and xml-formatting of xm-test
    21.8 +                   results
    21.9 +
   21.10 + Copyright (C) International Business Machines Corp., 2005
   21.11 + Author: Dan Smith <danms@us.ibm.com>
   21.12 +
   21.13 + This program is free software; you can redistribute it and/or modify
   21.14 + it under the terms of the GNU General Public License as published by
   21.15 + the Free Software Foundation; under version 2 of the License.
   21.16 +
   21.17 + This program is distributed in the hope that it will be useful,
   21.18 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   21.19 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   21.20 + GNU General Public License for more details.
   21.21 +
   21.22 + You should have received a copy of the GNU General Public License
   21.23 + along with this program; if not, write to the Free Software
   21.24 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   21.25 +
   21.26 +"""
   21.27 +
   21.28 +import utils
   21.29 +
   21.30 +import re
   21.31 +
   21.32 +class Test:
   21.33 +
   21.34 +    def __init__(self, name, state, seq):
   21.35 +        self.vars = {}
   21.36 +        self.vars["name"] = name
   21.37 +        self.vars["state"] = state
   21.38 +        self.vars["log"] = "NO LOG SUPPLIED"
   21.39 +        self.vars["seq"] = str(seq)
   21.40 +
   21.41 +    def setLog(self, log):
   21.42 +        self.vars["log"] = log
   21.43 +
   21.44 +    def __str__(self):
   21.45 +        string = "<test>\n"
   21.46 +
   21.47 +        for k in self.vars.keys():
   21.48 +            string += "  " + utils.tagify(k, self.vars[k]) + "\n"
   21.49 +
   21.50 +        string += "</test>\n"
   21.51 +
   21.52 +        return string
   21.53 +
   21.54 +class TestGroup:
   21.55 +
   21.56 +    def __init__(self, name):
   21.57 +        self.name = name
   21.58 +        self.tests = []
   21.59 +
   21.60 +    def addTest(self, test):
   21.61 +        self.tests.append(test)
   21.62 +
   21.63 +    def __str__(self):
   21.64 +        string  = "<group>\n"
   21.65 +        string += "  <name>%s</name>\n" % self.name
   21.66 +
   21.67 +        for t in self.tests:
   21.68 +            string += str(t)
   21.69 +
   21.70 +        string += "</group>\n"
   21.71 +
   21.72 +        return string
   21.73 +
   21.74 +class ResultSet:
   21.75 +
   21.76 +    def __init__(self):
   21.77 +        self.groups = []
   21.78 +
   21.79 +    def addGroup(self, group):
   21.80 +        self.groups.append(group)
   21.81 +
   21.82 +    def __str__(self):
   21.83 +        string = "<results>\n"
   21.84 +
   21.85 +        for g in self.groups:
   21.86 +            string += str(g)
   21.87 +
   21.88 +        string += "</results>\n"
   21.89 +
   21.90 +        return string
   21.91 +
   21.92 +class ResultParser:
   21.93 +
   21.94 +    def __init__(self):
   21.95 +        self.groups = {}
   21.96 +        self.resultSet = None
   21.97 +
   21.98 +    def __isImportant(self, line):
   21.99 +
  21.100 +        if re.search("^[Mm]ak(e|ing)", line):
  21.101 +            return False
  21.102 +        if re.search("^===", line):
  21.103 +            return False
  21.104 +        if re.search("^All [0-9]+ tests", line):
  21.105 +            return False
  21.106 +        if re.search("^[0-9]+ of [0-9]+ tests", line):
  21.107 +            return False
  21.108 +        if re.search("^cp [0-9]+_", line):
  21.109 +            return False
  21.110 +        if re.search("^chmod \+x [0-9]+_", line):
  21.111 +            return False
  21.112 +        
  21.113 +        return True
  21.114 +
  21.115 +    def parse(self, fileName):
  21.116 +        output = file(fileName);
  21.117 +        contents = output.read()
  21.118 +
  21.119 +        lines = contents.split("\n")
  21.120 +
  21.121 +        sequence = 0
  21.122 +        currentLog = ""
  21.123 +        for l in lines:
  21.124 +            match = re.match("^(PASS|FAIL|XPASS|XFAIL|SKIP): ([0-9]+)_([^_]+)_([^\.]+)\.test$", l)
  21.125 +            if match:
  21.126 +                # End of current test; build object
  21.127 +                testStatus = match.group(1)
  21.128 +                testNumber = match.group(2)
  21.129 +                testGroup  = match.group(3)
  21.130 +                testName   = match.group(4)
  21.131 +
  21.132 +                if not testGroup in self.groups.keys():
  21.133 +                    self.groups[testGroup] = TestGroup(testGroup)
  21.134 +
  21.135 +                test = Test("%s_%s" % (testNumber, testName), testStatus,
  21.136 +                            sequence)
  21.137 +                sequence += 1
  21.138 +                test.setLog(currentLog)
  21.139 +                self.groups[testGroup].addTest(test)
  21.140 +
  21.141 +                currentLog = ""
  21.142 +
  21.143 +            else:
  21.144 +                if self.__isImportant(l):
  21.145 +                    currentLog += l + "\n"
  21.146 +
  21.147 +        self.resultSet = ResultSet()
  21.148 +
  21.149 +        for g in self.groups:
  21.150 +            self.resultSet.addGroup(self.groups[g])
  21.151 +
  21.152 +        return self.resultSet
  21.153 +
  21.154 +if __name__ == "__main__":
  21.155 +
  21.156 +    import sys
  21.157 +
  21.158 +    r = ResultParser()
  21.159 +
  21.160 +    print str(r.parse(sys.argv[1]))
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/tools/xm-test/lib/XmTestReport/utils.py	Mon Nov 07 12:36:16 2005 +0100
    22.3 @@ -0,0 +1,31 @@
    22.4 +#!/usr/bin/python
    22.5 +
    22.6 +"""
    22.7 + utils.py - Utilities for reporting xm-test results
    22.8 +
    22.9 + Copyright (C) International Business Machines Corp., 2005
   22.10 + Author: Dan Smith <danms@us.ibm.com>
   22.11 +
   22.12 + This program is free software; you can redistribute it and/or modify
   22.13 + it under the terms of the GNU General Public License as published by
   22.14 + the Free Software Foundation; under version 2 of the License.
   22.15 +
   22.16 + This program is distributed in the hope that it will be useful,
   22.17 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   22.18 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   22.19 + GNU General Public License for more details.
   22.20 +
   22.21 + You should have received a copy of the GNU General Public License
   22.22 + along with this program; if not, write to the Free Software
   22.23 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   22.24 +
   22.25 +"""
   22.26 +
   22.27 +from xml.sax.saxutils import escape
   22.28 +
   22.29 +def tagify(tag, string):
   22.30 +    return "<%s>%s</%s>" % (tag, escape(string.strip()), tag)
   22.31 +
   22.32 +
   22.33 +  
   22.34 +  
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/tools/xm-test/lib/XmTestReport/xmtest.py	Mon Nov 07 12:36:16 2005 +0100
    23.3 @@ -0,0 +1,3 @@
    23.4 +#!/usr/bin/python
    23.5 +
    23.6 +XM_TEST_VERSION = "0.4.0"
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/tools/xm-test/lib/XmTestReport/xmtest.py.in	Mon Nov 07 12:36:16 2005 +0100
    24.3 @@ -0,0 +1,3 @@
    24.4 +#!/usr/bin/python
    24.5 +
    24.6 +XM_TEST_VERSION = "@PACKAGE_VERSION@"
    25.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.2 +++ b/tools/xm-test/missing	Mon Nov 07 12:36:16 2005 +0100
    25.3 @@ -0,0 +1,357 @@
    25.4 +#! /bin/sh
    25.5 +# Common stub for a few missing GNU programs while installing.
    25.6 +
    25.7 +scriptversion=2005-02-08.22
    25.8 +
    25.9 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
   25.10 +#   Free Software Foundation, Inc.
   25.11 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
   25.12 +
   25.13 +# This program is free software; you can redistribute it and/or modify
   25.14 +# it under the terms of the GNU General Public License as published by
   25.15 +# the Free Software Foundation; either version 2, or (at your option)
   25.16 +# any later version.
   25.17 +
   25.18 +# This program is distributed in the hope that it will be useful,
   25.19 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   25.20 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   25.21 +# GNU General Public License for more details.
   25.22 +
   25.23 +# You should have received a copy of the GNU General Public License
   25.24 +# along with this program; if not, write to the Free Software
   25.25 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   25.26 +# 02111-1307, USA.
   25.27 +
   25.28 +# As a special exception to the GNU General Public License, if you
   25.29 +# distribute this file as part of a program that contains a
   25.30 +# configuration script generated by Autoconf, you may include it under
   25.31 +# the same distribution terms that you use for the rest of that program.
   25.32 +
   25.33 +if test $# -eq 0; then
   25.34 +  echo 1>&2 "Try \`$0 --help' for more information"
   25.35 +  exit 1
   25.36 +fi
   25.37 +
   25.38 +run=:
   25.39 +
   25.40 +# In the cases where this matters, `missing' is being run in the
   25.41 +# srcdir already.
   25.42 +if test -f configure.ac; then
   25.43 +  configure_ac=configure.ac
   25.44 +else
   25.45 +  configure_ac=configure.in
   25.46 +fi
   25.47 +
   25.48 +msg="missing on your system"
   25.49 +
   25.50 +case "$1" in
   25.51 +--run)
   25.52 +  # Try to run requested program, and just exit if it succeeds.
   25.53 +  run=
   25.54 +  shift
   25.55 +  "$@" && exit 0
   25.56 +  # Exit code 63 means version mismatch.  This often happens
   25.57 +  # when the user try to use an ancient version of a tool on
   25.58 +  # a file that requires a minimum version.  In this case we
   25.59 +  # we should proceed has if the program had been absent, or
   25.60 +  # if --run hadn't been passed.
   25.61 +  if test $? = 63; then
   25.62 +    run=:
   25.63 +    msg="probably too old"
   25.64 +  fi
   25.65 +  ;;
   25.66 +
   25.67 +  -h|--h|--he|--hel|--help)
   25.68 +    echo "\
   25.69 +$0 [OPTION]... PROGRAM [ARGUMENT]...
   25.70 +
   25.71 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
   25.72 +error status if there is no known handling for PROGRAM.
   25.73 +
   25.74 +Options:
   25.75 +  -h, --help      display this help and exit
   25.76 +  -v, --version   output version information and exit
   25.77 +  --run           try to run the given command, and emulate it if it fails
   25.78 +
   25.79 +Supported PROGRAM values:
   25.80 +  aclocal      touch file \`aclocal.m4'
   25.81 +  autoconf     touch file \`configure'
   25.82 +  autoheader   touch file \`config.h.in'
   25.83 +  automake     touch all \`Makefile.in' files
   25.84 +  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
   25.85 +  flex         create \`lex.yy.c', if possible, from existing .c
   25.86 +  help2man     touch the output file
   25.87 +  lex          create \`lex.yy.c', if possible, from existing .c
   25.88 +  makeinfo     touch the output file
   25.89 +  tar          try tar, gnutar, gtar, then tar without non-portable flags
   25.90 +  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
   25.91 +
   25.92 +Send bug reports to <bug-automake@gnu.org>."
   25.93 +    exit $?
   25.94 +    ;;
   25.95 +
   25.96 +  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
   25.97 +    echo "missing $scriptversion (GNU Automake)"
   25.98 +    exit $?
   25.99 +    ;;
  25.100 +
  25.101 +  -*)
  25.102 +    echo 1>&2 "$0: Unknown \`$1' option"
  25.103 +    echo 1>&2 "Try \`$0 --help' for more information"
  25.104 +    exit 1
  25.105 +    ;;
  25.106 +
  25.107 +esac
  25.108 +
  25.109 +# Now exit if we have it, but it failed.  Also exit now if we
  25.110 +# don't have it and --version was passed (most likely to detect
  25.111 +# the program).
  25.112 +case "$1" in
  25.113 +  lex|yacc)
  25.114 +    # Not GNU programs, they don't have --version.
  25.115 +    ;;
  25.116 +
  25.117 +  tar)
  25.118 +    if test -n "$run"; then
  25.119 +       echo 1>&2 "ERROR: \`tar' requires --run"
  25.120 +       exit 1
  25.121 +    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  25.122 +       exit 1
  25.123 +    fi
  25.124 +    ;;
  25.125 +
  25.126 +  *)
  25.127 +    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  25.128 +       # We have it, but it failed.
  25.129 +       exit 1
  25.130 +    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  25.131 +       # Could not run --version or --help.  This is probably someone
  25.132 +       # running `$TOOL --version' or `$TOOL --help' to check whether
  25.133 +       # $TOOL exists and not knowing $TOOL uses missing.
  25.134 +       exit 1
  25.135 +    fi
  25.136 +    ;;
  25.137 +esac
  25.138 +
  25.139 +# If it does not exist, or fails to run (possibly an outdated version),
  25.140 +# try to emulate it.
  25.141 +case "$1" in
  25.142 +  aclocal*)
  25.143 +    echo 1>&2 "\
  25.144 +WARNING: \`$1' is $msg.  You should only need it if
  25.145 +         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
  25.146 +         to install the \`Automake' and \`Perl' packages.  Grab them from
  25.147 +         any GNU archive site."
  25.148 +    touch aclocal.m4
  25.149 +    ;;
  25.150 +
  25.151 +  autoconf)
  25.152 +    echo 1>&2 "\
  25.153 +WARNING: \`$1' is $msg.  You should only need it if
  25.154 +         you modified \`${configure_ac}'.  You might want to install the
  25.155 +         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
  25.156 +         archive site."
  25.157 +    touch configure
  25.158 +    ;;
  25.159 +
  25.160 +  autoheader)
  25.161 +    echo 1>&2 "\
  25.162 +WARNING: \`$1' is $msg.  You should only need it if
  25.163 +         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
  25.164 +         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
  25.165 +         from any GNU archive site."
  25.166 +    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
  25.167 +    test -z "$files" && files="config.h"
  25.168 +    touch_files=
  25.169 +    for f in $files; do
  25.170 +      case "$f" in
  25.171 +      *:*) touch_files="$touch_files "`echo "$f" |
  25.172 +				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  25.173 +      *) touch_files="$touch_files $f.in";;
  25.174 +      esac
  25.175 +    done
  25.176 +    touch $touch_files
  25.177 +    ;;
  25.178 +
  25.179 +  automake*)
  25.180 +    echo 1>&2 "\
  25.181 +WARNING: \`$1' is $msg.  You should only need it if
  25.182 +         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  25.183 +         You might want to install the \`Automake' and \`Perl' packages.
  25.184 +         Grab them from any GNU archive site."
  25.185 +    find . -type f -name Makefile.am -print |
  25.186 +	   sed 's/\.am$/.in/' |
  25.187 +	   while read f; do touch "$f"; done
  25.188 +    ;;
  25.189 +
  25.190 +  autom4te)
  25.191 +    echo 1>&2 "\
  25.192 +WARNING: \`$1' is needed, but is $msg.
  25.193 +         You might have modified some files without having the
  25.194 +         proper tools for further handling them.
  25.195 +         You can get \`$1' as part of \`Autoconf' from any GNU
  25.196 +         archive site."
  25.197 +
  25.198 +    file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  25.199 +    test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  25.200 +    if test -f "$file"; then
  25.201 +	touch $file
  25.202 +    else
  25.203 +	test -z "$file" || exec >$file
  25.204 +	echo "#! /bin/sh"
  25.205 +	echo "# Created by GNU Automake missing as a replacement of"
  25.206 +	echo "#  $ $@"
  25.207 +	echo "exit 0"
  25.208 +	chmod +x $file
  25.209 +	exit 1
  25.210 +    fi
  25.211 +    ;;
  25.212 +
  25.213 +  bison|yacc)
  25.214 +    echo 1>&2 "\
  25.215 +WARNING: \`$1' $msg.  You should only need it if
  25.216 +         you modified a \`.y' file.  You may need the \`Bison' package
  25.217 +         in order for those modifications to take effect.  You can get
  25.218 +         \`Bison' from any GNU archive site."
  25.219 +    rm -f y.tab.c y.tab.h
  25.220 +    if [ $# -ne 1 ]; then
  25.221 +        eval LASTARG="\${$#}"
  25.222 +	case "$LASTARG" in
  25.223 +	*.y)
  25.224 +	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  25.225 +	    if [ -f "$SRCFILE" ]; then
  25.226 +	         cp "$SRCFILE" y.tab.c
  25.227 +	    fi
  25.228 +	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  25.229 +	    if [ -f "$SRCFILE" ]; then
  25.230 +	         cp "$SRCFILE" y.tab.h
  25.231 +	    fi
  25.232 +	  ;;
  25.233 +	esac
  25.234 +    fi
  25.235 +    if [ ! -f y.tab.h ]; then
  25.236 +	echo >y.tab.h
  25.237 +    fi
  25.238 +    if [ ! -f y.tab.c ]; then
  25.239 +	echo 'main() { return 0; }' >y.tab.c
  25.240 +    fi
  25.241 +    ;;
  25.242 +
  25.243 +  lex|flex)
  25.244 +    echo 1>&2 "\
  25.245 +WARNING: \`$1' is $msg.  You should only need it if
  25.246 +         you modified a \`.l' file.  You may need the \`Flex' package
  25.247 +         in order for those modifications to take effect.  You can get
  25.248 +         \`Flex' from any GNU archive site."
  25.249 +    rm -f lex.yy.c
  25.250 +    if [ $# -ne 1 ]; then
  25.251 +        eval LASTARG="\${$#}"
  25.252 +	case "$LASTARG" in
  25.253 +	*.l)
  25.254 +	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  25.255 +	    if [ -f "$SRCFILE" ]; then
  25.256 +	         cp "$SRCFILE" lex.yy.c
  25.257 +	    fi
  25.258 +	  ;;
  25.259 +	esac
  25.260 +    fi
  25.261 +    if [ ! -f lex.yy.c ]; then
  25.262 +	echo 'main() { return 0; }' >lex.yy.c
  25.263 +    fi
  25.264 +    ;;
  25.265 +
  25.266 +  help2man)
  25.267 +    echo 1>&2 "\
  25.268 +WARNING: \`$1' is $msg.  You should only need it if
  25.269 +	 you modified a dependency of a manual page.  You may need the
  25.270 +	 \`Help2man' package in order for those modifications to take
  25.271 +	 effect.  You can get \`Help2man' from any GNU archive site."
  25.272 +
  25.273 +    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  25.274 +    if test -z "$file"; then
  25.275 +	file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  25.276 +    fi
  25.277 +    if [ -f "$file" ]; then
  25.278 +	touch $file
  25.279 +    else
  25.280 +	test -z "$file" || exec >$file
  25.281 +	echo ".ab help2man is required to generate this page"
  25.282 +	exit 1
  25.283 +    fi
  25.284 +    ;;
  25.285 +
  25.286 +  makeinfo)
  25.287 +    echo 1>&2 "\
  25.288 +WARNING: \`$1' is $msg.  You should only need it if
  25.289 +         you modified a \`.texi' or \`.texinfo' file, or any other file
  25.290 +         indirectly affecting the aspect of the manual.  The spurious
  25.291 +         call might also be the consequence of using a buggy \`make' (AIX,
  25.292 +         DU, IRIX).  You might want to install the \`Texinfo' package or
  25.293 +         the \`GNU make' package.  Grab either from any GNU archive site."
  25.294 +    # The file to touch is that specified with -o ...
  25.295 +    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  25.296 +    if test -z "$file"; then
  25.297 +      # ... or it is the one specified with @setfilename ...
  25.298 +      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  25.299 +      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
  25.300 +      # ... or it is derived from the source name (dir/f.texi becomes f.info)
  25.301 +      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  25.302 +    fi
  25.303 +    touch $file
  25.304 +    ;;
  25.305 +
  25.306 +  tar)
  25.307 +    shift
  25.308 +
  25.309 +    # We have already tried tar in the generic part.
  25.310 +    # Look for gnutar/gtar before invocation to avoid ugly error
  25.311 +    # messages.
  25.312 +    if (gnutar --version > /dev/null 2>&1); then
  25.313 +       gnutar "$@" && exit 0
  25.314 +    fi
  25.315 +    if (gtar --version > /dev/null 2>&1); then
  25.316 +       gtar "$@" && exit 0
  25.317 +    fi
  25.318 +    firstarg="$1"
  25.319 +    if shift; then
  25.320 +	case "$firstarg" in
  25.321 +	*o*)
  25.322 +	    firstarg=`echo "$firstarg" | sed s/o//`
  25.323 +	    tar "$firstarg" "$@" && exit 0
  25.324 +	    ;;
  25.325 +	esac
  25.326 +	case "$firstarg" in
  25.327 +	*h*)
  25.328 +	    firstarg=`echo "$firstarg" | sed s/h//`
  25.329 +	    tar "$firstarg" "$@" && exit 0
  25.330 +	    ;;
  25.331 +	esac
  25.332 +    fi
  25.333 +
  25.334 +    echo 1>&2 "\
  25.335 +WARNING: I can't seem to be able to run \`tar' with the given arguments.
  25.336 +         You may want to install GNU tar or Free paxutils, or check the
  25.337 +         command line arguments."
  25.338 +    exit 1
  25.339 +    ;;
  25.340 +
  25.341 +  *)
  25.342 +    echo 1>&2 "\
  25.343 +WARNING: \`$1' is needed, and is $msg.
  25.344 +         You might have modified some files without having the
  25.345 +         proper tools for further handling them.  Check the \`README' file,
  25.346 +         it often tells you about the needed prerequisites for installing
  25.347 +         this package.  You may also peek at any GNU archive site, in case
  25.348 +         some other package would contain this missing \`$1' program."
  25.349 +    exit 1
  25.350 +    ;;
  25.351 +esac
  25.352 +
  25.353 +exit 0
  25.354 +
  25.355 +# Local variables:
  25.356 +# eval: (add-hook 'write-file-hooks 'time-stamp)
  25.357 +# time-stamp-start: "scriptversion="
  25.358 +# time-stamp-format: "%:y-%02m-%02d.%02H"
  25.359 +# time-stamp-end: "$"
  25.360 +# End:
    26.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.2 +++ b/tools/xm-test/mkreport	Mon Nov 07 12:36:16 2005 +0100
    26.3 @@ -0,0 +1,71 @@
    26.4 +#!/usr/bin/perl
    26.5 +
    26.6 +open(LOG, $ARGV[0]);
    26.7 +@lines = <LOG>;
    26.8 +
    26.9 +foreach $line (@lines) {
   26.10 +    if ($line =~ /^[A-Z]+/) {
   26.11 +	chomp($line);
   26.12 +	($type, @rest) = split(/:/, $line);
   26.13 +
   26.14 +	$message = "";
   26.15 +	foreach $chunk (@rest) {
   26.16 +	    $message .= $chunk;
   26.17 +	}
   26.18 +	
   26.19 +	if ($type eq "REASON") {
   26.20 +
   26.21 +	    $last_reason = $message ;
   26.22 +
   26.23 +	} elsif ($type =~ /X?FAIL/) {
   26.24 +
   26.25 +	    $rest[0] =~ /([^\. ]+)\.test/;
   26.26 +	    $name = $1;
   26.27 +
   26.28 +	    $passfail = $type;
   26.29 +	    $testname = $name;
   26.30 +	    $extra    = "\n\t$last_reason\n";
   26.31 +
   26.32 +	    $last_reason = "Unknown reason";
   26.33 +	    
   26.34 +	} elsif ($type =~ /X?PASS/) {
   26.35 +
   26.36 +	    $rest[0] =~ /([^\. ]+)\.test/;
   26.37 +	    $name = $1;
   26.38 +
   26.39 +	    $passfail = $type;
   26.40 +	    $testname = $name;
   26.41 +	    $extra    = "";
   26.42 +
   26.43 +	    $last_reason = "Unknown reason";
   26.44 +
   26.45 +	} else {
   26.46 +
   26.47 +	    $passfail = $type;
   26.48 +	    $testname = "UNKN";
   26.49 +	    $extra    = "Unknown status type $type!";
   26.50 +
   26.51 +	    $last_reason = "Unknown reason";
   26.52 +
   26.53 +	}
   26.54 +
   26.55 +	push(@results, ([$testname, $passfail, $extra]));
   26.56 +
   26.57 +    }
   26.58 +
   26.59 +}
   26.60 +
   26.61 +foreach $test (@results) {
   26.62 +
   26.63 +    
   26.64 +    if ($tests{$test->[0]} eq undef) {
   26.65 +	if ($test->[1] =~ /^X?FAIL/) {
   26.66 +	    $fmt = "%5s: %s %s\n";
   26.67 +	    printf($fmt, $test->[1], $test->[0], $test->[2]);
   26.68 +	}
   26.69 +	$tests{$test->[0]} = 1;
   26.70 +    }
   26.71 +
   26.72 +
   26.73 +}
   26.74 +
    27.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.2 +++ b/tools/xm-test/ramdisk/Makefile.am	Mon Nov 07 12:36:16 2005 +0100
    27.3 @@ -0,0 +1,38 @@
    27.4 +
    27.5 +EXTRA_DIST = skel configs
    27.6 +
    27.7 +BR_TAR = buildroot-20050823.tar.bz2
    27.8 +BR_URL = http://buildroot.uclibc.org/downloads/snapshots/$(BR_TAR)
    27.9 +#BR_URL = http://buildroot.uclibc.org/downloads/snapshots/buildroot-snapshot.tar.bz2
   27.10 +BR_SRC = buildroot
   27.11 +BR_IMG = $(BR_SRC)/rootfs.i386.ext2
   27.12 +
   27.13 +BR_ROOT = build_i386/root
   27.14 +
   27.15 +all: initrd.img
   27.16 +
   27.17 +$(BR_TAR):
   27.18 +	wget $(BR_URL)
   27.19 +
   27.20 +$(BR_SRC): $(BR_TAR)
   27.21 +	tar xjf $(BR_TAR)
   27.22 +
   27.23 +$(BR_IMG): $(BR_SRC)
   27.24 +	cp configs/buildroot $(BR_SRC)/.config
   27.25 +	cp configs/busybox $(BR_SRC)/package/busybox/busybox.config
   27.26 +	cp configs/uClibc $(BR_SRC)/toolchain/uClibc/uClibc.config
   27.27 +	cd $(BR_SRC) && make oldconfig && make
   27.28 +
   27.29 +initrd.img: $(BR_IMG)
   27.30 +	(cd skel; tar cf - .) | (cd $(BR_SRC)/$(BR_ROOT); tar xvf -)
   27.31 +	cd $(BR_SRC) && make
   27.32 +	cp $(BR_IMG) initrd.img
   27.33 +
   27.34 +clean-local: am_config_clean-local
   27.35 +
   27.36 +am_config_clean-local:
   27.37 +	rm -Rf buildroot
   27.38 +	rm -f *~
   27.39 +	rm -f initrd.img
   27.40 +	rm -f $(BR_TAR)
   27.41 +	rm -Rf patches make.d
    28.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.2 +++ b/tools/xm-test/ramdisk/Makefile.in	Mon Nov 07 12:36:16 2005 +0100
    28.3 @@ -0,0 +1,309 @@
    28.4 +# Makefile.in generated by automake 1.9.5 from Makefile.am.
    28.5 +# @configure_input@
    28.6 +
    28.7 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    28.8 +# 2003, 2004, 2005  Free Software Foundation, Inc.
    28.9 +# This Makefile.in is free software; the Free Software Foundation
   28.10 +# gives unlimited permission to copy and/or distribute it,
   28.11 +# with or without modifications, as long as this notice is preserved.
   28.12 +
   28.13 +# This program is distributed in the hope that it will be useful,
   28.14 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   28.15 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   28.16 +# PARTICULAR PURPOSE.
   28.17 +
   28.18 +@SET_MAKE@
   28.19 +srcdir = @srcdir@
   28.20 +top_srcdir = @top_srcdir@
   28.21 +VPATH = @srcdir@
   28.22 +pkgdatadir = $(datadir)/@PACKAGE@
   28.23 +pkglibdir = $(libdir)/@PACKAGE@
   28.24 +pkgincludedir = $(includedir)/@PACKAGE@
   28.25 +top_builddir = ..
   28.26 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
   28.27 +INSTALL = @INSTALL@
   28.28 +install_sh_DATA = $(install_sh) -c -m 644
   28.29 +install_sh_PROGRAM = $(install_sh) -c
   28.30 +install_sh_SCRIPT = $(install_sh) -c
   28.31 +INSTALL_HEADER = $(INSTALL_DATA)
   28.32 +transform = $(program_transform_name)
   28.33 +NORMAL_INSTALL = :
   28.34 +PRE_INSTALL = :
   28.35 +POST_INSTALL = :
   28.36 +NORMAL_UNINSTALL = :
   28.37 +PRE_UNINSTALL = :
   28.38 +POST_UNINSTALL = :
   28.39 +subdir = ramdisk
   28.40 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
   28.41 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
   28.42 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
   28.43 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
   28.44 +	$(ACLOCAL_M4)
   28.45 +mkinstalldirs = $(install_sh) -d
   28.46 +CONFIG_CLEAN_FILES =
   28.47 +SOURCES =
   28.48 +DIST_SOURCES =
   28.49 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
   28.50 +ACLOCAL = @ACLOCAL@
   28.51 +AMDEP_FALSE = @AMDEP_FALSE@
   28.52 +AMDEP_TRUE = @AMDEP_TRUE@
   28.53 +AMTAR = @AMTAR@
   28.54 +AUTOCONF = @AUTOCONF@
   28.55 +AUTOHEADER = @AUTOHEADER@
   28.56 +AUTOMAKE = @AUTOMAKE@
   28.57 +AWK = @AWK@
   28.58 +CC = @CC@
   28.59 +CCDEPMODE = @CCDEPMODE@
   28.60 +CFLAGS = @CFLAGS@
   28.61 +CPPFLAGS = @CPPFLAGS@
   28.62 +CYGPATH_W = @CYGPATH_W@
   28.63 +DEFS = @DEFS@
   28.64 +DEPDIR = @DEPDIR@
   28.65 +ECHO_C = @ECHO_C@
   28.66 +ECHO_N = @ECHO_N@
   28.67 +ECHO_T = @ECHO_T@
   28.68 +ENABLE_VMX = @ENABLE_VMX@
   28.69 +EXEEXT = @EXEEXT@
   28.70 +INSTALL_DATA = @INSTALL_DATA@
   28.71 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
   28.72 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
   28.73 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
   28.74 +LDFLAGS = @LDFLAGS@
   28.75 +LEX = @LEX@
   28.76 +LEXLIB = @LEXLIB@
   28.77 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
   28.78 +LIBOBJS = @LIBOBJS@
   28.79 +LIBS = @LIBS@
   28.80 +LTLIBOBJS = @LTLIBOBJS@
   28.81 +MAKEINFO = @MAKEINFO@
   28.82 +OBJEXT = @OBJEXT@
   28.83 +PACKAGE = @PACKAGE@
   28.84 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
   28.85 +PACKAGE_NAME = @PACKAGE_NAME@
   28.86 +PACKAGE_STRING = @PACKAGE_STRING@
   28.87 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
   28.88 +PACKAGE_VERSION = @PACKAGE_VERSION@
   28.89 +PATH_SEPARATOR = @PATH_SEPARATOR@
   28.90 +SET_MAKE = @SET_MAKE@
   28.91 +SHELL = @SHELL@
   28.92 +STRIP = @STRIP@
   28.93 +TENV = @TENV@
   28.94 +VERSION = @VERSION@
   28.95 +YACC = @YACC@
   28.96 +ac_ct_CC = @ac_ct_CC@
   28.97 +ac_ct_STRIP = @ac_ct_STRIP@
   28.98 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
   28.99 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  28.100 +am__include = @am__include@
  28.101 +am__leading_dot = @am__leading_dot@
  28.102 +am__quote = @am__quote@
  28.103 +am__tar = @am__tar@
  28.104 +am__untar = @am__untar@
  28.105 +bindir = @bindir@
  28.106 +build_alias = @build_alias@
  28.107 +datadir = @datadir@
  28.108 +exec_prefix = @exec_prefix@
  28.109 +host_alias = @host_alias@
  28.110 +includedir = @includedir@
  28.111 +infodir = @infodir@
  28.112 +install_sh = @install_sh@
  28.113 +libdir = @libdir@
  28.114 +libexecdir = @libexecdir@
  28.115 +localstatedir = @localstatedir@
  28.116 +mandir = @mandir@
  28.117 +mkdir_p = @mkdir_p@
  28.118 +oldincludedir = @oldincludedir@
  28.119 +prefix = @prefix@
  28.120 +program_transform_name = @program_transform_name@
  28.121 +sbindir = @sbindir@
  28.122 +sharedstatedir = @sharedstatedir@
  28.123 +sysconfdir = @sysconfdir@
  28.124 +target_alias = @target_alias@
  28.125 +EXTRA_DIST = skel configs
  28.126 +BR_TAR = buildroot-20050823.tar.bz2
  28.127 +BR_URL = http://buildroot.uclibc.org/downloads/snapshots/$(BR_TAR)
  28.128 +#BR_URL = http://buildroot.uclibc.org/downloads/snapshots/buildroot-snapshot.tar.bz2
  28.129 +BR_SRC = buildroot
  28.130 +BR_IMG = $(BR_SRC)/rootfs.i386.ext2
  28.131 +BR_ROOT = build_i386/root
  28.132 +all: all-am
  28.133 +
  28.134 +.SUFFIXES:
  28.135 +$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
  28.136 +	@for dep in $?; do \
  28.137 +	  case '$(am__configure_deps)' in \
  28.138 +	    *$$dep*) \
  28.139 +	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  28.140 +		&& exit 0; \
  28.141 +	      exit 1;; \
  28.142 +	  esac; \
  28.143 +	done; \
  28.144 +	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  ramdisk/Makefile'; \
  28.145 +	cd $(top_srcdir) && \
  28.146 +	  $(AUTOMAKE) --foreign  ramdisk/Makefile
  28.147 +.PRECIOUS: Makefile
  28.148 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  28.149 +	@case '$?' in \
  28.150 +	  *config.status*) \
  28.151 +	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  28.152 +	  *) \
  28.153 +	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  28.154 +	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  28.155 +	esac;
  28.156 +
  28.157 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  28.158 +	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  28.159 +
  28.160 +$(top_srcdir)/configure:  $(am__configure_deps)
  28.161 +	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  28.162 +$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
  28.163 +	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  28.164 +uninstall-info-am:
  28.165 +tags: TAGS
  28.166 +TAGS:
  28.167 +
  28.168 +ctags: CTAGS
  28.169 +CTAGS:
  28.170 +
  28.171 +
  28.172 +distdir: $(DISTFILES)
  28.173 +	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  28.174 +	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  28.175 +	list='$(DISTFILES)'; for file in $$list; do \
  28.176 +	  case $$file in \
  28.177 +	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  28.178 +	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  28.179 +	  esac; \
  28.180 +	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  28.181 +	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  28.182 +	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  28.183 +	    dir="/$$dir"; \
  28.184 +	    $(mkdir_p) "$(distdir)$$dir"; \
  28.185 +	  else \
  28.186 +	    dir=''; \
  28.187 +	  fi; \
  28.188 +	  if test -d $$d/$$file; then \
  28.189 +	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  28.190 +	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  28.191 +	    fi; \
  28.192 +	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  28.193 +	  else \
  28.194 +	    test -f $(distdir)/$$file \
  28.195 +	    || cp -p $$d/$$file $(distdir)/$$file \
  28.196 +	    || exit 1; \
  28.197 +	  fi; \
  28.198 +	done
  28.199 +check-am: all-am
  28.200 +check: check-am
  28.201 +all-am: Makefile
  28.202 +installdirs:
  28.203 +install: install-am
  28.204 +install-exec: install-exec-am
  28.205 +install-data: install-data-am
  28.206 +uninstall: uninstall-am
  28.207 +
  28.208 +install-am: all-am
  28.209 +	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  28.210 +
  28.211 +installcheck: installcheck-am
  28.212 +install-strip:
  28.213 +	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  28.214 +	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  28.215 +	  `test -z '$(STRIP)' || \
  28.216 +	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  28.217 +mostlyclean-generic:
  28.218 +
  28.219 +clean-generic:
  28.220 +
  28.221 +distclean-generic:
  28.222 +	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  28.223 +
  28.224 +maintainer-clean-generic:
  28.225 +	@echo "This command is intended for maintainers to use"
  28.226 +	@echo "it deletes files that may require special tools to rebuild."
  28.227 +clean: clean-am
  28.228 +
  28.229 +clean-am: clean-generic clean-local mostlyclean-am
  28.230 +
  28.231 +distclean: distclean-am
  28.232 +	-rm -f Makefile
  28.233 +distclean-am: clean-am distclean-generic
  28.234 +
  28.235 +dvi: dvi-am
  28.236 +
  28.237 +dvi-am:
  28.238 +
  28.239 +html: html-am
  28.240 +
  28.241 +info: info-am
  28.242 +
  28.243 +info-am:
  28.244 +
  28.245 +install-data-am:
  28.246 +
  28.247 +install-exec-am:
  28.248 +
  28.249 +install-info: install-info-am
  28.250 +
  28.251 +install-man:
  28.252 +
  28.253 +installcheck-am:
  28.254 +
  28.255 +maintainer-clean: maintainer-clean-am
  28.256 +	-rm -f Makefile
  28.257 +maintainer-clean-am: distclean-am maintainer-clean-generic
  28.258 +
  28.259 +mostlyclean: mostlyclean-am
  28.260 +
  28.261 +mostlyclean-am: mostlyclean-generic
  28.262 +
  28.263 +pdf: pdf-am
  28.264 +
  28.265 +pdf-am:
  28.266 +
  28.267 +ps: ps-am
  28.268 +
  28.269 +ps-am:
  28.270 +
  28.271 +uninstall-am: uninstall-info-am
  28.272 +
  28.273 +.PHONY: all all-am check check-am clean clean-generic clean-local \
  28.274 +	distclean distclean-generic distdir dvi dvi-am html html-am \
  28.275 +	info info-am install install-am install-data install-data-am \
  28.276 +	install-exec install-exec-am install-info install-info-am \
  28.277 +	install-man install-strip installcheck installcheck-am \
  28.278 +	installdirs maintainer-clean maintainer-clean-generic \
  28.279 +	mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
  28.280 +	uninstall-am uninstall-info-am
  28.281 +
  28.282 +
  28.283 +all: initrd.img
  28.284 +
  28.285 +$(BR_TAR):
  28.286 +	wget $(BR_URL)
  28.287 +
  28.288 +$(BR_SRC): $(BR_TAR)
  28.289 +	tar xjf $(BR_TAR)
  28.290 +
  28.291 +$(BR_IMG): $(BR_SRC)
  28.292 +	cp configs/buildroot $(BR_SRC)/.config
  28.293 +	cp configs/busybox $(BR_SRC)/package/busybox/busybox.config
  28.294 +	cp configs/uClibc $(BR_SRC)/toolchain/uClibc/uClibc.config
  28.295 +	cd $(BR_SRC) && make oldconfig && make
  28.296 +
  28.297 +initrd.img: $(BR_IMG)
  28.298 +	(cd skel; tar cf - .) | (cd $(BR_SRC)/$(BR_ROOT); tar xvf -)
  28.299 +	cd $(BR_SRC) && make
  28.300 +	cp $(BR_IMG) initrd.img
  28.301 +
  28.302 +clean-local: am_config_clean-local
  28.303 +
  28.304 +am_config_clean-local:
  28.305 +	rm -Rf buildroot
  28.306 +	rm -f *~
  28.307 +	rm -f initrd.img
  28.308 +	rm -f $(BR_TAR)
  28.309 +	rm -Rf patches make.d
  28.310 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  28.311 +# Otherwise a system limit (for SysV at least) may be exceeded.
  28.312 +.NOEXPORT:
    29.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.2 +++ b/tools/xm-test/ramdisk/configs/buildroot	Mon Nov 07 12:36:16 2005 +0100
    29.3 @@ -0,0 +1,258 @@
    29.4 +#
    29.5 +# Automatically generated make config: don't edit
    29.6 +#
    29.7 +BR2_HAVE_DOT_CONFIG=y
    29.8 +# BR2_arm is not set
    29.9 +# BR2_armeb is not set
   29.10 +# BR2_cris is not set
   29.11 +BR2_i386=y
   29.12 +# BR2_m68k is not set
   29.13 +# BR2_mips is not set
   29.14 +# BR2_mipsel is not set
   29.15 +# BR2_powerpc is not set
   29.16 +# BR2_sh is not set
   29.17 +# BR2_sparc is not set
   29.18 +BR2_ARCH="i386"
   29.19 +
   29.20 +#
   29.21 +# Build options
   29.22 +#
   29.23 +BR2_WGET="wget --passive-ftp"
   29.24 +BR2_SVN="svn co"
   29.25 +# BR2_TAR_VERBOSITY is not set
   29.26 +BR2_SOURCEFORGE_MIRROR="easynews"
   29.27 +BR2_STAGING_DIR="$(BUILD_DIR)/staging_dir"
   29.28 +BR2_JLEVEL=1
   29.29 +
   29.30 +#
   29.31 +# Toolchain Options
   29.32 +#
   29.33 +
   29.34 +#
   29.35 +# Kernel Header Options
   29.36 +#
   29.37 +# BR2_KERNEL_HEADERS_2_4_25 is not set
   29.38 +# BR2_KERNEL_HEADERS_2_4_27 is not set
   29.39 +# BR2_KERNEL_HEADERS_2_4_29 is not set
   29.40 +# BR2_KERNEL_HEADERS_2_4_31 is not set
   29.41 +# BR2_KERNEL_HEADERS_2_6_11 is not set
   29.42 +BR2_KERNEL_HEADERS_2_6_12=y
   29.43 +BR2_DEFAULT_KERNEL_HEADERS="2.6.12"
   29.44 +
   29.45 +#
   29.46 +# uClibc Options
   29.47 +#
   29.48 +# BR2_UCLIBC_VERSION_SNAPSHOT is not set
   29.49 +# BR2_ENABLE_LOCALE is not set
   29.50 +# BR2_PTHREADS_NATIVE is not set
   29.51 +
   29.52 +#
   29.53 +# Binutils Options
   29.54 +#
   29.55 +# BR2_BINUTILS_VERSION_2_14_90_0_8 is not set
   29.56 +# BR2_BINUTILS_VERSION_2_15 is not set
   29.57 +# BR2_BINUTILS_VERSION_2_15_94_0_2_2 is not set
   29.58 +# BR2_BINUTILS_VERSION_2_15_97 is not set
   29.59 +# BR2_BINUTILS_VERSION_2_16 is not set
   29.60 +BR2_BINUTILS_VERSION_2_16_1=y
   29.61 +# BR2_BINUTILS_VERSION_2_16_90_0_3 is not set
   29.62 +# BR2_BINUTILS_VERSION_2_16_91_0_1 is not set
   29.63 +# BR2_BINUTILS_VERSION_2_16_91_0_2 is not set
   29.64 +# BR2_BINUTILS_VERSION_2_16_91_0_3 is not set
   29.65 +BR2_BINUTILS_VERSION="2.16.1"
   29.66 +
   29.67 +#
   29.68 +# Gcc Options
   29.69 +#
   29.70 +# BR2_GCC_VERSION_3_3_5 is not set
   29.71 +# BR2_GCC_VERSION_3_3_6 is not set
   29.72 +BR2_GCC_VERSION_3_4_2=y
   29.73 +# BR2_GCC_VERSION_3_4_3 is not set
   29.74 +# BR2_GCC_VERSION_3_4_4 is not set
   29.75 +# BR2_GCC_VERSION_4_0_0 is not set
   29.76 +# BR2_GCC_VERSION_4_0_1 is not set
   29.77 +# BR2_GCC_VERSION_4_1_0 is not set
   29.78 +BR2_GCC_VERSION="3.4.2"
   29.79 +# BR2_GCC_USE_SJLJ_EXCEPTIONS is not set
   29.80 +BR2_EXTRA_GCC_CONFIG_OPTIONS=""
   29.81 +# BR2_INSTALL_LIBSTDCPP is not set
   29.82 +# BR2_INSTALL_OBJC is not set
   29.83 +
   29.84 +#
   29.85