ia64/xen-unstable

changeset 7652:a4bd444c5424

merge
author kaf24@firebug.cl.cam.ac.uk
date Mon Nov 07 12:53:38 2005 +0100 (2005-11-07)
parents 19e5385bc5b3 b47b79585772
children d1b5ad8e8b03
files
line diff
     1.1 --- a/tools/examples/network-bridge	Mon Nov 07 12:52:49 2005 +0100
     1.2 +++ b/tools/examples/network-bridge	Mon Nov 07 12:53:38 2005 +0100
     1.3 @@ -195,11 +195,17 @@ op_start () {
     1.4  	return
     1.5      fi
     1.6  
     1.7 -    create_bridge ${bridge}
     1.8 +    if ! ip link show 2>/dev/null | grep -q "^[0-9]*: ${vdev}"; then
     1.9 +        echo "
    1.10 +Link $vdev is missing.
    1.11 +This may be because you have reached the limit of the number of interfaces
    1.12 +that the loopback driver supports.  If the loopback driver is a module, you
    1.13 +may raise this limit by passing it as a parameter (nloopbacks=<N>).
    1.14 +" >&2
    1.15 +        exit 1
    1.16 +    fi
    1.17  
    1.18 -    if ! ip link show 2>/dev/null | grep -q "^[0-9]*: ${vdev}"; then
    1.19 -	return
    1.20 -    fi
    1.21 +    create_bridge ${bridge}
    1.22  
    1.23      if ip link show ${vdev} 2>/dev/null >/dev/null; then
    1.24  	mac=`ip link show ${netdev} | grep 'link\/ether' | sed -e 's/.*ether \(..:..:..:..:..:..\).*/\1/'`
    1.25 @@ -232,7 +238,7 @@ op_start () {
    1.26  		if [ -z "${kmask}" ]; then 
    1.27  		    PREFIX=32; 
    1.28  		else 
    1.29 -		    legacy_to_prefix ${kmask};
    1.30 +		    legacy_mask_to_prefix ${kmask};
    1.31  		fi
    1.32  		ip addr add ${kip}/${PREFIX} dev ${netdev}
    1.33  		ip link set dev ${netdev} up
     2.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Nov 07 12:52:49 2005 +0100
     2.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Nov 07 12:53:38 2005 +0100
     2.3 @@ -336,7 +336,7 @@ def dom_get(dom):
     2.4              return domlist[0]
     2.5      except Exception, err:
     2.6          # ignore missing domain
     2.7 -        log.debug("domain_getinfo(%d) failed, ignoring: %s", dom, str(err))
     2.8 +        log.trace("domain_getinfo(%d) failed, ignoring: %s", dom, str(err))
     2.9      return None
    2.10  
    2.11  
    2.12 @@ -569,6 +569,8 @@ class XendDomainInfo:
    2.13          self.storeDomDetails()
    2.14          self.refreshShutdown()
    2.15  
    2.16 +        log.debug("XendDomainInfo.completeRestore done")
    2.17 +
    2.18  
    2.19      def storeVmDetails(self):
    2.20          to_store = {
    2.21 @@ -1066,8 +1068,11 @@ class XendDomainInfo:
    2.22          assert self.domid is not None
    2.23          assert self.store_mfn is not None
    2.24          assert self.store_port is not None
    2.25 -        
    2.26 -        IntroduceDomain(self.domid, self.store_mfn, self.store_port)
    2.27 +
    2.28 +        try:
    2.29 +            IntroduceDomain(self.domid, self.store_mfn, self.store_port)
    2.30 +        except RuntimeError, exn:
    2.31 +            raise XendError(str(exn))
    2.32  
    2.33  
    2.34      def initDomain(self):
     3.1 --- a/tools/python/xen/xend/server/DevController.py	Mon Nov 07 12:52:49 2005 +0100
     3.2 +++ b/tools/python/xen/xend/server/DevController.py	Mon Nov 07 12:53:38 2005 +0100
     3.3 @@ -57,6 +57,8 @@ class DevController:
     3.4          @return The ID for the newly created device.
     3.5          """
     3.6          (devid, back, front) = self.getDeviceDetails(config)
     3.7 +        if devid is None:
     3.8 +            return 0
     3.9  
    3.10          self.writeDetails(config, devid, back, front)
    3.11  
     4.1 --- a/tools/python/xen/xend/server/blkif.py	Mon Nov 07 12:52:49 2005 +0100
     4.2 +++ b/tools/python/xen/xend/server/blkif.py	Mon Nov 07 12:53:38 2005 +0100
     4.3 @@ -43,7 +43,7 @@ class BlkifController(DevController):
     4.4          
     4.5          dev = sxp.child_value(config, 'dev')
     4.6          if re.match('^ioemu:', dev):
     4.7 -            return (0,{},{})
     4.8 +            return (None,{},{})
     4.9  
    4.10          devid = blkif.blkdev_name_to_number(dev)
    4.11  
     5.1 --- a/tools/python/xen/xend/server/netif.py	Mon Nov 07 12:52:49 2005 +0100
     5.2 +++ b/tools/python/xen/xend/server/netif.py	Mon Nov 07 12:53:38 2005 +0100
     5.3 @@ -21,6 +21,7 @@
     5.4  """
     5.5  
     5.6  import os
     5.7 +import random
     5.8  
     5.9  from xen.xend import sxp
    5.10  from xen.xend import XendRoot
    5.11 @@ -31,6 +32,25 @@ from xen.xend.server.DevController impor
    5.12  xroot = XendRoot.instance()
    5.13  
    5.14  
    5.15 +def randomMAC():
    5.16 +    """Generate a random MAC address.
    5.17 +
    5.18 +    Uses OUI (Organizationally Unique Identifier) AA:00:00, an
    5.19 +    unassigned one that used to belong to DEC. The OUI list is
    5.20 +    available at 'standards.ieee.org'.
    5.21 +
    5.22 +    The remaining 3 fields are random, with the first bit of the first
    5.23 +    random field set 0.
    5.24 +
    5.25 +    @return: MAC address string
    5.26 +    """
    5.27 +    mac = [ 0xaa, 0x00, 0x00,
    5.28 +            random.randint(0x00, 0x7f),
    5.29 +            random.randint(0x00, 0xff),
    5.30 +            random.randint(0x00, 0xff) ]
    5.31 +    return ':'.join(map(lambda x: "%02x" % x, mac))
    5.32 +
    5.33 +
    5.34  class NetifController(DevController):
    5.35      """Network interface controller. Handles all network devices for a domain.
    5.36      """
    5.37 @@ -57,6 +77,9 @@ class NetifController(DevController):
    5.38  
    5.39          devid = self.allocateDeviceID()
    5.40  
    5.41 +        if not mac:
    5.42 +            mac = randomMAC()
    5.43 +
    5.44          back = { 'script' : script,
    5.45                   'mac'    : mac,
    5.46                   'handle' : "%i" % devid }
     6.1 --- a/tools/python/xen/xend/xenstore/xstransact.py	Mon Nov 07 12:52:49 2005 +0100
     6.2 +++ b/tools/python/xen/xend/xenstore/xstransact.py	Mon Nov 07 12:53:38 2005 +0100
     6.3 @@ -11,6 +11,8 @@ from xen.xend.xenstore.xsutil import xsh
     6.4  class xstransact:
     6.5  
     6.6      def __init__(self, path):
     6.7 +        assert path is not None
     6.8 +        
     6.9          self.in_transaction = False # Set this temporarily -- if this
    6.10                                      # constructor fails, then we need to
    6.11                                      # protect __del__.
     7.1 --- a/tools/python/xen/xm/create.py	Mon Nov 07 12:52:49 2005 +0100
     7.2 +++ b/tools/python/xen/xm/create.py	Mon Nov 07 12:53:38 2005 +0100
     7.3 @@ -19,7 +19,6 @@
     7.4  
     7.5  """Domain creation.
     7.6  """
     7.7 -import random
     7.8  import os
     7.9  import os.path
    7.10  import string
    7.11 @@ -497,24 +496,6 @@ def configure_tpmif(config_devs, vals):
    7.12              config_devs.append(['device', config_tpmif])
    7.13  
    7.14  
    7.15 -def randomMAC():
    7.16 -    """Generate a random MAC address.
    7.17 -
    7.18 -    Uses OUI (Organizationally Unique Identifier) AA:00:00, an
    7.19 -    unassigned one that used to belong to DEC. The OUI list is
    7.20 -    available at 'standards.ieee.org'.
    7.21 -
    7.22 -    The remaining 3 fields are random, with the first bit of the first
    7.23 -    random field set 0.
    7.24 -
    7.25 -    @return: MAC address string
    7.26 -    """
    7.27 -    mac = [ 0xaa, 0x00, 0x00,
    7.28 -            random.randint(0x00, 0x7f),
    7.29 -            random.randint(0x00, 0xff),
    7.30 -            random.randint(0x00, 0xff) ]
    7.31 -    return ':'.join(map(lambda x: "%02x" % x, mac))
    7.32 -
    7.33  def configure_vifs(config_devs, vals):
    7.34      """Create the config for virtual network interfaces.
    7.35      """
    7.36 @@ -525,8 +506,6 @@ def configure_vifs(config_devs, vals):
    7.37          if idx < len(vifs):
    7.38              d = vifs[idx]
    7.39              mac = d.get('mac')
    7.40 -            if not mac:
    7.41 -                mac = randomMAC()
    7.42              be_mac = d.get('be_mac')
    7.43              bridge = d.get('bridge')
    7.44              script = d.get('script')
    7.45 @@ -534,8 +513,7 @@ def configure_vifs(config_devs, vals):
    7.46              ip = d.get('ip')
    7.47              vifname = d.get('vifname')
    7.48          else:
    7.49 -            
    7.50 -            mac = randomMAC()
    7.51 +            mac = None
    7.52              be_mac = None
    7.53              bridge = None
    7.54              script = None
    7.55 @@ -543,7 +521,8 @@ def configure_vifs(config_devs, vals):
    7.56              ip = None
    7.57              vifname = None
    7.58          config_vif = ['vif']
    7.59 -        config_vif.append(['mac', mac])
    7.60 +        if mac:
    7.61 +            config_vif.append(['mac', mac])
    7.62          if vifname:
    7.63              config_vif.append(['vifname', vifname])
    7.64          if be_mac:
    7.65 @@ -925,8 +904,6 @@ def parseCommandLine(argv):
    7.66  
    7.67  
    7.68  def main(argv):
    7.69 -    random.seed()
    7.70 -
    7.71      (opts, config) = parseCommandLine(argv)
    7.72  
    7.73      if not opts:
     8.1 --- a/tools/xenstore/xenstored_core.c	Mon Nov 07 12:52:49 2005 +0100
     8.2 +++ b/tools/xenstore/xenstored_core.c	Mon Nov 07 12:53:38 2005 +0100
     8.3 @@ -56,6 +56,7 @@ extern int eventchn_fd; /* in xenstored_
     8.4  static bool verbose;
     8.5  LIST_HEAD(connections);
     8.6  static int tracefd = -1;
     8.7 +static char *tracefile = NULL;
     8.8  static TDB_CONTEXT *tdb_ctx;
     8.9  
    8.10  #ifdef TESTING
    8.11 @@ -242,6 +243,21 @@ void trace(const char *fmt, ...)
    8.12  	talloc_free(str);
    8.13  }
    8.14  
    8.15 +void reopen_log()
    8.16 +{
    8.17 +	if (!tracefile)
    8.18 +		return;
    8.19 +
    8.20 +	if (tracefd > 0)
    8.21 +		close(tracefd);
    8.22 +	tracefd = open(tracefile, O_WRONLY|O_CREAT|O_APPEND, 0600);
    8.23 +	if (tracefd < 0) {
    8.24 +		perror("Could not open tracefile");
    8.25 +		return;
    8.26 +	}
    8.27 +	write(tracefd, "\n***\n", strlen("\n***\n"));
    8.28 +}
    8.29 +
    8.30  static bool write_messages(struct connection *conn)
    8.31  {
    8.32  	int ret;
    8.33 @@ -1498,11 +1514,7 @@ int main(int argc, char *argv[])
    8.34  			outputpid = true;
    8.35  			break;
    8.36  		case 'T':
    8.37 -			tracefd = open(optarg, O_WRONLY|O_CREAT|O_APPEND, 0600);
    8.38 -			if (tracefd < 0)
    8.39 -				barf_perror("Could not open tracefile %s",
    8.40 -					    optarg);
    8.41 -                        write(tracefd, "\n***\n", strlen("\n***\n"));
    8.42 +			tracefile = optarg;
    8.43  			break;
    8.44  		case 'V':
    8.45  			verbose = true;
    8.46 @@ -1512,6 +1524,8 @@ int main(int argc, char *argv[])
    8.47  	if (optind != argc)
    8.48  		barf("%s: No arguments desired", argv[0]);
    8.49  
    8.50 +	reopen_log();
    8.51 +
    8.52  	if (dofork) {
    8.53  		openlog("xenstored", 0, LOG_DAEMON);
    8.54  		daemonize();
    8.55 @@ -1578,6 +1592,8 @@ int main(int argc, char *argv[])
    8.56  		close(STDERR_FILENO);
    8.57  	}
    8.58  
    8.59 +	signal(SIGHUP, reopen_log);
    8.60 +
    8.61  #ifdef TESTING
    8.62  	signal(SIGUSR1, stop_failtest);
    8.63  #endif
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/tools/xm-test/COPYING	Mon Nov 07 12:53:38 2005 +0100
     9.3 @@ -0,0 +1,340 @@
     9.4 +		    GNU GENERAL PUBLIC LICENSE
     9.5 +		       Version 2, June 1991
     9.6 +
     9.7 + Copyright (C) 1989, 1991 Free Software Foundation, Inc.
     9.8 +     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     9.9 + Everyone is permitted to copy and distribute verbatim copies
    9.10 + of this license document, but changing it is not allowed.
    9.11 +
    9.12 +			    Preamble
    9.13 +
    9.14 +  The licenses for most software are designed to take away your
    9.15 +freedom to share and change it.  By contrast, the GNU General Public
    9.16 +License is intended to guarantee your freedom to share and change free
    9.17 +software--to make sure the software is free for all its users.  This
    9.18 +General Public License applies to most of the Free Software
    9.19 +Foundation's software and to any other program whose authors commit to
    9.20 +using it.  (Some other Free Software Foundation software is covered by
    9.21 +the GNU Library General Public License instead.)  You can apply it to
    9.22 +your programs, too.
    9.23 +
    9.24 +  When we speak of free software, we are referring to freedom, not
    9.25 +price.  Our General Public Licenses are designed to make sure that you
    9.26 +have the freedom to distribute copies of free software (and charge for
    9.27 +this service if you wish), that you receive source code or can get it
    9.28 +if you want it, that you can change the software or use pieces of it
    9.29 +in new free programs; and that you know you can do these things.
    9.30 +
    9.31 +  To protect your rights, we need to make restrictions that forbid
    9.32 +anyone to deny you these rights or to ask you to surrender the rights.
    9.33 +These restrictions translate to certain responsibilities for you if you
    9.34 +distribute copies of the software, or if you modify it.
    9.35 +
    9.36 +  For example, if you distribute copies of such a program, whether
    9.37 +gratis or for a fee, you must give the recipients all the rights that
    9.38 +you have.  You must make sure that they, too, receive or can get the
    9.39 +source code.  And you must show them these terms so they know their
    9.40 +rights.
    9.41 +
    9.42 +  We protect your rights with two steps: (1) copyright the software, and
    9.43 +(2) offer you this license which gives you legal permission to copy,
    9.44 +distribute and/or modify the software.
    9.45 +
    9.46 +  Also, for each author's protection and ours, we want to make certain
    9.47 +that everyone understands that there is no warranty for this free
    9.48 +software.  If the software is modified by someone else and passed on, we
    9.49 +want its recipients to know that what they have is not the original, so
    9.50 +that any problems introduced by others will not reflect on the original
    9.51 +authors' reputations.
    9.52 +
    9.53 +  Finally, any free program is threatened constantly by software
    9.54 +patents.  We wish to avoid the danger that redistributors of a free
    9.55 +program will individually obtain patent licenses, in effect making the
    9.56 +program proprietary.  To prevent this, we have made it clear that any
    9.57 +patent must be licensed for everyone's free use or not licensed at all.
    9.58 +
    9.59 +  The precise terms and conditions for copying, distribution and
    9.60 +modification follow.
    9.61 +
    9.62 +		    GNU GENERAL PUBLIC LICENSE
    9.63 +   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    9.64 +
    9.65 +  0. This License applies to any program or other work which contains
    9.66 +a notice placed by the copyright holder saying it may be distributed
    9.67 +under the terms of this General Public License.  The "Program", below,
    9.68 +refers to any such program or work, and a "work based on the Program"
    9.69 +means either the Program or any derivative work under copyright law:
    9.70 +that is to say, a work containing the Program or a portion of it,
    9.71 +either verbatim or with modifications and/or translated into another
    9.72 +language.  (Hereinafter, translation is included without limitation in
    9.73 +the term "modification".)  Each licensee is addressed as "you".
    9.74 +
    9.75 +Activities other than copying, distribution and modification are not
    9.76 +covered by this License; they are outside its scope.  The act of
    9.77 +running the Program is not restricted, and the output from the Program
    9.78 +is covered only if its contents constitute a work based on the
    9.79 +Program (independent of having been made by running the Program).
    9.80 +Whether that is true depends on what the Program does.
    9.81 +
    9.82 +  1. You may copy and distribute verbatim copies of the Program's
    9.83 +source code as you receive it, in any medium, provided that you
    9.84 +conspicuously and appropriately publish on each copy an appropriate
    9.85 +copyright notice and disclaimer of warranty; keep intact all the
    9.86 +notices that refer to this License and to the absence of any warranty;
    9.87 +and give any other recipients of the Program a copy of this License
    9.88 +along with the Program.
    9.89 +
    9.90 +You may charge a fee for the physical act of transferring a copy, and
    9.91 +you may at your option offer warranty protection in exchange for a fee.
    9.92 +
    9.93 +  2. You may modify your copy or copies of the Program or any portion
    9.94 +of it, thus forming a work based on the Program, and copy and
    9.95 +distribute such modifications or work under the terms of Section 1
    9.96 +above, provided that you also meet all of these conditions:
    9.97 +
    9.98 +    a) You must cause the modified files to carry prominent notices
    9.99 +    stating that you changed the files and the date of any change.
   9.100 +
   9.101 +    b) You must cause any work that you distribute or publish, that in
   9.102 +    whole or in part contains or is derived from the Program or any
   9.103 +    part thereof, to be licensed as a whole at no charge to all third
   9.104 +    parties under the terms of this License.
   9.105 +
   9.106 +    c) If the modified program normally reads commands interactively
   9.107 +    when run, you must cause it, when started running for such
   9.108 +    interactive use in the most ordinary way, to print or display an
   9.109 +    announcement including an appropriate copyright notice and a
   9.110 +    notice that there is no warranty (or else, saying that you provide
   9.111 +    a warranty) and that users may redistribute the program under
   9.112 +    these conditions, and telling the user how to view a copy of this
   9.113 +    License.  (Exception: if the Program itself is interactive but
   9.114 +    does not normally print such an announcement, your work based on
   9.115 +    the Program is not required to print an announcement.)
   9.116 +
   9.117 +These requirements apply to the modified work as a whole.  If
   9.118 +identifiable sections of that work are not derived from the Program,
   9.119 +and can be reasonably considered independent and separate works in
   9.120 +themselves, then this License, and its terms, do not apply to those
   9.121 +sections when you distribute them as separate works.  But when you
   9.122 +distribute the same sections as part of a whole which is a work based
   9.123 +on the Program, the distribution of the whole must be on the terms of
   9.124 +this License, whose permissions for other licensees extend to the
   9.125 +entire whole, and thus to each and every part regardless of who wrote it.
   9.126 +
   9.127 +Thus, it is not the intent of this section to claim rights or contest
   9.128 +your rights to work written entirely by you; rather, the intent is to
   9.129 +exercise the right to control the distribution of derivative or
   9.130 +collective works based on the Program.
   9.131 +
   9.132 +In addition, mere aggregation of another work not based on the Program
   9.133 +with the Program (or with a work based on the Program) on a volume of
   9.134 +a storage or distribution medium does not bring the other work under
   9.135 +the scope of this License.
   9.136 +
   9.137 +  3. You may copy and distribute the Program (or a work based on it,
   9.138 +under Section 2) in object code or executable form under the terms of
   9.139 +Sections 1 and 2 above provided that you also do one of the following:
   9.140 +
   9.141 +    a) Accompany it with the complete corresponding machine-readable
   9.142 +    source code, which must be distributed under the terms of Sections
   9.143 +    1 and 2 above on a medium customarily used for software interchange; or,
   9.144 +
   9.145 +    b) Accompany it with a written offer, valid for at least three
   9.146 +    years, to give any third party, for a charge no more than your
   9.147 +    cost of physically performing source distribution, a complete
   9.148 +    machine-readable copy of the corresponding source code, to be
   9.149 +    distributed under the terms of Sections 1 and 2 above on a medium
   9.150 +    customarily used for software interchange; or,
   9.151 +
   9.152 +    c) Accompany it with the information you received as to the offer
   9.153 +    to distribute corresponding source code.  (This alternative is
   9.154 +    allowed only for noncommercial distribution and only if you
   9.155 +    received the program in object code or executable form with such
   9.156 +    an offer, in accord with Subsection b above.)
   9.157 +
   9.158 +The source code for a work means the preferred form of the work for
   9.159 +making modifications to it.  For an executable work, complete source
   9.160 +code means all the source code for all modules it contains, plus any
   9.161 +associated interface definition files, plus the scripts used to
   9.162 +control compilation and installation of the executable.  However, as a
   9.163 +special exception, the source code distributed need not include
   9.164 +anything that is normally distributed (in either source or binary
   9.165 +form) with the major components (compiler, kernel, and so on) of the
   9.166 +operating system on which the executable runs, unless that component
   9.167 +itself accompanies the executable.
   9.168 +
   9.169 +If distribution of executable or object code is made by offering
   9.170 +access to copy from a designated place, then offering equivalent
   9.171 +access to copy the source code from the same place counts as
   9.172 +distribution of the source code, even though third parties are not
   9.173 +compelled to copy the source along with the object code.
   9.174 +
   9.175 +  4. You may not copy, modify, sublicense, or distribute the Program
   9.176 +except as expressly provided under this License.  Any attempt
   9.177 +otherwise to copy, modify, sublicense or distribute the Program is
   9.178 +void, and will automatically terminate your rights under this License.
   9.179 +However, parties who have received copies, or rights, from you under
   9.180 +this License will not have their licenses terminated so long as such
   9.181 +parties remain in full compliance.
   9.182 +
   9.183 +  5. You are not required to accept this License, since you have not
   9.184 +signed it.  However, nothing else grants you permission to modify or
   9.185 +distribute the Program or its derivative works.  These actions are
   9.186 +prohibited by law if you do not accept this License.  Therefore, by
   9.187 +modifying or distributing the Program (or any work based on the
   9.188 +Program), you indicate your acceptance of this License to do so, and
   9.189 +all its terms and conditions for copying, distributing or modifying
   9.190 +the Program or works based on it.
   9.191 +
   9.192 +  6. Each time you redistribute the Program (or any work based on the
   9.193 +Program), the recipient automatically receives a license from the
   9.194 +original licensor to copy, distribute or modify the Program subject to
   9.195 +these terms and conditions.  You may not impose any further
   9.196 +restrictions on the recipients' exercise of the rights granted herein.
   9.197 +You are not responsible for enforcing compliance by third parties to
   9.198 +this License.
   9.199 +
   9.200 +  7. If, as a consequence of a court judgment or allegation of patent
   9.201 +infringement or for any other reason (not limited to patent issues),
   9.202 +conditions are imposed on you (whether by court order, agreement or
   9.203 +otherwise) that contradict the conditions of this License, they do not
   9.204 +excuse you from the conditions of this License.  If you cannot
   9.205 +distribute so as to satisfy simultaneously your obligations under this
   9.206 +License and any other pertinent obligations, then as a consequence you
   9.207 +may not distribute the Program at all.  For example, if a patent
   9.208 +license would not permit royalty-free redistribution of the Program by
   9.209 +all those who receive copies directly or indirectly through you, then
   9.210 +the only way you could satisfy both it and this License would be to
   9.211 +refrain entirely from distribution of the Program.
   9.212 +
   9.213 +If any portion of this section is held invalid or unenforceable under
   9.214 +any particular circumstance, the balance of the section is intended to
   9.215 +apply and the section as a whole is intended to apply in other
   9.216 +circumstances.
   9.217 +
   9.218 +It is not the purpose of this section to induce you to infringe any
   9.219 +patents or other property right claims or to contest validity of any
   9.220 +such claims; this section has the sole purpose of protecting the
   9.221 +integrity of the free software distribution system, which is
   9.222 +implemented by public license practices.  Many people have made
   9.223 +generous contributions to the wide range of software distributed
   9.224 +through that system in reliance on consistent application of that
   9.225 +system; it is up to the author/donor to decide if he or she is willing
   9.226 +to distribute software through any other system and a licensee cannot
   9.227 +impose that choice.
   9.228 +
   9.229 +This section is intended to make thoroughly clear what is believed to
   9.230 +be a consequence of the rest of this License.
   9.231 +
   9.232 +  8. If the distribution and/or use of the Program is restricted in
   9.233 +certain countries either by patents or by copyrighted interfaces, the
   9.234 +original copyright holder who places the Program under this License
   9.235 +may add an explicit geographical distribution limitation excluding
   9.236 +those countries, so that distribution is permitted only in or among
   9.237 +countries not thus excluded.  In such case, this License incorporates
   9.238 +the limitation as if written in the body of this License.
   9.239 +
   9.240 +  9. The Free Software Foundation may publish revised and/or new versions
   9.241 +of the General Public License from time to time.  Such new versions will
   9.242 +be similar in spirit to the present version, but may differ in detail to
   9.243 +address new problems or concerns.
   9.244 +
   9.245 +Each version is given a distinguishing version number.  If the Program
   9.246 +specifies a version number of this License which applies to it and "any
   9.247 +later version", you have the option of following the terms and conditions
   9.248 +either of that version or of any later version published by the Free
   9.249 +Software Foundation.  If the Program does not specify a version number of
   9.250 +this License, you may choose any version ever published by the Free Software
   9.251 +Foundation.
   9.252 +
   9.253 +  10. If you wish to incorporate parts of the Program into other free
   9.254 +programs whose distribution conditions are different, write to the author
   9.255 +to ask for permission.  For software which is copyrighted by the Free
   9.256 +Software Foundation, write to the Free Software Foundation; we sometimes
   9.257 +make exceptions for this.  Our decision will be guided by the two goals
   9.258 +of preserving the free status of all derivatives of our free software and
   9.259 +of promoting the sharing and reuse of software generally.
   9.260 +
   9.261 +			    NO WARRANTY
   9.262 +
   9.263 +  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
   9.264 +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
   9.265 +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
   9.266 +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
   9.267 +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
   9.268 +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
   9.269 +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
   9.270 +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
   9.271 +REPAIR OR CORRECTION.
   9.272 +
   9.273 +  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
   9.274 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
   9.275 +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
   9.276 +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
   9.277 +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
   9.278 +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
   9.279 +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
   9.280 +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
   9.281 +POSSIBILITY OF SUCH DAMAGES.
   9.282 +
   9.283 +		     END OF TERMS AND CONDITIONS
   9.284 +
   9.285 +	    How to Apply These Terms to Your New Programs
   9.286 +
   9.287 +  If you develop a new program, and you want it to be of the greatest
   9.288 +possible use to the public, the best way to achieve this is to make it
   9.289 +free software which everyone can redistribute and change under these terms.
   9.290 +
   9.291 +  To do so, attach the following notices to the program.  It is safest
   9.292 +to attach them to the start of each source file to most effectively
   9.293 +convey the exclusion of warranty; and each file should have at least
   9.294 +the "copyright" line and a pointer to where the full notice is found.
   9.295 +
   9.296 +    <one line to give the program's name and a brief idea of what it does.>
   9.297 +    Copyright (C) <year>  <name of author>
   9.298 +
   9.299 +    This program is free software; you can redistribute it and/or modify
   9.300 +    it under the terms of the GNU General Public License as published by
   9.301 +    the Free Software Foundation; either version 2 of the License, or
   9.302 +    (at your option) any later version.
   9.303 +
   9.304 +    This program is distributed in the hope that it will be useful,
   9.305 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
   9.306 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   9.307 +    GNU General Public License for more details.
   9.308 +
   9.309 +    You should have received a copy of the GNU General Public License
   9.310 +    along with this program; if not, write to the Free Software
   9.311 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   9.312 +
   9.313 +
   9.314 +Also add information on how to contact you by electronic and paper mail.
   9.315 +
   9.316 +If the program is interactive, make it output a short notice like this
   9.317 +when it starts in an interactive mode:
   9.318 +
   9.319 +    Gnomovision version 69, Copyright (C) year  name of author
   9.320 +    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
   9.321 +    This is free software, and you are welcome to redistribute it
   9.322 +    under certain conditions; type `show c' for details.
   9.323 +
   9.324 +The hypothetical commands `show w' and `show c' should show the appropriate
   9.325 +parts of the General Public License.  Of course, the commands you use may
   9.326 +be called something other than `show w' and `show c'; they could even be
   9.327 +mouse-clicks or menu items--whatever suits your program.
   9.328 +
   9.329 +You should also get your employer (if you work as a programmer) or your
   9.330 +school, if any, to sign a "copyright disclaimer" for the program, if
   9.331 +necessary.  Here is a sample; alter the names:
   9.332 +
   9.333 +  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
   9.334 +  `Gnomovision' (which makes passes at compilers) written by James Hacker.
   9.335 +
   9.336 +  <signature of Ty Coon>, 1 April 1989
   9.337 +  Ty Coon, President of Vice
   9.338 +
   9.339 +This General Public License does not permit incorporating your program into
   9.340 +proprietary programs.  If your program is a subroutine library, you may
   9.341 +consider it more useful to permit linking proprietary applications with the
   9.342 +library.  If this is what you want to do, use the GNU Library General
   9.343 +Public License instead of this License.
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/tools/xm-test/ChangeLog	Mon Nov 07 12:53:38 2005 +0100
    10.3 @@ -0,0 +1,11 @@
    10.4 +0.1.1
    10.5 +	Dan Smith <danms@us.ibm.com>
    10.6 +
    10.7 +	- More tests
    10.8 +	- Added build check for Flex/Bison
    10.9 +
   10.10 +
   10.11 +0.1.0
   10.12 +	Dan Smith <danms@us.ibm.com>
   10.13 +
   10.14 +	- initial release
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/tools/xm-test/Makefile.am	Mon Nov 07 12:53:38 2005 +0100
    11.3 @@ -0,0 +1,15 @@
    11.4 +SUBDIRS = ramdisk tests
    11.5 +EXTRA_DIST = lib runtest.sh mkreport
    11.6 +
    11.7 +# Remove any pyc's, CVS dirs, and prune the skel dirs
    11.8 +dist-hook:
    11.9 +	find $(distdir) -name '*~' -delete -print
   11.10 +	find $(distdir) -name '*.pyc' -delete -print
   11.11 +	for i in Root Repository Entries; do \
   11.12 +	  find $(distdir) -name $$i -delete ;\
   11.13 +	done
   11.14 +	find $(distdir) -name CVS -delete
   11.15 +	find $(distdir) -name '*.test' -delete
   11.16 +	cd $(distdir)/ramdisk/skel && find . -empty -delete
   11.17 +	chmod a+x $(distdir)/runtest.sh
   11.18 +
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/tools/xm-test/Makefile.in	Mon Nov 07 12:53:38 2005 +0100
    12.3 @@ -0,0 +1,578 @@
    12.4 +# Makefile.in generated by automake 1.9.5 from Makefile.am.
    12.5 +# @configure_input@
    12.6 +
    12.7 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    12.8 +# 2003, 2004, 2005  Free Software Foundation, Inc.
    12.9 +# This Makefile.in is free software; the Free Software Foundation
   12.10 +# gives unlimited permission to copy and/or distribute it,
   12.11 +# with or without modifications, as long as this notice is preserved.
   12.12 +
   12.13 +# This program is distributed in the hope that it will be useful,
   12.14 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   12.15 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   12.16 +# PARTICULAR PURPOSE.
   12.17 +
   12.18 +@SET_MAKE@
   12.19 +srcdir = @srcdir@
   12.20 +top_srcdir = @top_srcdir@
   12.21 +VPATH = @srcdir@
   12.22 +pkgdatadir = $(datadir)/@PACKAGE@
   12.23 +pkglibdir = $(libdir)/@PACKAGE@
   12.24 +pkgincludedir = $(includedir)/@PACKAGE@
   12.25 +top_builddir = .
   12.26 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
   12.27 +INSTALL = @INSTALL@
   12.28 +install_sh_DATA = $(install_sh) -c -m 644
   12.29 +install_sh_PROGRAM = $(install_sh) -c
   12.30 +install_sh_SCRIPT = $(install_sh) -c
   12.31 +INSTALL_HEADER = $(INSTALL_DATA)
   12.32 +transform = $(program_transform_name)
   12.33 +NORMAL_INSTALL = :
   12.34 +PRE_INSTALL = :
   12.35 +POST_INSTALL = :
   12.36 +NORMAL_UNINSTALL = :
   12.37 +PRE_UNINSTALL = :
   12.38 +POST_UNINSTALL = :
   12.39 +subdir = .
   12.40 +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
   12.41 +	$(srcdir)/Makefile.in $(top_srcdir)/configure \
   12.42 +	$(top_srcdir)/lib/XmTestLib/config.py.in \
   12.43 +	$(top_srcdir)/lib/XmTestReport/xmtest.py.in COPYING ChangeLog \
   12.44 +	TODO install-sh missing
   12.45 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
   12.46 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
   12.47 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
   12.48 +	$(ACLOCAL_M4)
   12.49 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
   12.50 + configure.lineno configure.status.lineno
   12.51 +mkinstalldirs = $(install_sh) -d
   12.52 +CONFIG_CLEAN_FILES = lib/XmTestReport/xmtest.py \
   12.53 +	lib/XmTestLib/config.py
   12.54 +SOURCES =
   12.55 +DIST_SOURCES =
   12.56 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
   12.57 +	html-recursive info-recursive install-data-recursive \
   12.58 +	install-exec-recursive install-info-recursive \
   12.59 +	install-recursive installcheck-recursive installdirs-recursive \
   12.60 +	pdf-recursive ps-recursive uninstall-info-recursive \
   12.61 +	uninstall-recursive
   12.62 +ETAGS = etags
   12.63 +CTAGS = ctags
   12.64 +DIST_SUBDIRS = $(SUBDIRS)
   12.65 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
   12.66 +distdir = $(PACKAGE)-$(VERSION)
   12.67 +top_distdir = $(distdir)
   12.68 +am__remove_distdir = \
   12.69 +  { test ! -d $(distdir) \
   12.70 +    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
   12.71 +         && rm -fr $(distdir); }; }
   12.72 +DIST_ARCHIVES = $(distdir).tar.gz
   12.73 +GZIP_ENV = --best
   12.74 +distuninstallcheck_listfiles = find . -type f -print
   12.75 +distcleancheck_listfiles = find . -type f -print
   12.76 +ACLOCAL = @ACLOCAL@
   12.77 +AMDEP_FALSE = @AMDEP_FALSE@
   12.78 +AMDEP_TRUE = @AMDEP_TRUE@
   12.79 +AMTAR = @AMTAR@
   12.80 +AUTOCONF = @AUTOCONF@
   12.81 +AUTOHEADER = @AUTOHEADER@
   12.82 +AUTOMAKE = @AUTOMAKE@
   12.83 +AWK = @AWK@
   12.84 +CC = @CC@
   12.85 +CCDEPMODE = @CCDEPMODE@
   12.86 +CFLAGS = @CFLAGS@
   12.87 +CPPFLAGS = @CPPFLAGS@
   12.88 +CYGPATH_W = @CYGPATH_W@
   12.89 +DEFS = @DEFS@
   12.90 +DEPDIR = @DEPDIR@
   12.91 +ECHO_C = @ECHO_C@
   12.92 +ECHO_N = @ECHO_N@
   12.93 +ECHO_T = @ECHO_T@
   12.94 +ENABLE_VMX = @ENABLE_VMX@
   12.95 +EXEEXT = @EXEEXT@
   12.96 +INSTALL_DATA = @INSTALL_DATA@
   12.97 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
   12.98 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
   12.99 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  12.100 +LDFLAGS = @LDFLAGS@
  12.101 +LEX = @LEX@
  12.102 +LEXLIB = @LEXLIB@
  12.103 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  12.104 +LIBOBJS = @LIBOBJS@
  12.105 +LIBS = @LIBS@
  12.106 +LTLIBOBJS = @LTLIBOBJS@
  12.107 +MAKEINFO = @MAKEINFO@
  12.108 +OBJEXT = @OBJEXT@
  12.109 +PACKAGE = @PACKAGE@
  12.110 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  12.111 +PACKAGE_NAME = @PACKAGE_NAME@
  12.112 +PACKAGE_STRING = @PACKAGE_STRING@
  12.113 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  12.114 +PACKAGE_VERSION = @PACKAGE_VERSION@
  12.115 +PATH_SEPARATOR = @PATH_SEPARATOR@
  12.116 +SET_MAKE = @SET_MAKE@
  12.117 +SHELL = @SHELL@
  12.118 +STRIP = @STRIP@
  12.119 +TENV = @TENV@
  12.120 +VERSION = @VERSION@
  12.121 +YACC = @YACC@
  12.122 +ac_ct_CC = @ac_ct_CC@
  12.123 +ac_ct_STRIP = @ac_ct_STRIP@
  12.124 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  12.125 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  12.126 +am__include = @am__include@
  12.127 +am__leading_dot = @am__leading_dot@
  12.128 +am__quote = @am__quote@
  12.129 +am__tar = @am__tar@
  12.130 +am__untar = @am__untar@
  12.131 +bindir = @bindir@
  12.132 +build_alias = @build_alias@
  12.133 +datadir = @datadir@
  12.134 +exec_prefix = @exec_prefix@
  12.135 +host_alias = @host_alias@
  12.136 +includedir = @includedir@
  12.137 +infodir = @infodir@
  12.138 +install_sh = @install_sh@
  12.139 +libdir = @libdir@
  12.140 +libexecdir = @libexecdir@
  12.141 +localstatedir = @localstatedir@
  12.142 +mandir = @mandir@
  12.143 +mkdir_p = @mkdir_p@
  12.144 +oldincludedir = @oldincludedir@
  12.145 +prefix = @prefix@
  12.146 +program_transform_name = @program_transform_name@
  12.147 +sbindir = @sbindir@
  12.148 +sharedstatedir = @sharedstatedir@
  12.149 +sysconfdir = @sysconfdir@
  12.150 +target_alias = @target_alias@
  12.151 +SUBDIRS = ramdisk tests
  12.152 +EXTRA_DIST = lib runtest.sh mkreport
  12.153 +all: all-recursive
  12.154 +
  12.155 +.SUFFIXES:
  12.156 +am--refresh:
  12.157 +	@:
  12.158 +$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
  12.159 +	@for dep in $?; do \
  12.160 +	  case '$(am__configure_deps)' in \
  12.161 +	    *$$dep*) \
  12.162 +	      echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  12.163 +	      cd $(srcdir) && $(AUTOMAKE) --foreign  \
  12.164 +		&& exit 0; \
  12.165 +	      exit 1;; \
  12.166 +	  esac; \
  12.167 +	done; \
  12.168 +	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  Makefile'; \
  12.169 +	cd $(top_srcdir) && \
  12.170 +	  $(AUTOMAKE) --foreign  Makefile
  12.171 +.PRECIOUS: Makefile
  12.172 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  12.173 +	@case '$?' in \
  12.174 +	  *config.status*) \
  12.175 +	    echo ' $(SHELL) ./config.status'; \
  12.176 +	    $(SHELL) ./config.status;; \
  12.177 +	  *) \
  12.178 +	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
  12.179 +	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
  12.180 +	esac;
  12.181 +
  12.182 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  12.183 +	$(SHELL) ./config.status --recheck
  12.184 +
  12.185 +$(top_srcdir)/configure:  $(am__configure_deps)
  12.186 +	cd $(srcdir) && $(AUTOCONF)
  12.187 +$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
  12.188 +	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  12.189 +lib/XmTestReport/xmtest.py: $(top_builddir)/config.status $(top_srcdir)/lib/XmTestReport/xmtest.py.in
  12.190 +	cd $(top_builddir) && $(SHELL) ./config.status $@
  12.191 +lib/XmTestLib/config.py: $(top_builddir)/config.status $(top_srcdir)/lib/XmTestLib/config.py.in
  12.192 +	cd $(top_builddir) && $(SHELL) ./config.status $@
  12.193 +uninstall-info-am:
  12.194 +
  12.195 +# This directory's subdirectories are mostly independent; you can cd
  12.196 +# into them and run `make' without going through this Makefile.
  12.197 +# To change the values of `make' variables: instead of editing Makefiles,
  12.198 +# (1) if the variable is set in `config.status', edit `config.status'
  12.199 +#     (which will cause the Makefiles to be regenerated when you run `make');
  12.200 +# (2) otherwise, pass the desired values on the `make' command line.
  12.201 +$(RECURSIVE_TARGETS):
  12.202 +	@failcom='exit 1'; \
  12.203 +	for f in x $$MAKEFLAGS; do \
  12.204 +	  case $$f in \
  12.205 +	    *=* | --[!k]*);; \
  12.206 +	    *k*) failcom='fail=yes';; \
  12.207 +	  esac; \
  12.208 +	done; \
  12.209 +	dot_seen=no; \
  12.210 +	target=`echo $@ | sed s/-recursive//`; \
  12.211 +	list='$(SUBDIRS)'; for subdir in $$list; do \
  12.212 +	  echo "Making $$target in $$subdir"; \
  12.213 +	  if test "$$subdir" = "."; then \
  12.214 +	    dot_seen=yes; \
  12.215 +	    local_target="$$target-am"; \
  12.216 +	  else \
  12.217 +	    local_target="$$target"; \
  12.218 +	  fi; \
  12.219 +	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  12.220 +	  || eval $$failcom; \
  12.221 +	done; \
  12.222 +	if test "$$dot_seen" = "no"; then \
  12.223 +	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  12.224 +	fi; test -z "$$fail"
  12.225 +
  12.226 +mostlyclean-recursive clean-recursive distclean-recursive \
  12.227 +maintainer-clean-recursive:
  12.228 +	@failcom='exit 1'; \
  12.229 +	for f in x $$MAKEFLAGS; do \
  12.230 +	  case $$f in \
  12.231 +	    *=* | --[!k]*);; \
  12.232 +	    *k*) failcom='fail=yes';; \
  12.233 +	  esac; \
  12.234 +	done; \
  12.235 +	dot_seen=no; \
  12.236 +	case "$@" in \
  12.237 +	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  12.238 +	  *) list='$(SUBDIRS)' ;; \
  12.239 +	esac; \
  12.240 +	rev=''; for subdir in $$list; do \
  12.241 +	  if test "$$subdir" = "."; then :; else \
  12.242 +	    rev="$$subdir $$rev"; \
  12.243 +	  fi; \
  12.244 +	done; \
  12.245 +	rev="$$rev ."; \
  12.246 +	target=`echo $@ | sed s/-recursive//`; \
  12.247 +	for subdir in $$rev; do \
  12.248 +	  echo "Making $$target in $$subdir"; \
  12.249 +	  if test "$$subdir" = "."; then \
  12.250 +	    local_target="$$target-am"; \
  12.251 +	  else \
  12.252 +	    local_target="$$target"; \
  12.253 +	  fi; \
  12.254 +	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  12.255 +	  || eval $$failcom; \
  12.256 +	done && test -z "$$fail"
  12.257 +tags-recursive:
  12.258 +	list='$(SUBDIRS)'; for subdir in $$list; do \
  12.259 +	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  12.260 +	done
  12.261 +ctags-recursive:
  12.262 +	list='$(SUBDIRS)'; for subdir in $$list; do \
  12.263 +	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  12.264 +	done
  12.265 +
  12.266 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  12.267 +	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  12.268 +	unique=`for i in $$list; do \
  12.269 +	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  12.270 +	  done | \
  12.271 +	  $(AWK) '    { files[$$0] = 1; } \
  12.272 +	       END { for (i in files) print i; }'`; \
  12.273 +	mkid -fID $$unique
  12.274 +tags: TAGS
  12.275 +
  12.276 +TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
  12.277 +		$(TAGS_FILES) $(LISP)
  12.278 +	tags=; \
  12.279 +	here=`pwd`; \
  12.280 +	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  12.281 +	  include_option=--etags-include; \
  12.282 +	  empty_fix=.; \
  12.283 +	else \
  12.284 +	  include_option=--include; \
  12.285 +	  empty_fix=; \
  12.286 +	fi; \
  12.287 +	list='$(SUBDIRS)'; for subdir in $$list; do \
  12.288 +	  if test "$$subdir" = .; then :; else \
  12.289 +	    test ! -f $$subdir/TAGS || \
  12.290 +	      tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  12.291 +	  fi; \
  12.292 +	done; \
  12.293 +	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
  12.294 +	unique=`for i in $$list; do \
  12.295 +	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  12.296 +	  done | \
  12.297 +	  $(AWK) '    { files[$$0] = 1; } \
  12.298 +	       END { for (i in files) print i; }'`; \
  12.299 +	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  12.300 +	  test -n "$$unique" || unique=$$empty_fix; \
  12.301 +	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  12.302 +	    $$tags $$unique; \
  12.303 +	fi
  12.304 +ctags: CTAGS
  12.305 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
  12.306 +		$(TAGS_FILES) $(LISP)
  12.307 +	tags=; \
  12.308 +	here=`pwd`; \
  12.309 +	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
  12.310 +	unique=`for i in $$list; do \
  12.311 +	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  12.312 +	  done | \
  12.313 +	  $(AWK) '    { files[$$0] = 1; } \
  12.314 +	       END { for (i in files) print i; }'`; \
  12.315 +	test -z "$(CTAGS_ARGS)$$tags$$unique" \
  12.316 +	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  12.317 +	     $$tags $$unique
  12.318 +
  12.319 +GTAGS:
  12.320 +	here=`$(am__cd) $(top_builddir) && pwd` \
  12.321 +	  && cd $(top_srcdir) \
  12.322 +	  && gtags -i $(GTAGS_ARGS) $$here
  12.323 +
  12.324 +distclean-tags:
  12.325 +	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  12.326 +
  12.327 +distdir: $(DISTFILES)
  12.328 +	$(am__remove_distdir)
  12.329 +	mkdir $(distdir)
  12.330 +	$(mkdir_p) $(distdir)/lib/XmTestLib $(distdir)/lib/XmTestReport
  12.331 +	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  12.332 +	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  12.333 +	list='$(DISTFILES)'; for file in $$list; do \
  12.334 +	  case $$file in \
  12.335 +	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  12.336 +	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  12.337 +	  esac; \
  12.338 +	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  12.339 +	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  12.340 +	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  12.341 +	    dir="/$$dir"; \
  12.342 +	    $(mkdir_p) "$(distdir)$$dir"; \
  12.343 +	  else \
  12.344 +	    dir=''; \
  12.345 +	  fi; \
  12.346 +	  if test -d $$d/$$file; then \
  12.347 +	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  12.348 +	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  12.349 +	    fi; \
  12.350 +	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  12.351 +	  else \
  12.352 +	    test -f $(distdir)/$$file \
  12.353 +	    || cp -p $$d/$$file $(distdir)/$$file \
  12.354 +	    || exit 1; \
  12.355 +	  fi; \
  12.356 +	done
  12.357 +	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  12.358 +	  if test "$$subdir" = .; then :; else \
  12.359 +	    test -d "$(distdir)/$$subdir" \
  12.360 +	    || $(mkdir_p) "$(distdir)/$$subdir" \
  12.361 +	    || exit 1; \
  12.362 +	    distdir=`$(am__cd) $(distdir) && pwd`; \
  12.363 +	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  12.364 +	    (cd $$subdir && \
  12.365 +	      $(MAKE) $(AM_MAKEFLAGS) \
  12.366 +	        top_distdir="$$top_distdir" \
  12.367 +	        distdir="$$distdir/$$subdir" \
  12.368 +	        distdir) \
  12.369 +	      || exit 1; \
  12.370 +	  fi; \
  12.371 +	done
  12.372 +	$(MAKE) $(AM_MAKEFLAGS) \
  12.373 +	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
  12.374 +	  dist-hook
  12.375 +	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  12.376 +	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  12.377 +	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  12.378 +	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  12.379 +	|| chmod -R a+r $(distdir)
  12.380 +dist-gzip: distdir
  12.381 +	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  12.382 +	$(am__remove_distdir)
  12.383 +
  12.384 +dist-bzip2: distdir
  12.385 +	tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  12.386 +	$(am__remove_distdir)
  12.387 +
  12.388 +dist-tarZ: distdir
  12.389 +	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  12.390 +	$(am__remove_distdir)
  12.391 +
  12.392 +dist-shar: distdir
  12.393 +	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
  12.394 +	$(am__remove_distdir)
  12.395 +
  12.396 +dist-zip: distdir
  12.397 +	-rm -f $(distdir).zip
  12.398 +	zip -rq $(distdir).zip $(distdir)
  12.399 +	$(am__remove_distdir)
  12.400 +
  12.401 +dist dist-all: distdir
  12.402 +	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  12.403 +	$(am__remove_distdir)
  12.404 +
  12.405 +# This target untars the dist file and tries a VPATH configuration.  Then
  12.406 +# it guarantees that the distribution is self-contained by making another
  12.407 +# tarfile.
  12.408 +distcheck: dist
  12.409 +	case '$(DIST_ARCHIVES)' in \
  12.410 +	*.tar.gz*) \
  12.411 +	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  12.412 +	*.tar.bz2*) \
  12.413 +	  bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  12.414 +	*.tar.Z*) \
  12.415 +	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  12.416 +	*.shar.gz*) \
  12.417 +	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  12.418 +	*.zip*) \
  12.419 +	  unzip $(distdir).zip ;;\
  12.420 +	esac
  12.421 +	chmod -R a-w $(distdir); chmod a+w $(distdir)
  12.422 +	mkdir $(distdir)/_build
  12.423 +	mkdir $(distdir)/_inst
  12.424 +	chmod a-w $(distdir)
  12.425 +	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  12.426 +	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  12.427 +	  && cd $(distdir)/_build \
  12.428 +	  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  12.429 +	    $(DISTCHECK_CONFIGURE_FLAGS) \
  12.430 +	  && $(MAKE) $(AM_MAKEFLAGS) \
  12.431 +	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
  12.432 +	  && $(MAKE) $(AM_MAKEFLAGS) check \
  12.433 +	  && $(MAKE) $(AM_MAKEFLAGS) install \
  12.434 +	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
  12.435 +	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
  12.436 +	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
  12.437 +	        distuninstallcheck \
  12.438 +	  && chmod -R a-w "$$dc_install_base" \
  12.439 +	  && ({ \
  12.440 +	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
  12.441 +	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
  12.442 +	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
  12.443 +	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
  12.444 +	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
  12.445 +	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
  12.446 +	  && rm -rf "$$dc_destdir" \
  12.447 +	  && $(MAKE) $(AM_MAKEFLAGS) dist \
  12.448 +	  && rm -rf $(DIST_ARCHIVES) \
  12.449 +	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  12.450 +	$(am__remove_distdir)
  12.451 +	@(echo "$(distdir) archives ready for distribution: "; \
  12.452 +	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  12.453 +	  sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  12.454 +distuninstallcheck:
  12.455 +	@cd $(distuninstallcheck_dir) \
  12.456 +	&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  12.457 +	   || { echo "ERROR: files left after uninstall:" ; \
  12.458 +	        if test -n "$(DESTDIR)"; then \
  12.459 +	          echo "  (check DESTDIR support)"; \
  12.460 +	        fi ; \
  12.461 +	        $(distuninstallcheck_listfiles) ; \
  12.462 +	        exit 1; } >&2
  12.463 +distcleancheck: distclean
  12.464 +	@if test '$(srcdir)' = . ; then \
  12.465 +	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
  12.466 +	  exit 1 ; \
  12.467 +	fi
  12.468 +	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
  12.469 +	  || { echo "ERROR: files left in build directory after distclean:" ; \
  12.470 +	       $(distcleancheck_listfiles) ; \
  12.471 +	       exit 1; } >&2
  12.472 +check-am: all-am
  12.473 +check: check-recursive
  12.474 +all-am: Makefile
  12.475 +installdirs: installdirs-recursive
  12.476 +installdirs-am:
  12.477 +install: install-recursive
  12.478 +install-exec: install-exec-recursive
  12.479 +install-data: install-data-recursive
  12.480 +uninstall: uninstall-recursive
  12.481 +
  12.482 +install-am: all-am
  12.483 +	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  12.484 +
  12.485 +installcheck: installcheck-recursive
  12.486 +install-strip:
  12.487 +	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  12.488 +	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  12.489 +	  `test -z '$(STRIP)' || \
  12.490 +	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  12.491 +mostlyclean-generic:
  12.492 +
  12.493 +clean-generic:
  12.494 +
  12.495 +distclean-generic:
  12.496 +	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  12.497 +
  12.498 +maintainer-clean-generic:
  12.499 +	@echo "This command is intended for maintainers to use"
  12.500 +	@echo "it deletes files that may require special tools to rebuild."
  12.501 +clean: clean-recursive
  12.502 +
  12.503 +clean-am: clean-generic mostlyclean-am
  12.504 +
  12.505 +distclean: distclean-recursive
  12.506 +	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
  12.507 +	-rm -f Makefile
  12.508 +distclean-am: clean-am distclean-generic distclean-tags
  12.509 +
  12.510 +dvi: dvi-recursive
  12.511 +
  12.512 +dvi-am:
  12.513 +
  12.514 +html: html-recursive
  12.515 +
  12.516 +info: info-recursive
  12.517 +
  12.518 +info-am:
  12.519 +
  12.520 +install-data-am:
  12.521 +
  12.522 +install-exec-am:
  12.523 +
  12.524 +install-info: install-info-recursive
  12.525 +
  12.526 +install-man:
  12.527 +
  12.528 +installcheck-am:
  12.529 +
  12.530 +maintainer-clean: maintainer-clean-recursive
  12.531 +	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
  12.532 +	-rm -rf $(top_srcdir)/autom4te.cache
  12.533 +	-rm -f Makefile
  12.534 +maintainer-clean-am: distclean-am maintainer-clean-generic
  12.535 +
  12.536 +mostlyclean: mostlyclean-recursive
  12.537 +
  12.538 +mostlyclean-am: mostlyclean-generic
  12.539 +
  12.540 +pdf: pdf-recursive
  12.541 +
  12.542 +pdf-am:
  12.543 +
  12.544 +ps: ps-recursive
  12.545 +
  12.546 +ps-am:
  12.547 +
  12.548 +uninstall-am: uninstall-info-am
  12.549 +
  12.550 +uninstall-info: uninstall-info-recursive
  12.551 +
  12.552 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  12.553 +	check-am clean clean-generic clean-recursive ctags \
  12.554 +	ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \
  12.555 +	dist-shar dist-tarZ dist-zip distcheck distclean \
  12.556 +	distclean-generic distclean-recursive distclean-tags \
  12.557 +	distcleancheck distdir distuninstallcheck dvi dvi-am html \
  12.558 +	html-am info info-am install install-am install-data \
  12.559 +	install-data-am install-exec install-exec-am install-info \
  12.560 +	install-info-am install-man install-strip installcheck \
  12.561 +	installcheck-am installdirs installdirs-am maintainer-clean \
  12.562 +	maintainer-clean-generic maintainer-clean-recursive \
  12.563 +	mostlyclean mostlyclean-generic mostlyclean-recursive pdf \
  12.564 +	pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
  12.565 +	uninstall-info-am
  12.566 +
  12.567 +
  12.568 +# Remove any pyc's, CVS dirs, and prune the skel dirs
  12.569 +dist-hook:
  12.570 +	find $(distdir) -name '*~' -delete -print
  12.571 +	find $(distdir) -name '*.pyc' -delete -print
  12.572 +	for i in Root Repository Entries; do \
  12.573 +	  find $(distdir) -name $$i -delete ;\
  12.574 +	done
  12.575 +	find $(distdir) -name CVS -delete
  12.576 +	find $(distdir) -name '*.test' -delete
  12.577 +	cd $(distdir)/ramdisk/skel && find . -empty -delete
  12.578 +	chmod a+x $(distdir)/runtest.sh
  12.579 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  12.580 +# Otherwise a system limit (for SysV at least) may be exceeded.
  12.581 +.NOEXPORT:
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/tools/xm-test/README	Mon Nov 07 12:53:38 2005 +0100
    13.3 @@ -0,0 +1,133 @@
    13.4 +
    13.5 +xm-test README
    13.6 +
    13.7 +Copyright (C) International Business Machines Corp., 2005
    13.8 +Author(s): Dan Smith <danms@us.ibm.com> 
    13.9 +  	   Woody Marvel <marvel@us.ibm.com>
   13.10 +
   13.11 +Overview
   13.12 +========
   13.13 +
   13.14 +This suite provides a framework for testing the Xen userspace tools.
   13.15 +The directory structure is:
   13.16 +
   13.17 +  ./xm-test
   13.18 +   |
   13.19 +   +-/lib: Python support libraries
   13.20 +   |
   13.21 +   +-/ramdisk: Staging area for building the test ramdisk
   13.22 +   |
   13.23 +   +-/tests
   13.24 +   | |
   13.25 +   | +-/create: Tests for the 'xm create' command
   13.26 +   | +-/destroy: Tests for the 'xm destroy' command
   13.27 +   |  . . .
   13.28 +   |
   13.29 +   +-/utils: Utility scripts for ramdisk building
   13.30 +
   13.31 +
   13.32 +Building
   13.33 +========
   13.34 +
   13.35 +Before the test suite can be used, the ramdisk must be built from
   13.36 +source.  All source needed for this process is automatically
   13.37 +downloaded, extracted, and compiled.  Due to the need to create
   13.38 +special files, this process must be done as root:
   13.39 +
   13.40 +   # ./configure
   13.41 +   # make
   13.42 +
   13.43 +NB: If you have the initrd.img from a previous version of xm-test, you
   13.44 +can copy it into the ramdisk directory to eliminate the need to
   13.45 +rebuild it.  So far, nothing has changed in the ramdisk since xm-test
   13.46 +version 0.1.1.  If you do this, there is no need to run 'make' again.
   13.47 +Simply copy the initrd.img file into ramdisk/ and then run the
   13.48 +runtest.sh script.
   13.49 +
   13.50 +
   13.51 +Running
   13.52 +=======
   13.53 +
   13.54 +By running "./runtest.sh logfile" at the top level, all tests will be
   13.55 +run in alphabetic order.  To run a specific test group, run "make
   13.56 +check" from inside that group directory.  For example:
   13.57 +
   13.58 +   # cd tests/create
   13.59 +   # make check
   13.60 +
   13.61 +The runtest.sh script will create several files, including a .report
   13.62 +file, which is the cleaned up, email-friendly report of failures.
   13.63 +Additionally, the script will submit your results to the development
   13.64 +team for trend analysis.  This helps us determine the level of success
   13.65 +people "out there" are having with different versions of Xen.
   13.66 +
   13.67 +If you wish to run xm-test in an automated batch environment, you can
   13.68 +run the script with the "-b" flag, which will try to prevent it from
   13.69 +asking any questions interactively.  You should run it manually at
   13.70 +least once to generate the "contact_info" file, which will be used in
   13.71 +subsequent runs.
   13.72 +
   13.73 +BIG FAT WARNING: The framework assumes it is running on a dedicated
   13.74 +machine.  As such, the library automatically destroys any running
   13.75 +DomUs on the sytem to provide each test with a "clean slate".
   13.76 +
   13.77 +
   13.78 +Extending
   13.79 +=========
   13.80 +
   13.81 +Additional tests may be added in existing groups to test additional
   13.82 +cases for a given xm subcommand.  Test programs should be named
   13.83 +according to the following scheme:
   13.84 +	
   13.85 +  XY_group_name_{pos,neg}.py
   13.86 +
   13.87 +Where:
   13.88 +  XY        is the next number in line
   13.89 +  group     is the name of the subcommand being tested
   13.90 +  name      is the short name of the test
   13.91 +  {pos,neg} denotes whether this is a positive or negative test case
   13.92 +
   13.93 +New subcommand groups should be added as directories named after the
   13.94 +subcommand itself.  The "Makefile.am.template" should be copied into
   13.95 +the new group directory as "Makefile.am".
   13.96 +
   13.97 +
   13.98 +Developer Notes
   13.99 +===============
  13.100 +
  13.101 +Our library provides a DomU console abstraction for automated
  13.102 +execution of commands.  Please note that this is relatively fragile,
  13.103 +and is intended for use only with the ramdisk built by the framework.
  13.104 +Because the console experiences some occasional corruption, this
  13.105 +method is not completely perfect at the moment, although the authors
  13.106 +use it with relatively few problems.
  13.107 +
  13.108 +
  13.109 +Known Issues
  13.110 +============
  13.111 +
  13.112 +- 08/22/2005 Dan Smith:
  13.113 +    Current versions of Xen experience long delays on
  13.114 +    boot, due to the blkif frontend waiting (and timing
  13.115 +    out) for the backend.  We now implicitly introduce
  13.116 +    a pause in XmTestDomain.start() to remedy
  13.117 +    this across all tests that need it.
  13.118 +
  13.119 +- 09/22/2005 Dan Smith:
  13.120 +    The save, restore, and migrate tests have been turned
  13.121 +    back on, as we have implemented timeout functionality 
  13.122 +    in "traceCommand".  Since migrate is known to hang, we 
  13.123 +    can now safely include it in the default test run, and
  13.124 +    have it be killed if it never finishes.  As before,
  13.125 +    feedback about these tests would be specifically
  13.126 +    appreciated.
  13.127 +
  13.128 +Reporting Bugs
  13.129 +==============
  13.130 +
  13.131 +If you find a bug in the test framework, report it to:
  13.132 +
  13.133 +   Dan Smith <danms@us.ibm.com>
  13.134 +
  13.135 +If you find a bug in a specific test case, contact the author of the
  13.136 +test case first.
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/tools/xm-test/TODO	Mon Nov 07 12:53:38 2005 +0100
    14.3 @@ -0,0 +1,3 @@
    14.4 +Todo List for xm-test
    14.5 +
    14.6 +
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/tools/xm-test/aclocal.m4	Mon Nov 07 12:53:38 2005 +0100
    15.3 @@ -0,0 +1,850 @@
    15.4 +# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
    15.5 +
    15.6 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    15.7 +# 2005  Free Software Foundation, Inc.
    15.8 +# This file is free software; the Free Software Foundation
    15.9 +# gives unlimited permission to copy and/or distribute it,
   15.10 +# with or without modifications, as long as this notice is preserved.
   15.11 +
   15.12 +# This program is distributed in the hope that it will be useful,
   15.13 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   15.14 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   15.15 +# PARTICULAR PURPOSE.
   15.16 +
   15.17 +# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
   15.18 +#
   15.19 +# This file is free software; the Free Software Foundation
   15.20 +# gives unlimited permission to copy and/or distribute it,
   15.21 +# with or without modifications, as long as this notice is preserved.
   15.22 +
   15.23 +# AM_AUTOMAKE_VERSION(VERSION)
   15.24 +# ----------------------------
   15.25 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
   15.26 +# generated from the m4 files accompanying Automake X.Y.
   15.27 +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
   15.28 +
   15.29 +# AM_SET_CURRENT_AUTOMAKE_VERSION
   15.30 +# -------------------------------
   15.31 +# Call AM_AUTOMAKE_VERSION so it can be traced.
   15.32 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
   15.33 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
   15.34 +	 [AM_AUTOMAKE_VERSION([1.9.5])])
   15.35 +
   15.36 +# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
   15.37 +
   15.38 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
   15.39 +#
   15.40 +# This file is free software; the Free Software Foundation
   15.41 +# gives unlimited permission to copy and/or distribute it,
   15.42 +# with or without modifications, as long as this notice is preserved.
   15.43 +
   15.44 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
   15.45 +# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
   15.46 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
   15.47 +#
   15.48 +# Of course, Automake must honor this variable whenever it calls a
   15.49 +# tool from the auxiliary directory.  The problem is that $srcdir (and
   15.50 +# therefore $ac_aux_dir as well) can be either absolute or relative,
   15.51 +# depending on how configure is run.  This is pretty annoying, since
   15.52 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
   15.53 +# source directory, any form will work fine, but in subdirectories a
   15.54 +# relative path needs to be adjusted first.
   15.55 +#
   15.56 +# $ac_aux_dir/missing
   15.57 +#    fails when called from a subdirectory if $ac_aux_dir is relative
   15.58 +# $top_srcdir/$ac_aux_dir/missing
   15.59 +#    fails if $ac_aux_dir is absolute,
   15.60 +#    fails when called from a subdirectory in a VPATH build with
   15.61 +#          a relative $ac_aux_dir
   15.62 +#
   15.63 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
   15.64 +# are both prefixed by $srcdir.  In an in-source build this is usually
   15.65 +# harmless because $srcdir is `.', but things will broke when you
   15.66 +# start a VPATH build or use an absolute $srcdir.
   15.67 +#
   15.68 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
   15.69 +# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
   15.70 +#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
   15.71 +# and then we would define $MISSING as
   15.72 +#   MISSING="\${SHELL} $am_aux_dir/missing"
   15.73 +# This will work as long as MISSING is not called from configure, because
   15.74 +# unfortunately $(top_srcdir) has no meaning in configure.
   15.75 +# However there are other variables, like CC, which are often used in
   15.76 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
   15.77 +#
   15.78 +# Another solution, used here, is to always expand $ac_aux_dir to an
   15.79 +# absolute PATH.  The drawback is that using absolute paths prevent a
   15.80 +# configured tree to be moved without reconfiguration.
   15.81 +
   15.82 +AC_DEFUN([AM_AUX_DIR_EXPAND],
   15.83 +[dnl Rely on autoconf to set up CDPATH properly.
   15.84 +AC_PREREQ([2.50])dnl
   15.85 +# expand $ac_aux_dir to an absolute path
   15.86 +am_aux_dir=`cd $ac_aux_dir && pwd`
   15.87 +])
   15.88 +
   15.89 +# AM_CONDITIONAL                                            -*- Autoconf -*-
   15.90 +
   15.91 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
   15.92 +# Free Software Foundation, Inc.
   15.93 +#
   15.94 +# This file is free software; the Free Software Foundation
   15.95 +# gives unlimited permission to copy and/or distribute it,
   15.96 +# with or without modifications, as long as this notice is preserved.
   15.97 +
   15.98 +# serial 7
   15.99 +
  15.100 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  15.101 +# -------------------------------------
  15.102 +# Define a conditional.
  15.103 +AC_DEFUN([AM_CONDITIONAL],
  15.104 +[AC_PREREQ(2.52)dnl
  15.105 + ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
  15.106 +	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  15.107 +AC_SUBST([$1_TRUE])
  15.108 +AC_SUBST([$1_FALSE])
  15.109 +if $2; then
  15.110 +  $1_TRUE=
  15.111 +  $1_FALSE='#'
  15.112 +else
  15.113 +  $1_TRUE='#'
  15.114 +  $1_FALSE=
  15.115 +fi
  15.116 +AC_CONFIG_COMMANDS_PRE(
  15.117 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  15.118 +  AC_MSG_ERROR([[conditional "$1" was never defined.
  15.119 +Usually this means the macro was only invoked conditionally.]])
  15.120 +fi])])
  15.121 +
  15.122 +
  15.123 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  15.124 +# Free Software Foundation, Inc.
  15.125 +#
  15.126 +# This file is free software; the Free Software Foundation
  15.127 +# gives unlimited permission to copy and/or distribute it,
  15.128 +# with or without modifications, as long as this notice is preserved.
  15.129 +
  15.130 +# serial 8
  15.131 +
  15.132 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  15.133 +# written in clear, in which case automake, when reading aclocal.m4,
  15.134 +# will think it sees a *use*, and therefore will trigger all it's
  15.135 +# C support machinery.  Also note that it means that autoscan, seeing
  15.136 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  15.137 +
  15.138 +
  15.139 +# _AM_DEPENDENCIES(NAME)
  15.140 +# ----------------------
  15.141 +# See how the compiler implements dependency checking.
  15.142 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  15.143 +# We try a few techniques and use that to set a single cache variable.
  15.144 +#
  15.145 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  15.146 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  15.147 +# dependency, and given that the user is not expected to run this macro,
  15.148 +# just rely on AC_PROG_CC.
  15.149 +AC_DEFUN([_AM_DEPENDENCIES],
  15.150 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  15.151 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  15.152 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  15.153 +AC_REQUIRE([AM_DEP_TRACK])dnl
  15.154 +
  15.155 +ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
  15.156 +       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
  15.157 +       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  15.158 +       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
  15.159 +                   [depcc="$$1"   am_compiler_list=])
  15.160 +
  15.161 +AC_CACHE_CHECK([dependency style of $depcc],
  15.162 +               [am_cv_$1_dependencies_compiler_type],
  15.163 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  15.164 +  # We make a subdir and do the tests there.  Otherwise we can end up
  15.165 +  # making bogus files that we don't know about and never remove.  For
  15.166 +  # instance it was reported that on HP-UX the gcc test will end up
  15.167 +  # making a dummy file named `D' -- because `-MD' means `put the output
  15.168 +  # in D'.
  15.169 +  mkdir conftest.dir
  15.170 +  # Copy depcomp to subdir because otherwise we won't find it if we're
  15.171 +  # using a relative directory.
  15.172 +  cp "$am_depcomp" conftest.dir
  15.173 +  cd conftest.dir
  15.174 +  # We will build objects and dependencies in a subdirectory because
  15.175 +  # it helps to detect inapplicable dependency modes.  For instance
  15.176 +  # both Tru64's cc and ICC support -MD to output dependencies as a
  15.177 +  # side effect of compilation, but ICC will put the dependencies in
  15.178 +  # the current directory while Tru64 will put them in the object
  15.179 +  # directory.
  15.180 +  mkdir sub
  15.181 +
  15.182 +  am_cv_$1_dependencies_compiler_type=none
  15.183 +  if test "$am_compiler_list" = ""; then
  15.184 +     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  15.185 +  fi
  15.186 +  for depmode in $am_compiler_list; do
  15.187 +    # Setup a source with many dependencies, because some compilers
  15.188 +    # like to wrap large dependency lists on column 80 (with \), and
  15.189 +    # we should not choose a depcomp mode which is confused by this.
  15.190 +    #
  15.191 +    # We need to recreate these files for each test, as the compiler may
  15.192 +    # overwrite some of them when testing with obscure command lines.
  15.193 +    # This happens at least with the AIX C compiler.
  15.194 +    : > sub/conftest.c
  15.195 +    for i in 1 2 3 4 5 6; do
  15.196 +      echo '#include "conftst'$i'.h"' >> sub/conftest.c
  15.197 +      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  15.198 +      # Solaris 8's {/usr,}/bin/sh.
  15.199 +      touch sub/conftst$i.h
  15.200 +    done
  15.201 +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  15.202 +
  15.203 +    case $depmode in
  15.204 +    nosideeffect)
  15.205 +      # after this tag, mechanisms are not by side-effect, so they'll
  15.206 +      # only be used when explicitly requested
  15.207 +      if test "x$enable_dependency_tracking" = xyes; then
  15.208 +	continue
  15.209 +      else
  15.210 +	break
  15.211 +      fi
  15.212 +      ;;
  15.213 +    none) break ;;
  15.214 +    esac
  15.215 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
  15.216 +    # mode.  It turns out that the SunPro C++ compiler does not properly
  15.217 +    # handle `-M -o', and we need to detect this.
  15.218 +    if depmode=$depmode \
  15.219 +       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  15.220 +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  15.221 +       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  15.222 +         >/dev/null 2>conftest.err &&
  15.223 +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  15.224 +       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  15.225 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  15.226 +      # icc doesn't choke on unknown options, it will just issue warnings
  15.227 +      # or remarks (even with -Werror).  So we grep stderr for any message
  15.228 +      # that says an option was ignored or not supported.
  15.229 +      # When given -MP, icc 7.0 and 7.1 complain thusly:
  15.230 +      #   icc: Command line warning: ignoring option '-M'; no argument required
  15.231 +      # The diagnosis changed in icc 8.0:
  15.232 +      #   icc: Command line remark: option '-MP' not supported
  15.233 +      if (grep 'ignoring option' conftest.err ||
  15.234 +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  15.235 +        am_cv_$1_dependencies_compiler_type=$depmode
  15.236 +        break
  15.237 +      fi
  15.238 +    fi
  15.239 +  done
  15.240 +
  15.241 +  cd ..
  15.242 +  rm -rf conftest.dir
  15.243 +else
  15.244 +  am_cv_$1_dependencies_compiler_type=none
  15.245 +fi
  15.246 +])
  15.247 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  15.248 +AM_CONDITIONAL([am__fastdep$1], [
  15.249 +  test "x$enable_dependency_tracking" != xno \
  15.250 +  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  15.251 +])
  15.252 +
  15.253 +
  15.254 +# AM_SET_DEPDIR
  15.255 +# -------------
  15.256 +# Choose a directory name for dependency files.
  15.257 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  15.258 +AC_DEFUN([AM_SET_DEPDIR],
  15.259 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  15.260 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  15.261 +])
  15.262 +
  15.263 +
  15.264 +# AM_DEP_TRACK
  15.265 +# ------------
  15.266 +AC_DEFUN([AM_DEP_TRACK],
  15.267 +[AC_ARG_ENABLE(dependency-tracking,
  15.268 +[  --disable-dependency-tracking  speeds up one-time build
  15.269 +  --enable-dependency-tracking   do not reject slow dependency extractors])
  15.270 +if test "x$enable_dependency_tracking" != xno; then
  15.271 +  am_depcomp="$ac_aux_dir/depcomp"
  15.272 +  AMDEPBACKSLASH='\'
  15.273 +fi
  15.274 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  15.275 +AC_SUBST([AMDEPBACKSLASH])
  15.276 +])
  15.277 +
  15.278 +# Generate code to set up dependency tracking.              -*- Autoconf -*-
  15.279 +
  15.280 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  15.281 +# Free Software Foundation, Inc.
  15.282 +#
  15.283 +# This file is free software; the Free Software Foundation
  15.284 +# gives unlimited permission to copy and/or distribute it,
  15.285 +# with or without modifications, as long as this notice is preserved.
  15.286 +
  15.287 +#serial 3
  15.288 +
  15.289 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  15.290 +# ------------------------------
  15.291 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  15.292 +[for mf in $CONFIG_FILES; do
  15.293 +  # Strip MF so we end up with the name of the file.
  15.294 +  mf=`echo "$mf" | sed -e 's/:.*$//'`
  15.295 +  # Check whether this is an Automake generated Makefile or not.
  15.296 +  # We used to match only the files named `Makefile.in', but
  15.297 +  # some people rename them; so instead we look at the file content.
  15.298 +  # Grep'ing the first line is not enough: some people post-process
  15.299 +  # each Makefile.in and add a new line on top of each file to say so.
  15.300 +  # So let's grep whole file.
  15.301 +  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  15.302 +    dirpart=`AS_DIRNAME("$mf")`
  15.303 +  else
  15.304 +    continue
  15.305 +  fi
  15.306 +  # Extract the definition of DEPDIR, am__include, and am__quote
  15.307 +  # from the Makefile without running `make'.
  15.308 +  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15.309 +  test -z "$DEPDIR" && continue
  15.310 +  am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15.311 +  test -z "am__include" && continue
  15.312 +  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15.313 +  # When using ansi2knr, U may be empty or an underscore; expand it
  15.314 +  U=`sed -n 's/^U = //p' < "$mf"`
  15.315 +  # Find all dependency output files, they are included files with
  15.316 +  # $(DEPDIR) in their names.  We invoke sed twice because it is the
  15.317 +  # simplest approach to changing $(DEPDIR) to its actual value in the
  15.318 +  # expansion.
  15.319 +  for file in `sed -n "
  15.320 +    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15.321 +       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15.322 +    # Make sure the directory exists.
  15.323 +    test -f "$dirpart/$file" && continue
  15.324 +    fdir=`AS_DIRNAME(["$file"])`
  15.325 +    AS_MKDIR_P([$dirpart/$fdir])
  15.326 +    # echo "creating $dirpart/$file"
  15.327 +    echo '# dummy' > "$dirpart/$file"
  15.328 +  done
  15.329 +done
  15.330 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  15.331 +
  15.332 +
  15.333 +# AM_OUTPUT_DEPENDENCY_COMMANDS
  15.334 +# -----------------------------
  15.335 +# This macro should only be invoked once -- use via AC_REQUIRE.
  15.336 +#
  15.337 +# This code is only required when automatic dependency tracking
  15.338 +# is enabled.  FIXME.  This creates each `.P' file that we will
  15.339 +# need in order to bootstrap the dependency handling code.
  15.340 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  15.341 +[AC_CONFIG_COMMANDS([depfiles],
  15.342 +     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  15.343 +     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  15.344 +])
  15.345 +
  15.346 +# Do all the work for Automake.                             -*- Autoconf -*-
  15.347 +
  15.348 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  15.349 +# Free Software Foundation, Inc.
  15.350 +#
  15.351 +# This file is free software; the Free Software Foundation
  15.352 +# gives unlimited permission to copy and/or distribute it,
  15.353 +# with or without modifications, as long as this notice is preserved.
  15.354 +
  15.355 +# serial 12
  15.356 +
  15.357 +# This macro actually does too much.  Some checks are only needed if
  15.358 +# your package does certain things.  But this isn't really a big deal.
  15.359 +
  15.360 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  15.361 +# AM_INIT_AUTOMAKE([OPTIONS])
  15.362 +# -----------------------------------------------
  15.363 +# The call with PACKAGE and VERSION arguments is the old style
  15.364 +# call (pre autoconf-2.50), which is being phased out.  PACKAGE
  15.365 +# and VERSION should now be passed to AC_INIT and removed from
  15.366 +# the call to AM_INIT_AUTOMAKE.
  15.367 +# We support both call styles for the transition.  After
  15.368 +# the next Automake release, Autoconf can make the AC_INIT
  15.369 +# arguments mandatory, and then we can depend on a new Autoconf
  15.370 +# release and drop the old call support.
  15.371 +AC_DEFUN([AM_INIT_AUTOMAKE],
  15.372 +[AC_PREREQ([2.58])dnl
  15.373 +dnl Autoconf wants to disallow AM_ names.  We explicitly allow
  15.374 +dnl the ones we care about.
  15.375 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  15.376 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  15.377 +AC_REQUIRE([AC_PROG_INSTALL])dnl
  15.378 +# test to see if srcdir already configured
  15.379 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
  15.380 +   test -f $srcdir/config.status; then
  15.381 +  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  15.382 +fi
  15.383 +
  15.384 +# test whether we have cygpath
  15.385 +if test -z "$CYGPATH_W"; then
  15.386 +  if (cygpath --version) >/dev/null 2>/dev/null; then
  15.387 +    CYGPATH_W='cygpath -w'
  15.388 +  else
  15.389 +    CYGPATH_W=echo
  15.390 +  fi
  15.391 +fi
  15.392 +AC_SUBST([CYGPATH_W])
  15.393 +
  15.394 +# Define the identity of the package.
  15.395 +dnl Distinguish between old-style and new-style calls.
  15.396 +m4_ifval([$2],
  15.397 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  15.398 + AC_SUBST([PACKAGE], [$1])dnl
  15.399 + AC_SUBST([VERSION], [$2])],
  15.400 +[_AM_SET_OPTIONS([$1])dnl
  15.401 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  15.402 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  15.403 +
  15.404 +_AM_IF_OPTION([no-define],,
  15.405 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  15.406 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  15.407 +
  15.408 +# Some tools Automake needs.
  15.409 +AC_REQUIRE([AM_SANITY_CHECK])dnl
  15.410 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  15.411 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  15.412 +AM_MISSING_PROG(AUTOCONF, autoconf)
  15.413 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  15.414 +AM_MISSING_PROG(AUTOHEADER, autoheader)
  15.415 +AM_MISSING_PROG(MAKEINFO, makeinfo)
  15.416 +AM_PROG_INSTALL_SH
  15.417 +AM_PROG_INSTALL_STRIP
  15.418 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  15.419 +# We need awk for the "check" target.  The system "awk" is bad on
  15.420 +# some platforms.
  15.421 +AC_REQUIRE([AC_PROG_AWK])dnl
  15.422 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  15.423 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  15.424 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  15.425 +              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  15.426 +	      		     [_AM_PROG_TAR([v7])])])
  15.427 +_AM_IF_OPTION([no-dependencies],,
  15.428 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  15.429 +                  [_AM_DEPENDENCIES(CC)],
  15.430 +                  [define([AC_PROG_CC],
  15.431 +                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  15.432 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  15.433 +                  [_AM_DEPENDENCIES(CXX)],
  15.434 +                  [define([AC_PROG_CXX],
  15.435 +                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  15.436 +])
  15.437 +])
  15.438 +
  15.439 +
  15.440 +# When config.status generates a header, we must update the stamp-h file.
  15.441 +# This file resides in the same directory as the config header
  15.442 +# that is generated.  The stamp files are numbered to have different names.
  15.443 +
  15.444 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  15.445 +# loop where config.status creates the headers, so we can generate
  15.446 +# our stamp files there.
  15.447 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  15.448 +[# Compute $1's index in $config_headers.
  15.449 +_am_stamp_count=1
  15.450 +for _am_header in $config_headers :; do
  15.451 +  case $_am_header in
  15.452 +    $1 | $1:* )
  15.453 +      break ;;
  15.454 +    * )
  15.455 +      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15.456 +  esac
  15.457 +done
  15.458 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  15.459 +
  15.460 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
  15.461 +#
  15.462 +# This file is free software; the Free Software Foundation
  15.463 +# gives unlimited permission to copy and/or distribute it,
  15.464 +# with or without modifications, as long as this notice is preserved.
  15.465 +
  15.466 +# AM_PROG_INSTALL_SH
  15.467 +# ------------------
  15.468 +# Define $install_sh.
  15.469 +AC_DEFUN([AM_PROG_INSTALL_SH],
  15.470 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  15.471 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
  15.472 +AC_SUBST(install_sh)])
  15.473 +
  15.474 +# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
  15.475 +#
  15.476 +# This file is free software; the Free Software Foundation
  15.477 +# gives unlimited permission to copy and/or distribute it,
  15.478 +# with or without modifications, as long as this notice is preserved.
  15.479 +
  15.480 +# serial 2
  15.481 +
  15.482 +# Check whether the underlying file-system supports filenames
  15.483 +# with a leading dot.  For instance MS-DOS doesn't.
  15.484 +AC_DEFUN([AM_SET_LEADING_DOT],
  15.485 +[rm -rf .tst 2>/dev/null
  15.486 +mkdir .tst 2>/dev/null
  15.487 +if test -d .tst; then
  15.488 +  am__leading_dot=.
  15.489 +else
  15.490 +  am__leading_dot=_
  15.491 +fi
  15.492 +rmdir .tst 2>/dev/null
  15.493 +AC_SUBST([am__leading_dot])])
  15.494 +
  15.495 +# Check to see how 'make' treats includes.	            -*- Autoconf -*-
  15.496 +
  15.497 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
  15.498 +#
  15.499 +# This file is free software; the Free Software Foundation
  15.500 +# gives unlimited permission to copy and/or distribute it,
  15.501 +# with or without modifications, as long as this notice is preserved.
  15.502 +
  15.503 +# serial 3
  15.504 +
  15.505 +# AM_MAKE_INCLUDE()
  15.506 +# -----------------
  15.507 +# Check to see how make treats includes.
  15.508 +AC_DEFUN([AM_MAKE_INCLUDE],
  15.509 +[am_make=${MAKE-make}
  15.510 +cat > confinc << 'END'
  15.511 +am__doit:
  15.512 +	@echo done
  15.513 +.PHONY: am__doit
  15.514 +END
  15.515 +# If we don't find an include directive, just comment out the code.
  15.516 +AC_MSG_CHECKING([for style of include used by $am_make])
  15.517 +am__include="#"
  15.518 +am__quote=
  15.519 +_am_result=none
  15.520 +# First try GNU make style include.
  15.521 +echo "include confinc" > confmf
  15.522 +# We grep out `Entering directory' and `Leaving directory'
  15.523 +# messages which can occur if `w' ends up in MAKEFLAGS.
  15.524 +# In particular we don't look at `^make:' because GNU make might
  15.525 +# be invoked under some other name (usually "gmake"), in which
  15.526 +# case it prints its new name instead of `make'.
  15.527 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  15.528 +   am__include=include
  15.529 +   am__quote=
  15.530 +   _am_result=GNU
  15.531 +fi
  15.532 +# Now try BSD make style include.
  15.533 +if test "$am__include" = "#"; then
  15.534 +   echo '.include "confinc"' > confmf
  15.535 +   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  15.536 +      am__include=.include
  15.537 +      am__quote="\""
  15.538 +      _am_result=BSD
  15.539 +   fi
  15.540 +fi
  15.541 +AC_SUBST([am__include])
  15.542 +AC_SUBST([am__quote])
  15.543 +AC_MSG_RESULT([$_am_result])
  15.544 +rm -f confinc confmf
  15.545 +])
  15.546 +
  15.547 +# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
  15.548 +
  15.549 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  15.550 +# Free Software Foundation, Inc.
  15.551 +#
  15.552 +# This file is free software; the Free Software Foundation
  15.553 +# gives unlimited permission to copy and/or distribute it,
  15.554 +# with or without modifications, as long as this notice is preserved.
  15.555 +
  15.556 +# serial 4
  15.557 +
  15.558 +# AM_MISSING_PROG(NAME, PROGRAM)
  15.559 +# ------------------------------
  15.560 +AC_DEFUN([AM_MISSING_PROG],
  15.561 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  15.562 +$1=${$1-"${am_missing_run}$2"}
  15.563 +AC_SUBST($1)])
  15.564 +
  15.565 +
  15.566 +# AM_MISSING_HAS_RUN
  15.567 +# ------------------
  15.568 +# Define MISSING if not defined so far and test if it supports --run.
  15.569 +# If it does, set am_missing_run to use it, otherwise, to nothing.
  15.570 +AC_DEFUN([AM_MISSING_HAS_RUN],
  15.571 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  15.572 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  15.573 +# Use eval to expand $SHELL
  15.574 +if eval "$MISSING --run true"; then
  15.575 +  am_missing_run="$MISSING --run "
  15.576 +else
  15.577 +  am_missing_run=
  15.578 +  AC_MSG_WARN([`missing' script is too old or missing])
  15.579 +fi
  15.580 +])
  15.581 +
  15.582 +# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
  15.583 +#
  15.584 +# This file is free software; the Free Software Foundation
  15.585 +# gives unlimited permission to copy and/or distribute it,
  15.586 +# with or without modifications, as long as this notice is preserved.
  15.587 +
  15.588 +# AM_PROG_MKDIR_P
  15.589 +# ---------------
  15.590 +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  15.591 +#
  15.592 +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  15.593 +# created by `make install' are always world readable, even if the
  15.594 +# installer happens to have an overly restrictive umask (e.g. 077).
  15.595 +# This was a mistake.  There are at least two reasons why we must not
  15.596 +# use `-m 0755':
  15.597 +#   - it causes special bits like SGID to be ignored,
  15.598 +#   - it may be too restrictive (some setups expect 775 directories).
  15.599 +#
  15.600 +# Do not use -m 0755 and let people choose whatever they expect by
  15.601 +# setting umask.
  15.602 +#
  15.603 +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  15.604 +# Some implementations (such as Solaris 8's) are not thread-safe: if a
  15.605 +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  15.606 +# concurrently, both version can detect that a/ is missing, but only
  15.607 +# one can create it and the other will error out.  Consequently we
  15.608 +# restrict ourselves to GNU make (using the --version option ensures
  15.609 +# this.)
  15.610 +AC_DEFUN([AM_PROG_MKDIR_P],
  15.611 +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  15.612 +  # We used to keeping the `.' as first argument, in order to
  15.613 +  # allow $(mkdir_p) to be used without argument.  As in
  15.614 +  #   $(mkdir_p) $(somedir)
  15.615 +  # where $(somedir) is conditionally defined.  However this is wrong
  15.616 +  # for two reasons:
  15.617 +  #  1. if the package is installed by a user who cannot write `.'
  15.618 +  #     make install will fail,
  15.619 +  #  2. the above comment should most certainly read
  15.620 +  #     $(mkdir_p) $(DESTDIR)$(somedir)
  15.621 +  #     so it does not work when $(somedir) is undefined and
  15.622 +  #     $(DESTDIR) is not.
  15.623 +  #  To support the latter case, we have to write
  15.624 +  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  15.625 +  #  so the `.' trick is pointless.
  15.626 +  mkdir_p='mkdir -p --'
  15.627 +else
  15.628 +  # On NextStep and OpenStep, the `mkdir' command does not
  15.629 +  # recognize any option.  It will interpret all options as
  15.630 +  # directories to create, and then abort because `.' already
  15.631 +  # exists.
  15.632 +  for d in ./-p ./--version;
  15.633 +  do
  15.634 +    test -d $d && rmdir $d
  15.635 +  done
  15.636 +  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  15.637 +  if test -f "$ac_aux_dir/mkinstalldirs"; then
  15.638 +    mkdir_p='$(mkinstalldirs)'
  15.639 +  else
  15.640 +    mkdir_p='$(install_sh) -d'
  15.641 +  fi
  15.642 +fi
  15.643 +AC_SUBST([mkdir_p])])
  15.644 +
  15.645 +# Helper functions for option handling.                     -*- Autoconf -*-
  15.646 +
  15.647 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
  15.648 +#
  15.649 +# This file is free software; the Free Software Foundation
  15.650 +# gives unlimited permission to copy and/or distribute it,
  15.651 +# with or without modifications, as long as this notice is preserved.
  15.652 +
  15.653 +# serial 3
  15.654 +
  15.655 +# _AM_MANGLE_OPTION(NAME)
  15.656 +# -----------------------
  15.657 +AC_DEFUN([_AM_MANGLE_OPTION],
  15.658 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  15.659 +
  15.660 +# _AM_SET_OPTION(NAME)
  15.661 +# ------------------------------
  15.662 +# Set option NAME.  Presently that only means defining a flag for this option.
  15.663 +AC_DEFUN([_AM_SET_OPTION],
  15.664 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  15.665 +
  15.666 +# _AM_SET_OPTIONS(OPTIONS)
  15.667 +# ----------------------------------
  15.668 +# OPTIONS is a space-separated list of Automake options.
  15.669 +AC_DEFUN([_AM_SET_OPTIONS],
  15.670 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  15.671 +
  15.672 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  15.673 +# -------------------------------------------
  15.674 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  15.675 +AC_DEFUN([_AM_IF_OPTION],
  15.676 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  15.677 +
  15.678 +# Check to make sure that the build environment is sane.    -*- Autoconf -*-
  15.679 +
  15.680 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  15.681 +# Free Software Foundation, Inc.
  15.682 +#
  15.683 +# This file is free software; the Free Software Foundation
  15.684 +# gives unlimited permission to copy and/or distribute it,
  15.685 +# with or without modifications, as long as this notice is preserved.
  15.686 +
  15.687 +# serial 4
  15.688 +
  15.689 +# AM_SANITY_CHECK
  15.690 +# ---------------
  15.691 +AC_DEFUN([AM_SANITY_CHECK],
  15.692 +[AC_MSG_CHECKING([whether build environment is sane])
  15.693 +# Just in case
  15.694 +sleep 1
  15.695 +echo timestamp > conftest.file
  15.696 +# Do `set' in a subshell so we don't clobber the current shell's
  15.697 +# arguments.  Must try -L first in case configure is actually a
  15.698 +# symlink; some systems play weird games with the mod time of symlinks
  15.699 +# (eg FreeBSD returns the mod time of the symlink's containing
  15.700 +# directory).
  15.701 +if (
  15.702 +   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  15.703 +   if test "$[*]" = "X"; then
  15.704 +      # -L didn't work.
  15.705 +      set X `ls -t $srcdir/configure conftest.file`
  15.706 +   fi
  15.707 +   rm -f conftest.file
  15.708 +   if test "$[*]" != "X $srcdir/configure conftest.file" \
  15.709 +      && test "$[*]" != "X conftest.file $srcdir/configure"; then
  15.710 +
  15.711 +      # If neither matched, then we have a broken ls.  This can happen
  15.712 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
  15.713 +      # broken ls alias from the environment.  This has actually
  15.714 +      # happened.  Such a system could not be considered "sane".
  15.715 +      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
  15.716 +alias in your environment])
  15.717 +   fi
  15.718 +
  15.719 +   test "$[2]" = conftest.file
  15.720 +   )
  15.721 +then
  15.722 +   # Ok.
  15.723 +   :
  15.724 +else
  15.725 +   AC_MSG_ERROR([newly created file is older than distributed files!
  15.726 +Check your system clock])
  15.727 +fi
  15.728 +AC_MSG_RESULT(yes)])
  15.729 +
  15.730 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
  15.731 +#
  15.732 +# This file is free software; the Free Software Foundation
  15.733 +# gives unlimited permission to copy and/or distribute it,
  15.734 +# with or without modifications, as long as this notice is preserved.
  15.735 +
  15.736 +# AM_PROG_INSTALL_STRIP
  15.737 +# ---------------------
  15.738 +# One issue with vendor `install' (even GNU) is that you can't
  15.739 +# specify the program used to strip binaries.  This is especially
  15.740 +# annoying in cross-compiling environments, where the build's strip
  15.741 +# is unlikely to handle the host's binaries.
  15.742 +# Fortunately install-sh will honor a STRIPPROG variable, so we
  15.743 +# always use install-sh in `make install-strip', and initialize
  15.744 +# STRIPPROG with the value of the STRIP variable (set by the user).
  15.745 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  15.746 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  15.747 +# Installed binaries are usually stripped using `strip' when the user
  15.748 +# run `make install-strip'.  However `strip' might not be the right
  15.749 +# tool to use in cross-compilation environments, therefore Automake
  15.750 +# will honor the `STRIP' environment variable to overrule this program.
  15.751 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  15.752 +if test "$cross_compiling" != no; then
  15.753 +  AC_CHECK_TOOL([STRIP], [strip], :)
  15.754 +fi
  15.755 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  15.756 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  15.757 +
  15.758 +# Check how to create a tarball.                            -*- Autoconf -*-
  15.759 +
  15.760 +# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
  15.761 +#
  15.762 +# This file is free software; the Free Software Foundation
  15.763 +# gives unlimited permission to copy and/or distribute it,
  15.764 +# with or without modifications, as long as this notice is preserved.
  15.765 +
  15.766 +# serial 2
  15.767 +
  15.768 +# _AM_PROG_TAR(FORMAT)
  15.769 +# --------------------
  15.770 +# Check how to create a tarball in format FORMAT.
  15.771 +# FORMAT should be one of `v7', `ustar', or `pax'.
  15.772 +#
  15.773 +# Substitute a variable $(am__tar) that is a command
  15.774 +# writing to stdout a FORMAT-tarball containing the directory
  15.775 +# $tardir.
  15.776 +#     tardir=directory && $(am__tar) > result.tar
  15.777 +#
  15.778 +# Substitute a variable $(am__untar) that extract such
  15.779 +# a tarball read from stdin.
  15.780 +#     $(am__untar) < result.tar
  15.781 +AC_DEFUN([_AM_PROG_TAR],
  15.782 +[# Always define AMTAR for backward compatibility.
  15.783 +AM_MISSING_PROG([AMTAR], [tar])
  15.784 +m4_if([$1], [v7],
  15.785 +     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  15.786 +     [m4_case([$1], [ustar],, [pax],,
  15.787 +              [m4_fatal([Unknown tar format])])
  15.788 +AC_MSG_CHECKING([how to create a $1 tar archive])
  15.789 +# Loop over all known methods to create a tar archive until one works.
  15.790 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  15.791 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  15.792 +# Do not fold the above two line into one, because Tru64 sh and
  15.793 +# Solaris sh will not grok spaces in the rhs of `-'.
  15.794 +for _am_tool in $_am_tools
  15.795 +do
  15.796 +  case $_am_tool in
  15.797 +  gnutar)
  15.798 +    for _am_tar in tar gnutar gtar;
  15.799 +    do
  15.800 +      AM_RUN_LOG([$_am_tar --version]) && break
  15.801 +    done
  15.802 +    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  15.803 +    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  15.804 +    am__untar="$_am_tar -xf -"
  15.805 +    ;;
  15.806 +  plaintar)
  15.807 +    # Must skip GNU tar: if it does not support --format= it doesn't create
  15.808 +    # ustar tarball either.
  15.809 +    (tar --version) >/dev/null 2>&1 && continue
  15.810 +    am__tar='tar chf - "$$tardir"'
  15.811 +    am__tar_='tar chf - "$tardir"'
  15.812 +    am__untar='tar xf -'
  15.813 +    ;;
  15.814 +  pax)
  15.815 +    am__tar='pax -L -x $1 -w "$$tardir"'
  15.816 +    am__tar_='pax -L -x $1 -w "$tardir"'
  15.817 +    am__untar='pax -r'
  15.818 +    ;;
  15.819 +  cpio)
  15.820 +    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  15.821 +    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  15.822 +    am__untar='cpio -i -H $1 -d'
  15.823 +    ;;
  15.824 +  none)
  15.825 +    am__tar=false
  15.826 +    am__tar_=false
  15.827 +    am__untar=false
  15.828 +    ;;
  15.829 +  esac
  15.830 +
  15.831 +  # If the value was cached, stop now.  We just wanted to have am__tar
  15.832 +  # and am__untar set.
  15.833 +  test -n "${am_cv_prog_tar_$1}" && break
  15.834 +
  15.835 +  # tar/untar a dummy directory, and stop if the command works
  15.836 +  rm -rf conftest.dir
  15.837 +  mkdir conftest.dir
  15.838 +  echo GrepMe > conftest.dir/file
  15.839 +  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  15.840 +  rm -rf conftest.dir
  15.841 +  if test -s conftest.tar; then
  15.842 +    AM_RUN_LOG([$am__untar <conftest.tar])
  15.843 +    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  15.844 +  fi
  15.845 +done
  15.846 +rm -rf conftest.dir
  15.847 +
  15.848 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  15.849 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  15.850 +AC_SUBST([am__tar])
  15.851 +AC_SUBST([am__untar])
  15.852 +]) # _AM_PROG_TAR
  15.853 +
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/tools/xm-test/configure	Mon Nov 07 12:53:38 2005 +0100
    16.3 @@ -0,0 +1,4364 @@
    16.4 +#! /bin/sh
    16.5 +# Guess values for system-dependent variables and create Makefiles.
    16.6 +# Generated by GNU Autoconf 2.59 for xm-test 0.4.0.
    16.7 +#
    16.8 +# Copyright (C) 2003 Free Software Foundation, Inc.
    16.9 +# This configure script is free software; the Free Software Foundation
   16.10 +# gives unlimited permission to copy, distribute and modify it.
   16.11 +## --------------------- ##
   16.12 +## M4sh Initialization.  ##
   16.13 +## --------------------- ##
   16.14 +
   16.15 +# Be Bourne compatible
   16.16 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   16.17 +  emulate sh
   16.18 +  NULLCMD=:
   16.19 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   16.20 +  # is contrary to our usage.  Disable this feature.
   16.21 +  alias -g '${1+"$@"}'='"$@"'
   16.22 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   16.23 +  set -o posix
   16.24 +fi
   16.25 +DUALCASE=1; export DUALCASE # for MKS sh
   16.26 +
   16.27 +# Support unset when possible.
   16.28 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   16.29 +  as_unset=unset
   16.30 +else
   16.31 +  as_unset=false
   16.32 +fi
   16.33 +
   16.34 +
   16.35 +# Work around bugs in pre-3.0 UWIN ksh.
   16.36 +$as_unset ENV MAIL MAILPATH
   16.37 +PS1='$ '
   16.38 +PS2='> '
   16.39 +PS4='+ '
   16.40 +
   16.41 +# NLS nuisances.
   16.42 +for as_var in \
   16.43 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   16.44 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   16.45 +  LC_TELEPHONE LC_TIME
   16.46 +do
   16.47 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   16.48 +    eval $as_var=C; export $as_var
   16.49 +  else
   16.50 +    $as_unset $as_var
   16.51 +  fi
   16.52 +done
   16.53 +
   16.54 +# Required to use basename.
   16.55 +if expr a : '\(a\)' >/dev/null 2>&1; then
   16.56 +  as_expr=expr
   16.57 +else
   16.58 +  as_expr=false
   16.59 +fi
   16.60 +
   16.61 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
   16.62 +  as_basename=basename
   16.63 +else
   16.64 +  as_basename=false
   16.65 +fi
   16.66 +
   16.67 +
   16.68 +# Name of the executable.
   16.69 +as_me=`$as_basename "$0" ||
   16.70 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   16.71 +	 X"$0" : 'X\(//\)$' \| \
   16.72 +	 X"$0" : 'X\(/\)$' \| \
   16.73 +	 .     : '\(.\)' 2>/dev/null ||
   16.74 +echo X/"$0" |
   16.75 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
   16.76 +  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
   16.77 +  	  /^X\/\(\/\).*/{ s//\1/; q; }
   16.78 +  	  s/.*/./; q'`
   16.79 +
   16.80 +
   16.81 +# PATH needs CR, and LINENO needs CR and PATH.
   16.82 +# Avoid depending upon Character Ranges.
   16.83 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   16.84 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   16.85 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   16.86 +as_cr_digits='0123456789'
   16.87 +as_cr_alnum=$as_cr_Letters$as_cr_digits
   16.88 +
   16.89 +# The user is always right.
   16.90 +if test "${PATH_SEPARATOR+set}" != set; then
   16.91 +  echo "#! /bin/sh" >conf$$.sh
   16.92 +  echo  "exit 0"   >>conf$$.sh
   16.93 +  chmod +x conf$$.sh
   16.94 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   16.95 +    PATH_SEPARATOR=';'
   16.96 +  else
   16.97 +    PATH_SEPARATOR=:
   16.98 +  fi
   16.99 +  rm -f conf$$.sh
  16.100 +fi
  16.101 +
  16.102 +
  16.103 +  as_lineno_1=$LINENO
  16.104 +  as_lineno_2=$LINENO
  16.105 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  16.106 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
  16.107 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  16.108 +  # Find who we are.  Look in the path if we contain no path at all
  16.109 +  # relative or not.
  16.110 +  case $0 in
  16.111 +    *[\\/]* ) as_myself=$0 ;;
  16.112 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16.113 +for as_dir in $PATH
  16.114 +do
  16.115 +  IFS=$as_save_IFS
  16.116 +  test -z "$as_dir" && as_dir=.
  16.117 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16.118 +done
  16.119 +
  16.120 +       ;;
  16.121 +  esac
  16.122 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
  16.123 +  # in which case we are not to be found in the path.
  16.124 +  if test "x$as_myself" = x; then
  16.125 +    as_myself=$0
  16.126 +  fi
  16.127 +  if test ! -f "$as_myself"; then
  16.128 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  16.129 +   { (exit 1); exit 1; }; }
  16.130 +  fi
  16.131 +  case $CONFIG_SHELL in
  16.132 +  '')
  16.133 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16.134 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16.135 +do
  16.136 +  IFS=$as_save_IFS
  16.137 +  test -z "$as_dir" && as_dir=.
  16.138 +  for as_base in sh bash ksh sh5; do
  16.139 +	 case $as_dir in
  16.140 +	 /*)
  16.141 +	   if ("$as_dir/$as_base" -c '
  16.142 +  as_lineno_1=$LINENO
  16.143 +  as_lineno_2=$LINENO
  16.144 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  16.145 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
  16.146 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  16.147 +	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  16.148 +	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  16.149 +	     CONFIG_SHELL=$as_dir/$as_base
  16.150 +	     export CONFIG_SHELL
  16.151 +	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  16.152 +	   fi;;
  16.153 +	 esac
  16.154 +       done
  16.155 +done
  16.156 +;;
  16.157 +  esac
  16.158 +
  16.159 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  16.160 +  # uniformly replaced by the line number.  The first 'sed' inserts a
  16.161 +  # line-number line before each line; the second 'sed' does the real
  16.162 +  # work.  The second script uses 'N' to pair each line-number line
  16.163 +  # with the numbered line, and appends trailing '-' during
  16.164 +  # substitution so that $LINENO is not a special case at line end.
  16.165 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  16.166 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  16.167 +  sed '=' <$as_myself |
  16.168 +    sed '
  16.169 +      N
  16.170 +      s,$,-,
  16.171 +      : loop
  16.172 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  16.173 +      t loop
  16.174 +      s,-$,,
  16.175 +      s,^['$as_cr_digits']*\n,,
  16.176 +    ' >$as_me.lineno &&
  16.177 +  chmod +x $as_me.lineno ||
  16.178 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16.179 +   { (exit 1); exit 1; }; }
  16.180 +
  16.181 +  # Don't try to exec as it changes $[0], causing all sort of problems
  16.182 +  # (the dirname of $[0] is not the place where we might find the
  16.183 +  # original and so on.  Autoconf is especially sensible to this).
  16.184 +  . ./$as_me.lineno
  16.185 +  # Exit status is that of the last command.
  16.186 +  exit
  16.187 +}
  16.188 +
  16.189 +
  16.190 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  16.191 +  *c*,-n*) ECHO_N= ECHO_C='
  16.192 +' ECHO_T='	' ;;
  16.193 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  16.194 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  16.195 +esac
  16.196 +
  16.197 +if expr a : '\(a\)' >/dev/null 2>&1; then
  16.198 +  as_expr=expr
  16.199 +else
  16.200 +  as_expr=false
  16.201 +fi
  16.202 +
  16.203 +rm -f conf$$ conf$$.exe conf$$.file
  16.204 +echo >conf$$.file
  16.205 +if ln -s conf$$.file conf$$ 2>/dev/null; then
  16.206 +  # We could just check for DJGPP; but this test a) works b) is more generic
  16.207 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  16.208 +  if test -f conf$$.exe; then
  16.209 +    # Don't use ln at all; we don't have any links
  16.210 +    as_ln_s='cp -p'
  16.211 +  else
  16.212 +    as_ln_s='ln -s'
  16.213 +  fi
  16.214 +elif ln conf$$.file conf$$ 2>/dev/null; then
  16.215 +  as_ln_s=ln
  16.216 +else
  16.217 +  as_ln_s='cp -p'
  16.218 +fi
  16.219 +rm -f conf$$ conf$$.exe conf$$.file
  16.220 +
  16.221 +if mkdir -p . 2>/dev/null; then
  16.222 +  as_mkdir_p=:
  16.223 +else
  16.224 +  test -d ./-p && rmdir ./-p
  16.225 +  as_mkdir_p=false
  16.226 +fi
  16.227 +
  16.228 +as_executable_p="test -f"
  16.229 +
  16.230 +# Sed expression to map a string onto a valid CPP name.
  16.231 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16.232 +
  16.233 +# Sed expression to map a string onto a valid variable name.
  16.234 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16.235 +
  16.236 +
  16.237 +# IFS
  16.238 +# We need space, tab and new line, in precisely that order.
  16.239 +as_nl='
  16.240 +'
  16.241 +IFS=" 	$as_nl"
  16.242 +
  16.243 +# CDPATH.
  16.244 +$as_unset CDPATH
  16.245 +
  16.246 +
  16.247 +# Name of the host.
  16.248 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  16.249 +# so uname gets run too.
  16.250 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  16.251 +
  16.252 +exec 6>&1
  16.253 +
  16.254 +#
  16.255 +# Initializations.
  16.256 +#
  16.257 +ac_default_prefix=/usr/local
  16.258 +ac_config_libobj_dir=.
  16.259 +cross_compiling=no
  16.260 +subdirs=
  16.261 +MFLAGS=
  16.262 +MAKEFLAGS=
  16.263 +SHELL=${CONFIG_SHELL-/bin/sh}
  16.264 +
  16.265 +# Maximum number of lines to put in a shell here document.
  16.266 +# This variable seems obsolete.  It should probably be removed, and
  16.267 +# only ac_max_sed_lines should be used.
  16.268 +: ${ac_max_here_lines=38}
  16.269 +
  16.270 +# Identity of this package.
  16.271 +PACKAGE_NAME='xm-test'
  16.272 +PACKAGE_TARNAME='xm-test'
  16.273 +PACKAGE_VERSION='0.4.0'
  16.274 +PACKAGE_STRING='xm-test 0.4.0'
  16.275 +PACKAGE_BUGREPORT=''
  16.276 +
  16.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'
  16.278 +ac_subst_files=''
  16.279 +
  16.280 +# Initialize some variables set by options.
  16.281 +ac_init_help=
  16.282 +ac_init_version=false
  16.283 +# The variables have the same names as the options, with
  16.284 +# dashes changed to underlines.
  16.285 +cache_file=/dev/null
  16.286 +exec_prefix=NONE
  16.287 +no_create=
  16.288 +no_recursion=
  16.289 +prefix=NONE
  16.290 +program_prefix=NONE
  16.291 +program_suffix=NONE
  16.292 +program_transform_name=s,x,x,
  16.293 +silent=
  16.294 +site=
  16.295 +srcdir=
  16.296 +verbose=
  16.297 +x_includes=NONE
  16.298 +x_libraries=NONE
  16.299 +
  16.300 +# Installation directory options.
  16.301 +# These are left unexpanded so users can "make install exec_prefix=/foo"
  16.302 +# and all the variables that are supposed to be based on exec_prefix
  16.303 +# by default will actually change.
  16.304 +# Use braces instead of parens because sh, perl, etc. also accept them.
  16.305 +bindir='${exec_prefix}/bin'
  16.306 +sbindir='${exec_prefix}/sbin'
  16.307 +libexecdir='${exec_prefix}/libexec'
  16.308 +datadir='${prefix}/share'
  16.309 +sysconfdir='${prefix}/etc'
  16.310 +sharedstatedir='${prefix}/com'
  16.311 +localstatedir='${prefix}/var'
  16.312 +libdir='${exec_prefix}/lib'
  16.313 +includedir='${prefix}/include'
  16.314 +oldincludedir='/usr/include'
  16.315 +infodir='${prefix}/info'
  16.316 +mandir='${prefix}/man'
  16.317 +
  16.318 +ac_prev=
  16.319 +for ac_option
  16.320 +do
  16.321 +  # If the previous option needs an argument, assign it.
  16.322 +  if test -n "$ac_prev"; then
  16.323 +    eval "$ac_prev=\$ac_option"
  16.324 +    ac_prev=
  16.325 +    continue
  16.326 +  fi
  16.327 +
  16.328 +  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  16.329 +
  16.330 +  # Accept the important Cygnus configure options, so we can diagnose typos.
  16.331 +
  16.332 +  case $ac_option in
  16.333 +
  16.334 +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  16.335 +    ac_prev=bindir ;;
  16.336 +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  16.337 +    bindir=$ac_optarg ;;
  16.338 +
  16.339 +  -build | --build | --buil | --bui | --bu)
  16.340 +    ac_prev=build_alias ;;
  16.341 +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  16.342 +    build_alias=$ac_optarg ;;
  16.343 +
  16.344 +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  16.345 +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  16.346 +    ac_prev=cache_file ;;
  16.347 +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  16.348 +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  16.349 +    cache_file=$ac_optarg ;;
  16.350 +
  16.351 +  --config-cache | -C)
  16.352 +    cache_file=config.cache ;;
  16.353 +
  16.354 +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  16.355 +    ac_prev=datadir ;;
  16.356 +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  16.357 +  | --da=*)
  16.358 +    datadir=$ac_optarg ;;
  16.359 +
  16.360 +  -disable-* | --disable-*)
  16.361 +    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  16.362 +    # Reject names that are not valid shell variable names.
  16.363 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16.364 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  16.365 +   { (exit 1); exit 1; }; }
  16.366 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  16.367 +    eval "enable_$ac_feature=no" ;;
  16.368 +
  16.369 +  -enable-* | --enable-*)
  16.370 +    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  16.371 +    # Reject names that are not valid shell variable names.
  16.372 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16.373 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  16.374 +   { (exit 1); exit 1; }; }
  16.375 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  16.376 +    case $ac_option in
  16.377 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  16.378 +      *) ac_optarg=yes ;;
  16.379 +    esac
  16.380 +    eval "enable_$ac_feature='$ac_optarg'" ;;
  16.381 +
  16.382 +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  16.383 +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  16.384 +  | --exec | --exe | --ex)
  16.385 +    ac_prev=exec_prefix ;;
  16.386 +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  16.387 +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  16.388 +  | --exec=* | --exe=* | --ex=*)
  16.389 +    exec_prefix=$ac_optarg ;;
  16.390 +
  16.391 +  -gas | --gas | --ga | --g)
  16.392 +    # Obsolete; use --with-gas.
  16.393 +    with_gas=yes ;;
  16.394 +
  16.395 +  -help | --help | --hel | --he | -h)
  16.396 +    ac_init_help=long ;;
  16.397 +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  16.398 +    ac_init_help=recursive ;;
  16.399 +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  16.400 +    ac_init_help=short ;;
  16.401 +
  16.402 +  -host | --host | --hos | --ho)
  16.403 +    ac_prev=host_alias ;;
  16.404 +  -host=* | --host=* | --hos=* | --ho=*)
  16.405 +    host_alias=$ac_optarg ;;
  16.406 +
  16.407 +  -includedir | --includedir | --includedi | --included | --include \
  16.408 +  | --includ | --inclu | --incl | --inc)
  16.409 +    ac_prev=includedir ;;
  16.410 +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  16.411 +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  16.412 +    includedir=$ac_optarg ;;
  16.413 +
  16.414 +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  16.415 +    ac_prev=infodir ;;
  16.416 +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  16.417 +    infodir=$ac_optarg ;;
  16.418 +
  16.419 +  -libdir | --libdir | --libdi | --libd)
  16.420 +    ac_prev=libdir ;;
  16.421 +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  16.422 +    libdir=$ac_optarg ;;
  16.423 +
  16.424 +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  16.425 +  | --libexe | --libex | --libe)
  16.426 +    ac_prev=libexecdir ;;
  16.427 +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  16.428 +  | --libexe=* | --libex=* | --libe=*)
  16.429 +    libexecdir=$ac_optarg ;;
  16.430 +
  16.431 +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  16.432 +  | --localstate | --localstat | --localsta | --localst \
  16.433 +  | --locals | --local | --loca | --loc | --lo)
  16.434 +    ac_prev=localstatedir ;;
  16.435 +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  16.436 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  16.437 +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  16.438 +    localstatedir=$ac_optarg ;;
  16.439 +
  16.440 +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  16.441 +    ac_prev=mandir ;;
  16.442 +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  16.443 +    mandir=$ac_optarg ;;
  16.444 +
  16.445 +  -nfp | --nfp | --nf)
  16.446 +    # Obsolete; use --without-fp.
  16.447 +    with_fp=no ;;
  16.448 +
  16.449 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  16.450 +  | --no-cr | --no-c | -n)
  16.451 +    no_create=yes ;;
  16.452 +
  16.453 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  16.454 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  16.455 +    no_recursion=yes ;;
  16.456 +
  16.457 +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  16.458 +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  16.459 +  | --oldin | --oldi | --old | --ol | --o)
  16.460 +    ac_prev=oldincludedir ;;
  16.461 +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  16.462 +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  16.463 +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  16.464 +    oldincludedir=$ac_optarg ;;
  16.465 +
  16.466 +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  16.467 +    ac_prev=prefix ;;
  16.468 +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  16.469 +    prefix=$ac_optarg ;;
  16.470 +
  16.471 +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  16.472 +  | --program-pre | --program-pr | --program-p)
  16.473 +    ac_prev=program_prefix ;;
  16.474 +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  16.475 +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  16.476 +    program_prefix=$ac_optarg ;;
  16.477 +
  16.478 +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  16.479 +  | --program-suf | --program-su | --program-s)
  16.480 +    ac_prev=program_suffix ;;
  16.481 +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  16.482 +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  16.483 +    program_suffix=$ac_optarg ;;
  16.484 +
  16.485 +  -program-transform-name | --program-transform-name \
  16.486 +  | --program-transform-nam | --program-transform-na \
  16.487 +  | --program-transform-n | --program-transform- \
  16.488 +  | --program-transform | --program-transfor \
  16.489 +  | --program-transfo | --program-transf \
  16.490 +  | --program-trans | --program-tran \
  16.491 +  | --progr-tra | --program-tr | --program-t)
  16.492 +    ac_prev=program_transform_name ;;
  16.493 +  -program-transform-name=* | --program-transform-name=* \
  16.494 +  | --program-transform-nam=* | --program-transform-na=* \
  16.495 +  | --program-transform-n=* | --program-transform-=* \
  16.496 +  | --program-transform=* | --program-transfor=* \
  16.497 +  | --program-transfo=* | --program-transf=* \
  16.498 +  | --program-trans=* | --program-tran=* \
  16.499 +  | --progr-tra=* | --program-tr=* | --program-t=*)
  16.500 +    program_transform_name=$ac_optarg ;;
  16.501 +
  16.502 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16.503 +  | -silent | --silent | --silen | --sile | --sil)
  16.504 +    silent=yes ;;
  16.505 +
  16.506 +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  16.507 +    ac_prev=sbindir ;;
  16.508 +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  16.509 +  | --sbi=* | --sb=*)
  16.510 +    sbindir=$ac_optarg ;;
  16.511 +
  16.512 +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  16.513 +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  16.514 +  | --sharedst | --shareds | --shared | --share | --shar \
  16.515 +  | --sha | --sh)
  16.516 +    ac_prev=sharedstatedir ;;
  16.517 +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  16.518 +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  16.519 +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  16.520 +  | --sha=* | --sh=*)
  16.521 +    sharedstatedir=$ac_optarg ;;
  16.522 +
  16.523 +  -site | --site | --sit)
  16.524 +    ac_prev=site ;;
  16.525 +  -site=* | --site=* | --sit=*)
  16.526 +    site=$ac_optarg ;;
  16.527 +
  16.528 +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  16.529 +    ac_prev=srcdir ;;
  16.530 +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  16.531 +    srcdir=$ac_optarg ;;
  16.532 +
  16.533 +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  16.534 +  | --syscon | --sysco | --sysc | --sys | --sy)
  16.535 +    ac_prev=sysconfdir ;;
  16.536 +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  16.537 +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  16.538 +    sysconfdir=$ac_optarg ;;
  16.539 +
  16.540 +  -target | --target | --targe | --targ | --tar | --ta | --t)
  16.541 +    ac_prev=target_alias ;;
  16.542 +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  16.543 +    target_alias=$ac_optarg ;;
  16.544 +
  16.545 +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  16.546 +    verbose=yes ;;
  16.547 +
  16.548 +  -version | --version | --versio | --versi | --vers | -V)
  16.549 +    ac_init_version=: ;;
  16.550 +
  16.551 +  -with-* | --with-*)
  16.552 +    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  16.553 +    # Reject names that are not valid shell variable names.
  16.554 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16.555 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
  16.556 +   { (exit 1); exit 1; }; }
  16.557 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  16.558 +    case $ac_option in
  16.559 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  16.560 +      *) ac_optarg=yes ;;
  16.561 +    esac
  16.562 +    eval "with_$ac_package='$ac_optarg'" ;;
  16.563 +
  16.564 +  -without-* | --without-*)
  16.565 +    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  16.566 +    # Reject names that are not valid shell variable names.
  16.567 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16.568 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
  16.569 +   { (exit 1); exit 1; }; }
  16.570 +    ac_package=`echo $ac_package | sed 's/-/_/g'`
  16.571 +    eval "with_$ac_package=no" ;;
  16.572 +
  16.573 +  --x)
  16.574 +    # Obsolete; use --with-x.
  16.575 +    with_x=yes ;;
  16.576 +
  16.577 +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  16.578 +  | --x-incl | --x-inc | --x-in | --x-i)
  16.579 +    ac_prev=x_includes ;;
  16.580 +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  16.581 +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  16.582 +    x_includes=$ac_optarg ;;
  16.583 +
  16.584 +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  16.585 +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  16.586 +    ac_prev=x_libraries ;;
  16.587 +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  16.588 +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  16.589 +    x_libraries=$ac_optarg ;;
  16.590 +
  16.591 +  -*) { echo "$as_me: error: unrecognized option: $ac_option
  16.592 +Try \`$0 --help' for more information." >&2
  16.593 +   { (exit 1); exit 1; }; }
  16.594 +    ;;
  16.595 +
  16.596 +  *=*)
  16.597 +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  16.598 +    # Reject names that are not valid shell variable names.
  16.599 +    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  16.600 +      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  16.601 +   { (exit 1); exit 1; }; }
  16.602 +    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  16.603 +    eval "$ac_envvar='$ac_optarg'"
  16.604 +    export $ac_envvar ;;
  16.605 +
  16.606 +  *)
  16.607 +    # FIXME: should be removed in autoconf 3.0.
  16.608 +    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  16.609 +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  16.610 +      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  16.611 +    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  16.612 +    ;;
  16.613 +
  16.614 +  esac
  16.615 +done
  16.616 +
  16.617 +if test -n "$ac_prev"; then
  16.618 +  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  16.619 +  { echo "$as_me: error: missing argument to $ac_option" >&2
  16.620 +   { (exit 1); exit 1; }; }
  16.621 +fi
  16.622 +
  16.623 +# Be sure to have absolute paths.
  16.624 +for ac_var in exec_prefix prefix
  16.625 +do
  16.626 +  eval ac_val=$`echo $ac_var`
  16.627 +  case $ac_val in
  16.628 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  16.629 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  16.630 +   { (exit 1); exit 1; }; };;
  16.631 +  esac
  16.632 +done
  16.633 +
  16.634 +# Be sure to have absolute paths.
  16.635 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  16.636 +	      localstatedir libdir includedir oldincludedir infodir mandir
  16.637 +do
  16.638 +  eval ac_val=$`echo $ac_var`
  16.639 +  case $ac_val in
  16.640 +    [\\/$]* | ?:[\\/]* ) ;;
  16.641 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  16.642 +   { (exit 1); exit 1; }; };;
  16.643 +  esac
  16.644 +done
  16.645 +
  16.646 +# There might be people who depend on the old broken behavior: `$host'
  16.647 +# used to hold the argument of --host etc.
  16.648 +# FIXME: To remove some day.
  16.649 +build=$build_alias
  16.650 +host=$host_alias
  16.651 +target=$target_alias
  16.652 +
  16.653 +# FIXME: To remove some day.
  16.654 +if test "x$host_alias" != x; then
  16.655 +  if test "x$build_alias" = x; then
  16.656 +    cross_compiling=maybe
  16.657 +    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  16.658 +    If a cross compiler is detected then cross compile mode will be used." >&2
  16.659 +  elif test "x$build_alias" != "x$host_alias"; then
  16.660 +    cross_compiling=yes
  16.661 +  fi
  16.662 +fi
  16.663 +
  16.664 +ac_tool_prefix=
  16.665 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  16.666 +
  16.667 +test "$silent" = yes && exec 6>/dev/null
  16.668 +
  16.669 +
  16.670 +# Find the source files, if location was not specified.
  16.671 +if test -z "$srcdir"; then
  16.672 +  ac_srcdir_defaulted=yes
  16.673 +  # Try the directory containing this script, then its parent.
  16.674 +  ac_confdir=`(dirname "$0") 2>/dev/null ||
  16.675 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16.676 +	 X"$0" : 'X\(//\)[^/]' \| \
  16.677 +	 X"$0" : 'X\(//\)$' \| \
  16.678 +	 X"$0" : 'X\(/\)' \| \
  16.679 +	 .     : '\(.\)' 2>/dev/null ||
  16.680 +echo X"$0" |
  16.681 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  16.682 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  16.683 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
  16.684 +  	  /^X\(\/\).*/{ s//\1/; q; }
  16.685 +  	  s/.*/./; q'`
  16.686 +  srcdir=$ac_confdir
  16.687 +  if test ! -r $srcdir/$ac_unique_file; then
  16.688 +    srcdir=..
  16.689 +  fi
  16.690 +else
  16.691 +  ac_srcdir_defaulted=no
  16.692 +fi
  16.693 +if test ! -r $srcdir/$ac_unique_file; then
  16.694 +  if test "$ac_srcdir_defaulted" = yes; then
  16.695 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  16.696 +   { (exit 1); exit 1; }; }
  16.697 +  else
  16.698 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  16.699 +   { (exit 1); exit 1; }; }
  16.700 +  fi
  16.701 +fi
  16.702 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  16.703 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  16.704 +   { (exit 1); exit 1; }; }
  16.705 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  16.706 +ac_env_build_alias_set=${build_alias+set}
  16.707 +ac_env_build_alias_value=$build_alias
  16.708 +ac_cv_env_build_alias_set=${build_alias+set}
  16.709 +ac_cv_env_build_alias_value=$build_alias
  16.710 +ac_env_host_alias_set=${host_alias+set}
  16.711 +ac_env_host_alias_value=$host_alias
  16.712 +ac_cv_env_host_alias_set=${host_alias+set}
  16.713 +ac_cv_env_host_alias_value=$host_alias
  16.714 +ac_env_target_alias_set=${target_alias+set}
  16.715 +ac_env_target_alias_value=$target_alias
  16.716 +ac_cv_env_target_alias_set=${target_alias+set}
  16.717 +ac_cv_env_target_alias_value=$target_alias
  16.718 +ac_env_CC_set=${CC+set}
  16.719 +ac_env_CC_value=$CC
  16.720 +ac_cv_env_CC_set=${CC+set}
  16.721 +ac_cv_env_CC_value=$CC
  16.722 +ac_env_CFLAGS_set=${CFLAGS+set}
  16.723 +ac_env_CFLAGS_value=$CFLAGS
  16.724 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  16.725 +ac_cv_env_CFLAGS_value=$CFLAGS
  16.726 +ac_env_LDFLAGS_set=${LDFLAGS+set}
  16.727 +ac_env_LDFLAGS_value=$LDFLAGS
  16.728 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  16.729 +ac_cv_env_LDFLAGS_value=$LDFLAGS
  16.730 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  16.731 +ac_env_CPPFLAGS_value=$CPPFLAGS
  16.732 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  16.733 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  16.734 +
  16.735 +#
  16.736 +# Report the --help message.
  16.737 +#
  16.738 +if test "$ac_init_help" = "long"; then
  16.739 +  # Omit some internal or obsolete options to make the list less imposing.
  16.740 +  # This message is too long to be a string in the A/UX 3.1 sh.
  16.741 +  cat <<_ACEOF
  16.742 +\`configure' configures xm-test 0.4.0 to adapt to many kinds of systems.
  16.743 +
  16.744 +Usage: $0 [OPTION]... [VAR=VALUE]...
  16.745 +
  16.746 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  16.747 +VAR=VALUE.  See below for descriptions of some of the useful variables.
  16.748 +
  16.749 +Defaults for the options are specified in brackets.
  16.750 +
  16.751 +Configuration:
  16.752 +  -h, --help              display this help and exit
  16.753 +      --help=short        display options specific to this package
  16.754 +      --help=recursive    display the short help of all the included packages
  16.755 +  -V, --version           display version information and exit
  16.756 +  -q, --quiet, --silent   do not print \`checking...' messages
  16.757 +      --cache-file=FILE   cache test results in FILE [disabled]
  16.758 +  -C, --config-cache      alias for \`--cache-file=config.cache'
  16.759 +  -n, --no-create         do not create output files
  16.760 +      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  16.761 +
  16.762 +_ACEOF
  16.763 +
  16.764 +  cat <<_ACEOF
  16.765 +Installation directories:
  16.766 +  --prefix=PREFIX         install architecture-independent files in PREFIX
  16.767 +			  [$ac_default_prefix]
  16.768 +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  16.769 +			  [PREFIX]
  16.770 +
  16.771 +By default, \`make install' will install all the files in
  16.772 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  16.773 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  16.774 +for instance \`--prefix=\$HOME'.
  16.775 +
  16.776 +For better control, use the options below.
  16.777 +
  16.778 +Fine tuning of the installation directories:
  16.779 +  --bindir=DIR           user executables [EPREFIX/bin]
  16.780 +  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  16.781 +  --libexecdir=DIR       program executables [EPREFIX/libexec]
  16.782 +  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  16.783 +  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  16.784 +  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  16.785 +  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  16.786 +  --libdir=DIR           object code libraries [EPREFIX/lib]
  16.787 +  --includedir=DIR       C header files [PREFIX/include]
  16.788 +  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  16.789 +  --infodir=DIR          info documentation [PREFIX/info]
  16.790 +  --mandir=DIR           man documentation [PREFIX/man]
  16.791 +_ACEOF
  16.792 +
  16.793 +  cat <<\_ACEOF
  16.794 +
  16.795 +Program names:
  16.796 +  --program-prefix=PREFIX            prepend PREFIX to installed program names
  16.797 +  --program-suffix=SUFFIX            append SUFFIX to installed program names
  16.798 +  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  16.799 +_ACEOF
  16.800 +fi
  16.801 +
  16.802 +if test -n "$ac_init_help"; then
  16.803 +  case $ac_init_help in
  16.804 +     short | recursive ) echo "Configuration of xm-test 0.4.0:";;
  16.805 +   esac
  16.806 +  cat <<\_ACEOF
  16.807 +
  16.808 +Optional Features:
  16.809 +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  16.810 +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  16.811 +  --disable-dependency-tracking  speeds up one-time build
  16.812 +  --enable-dependency-tracking   do not reject slow dependency extractors
  16.813 +  --enable-vmx-support           use block devices instead of ramdisks
  16.814 +
  16.815 +Some influential environment variables:
  16.816 +  CC          C compiler command
  16.817 +  CFLAGS      C compiler flags
  16.818 +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  16.819 +              nonstandard directory <lib dir>
  16.820 +  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
  16.821 +              headers in a nonstandard directory <include dir>
  16.822 +
  16.823 +Use these variables to override the choices made by `configure' or to help
  16.824 +it to find libraries and programs with nonstandard names/locations.
  16.825 +
  16.826 +_ACEOF
  16.827 +fi
  16.828 +
  16.829 +if test "$ac_init_help" = "recursive"; then
  16.830 +  # If there are subdirs, report their specific --help.
  16.831 +  ac_popdir=`pwd`
  16.832 +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  16.833 +    test -d $ac_dir || continue
  16.834 +    ac_builddir=.
  16.835 +
  16.836 +if test "$ac_dir" != .; then
  16.837 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  16.838 +  # A "../" for each directory in $ac_dir_suffix.
  16.839 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  16.840 +else
  16.841 +  ac_dir_suffix= ac_top_builddir=
  16.842 +fi
  16.843 +
  16.844 +case $srcdir in
  16.845 +  .)  # No --srcdir option.  We are building in place.
  16.846 +    ac_srcdir=.
  16.847 +    if test -z "$ac_top_builddir"; then
  16.848 +       ac_top_srcdir=.
  16.849 +    else
  16.850 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  16.851 +    fi ;;
  16.852 +  [\\/]* | ?:[\\/]* )  # Absolute path.
  16.853 +    ac_srcdir=$srcdir$ac_dir_suffix;
  16.854 +    ac_top_srcdir=$srcdir ;;
  16.855 +  *) # Relative path.
  16.856 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  16.857 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
  16.858 +esac
  16.859 +
  16.860 +# Do not use `cd foo && pwd` to compute absolute paths, because
  16.861 +# the directories may not exist.
  16.862 +case `pwd` in
  16.863 +.) ac_abs_builddir="$ac_dir";;
  16.864 +*)
  16.865 +  case "$ac_dir" in
  16.866 +  .) ac_abs_builddir=`pwd`;;
  16.867 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  16.868 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
  16.869 +  esac;;
  16.870 +esac
  16.871 +case $ac_abs_builddir in
  16.872 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  16.873 +*)
  16.874 +  case ${ac_top_builddir}. in
  16.875 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
  16.876 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  16.877 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  16.878 +  esac;;
  16.879 +esac
  16.880 +case $ac_abs_builddir in
  16.881 +.) ac_abs_srcdir=$ac_srcdir;;
  16.882 +*)
  16.883 +  case $ac_srcdir in
  16.884 +  .) ac_abs_srcdir=$ac_abs_builddir;;
  16.885 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  16.886 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  16.887 +  esac;;
  16.888 +esac
  16.889 +case $ac_abs_builddir in
  16.890 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  16.891 +*)
  16.892 +  case $ac_top_srcdir in
  16.893 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
  16.894 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  16.895 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  16.896 +  esac;;
  16.897 +esac
  16.898 +
  16.899 +    cd $ac_dir
  16.900 +    # Check for guested configure; otherwise get Cygnus style configure.
  16.901 +    if test -f $ac_srcdir/configure.gnu; then
  16.902 +      echo
  16.903 +      $SHELL $ac_srcdir/configure.gnu  --help=recursive
  16.904 +    elif test -f $ac_srcdir/configure; then
  16.905 +      echo
  16.906 +      $SHELL $ac_srcdir/configure  --help=recursive
  16.907 +    elif test -f $ac_srcdir/configure.ac ||
  16.908 +	   test -f $ac_srcdir/configure.in; then
  16.909 +      echo
  16.910 +      $ac_configure --help
  16.911 +    else
  16.912 +      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  16.913 +    fi
  16.914 +    cd $ac_popdir
  16.915 +  done
  16.916 +fi
  16.917 +
  16.918 +test -n "$ac_init_help" && exit 0
  16.919 +if $ac_init_version; then
  16.920 +  cat <<\_ACEOF
  16.921 +xm-test configure 0.4.0
  16.922 +generated by GNU Autoconf 2.59
  16.923 +
  16.924 +Copyright (C) 2003 Free Software Foundation, Inc.
  16.925 +This configure script is free software; the Free Software Foundation
  16.926 +gives unlimited permission to copy, distribute and modify it.
  16.927 +_ACEOF
  16.928 +  exit 0
  16.929 +fi
  16.930 +exec 5>config.log
  16.931 +cat >&5 <<_ACEOF
  16.932 +This file contains any messages produced by compilers while
  16.933 +running configure, to aid debugging if configure makes a mistake.
  16.934 +
  16.935 +It was created by xm-test $as_me 0.4.0, which was
  16.936 +generated by GNU Autoconf 2.59.  Invocation command line was
  16.937 +
  16.938 +  $ $0 $@
  16.939 +
  16.940 +_ACEOF
  16.941 +{
  16.942 +cat <<_ASUNAME
  16.943 +## --------- ##
  16.944 +## Platform. ##
  16.945 +## --------- ##
  16.946 +
  16.947 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  16.948 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  16.949 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  16.950 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  16.951 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  16.952 +
  16.953 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  16.954 +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  16.955 +
  16.956 +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  16.957 +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  16.958 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  16.959 +hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
  16.960 +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  16.961 +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  16.962 +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  16.963 +
  16.964 +_ASUNAME
  16.965 +
  16.966 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16.967 +for as_dir in $PATH
  16.968 +do
  16.969 +  IFS=$as_save_IFS
  16.970 +  test -z "$as_dir" && as_dir=.
  16.971 +  echo "PATH: $as_dir"
  16.972 +done
  16.973 +
  16.974 +} >&5
  16.975 +
  16.976 +cat >&5 <<_ACEOF
  16.977 +
  16.978 +
  16.979 +## ----------- ##
  16.980 +## Core tests. ##
  16.981 +## ----------- ##
  16.982 +
  16.983 +_ACEOF
  16.984 +
  16.985 +
  16.986 +# Keep a trace of the command line.
  16.987 +# Strip out --no-create and --no-recursion so they do not pile up.
  16.988 +# Strip out --silent because we don't want to record it for future runs.
  16.989 +# Also quote any args containing shell meta-characters.
  16.990 +# Make two passes to allow for proper duplicate-argument suppression.
  16.991 +ac_configure_args=
  16.992 +ac_configure_args0=
  16.993 +ac_configure_args1=
  16.994 +ac_sep=
  16.995 +ac_must_keep_next=false
  16.996 +for ac_pass in 1 2
  16.997 +do
  16.998 +  for ac_arg
  16.999 +  do
 16.1000 +    case $ac_arg in
 16.1001 +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 16.1002 +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 16.1003 +    | -silent | --silent | --silen | --sile | --sil)
 16.1004 +      continue ;;
 16.1005 +    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 16.1006 +      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 16.1007 +    esac
 16.1008 +    case $ac_pass in
 16.1009 +    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 16.1010 +    2)
 16.1011 +      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 16.1012 +      if test $ac_must_keep_next = true; then
 16.1013 +	ac_must_keep_next=false # Got value, back to normal.
 16.1014 +      else
 16.1015 +	case $ac_arg in
 16.1016 +	  *=* | --config-cache | -C | -disable-* | --disable-* \
 16.1017 +	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 16.1018 +	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 16.1019 +	  | -with-* | --with-* | -without-* | --without-* | --x)
 16.1020 +	    case "$ac_configure_args0 " in
 16.1021 +	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 16.1022 +	    esac
 16.1023 +	    ;;
 16.1024 +	  -* ) ac_must_keep_next=true ;;
 16.1025 +	esac
 16.1026 +      fi
 16.1027 +      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 16.1028 +      # Get rid of the leading space.
 16.1029 +      ac_sep=" "
 16.1030 +      ;;
 16.1031 +    esac
 16.1032 +  done
 16.1033 +done
 16.1034 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 16.1035 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 16.1036 +
 16.1037 +# When interrupted or exit'd, cleanup temporary files, and complete
 16.1038 +# config.log.  We remove comments because anyway the quotes in there
 16.1039 +# would cause problems or look ugly.
 16.1040 +# WARNING: Be sure not to use single quotes in there, as some shells,
 16.1041 +# such as our DU 5.0 friend, will then `close' the trap.
 16.1042 +trap 'exit_status=$?
 16.1043 +  # Save into config.log some information that might help in debugging.
 16.1044 +  {
 16.1045 +    echo
 16.1046 +
 16.1047 +    cat <<\_ASBOX
 16.1048 +## ---------------- ##
 16.1049 +## Cache variables. ##
 16.1050 +## ---------------- ##
 16.1051 +_ASBOX
 16.1052 +    echo
 16.1053 +    # The following way of writing the cache mishandles newlines in values,
 16.1054 +{
 16.1055 +  (set) 2>&1 |
 16.1056 +    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 16.1057 +    *ac_space=\ *)
 16.1058 +      sed -n \
 16.1059 +	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 16.1060 +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 16.1061 +      ;;
 16.1062 +    *)
 16.1063 +      sed -n \
 16.1064 +	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 16.1065 +      ;;
 16.1066 +    esac;
 16.1067 +}
 16.1068 +    echo
 16.1069 +
 16.1070 +    cat <<\_ASBOX
 16.1071 +## ----------------- ##
 16.1072 +## Output variables. ##
 16.1073 +## ----------------- ##
 16.1074 +_ASBOX
 16.1075 +    echo
 16.1076 +    for ac_var in $ac_subst_vars
 16.1077 +    do
 16.1078 +      eval ac_val=$`echo $ac_var`
 16.1079 +      echo "$ac_var='"'"'$ac_val'"'"'"
 16.1080 +    done | sort
 16.1081 +    echo
 16.1082 +
 16.1083 +    if test -n "$ac_subst_files"; then
 16.1084 +      cat <<\_ASBOX
 16.1085 +## ------------- ##
 16.1086 +## Output files. ##
 16.1087 +## ------------- ##
 16.1088 +_ASBOX
 16.1089 +      echo
 16.1090 +      for ac_var in $ac_subst_files
 16.1091 +      do
 16.1092 +	eval ac_val=$`echo $ac_var`
 16.1093 +	echo "$ac_var='"'"'$ac_val'"'"'"
 16.1094 +      done | sort
 16.1095 +      echo
 16.1096 +    fi
 16.1097 +
 16.1098 +    if test -s confdefs.h; then
 16.1099 +      cat <<\_ASBOX
 16.1100 +## ----------- ##
 16.1101 +## confdefs.h. ##
 16.1102 +## ----------- ##
 16.1103 +_ASBOX
 16.1104 +      echo
 16.1105 +      sed "/^$/d" confdefs.h | sort
 16.1106 +      echo
 16.1107 +    fi
 16.1108 +    test "$ac_signal" != 0 &&
 16.1109 +      echo "$as_me: caught signal $ac_signal"
 16.1110 +    echo "$as_me: exit $exit_status"
 16.1111 +  } >&5
 16.1112 +  rm -f core *.core &&
 16.1113 +  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 16.1114 +    exit $exit_status
 16.1115 +     ' 0
 16.1116 +for ac_signal in 1 2 13 15; do
 16.1117 +  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 16.1118 +done
 16.1119 +ac_signal=0
 16.1120 +
 16.1121 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
 16.1122 +rm -rf conftest* confdefs.h
 16.1123 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 16.1124 +echo >confdefs.h
 16.1125 +
 16.1126 +# Predefined preprocessor variables.
 16.1127 +
 16.1128 +cat >>confdefs.h <<_ACEOF
 16.1129 +#define PACKAGE_NAME "$PACKAGE_NAME"
 16.1130 +_ACEOF
 16.1131 +
 16.1132 +
 16.1133 +cat >>confdefs.h <<_ACEOF
 16.1134 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 16.1135 +_ACEOF
 16.1136 +
 16.1137 +
 16.1138 +cat >>confdefs.h <<_ACEOF
 16.1139 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
 16.1140 +_ACEOF
 16.1141 +
 16.1142 +
 16.1143 +cat >>confdefs.h <<_ACEOF
 16.1144 +#define PACKAGE_STRING "$PACKAGE_STRING"
 16.1145 +_ACEOF
 16.1146 +
 16.1147 +
 16.1148 +cat >>confdefs.h <<_ACEOF
 16.1149 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 16.1150 +_ACEOF
 16.1151 +
 16.1152 +
 16.1153 +# Let the site file select an alternate cache file if it wants to.
 16.1154 +# Prefer explicitly selected file to automatically selected ones.
 16.1155 +if test -z "$CONFIG_SITE"; then
 16.1156 +  if test "x$prefix" != xNONE; then
 16.1157 +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 16.1158 +  else
 16.1159 +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 16.1160 +  fi
 16.1161 +fi
 16.1162 +for ac_site_file in $CONFIG_SITE; do
 16.1163 +  if test -r "$ac_site_file"; then
 16.1164 +    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 16.1165 +echo "$as_me: loading site script $ac_site_file" >&6;}
 16.1166 +    sed 's/^/| /' "$ac_site_file" >&5
 16.1167 +    . "$ac_site_file"
 16.1168 +  fi
 16.1169 +done
 16.1170 +
 16.1171 +if test -r "$cache_file"; then
 16.1172 +  # Some versions of bash will fail to source /dev/null (special
 16.1173 +  # files actually), so we avoid doing that.
 16.1174 +  if test -f "$cache_file"; then
 16.1175 +    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 16.1176 +echo "$as_me: loading cache $cache_file" >&6;}
 16.1177 +    case $cache_file in
 16.1178 +      [\\/]* | ?:[\\/]* ) . $cache_file;;
 16.1179 +      *)                      . ./$cache_file;;
 16.1180 +    esac
 16.1181 +  fi
 16.1182 +else
 16.1183 +  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 16.1184 +echo "$as_me: creating cache $cache_file" >&6;}
 16.1185 +  >$cache_file
 16.1186 +fi
 16.1187 +
 16.1188 +# Check that the precious variables saved in the cache have kept the same
 16.1189 +# value.
 16.1190 +ac_cache_corrupted=false
 16.1191 +for ac_var in `(set) 2>&1 |
 16.1192 +	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 16.1193 +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 16.1194 +  eval ac_new_set=\$ac_env_${ac_var}_set
 16.1195 +  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 16.1196 +  eval ac_new_val="\$ac_env_${ac_var}_value"
 16.1197 +  case $ac_old_set,$ac_new_set in
 16.1198 +    set,)
 16.1199 +      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 16.1200 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 16.1201 +      ac_cache_corrupted=: ;;
 16.1202 +    ,set)
 16.1203 +      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 16.1204 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 16.1205 +      ac_cache_corrupted=: ;;
 16.1206 +    ,);;
 16.1207 +    *)
 16.1208 +      if test "x$ac_old_val" != "x$ac_new_val"; then
 16.1209 +	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 16.1210 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 16.1211 +	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 16.1212 +echo "$as_me:   former value:  $ac_old_val" >&2;}
 16.1213 +	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 16.1214 +echo "$as_me:   current value: $ac_new_val" >&2;}
 16.1215 +	ac_cache_corrupted=:
 16.1216 +      fi;;
 16.1217 +  esac
 16.1218 +  # Pass precious variables to config.status.
 16.1219 +  if test "$ac_new_set" = set; then
 16.1220 +    case $ac_new_val in
 16.1221 +    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 16.1222 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 16.1223 +    *) ac_arg=$ac_var=$ac_new_val ;;
 16.1224 +    esac
 16.1225 +    case " $ac_configure_args " in
 16.1226 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 16.1227 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 16.1228 +    esac
 16.1229 +  fi
 16.1230 +done
 16.1231 +if $ac_cache_corrupted; then
 16.1232 +  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 16.1233 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 16.1234 +  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 16.1235 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 16.1236 +   { (exit 1); exit 1; }; }
 16.1237 +fi
 16.1238 +
 16.1239 +ac_ext=c
 16.1240 +ac_cpp='$CPP $CPPFLAGS'
 16.1241 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 16.1242 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 16.1243 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 16.1244 +
 16.1245 +
 16.1246 +
 16.1247 +
 16.1248 +
 16.1249 +
 16.1250 +
 16.1251 +
 16.1252 +
 16.1253 +
 16.1254 +
 16.1255 +
 16.1256 +
 16.1257 +
 16.1258 +
 16.1259 +
 16.1260 +
 16.1261 +
 16.1262 +
 16.1263 +
 16.1264 +
 16.1265 +
 16.1266 +
 16.1267 +
 16.1268 +
 16.1269 +
 16.1270 +
 16.1271 +am__api_version="1.9"
 16.1272 +ac_aux_dir=
 16.1273 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 16.1274 +  if test -f $ac_dir/install-sh; then
 16.1275 +    ac_aux_dir=$ac_dir
 16.1276 +    ac_install_sh="$ac_aux_dir/install-sh -c"
 16.1277 +    break
 16.1278 +  elif test -f $ac_dir/install.sh; then
 16.1279 +    ac_aux_dir=$ac_dir
 16.1280 +    ac_install_sh="$ac_aux_dir/install.sh -c"
 16.1281 +    break
 16.1282 +  elif test -f $ac_dir/shtool; then
 16.1283 +    ac_aux_dir=$ac_dir
 16.1284 +    ac_install_sh="$ac_aux_dir/shtool install -c"
 16.1285 +    break
 16.1286 +  fi
 16.1287 +done
 16.1288 +if test -z "$ac_aux_dir"; then
 16.1289 +  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 16.1290 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 16.1291 +   { (exit 1); exit 1; }; }
 16.1292 +fi
 16.1293 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 16.1294 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 16.1295 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 16.1296 +
 16.1297 +# Find a good install program.  We prefer a C program (faster),
 16.1298 +# so one script is as good as another.  But avoid the broken or
 16.1299 +# incompatible versions:
 16.1300 +# SysV /etc/install, /usr/sbin/install
 16.1301 +# SunOS /usr/etc/install
 16.1302 +# IRIX /sbin/install
 16.1303 +# AIX /bin/install
 16.1304 +# AmigaOS /C/install, which installs bootblocks on floppy discs
 16.1305 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 16.1306 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 16.1307 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 16.1308 +# OS/2's system install, which has a completely different semantic
 16.1309 +# ./install, which can be erroneously created by make from ./install.sh.
 16.1310 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 16.1311 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 16.1312 +if test -z "$INSTALL"; then
 16.1313 +if test "${ac_cv_path_install+set}" = set; then
 16.1314 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1315 +else
 16.1316 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1317 +for as_dir in $PATH
 16.1318 +do
 16.1319 +  IFS=$as_save_IFS
 16.1320 +  test -z "$as_dir" && as_dir=.
 16.1321 +  # Account for people who put trailing slashes in PATH elements.
 16.1322 +case $as_dir/ in
 16.1323 +  ./ | .// | /cC/* | \
 16.1324 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 16.1325 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 16.1326 +  /usr/ucb/* ) ;;
 16.1327 +  *)
 16.1328 +    # OSF1 and SCO ODT 3.0 have their own names for install.
 16.1329 +    # Don't use installbsd from OSF since it installs stuff as root
 16.1330 +    # by default.
 16.1331 +    for ac_prog in ginstall scoinst install; do
 16.1332 +      for ac_exec_ext in '' $ac_executable_extensions; do
 16.1333 +	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 16.1334 +	  if test $ac_prog = install &&
 16.1335 +	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 16.1336 +	    # AIX install.  It has an incompatible calling convention.
 16.1337 +	    :
 16.1338 +	  elif test $ac_prog = install &&
 16.1339 +	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 16.1340 +	    # program-specific install script used by HP pwplus--don't use.
 16.1341 +	    :
 16.1342 +	  else
 16.1343 +	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 16.1344 +	    break 3
 16.1345 +	  fi
 16.1346 +	fi
 16.1347 +      done
 16.1348 +    done
 16.1349 +    ;;
 16.1350 +esac
 16.1351 +done
 16.1352 +
 16.1353 +
 16.1354 +fi
 16.1355 +  if test "${ac_cv_path_install+set}" = set; then
 16.1356 +    INSTALL=$ac_cv_path_install
 16.1357 +  else
 16.1358 +    # As a last resort, use the slow shell script.  We don't cache a
 16.1359 +    # path for INSTALL within a source directory, because that will
 16.1360 +    # break other packages using the cache if that directory is
 16.1361 +    # removed, or if the path is relative.
 16.1362 +    INSTALL=$ac_install_sh
 16.1363 +  fi
 16.1364 +fi
 16.1365 +echo "$as_me:$LINENO: result: $INSTALL" >&5
 16.1366 +echo "${ECHO_T}$INSTALL" >&6
 16.1367 +
 16.1368 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 16.1369 +# It thinks the first close brace ends the variable substitution.
 16.1370 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 16.1371 +
 16.1372 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 16.1373 +
 16.1374 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 16.1375 +
 16.1376 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 16.1377 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 16.1378 +# Just in case
 16.1379 +sleep 1
 16.1380 +echo timestamp > conftest.file
 16.1381 +# Do `set' in a subshell so we don't clobber the current shell's
 16.1382 +# arguments.  Must try -L first in case configure is actually a
 16.1383 +# symlink; some systems play weird games with the mod time of symlinks
 16.1384 +# (eg FreeBSD returns the mod time of the symlink's containing
 16.1385 +# directory).
 16.1386 +if (
 16.1387 +   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 16.1388 +   if test "$*" = "X"; then
 16.1389 +      # -L didn't work.
 16.1390 +      set X `ls -t $srcdir/configure conftest.file`
 16.1391 +   fi
 16.1392 +   rm -f conftest.file
 16.1393 +   if test "$*" != "X $srcdir/configure conftest.file" \
 16.1394 +      && test "$*" != "X conftest.file $srcdir/configure"; then
 16.1395 +
 16.1396 +      # If neither matched, then we have a broken ls.  This can happen
 16.1397 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
 16.1398 +      # broken ls alias from the environment.  This has actually
 16.1399 +      # happened.  Such a system could not be considered "sane".
 16.1400 +      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 16.1401 +alias in your environment" >&5
 16.1402 +echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 16.1403 +alias in your environment" >&2;}
 16.1404 +   { (exit 1); exit 1; }; }
 16.1405 +   fi
 16.1406 +
 16.1407 +   test "$2" = conftest.file
 16.1408 +   )
 16.1409 +then
 16.1410 +   # Ok.
 16.1411 +   :
 16.1412 +else
 16.1413 +   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 16.1414 +Check your system clock" >&5
 16.1415 +echo "$as_me: error: newly created file is older than distributed files!
 16.1416 +Check your system clock" >&2;}
 16.1417 +   { (exit 1); exit 1; }; }
 16.1418 +fi
 16.1419 +echo "$as_me:$LINENO: result: yes" >&5
 16.1420 +echo "${ECHO_T}yes" >&6
 16.1421 +test "$program_prefix" != NONE &&
 16.1422 +  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 16.1423 +# Use a double $ so make ignores it.
 16.1424 +test "$program_suffix" != NONE &&
 16.1425 +  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 16.1426 +# Double any \ or $.  echo might interpret backslashes.
 16.1427 +# By default was `s,x,x', remove it if useless.
 16.1428 +cat <<\_ACEOF >conftest.sed
 16.1429 +s/[\\$]/&&/g;s/;s,x,x,$//
 16.1430 +_ACEOF
 16.1431 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 16.1432 +rm conftest.sed
 16.1433 +
 16.1434 +# expand $ac_aux_dir to an absolute path
 16.1435 +am_aux_dir=`cd $ac_aux_dir && pwd`
 16.1436 +
 16.1437 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 16.1438 +# Use eval to expand $SHELL
 16.1439 +if eval "$MISSING --run true"; then
 16.1440 +  am_missing_run="$MISSING --run "
 16.1441 +else
 16.1442 +  am_missing_run=
 16.1443 +  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 16.1444 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 16.1445 +fi
 16.1446 +
 16.1447 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 16.1448 +  # We used to keeping the `.' as first argument, in order to
 16.1449 +  # allow $(mkdir_p) to be used without argument.  As in
 16.1450 +  #   $(mkdir_p) $(somedir)
 16.1451 +  # where $(somedir) is conditionally defined.  However this is wrong
 16.1452 +  # for two reasons:
 16.1453 +  #  1. if the package is installed by a user who cannot write `.'
 16.1454 +  #     make install will fail,
 16.1455 +  #  2. the above comment should most certainly read
 16.1456 +  #     $(mkdir_p) $(DESTDIR)$(somedir)
 16.1457 +  #     so it does not work when $(somedir) is undefined and
 16.1458 +  #     $(DESTDIR) is not.
 16.1459 +  #  To support the latter case, we have to write
 16.1460 +  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 16.1461 +  #  so the `.' trick is pointless.
 16.1462 +  mkdir_p='mkdir -p --'
 16.1463 +else
 16.1464 +  # On NextStep and OpenStep, the `mkdir' command does not
 16.1465 +  # recognize any option.  It will interpret all options as
 16.1466 +  # directories to create, and then abort because `.' already
 16.1467 +  # exists.
 16.1468 +  for d in ./-p ./--version;
 16.1469 +  do
 16.1470 +    test -d $d && rmdir $d
 16.1471 +  done
 16.1472 +  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 16.1473 +  if test -f "$ac_aux_dir/mkinstalldirs"; then
 16.1474 +    mkdir_p='$(mkinstalldirs)'
 16.1475 +  else
 16.1476 +    mkdir_p='$(install_sh) -d'
 16.1477 +  fi
 16.1478 +fi
 16.1479 +
 16.1480 +for ac_prog in gawk mawk nawk awk
 16.1481 +do
 16.1482 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
 16.1483 +set dummy $ac_prog; ac_word=$2
 16.1484 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.1485 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.1486 +if test "${ac_cv_prog_AWK+set}" = set; then
 16.1487 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1488 +else
 16.1489 +  if test -n "$AWK"; then
 16.1490 +  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 16.1491 +else
 16.1492 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1493 +for as_dir in $PATH
 16.1494 +do
 16.1495 +  IFS=$as_save_IFS
 16.1496 +  test -z "$as_dir" && as_dir=.
 16.1497 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.1498 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.1499 +    ac_cv_prog_AWK="$ac_prog"
 16.1500 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.1501 +    break 2
 16.1502 +  fi
 16.1503 +done
 16.1504 +done
 16.1505 +
 16.1506 +fi
 16.1507 +fi
 16.1508 +AWK=$ac_cv_prog_AWK
 16.1509 +if test -n "$AWK"; then
 16.1510 +  echo "$as_me:$LINENO: result: $AWK" >&5
 16.1511 +echo "${ECHO_T}$AWK" >&6
 16.1512 +else
 16.1513 +  echo "$as_me:$LINENO: result: no" >&5
 16.1514 +echo "${ECHO_T}no" >&6
 16.1515 +fi
 16.1516 +
 16.1517 +  test -n "$AWK" && break
 16.1518 +done
 16.1519 +
 16.1520 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 16.1521 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 16.1522 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 16.1523 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 16.1524 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1525 +else
 16.1526 +  cat >conftest.make <<\_ACEOF
 16.1527 +all:
 16.1528 +	@echo 'ac_maketemp="$(MAKE)"'
 16.1529 +_ACEOF
 16.1530 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 16.1531 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 16.1532 +if test -n "$ac_maketemp"; then
 16.1533 +  eval ac_cv_prog_make_${ac_make}_set=yes
 16.1534 +else
 16.1535 +  eval ac_cv_prog_make_${ac_make}_set=no
 16.1536 +fi
 16.1537 +rm -f conftest.make
 16.1538 +fi
 16.1539 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 16.1540 +  echo "$as_me:$LINENO: result: yes" >&5
 16.1541 +echo "${ECHO_T}yes" >&6
 16.1542 +  SET_MAKE=
 16.1543 +else
 16.1544 +  echo "$as_me:$LINENO: result: no" >&5
 16.1545 +echo "${ECHO_T}no" >&6
 16.1546 +  SET_MAKE="MAKE=${MAKE-make}"
 16.1547 +fi
 16.1548 +
 16.1549 +rm -rf .tst 2>/dev/null
 16.1550 +mkdir .tst 2>/dev/null
 16.1551 +if test -d .tst; then
 16.1552 +  am__leading_dot=.
 16.1553 +else
 16.1554 +  am__leading_dot=_
 16.1555 +fi
 16.1556 +rmdir .tst 2>/dev/null
 16.1557 +
 16.1558 +# test to see if srcdir already configured
 16.1559 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
 16.1560 +   test -f $srcdir/config.status; then
 16.1561 +  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 16.1562 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 16.1563 +   { (exit 1); exit 1; }; }
 16.1564 +fi
 16.1565 +
 16.1566 +# test whether we have cygpath
 16.1567 +if test -z "$CYGPATH_W"; then
 16.1568 +  if (cygpath --version) >/dev/null 2>/dev/null; then
 16.1569 +    CYGPATH_W='cygpath -w'
 16.1570 +  else
 16.1571 +    CYGPATH_W=echo
 16.1572 +  fi
 16.1573 +fi
 16.1574 +
 16.1575 +
 16.1576 +# Define the identity of the package.
 16.1577 + PACKAGE='xm-test'
 16.1578 + VERSION='0.4.0'
 16.1579 +
 16.1580 +
 16.1581 +cat >>confdefs.h <<_ACEOF
 16.1582 +#define PACKAGE "$PACKAGE"
 16.1583 +_ACEOF
 16.1584 +
 16.1585 +
 16.1586 +cat >>confdefs.h <<_ACEOF
 16.1587 +#define VERSION "$VERSION"
 16.1588 +_ACEOF
 16.1589 +
 16.1590 +# Some tools Automake needs.
 16.1591 +
 16.1592 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 16.1593 +
 16.1594 +
 16.1595 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 16.1596 +
 16.1597 +
 16.1598 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 16.1599 +
 16.1600 +
 16.1601 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 16.1602 +
 16.1603 +
 16.1604 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 16.1605 +
 16.1606 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
 16.1607 +
 16.1608 +# Installed binaries are usually stripped using `strip' when the user
 16.1609 +# run `make install-strip'.  However `strip' might not be the right
 16.1610 +# tool to use in cross-compilation environments, therefore Automake
 16.1611 +# will honor the `STRIP' environment variable to overrule this program.
 16.1612 +if test "$cross_compiling" != no; then
 16.1613 +  if test -n "$ac_tool_prefix"; then
 16.1614 +  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 16.1615 +set dummy ${ac_tool_prefix}strip; ac_word=$2
 16.1616 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.1617 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.1618 +if test "${ac_cv_prog_STRIP+set}" = set; then
 16.1619 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1620 +else
 16.1621 +  if test -n "$STRIP"; then
 16.1622 +  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 16.1623 +else
 16.1624 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1625 +for as_dir in $PATH
 16.1626 +do
 16.1627 +  IFS=$as_save_IFS
 16.1628 +  test -z "$as_dir" && as_dir=.
 16.1629 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.1630 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.1631 +    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 16.1632 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.1633 +    break 2
 16.1634 +  fi
 16.1635 +done
 16.1636 +done
 16.1637 +
 16.1638 +fi
 16.1639 +fi
 16.1640 +STRIP=$ac_cv_prog_STRIP
 16.1641 +if test -n "$STRIP"; then
 16.1642 +  echo "$as_me:$LINENO: result: $STRIP" >&5
 16.1643 +echo "${ECHO_T}$STRIP" >&6
 16.1644 +else
 16.1645 +  echo "$as_me:$LINENO: result: no" >&5
 16.1646 +echo "${ECHO_T}no" >&6
 16.1647 +fi
 16.1648 +
 16.1649 +fi
 16.1650 +if test -z "$ac_cv_prog_STRIP"; then
 16.1651 +  ac_ct_STRIP=$STRIP
 16.1652 +  # Extract the first word of "strip", so it can be a program name with args.
 16.1653 +set dummy strip; ac_word=$2
 16.1654 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.1655 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.1656 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 16.1657 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1658 +else
 16.1659 +  if test -n "$ac_ct_STRIP"; then
 16.1660 +  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 16.1661 +else
 16.1662 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1663 +for as_dir in $PATH
 16.1664 +do
 16.1665 +  IFS=$as_save_IFS
 16.1666 +  test -z "$as_dir" && as_dir=.
 16.1667 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.1668 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.1669 +    ac_cv_prog_ac_ct_STRIP="strip"
 16.1670 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.1671 +    break 2
 16.1672 +  fi
 16.1673 +done
 16.1674 +done
 16.1675 +
 16.1676 +  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 16.1677 +fi
 16.1678 +fi
 16.1679 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 16.1680 +if test -n "$ac_ct_STRIP"; then
 16.1681 +  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 16.1682 +echo "${ECHO_T}$ac_ct_STRIP" >&6
 16.1683 +else
 16.1684 +  echo "$as_me:$LINENO: result: no" >&5
 16.1685 +echo "${ECHO_T}no" >&6
 16.1686 +fi
 16.1687 +
 16.1688 +  STRIP=$ac_ct_STRIP
 16.1689 +else
 16.1690 +  STRIP="$ac_cv_prog_STRIP"
 16.1691 +fi
 16.1692 +
 16.1693 +fi
 16.1694 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 16.1695 +
 16.1696 +# We need awk for the "check" target.  The system "awk" is bad on
 16.1697 +# some platforms.
 16.1698 +# Always define AMTAR for backward compatibility.
 16.1699 +
 16.1700 +AMTAR=${AMTAR-"${am_missing_run}tar"}
 16.1701 +
 16.1702 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 16.1703 +
 16.1704 +
 16.1705 +
 16.1706 +
 16.1707 +
 16.1708 +
 16.1709 +# Check for dependencies
 16.1710 +ac_ext=c
 16.1711 +ac_cpp='$CPP $CPPFLAGS'
 16.1712 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 16.1713 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 16.1714 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 16.1715 +if test -n "$ac_tool_prefix"; then
 16.1716 +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 16.1717 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
 16.1718 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.1719 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.1720 +if test "${ac_cv_prog_CC+set}" = set; then
 16.1721 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1722 +else
 16.1723 +  if test -n "$CC"; then
 16.1724 +  ac_cv_prog_CC="$CC" # Let the user override the test.
 16.1725 +else
 16.1726 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1727 +for as_dir in $PATH
 16.1728 +do
 16.1729 +  IFS=$as_save_IFS
 16.1730 +  test -z "$as_dir" && as_dir=.
 16.1731 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.1732 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.1733 +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 16.1734 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.1735 +    break 2
 16.1736 +  fi
 16.1737 +done
 16.1738 +done
 16.1739 +
 16.1740 +fi
 16.1741 +fi
 16.1742 +CC=$ac_cv_prog_CC
 16.1743 +if test -n "$CC"; then
 16.1744 +  echo "$as_me:$LINENO: result: $CC" >&5
 16.1745 +echo "${ECHO_T}$CC" >&6
 16.1746 +else
 16.1747 +  echo "$as_me:$LINENO: result: no" >&5
 16.1748 +echo "${ECHO_T}no" >&6
 16.1749 +fi
 16.1750 +
 16.1751 +fi
 16.1752 +if test -z "$ac_cv_prog_CC"; then
 16.1753 +  ac_ct_CC=$CC
 16.1754 +  # Extract the first word of "gcc", so it can be a program name with args.
 16.1755 +set dummy gcc; ac_word=$2
 16.1756 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.1757 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.1758 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 16.1759 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1760 +else
 16.1761 +  if test -n "$ac_ct_CC"; then
 16.1762 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 16.1763 +else
 16.1764 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1765 +for as_dir in $PATH
 16.1766 +do
 16.1767 +  IFS=$as_save_IFS
 16.1768 +  test -z "$as_dir" && as_dir=.
 16.1769 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.1770 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.1771 +    ac_cv_prog_ac_ct_CC="gcc"
 16.1772 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.1773 +    break 2
 16.1774 +  fi
 16.1775 +done
 16.1776 +done
 16.1777 +
 16.1778 +fi
 16.1779 +fi
 16.1780 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
 16.1781 +if test -n "$ac_ct_CC"; then
 16.1782 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 16.1783 +echo "${ECHO_T}$ac_ct_CC" >&6
 16.1784 +else
 16.1785 +  echo "$as_me:$LINENO: result: no" >&5
 16.1786 +echo "${ECHO_T}no" >&6
 16.1787 +fi
 16.1788 +
 16.1789 +  CC=$ac_ct_CC
 16.1790 +else
 16.1791 +  CC="$ac_cv_prog_CC"
 16.1792 +fi
 16.1793 +
 16.1794 +if test -z "$CC"; then
 16.1795 +  if test -n "$ac_tool_prefix"; then
 16.1796 +  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 16.1797 +set dummy ${ac_tool_prefix}cc; ac_word=$2
 16.1798 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.1799 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.1800 +if test "${ac_cv_prog_CC+set}" = set; then
 16.1801 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1802 +else
 16.1803 +  if test -n "$CC"; then
 16.1804 +  ac_cv_prog_CC="$CC" # Let the user override the test.
 16.1805 +else
 16.1806 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1807 +for as_dir in $PATH
 16.1808 +do
 16.1809 +  IFS=$as_save_IFS
 16.1810 +  test -z "$as_dir" && as_dir=.
 16.1811 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.1812 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.1813 +    ac_cv_prog_CC="${ac_tool_prefix}cc"
 16.1814 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.1815 +    break 2
 16.1816 +  fi
 16.1817 +done
 16.1818 +done
 16.1819 +
 16.1820 +fi
 16.1821 +fi
 16.1822 +CC=$ac_cv_prog_CC
 16.1823 +if test -n "$CC"; then
 16.1824 +  echo "$as_me:$LINENO: result: $CC" >&5
 16.1825 +echo "${ECHO_T}$CC" >&6
 16.1826 +else
 16.1827 +  echo "$as_me:$LINENO: result: no" >&5
 16.1828 +echo "${ECHO_T}no" >&6
 16.1829 +fi
 16.1830 +
 16.1831 +fi
 16.1832 +if test -z "$ac_cv_prog_CC"; then
 16.1833 +  ac_ct_CC=$CC
 16.1834 +  # Extract the first word of "cc", so it can be a program name with args.
 16.1835 +set dummy cc; ac_word=$2
 16.1836 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.1837 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.1838 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 16.1839 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1840 +else
 16.1841 +  if test -n "$ac_ct_CC"; then
 16.1842 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 16.1843 +else
 16.1844 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1845 +for as_dir in $PATH
 16.1846 +do
 16.1847 +  IFS=$as_save_IFS
 16.1848 +  test -z "$as_dir" && as_dir=.
 16.1849 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.1850 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.1851 +    ac_cv_prog_ac_ct_CC="cc"
 16.1852 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.1853 +    break 2
 16.1854 +  fi
 16.1855 +done
 16.1856 +done
 16.1857 +
 16.1858 +fi
 16.1859 +fi
 16.1860 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
 16.1861 +if test -n "$ac_ct_CC"; then
 16.1862 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 16.1863 +echo "${ECHO_T}$ac_ct_CC" >&6
 16.1864 +else
 16.1865 +  echo "$as_me:$LINENO: result: no" >&5
 16.1866 +echo "${ECHO_T}no" >&6
 16.1867 +fi
 16.1868 +
 16.1869 +  CC=$ac_ct_CC
 16.1870 +else
 16.1871 +  CC="$ac_cv_prog_CC"
 16.1872 +fi
 16.1873 +
 16.1874 +fi
 16.1875 +if test -z "$CC"; then
 16.1876 +  # Extract the first word of "cc", so it can be a program name with args.
 16.1877 +set dummy cc; ac_word=$2
 16.1878 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.1879 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.1880 +if test "${ac_cv_prog_CC+set}" = set; then
 16.1881 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1882 +else
 16.1883 +  if test -n "$CC"; then
 16.1884 +  ac_cv_prog_CC="$CC" # Let the user override the test.
 16.1885 +else
 16.1886 +  ac_prog_rejected=no
 16.1887 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1888 +for as_dir in $PATH
 16.1889 +do
 16.1890 +  IFS=$as_save_IFS
 16.1891 +  test -z "$as_dir" && as_dir=.
 16.1892 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.1893 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.1894 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 16.1895 +       ac_prog_rejected=yes
 16.1896 +       continue
 16.1897 +     fi
 16.1898 +    ac_cv_prog_CC="cc"
 16.1899 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.1900 +    break 2
 16.1901 +  fi
 16.1902 +done
 16.1903 +done
 16.1904 +
 16.1905 +if test $ac_prog_rejected = yes; then
 16.1906 +  # We found a bogon in the path, so make sure we never use it.
 16.1907 +  set dummy $ac_cv_prog_CC
 16.1908 +  shift
 16.1909 +  if test $# != 0; then
 16.1910 +    # We chose a different compiler from the bogus one.
 16.1911 +    # However, it has the same basename, so the bogon will be chosen
 16.1912 +    # first if we set CC to just the basename; use the full file name.
 16.1913 +    shift
 16.1914 +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 16.1915 +  fi
 16.1916 +fi
 16.1917 +fi
 16.1918 +fi
 16.1919 +CC=$ac_cv_prog_CC
 16.1920 +if test -n "$CC"; then
 16.1921 +  echo "$as_me:$LINENO: result: $CC" >&5
 16.1922 +echo "${ECHO_T}$CC" >&6
 16.1923 +else
 16.1924 +  echo "$as_me:$LINENO: result: no" >&5
 16.1925 +echo "${ECHO_T}no" >&6
 16.1926 +fi
 16.1927 +
 16.1928 +fi
 16.1929 +if test -z "$CC"; then
 16.1930 +  if test -n "$ac_tool_prefix"; then
 16.1931 +  for ac_prog in cl
 16.1932 +  do
 16.1933 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 16.1934 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 16.1935 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.1936 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.1937 +if test "${ac_cv_prog_CC+set}" = set; then
 16.1938 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1939 +else
 16.1940 +  if test -n "$CC"; then
 16.1941 +  ac_cv_prog_CC="$CC" # Let the user override the test.
 16.1942 +else
 16.1943 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1944 +for as_dir in $PATH
 16.1945 +do
 16.1946 +  IFS=$as_save_IFS
 16.1947 +  test -z "$as_dir" && as_dir=.
 16.1948 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.1949 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.1950 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 16.1951 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.1952 +    break 2
 16.1953 +  fi
 16.1954 +done
 16.1955 +done
 16.1956 +
 16.1957 +fi
 16.1958 +fi
 16.1959 +CC=$ac_cv_prog_CC
 16.1960 +if test -n "$CC"; then
 16.1961 +  echo "$as_me:$LINENO: result: $CC" >&5
 16.1962 +echo "${ECHO_T}$CC" >&6
 16.1963 +else
 16.1964 +  echo "$as_me:$LINENO: result: no" >&5
 16.1965 +echo "${ECHO_T}no" >&6
 16.1966 +fi
 16.1967 +
 16.1968 +    test -n "$CC" && break
 16.1969 +  done
 16.1970 +fi
 16.1971 +if test -z "$CC"; then
 16.1972 +  ac_ct_CC=$CC
 16.1973 +  for ac_prog in cl
 16.1974 +do
 16.1975 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
 16.1976 +set dummy $ac_prog; ac_word=$2
 16.1977 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.1978 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.1979 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 16.1980 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.1981 +else
 16.1982 +  if test -n "$ac_ct_CC"; then
 16.1983 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 16.1984 +else
 16.1985 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.1986 +for as_dir in $PATH
 16.1987 +do
 16.1988 +  IFS=$as_save_IFS
 16.1989 +  test -z "$as_dir" && as_dir=.
 16.1990 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.1991 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.1992 +    ac_cv_prog_ac_ct_CC="$ac_prog"
 16.1993 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.1994 +    break 2
 16.1995 +  fi
 16.1996 +done
 16.1997 +done
 16.1998 +
 16.1999 +fi
 16.2000 +fi
 16.2001 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
 16.2002 +if test -n "$ac_ct_CC"; then
 16.2003 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 16.2004 +echo "${ECHO_T}$ac_ct_CC" >&6
 16.2005 +else
 16.2006 +  echo "$as_me:$LINENO: result: no" >&5
 16.2007 +echo "${ECHO_T}no" >&6
 16.2008 +fi
 16.2009 +
 16.2010 +  test -n "$ac_ct_CC" && break
 16.2011 +done
 16.2012 +
 16.2013 +  CC=$ac_ct_CC
 16.2014 +fi
 16.2015 +
 16.2016 +fi
 16.2017 +
 16.2018 +
 16.2019 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 16.2020 +See \`config.log' for more details." >&5
 16.2021 +echo "$as_me: error: no acceptable C compiler found in \$PATH
 16.2022 +See \`config.log' for more details." >&2;}
 16.2023 +   { (exit 1); exit 1; }; }
 16.2024 +
 16.2025 +# Provide some information about the compiler.
 16.2026 +echo "$as_me:$LINENO:" \
 16.2027 +     "checking for C compiler version" >&5
 16.2028 +ac_compiler=`set X $ac_compile; echo $2`
 16.2029 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 16.2030 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
 16.2031 +  ac_status=$?
 16.2032 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2033 +  (exit $ac_status); }
 16.2034 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 16.2035 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
 16.2036 +  ac_status=$?
 16.2037 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2038 +  (exit $ac_status); }
 16.2039 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 16.2040 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
 16.2041 +  ac_status=$?
 16.2042 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2043 +  (exit $ac_status); }
 16.2044 +
 16.2045 +cat >conftest.$ac_ext <<_ACEOF
 16.2046 +/* confdefs.h.  */
 16.2047 +_ACEOF
 16.2048 +cat confdefs.h >>conftest.$ac_ext
 16.2049 +cat >>conftest.$ac_ext <<_ACEOF
 16.2050 +/* end confdefs.h.  */
 16.2051 +
 16.2052 +int
 16.2053 +main ()
 16.2054 +{
 16.2055 +
 16.2056 +  ;
 16.2057 +  return 0;
 16.2058 +}
 16.2059 +_ACEOF
 16.2060 +ac_clean_files_save=$ac_clean_files
 16.2061 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
 16.2062 +# Try to create an executable without -o first, disregard a.out.
 16.2063 +# It will help us diagnose broken compilers, and finding out an intuition
 16.2064 +# of exeext.
 16.2065 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 16.2066 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 16.2067 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 16.2068 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 16.2069 +  (eval $ac_link_default) 2>&5
 16.2070 +  ac_status=$?
 16.2071 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2072 +  (exit $ac_status); }; then
 16.2073 +  # Find the output, starting from the most likely.  This scheme is
 16.2074 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 16.2075 +# resort.
 16.2076 +
 16.2077 +# Be careful to initialize this variable, since it used to be cached.
 16.2078 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 16.2079 +ac_cv_exeext=
 16.2080 +# b.out is created by i960 compilers.
 16.2081 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 16.2082 +do
 16.2083 +  test -f "$ac_file" || continue
 16.2084 +  case $ac_file in
 16.2085 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 16.2086 +	;;
 16.2087 +    conftest.$ac_ext )
 16.2088 +	# This is the source file.
 16.2089 +	;;
 16.2090 +    [ab].out )
 16.2091 +	# We found the default executable, but exeext='' is most
 16.2092 +	# certainly right.
 16.2093 +	break;;
 16.2094 +    *.* )
 16.2095 +	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 16.2096 +	# FIXME: I believe we export ac_cv_exeext for Libtool,
 16.2097 +	# but it would be cool to find out if it's true.  Does anybody
 16.2098 +	# maintain Libtool? --akim.
 16.2099 +	export ac_cv_exeext
 16.2100 +	break;;
 16.2101 +    * )
 16.2102 +	break;;
 16.2103 +  esac
 16.2104 +done
 16.2105 +else
 16.2106 +  echo "$as_me: failed program was:" >&5
 16.2107 +sed 's/^/| /' conftest.$ac_ext >&5
 16.2108 +
 16.2109 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 16.2110 +See \`config.log' for more details." >&5
 16.2111 +echo "$as_me: error: C compiler cannot create executables
 16.2112 +See \`config.log' for more details." >&2;}
 16.2113 +   { (exit 77); exit 77; }; }
 16.2114 +fi
 16.2115 +
 16.2116 +ac_exeext=$ac_cv_exeext
 16.2117 +echo "$as_me:$LINENO: result: $ac_file" >&5
 16.2118 +echo "${ECHO_T}$ac_file" >&6
 16.2119 +
 16.2120 +# Check the compiler produces executables we can run.  If not, either
 16.2121 +# the compiler is broken, or we cross compile.
 16.2122 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 16.2123 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 16.2124 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 16.2125 +# If not cross compiling, check that we can run a simple program.
 16.2126 +if test "$cross_compiling" != yes; then
 16.2127 +  if { ac_try='./$ac_file'
 16.2128 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2129 +  (eval $ac_try) 2>&5
 16.2130 +  ac_status=$?
 16.2131 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2132 +  (exit $ac_status); }; }; then
 16.2133 +    cross_compiling=no
 16.2134 +  else
 16.2135 +    if test "$cross_compiling" = maybe; then
 16.2136 +	cross_compiling=yes
 16.2137 +    else
 16.2138 +	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 16.2139 +If you meant to cross compile, use \`--host'.
 16.2140 +See \`config.log' for more details." >&5
 16.2141 +echo "$as_me: error: cannot run C compiled programs.
 16.2142 +If you meant to cross compile, use \`--host'.
 16.2143 +See \`config.log' for more details." >&2;}
 16.2144 +   { (exit 1); exit 1; }; }
 16.2145 +    fi
 16.2146 +  fi
 16.2147 +fi
 16.2148 +echo "$as_me:$LINENO: result: yes" >&5
 16.2149 +echo "${ECHO_T}yes" >&6
 16.2150 +
 16.2151 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
 16.2152 +ac_clean_files=$ac_clean_files_save
 16.2153 +# Check the compiler produces executables we can run.  If not, either
 16.2154 +# the compiler is broken, or we cross compile.
 16.2155 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 16.2156 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 16.2157 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
 16.2158 +echo "${ECHO_T}$cross_compiling" >&6
 16.2159 +
 16.2160 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
 16.2161 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 16.2162 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 16.2163 +  (eval $ac_link) 2>&5
 16.2164 +  ac_status=$?
 16.2165 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2166 +  (exit $ac_status); }; then
 16.2167 +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 16.2168 +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 16.2169 +# work properly (i.e., refer to `conftest.exe'), while it won't with
 16.2170 +# `rm'.
 16.2171 +for ac_file in conftest.exe conftest conftest.*; do
 16.2172 +  test -f "$ac_file" || continue
 16.2173 +  case $ac_file in
 16.2174 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 16.2175 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 16.2176 +	  export ac_cv_exeext
 16.2177 +	  break;;
 16.2178 +    * ) break;;
 16.2179 +  esac
 16.2180 +done
 16.2181 +else
 16.2182 +  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 16.2183 +See \`config.log' for more details." >&5
 16.2184 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 16.2185 +See \`config.log' for more details." >&2;}
 16.2186 +   { (exit 1); exit 1; }; }
 16.2187 +fi
 16.2188 +
 16.2189 +rm -f conftest$ac_cv_exeext
 16.2190 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 16.2191 +echo "${ECHO_T}$ac_cv_exeext" >&6
 16.2192 +
 16.2193 +rm -f conftest.$ac_ext
 16.2194 +EXEEXT=$ac_cv_exeext
 16.2195 +ac_exeext=$EXEEXT
 16.2196 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
 16.2197 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 16.2198 +if test "${ac_cv_objext+set}" = set; then
 16.2199 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.2200 +else
 16.2201 +  cat >conftest.$ac_ext <<_ACEOF
 16.2202 +/* confdefs.h.  */
 16.2203 +_ACEOF
 16.2204 +cat confdefs.h >>conftest.$ac_ext
 16.2205 +cat >>conftest.$ac_ext <<_ACEOF
 16.2206 +/* end confdefs.h.  */
 16.2207 +
 16.2208 +int
 16.2209 +main ()
 16.2210 +{
 16.2211 +
 16.2212 +  ;
 16.2213 +  return 0;
 16.2214 +}
 16.2215 +_ACEOF
 16.2216 +rm -f conftest.o conftest.obj
 16.2217 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 16.2218 +  (eval $ac_compile) 2>&5
 16.2219 +  ac_status=$?
 16.2220 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2221 +  (exit $ac_status); }; then
 16.2222 +  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 16.2223 +  case $ac_file in
 16.2224 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 16.2225 +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 16.2226 +       break;;
 16.2227 +  esac
 16.2228 +done
 16.2229 +else
 16.2230 +  echo "$as_me: failed program was:" >&5
 16.2231 +sed 's/^/| /' conftest.$ac_ext >&5
 16.2232 +
 16.2233 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 16.2234 +See \`config.log' for more details." >&5
 16.2235 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
 16.2236 +See \`config.log' for more details." >&2;}
 16.2237 +   { (exit 1); exit 1; }; }
 16.2238 +fi
 16.2239 +
 16.2240 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
 16.2241 +fi
 16.2242 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 16.2243 +echo "${ECHO_T}$ac_cv_objext" >&6
 16.2244 +OBJEXT=$ac_cv_objext
 16.2245 +ac_objext=$OBJEXT
 16.2246 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 16.2247 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 16.2248 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
 16.2249 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.2250 +else
 16.2251 +  cat >conftest.$ac_ext <<_ACEOF
 16.2252 +/* confdefs.h.  */
 16.2253 +_ACEOF
 16.2254 +cat confdefs.h >>conftest.$ac_ext
 16.2255 +cat >>conftest.$ac_ext <<_ACEOF
 16.2256 +/* end confdefs.h.  */
 16.2257 +
 16.2258 +int
 16.2259 +main ()
 16.2260 +{
 16.2261 +#ifndef __GNUC__
 16.2262 +       choke me
 16.2263 +#endif
 16.2264 +
 16.2265 +  ;
 16.2266 +  return 0;
 16.2267 +}
 16.2268 +_ACEOF
 16.2269 +rm -f conftest.$ac_objext
 16.2270 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 16.2271 +  (eval $ac_compile) 2>conftest.er1
 16.2272 +  ac_status=$?
 16.2273 +  grep -v '^ *+' conftest.er1 >conftest.err
 16.2274 +  rm -f conftest.er1
 16.2275 +  cat conftest.err >&5
 16.2276 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2277 +  (exit $ac_status); } &&
 16.2278 +	 { ac_try='test -z "$ac_c_werror_flag"
 16.2279 +			 || test ! -s conftest.err'
 16.2280 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2281 +  (eval $ac_try) 2>&5
 16.2282 +  ac_status=$?
 16.2283 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2284 +  (exit $ac_status); }; } &&
 16.2285 +	 { ac_try='test -s conftest.$ac_objext'
 16.2286 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2287 +  (eval $ac_try) 2>&5
 16.2288 +  ac_status=$?
 16.2289 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2290 +  (exit $ac_status); }; }; then
 16.2291 +  ac_compiler_gnu=yes
 16.2292 +else
 16.2293 +  echo "$as_me: failed program was:" >&5
 16.2294 +sed 's/^/| /' conftest.$ac_ext >&5
 16.2295 +
 16.2296 +ac_compiler_gnu=no
 16.2297 +fi
 16.2298 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 16.2299 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
 16.2300 +
 16.2301 +fi
 16.2302 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 16.2303 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 16.2304 +GCC=`test $ac_compiler_gnu = yes && echo yes`
 16.2305 +ac_test_CFLAGS=${CFLAGS+set}
 16.2306 +ac_save_CFLAGS=$CFLAGS
 16.2307 +CFLAGS="-g"
 16.2308 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 16.2309 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 16.2310 +if test "${ac_cv_prog_cc_g+set}" = set; then
 16.2311 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.2312 +else
 16.2313 +  cat >conftest.$ac_ext <<_ACEOF
 16.2314 +/* confdefs.h.  */
 16.2315 +_ACEOF
 16.2316 +cat confdefs.h >>conftest.$ac_ext
 16.2317 +cat >>conftest.$ac_ext <<_ACEOF
 16.2318 +/* end confdefs.h.  */
 16.2319 +
 16.2320 +int
 16.2321 +main ()
 16.2322 +{
 16.2323 +
 16.2324 +  ;
 16.2325 +  return 0;
 16.2326 +}
 16.2327 +_ACEOF
 16.2328 +rm -f conftest.$ac_objext
 16.2329 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 16.2330 +  (eval $ac_compile) 2>conftest.er1
 16.2331 +  ac_status=$?
 16.2332 +  grep -v '^ *+' conftest.er1 >conftest.err
 16.2333 +  rm -f conftest.er1
 16.2334 +  cat conftest.err >&5
 16.2335 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2336 +  (exit $ac_status); } &&
 16.2337 +	 { ac_try='test -z "$ac_c_werror_flag"
 16.2338 +			 || test ! -s conftest.err'
 16.2339 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2340 +  (eval $ac_try) 2>&5
 16.2341 +  ac_status=$?
 16.2342 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2343 +  (exit $ac_status); }; } &&
 16.2344 +	 { ac_try='test -s conftest.$ac_objext'
 16.2345 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2346 +  (eval $ac_try) 2>&5
 16.2347 +  ac_status=$?
 16.2348 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2349 +  (exit $ac_status); }; }; then
 16.2350 +  ac_cv_prog_cc_g=yes
 16.2351 +else
 16.2352 +  echo "$as_me: failed program was:" >&5
 16.2353 +sed 's/^/| /' conftest.$ac_ext >&5
 16.2354 +
 16.2355 +ac_cv_prog_cc_g=no
 16.2356 +fi
 16.2357 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 16.2358 +fi
 16.2359 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 16.2360 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 16.2361 +if test "$ac_test_CFLAGS" = set; then
 16.2362 +  CFLAGS=$ac_save_CFLAGS
 16.2363 +elif test $ac_cv_prog_cc_g = yes; then
 16.2364 +  if test "$GCC" = yes; then
 16.2365 +    CFLAGS="-g -O2"
 16.2366 +  else
 16.2367 +    CFLAGS="-g"
 16.2368 +  fi
 16.2369 +else
 16.2370 +  if test "$GCC" = yes; then
 16.2371 +    CFLAGS="-O2"
 16.2372 +  else
 16.2373 +    CFLAGS=
 16.2374 +  fi
 16.2375 +fi
 16.2376 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 16.2377 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 16.2378 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
 16.2379 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.2380 +else
 16.2381 +  ac_cv_prog_cc_stdc=no
 16.2382 +ac_save_CC=$CC
 16.2383 +cat >conftest.$ac_ext <<_ACEOF
 16.2384 +/* confdefs.h.  */
 16.2385 +_ACEOF
 16.2386 +cat confdefs.h >>conftest.$ac_ext
 16.2387 +cat >>conftest.$ac_ext <<_ACEOF
 16.2388 +/* end confdefs.h.  */
 16.2389 +#include <stdarg.h>
 16.2390 +#include <stdio.h>
 16.2391 +#include <sys/types.h>
 16.2392 +#include <sys/stat.h>
 16.2393 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 16.2394 +struct buf { int x; };
 16.2395 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
 16.2396 +static char *e (p, i)
 16.2397 +     char **p;
 16.2398 +     int i;
 16.2399 +{
 16.2400 +  return p[i];
 16.2401 +}
 16.2402 +static char *f (char * (*g) (char **, int), char **p, ...)
 16.2403 +{
 16.2404 +  char *s;
 16.2405 +  va_list v;
 16.2406 +  va_start (v,p);
 16.2407 +  s = g (p, va_arg (v,int));
 16.2408 +  va_end (v);
 16.2409 +  return s;
 16.2410 +}
 16.2411 +
 16.2412 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 16.2413 +   function prototypes and stuff, but not '\xHH' hex character constants.
 16.2414 +   These don't provoke an error unfortunately, instead are silently treated
 16.2415 +   as 'x'.  The following induces an error, until -std1 is added to get
 16.2416 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 16.2417 +   array size at least.  It's necessary to write '\x00'==0 to get something
 16.2418 +   that's true only with -std1.  */
 16.2419 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 16.2420 +
 16.2421 +int test (int i, double x);
 16.2422 +struct s1 {int (*f) (int a);};
 16.2423 +struct s2 {int (*f) (double a);};
 16.2424 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 16.2425 +int argc;
 16.2426 +char **argv;
 16.2427 +int
 16.2428 +main ()
 16.2429 +{
 16.2430 +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 16.2431 +  ;
 16.2432 +  return 0;
 16.2433 +}
 16.2434 +_ACEOF
 16.2435 +# Don't try gcc -ansi; that turns off useful extensions and
 16.2436 +# breaks some systems' header files.
 16.2437 +# AIX			-qlanglvl=ansi
 16.2438 +# Ultrix and OSF/1	-std1
 16.2439 +# HP-UX 10.20 and later	-Ae
 16.2440 +# HP-UX older versions	-Aa -D_HPUX_SOURCE
 16.2441 +# SVR4			-Xc -D__EXTENSIONS__
 16.2442 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 16.2443 +do
 16.2444 +  CC="$ac_save_CC $ac_arg"
 16.2445 +  rm -f conftest.$ac_objext
 16.2446 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 16.2447 +  (eval $ac_compile) 2>conftest.er1
 16.2448 +  ac_status=$?
 16.2449 +  grep -v '^ *+' conftest.er1 >conftest.err
 16.2450 +  rm -f conftest.er1
 16.2451 +  cat conftest.err >&5
 16.2452 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2453 +  (exit $ac_status); } &&
 16.2454 +	 { ac_try='test -z "$ac_c_werror_flag"
 16.2455 +			 || test ! -s conftest.err'
 16.2456 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2457 +  (eval $ac_try) 2>&5
 16.2458 +  ac_status=$?
 16.2459 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2460 +  (exit $ac_status); }; } &&
 16.2461 +	 { ac_try='test -s conftest.$ac_objext'
 16.2462 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2463 +  (eval $ac_try) 2>&5
 16.2464 +  ac_status=$?
 16.2465 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2466 +  (exit $ac_status); }; }; then
 16.2467 +  ac_cv_prog_cc_stdc=$ac_arg
 16.2468 +break
 16.2469 +else
 16.2470 +  echo "$as_me: failed program was:" >&5
 16.2471 +sed 's/^/| /' conftest.$ac_ext >&5
 16.2472 +
 16.2473 +fi
 16.2474 +rm -f conftest.err conftest.$ac_objext
 16.2475 +done
 16.2476 +rm -f conftest.$ac_ext conftest.$ac_objext
 16.2477 +CC=$ac_save_CC
 16.2478 +
 16.2479 +fi
 16.2480 +
 16.2481 +case "x$ac_cv_prog_cc_stdc" in
 16.2482 +  x|xno)
 16.2483 +    echo "$as_me:$LINENO: result: none needed" >&5
 16.2484 +echo "${ECHO_T}none needed" >&6 ;;
 16.2485 +  *)
 16.2486 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 16.2487 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 16.2488 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
 16.2489 +esac
 16.2490 +
 16.2491 +# Some people use a C++ compiler to compile C.  Since we use `exit',
 16.2492 +# in C++ we need to declare it.  In case someone uses the same compiler
 16.2493 +# for both compiling C and C++ we need to have the C++ compiler decide
 16.2494 +# the declaration of exit, since it's the most demanding environment.
 16.2495 +cat >conftest.$ac_ext <<_ACEOF
 16.2496 +#ifndef __cplusplus
 16.2497 +  choke me
 16.2498 +#endif
 16.2499 +_ACEOF
 16.2500 +rm -f conftest.$ac_objext
 16.2501 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 16.2502 +  (eval $ac_compile) 2>conftest.er1
 16.2503 +  ac_status=$?
 16.2504 +  grep -v '^ *+' conftest.er1 >conftest.err
 16.2505 +  rm -f conftest.er1
 16.2506 +  cat conftest.err >&5
 16.2507 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2508 +  (exit $ac_status); } &&
 16.2509 +	 { ac_try='test -z "$ac_c_werror_flag"
 16.2510 +			 || test ! -s conftest.err'
 16.2511 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2512 +  (eval $ac_try) 2>&5
 16.2513 +  ac_status=$?
 16.2514 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2515 +  (exit $ac_status); }; } &&
 16.2516 +	 { ac_try='test -s conftest.$ac_objext'
 16.2517 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2518 +  (eval $ac_try) 2>&5
 16.2519 +  ac_status=$?
 16.2520 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2521 +  (exit $ac_status); }; }; then
 16.2522 +  for ac_declaration in \
 16.2523 +   '' \
 16.2524 +   'extern "C" void std::exit (int) throw (); using std::exit;' \
 16.2525 +   'extern "C" void std::exit (int); using std::exit;' \
 16.2526 +   'extern "C" void exit (int) throw ();' \
 16.2527 +   'extern "C" void exit (int);' \
 16.2528 +   'void exit (int);'
 16.2529 +do
 16.2530 +  cat >conftest.$ac_ext <<_ACEOF
 16.2531 +/* confdefs.h.  */
 16.2532 +_ACEOF
 16.2533 +cat confdefs.h >>conftest.$ac_ext
 16.2534 +cat >>conftest.$ac_ext <<_ACEOF
 16.2535 +/* end confdefs.h.  */
 16.2536 +$ac_declaration
 16.2537 +#include <stdlib.h>
 16.2538 +int
 16.2539 +main ()
 16.2540 +{
 16.2541 +exit (42);
 16.2542 +  ;
 16.2543 +  return 0;
 16.2544 +}
 16.2545 +_ACEOF
 16.2546 +rm -f conftest.$ac_objext
 16.2547 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 16.2548 +  (eval $ac_compile) 2>conftest.er1
 16.2549 +  ac_status=$?
 16.2550 +  grep -v '^ *+' conftest.er1 >conftest.err
 16.2551 +  rm -f conftest.er1
 16.2552 +  cat conftest.err >&5
 16.2553 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2554 +  (exit $ac_status); } &&
 16.2555 +	 { ac_try='test -z "$ac_c_werror_flag"
 16.2556 +			 || test ! -s conftest.err'
 16.2557 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2558 +  (eval $ac_try) 2>&5
 16.2559 +  ac_status=$?
 16.2560 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2561 +  (exit $ac_status); }; } &&
 16.2562 +	 { ac_try='test -s conftest.$ac_objext'
 16.2563 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2564 +  (eval $ac_try) 2>&5
 16.2565 +  ac_status=$?
 16.2566 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2567 +  (exit $ac_status); }; }; then
 16.2568 +  :
 16.2569 +else
 16.2570 +  echo "$as_me: failed program was:" >&5
 16.2571 +sed 's/^/| /' conftest.$ac_ext >&5
 16.2572 +
 16.2573 +continue
 16.2574 +fi
 16.2575 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 16.2576 +  cat >conftest.$ac_ext <<_ACEOF
 16.2577 +/* confdefs.h.  */
 16.2578 +_ACEOF
 16.2579 +cat confdefs.h >>conftest.$ac_ext
 16.2580 +cat >>conftest.$ac_ext <<_ACEOF
 16.2581 +/* end confdefs.h.  */
 16.2582 +$ac_declaration
 16.2583 +int
 16.2584 +main ()
 16.2585 +{
 16.2586 +exit (42);
 16.2587 +  ;
 16.2588 +  return 0;
 16.2589 +}
 16.2590 +_ACEOF
 16.2591 +rm -f conftest.$ac_objext
 16.2592 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 16.2593 +  (eval $ac_compile) 2>conftest.er1
 16.2594 +  ac_status=$?
 16.2595 +  grep -v '^ *+' conftest.er1 >conftest.err
 16.2596 +  rm -f conftest.er1
 16.2597 +  cat conftest.err >&5
 16.2598 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2599 +  (exit $ac_status); } &&
 16.2600 +	 { ac_try='test -z "$ac_c_werror_flag"
 16.2601 +			 || test ! -s conftest.err'
 16.2602 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2603 +  (eval $ac_try) 2>&5
 16.2604 +  ac_status=$?
 16.2605 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2606 +  (exit $ac_status); }; } &&
 16.2607 +	 { ac_try='test -s conftest.$ac_objext'
 16.2608 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2609 +  (eval $ac_try) 2>&5
 16.2610 +  ac_status=$?
 16.2611 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2612 +  (exit $ac_status); }; }; then
 16.2613 +  break
 16.2614 +else
 16.2615 +  echo "$as_me: failed program was:" >&5
 16.2616 +sed 's/^/| /' conftest.$ac_ext >&5
 16.2617 +
 16.2618 +fi
 16.2619 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 16.2620 +done
 16.2621 +rm -f conftest*
 16.2622 +if test -n "$ac_declaration"; then
 16.2623 +  echo '#ifdef __cplusplus' >>confdefs.h
 16.2624 +  echo $ac_declaration      >>confdefs.h
 16.2625 +  echo '#endif'             >>confdefs.h
 16.2626 +fi
 16.2627 +
 16.2628 +else
 16.2629 +  echo "$as_me: failed program was:" >&5
 16.2630 +sed 's/^/| /' conftest.$ac_ext >&5
 16.2631 +
 16.2632 +fi
 16.2633 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 16.2634 +ac_ext=c
 16.2635 +ac_cpp='$CPP $CPPFLAGS'
 16.2636 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 16.2637 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 16.2638 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 16.2639 +DEPDIR="${am__leading_dot}deps"
 16.2640 +
 16.2641 +          ac_config_commands="$ac_config_commands depfiles"
 16.2642 +
 16.2643 +
 16.2644 +am_make=${MAKE-make}
 16.2645 +cat > confinc << 'END'
 16.2646 +am__doit:
 16.2647 +	@echo done
 16.2648 +.PHONY: am__doit
 16.2649 +END
 16.2650 +# If we don't find an include directive, just comment out the code.
 16.2651 +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 16.2652 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 16.2653 +am__include="#"
 16.2654 +am__quote=
 16.2655 +_am_result=none
 16.2656 +# First try GNU make style include.
 16.2657 +echo "include confinc" > confmf
 16.2658 +# We grep out `Entering directory' and `Leaving directory'
 16.2659 +# messages which can occur if `w' ends up in MAKEFLAGS.
 16.2660 +# In particular we don't look at `^make:' because GNU make might
 16.2661 +# be invoked under some other name (usually "gmake"), in which
 16.2662 +# case it prints its new name instead of `make'.
 16.2663 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 16.2664 +   am__include=include
 16.2665 +   am__quote=
 16.2666 +   _am_result=GNU
 16.2667 +fi
 16.2668 +# Now try BSD make style include.
 16.2669 +if test "$am__include" = "#"; then
 16.2670 +   echo '.include "confinc"' > confmf
 16.2671 +   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 16.2672 +      am__include=.include
 16.2673 +      am__quote="\""
 16.2674 +      _am_result=BSD
 16.2675 +   fi
 16.2676 +fi
 16.2677 +
 16.2678 +
 16.2679 +echo "$as_me:$LINENO: result: $_am_result" >&5
 16.2680 +echo "${ECHO_T}$_am_result" >&6
 16.2681 +rm -f confinc confmf
 16.2682 +
 16.2683 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 16.2684 +if test "${enable_dependency_tracking+set}" = set; then
 16.2685 +  enableval="$enable_dependency_tracking"
 16.2686 +
 16.2687 +fi;
 16.2688 +if test "x$enable_dependency_tracking" != xno; then
 16.2689 +  am_depcomp="$ac_aux_dir/depcomp"
 16.2690 +  AMDEPBACKSLASH='\'
 16.2691 +fi
 16.2692 +
 16.2693 +
 16.2694 +if test "x$enable_dependency_tracking" != xno; then
 16.2695 +  AMDEP_TRUE=
 16.2696 +  AMDEP_FALSE='#'
 16.2697 +else
 16.2698 +  AMDEP_TRUE='#'
 16.2699 +  AMDEP_FALSE=
 16.2700 +fi
 16.2701 +
 16.2702 +
 16.2703 +
 16.2704 +
 16.2705 +depcc="$CC"   am_compiler_list=
 16.2706 +
 16.2707 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 16.2708 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 16.2709 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 16.2710 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.2711 +else
 16.2712 +  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 16.2713 +  # We make a subdir and do the tests there.  Otherwise we can end up
 16.2714 +  # making bogus files that we don't know about and never remove.  For
 16.2715 +  # instance it was reported that on HP-UX the gcc test will end up
 16.2716 +  # making a dummy file named `D' -- because `-MD' means `put the output
 16.2717 +  # in D'.
 16.2718 +  mkdir conftest.dir
 16.2719 +  # Copy depcomp to subdir because otherwise we won't find it if we're
 16.2720 +  # using a relative directory.
 16.2721 +  cp "$am_depcomp" conftest.dir
 16.2722 +  cd conftest.dir
 16.2723 +  # We will build objects and dependencies in a subdirectory because
 16.2724 +  # it helps to detect inapplicable dependency modes.  For instance
 16.2725 +  # both Tru64's cc and ICC support -MD to output dependencies as a
 16.2726 +  # side effect of compilation, but ICC will put the dependencies in
 16.2727 +  # the current directory while Tru64 will put them in the object
 16.2728 +  # directory.
 16.2729 +  mkdir sub
 16.2730 +
 16.2731 +  am_cv_CC_dependencies_compiler_type=none
 16.2732 +  if test "$am_compiler_list" = ""; then
 16.2733 +     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 16.2734 +  fi
 16.2735 +  for depmode in $am_compiler_list; do
 16.2736 +    # Setup a source with many dependencies, because some compilers
 16.2737 +    # like to wrap large dependency lists on column 80 (with \), and
 16.2738 +    # we should not choose a depcomp mode which is confused by this.
 16.2739 +    #
 16.2740 +    # We need to recreate these files for each test, as the compiler may
 16.2741 +    # overwrite some of them when testing with obscure command lines.
 16.2742 +    # This happens at least with the AIX C compiler.
 16.2743 +    : > sub/conftest.c
 16.2744 +    for i in 1 2 3 4 5 6; do
 16.2745 +      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 16.2746 +      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 16.2747 +      # Solaris 8's {/usr,}/bin/sh.
 16.2748 +      touch sub/conftst$i.h
 16.2749 +    done
 16.2750 +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 16.2751 +
 16.2752 +    case $depmode in
 16.2753 +    nosideeffect)
 16.2754 +      # after this tag, mechanisms are not by side-effect, so they'll
 16.2755 +      # only be used when explicitly requested
 16.2756 +      if test "x$enable_dependency_tracking" = xyes; then
 16.2757 +	continue
 16.2758 +      else
 16.2759 +	break
 16.2760 +      fi
 16.2761 +      ;;
 16.2762 +    none) break ;;
 16.2763 +    esac
 16.2764 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 16.2765 +    # mode.  It turns out that the SunPro C++ compiler does not properly
 16.2766 +    # handle `-M -o', and we need to detect this.
 16.2767 +    if depmode=$depmode \
 16.2768 +       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 16.2769 +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 16.2770 +       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 16.2771 +         >/dev/null 2>conftest.err &&
 16.2772 +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 16.2773 +       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 16.2774 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 16.2775 +      # icc doesn't choke on unknown options, it will just issue warnings
 16.2776 +      # or remarks (even with -Werror).  So we grep stderr for any message
 16.2777 +      # that says an option was ignored or not supported.
 16.2778 +      # When given -MP, icc 7.0 and 7.1 complain thusly:
 16.2779 +      #   icc: Command line warning: ignoring option '-M'; no argument required
 16.2780 +      # The diagnosis changed in icc 8.0:
 16.2781 +      #   icc: Command line remark: option '-MP' not supported
 16.2782 +      if (grep 'ignoring option' conftest.err ||
 16.2783 +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 16.2784 +        am_cv_CC_dependencies_compiler_type=$depmode
 16.2785 +        break
 16.2786 +      fi
 16.2787 +    fi
 16.2788 +  done
 16.2789 +
 16.2790 +  cd ..
 16.2791 +  rm -rf conftest.dir
 16.2792 +else
 16.2793 +  am_cv_CC_dependencies_compiler_type=none
 16.2794 +fi
 16.2795 +
 16.2796 +fi
 16.2797 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 16.2798 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 16.2799 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 16.2800 +
 16.2801 +
 16.2802 +
 16.2803 +if
 16.2804 +  test "x$enable_dependency_tracking" != xno \
 16.2805 +  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 16.2806 +  am__fastdepCC_TRUE=
 16.2807 +  am__fastdepCC_FALSE='#'
 16.2808 +else
 16.2809 +  am__fastdepCC_TRUE='#'
 16.2810 +  am__fastdepCC_FALSE=
 16.2811 +fi
 16.2812 +
 16.2813 +
 16.2814 +#AC_PROG_INSTALL
 16.2815 +
 16.2816 +# Right now, we can assume that the lib/ and ramdisk/ directories
 16.2817 +# are two levels above the tests
 16.2818 +TESTLIB=../../lib
 16.2819 +RD_PATH=../../ramdisk
 16.2820 +TENV="PYTHONPATH=$PYTHONPATH:$TESTLIB:/usr/lib/python RD_PATH=$RD_PATH"
 16.2821 +
 16.2822 +# Check whether --enable-vmx-support or --disable-vmx-support was given.
 16.2823 +if test "${enable_vmx_support+set}" = set; then
 16.2824 +  enableval="$enable_vmx_support"
 16.2825 +
 16.2826 +		ENABLE_VMX=True
 16.2827 +
 16.2828 +else
 16.2829 +
 16.2830 +		ENABLE_VMX=False
 16.2831 +
 16.2832 +fi;
 16.2833 +
 16.2834 +
 16.2835 +
 16.2836 +
 16.2837 +
 16.2838 +
 16.2839 +for ac_prog in 'bison -y' byacc
 16.2840 +do
 16.2841 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
 16.2842 +set dummy $ac_prog; ac_word=$2
 16.2843 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.2844 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.2845 +if test "${ac_cv_prog_YACC+set}" = set; then
 16.2846 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.2847 +else
 16.2848 +  if test -n "$YACC"; then
 16.2849 +  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 16.2850 +else
 16.2851 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.2852 +for as_dir in $PATH
 16.2853 +do
 16.2854 +  IFS=$as_save_IFS
 16.2855 +  test -z "$as_dir" && as_dir=.
 16.2856 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.2857 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.2858 +    ac_cv_prog_YACC="$ac_prog"
 16.2859 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.2860 +    break 2
 16.2861 +  fi
 16.2862 +done
 16.2863 +done
 16.2864 +
 16.2865 +fi
 16.2866 +fi
 16.2867 +YACC=$ac_cv_prog_YACC
 16.2868 +if test -n "$YACC"; then
 16.2869 +  echo "$as_me:$LINENO: result: $YACC" >&5
 16.2870 +echo "${ECHO_T}$YACC" >&6
 16.2871 +else
 16.2872 +  echo "$as_me:$LINENO: result: no" >&5
 16.2873 +echo "${ECHO_T}no" >&6
 16.2874 +fi
 16.2875 +
 16.2876 +  test -n "$YACC" && break
 16.2877 +done
 16.2878 +test -n "$YACC" || YACC="yacc"
 16.2879 +
 16.2880 +
 16.2881 +for ac_prog in flex lex
 16.2882 +do
 16.2883 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
 16.2884 +set dummy $ac_prog; ac_word=$2
 16.2885 +echo "$as_me:$LINENO: checking for $ac_word" >&5
 16.2886 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 16.2887 +if test "${ac_cv_prog_LEX+set}" = set; then
 16.2888 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.2889 +else
 16.2890 +  if test -n "$LEX"; then
 16.2891 +  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 16.2892 +else
 16.2893 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.2894 +for as_dir in $PATH
 16.2895 +do
 16.2896 +  IFS=$as_save_IFS
 16.2897 +  test -z "$as_dir" && as_dir=.
 16.2898 +  for ac_exec_ext in '' $ac_executable_extensions; do
 16.2899 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 16.2900 +    ac_cv_prog_LEX="$ac_prog"
 16.2901 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 16.2902 +    break 2
 16.2903 +  fi
 16.2904 +done
 16.2905 +done
 16.2906 +
 16.2907 +fi
 16.2908 +fi
 16.2909 +LEX=$ac_cv_prog_LEX
 16.2910 +if test -n "$LEX"; then
 16.2911 +  echo "$as_me:$LINENO: result: $LEX" >&5
 16.2912 +echo "${ECHO_T}$LEX" >&6
 16.2913 +else
 16.2914 +  echo "$as_me:$LINENO: result: no" >&5
 16.2915 +echo "${ECHO_T}no" >&6
 16.2916 +fi
 16.2917 +
 16.2918 +  test -n "$LEX" && break
 16.2919 +done
 16.2920 +test -n "$LEX" || LEX=":"
 16.2921 +
 16.2922 +if test -z "$LEXLIB"
 16.2923 +then
 16.2924 +  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
 16.2925 +echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
 16.2926 +if test "${ac_cv_lib_fl_yywrap+set}" = set; then
 16.2927 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.2928 +else
 16.2929 +  ac_check_lib_save_LIBS=$LIBS
 16.2930 +LIBS="-lfl  $LIBS"
 16.2931 +cat >conftest.$ac_ext <<_ACEOF
 16.2932 +/* confdefs.h.  */
 16.2933 +_ACEOF
 16.2934 +cat confdefs.h >>conftest.$ac_ext
 16.2935 +cat >>conftest.$ac_ext <<_ACEOF
 16.2936 +/* end confdefs.h.  */
 16.2937 +
 16.2938 +/* Override any gcc2 internal prototype to avoid an error.  */
 16.2939 +#ifdef __cplusplus
 16.2940 +extern "C"
 16.2941 +#endif
 16.2942 +/* We use char because int might match the return type of a gcc2
 16.2943 +   builtin and then its argument prototype would still apply.  */
 16.2944 +char yywrap ();
 16.2945 +int
 16.2946 +main ()
 16.2947 +{
 16.2948 +yywrap ();
 16.2949 +  ;
 16.2950 +  return 0;
 16.2951 +}
 16.2952 +_ACEOF
 16.2953 +rm -f conftest.$ac_objext conftest$ac_exeext
 16.2954 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 16.2955 +  (eval $ac_link) 2>conftest.er1
 16.2956 +  ac_status=$?
 16.2957 +  grep -v '^ *+' conftest.er1 >conftest.err
 16.2958 +  rm -f conftest.er1
 16.2959 +  cat conftest.err >&5
 16.2960 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2961 +  (exit $ac_status); } &&
 16.2962 +	 { ac_try='test -z "$ac_c_werror_flag"
 16.2963 +			 || test ! -s conftest.err'
 16.2964 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2965 +  (eval $ac_try) 2>&5
 16.2966 +  ac_status=$?
 16.2967 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2968 +  (exit $ac_status); }; } &&
 16.2969 +	 { ac_try='test -s conftest$ac_exeext'
 16.2970 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.2971 +  (eval $ac_try) 2>&5
 16.2972 +  ac_status=$?
 16.2973 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.2974 +  (exit $ac_status); }; }; then
 16.2975 +  ac_cv_lib_fl_yywrap=yes
 16.2976 +else
 16.2977 +  echo "$as_me: failed program was:" >&5
 16.2978 +sed 's/^/| /' conftest.$ac_ext >&5
 16.2979 +
 16.2980 +ac_cv_lib_fl_yywrap=no
 16.2981 +fi
 16.2982 +rm -f conftest.err conftest.$ac_objext \
 16.2983 +      conftest$ac_exeext conftest.$ac_ext
 16.2984 +LIBS=$ac_check_lib_save_LIBS
 16.2985 +fi
 16.2986 +echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
 16.2987 +echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
 16.2988 +if test $ac_cv_lib_fl_yywrap = yes; then
 16.2989 +  LEXLIB="-lfl"
 16.2990 +else
 16.2991 +  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
 16.2992 +echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
 16.2993 +if test "${ac_cv_lib_l_yywrap+set}" = set; then
 16.2994 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.2995 +else
 16.2996 +  ac_check_lib_save_LIBS=$LIBS
 16.2997 +LIBS="-ll  $LIBS"
 16.2998 +cat >conftest.$ac_ext <<_ACEOF
 16.2999 +/* confdefs.h.  */
 16.3000 +_ACEOF
 16.3001 +cat confdefs.h >>conftest.$ac_ext
 16.3002 +cat >>conftest.$ac_ext <<_ACEOF
 16.3003 +/* end confdefs.h.  */
 16.3004 +
 16.3005 +/* Override any gcc2 internal prototype to avoid an error.  */
 16.3006 +#ifdef __cplusplus
 16.3007 +extern "C"
 16.3008 +#endif
 16.3009 +/* We use char because int might match the return type of a gcc2
 16.3010 +   builtin and then its argument prototype would still apply.  */
 16.3011 +char yywrap ();
 16.3012 +int
 16.3013 +main ()
 16.3014 +{
 16.3015 +yywrap ();
 16.3016 +  ;
 16.3017 +  return 0;
 16.3018 +}
 16.3019 +_ACEOF
 16.3020 +rm -f conftest.$ac_objext conftest$ac_exeext
 16.3021 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 16.3022 +  (eval $ac_link) 2>conftest.er1
 16.3023 +  ac_status=$?
 16.3024 +  grep -v '^ *+' conftest.er1 >conftest.err
 16.3025 +  rm -f conftest.er1
 16.3026 +  cat conftest.err >&5
 16.3027 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.3028 +  (exit $ac_status); } &&
 16.3029 +	 { ac_try='test -z "$ac_c_werror_flag"
 16.3030 +			 || test ! -s conftest.err'
 16.3031 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.3032 +  (eval $ac_try) 2>&5
 16.3033 +  ac_status=$?
 16.3034 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.3035 +  (exit $ac_status); }; } &&
 16.3036 +	 { ac_try='test -s conftest$ac_exeext'
 16.3037 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.3038 +  (eval $ac_try) 2>&5
 16.3039 +  ac_status=$?
 16.3040 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.3041 +  (exit $ac_status); }; }; then
 16.3042 +  ac_cv_lib_l_yywrap=yes
 16.3043 +else
 16.3044 +  echo "$as_me: failed program was:" >&5
 16.3045 +sed 's/^/| /' conftest.$ac_ext >&5
 16.3046 +
 16.3047 +ac_cv_lib_l_yywrap=no
 16.3048 +fi
 16.3049 +rm -f conftest.err conftest.$ac_objext \
 16.3050 +      conftest$ac_exeext conftest.$ac_ext
 16.3051 +LIBS=$ac_check_lib_save_LIBS
 16.3052 +fi
 16.3053 +echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
 16.3054 +echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
 16.3055 +if test $ac_cv_lib_l_yywrap = yes; then
 16.3056 +  LEXLIB="-ll"
 16.3057 +fi
 16.3058 +
 16.3059 +fi
 16.3060 +
 16.3061 +fi
 16.3062 +
 16.3063 +if test "x$LEX" != "x:"; then
 16.3064 +  echo "$as_me:$LINENO: checking lex output file root" >&5
 16.3065 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
 16.3066 +if test "${ac_cv_prog_lex_root+set}" = set; then
 16.3067 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.3068 +else
 16.3069 +  # The minimal lex program is just a single line: %%.  But some broken lexes
 16.3070 +# (Solaris, I think it was) want two %% lines, so accommodate them.
 16.3071 +cat >conftest.l <<_ACEOF
 16.3072 +%%
 16.3073 +%%
 16.3074 +_ACEOF
 16.3075 +{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
 16.3076 +  (eval $LEX conftest.l) 2>&5
 16.3077 +  ac_status=$?
 16.3078 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.3079 +  (exit $ac_status); }
 16.3080 +if test -f lex.yy.c; then
 16.3081 +  ac_cv_prog_lex_root=lex.yy
 16.3082 +elif test -f lexyy.c; then
 16.3083 +  ac_cv_prog_lex_root=lexyy
 16.3084 +else
 16.3085 +  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
 16.3086 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
 16.3087 +   { (exit 1); exit 1; }; }
 16.3088 +fi
 16.3089 +fi
 16.3090 +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
 16.3091 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
 16.3092 +rm -f conftest.l
 16.3093 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 16.3094 +
 16.3095 +echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
 16.3096 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
 16.3097 +if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
 16.3098 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 16.3099 +else
 16.3100 +  # POSIX says lex can declare yytext either as a pointer or an array; the
 16.3101 +# default is implementation-dependent. Figure out which it is, since
 16.3102 +# not all implementations provide the %pointer and %array declarations.
 16.3103 +ac_cv_prog_lex_yytext_pointer=no
 16.3104 +echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
 16.3105 +ac_save_LIBS=$LIBS
 16.3106 +LIBS="$LIBS $LEXLIB"
 16.3107 +cat >conftest.$ac_ext <<_ACEOF
 16.3108 +`cat $LEX_OUTPUT_ROOT.c`
 16.3109 +_ACEOF
 16.3110 +rm -f conftest.$ac_objext conftest$ac_exeext
 16.3111 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 16.3112 +  (eval $ac_link) 2>conftest.er1
 16.3113 +  ac_status=$?
 16.3114 +  grep -v '^ *+' conftest.er1 >conftest.err
 16.3115 +  rm -f conftest.er1
 16.3116 +  cat conftest.err >&5
 16.3117 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.3118 +  (exit $ac_status); } &&
 16.3119 +	 { ac_try='test -z "$ac_c_werror_flag"
 16.3120 +			 || test ! -s conftest.err'
 16.3121 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.3122 +  (eval $ac_try) 2>&5
 16.3123 +  ac_status=$?
 16.3124 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.3125 +  (exit $ac_status); }; } &&
 16.3126 +	 { ac_try='test -s conftest$ac_exeext'
 16.3127 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 16.3128 +  (eval $ac_try) 2>&5
 16.3129 +  ac_status=$?
 16.3130 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 16.3131 +  (exit $ac_status); }; }; then
 16.3132 +  ac_cv_prog_lex_yytext_pointer=yes
 16.3133 +else
 16.3134 +  echo "$as_me: failed program was:" >&5
 16.3135 +sed 's/^/| /' conftest.$ac_ext >&5
 16.3136 +
 16.3137 +fi
 16.3138 +rm -f conftest.err conftest.$ac_objext \
 16.3139 +      conftest$ac_exeext conftest.$ac_ext
 16.3140 +LIBS=$ac_save_LIBS
 16.3141 +rm -f "${LEX_OUTPUT_ROOT}.c"
 16.3142 +
 16.3143 +fi
 16.3144 +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
 16.3145 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
 16.3146 +if test $ac_cv_prog_lex_yytext_pointer = yes; then
 16.3147 +
 16.3148 +cat >>confdefs.h <<\_ACEOF
 16.3149 +#define YYTEXT_POINTER 1
 16.3150 +_ACEOF
 16.3151 +
 16.3152 +fi
 16.3153 +
 16.3154 +fi
 16.3155 +
 16.3156 +# basic build files
 16.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"
 16.3158 +
 16.3159 +
 16.3160 +
 16.3161 +cat >confcache <<\_ACEOF
 16.3162 +# This file is a shell script that caches the results of configure
 16.3163 +# tests run on this system so they can be shared between configure
 16.3164 +# scripts and configure runs, see configure's option --config-cache.
 16.3165 +# It is not useful on other systems.  If it contains results you don't
 16.3166 +# want to keep, you may remove or edit it.
 16.3167 +#
 16.3168 +# config.status only pays attention to the cache file if you give it
 16.3169 +# the --recheck option to rerun configure.
 16.3170 +#
 16.3171 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
 16.3172 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
 16.3173 +# following values.
 16.3174 +
 16.3175 +_ACEOF
 16.3176 +
 16.3177 +# The following way of writing the cache mishandles newlines in values,
 16.3178 +# but we know of no workaround that is simple, portable, and efficient.
 16.3179 +# So, don't put newlines in cache variables' values.
 16.3180 +# Ultrix sh set writes to stderr and can't be redirected directly,
 16.3181 +# and sets the high bit in the cache file unless we assign to the vars.
 16.3182 +{
 16.3183 +  (set) 2>&1 |
 16.3184 +    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 16.3185 +    *ac_space=\ *)
 16.3186 +      # `set' does not quote correctly, so add quotes (double-quote
 16.3187 +      # substitution turns \\\\ into \\, and sed turns \\ into \).
 16.3188 +      sed -n \
 16.3189 +	"s/'/'\\\\''/g;
 16.3190 +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 16.3191 +      ;;
 16.3192 +    *)
 16.3193 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
 16.3194 +      sed -n \
 16.3195 +	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 16.3196 +      ;;
 16.3197 +    esac;
 16.3198 +} |
 16.3199 +  sed '
 16.3200 +     t clear
 16.3201 +     : clear
 16.3202 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 16.3203 +     t end
 16.3204 +     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 16.3205 +     : end' >>confcache
 16.3206 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
 16.3207 +  if test -w $cache_file; then
 16.3208 +    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 16.3209 +    cat confcache >$cache_file
 16.3210 +  else
 16.3211 +    echo "not updating unwritable cache $cache_file"
 16.3212 +  fi
 16.3213 +fi
 16.3214 +rm -f confcache
 16.3215 +
 16.3216 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
 16.3217 +# Let make expand exec_prefix.
 16.3218 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 16.3219 +
 16.3220 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
 16.3221 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 16.3222 +# trailing colons and then remove the whole line if VPATH becomes empty
 16.3223 +# (actually we leave an empty line to preserve line numbers).
 16.3224 +if test "x$srcdir" = x.; then
 16.3225 +  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
 16.3226 +s/:*\$(srcdir):*/:/;
 16.3227 +s/:*\${srcdir}:*/:/;
 16.3228 +s/:*@srcdir@:*/:/;
 16.3229 +s/^\([^=]*=[	 ]*\):*/\1/;
 16.3230 +s/:*$//;
 16.3231 +s/^[^=]*=[	 ]*$//;
 16.3232 +}'
 16.3233 +fi
 16.3234 +
 16.3235 +# Transform confdefs.h into DEFS.
 16.3236 +# Protect against shell expansion while executing Makefile rules.
 16.3237 +# Protect against Makefile macro expansion.
 16.3238 +#
 16.3239 +# If the first sed substitution is executed (which looks for macros that
 16.3240 +# take arguments), then we branch to the quote section.  Otherwise,
 16.3241 +# look for a macro that doesn't take arguments.
 16.3242 +cat >confdef2opt.sed <<\_ACEOF
 16.3243 +t clear
 16.3244 +: clear
 16.3245 +s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
 16.3246 +t quote
 16.3247 +s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
 16.3248 +t quote
 16.3249 +d
 16.3250 +: quote
 16.3251 +s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
 16.3252 +s,\[,\\&,g
 16.3253 +s,\],\\&,g
 16.3254 +s,\$,$$,g
 16.3255 +p
 16.3256 +_ACEOF
 16.3257 +# We use echo to avoid assuming a particular line-breaking character.
 16.3258 +# The extra dot is to prevent the shell from consuming trailing
 16.3259 +# line-breaks from the sub-command output.  A line-break within
 16.3260 +# single-quotes doesn't work because, if this script is created in a
 16.3261 +# platform that uses two characters for line-breaks (e.g., DOS), tr
 16.3262 +# would break.
 16.3263 +ac_LF_and_DOT=`echo; echo .`
 16.3264 +DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 16.3265 +rm -f confdef2opt.sed
 16.3266 +
 16.3267 +
 16.3268 +ac_libobjs=
 16.3269 +ac_ltlibobjs=
 16.3270 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 16.3271 +  # 1. Remove the extension, and $U if already installed.
 16.3272 +  ac_i=`echo "$ac_i" |
 16.3273 +	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 16.3274 +  # 2. Add them.
 16.3275 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 16.3276 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 16.3277 +done
 16.3278 +LIBOBJS=$ac_libobjs
 16.3279 +
 16.3280 +LTLIBOBJS=$ac_ltlibobjs
 16.3281 +
 16.3282 +
 16.3283 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 16.3284 +  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 16.3285 +Usually this means the macro was only invoked conditionally." >&5
 16.3286 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
 16.3287 +Usually this means the macro was only invoked conditionally." >&2;}
 16.3288 +   { (exit 1); exit 1; }; }
 16.3289 +fi
 16.3290 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 16.3291 +  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 16.3292 +Usually this means the macro was only invoked conditionally." >&5
 16.3293 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 16.3294 +Usually this means the macro was only invoked conditionally." >&2;}
 16.3295 +   { (exit 1); exit 1; }; }
 16.3296 +fi
 16.3297 +
 16.3298 +: ${CONFIG_STATUS=./config.status}
 16.3299 +ac_clean_files_save=$ac_clean_files
 16.3300 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 16.3301 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 16.3302 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
 16.3303 +cat >$CONFIG_STATUS <<_ACEOF
 16.3304 +#! $SHELL
 16.3305 +# Generated by $as_me.
 16.3306 +# Run this file to recreate the current configuration.
 16.3307 +# Compiler output produced by configure, useful for debugging
 16.3308 +# configure, is in config.log if it exists.
 16.3309 +
 16.3310 +debug=false
 16.3311 +ac_cs_recheck=false
 16.3312 +ac_cs_silent=false
 16.3313 +SHELL=\${CONFIG_SHELL-$SHELL}
 16.3314 +_ACEOF
 16.3315 +
 16.3316 +cat >>$CONFIG_STATUS <<\_ACEOF
 16.3317 +## --------------------- ##
 16.3318 +## M4sh Initialization.  ##
 16.3319 +## --------------------- ##
 16.3320 +
 16.3321 +# Be Bourne compatible
 16.3322 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 16.3323 +  emulate sh
 16.3324 +  NULLCMD=:
 16.3325 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 16.3326 +  # is contrary to our usage.  Disable this feature.
 16.3327 +  alias -g '${1+"$@"}'='"$@"'
 16.3328 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 16.3329 +  set -o posix
 16.3330 +fi
 16.3331 +DUALCASE=1; export DUALCASE # for MKS sh
 16.3332 +
 16.3333 +# Support unset when possible.
 16.3334 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 16.3335 +  as_unset=unset
 16.3336 +else
 16.3337 +  as_unset=false
 16.3338 +fi
 16.3339 +
 16.3340 +
 16.3341 +# Work around bugs in pre-3.0 UWIN ksh.
 16.3342 +$as_unset ENV MAIL MAILPATH
 16.3343 +PS1='$ '
 16.3344 +PS2='> '
 16.3345 +PS4='+ '
 16.3346 +
 16.3347 +# NLS nuisances.
 16.3348 +for as_var in \
 16.3349 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 16.3350 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 16.3351 +  LC_TELEPHONE LC_TIME
 16.3352 +do
 16.3353 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 16.3354 +    eval $as_var=C; export $as_var
 16.3355 +  else
 16.3356 +    $as_unset $as_var
 16.3357 +  fi
 16.3358 +done
 16.3359 +
 16.3360 +# Required to use basename.
 16.3361 +if expr a : '\(a\)' >/dev/null 2>&1; then
 16.3362 +  as_expr=expr
 16.3363 +else
 16.3364 +  as_expr=false
 16.3365 +fi
 16.3366 +
 16.3367 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 16.3368 +  as_basename=basename
 16.3369 +else
 16.3370 +  as_basename=false
 16.3371 +fi
 16.3372 +
 16.3373 +
 16.3374 +# Name of the executable.
 16.3375 +as_me=`$as_basename "$0" ||
 16.3376 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 16.3377 +	 X"$0" : 'X\(//\)$' \| \
 16.3378 +	 X"$0" : 'X\(/\)$' \| \
 16.3379 +	 .     : '\(.\)' 2>/dev/null ||
 16.3380 +echo X/"$0" |
 16.3381 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 16.3382 +  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
 16.3383 +  	  /^X\/\(\/\).*/{ s//\1/; q; }
 16.3384 +  	  s/.*/./; q'`
 16.3385 +
 16.3386 +
 16.3387 +# PATH needs CR, and LINENO needs CR and PATH.
 16.3388 +# Avoid depending upon Character Ranges.
 16.3389 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 16.3390 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 16.3391 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 16.3392 +as_cr_digits='0123456789'
 16.3393 +as_cr_alnum=$as_cr_Letters$as_cr_digits
 16.3394 +
 16.3395 +# The user is always right.
 16.3396 +if test "${PATH_SEPARATOR+set}" != set; then
 16.3397 +  echo "#! /bin/sh" >conf$$.sh
 16.3398 +  echo  "exit 0"   >>conf$$.sh
 16.3399 +  chmod +x conf$$.sh
 16.3400 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 16.3401 +    PATH_SEPARATOR=';'
 16.3402 +  else
 16.3403 +    PATH_SEPARATOR=:
 16.3404 +  fi
 16.3405 +  rm -f conf$$.sh
 16.3406 +fi
 16.3407 +
 16.3408 +
 16.3409 +  as_lineno_1=$LINENO
 16.3410 +  as_lineno_2=$LINENO
 16.3411 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 16.3412 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
 16.3413 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 16.3414 +  # Find who we are.  Look in the path if we contain no path at all
 16.3415 +  # relative or not.
 16.3416 +  case $0 in
 16.3417 +    *[\\/]* ) as_myself=$0 ;;
 16.3418 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.3419 +for as_dir in $PATH
 16.3420 +do
 16.3421 +  IFS=$as_save_IFS
 16.3422 +  test -z "$as_dir" && as_dir=.
 16.3423 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 16.3424 +done
 16.3425 +
 16.3426 +       ;;
 16.3427 +  esac
 16.3428 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
 16.3429 +  # in which case we are not to be found in the path.
 16.3430 +  if test "x$as_myself" = x; then
 16.3431 +    as_myself=$0
 16.3432 +  fi
 16.3433 +  if test ! -f "$as_myself"; then
 16.3434 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 16.3435 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 16.3436 +   { (exit 1); exit 1; }; }
 16.3437 +  fi
 16.3438 +  case $CONFIG_SHELL in
 16.3439 +  '')
 16.3440 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 16.3441 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 16.3442 +do
 16.3443 +  IFS=$as_save_IFS
 16.3444 +  test -z "$as_dir" && as_dir=.
 16.3445 +  for as_base in sh bash ksh sh5; do
 16.3446 +	 case $as_dir in
 16.3447 +	 /*)
 16.3448 +	   if ("$as_dir/$as_base" -c '
 16.3449 +  as_lineno_1=$LINENO
 16.3450 +  as_lineno_2=$LINENO
 16.3451 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 16.3452 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
 16.3453 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 16.3454 +	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 16.3455 +	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 16.3456 +	     CONFIG_SHELL=$as_dir/$as_base
 16.3457 +	     export CONFIG_SHELL
 16.3458 +	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 16.3459 +	   fi;;
 16.3460 +	 esac
 16.3461 +       done
 16.3462 +done
 16.3463 +;;
 16.3464 +  esac
 16.3465 +
 16.3466 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 16.3467 +  # uniformly replaced by the line number.  The first 'sed' inserts a
 16.3468 +  # line-number line before each line; the second 'sed' does the real
 16.3469 +  # work.  The second script uses 'N' to pair each line-number line
 16.3470 +  # with the numbered line, and appends trailing '-' during
 16.3471 +  # substitution so that $LINENO is not a special case at line end.
 16.3472 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 16.3473 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 16.3474 +  sed '=' <$as_myself |
 16.3475 +    sed '
 16.3476 +      N
 16.3477 +      s,$,-,
 16.3478 +      : loop
 16.3479 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 16.3480 +      t loop
 16.3481 +      s,-$,,
 16.3482 +      s,^['$as_cr_digits']*\n,,
 16.3483 +    ' >$as_me.lineno &&
 16.3484 +  chmod +x $as_me.lineno ||
 16.3485 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 16.3486 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 16.3487 +   { (exit 1); exit 1; }; }
 16.3488 +
 16.3489 +  # Don't try to exec as it changes $[0], causing all sort of problems
 16.3490 +  # (the dirname of $[0] is not the place where we might find the
 16.3491 +  # original and so on.  Autoconf is especially sensible to this).
 16.3492 +  . ./$as_me.lineno
 16.3493 +  # Exit status is that of the last command.
 16.3494 +  exit
 16.3495 +}
 16.3496 +
 16.3497 +
 16.3498 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 16.3499 +  *c*,-n*) ECHO_N= ECHO_C='
 16.3500 +' ECHO_T='	' ;;
 16.3501 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 16.3502 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 16.3503 +esac
 16.3504 +
 16.3505 +if expr a : '\(a\)' >/dev/null 2>&1; then
 16.3506 +  as_expr=expr
 16.3507 +else
 16.3508 +  as_expr=false
 16.3509 +fi
 16.3510 +
 16.3511 +rm -f conf$$ conf$$.exe conf$$.file
 16.3512 +echo >conf$$.file
 16.3513 +if ln -s conf$$.file conf$$ 2>/dev/null; then
 16.3514 +  # We could just check for DJGPP; but this test a) works b) is more generic
 16.3515 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 16.3516 +  if test -f conf$$.exe; then
 16.3517 +    # Don't use ln at all; we don't have any links
 16.3518 +    as_ln_s='cp -p'
 16.3519 +  else
 16.3520 +    as_ln_s='ln -s'
 16.3521 +  fi
 16.3522 +elif ln conf$$.file conf$$ 2>/dev/null; then
 16.3523 +  as_ln_s=ln
 16.3524 +else
 16.3525 +  as_ln_s='cp -p'
 16.3526 +fi
 16.3527 +rm -f conf$$ conf$$.exe conf$$.file
 16.3528 +
 16.3529 +if mkdir -p . 2>/dev/null; then
 16.3530 +  as_mkdir_p=:
 16.3531 +else
 16.3532 +  test -d ./-p && rmdir ./-p
 16.3533 +  as_mkdir_p=false
 16.3534 +fi
 16.3535 +
 16.3536 +as_executable_p="test -f"
 16.3537 +
 16.3538 +# Sed expression to map a string onto a valid CPP name.
 16.3539 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 16.3540 +
 16.3541 +# Sed expression to map a string onto a valid variable name.
 16.3542 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 16.3543 +
 16.3544 +
 16.3545 +# IFS
 16.3546 +# We need space, tab and new line, in precisely that order.
 16.3547 +as_nl='
 16.3548 +'
 16.3549 +IFS=" 	$as_nl"
 16.3550 +
 16.3551 +# CDPATH.
 16.3552 +$as_unset CDPATH
 16.3553 +
 16.3554 +exec 6>&1
 16.3555 +
 16.3556 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
 16.3557 +# report actual input values of CONFIG_FILES etc. instead of their
 16.3558 +# values after options handling.  Logging --version etc. is OK.
 16.3559 +exec 5>>config.log
 16.3560 +{
 16.3561 +  echo
 16.3562 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 16.3563 +## Running $as_me. ##
 16.3564 +_ASBOX
 16.3565 +} >&5
 16.3566 +cat >&5 <<_CSEOF
 16.3567 +
 16.3568 +This file was extended by xm-test $as_me 0.4.0, which was
 16.3569 +generated by GNU Autoconf 2.59.  Invocation command line was
 16.3570 +
 16.3571 +  CONFIG_FILES    = $CONFIG_FILES
 16.3572 +  CONFIG_HEADERS  = $CONFIG_HEADERS
 16.3573 +  CONFIG_LINKS    = $CONFIG_LINKS
 16.3574 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
 16.3575 +  $ $0 $@
 16.3576 +
 16.3577 +_CSEOF
 16.3578 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 16.3579 +echo >&5
 16.3580 +_ACEOF
 16.3581 +
 16.3582 +# Files that config.status was made for.
 16.3583 +if test -n "$ac_config_files"; then
 16.3584 +  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 16.3585 +fi
 16.3586 +
 16.3587 +if test -n "$ac_config_headers"; then
 16.3588 +  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 16.3589 +fi
 16.3590 +
 16.3591 +if test -n "$ac_config_links"; then
 16.3592 +  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 16.3593 +fi
 16.3594 +
 16.3595 +if test -n "$ac_config_commands"; then
 16.3596 +  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 16.3597 +fi
 16.3598 +
 16.3599 +cat >>$CONFIG_STATUS <<\_ACEOF
 16.3600 +
 16.3601 +ac_cs_usage="\
 16.3602 +\`$as_me' instantiates files from templates according to the
 16.3603 +current configuration.
 16.3604 +
 16.3605 +Usage: $0 [OPTIONS] [FILE]...
 16.3606 +
 16.3607 +  -h, --help       print this help, then exit
 16.3608 +  -V, --version    print version number, then exit
 16.3609 +  -q, --quiet      do not print progress messages
 16.3610 +  -d, --debug      don't remove temporary files
 16.3611 +      --recheck    update $as_me by reconfiguring in the same conditions
 16.3612 +  --file=FILE[:TEMPLATE]
 16.3613 +		   instantiate the configuration file FILE
 16.3614 +
 16.3615 +Configuration files:
 16.3616 +$config_files
 16.3617 +
 16.3618 +Configuration commands:
 16.3619 +$config_commands
 16.3620 +
 16.3621 +Report bugs to <bug-autoconf@gnu.org>."
 16.3622 +_ACEOF
 16.3623 +
 16.3624 +cat >>$CONFIG_STATUS <<_ACEOF
 16.3625 +ac_cs_version="\\
 16.3626 +xm-test config.status 0.4.0
 16.3627 +configured by $0, generated by GNU Autoconf 2.59,
 16.3628 +  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 16.3629 +
 16.3630 +Copyright (C) 2003 Free Software Foundation, Inc.
 16.3631 +This config.status script is free software; the Free Software Foundation
 16.3632 +gives unlimited permission to copy, distribute and modify it."
 16.3633 +srcdir=$srcdir
 16.3634 +INSTALL="$INSTALL"
 16.3635 +_ACEOF
 16.3636 +
 16.3637 +cat >>$CONFIG_STATUS <<\_ACEOF
 16.3638 +# If no file are specified by the user, then we need to provide default
 16.3639 +# value.  By we need to know if files were specified by the user.
 16.3640 +ac_need_defaults=:
 16.3641 +while test $# != 0
 16.3642 +do
 16.3643 +  case $1 in
 16.3644 +  --*=*)
 16.3645 +    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 16.3646 +    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 16.3647 +    ac_shift=:
 16.3648 +    ;;
 16.3649 +  -*)
 16.3650 +    ac_option=$1
 16.3651 +    ac_optarg=$2
 16.3652 +    ac_shift=shift
 16.3653 +    ;;
 16.3654 +  *) # This is not an option, so the user has probably given explicit
 16.3655 +     # arguments.
 16.3656 +     ac_option=$1
 16.3657 +     ac_need_defaults=false;;
 16.3658 +  esac
 16.3659 +
 16.3660 +  case $ac_option in
 16.3661 +  # Handling of the options.
 16.3662 +_ACEOF
 16.3663 +cat >>$CONFIG_STATUS <<\_ACEOF
 16.3664 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 16.3665 +    ac_cs_recheck=: ;;
 16.3666 +  --version | --vers* | -V )
 16.3667 +    echo "$ac_cs_version"; exit 0 ;;
 16.3668 +  --he | --h)
 16.3669 +    # Conflict between --help and --header
 16.3670 +    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 16.3671 +Try \`$0 --help' for more information." >&5
 16.3672 +echo "$as_me: error: ambiguous option: $1
 16.3673 +Try \`$0 --help' for more information." >&2;}
 16.3674 +   { (exit 1); exit 1; }; };;
 16.3675 +  --help | --hel | -h )
 16.3676 +    echo "$ac_cs_usage"; exit 0 ;;
 16.3677 +  --debug | --d* | -d )
 16.3678 +    debug=: ;;
 16.3679 +  --file | --fil | --fi | --f )
 16.3680 +    $ac_shift
 16.3681 +    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 16.3682 +    ac_need_defaults=false;;
 16.3683 +  --header | --heade | --head | --hea )
 16.3684 +    $ac_shift
 16.3685 +    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 16.3686 +    ac_need_defaults=false;;
 16.3687 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 16.3688 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 16.3689 +    ac_cs_silent=: ;;
 16.3690 +
 16.3691 +  # This is an error.
 16.3692 +  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 16.3693 +Try \`$0 --help' for more information." >&5
 16.3694 +echo "$as_me: error: unrecognized option: $1
 16.3695 +Try \`$0 --help' for more information." >&2;}
 16.3696 +   { (exit 1); exit 1; }; } ;;
 16.3697 +
 16.3698 +  *) ac_config_targets="$ac_config_targets $1" ;;
 16.3699 +
 16.3700 +  esac
 16.3701 +  shift
 16.3702 +done
 16.3703 +
 16.3704 +ac_configure_extra_args=
 16.3705 +
 16.3706 +if $ac_cs_silent; then
 16.3707 +  exec 6>/dev/null
 16.3708 +  ac_configure_extra_args="$ac_configure_extra_args --silent"
 16.3709 +fi
 16.3710 +
 16.3711 +_ACEOF
 16.3712 +cat >>$CONFIG_STATUS <<_ACEOF
 16.3713 +if \$ac_cs_recheck; then
 16.3714 +  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 16.3715 +  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 16.3716 +fi
 16.3717 +
 16.3718 +_ACEOF
 16.3719 +
 16.3720 +cat >>$CONFIG_STATUS <<_ACEOF
 16.3721 +#
 16.3722 +# INIT-COMMANDS section.
 16.3723 +#
 16.3724 +
 16.3725 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 16.3726 +
 16.3727 +_ACEOF
 16.3728 +
 16.3729 +
 16.3730 +
 16.3731 +cat >>$CONFIG_STATUS <<\_ACEOF
 16.3732 +for ac_config_target in $ac_config_targets
 16.3733 +do
 16.3734 +  case "$ac_config_target" in
 16.3735 +  # Handling of arguments.
 16.3736 +  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 16.3737 +  "ramdisk/Makefile" ) CONFIG_FILES="$CONFIG_FILES ramdisk/Makefile" ;;
 16.3738 +  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 16.3739 +  "tests/block-list/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/block-list/Makefile" ;;
 16.3740 +  "tests/block-create/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/block-create/Makefile" ;;
 16.3741 +  "tests/block-destroy/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/block-destroy/Makefile" ;;
 16.3742 +  "tests/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/console/Makefile" ;;
 16.3743 +  "tests/create/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/create/Makefile" ;;
 16.3744 +  "tests/destroy/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/destroy/Makefile" ;;
 16.3745 +  "tests/dmesg/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dmesg/Makefile" ;;
 16.3746 +  "tests/domid/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/domid/Makefile" ;;
 16.3747 +  "tests/domname/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/domname/Makefile" ;;
 16.3748 +  "tests/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/help/Makefile" ;;
 16.3749 +  "tests/info/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/info/Makefile" ;;
 16.3750 +  "tests/list/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/list/Makefile" ;;
 16.3751 +  "tests/memmax/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/memmax/Makefile" ;;
 16.3752 +  "tests/memset/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/memset/Makefile" ;;
 16.3753 +  "tests/migrate/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/migrate/Makefile" ;;
 16.3754 +  "tests/pause/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pause/Makefile" ;;
 16.3755 +  "tests/reboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/reboot/Makefile" ;;
 16.3756 +  "tests/restore/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/restore/Makefile" ;;
 16.3757 +  "tests/save/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/save/Makefile" ;;
 16.3758 +  "tests/sedf/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sedf/Makefile" ;;
 16.3759 +  "tests/shutdown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shutdown/Makefile" ;;
 16.3760 +  "tests/sysrq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sysrq/Makefile" ;;
 16.3761 +  "tests/unpause/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unpause/Makefile" ;;
 16.3762 +  "tests/vcpu-pin/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/vcpu-pin/Makefile" ;;
 16.3763 +  "tests/vcpu-disable/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/vcpu-disable/Makefile" ;;
 16.3764 +  "tests/enforce_dom0_cpus/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/enforce_dom0_cpus/Makefile" ;;
 16.3765 +  "lib/XmTestReport/xmtest.py" ) CONFIG_FILES="$CONFIG_FILES lib/XmTestReport/xmtest.py" ;;
 16.3766 +  "lib/XmTestLib/config.py" ) CONFIG_FILES="$CONFIG_FILES lib/XmTestLib/config.py" ;;
 16.3767 +  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 16.3768 +  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 16.3769 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 16.3770 +   { (exit 1); exit 1; }; };;
 16.3771 +  esac
 16.3772 +done
 16.3773 +
 16.3774 +# If the user did not use the arguments to specify the items to instantiate,
 16.3775 +# then the envvar interface is used.  Set only those that are not.
 16.3776 +# We use the long form for the default assignment because of an extremely
 16.3777 +# bizarre bug on SunOS 4.1.3.
 16.3778 +if $ac_need_defaults; then
 16.3779 +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 16.3780 +  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 16.3781 +fi
 16.3782 +
 16.3783 +# Have a temporary directory for convenience.  Make it in the build tree
 16.3784 +# simply because there is no reason to put it here, and in addition,
 16.3785 +# creating and moving files from /tmp can sometimes cause problems.
 16.3786 +# Create a temporary directory, and hook for its removal unless debugging.
 16.3787 +$debug ||
 16.3788 +{
 16.3789 +  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 16.3790 +  trap '{ (exit 1); exit 1; }' 1 2 13 15
 16.3791 +}
 16.3792 +
 16.3793 +# Create a (secure) tmp directory for tmp files.
 16.3794 +
 16.3795 +{
 16.3796 +  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 16.3797 +  test -n "$tmp" && test -d "$tmp"
 16.3798 +}  ||
 16.3799 +{
 16.3800 +  tmp=./confstat$$-$RANDOM
 16.3801 +  (umask 077 && mkdir $tmp)
 16.3802 +} ||
 16.3803 +{
 16.3804 +   echo "$me: cannot create a temporary directory in ." >&2
 16.3805 +   { (exit 1); exit 1; }
 16.3806 +}
 16.3807 +
 16.3808 +_ACEOF
 16.3809 +
 16.3810 +cat >>$CONFIG_STATUS <<_ACEOF
 16.3811 +
 16.3812 +#
 16.3813 +# CONFIG_FILES section.
 16.3814 +#
 16.3815 +
 16.3816 +# No need to generate the scripts if there are no CONFIG_FILES.
 16.3817 +# This happens for instance when ./config.status config.h
 16.3818 +if test -n "\$CONFIG_FILES"; then
 16.3819 +  # Protect against being on the right side of a sed subst in config.status.
 16.3820 +  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 16.3821 +   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 16.3822 +s,@SHELL@,$SHELL,;t t
 16.3823 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 16.3824 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 16.3825 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 16.3826 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 16.3827 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 16.3828 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 16.3829 +s,@exec_prefix@,$exec_prefix,;t t
 16.3830 +s,@prefix@,$prefix,;t t
 16.3831 +s,@program_transform_name@,$program_transform_name,;t t
 16.3832 +s,@bindir@,$bindir,;t t
 16.3833 +s,@sbindir@,$sbindir,;t t
 16.3834 +s,@libexecdir@,$libexecdir,;t t
 16.3835 +s,@datadir@,$datadir,;t t
 16.3836 +s,@sysconfdir@,$sysconfdir,;t t
 16.3837 +s,@sharedstatedir@,$sharedstatedir,;t t
 16.3838 +s,@localstatedir@,$localstatedir,;t t
 16.3839 +s,@libdir@,$libdir,;t t
 16.3840 +s,@includedir@,$includedir,;t t
 16.3841 +s,@oldincludedir@,$oldincludedir,;t t
 16.3842 +s,@infodir@,$infodir,;t t
 16.3843 +s,@mandir@,$mandir,;t t
 16.3844 +s,@build_alias@,$build_alias,;t t
 16.3845 +s,@host_alias@,$host_alias,;t t
 16.3846 +s,@target_alias@,$target_alias,;t t
 16.3847 +s,@DEFS@,$DEFS,;t t
 16.3848 +s,@ECHO_C@,$ECHO_C,;t t
 16.3849 +s,@ECHO_N@,$ECHO_N,;t t
 16.3850 +s,@ECHO_T@,$ECHO_T,;t t
 16.3851 +s,@LIBS@,$LIBS,;t t
 16.3852 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 16.3853 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 16.3854 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 16.3855 +s,@CYGPATH_W@,$CYGPATH_W,;t t
 16.3856 +s,@PACKAGE@,$PACKAGE,;t t
 16.3857 +s,@VERSION@,$VERSION,;t t
 16.3858 +s,@ACLOCAL@,$ACLOCAL,;t t
 16.3859 +s,@AUTOCONF@,$AUTOCONF,;t t
 16.3860 +s,@AUTOMAKE@,$AUTOMAKE,;t t
 16.3861 +s,@AUTOHEADER@,$AUTOHEADER,;t t
 16.3862 +s,@MAKEINFO@,$MAKEINFO,;t t
 16.3863 +s,@install_sh@,$install_sh,;t t
 16.3864 +s,@STRIP@,$STRIP,;t t
 16.3865 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 16.3866 +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 16.3867 +s,@mkdir_p@,$mkdir_p,;t t
 16.3868 +s,@AWK@,$AWK,;t t
 16.3869 +s,@SET_MAKE@,$SET_MAKE,;t t
 16.3870 +s,@am__leading_dot@,$am__leading_dot,;t t
 16.3871 +s,@AMTAR@,$AMTAR,;t t
 16.3872 +s,@am__tar@,$am__tar,;t t
 16.3873 +s,@am__untar@,$am__untar,;t t
 16.3874 +s,@CC@,$CC,;t t
 16.3875 +s,@CFLAGS@,$CFLAGS,;t t
 16.3876 +s,@LDFLAGS@,$LDFLAGS,;t t
 16.3877 +s,@CPPFLAGS@,$CPPFLAGS,;t t
 16.3878 +s,@ac_ct_CC@,$ac_ct_CC,;t t
 16.3879 +s,@EXEEXT@,$EXEEXT,;t t
 16.3880 +s,@OBJEXT@,$OBJEXT,;t t
 16.3881 +s,@DEPDIR@,$DEPDIR,;t t
 16.3882 +s,@am__include@,$am__include,;t t
 16.3883 +s,@am__quote@,$am__quote,;t t
 16.3884 +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 16.3885 +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 16.3886 +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 16.3887 +s,@CCDEPMODE@,$CCDEPMODE,;t t
 16.3888 +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 16.3889 +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 16.3890 +s,@ENABLE_VMX@,$ENABLE_VMX,;t t
 16.3891 +s,@TENV@,$TENV,;t t
 16.3892 +s,@YACC@,$YACC,;t t
 16.3893 +s,@LEX@,$LEX,;t t
 16.3894 +s,@LEXLIB@,$LEXLIB,;t t
 16.3895 +s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
 16.3896 +s,@LIBOBJS@,$LIBOBJS,;t t
 16.3897 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 16.3898 +CEOF
 16.3899 +
 16.3900 +_ACEOF
 16.3901 +
 16.3902 +  cat >>$CONFIG_STATUS <<\_ACEOF
 16.3903 +  # Split the substitutions into bite-sized pieces for seds with
 16.3904 +  # small command number limits, like on Digital OSF/1 and HP-UX.
 16.3905 +  ac_max_sed_lines=48
 16.3906 +  ac_sed_frag=1 # Number of current file.
 16.3907 +  ac_beg=1 # First line for current file.
 16.3908 +  ac_end=$ac_max_sed_lines # Line after last line for current file.
 16.3909 +  ac_more_lines=:
 16.3910 +  ac_sed_cmds=
 16.3911 +  while $ac_more_lines; do
 16.3912 +    if test $ac_beg -gt 1; then
 16.3913 +      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 16.3914 +    else
 16.3915 +      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 16.3916 +    fi
 16.3917 +    if test ! -s $tmp/subs.frag; then
 16.3918 +      ac_more_lines=false
 16.3919 +    else
 16.3920 +      # The purpose of the label and of the branching condition is to
 16.3921 +      # speed up the sed processing (if there are no `@' at all, there
 16.3922 +      # is no need to browse any of the substitutions).
 16.3923 +      # These are the two extra sed commands mentioned above.
 16.3924 +      (echo ':t
 16.3925 +  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 16.3926 +      if test -z "$ac_sed_cmds"; then
 16.3927 +	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 16.3928 +      else
 16.3929 +	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 16.3930 +      fi
 16.3931 +      ac_sed_frag=`expr $ac_sed_frag + 1`
 16.3932 +      ac_beg=$ac_end
 16.3933 +      ac_end=`expr $ac_end + $ac_max_sed_lines`
 16.3934 +    fi
 16.3935 +  done
 16.3936 +  if test -z "$ac_sed_cmds"; then
 16.3937 +    ac_sed_cmds=cat
 16.3938 +  fi
 16.3939 +fi # test -n "$CONFIG_FILES"
 16.3940 +
 16.3941 +_ACEOF
 16.3942 +cat >>$CONFIG_STATUS <<\_ACEOF
 16.3943 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 16.3944 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 16.3945 +  case $ac_file in
 16.3946 +  - | *:- | *:-:* ) # input from stdin
 16.3947 +	cat >$tmp/stdin
 16.3948 +	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 16.3949 +	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 16.3950 +  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 16.3951 +	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 16.3952 +  * )   ac_file_in=$ac_file.in ;;
 16.3953 +  esac
 16.3954 +
 16.3955 +  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 16.3956 +  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 16.3957 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 16.3958 +	 X"$ac_file" : 'X\(//\)[^/]' \| \
 16.3959 +	 X"$ac_file" : 'X\(//\)$' \| \
 16.3960 +	 X"$ac_file" : 'X\(/\)' \| \
 16.3961 +	 .     : '\(.\)' 2>/dev/null ||
 16.3962 +echo X"$ac_file" |
 16.3963 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 16.3964 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 16.3965 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
 16.3966 +  	  /^X\(\/\).*/{ s//\1/; q; }
 16.3967 +  	  s/.*/./; q'`
 16.3968 +  { if $as_mkdir_p; then
 16.3969 +    mkdir -p "$ac_dir"
 16.3970 +  else
 16.3971 +    as_dir="$ac_dir"
 16.3972 +    as_dirs=
 16.3973 +    while test ! -d "$as_dir"; do
 16.3974 +      as_dirs="$as_dir $as_dirs"
 16.3975 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 16.3976 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 16.3977 +	 X"$as_dir" : 'X\(//\)[^/]' \| \
 16.3978 +	 X"$as_dir" : 'X\(//\)$' \| \
 16.3979 +	 X"$as_dir" : 'X\(/\)' \| \
 16.3980 +	 .     : '\(.\)' 2>/dev/null ||
 16.3981 +echo X"$as_dir" |
 16.3982 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 16.3983 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 16.3984 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
 16.3985 +  	  /^X\(\/\).*/{ s//\1/; q; }
 16.3986 +  	  s/.*/./; q'`
 16.3987 +    done
 16.3988 +    test ! -n "$as_dirs" || mkdir $as_dirs
 16.3989 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 16.3990 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 16.3991 +   { (exit 1); exit 1; }; }; }
 16.3992 +
 16.3993 +  ac_builddir=.
 16.3994 +
 16.3995 +if test "$ac_dir" != .; then
 16.3996 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 16.3997 +  # A "../" for each directory in $ac_dir_suffix.
 16.3998 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 16.3999 +else
 16.4000 +  ac_dir_suffix= ac_top_builddir=
 16.4001 +fi
 16.4002 +
 16.4003 +case $srcdir in
 16.4004 +  .)  # No --srcdir option.  We are building in place.
 16.4005 +    ac_srcdir=.
 16.4006 +    if test -z "$ac_top_builddir"; then
 16.4007 +       ac_top_srcdir=.
 16.4008 +    else
 16.4009 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 16.4010 +    fi ;;
 16.4011 +  [\\/]* | ?:[\\/]* )  # Absolute path.
 16.4012 +    ac_srcdir=$srcdir$ac_dir_suffix;
 16.4013 +    ac_top_srcdir=$srcdir ;;
 16.4014 +  *) # Relative path.
 16.4015 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 16.4016 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 16.4017 +esac
 16.4018 +
 16.4019 +# Do not use `cd foo && pwd` to compute absolute paths, because
 16.4020 +# the directories may not exist.
 16.4021 +case `pwd` in
 16.4022 +.) ac_abs_builddir="$ac_dir";;
 16.4023 +*)
 16.4024 +  case "$ac_dir" in
 16.4025 +  .) ac_abs_builddir=`pwd`;;
 16.4026 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 16.4027 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 16.4028 +  esac;;
 16.4029 +esac
 16.4030 +case $ac_abs_builddir in
 16.4031 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
 16.4032 +*)
 16.4033 +  case ${ac_top_builddir}. in
 16.4034 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
 16.4035 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 16.4036 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 16.4037 +  esac;;
 16.4038 +esac
 16.4039 +case $ac_abs_builddir in
 16.4040 +.) ac_abs_srcdir=$ac_srcdir;;
 16.4041 +*)
 16.4042 +  case $ac_srcdir in
 16.4043 +  .) ac_abs_srcdir=$ac_abs_builddir;;
 16.4044 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 16.4045 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 16.4046 +  esac;;
 16.4047 +esac
 16.4048 +case $ac_abs_builddir in
 16.4049 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
 16.4050 +*)
 16.4051 +  case $ac_top_srcdir in
 16.4052 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 16.4053 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 16.4054 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 16.4055 +  esac;;
 16.4056 +esac
 16.4057 +
 16.4058 +
 16.4059 +  case $INSTALL in
 16.4060 +  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 16.4061 +  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 16.4062 +  esac
 16.4063 +
 16.4064 +  if test x"$ac_file" != x-; then
 16.4065 +    { echo "$as_me:$LINENO: creating $ac_file" >&5
 16.4066 +echo "$as_me: creating $ac_file" >&6;}
 16.4067 +    rm -f "$ac_file"
 16.4068 +  fi
 16.4069 +  # Let's still pretend it is `configure' which instantiates (i.e., don't
 16.4070 +  # use $as_me), people would be surprised to read:
 16.4071 +  #    /* config.h.  Generated by config.status.  */
 16.4072 +  if test x"$ac_file" = x-; then
 16.4073 +    configure_input=
 16.4074 +  else
 16.4075 +    configure_input="$ac_file.  "
 16.4076 +  fi
 16.4077 +  configure_input=$configure_input"Generated from `echo $ac_file_in |
 16.4078 +				     sed 's,.*/,,'` by configure."
 16.4079 +
 16.4080 +  # First look for the input files in the build tree, otherwise in the
 16.4081 +  # src tree.
 16.4082 +  ac_file_inputs=`IFS=:
 16.4083 +    for f in $ac_file_in; do
 16.4084 +      case $f in
 16.4085 +      -) echo $tmp/stdin ;;
 16.4086 +      [\\/$]*)
 16.4087 +	 # Absolute (can't be DOS-style, as IFS=:)
 16.4088 +	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 16.4089 +echo "$as_me: error: cannot find input file: $f" >&2;}
 16.4090 +   { (exit 1); exit 1; }; }
 16.4091 +	 echo "$f";;
 16.4092 +      *) # Relative
 16.4093 +	 if test -f "$f"; then
 16.4094 +	   # Build tree
 16.4095 +	   echo "$f"
 16.4096 +	 elif test -f "$srcdir/$f"; then
 16.4097 +	   # Source tree
 16.4098 +	   echo "$srcdir/$f"
 16.4099 +	 else
 16.4100 +	   # /dev/null tree
 16.4101 +	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 16.4102 +echo "$as_me: error: cannot find input file: $f" >&2;}
 16.4103 +   { (exit 1); exit 1; }; }
 16.4104 +	 fi;;
 16.4105 +      esac
 16.4106 +    done` || { (exit 1); exit 1; }
 16.4107 +_ACEOF
 16.4108 +cat >>$CONFIG_STATUS <<_ACEOF
 16.4109 +  sed "$ac_vpsub
 16.4110 +$extrasub
 16.4111 +_ACEOF
 16.4112 +cat >>$CONFIG_STATUS <<\_ACEOF
 16.4113 +:t
 16.4114 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 16.4115 +s,@configure_input@,$configure_input,;t t
 16.4116 +s,@srcdir@,$ac_srcdir,;t t
 16.4117 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
 16.4118 +s,@top_srcdir@,$ac_top_srcdir,;t t
 16.4119 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 16.4120 +s,@builddir@,$ac_builddir,;t t
 16.4121 +s,@abs_builddir@,$ac_abs_builddir,;t t
 16.4122 +s,@top_builddir@,$ac_top_builddir,;t t
 16.4123 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 16.4124 +s,@INSTALL@,$ac_INSTALL,;t t
 16.4125 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 16.4126 +  rm -f $tmp/stdin
 16.4127 +  if test x"$ac_file" != x-; then
 16.4128 +    mv $tmp/out $ac_file
 16.4129 +  else
 16.4130 +    cat $tmp/out
 16.4131 +    rm -f $tmp/out
 16.4132 +  fi
 16.4133 +
 16.4134 +done
 16.4135 +_ACEOF
 16.4136 +cat >>$CONFIG_STATUS <<\_ACEOF
 16.4137 +
 16.4138 +#
 16.4139 +# CONFIG_COMMANDS section.
 16.4140 +#
 16.4141 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 16.4142 +  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 16.4143 +  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 16.4144 +  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 16.4145 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 16.4146 +	 X"$ac_dest" : 'X\(//\)[^/]' \| \
 16.4147 +	 X"$ac_dest" : 'X\(//\)$' \| \
 16.4148 +	 X"$ac_dest" : 'X\(/\)' \| \
 16.4149 +	 .     : '\(.\)' 2>/dev/null ||
 16.4150 +echo X"$ac_dest" |
 16.4151 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 16.4152 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 16.4153 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
 16.4154 +  	  /^X\(\/\).*/{ s//\1/; q; }
 16.4155 +  	  s/.*/./; q'`
 16.4156 +  { if $as_mkdir_p; then
 16.4157 +    mkdir -p "$ac_dir"
 16.4158 +  else
 16.4159 +    as_dir="$ac_dir"
 16.4160 +    as_dirs=
 16.4161 +    while test ! -d "$as_dir"; do
 16.4162 +      as_dirs="$as_dir $as_dirs"
 16.4163 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 16.4164 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 16.4165 +	 X"$as_dir" : 'X\(//\)[^/]' \| \
 16.4166 +	 X"$as_dir" : 'X\(//\)$' \| \
 16.4167 +	 X"$as_dir" : 'X\(/\)' \| \
 16.4168 +	 .     : '\(.\)' 2>/dev/null ||
 16.4169 +echo X"$as_dir" |
 16.4170 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 16.4171 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 16.4172 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
 16.4173 +  	  /^X\(\/\).*/{ s//\1/; q; }
 16.4174 +  	  s/.*/./; q'`
 16.4175 +    done
 16.4176 +    test ! -n "$as_dirs" || mkdir $as_dirs
 16.4177 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 16.4178 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 16.4179 +   { (exit 1); exit 1; }; }; }
 16.4180 +
 16.4181 +  ac_builddir=.
 16.4182 +
 16.4183 +if test "$ac_dir" != .; then
 16.4184 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 16.4185 +  # A "../" for each directory in $ac_dir_suffix.
 16.4186 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 16.4187 +else
 16.4188 +  ac_dir_suffix= ac_top_builddir=
 16.4189 +fi
 16.4190 +
 16.4191 +case $srcdir in
 16.4192 +  .)  # No --srcdir option.  We are building in place.
 16.4193 +    ac_srcdir=.
 16.4194 +    if test -z "$ac_top_builddir"; then
 16.4195 +       ac_top_srcdir=.
 16.4196 +    else
 16.4197 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 16.4198 +    fi ;;
 16.4199 +  [\\/]* | ?:[\\/]* )  # Absolute path.
 16.4200 +    ac_srcdir=$srcdir$ac_dir_suffix;
 16.4201 +    ac_top_srcdir=$srcdir ;;
 16.4202 +  *) # Relative path.
 16.4203 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 16.4204 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 16.4205 +esac
 16.4206 +
 16.4207 +# Do not use `cd foo && pwd` to compute absolute paths, because
 16.4208 +# the directories may not exist.
 16.4209 +case `pwd` in
 16.4210 +.) ac_abs_builddir="$ac_dir";;
 16.4211 +*)
 16.4212 +  case "$ac_dir" in
 16.4213 +  .) ac_abs_builddir=`pwd`;;
 16.4214 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 16.4215 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 16.4216 +  esac;;
 16.4217 +esac
 16.4218 +case $ac_abs_builddir in
 16.4219 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
 16.4220 +*)
 16.4221 +  case ${ac_top_builddir}. in
 16.4222 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
 16.4223 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 16.4224 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 16.4225 +  esac;;
 16.4226 +esac
 16.4227 +case $ac_abs_builddir in
 16.4228 +.) ac_abs_srcdir=$ac_srcdir;;
 16.4229 +*)
 16.4230 +  case $ac_srcdir in
 16.4231 +  .) ac_abs_srcdir=$ac_abs_builddir;;
 16.4232 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 16.4233 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 16.4234 +  esac;;
 16.4235 +esac
 16.4236 +case $ac_abs_builddir in
 16.4237 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
 16.4238 +*)
 16.4239 +  case $ac_top_srcdir in
 16.4240 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 16.4241 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 16.4242 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 16.4243 +  esac;;
 16.4244 +esac
 16.4245 +
 16.4246 +
 16.4247 +  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 16.4248 +echo "$as_me: executing $ac_dest commands" >&6;}
 16.4249 +  case $ac_dest in
 16.4250 +    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 16.4251 +  # Strip MF so we end up with the name of the file.
 16.4252 +  mf=`echo "$mf" | sed -e 's/:.*$//'`
 16.4253 +  # Check whether this is an Automake generated Makefile or not.
 16.4254 +  # We used to match only the files named `Makefile.in', but
 16.4255 +  # some people rename them; so instead we look at the file content.
 16.4256 +  # Grep'ing the first line is not enough: some people post-process
 16.4257 +  # each Makefile.in and add a new line on top of each file to say so.
 16.4258 +  # So let's grep whole file.
 16.4259 +  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 16.4260 +    dirpart=`(dirname "$mf") 2>/dev/null ||
 16.4261 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 16.4262 +	 X"$mf" : 'X\(//\)[^/]' \| \
 16.4263 +	 X"$mf" : 'X\(//\)$' \| \
 16.4264 +	 X"$mf" : 'X\(/\)' \| \
 16.4265 +	 .     : '\(.\)' 2>/dev/null ||
 16.4266 +echo X"$mf" |
 16.4267 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 16.4268 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 16.4269 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
 16.4270 +  	  /^X\(\/\).*/{ s//\1/; q; }
 16.4271 +  	  s/.*/./; q'`
 16.4272 +  else
 16.4273 +    continue
 16.4274 +  fi
 16.4275 +  # Extract the definition of DEPDIR, am__include, and am__quote
 16.4276 +  # from the Makefile without running `make'.
 16.4277 +  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 16.4278 +  test -z "$DEPDIR" && continue
 16.4279 +  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 16.4280 +  test -z "am__include" && continue
 16.4281 +  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 16.4282 +  # When using ansi2knr, U may be empty or an underscore; expand it
 16.4283 +  U=`sed -n 's/^U = //p' < "$mf"`
 16.4284 +  # Find all dependency output files, they are included files with
 16.4285 +  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 16.4286 +  # simplest approach to changing $(DEPDIR) to its actual value in the
 16.4287 +  # expansion.
 16.4288 +  for file in `sed -n "
 16.4289 +    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 16.4290 +       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 16.4291 +    # Make sure the directory exists.
 16.4292 +    test -f "$dirpart/$file" && continue
 16.4293 +    fdir=`(dirname "$file") 2>/dev/null ||
 16.4294 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 16.4295 +	 X"$file" : 'X\(//\)[^/]' \| \
 16.4296 +	 X"$file" : 'X\(//\)$' \| \
 16.4297 +	 X"$file" : 'X\(/\)' \| \
 16.4298 +	 .     : '\(.\)' 2>/dev/null ||
 16.4299 +echo X"$file" |
 16.4300 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 16.4301 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 16.4302 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
 16.4303 +  	  /^X\(\/\).*/{ s//\1/; q; }
 16.4304 +  	  s/.*/./; q'`
 16.4305 +    { if $as_mkdir_p; then
 16.4306 +    mkdir -p $dirpart/$fdir
 16.4307 +  else
 16.4308 +    as_dir=$dirpart/$fdir
 16.4309 +    as_dirs=
 16.4310 +    while test ! -d "$as_dir"; do
 16.4311 +      as_dirs="$as_dir $as_dirs"
 16.4312 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 16.4313 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 16.4314 +	 X"$as_dir" : 'X\(//\)[^/]' \| \
 16.4315 +	 X"$as_dir" : 'X\(//\)$' \| \
 16.4316 +	 X"$as_dir" : 'X\(/\)' \| \
 16.4317 +	 .     : '\(.\)' 2>/dev/null ||
 16.4318 +echo X"$as_dir" |
 16.4319 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 16.4320 +  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 16.4321 +  	  /^X\(\/\/\)$/{ s//\1/; q; }
 16.4322 +  	  /^X\(\/\).*/{ s//\1/; q; }
 16.4323 +  	  s/.*/./; q'`
 16.4324 +    done
 16.4325 +    test ! -n "$as_dirs" || mkdir $as_dirs
 16.4326 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 16.4327 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 16.4328 +   { (exit 1); exit 1; }; }; }
 16.4329 +
 16.4330 +    # echo "creating $dirpart/$file"
 16.4331 +    echo '# dummy' > "$dirpart/$file"
 16.4332 +  done
 16.4333 +done
 16.4334 + ;;
 16.4335 +  esac
 16.4336 +done
 16.4337 +_ACEOF
 16.4338 +
 16.4339 +cat >>$CONFIG_STATUS <<\_ACEOF
 16.4340 +
 16.4341 +{ (exit 0); exit 0; }
 16.4342 +_ACEOF
 16.4343 +chmod +x $CONFIG_STATUS
 16.4344 +ac_clean_files=$ac_clean_files_save
 16.4345 +
 16.4346 +
 16.4347 +# configure is writing to config.log, and then calls config.status.
 16.4348 +# config.status does its own redirection, appending to config.log.
 16.4349 +# Unfortunately, on DOS this fails, as config.log is still kept open
 16.4350 +# by configure, so config.status won't be able to write to it; its
 16.4351 +# output is simply discarded.  So we exec the FD to /dev/null,
 16.4352 +# effectively closing config.log, so it can be properly (re)opened and
 16.4353 +# appended to by config.status.  When coming back to configure, we
 16.4354 +# need to make the FD available again.
 16.4355 +if test "$no_create" != yes; then
 16.4356 +  ac_cs_success=:
 16.4357 +  ac_config_status_args=
 16.4358 +  test "$silent" = yes &&
 16.4359 +    ac_config_status_args="$ac_config_status_args --quiet"
 16.4360 +  exec 5>/dev/null
 16.4361 +  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 16.4362 +  exec 5>>config.log
 16.4363 +  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 16.4364 +  # would make configure fail if this is the last instruction.
 16.4365 +  $ac_cs_success || { (exit 1); exit 1; }
 16.4366 +fi
 16.4367 +
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/tools/xm-test/configure.ac	Mon Nov 07 12:53:38 2005 +0100
    17.3 @@ -0,0 +1,69 @@
    17.4 +# xm-test configure.ac input script
    17.5 +
    17.6 +# Basic header information
    17.7 +AC_INIT([xm-test], [0.4.0])
    17.8 +AM_INIT_AUTOMAKE([1.7 foreign])
    17.9 +
   17.10 +# Check for dependencies
   17.11 +AC_PROG_CC
   17.12 +#AC_PROG_INSTALL
   17.13 +
   17.14 +# Right now, we can assume that the lib/ and ramdisk/ directories
   17.15 +# are two levels above the tests
   17.16 +TESTLIB=../../lib
   17.17 +RD_PATH=../../ramdisk
   17.18 +TENV="PYTHONPATH=$PYTHONPATH:$TESTLIB:/usr/lib/python RD_PATH=$RD_PATH"
   17.19 +
   17.20 +AC_ARG_ENABLE(vmx-support,
   17.21 +	[[  --enable-vmx-support           use block devices instead of ramdisks]],
   17.22 +	[
   17.23 +		ENABLE_VMX=True
   17.24 +	],[
   17.25 +		ENABLE_VMX=False
   17.26 +	])
   17.27 +
   17.28 +AC_SUBST(ENABLE_VMX)
   17.29 +
   17.30 +AC_SUBST(TENV)
   17.31 +AC_SUBST(PACKAGE_VERSION)
   17.32 +
   17.33 +AC_PROG_YACC
   17.34 +AC_PROG_LEX
   17.35 +
   17.36 +# basic build files
   17.37 +AC_CONFIG_FILES([
   17.38 +    Makefile 
   17.39 +    ramdisk/Makefile
   17.40 +    tests/Makefile
   17.41 +    tests/block-list/Makefile
   17.42 +    tests/block-create/Makefile
   17.43 +    tests/block-destroy/Makefile
   17.44 +    tests/console/Makefile
   17.45 +    tests/create/Makefile
   17.46 +    tests/destroy/Makefile
   17.47 +    tests/dmesg/Makefile
   17.48 +    tests/domid/Makefile
   17.49 +    tests/domname/Makefile
   17.50 +    tests/help/Makefile
   17.51 +    tests/info/Makefile
   17.52 +    tests/list/Makefile
   17.53 +    tests/memmax/Makefile
   17.54 +    tests/memset/Makefile
   17.55 +    tests/migrate/Makefile
   17.56 +    tests/pause/Makefile
   17.57 +    tests/reboot/Makefile
   17.58 +    tests/restore/Makefile
   17.59 +    tests/save/Makefile
   17.60 +    tests/sedf/Makefile
   17.61 +    tests/shutdown/Makefile
   17.62 +    tests/sysrq/Makefile
   17.63 +    tests/unpause/Makefile
   17.64 +    tests/vcpu-pin/Makefile
   17.65 +    tests/vcpu-disable/Makefile
   17.66 +    tests/enforce_dom0_cpus/Makefile
   17.67 +    lib/XmTestReport/xmtest.py
   17.68 +    lib/XmTestLib/config.py
   17.69 +    ])
   17.70 +
   17.71 +
   17.72 +AC_OUTPUT
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/tools/xm-test/install-sh	Mon Nov 07 12:53:38 2005 +0100
    18.3 @@ -0,0 +1,323 @@
    18.4 +#!/bin/sh
    18.5 +# install - install a program, script, or datafile
    18.6 +
    18.7 +scriptversion=2005-02-02.21
    18.8 +
    18.9 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
   18.10 +# later released in X11R6 (xc/config/util/install.sh) with the
   18.11 +# following copyright and license.
   18.12 +#
   18.13 +# Copyright (C) 1994 X Consortium
   18.14 +#
   18.15 +# Permission is hereby granted, free of charge, to any person obtaining a copy
   18.16 +# of this software and associated documentation files (the "Software"), to
   18.17 +# deal in the Software without restriction, including without limitation the
   18.18 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   18.19 +# sell copies of the Software, and to permit persons to whom the Software is
   18.20 +# furnished to do so, subject to the following conditions:
   18.21 +#
   18.22 +# The above copyright notice and this permission notice shall be included in
   18.23 +# all copies or substantial portions of the Software.
   18.24 +#
   18.25 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   18.26 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   18.27 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
   18.28 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
   18.29 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
   18.30 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   18.31 +#
   18.32 +# Except as contained in this notice, the name of the X Consortium shall not
   18.33 +# be used in advertising or otherwise to promote the sale, use or other deal-
   18.34 +# ings in this Software without prior written authorization from the X Consor-
   18.35 +# tium.
   18.36 +#
   18.37 +#
   18.38 +# FSF changes to this file are in the public domain.
   18.39 +#
   18.40 +# Calling this script install-sh is preferred over install.sh, to prevent
   18.41 +# `make' implicit rules from creating a file called install from it
   18.42 +# when there is no Makefile.
   18.43 +#
   18.44 +# This script is compatible with the BSD install script, but was written
   18.45 +# from scratch.  It can only install one file at a time, a restriction
   18.46 +# shared with many OS's install programs.
   18.47 +
   18.48 +# set DOITPROG to echo to test this script
   18.49 +
   18.50 +# Don't use :- since 4.3BSD and earlier shells don't like it.
   18.51 +doit="${DOITPROG-}"
   18.52 +
   18.53 +# put in absolute paths if you don't have them in your path; or use env. vars.
   18.54 +
   18.55 +mvprog="${MVPROG-mv}"
   18.56 +cpprog="${CPPROG-cp}"
   18.57 +chmodprog="${CHMODPROG-chmod}"
   18.58 +chownprog="${CHOWNPROG-chown}"
   18.59 +chgrpprog="${CHGRPPROG-chgrp}"
   18.60 +stripprog="${STRIPPROG-strip}"
   18.61 +rmprog="${RMPROG-rm}"
   18.62 +mkdirprog="${MKDIRPROG-mkdir}"
   18.63 +
   18.64 +chmodcmd="$chmodprog 0755"
   18.65 +chowncmd=
   18.66 +chgrpcmd=
   18.67 +stripcmd=
   18.68 +rmcmd="$rmprog -f"
   18.69 +mvcmd="$mvprog"
   18.70 +src=
   18.71 +dst=
   18.72 +dir_arg=
   18.73 +dstarg=
   18.74 +no_target_directory=
   18.75 +
   18.76 +usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
   18.77 +   or: $0 [OPTION]... SRCFILES... DIRECTORY
   18.78 +   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
   18.79 +   or: $0 [OPTION]... -d DIRECTORIES...
   18.80 +
   18.81 +In the 1st form, copy SRCFILE to DSTFILE.
   18.82 +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
   18.83 +In the 4th, create DIRECTORIES.
   18.84 +
   18.85 +Options:
   18.86 +-c         (ignored)
   18.87 +-d         create directories instead of installing files.
   18.88 +-g GROUP   $chgrpprog installed files to GROUP.
   18.89 +-m MODE    $chmodprog installed files to MODE.
   18.90 +-o USER    $chownprog installed files to USER.
   18.91 +-s         $stripprog installed files.
   18.92 +-t DIRECTORY  install into DIRECTORY.
   18.93 +-T         report an error if DSTFILE is a directory.
   18.94 +--help     display this help and exit.
   18.95 +--version  display version info and exit.
   18.96 +
   18.97 +Environment variables override the default commands:
   18.98 +  CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
   18.99 +"
  18.100 +
  18.101 +while test -n "$1"; do
  18.102 +  case $1 in
  18.103 +    -c) shift
  18.104 +        continue;;
  18.105 +
  18.106 +    -d) dir_arg=true
  18.107 +        shift
  18.108 +        continue;;
  18.109 +
  18.110 +    -g) chgrpcmd="$chgrpprog $2"
  18.111 +        shift
  18.112 +        shift
  18.113 +        continue;;
  18.114 +
  18.115 +    --help) echo "$usage"; exit $?;;
  18.116 +
  18.117 +    -m) chmodcmd="$chmodprog $2"
  18.118 +        shift
  18.119 +        shift
  18.120 +        continue;;
  18.121 +
  18.122 +    -o) chowncmd="$chownprog $2"
  18.123 +        shift
  18.124 +        shift
  18.125 +        continue;;
  18.126 +
  18.127 +    -s) stripcmd=$stripprog
  18.128 +        shift
  18.129 +        continue;;
  18.130 +
  18.131 +    -t) dstarg=$2
  18.132 +	shift
  18.133 +	shift
  18.134 +	continue;;
  18.135 +
  18.136 +    -T) no_target_directory=true
  18.137 +	shift
  18.138 +	continue;;
  18.139 +
  18.140 +    --version) echo "$0 $scriptversion"; exit $?;;
  18.141 +
  18.142 +    *)  # When -d is used, all remaining arguments are directories to create.
  18.143 +	# When -t is used, the destination is already specified.
  18.144 +	test -n "$dir_arg$dstarg" && break
  18.145 +        # Otherwise, the last argument is the destination.  Remove it from $@.
  18.146 +	for arg
  18.147 +	do
  18.148 +          if test -n "$dstarg"; then
  18.149 +	    # $@ is not empty: it contains at least $arg.
  18.150 +	    set fnord "$@" "$dstarg"
  18.151 +	    shift # fnord
  18.152 +	  fi
  18.153 +	  shift # arg
  18.154 +	  dstarg=$arg
  18.155 +	done
  18.156 +	break;;
  18.157 +  esac
  18.158 +done
  18.159 +
  18.160 +if test -z "$1"; then
  18.161 +  if test -z "$dir_arg"; then
  18.162 +    echo "$0: no input file specified." >&2
  18.163 +    exit 1
  18.164 +  fi
  18.165 +  # It's OK to call `install-sh -d' without argument.
  18.166 +  # This can happen when creating conditional directories.
  18.167 +  exit 0
  18.168 +fi
  18.169 +
  18.170 +for src
  18.171 +do
  18.172 +  # Protect names starting with `-'.
  18.173 +  case $src in
  18.174 +    -*) src=./$src ;;
  18.175 +  esac
  18.176 +
  18.177 +  if test -n "$dir_arg"; then
  18.178 +    dst=$src
  18.179 +    src=
  18.180 +
  18.181 +    if test -d "$dst"; then
  18.182 +      mkdircmd=:
  18.183 +      chmodcmd=
  18.184 +    else
  18.185 +      mkdircmd=$mkdirprog
  18.186 +    fi
  18.187 +  else
  18.188 +    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  18.189 +    # might cause directories to be created, which would be especially bad
  18.190 +    # if $src (and thus $dsttmp) contains '*'.
  18.191 +    if test ! -f "$src" && test ! -d "$src"; then
  18.192 +      echo "$0: $src does not exist." >&2
  18.193 +      exit 1
  18.194 +    fi
  18.195 +
  18.196 +    if test -z "$dstarg"; then
  18.197 +      echo "$0: no destination specified." >&2
  18.198 +      exit 1
  18.199 +    fi
  18.200 +
  18.201 +    dst=$dstarg
  18.202 +    # Protect names starting with `-'.
  18.203 +    case $dst in
  18.204 +      -*) dst=./$dst ;;
  18.205 +    esac
  18.206 +
  18.207 +    # If destination is a directory, append the input filename; won't work
  18.208 +    # if double slashes aren't ignored.
  18.209 +    if test -d "$dst"; then
  18.210 +      if test -n "$no_target_directory"; then
  18.211 +	echo "$0: $dstarg: Is a directory" >&2
  18.212 +	exit 1
  18.213 +      fi
  18.214 +      dst=$dst/`basename "$src"`
  18.215 +    fi
  18.216 +  fi
  18.217 +
  18.218 +  # This sed command emulates the dirname command.
  18.219 +  dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
  18.220 +
  18.221 +  # Make sure that the destination directory exists.
  18.222 +
  18.223 +  # Skip lots of stat calls in the usual case.
  18.224 +  if test ! -d "$dstdir"; then
  18.225 +    defaultIFS='
  18.226 +	 '
  18.227 +    IFS="${IFS-$defaultIFS}"
  18.228 +
  18.229 +    oIFS=$IFS
  18.230 +    # Some sh's can't handle IFS=/ for some reason.
  18.231 +    IFS='%'
  18.232 +    set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
  18.233 +    shift
  18.234 +    IFS=$oIFS
  18.235 +
  18.236 +    pathcomp=
  18.237 +
  18.238 +    while test $# -ne 0 ; do
  18.239 +      pathcomp=$pathcomp$1
  18.240 +      shift
  18.241 +      if test ! -d "$pathcomp"; then
  18.242 +        $mkdirprog "$pathcomp"
  18.243 +	# mkdir can fail with a `File exist' error in case several
  18.244 +	# install-sh are creating the directory concurrently.  This
  18.245 +	# is OK.
  18.246 +	test -d "$pathcomp" || exit
  18.247 +      fi
  18.248 +      pathcomp=$pathcomp/
  18.249 +    done
  18.250 +  fi
  18.251 +
  18.252 +  if test -n "$dir_arg"; then
  18.253 +    $doit $mkdircmd "$dst" \
  18.254 +      && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
  18.255 +      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
  18.256 +      && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
  18.257 +      && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
  18.258 +
  18.259 +  else
  18.260 +    dstfile=`basename "$dst"`
  18.261 +
  18.262 +    # Make a couple of temp file names in the proper directory.
  18.263 +    dsttmp=$dstdir/_inst.$$_
  18.264 +    rmtmp=$dstdir/_rm.$$_
  18.265 +
  18.266 +    # Trap to clean up those temp files at exit.
  18.267 +    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  18.268 +    trap '(exit $?); exit' 1 2 13 15
  18.269 +
  18.270 +    # Copy the file name to the temp name.
  18.271 +    $doit $cpprog "$src" "$dsttmp" &&
  18.272 +
  18.273 +    # and set any options; do chmod last to preserve setuid bits.
  18.274 +    #
  18.275 +    # If any of these fail, we abort the whole thing.  If we want to
  18.276 +    # ignore errors from any of these, just make sure not to ignore
  18.277 +    # errors from the above "$doit $cpprog $src $dsttmp" command.
  18.278 +    #
  18.279 +    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  18.280 +      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  18.281 +      && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  18.282 +      && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
  18.283 +
  18.284 +    # Now rename the file to the real destination.
  18.285 +    { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
  18.286 +      || {
  18.287 +	   # The rename failed, perhaps because mv can't rename something else
  18.288 +	   # to itself, or perhaps because mv is so ancient that it does not
  18.289 +	   # support -f.
  18.290 +
  18.291 +	   # Now remove or move aside any old file at destination location.
  18.292 +	   # We try this two ways since rm can't unlink itself on some
  18.293 +	   # systems and the destination file might be busy for other
  18.294 +	   # reasons.  In this case, the final cleanup might fail but the new
  18.295 +	   # file should still install successfully.
  18.296 +	   {
  18.297 +	     if test -f "$dstdir/$dstfile"; then
  18.298 +	       $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
  18.299 +	       || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
  18.300 +	       || {
  18.301 +		 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
  18.302 +		 (exit 1); exit 1
  18.303 +	       }
  18.304 +	     else
  18.305 +	       :
  18.306 +	     fi
  18.307 +	   } &&
  18.308 +
  18.309 +	   # Now rename the file to the real destination.
  18.310 +	   $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
  18.311 +	 }
  18.312 +    }
  18.313 +  fi || { (exit 1); exit 1; }
  18.314 +done
  18.315 +
  18.316 +# The final little trick to "correctly" pass the exit status to the exit trap.
  18.317 +{
  18.318 +  (exit 0); exit 0
  18.319 +}
  18.320 +
  18.321 +# Local variables:
  18.322 +# eval: (add-hook 'write-file-hooks 'time-stamp)
  18.323 +# time-stamp-start: "scriptversion="
  18.324 +# time-stamp-format: "%:y-%02m-%02d.%02H"
  18.325 +# time-stamp-end: "$"
  18.326 +# End:
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/tools/xm-test/lib/XmTestLib/Console.py	Mon Nov 07 12:53:38 2005 +0100
    19.3 @@ -0,0 +1,278 @@
    19.4 +#!/usr/bin/python
    19.5 +"""
    19.6 + XmConsole.py - Interact with a xen console, getting return codes and
    19.7 +                output from commands executed there.
    19.8 +
    19.9 + Copyright (C) International Business Machines Corp., 2005
   19.10 + Author: Dan Smith <danms@us.ibm.com>
   19.11 +
   19.12 + This program is free software; you can redistribute it and/or modify
   19.13 + it under the terms of the GNU General Public License as published by
   19.14 + the Free Software Foundation; under version 2 of the License.
   19.15 +
   19.16 + This program is distributed in the hope that it will be useful,
   19.17 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   19.18 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   19.19 + GNU General Public License for more details.
   19.20 +
   19.21 + You should have received a copy of the GNU General Public License
   19.22 + along with this program; if not, write to the Free Software
   19.23 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   19.24 +
   19.25 + NB: This requires the domU's prompt to be set to
   19.26 +     a _very_ specific value, set in the PROMPT
   19.27 +     variable of this script
   19.28 +"""
   19.29 +import sys;
   19.30 +import os;
   19.31 +import pty;
   19.32 +import tty;
   19.33 +import termios;
   19.34 +import fcntl;
   19.35 +import select;
   19.36 +
   19.37 +from Test import *
   19.38 +
   19.39 +class ConsoleError(Exception):
   19.40 +    def __init__(self, msg):
   19.41 +        self.errMsg = msg
   19.42 +
   19.43 +    def __str__(self):
   19.44 +        return str(self.errMsg)
   19.45 +
   19.46 +class XmConsole:
   19.47 +
   19.48 +    def __init__(self, domain, historyLimit=256, historySaveAll=True, historySaveCmds=False):
   19.49 +        """
   19.50 +        Parameters:
   19.51 +          historyLimit:     specifies how many lines of history are maintained
   19.52 +          historySaveAll:   determines whether or not extra messages in
   19.53 +                            between commands are saved
   19.54 +          historySaveCmds : determines whether or not the command echos
   19.55 +                            are included in the history buffer
   19.56 +        """
   19.57 +
   19.58 +        self.TIMEOUT          = 30;
   19.59 +        self.PROMPT           = "@%@%> ";
   19.60 +        self.domain           = domain;
   19.61 +        self.historyBuffer    = [];
   19.62 +        self.historyLines     = 0;
   19.63 +        self.historyLimit     = historyLimit;
   19.64 +        self.historySaveAll   = historySaveAll;
   19.65 +        self.historySaveCmds  = historySaveCmds;
   19.66 +        self.debugMe          = False;
   19.67 +        self.limit            = None
   19.68 +
   19.69 +        consoleCmd = ["/usr/sbin/xm", "xm", "console", domain]
   19.70 +
   19.71 +        if verbose:
   19.72 +            print "Console executing: " + str(consoleCmd)
   19.73 +
   19.74 +        pid, fd = pty.fork();
   19.75 +
   19.76 +        if pid == 0:
   19.77 +            os.execvp("/usr/sbin/xm", consoleCmd[1:]);
   19.78 +
   19.79 +        self.consolePid = pid;
   19.80 +        self.consoleFd  = fd;
   19.81 +
   19.82 +        tty.setraw(self.consoleFd, termios.TCSANOW);
   19.83 +            
   19.84 +        bytes = self.__chewall(self.consoleFd)
   19.85 +        if bytes < 0:
   19.86 +            raise ConsoleError("Console didn't respond")
   19.87 +
   19.88 +    def __addToHistory(self, line):
   19.89 +        if self.debugMe:
   19.90 +            print ">" + line
   19.91 +        self.historyBuffer.append(line);
   19.92 +        self.historyLines += 1;
   19.93 +        if self.historyLines > self.historyLimit:
   19.94 +            self.historyBuffer = self.historyBuffer[1:];
   19.95 +            self.historyLines -= 1;
   19.96 +
   19.97 +
   19.98 +    def clearHistory(self):
   19.99 +        """Clear the history buffer"""
  19.100 +        self.historyBuffer = [];
  19.101 +        self.historyLines = 0;
  19.102 +
  19.103 +
  19.104 +    def getHistory(self):
  19.105 +        """Returns a string containing the entire history buffer"""
  19.106 +        output = "";
  19.107 +
  19.108 +        for line in self.historyBuffer:
  19.109 +            output += line + "\n";
  19.110 +
  19.111 +        return output;
  19.112 +
  19.113 +
  19.114 +    def setTimeout(self, timeout):
  19.115 +        """Sets the timeout used to determine if a remote command
  19.116 +        has blocked"""
  19.117 +        self.TIMEOUT = timeout;
  19.118 +
  19.119 +
  19.120 +    def setPrompt(self, prompt):
  19.121 +        """Sets the string key used to delimit the end of command
  19.122 +        output"""
  19.123 +        self.PROMPT = prompt;
  19.124 +
  19.125 +
  19.126 +    def __chewall(self, fd):
  19.127 +        timeout = 0;
  19.128 +        bytes   = 0;
  19.129 +        
  19.130 +        while timeout < 3:
  19.131 +            i, o, e = select.select([fd], [], [], 1);
  19.132 +            if fd in i:
  19.133 +                try:
  19.134 +                    foo = os.read(fd, 1)
  19.135 +                    if self.debugMe:
  19.136 +                        sys.stdout.write(foo)
  19.137 +                    bytes += 1
  19.138 +                except:
  19.139 +                    timeout += 1
  19.140 +
  19.141 +            else:
  19.142 +                timeout += 1
  19.143 +
  19.144 +            if self.limit and bytes >= self.limit:
  19.145 +                raise ConsoleError("Console run-away (exceeded %i bytes)"
  19.146 +                                   % self.limit)
  19.147 +
  19.148 +        if self.debugMe:
  19.149 +            print "Ignored %i bytes of miscellaneous console output" % bytes
  19.150 +        
  19.151 +        return bytes;
  19.152 +
  19.153 +
  19.154 +    def __runCmd(self, command, saveHistory=True):
  19.155 +        output = ""
  19.156 +        line   = ""
  19.157 +        lines  = 0
  19.158 +        bytes  = 0
  19.159 +
  19.160 +        self.__chewall(self.consoleFd);
  19.161 +
  19.162 +        if verbose:
  19.163 +            print "[%s] Sending `%s'" % (self.domain, command)
  19.164 +
  19.165 +        os.write(self.consoleFd, "%s\n" % command);
  19.166 +
  19.167 +        while 1==1:
  19.168 +            i, o, e = select.select([self.consoleFd], [], [], self.TIMEOUT);
  19.169 +
  19.170 +            if self.consoleFd in i:
  19.171 +                try:
  19.172 +                    str = os.read(self.consoleFd, 1)
  19.173 +                    bytes += 1
  19.174 +                except:
  19.175 +                    raise ConsoleError("Failed to read from console (fd=%i)"
  19.176 +                                       % self.consoleFd)
  19.177 +            else:
  19.178 +                raise ConsoleError("Timed out waiting for console")
  19.179 +
  19.180 +            if self.limit and bytes >= self.limit:
  19.181 +                raise ConsoleError("Console run-away (exceeded %i bytes)"
  19.182 +                                   % self.limit)
  19.183 +
  19.184 +            if str == "\n":
  19.185 +                if self.debugMe:
  19.186 +                    print "%s\n" % line
  19.187 +                if lines > 0:
  19.188 +                    output += line + "\n"
  19.189 +                    if saveHistory:
  19.190 +                        self.__addToHistory(line);
  19.191 +                elif self.historySaveCmds and saveHistory:
  19.192 +                    self.__addToHistory("*" + line);
  19.193 +                lines += 1;
  19.194 +                line = "";
  19.195 +            elif str == "\r":
  19.196 +                pass # ignore \r's
  19.197 +            else:
  19.198 +                line += str;
  19.199 +
  19.200 +            if line == self.PROMPT:
  19.201 +                break;
  19.202 +
  19.203 +        return output;
  19.204 +
  19.205 +
  19.206 +    def runCmd(self, command):
  19.207 +        """Runs a command on the remote terminal and returns the output
  19.208 +        as well as the return code.  For example:
  19.209 +        
  19.210 +        ret = c.runCmd("ls");
  19.211 +        print ret["output"];
  19.212 +        sys.exit(run["return"]);
  19.213 +        
  19.214 +        """
  19.215 +
  19.216 +        # Allow exceptions to bubble up
  19.217 +        realOutput = self.__runCmd(command);
  19.218 +        retOutput  = self.__runCmd("echo $?", saveHistory=False);
  19.219 +
  19.220 +        try:
  19.221 +            retCode =  int(retOutput);
  19.222 +        except:
  19.223 +            retCode = 255;
  19.224 +        return {
  19.225 +            "output": realOutput,
  19.226 +            "return": retCode,
  19.227 +            };
  19.228 +
  19.229 +    def sendInput(self, input):
  19.230 +        """Sends input to the remote terminal, but doesn't check
  19.231 +        for a return code"""
  19.232 +        realOutput = self.__runCmd(input);
  19.233 +        return {
  19.234 +            "output": realOutput,
  19.235 +            "return": 0,
  19.236 +            };
  19.237 +
  19.238 +    def closeConsole(self):
  19.239 +        """Closes the console connection and ensures that the console
  19.240 +        process is killed"""
  19.241 +        os.close(self.consoleFd);
  19.242 +        os.kill(self.consolePid, 2);
  19.243 +
  19.244 +
  19.245 +    def setLimit(self, limit):
  19.246 +        """Sets a limit on the number of bytes that can be
  19.247 +        read in an attempt to run a command.  We need this when
  19.248 +        running something that can run away"""
  19.249 +        try:
  19.250 +            self.limit = int(limit)
  19.251 +        except Exception, e:
  19.252 +            self.limit = None
  19.253 +            
  19.254 +                   
  19.255 +if __name__ == "__main__":
  19.256 +    """This is both an example of using the XmConsole class, as
  19.257 +    well as a utility for command-line execution of single commands
  19.258 +    on a domU console.  Prints output to stdout.  Exits with the same
  19.259 +    code as the domU command.
  19.260 +    """
  19.261 +
  19.262 +    verbose = True;
  19.263 +    
  19.264 +    try:
  19.265 +        t = XmConsole(sys.argv[1]);
  19.266 +    except ConsoleError, e:
  19.267 +        print "Failed to attach to console (%s)" % str(e)
  19.268 +        sys.exit(255)
  19.269 +
  19.270 +    try:
  19.271 +        run = t.runCmd(sys.argv[2]);
  19.272 +    except ConsoleError, e:
  19.273 +        print "Console failed (%)" % str(e)
  19.274 +        sys.exit(255)
  19.275 +        
  19.276 +    t.closeConsole();
  19.277 +    
  19.278 +    print run["output"],;
  19.279 +    sys.exit(run["return"]);
  19.280 +    
  19.281 +        
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/tools/xm-test/lib/XmTestLib/Test.py	Mon Nov 07 12:53:38 2005 +0100
    20.3 @@ -0,0 +1,169 @@
    20.4 +#!/usr/bin/python
    20.5 +
    20.6 +"""
    20.7 + Copyright (C) International Business Machines Corp., 2005
    20.8 + Author: Dan Smith <danms@us.ibm.com>
    20.9 +
   20.10 + This program is free software; you can redistribute it and/or modify
   20.11 + it under the terms of the GNU General Public License as published by
   20.12 + the Free Software Foundation; under version 2 of the License.
   20.13 +
   20.14 + This program is distributed in the hope that it will be useful,
   20.15 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   20.16 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   20.17 + GNU General Public License for more details.
   20.18 +
   20.19 + You should have received a copy of the GNU General Public License
   20.20 + along with this program; if not, write to the Free Software
   20.21 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   20.22 +
   20.23 +"""
   20.24 +
   20.25 +##
   20.26 +## These are utility functions for test cases
   20.27 +##
   20.28 +
   20.29 +import sys
   20.30 +import commands
   20.31 +import os
   20.32 +import pwd
   20.33 +import time
   20.34 +import pty
   20.35 +import select
   20.36 +import signal
   20.37 +import re
   20.38 +
   20.39 +TEST_PASS = 0
   20.40 +TEST_FAIL = 255
   20.41 +TEST_SKIP = 77
   20.42 +
   20.43 +# We currently advise waiting this many seconds for the ramdisk to
   20.44 +# boot inside a domU
   20.45 +TEST_DOMU_BOOT_DELAY = 20
   20.46 +
   20.47 +if os.environ.get("TEST_VERBOSE"):
   20.48 +    verbose = True
   20.49 +else:
   20.50 +    verbose = False
   20.51 +
   20.52 +class TimeoutError(Exception):
   20.53 +    def __init__(self, msg, outputSoFar):
   20.54 +        self.msg = msg
   20.55 +        self.output = outputSoFar
   20.56 +
   20.57 +    def __str__(self):
   20.58 +        return str(self.msg)
   20.59 +
   20.60 +def runWithTimeout(cmd, timeout):
   20.61 +    args = cmd.split()
   20.62 +
   20.63 +    pid, fd = pty.fork();
   20.64 +
   20.65 +    startTime = time.time()
   20.66 +
   20.67 +    if pid == 0:
   20.68 +        os.execvp(args[0], args)
   20.69 +
   20.70 +    output = ""
   20.71 +
   20.72 +    while time.time() - startTime < timeout:
   20.73 +        i, o, e = select.select([fd], [], [], timeout)
   20.74 +
   20.75 +        if fd in i:
   20.76 +            try:
   20.77 +                str = os.read(fd, 1)
   20.78 +                output += str
   20.79 +            except OSError, e:
   20.80 +                exitPid, status = os.waitpid(pid, os.WNOHANG)
   20.81 +
   20.82 +                if exitPid == pid:
   20.83 +                    if verbose:
   20.84 +                        print "Child exited with %i" % status
   20.85 +                    return status, output
   20.86 +
   20.87 +    if verbose:
   20.88 +        print "Command timed out: killing pid %i" % pid
   20.89 +        
   20.90 +    os.kill(pid, signal.SIGINT)
   20.91 +    raise TimeoutError("Command execution time exceeded %i seconds" % timeout,
   20.92 +                       outputSoFar=output)
   20.93 +
   20.94 +def traceCommand(command, timeout=None, logOutput=True):
   20.95 +    if verbose:
   20.96 +        print "[dom0] Running `%s'" % command
   20.97 +
   20.98 +    if timeout:
   20.99 +        status, output = runWithTimeout(command, timeout)
  20.100 +    else:
  20.101 +        status, output = commands.getstatusoutput(command)
  20.102 +
  20.103 +    if logOutput and verbose:
  20.104 +        print output
  20.105 +
  20.106 +    return status, output
  20.107 +
  20.108 +def getTestName():
  20.109 +    script = sys.argv[0]
  20.110 +    fname = os.path.basename(script)
  20.111 +    match = re.match("([^\.]+)\.[a-z]+", fname)
  20.112 +    if match:
  20.113 +        tname = match.group(1)
  20.114 +    else:
  20.115 +        tname = "UNKNOWN"
  20.116 +
  20.117 +    return tname
  20.118 +
  20.119 +def becomeNonRoot():
  20.120 +    """Become a non-root user, or FAIL if this is not possible.  This call
  20.121 +    succeeds if we are already running as a non-root user.
  20.122 +    """
  20.123 +    
  20.124 +    if os.geteuid() == 0:
  20.125 +        # Try and become "nobody".  This user is commonly in place, but this
  20.126 +        # could be extended to consider any number of users to be acceptable,
  20.127 +        # if there are systems where "nobody" is not present.
  20.128 +        allusers = pwd.getpwall()
  20.129 +        for u in allusers:
  20.130 +            if u[0] == "nobody":
  20.131 +                os.seteuid(u[2])
  20.132 +                break
  20.133 +        if os.geteuid() == 0:
  20.134 +            FAIL("Could not become a non-root user")
  20.135 +
  20.136 +def FAIL(reason):
  20.137 +    print "REASON: %s" % reason
  20.138 +    sys.exit(TEST_FAIL)
  20.139 +
  20.140 +def SKIP(reason):
  20.141 +    print "REASON: %s" % reason
  20.142 +    sys.exit(TEST_SKIP)
  20.143 +
  20.144 +def saveLog(logText, filename=None):
  20.145 +    if not filename:
  20.146 +        filename = "log";
  20.147 +    logfile = open(filename, 'w');
  20.148 +    date = commands.getoutput("date");
  20.149 +    logfile.write("-- BEGIN XmTest Log @" + date + "\n");
  20.150 +    logfile.write(logText);
  20.151 +    logfile.write("\n-- END XmTest Log\n");
  20.152 +    logfile.close();
  20.153 +
  20.154 +def waitForBoot():
  20.155 +    if verbose:
  20.156 +        print "[dom0] Waiting %i seconds for domU boot..." % TEST_DOMU_BOOT_DELAY
  20.157 +    time.sleep(TEST_DOMU_BOOT_DELAY)
  20.158 +
  20.159 +def timeStamp():
  20.160 +    name = getTestName()
  20.161 +
  20.162 +    t = time.asctime(time.localtime())
  20.163 +
  20.164 +    print "*** Test %s started at %s %s" % (name, t,
  20.165 +                                            time.tzname[time.daylight])
  20.166 +
  20.167 +if __name__ == "__main__":
  20.168 +
  20.169 +    timeStamp()
  20.170 +
  20.171 +    FAIL("foo")
  20.172 +
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/tools/xm-test/lib/XmTestLib/XenDomain.py	Mon Nov 07 12:53:38 2005 +0100
    21.3 @@ -0,0 +1,246 @@
    21.4 +#!/usr/bin/python
    21.5 +"""
    21.6 + Copyright (C) International Business Machines Corp., 2005
    21.7 + Author: Dan Smith <danms@us.ibm.com>
    21.8 +
    21.9 + This program is free software; you can redistribute it and/or modify
   21.10 + it under the terms of the GNU General Public License as published by
   21.11 + the Free Software Foundation; under version 2 of the License.
   21.12 +
   21.13 + This program is distributed in the hope that it will be useful,
   21.14 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   21.15 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   21.16 + GNU General Public License for more details.
   21.17 +
   21.18 + You should have received a copy of the GNU General Public License
   21.19 + along with this program; if not, write to the Free Software
   21.20 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   21.21 +
   21.22 +"""
   21.23 +
   21.24 +import sys
   21.25 +import commands
   21.26 +import os
   21.27 +import re
   21.28 +import time
   21.29 +import random
   21.30 +
   21.31 +from Xm import *
   21.32 +from Test import *
   21.33 +from config import *
   21.34 +
   21.35 +BLOCK_ROOT_DEV = "hdd1"
   21.36 +
   21.37 +def getDefaultKernel():
   21.38 +    dom0Ver = commands.getoutput("uname -r");
   21.39 +    domUVer = dom0Ver.replace("xen0", "xenU");
   21.40 +    
   21.41 +    return "/boot/vmlinuz-" + domUVer;
   21.42 +
   21.43 +
   21.44 +class DomainError(Exception):
   21.45 +    def __init__(self, msg, extra="", errorcode=0):
   21.46 +        self.msg = msg
   21.47 +        self.extra = extra
   21.48 +        try:
   21.49 +            self.errorcode = int(errorcode)
   21.50 +        except Exception, e:
   21.51 +            self.errorcode = -1
   21.52 +            
   21.53 +    def __str__(self):
   21.54 +        return str(self.msg)
   21.55 +
   21.56 +class XenDomain:
   21.57 +
   21.58 +    def __init__(self, opts={}, config="/dev/null"):
   21.59 +        """Create a domain object.  Optionally take a 
   21.60 +        dictionary of 'xm' options to use"""
   21.61 +
   21.62 +        self.domID = None;
   21.63 +        self.config = config
   21.64 +
   21.65 +        if not opts.has_key("name"):
   21.66 +            raise DomainError("Missing `name' option")
   21.67 +        if not opts.has_key("memory"):
   21.68 +            raise DomainError("Missing `memory' option")
   21.69 +        if not opts.has_key("kernel"):
   21.70 +            raise DomainError("Missing `kernel' option")
   21.71 +
   21.72 +        self.opts = opts
   21.73 +
   21.74 +        self.configVals = None
   21.75 +
   21.76 +    def __buildCmdLine(self):
   21.77 +        c = "xm create %s" % self.config
   21.78 +
   21.79 +        for k in self.opts.keys():
   21.80 +            c += " %s=%s" % (k, self.opts[k])
   21.81 +        
   21.82 +        return c
   21.83 +        
   21.84 +    def start(self):
   21.85 +
   21.86 +        if self.configVals:
   21.87 +            self.__writeConfig("/tmp/xm-test.conf")
   21.88 +            self.config = "/tmp/xm-test.conf"
   21.89 +
   21.90 +        commandLine = self.__buildCmdLine()
   21.91 +
   21.92 +        ret, output = traceCommand(commandLine);
   21.93 +
   21.94 +        try:
   21.95 +            self.domID = int(domid(self.domName));
   21.96 +        except:
   21.97 +            self.domID = -1;
   21.98 +
   21.99 +        if ret != 0:
  21.100 +            raise DomainError("Failed to create domain",
  21.101 +                              extra=output,
  21.102 +                              errorcode=ret)
  21.103 +
  21.104 +    def stop(self):
  21.105 +        prog = "xm";
  21.106 +        cmd = " shutdown ";
  21.107 +
  21.108 +        ret, output = traceCommand(prog + cmd + self.opts["name"]);
  21.109 +
  21.110 +        return ret;
  21.111 +
  21.112 +    def destroy(self):
  21.113 +        prog = "xm";
  21.114 +        cmd = " destroy ";
  21.115 +
  21.116 +        ret, output = traceCommand(prog + cmd + self.opts["name"]);
  21.117 +
  21.118 +        return ret;
  21.119 +
  21.120 +    def getName(self):
  21.121 +        return self.opts["name"];
  21.122 +
  21.123 +    def getId(self):
  21.124 +        return domid(self.getName());
  21.125 +
  21.126 +    def configSetVar(self, key, value):
  21.127 +        if not self.configVals:
  21.128 +            self.configVals = {}
  21.129 +
  21.130 +        self.configVals[key] = value
  21.131 +
  21.132 +    def configAddDisk(self, pdev, vdev, acc):
  21.133 +        if not self.configVals:
  21.134 +            self.configVals = {}
  21.135 +
  21.136 +        if not self.configVals.has_key("disk"):
  21.137 +            self.configVals["disk"] = []
  21.138 +
  21.139 +        self.configVals["disk"].append("%s,%s,%s" % (pdev,vdev,acc))
  21.140 +
  21.141 +    def __writeConfig(self, configFileName):
  21.142 +
  21.143 +        conf = file(configFileName, "w")
  21.144 +
  21.145 +        for k,v in self.configVals.items():
  21.146 +            print >>conf, "%s = %s" % (k, v)
  21.147 +
  21.148 +        conf.close()
  21.149 +
  21.150 +
  21.151 +class XmTestDomain(XenDomain):
  21.152 +
  21.153 +    def __getUniqueName(self):
  21.154 +        #
  21.155 +        # We avoid multiple duplicate names
  21.156 +        # here because they stick around in xend
  21.157 +        # too long
  21.158 +        #
  21.159 +        unixtime = int(time.time())
  21.160 +        test_name = sys.argv[0]
  21.161 +        test_name = re.sub("\.test", "", test_name)
  21.162 +        test_name = re.sub("[\/\.]", "", test_name)
  21.163 +        name = "%s-%i" % (test_name, unixtime)
  21.164 +
  21.165 +        return name
  21.166 +
  21.167 +    def __randomize(self):
  21.168 +        # Random amount of memory between min and free_memory/2
  21.169 +        freeMem = int(getInfo("free_memory"))
  21.170 +        self.defaults["memory"] = random.randint(self.minSafeMem(),
  21.171 +                                                 freeMem/2)
  21.172 +        
  21.173 +        self.defaults["vcpus"] = random.randint(1, 16)
  21.174 +
  21.175 +        self.defaults["nics"] = random.randint(0, 8)
  21.176 +
  21.177 +        if verbose:
  21.178 +            print "*** Defaults after randomization:"
  21.179 +            for k in self.defaults.keys():
  21.180 +                print "***  %10s : %s" % (k, self.defaults[k])
  21.181 +
  21.182 +    def __prepareBlockRoot(self, rdpath):
  21.183 +        image = os.path.abspath(rdpath + "/initrd.img")
  21.184 +        self.configAddDisk("file:%s" % image, BLOCK_ROOT_DEV, "w")
  21.185 +        self.defaults["root"] = "/dev/%s" % BLOCK_ROOT_DEV
  21.186 +        del self.defaults["ramdisk"]
  21.187 +
  21.188 +    def __init__(self, name=None, extraOpts=None, config="/dev/null",
  21.189 +                 random=False):
  21.190 +
  21.191 +        rdpath = os.environ.get("RD_PATH")
  21.192 +        if not rdpath:
  21.193 +            rdpath = "../../ramdisk"
  21.194 +
  21.195 +        self.opts = {}
  21.196 +        self.configVals = None
  21.197 +
  21.198 +        # Defaults
  21.199 +        self.defaults = {"memory"  : 64,
  21.200 +                         "vcpus"   : 1,
  21.201 +                         "nics"    : 0,
  21.202 +                         "kernel"  : getDefaultKernel(),
  21.203 +                         "root"    : "/dev/ram0",
  21.204 +                         "name"    : name or self.__getUniqueName(),
  21.205 +                         "ramdisk" : rdpath + "/initrd.img"
  21.206 +                         }
  21.207 +
  21.208 +        self.domID = None;
  21.209 +        self.config = config;
  21.210 +
  21.211 +        if random:
  21.212 +            self.__randomize()
  21.213 +
  21.214 +        if USE_BLKDEV_FOR_ROOT:
  21.215 +            self.__prepareBlockRoot(rdpath)
  21.216 +        
  21.217 +        # Copy over defaults
  21.218 +        for key in self.defaults.keys():
  21.219 +            self.opts[key] = self.defaults[key]
  21.220 +
  21.221 +        # Merge in extra options
  21.222 +        if extraOpts:
  21.223 +            for key in extraOpts.keys():
  21.224 +                self.opts[key] = extraOpts[key]
  21.225 +
  21.226 +    def start(self):
  21.227 +        """We know how about how long everyone will need to wait
  21.228 +        for our ramdisk to come up, so we do it here as a convenience"""
  21.229 +
  21.230 +#        for i in range(0,5):
  21.231 +#            status, output = traceCommand("xm list")
  21.232 +
  21.233 +        XenDomain.start(self)
  21.234 +        waitForBoot()
  21.235 +
  21.236 +    def startNow(self):
  21.237 +        XenDomain.start(self)
  21.238 +
  21.239 +    def getMem(self):
  21.240 +        return int(self.opts["memory"])
  21.241 +
  21.242 +    def minSafeMem(self):
  21.243 +        return 16
  21.244 +
  21.245 +if __name__ == "__main__":
  21.246 +
  21.247 +    d = XmTestDomain();
  21.248 +
  21.249 +    d.start();
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/tools/xm-test/lib/XmTestLib/Xm.py	Mon Nov 07 12:53:38 2005 +0100
    22.3 @@ -0,0 +1,252 @@
    22.4 +#!/usr/bin/python
    22.5 +
    22.6 +"""
    22.7 + Copyright (C) International Business Machines Corp., 2005
    22.8 + Author: Dan Smith <danms@us.ibm.com>
    22.9 +
   22.10 + This program is free software; you can redistribute it and/or modify
   22.11 + it under the terms of the GNU General Public License as published by
   22.12 + the Free Software Foundation; under version 2 of the License.
   22.13 +
   22.14 + This program is distributed in the hope that it will be useful,
   22.15 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   22.16 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   22.17 + GNU General Public License for more details.
   22.18 +
   22.19 + You should have received a copy of the GNU General Public License
   22.20 + along with this program; if not, write to the Free Software
   22.21 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   22.22 +
   22.23 +
   22.24 +"""
   22.25 +
   22.26 +
   22.27 +##
   22.28 +## These are miscellaneous utility functions that query xm
   22.29 +##
   22.30 +
   22.31 +import commands
   22.32 +import re
   22.33 +import os
   22.34 +import time
   22.35 +
   22.36 +from Test import *;
   22.37 +
   22.38 +class XmError(Exception):
   22.39 +    def __init__(self, msg, trace="", status=0):
   22.40 +        self.msg = msg
   22.41 +        self.trace = trace
   22.42 +        try:
   22.43 +            self.status = int(status)
   22.44 +        except Exception, e:
   22.45 +            self.status = -1
   22.46 +
   22.47 +        def __str__(self):
   22.48 +            return trace
   22.49 +    
   22.50 +def domid(name):
   22.51 +    status, output = traceCommand("xm domid " + name);
   22.52 +
   22.53 +    if re.search("Traceback", output):
   22.54 +        print "*** xm domid failed with:"
   22.55 +        print output
   22.56 +        for i in range(0,10):
   22.57 +            status, output = traceCommand("xm list")
   22.58 +            status, output = traceCommand("xm domid " + name);
   22.59 +            if not re.search("Traceback", output):
   22.60 +                break
   22.61 +        
   22.62 +    try:
   22.63 +        id = int(output);
   22.64 +    except:
   22.65 +        id = -1;
   22.66 +    return id;
   22.67 +
   22.68 +def domname(id):
   22.69 +    status, output = traceCommand("xm domname " + str(id));
   22.70 +    return output;
   22.71 +
   22.72 +def isDomainRunning(domain):
   22.73 +    id = domid(domain);
   22.74 +    if id == -1:
   22.75 +        return False;
   22.76 +    else:
   22.77 +        return True;
   22.78 +
   22.79 +def getRunningDomains():
   22.80 +    status, output = traceCommand("xm list");
   22.81 +    if "Traceback" in output:
   22.82 +        raise XmError("xm failed", trace=output, status=status)
   22.83 +    
   22.84 +    lines = output.splitlines();
   22.85 +    domains = [];
   22.86 +    for l in lines[1:]:
   22.87 +        elms = l.split(" ", 1);
   22.88 +        domains.append(elms[0]);
   22.89 +    return domains;
   22.90 +
   22.91 +def destroyDomU(name):
   22.92 +    status, output = traceCommand("xm destroy " + name, logOutput=False);
   22.93 +    return status;
   22.94 +
   22.95 +def destroyAllDomUs():
   22.96 +    if verbose:
   22.97 +        print "*** Cleaning all running domU's"
   22.98 +
   22.99 +    attempt = 0
  22.100 +    trying = True
  22.101 +
  22.102 +    while trying:
  22.103 +        try:
  22.104 +            attempt += 1
  22.105 +            domainList = getRunningDomains()
  22.106 +            trying = False
  22.107 +        except XmError, e:
  22.108 +            if attempt >= 10:
  22.109 +                FAIL("XM-TEST: xm list not responding")
  22.110 +            time.sleep(1)
  22.111 +            print e.trace
  22.112 +            print "!!! Trying again to get a clean domain list..."
  22.113 +
  22.114 +    for d in domainList:
  22.115 +        if not d == "Domain-0":
  22.116 +            destroyDomU(d);
  22.117 +
  22.118 +    if verbose:
  22.119 +        print "*** Finished cleaning domUs"
  22.120 +
  22.121 +def getDomMem(domain):
  22.122 +    status, output = traceCommand("xm list")
  22.123 +    if status != 0:
  22.124 +        if verbose:
  22.125 +            print "xm list failed with %i" % status
  22.126 +        return None
  22.127 +
  22.128 +    lines = re.split("\n", output)
  22.129 +    for line in lines:
  22.130 +        fields = re.sub(" +", " ", line).split()
  22.131 +        if domain.isdigit():
  22.132 +            if fields[1] == domain:
  22.133 +                return int(fields[2])
  22.134 +        else:
  22.135 +            if fields[0] == domain:
  22.136 +                return int(fields[2])
  22.137 +    if verbose:
  22.138 +        print "Did not find domain " + str(domain)
  22.139 +    return None
  22.140 +
  22.141 +def getDomInfo(domain, key, opts=None):
  22.142 +    if opts:
  22.143 +        cmd = "xm list %s" % opts
  22.144 +    else:
  22.145 +        cmd = "xm list"
  22.146 +        
  22.147 +    status, output = traceCommand(cmd)
  22.148 +
  22.149 +    if status != 0:
  22.150 +        if verbose:
  22.151 +            print "xm list failed with %i" % status
  22.152 +        return None
  22.153 +
  22.154 +    lines = output.split("\n")
  22.155 +
  22.156 +    # Get the key values from the first line headers
  22.157 +    cleanHeader = re.sub("\([^\)]+\)", "", lines[0])
  22.158 +    colHeaders = re.split(" +", cleanHeader)
  22.159 +
  22.160 +    doms = {}
  22.161 +
  22.162 +    for line in lines[1:]:
  22.163 +        domValues = {}
  22.164 +        values = re.split(" +", line)
  22.165 +        i = 1
  22.166 +        for value in values[1:]:
  22.167 +            domValues[colHeaders[i]] = value
  22.168 +            i += 1
  22.169 +        doms[values[0]] = domValues
  22.170 +
  22.171 +
  22.172 +    if doms.has_key(domain) and doms[domain].has_key(key):
  22.173 +        return doms[domain].get(key)
  22.174 +
  22.175 +    return ""
  22.176 +
  22.177 +def getVcpuInfo(domain):
  22.178 +
  22.179 +    status, output = traceCommand("xm vcpu-list %s" % domain)
  22.180 +
  22.181 +    lines = output.split("\n")
  22.182 +
  22.183 +    vcpus = {}
  22.184 +
  22.185 +    for line in lines[1:]:
  22.186 +        cols = re.split(" +", line)
  22.187 +        if cols[3] == '-':
  22.188 +            vcpus[int(cols[2])] = None
  22.189 +        else:
  22.190 +            vcpus[int(cols[2])] = int(cols[3])
  22.191 +
  22.192 +    return vcpus
  22.193 +
  22.194 +def getInfo(key):
  22.195 +
  22.196 +    info = {}
  22.197 +
  22.198 +    status, output = traceCommand("xm info")
  22.199 +    lines = output.split("\n")
  22.200 +    for line in lines:
  22.201 +        match = re.match("^([A-z_]+)[^:]*: (.*)$", line)
  22.202 +        if match:
  22.203 +            info[match.group(1)] = match.group(2)
  22.204 +
  22.205 +    if info.has_key(key):
  22.206 +        return info[key]
  22.207 +    else:
  22.208 +        return ""
  22.209 +
  22.210 +def restartXend():
  22.211 +    if verbose:
  22.212 +        print "*** Restarting xend ..."
  22.213 +
  22.214 +    if os.access("/etc/init.d/xend", os.X_OK):
  22.215 +        status, output = traceCommand("/etc/init.d/xend stop")
  22.216 +        time.sleep(1)
  22.217 +        status, output = traceCommand("/etc/init.d/xend start")
  22.218 +
  22.219 +        return status
  22.220 +
  22.221 +    else:
  22.222 +        status, output = traceCommand("xend stop")
  22.223 +        time.sleep(1)
  22.224 +        status, output = traceCommand("xend start")
  22.225 +
  22.226 +        return status
  22.227 +
  22.228 +def smpConcurrencyLevel():
  22.229 +    cores = int(getInfo("cores_per_socket"))
  22.230 +    threads = int(getInfo("threads_per_core"))
  22.231 +    sockets = int(getInfo("sockets_per_node"))
  22.232 +
  22.233 +    return cores * sockets * threads
  22.234 +
  22.235 +if __name__ == "__main__":
  22.236 +    if isDomainRunning("0"):
  22.237 +        print "Domain-0 is running; I must be working!"
  22.238 +    else:
  22.239 +        print "Domain-0 is not running; I may be broken!"
  22.240 +
  22.241 +    mem = getDomMem("Domain-0")
  22.242 +    if not mem:
  22.243 +        print "Failed to get memory for Domain-0!"
  22.244 +    else:
  22.245 +        print "Domain-0 mem: %i" % mem
  22.246 +
  22.247 +    cpu = getDomInfo("Domain-0", "CPU")
  22.248 +    state = getDomInfo("Domain-0", "State")
  22.249 +
  22.250 +    print "Domain-0 CPU: " + cpu
  22.251 +    print "Domain-0 state: " + state
  22.252 +    
  22.253 +    v = getVcpuInfo("Domain-0")
  22.254 +    for key in v.keys():
  22.255 +        print "VCPU%i is on CPU %i" % (key, v[key])
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/tools/xm-test/lib/XmTestLib/__init__.py	Mon Nov 07 12:53:38 2005 +0100
    23.3 @@ -0,0 +1,22 @@
    23.4 +#
    23.5 +# Copyright (C) International Business Machines Corp., 2005
    23.6 +# Author: Dan Smith <danms@us.ibm.com>
    23.7 +#
    23.8 +
    23.9 +from Console import *
   23.10 +from Test import *
   23.11 +from Xm import *
   23.12 +from XenDomain import *
   23.13 +from config import *
   23.14 +
   23.15 +# Give this test a clean slate
   23.16 +destroyAllDomUs();
   23.17 +
   23.18 +if os.environ.get("TEST_VERBOSE"):
   23.19 +    verbose = True
   23.20 +else:
   23.21 +    verbose = False
   23.22 +
   23.23 +
   23.24 +if verbose:
   23.25 +    timeStamp()
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/tools/xm-test/lib/XmTestLib/config.py	Mon Nov 07 12:53:38 2005 +0100
    24.3 @@ -0,0 +1,4 @@
    24.4 +#!/usr/bin/python
    24.5 +
    24.6 +USE_BLKDEV_FOR_ROOT = False
    24.7 +
    25.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.2 +++ b/tools/xm-test/lib/XmTestLib/config.py.in	Mon Nov 07 12:53:38 2005 +0100
    25.3 @@ -0,0 +1,4 @@
    25.4 +#!/usr/bin/python
    25.5 +
    25.6 +USE_BLKDEV_FOR_ROOT = @ENABLE_VMX@
    25.7 +
    26.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.2 +++ b/tools/xm-test/lib/XmTestReport/OSReport.py	Mon Nov 07 12:53:38 2005 +0100
    26.3 @@ -0,0 +1,250 @@
    26.4 +#!/usr/bin/python
    26.5 +
    26.6 +"""
    26.7 + OSReport.py - Handles the gathering and xml-formatting of operating
    26.8 +               system environment information.
    26.9 +
   26.10 + Copyright (C) International Business Machines Corp., 2005
   26.11 + Author: Dan Smith <danms@us.ibm.com>
   26.12 +
   26.13 + This program is free software; you can redistribute it and/or modify
   26.14 + it under the terms of the GNU General Public License as published by
   26.15 + the Free Software Foundation; under version 2 of the License.
   26.16 +
   26.17 + This program is distributed in the hope that it will be useful,
   26.18 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   26.19 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   26.20 + GNU General Public License for more details.
   26.21 +
   26.22 + You should have received a copy of the GNU General Public License
   26.23 + along with this program; if not, write to the Free Software
   26.24 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   26.25 +
   26.26 +"""
   26.27 +
   26.28 +import utils
   26.29 +
   26.30 +import posix
   26.31 +import re
   26.32 +import os
   26.33 +import commands
   26.34 +import sys
   26.35 +
   26.36 +class Machine:
   26.37 +
   26.38 +    def __parseInfoLine(self, line):
   26.39 +        if ":" in line:
   26.40 +            name, value = line.split(":", 1)
   26.41 +            name  = name.strip()
   26.42 +            value = value.strip()
   26.43 +            
   26.44 +            name = re.sub(" ", "_", name)
   26.45 +
   26.46 +            return name, value
   26.47 +        else:
   26.48 +            return None, None
   26.49 +
   26.50 +    def __getCpuInfo(self, values):
   26.51 +
   26.52 +        processors = 0
   26.53 +        cpuinfo = file("/proc/cpuinfo")
   26.54 +
   26.55 +        if not cpuinfo:
   26.56 +            return "Unable to read /proc/cpuinfo"
   26.57 +
   26.58 +        lines = cpuinfo.readlines()
   26.59 +
   26.60 +        for l in lines:
   26.61 +            name, value = self.__parseInfoLine(l)
   26.62 +            
   26.63 +            if name in values.keys():
   26.64 +                values[name] = value
   26.65 +
   26.66 +            if name == "processor":
   26.67 +                processors += 1
   26.68 +
   26.69 +        values["dom0procs"] = str(processors)
   26.70 +
   26.71 +        return values
   26.72 +
   26.73 +    def __getXenInfo(self, values):
   26.74 +
   26.75 +        status, output = commands.getstatusoutput("xm info")
   26.76 +        if status != 0:
   26.77 +            self.errors += 1
   26.78 +            return values
   26.79 +
   26.80 +        lines = output.split("\n")
   26.81 +
   26.82 +        for l in lines:
   26.83 +            name, value = self.__parseInfoLine(l)
   26.84 +
   26.85 +            if name in values.keys():
   26.86 +                values[name] = value
   26.87 +
   26.88 +        return values
   26.89 +
   26.90 +    def __init__(self):
   26.91 +
   26.92 +        self.values = {}
   26.93 +        self.errors = 0
   26.94 +
   26.95 +        cpuValues = {"model_name"       : "Unknown",
   26.96 +                     "flags"            : "Unknown"}
   26.97 +        xenValues = {"nr_cpus"          : "Unknown",
   26.98 +                     "nr_nodes"         : "Unknown",
   26.99 +                     "sockets_per_node" : "Unknown",
  26.100 +                     "cores_per_socket" : "Unknown",
  26.101 +                     "threads_per_core" : "Unknown",
  26.102 +                     "cpu_mhz"          : "Unknown",
  26.103 +                     "memory"           : "Unknown"}
  26.104 +
  26.105 +        xen = self.__getXenInfo(xenValues)
  26.106 +        cpu = self.__getCpuInfo(cpuValues)
  26.107 +
  26.108 +        for k in xen.keys():
  26.109 +            self.values[k] = xen[k]
  26.110 +            if xen[k] == "Unknown":
  26.111 +                self.errors += 1
  26.112 +
  26.113 +        for k in cpu.keys():
  26.114 +            self.values[k] = cpu[k]
  26.115 +            if cpu[k] == "Unknown":
  26.116 +                self.errors += 1
  26.117 +
  26.118 +        
  26.119 +    def __str__(self):
  26.120 +        string = "<machine>\n"
  26.121 +        
  26.122 +        for k in self.values.keys():
  26.123 +            string += "  " + utils.tagify(k, self.values[k]) + "\n"
  26.124 +
  26.125 +        string += "</machine>\n"
  26.126 +
  26.127 +        return string
  26.128 +
  26.129 +class OperatingSystem:
  26.130 +
  26.131 +    def __redhatStyleRelease(self):
  26.132 +        rFile = None
  26.133 +        
  26.134 +        if os.access("/etc/redhat-release", os.R_OK):
  26.135 +            rFile = file("/etc/redhat-release")
  26.136 +        if os.access("/etc/SuSe-release", os.R_OK):
  26.137 +            rFile = file("/etc/SuSe-release")
  26.138 +        if os.access("/etc/SuSE-release", os.R_OK):
  26.139 +            rFile = file("/etc/SuSE-release")
  26.140 +        if os.access("/etc/mandrake-release", os.R_OK):
  26.141 +            rFile = file("/etc/mandrake-release")
  26.142 +
  26.143 +        if not rFile:
  26.144 +            return None, None
  26.145 +        
  26.146 +        rLine = rFile.readline()
  26.147 +        rFile.close()
  26.148 +      
  26.149 +        match = re.match("^([^0-9]+)([0-9\.]+).*$", rLine)
  26.150 +        if match:
  26.151 +            return match.group(1), match.group(2)
  26.152 +        else:
  26.153 +            return None, None
  26.154 +
  26.155 +    def __debianStyleRelease(self):
  26.156 +	if os.access("/etc/debian_version", os.R_OK):
  26.157 +	    rFile = file("/etc/debian_version")
  26.158 +	else:
  26.159 +	    rFile = None
  26.160 +
  26.161 +	if not rFile:
  26.162 +	    return None, None
  26.163 +
  26.164 +	line = rFile.readline()
  26.165 +	return "Debian", line.rstrip("\n");
  26.166 +
  26.167 +    def __lsbStyleRelease(self):
  26.168 +        if os.access("/etc/lsb-release", os.R_OK):
  26.169 +            rFile = file("/etc/lsb-release")
  26.170 +        else:
  26.171 +            rFile = None
  26.172 +
  26.173 +        if not rFile:
  26.174 +            return None, None
  26.175 +
  26.176 +        lines = rFile.readlines()
  26.177 +
  26.178 +        vendor  = None
  26.179 +        version = None
  26.180 +
  26.181 +        for l in lines:
  26.182 +            match = re.match("^DISTRIB_ID=(.*)$", l)
  26.183 +            if match:
  26.184 +                vendor = match.group(1)
  26.185 +            match = re.match("^DISTRIB_RELEASE=(.*)$", l)
  26.186 +            if match:
  26.187 +                version = match.group(1)
  26.188 +
  26.189 +        return vendor, version
  26.190 +                
  26.191 +    def __init__(self):
  26.192 +
  26.193 +        self.values = {}
  26.194 +        self.errors = 0
  26.195 +
  26.196 +        # Try to resolve the vendor and version information
  26.197 +        # for the distro we're running on
  26.198 +        vendor = None
  26.199 +        version = None
  26.200 +        for r in [self.__redhatStyleRelease, self.__debianStyleRelease, self.__lsbStyleRelease]:
  26.201 +            vendor, version = r()
  26.202 +            if vendor and version:
  26.203 +                break
  26.204 +        
  26.205 +        self.values["vendor"]  = vendor or "Unknown vendor"
  26.206 +        self.values["version"] = version or "Unknown version"
  26.207 +
  26.208 +        self.values["name"], nodename, release, version, self.values["arch"] = posix.uname()
  26.209 +
  26.210 +        for k in self.values.keys():
  26.211 +            if not self.values[k]:
  26.212 +                self.errors += 1
  26.213 +
  26.214 +    def __str__(self):
  26.215 +        string = "<os>\n"
  26.216 +
  26.217 +        for k in self.values.keys():
  26.218 +            string += "  " + utils.tagify(k, self.values[k]) + "\n"
  26.219 +
  26.220 +        string += "</os>\n"
  26.221 +
  26.222 +        return string
  26.223 +        
  26.224 +
  26.225 +class OSReport:
  26.226 +
  26.227 +    def __init__(self):
  26.228 +
  26.229 +        self.reports = {}
  26.230 +        self.reports["os"] = OperatingSystem()
  26.231 +        self.reports["machine"] = Machine()
  26.232 +        self.errors = 0
  26.233 +
  26.234 +        for k in self.reports.keys():
  26.235 +            self.errors += self.reports[k].errors
  26.236 +                 
  26.237 +    def __str__(self):
  26.238 +
  26.239 +        string = ""
  26.240 +
  26.241 +        for k in self.reports.keys():
  26.242 +            string += str(self.reports[k])
  26.243 +
  26.244 +        return string
  26.245 +
  26.246 +if __name__ == "__main__":
  26.247 +    r = OSReport()
  26.248 +
  26.249 +    print str(r)
  26.250 +
  26.251 +    sys.exit(r.errors)
  26.252 +
  26.253 +    
    27.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.2 +++ b/tools/xm-test/lib/XmTestReport/ProgReport.py	Mon Nov 07 12:53:38 2005 +0100
    27.3 @@ -0,0 +1,119 @@
    27.4 +#!/usr/bin/python
    27.5 +
    27.6 +"""
    27.7 + ProgReport.py - Handles the gathering and xml-formatting of supporting
    27.8 +                 program information
    27.9 +
   27.10 + Copyright (C) International Business Machines Corp., 2005
   27.11 + Author: Dan Smith <danms@us.ibm.com>
   27.12 +
   27.13 + This program is free software; you can redistribute it and/or modify
   27.14 + it under the terms of the GNU General Public License as published by
   27.15 + the Free Software Foundation; under version 2 of the License.
   27.16 +
   27.17 + This program is distributed in the hope that it will be useful,
   27.18 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   27.19 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   27.20 + GNU General Public License for more details.
   27.21 +
   27.22 + You should have received a copy of the GNU General Public License
   27.23 + along with this program; if not, write to the Free Software
   27.24 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   27.25 +
   27.26 +"""
   27.27 +
   27.28 +import utils
   27.29 +
   27.30 +import commands
   27.31 +import re
   27.32 +import distutils.sysconfig
   27.33 +import sys
   27.34 +
   27.35 +from xmtest import XM_TEST_VERSION
   27.36 +
   27.37 +class Prog:
   27.38 +
   27.39 +    def __init__(self, name, version):
   27.40 +        self.vars = {}
   27.41 +        self.vars["name"] = name
   27.42 +        self.vars["version"] = version
   27.43 +
   27.44 +    def __str__(self):
   27.45 +        string = "<prog>\n"
   27.46 +
   27.47 +        for k in self.vars.keys():
   27.48 +            string += "  " + utils.tagify(k, self.vars[k]) + "\n"
   27.49 +
   27.50 +        string += "</prog>\n"
   27.51 +
   27.52 +        return string
   27.53 +
   27.54 +class UnknownProg(Prog):
   27.55 +
   27.56 +    def __init__(self, name):
   27.57 +        Prog.__init__(self, name, "Unknown Version")
   27.58 +        
   27.59 +class ProgFactory:
   27.60 +
   27.61 +    def getXen(self):
   27.62 +        status, output = commands.getstatusoutput("xm info")
   27.63 +        if status != 0:
   27.64 +            return UnknownProg("xen")
   27.65 +        
   27.66 +        for l in output.split("\n"):
   27.67 +            match = re.match("^([a-z_]+)[ ]*: (.*)$", l)
   27.68 +            if match and match.group(1) == "xen_changeset":
   27.69 +                return Prog("xen", match.group(2))
   27.70 +
   27.71 +        return UnknownProg("xen")
   27.72 +
   27.73 +    def getXmTest(self):
   27.74 +        return Prog("xm-test", XM_TEST_VERSION)
   27.75 +
   27.76 +    def getPython(self):
   27.77 +        return Prog("python", distutils.sysconfig.get_python_version())
   27.78 +
   27.79 +    def getXenCaps(self):
   27.80 +        s, o = commands.getstatusoutput("xm info")
   27.81 +        if s != 0:
   27.82 +            return UnknownProg("xen_caps")
   27.83 +
   27.84 +        for l in o.split("\n"):
   27.85 +            match = re.match("^xen_caps[ \t]*: (.*)$", l)
   27.86 +            if match:
   27.87 +                return Prog("xen_caps", match.group(1))
   27.88 +
   27.89 +class ProgReport:
   27.90 +
   27.91 +    def __init__(self):
   27.92 +
   27.93 +        self.progs = []
   27.94 +        self.errors = 0
   27.95 +
   27.96 +        f = ProgFactory()
   27.97 +
   27.98 +        self.progs.append(f.getXen())
   27.99 +        self.progs.append(f.getXmTest())
  27.100 +        self.progs.append(f.getPython())
  27.101 +        self.progs.append(f.getXenCaps())
  27.102 +
  27.103 +        for p in self.progs:
  27.104 +            if isinstance(p, UnknownProg):
  27.105 +                self.errors += 1
  27.106 +
  27.107 +    def __str__(self):
  27.108 +        string = "<progs>\n"
  27.109 +
  27.110 +        for p in self.progs:
  27.111 +            string += str(p)
  27.112 +
  27.113 +        string += "</progs>\n"
  27.114 +
  27.115 +        return string
  27.116 +
  27.117 +if __name__ == "__main__":
  27.118 +    r = ProgReport()
  27.119 +
  27.120 +    print str(r)
  27.121 +
  27.122 +    sys.exit(r.errors)
    28.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.2 +++ b/tools/xm-test/lib/XmTestReport/Report.py	Mon Nov 07 12:53:38 2005 +0100
    28.3 @@ -0,0 +1,153 @@
    28.4 +#!/usr/bin/python
    28.5 +
    28.6 +"""
    28.7 + Report.py - Handles the coordination of xm-test xml-reporting modules
    28.8 +
    28.9 + Copyright (C) International Business Machines Corp., 2005
   28.10 + Author: Dan Smith <danms@us.ibm.com>
   28.11 +
   28.12 + This program is free software; you can redistribute it and/or modify
   28.13 + it under the terms of the GNU General Public License as published by
   28.14 + the Free Software Foundation; under version 2 of the License.
   28.15 +
   28.16 + This program is distributed in the hope that it will be useful,
   28.17 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   28.18 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   28.19 + GNU General Public License for more details.
   28.20 +
   28.21 + You should have received a copy of the GNU General Public License
   28.22 + along with this program; if not, write to the Free Software
   28.23 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   28.24 +
   28.25 +"""
   28.26 +
   28.27 +import OSReport
   28.28 +import ProgReport
   28.29 +import ResultReport
   28.30 +import utils
   28.31 +
   28.32 +import sys
   28.33 +import os
   28.34 +import xml.dom.minidom
   28.35 +import httplib
   28.36 +import urllib
   28.37 +
   28.38 +#REPORT_HOST = "xmtest-dev.dague.org"
   28.39 +REPORT_HOST = "xmtest.dague.org"
   28.40 +REPORT_URL  = "/cgi-bin/report-results";
   28.41 +
   28.42 +class XmTestReport:
   28.43 +
   28.44 +    def __init__(self, files):
   28.45 +        self.files = files
   28.46 +
   28.47 +    def __getContactInfo(self):
   28.48 +        if os.access("contact_info", os.R_OK):
   28.49 +            c = file("contact_info")
   28.50 +            line = c.readline()
   28.51 +            line = line.strip()
   28.52 +            return line
   28.53 +        else:
   28.54 +            return "nobody@nowhere.com"
   28.55 +
   28.56 +    def __stringify(self, fileName):
   28.57 +        f = file(fileName)
   28.58 +        str = f.read()
   28.59 +        f.close()
   28.60 +
   28.61 +        return str
   28.62 +
   28.63 +    def __str__(self):
   28.64 +        string  = "<testname>xm-test</testname>\n"
   28.65 +        string += "<user>%s</user>\n" % self.__getContactInfo()
   28.66 +
   28.67 +        for f in self.files:
   28.68 +            string += self.__stringify(f)
   28.69 +
   28.70 +        return string
   28.71 +
   28.72 +# Taken from example in Python Cookbook
   28.73 +def encodeForm(fieldList):
   28.74 +    body = []
   28.75 +    boundary = "-------XmTestReportingXML"
   28.76 +
   28.77 +    for name in fieldList.keys():
   28.78 +        body.append('--' + boundary)
   28.79 +        body.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (name, "%s.txt" % name))
   28.80 +        body.append('Content-Type: text/plain')
   28.81 +        body.append('')
   28.82 +        body.append(fieldList[name])
   28.83 +
   28.84 +    body.append('')
   28.85 +    body.append("--" + boundary + "--")
   28.86 +    body.append('')
   28.87 +
   28.88 +    textBody = "\r\n".join(body)
   28.89 +
   28.90 +    return 'multipart/form-data; boundary=%s' % boundary, textBody
   28.91 +
   28.92 +def postResults(results):
   28.93 +    conn = httplib.HTTPConnection(REPORT_HOST)
   28.94 +
   28.95 +    type, body = encodeForm({"log" : results})
   28.96 +
   28.97 +    headers = {"content-type" : type}
   28.98 +
   28.99 +    # DEBUG OUTPUT
  28.100 +    # print "BODY\n%s\nBODY\n" % body
  28.101 +    # print "%s\n" % type
  28.102 +    # print headers
  28.103 +    
  28.104 +    conn.request("POST", REPORT_URL, body, headers)
  28.105 +    
  28.106 +    resp = conn.getresponse()
  28.107 +    if resp.status == 200:
  28.108 +        print >>sys.stderr, "Your results have been submitted successfully!"
  28.109 +    else:
  28.110 +        print >>sys.stderr, "Unable to submit results:"
  28.111 +        print >>sys.stderr, "[http://%s%s] said %i: %s" % (REPORT_HOST,
  28.112 +                                                           REPORT_URL,
  28.113 +                                                           resp.status,
  28.114 +                                                           resp.reason)
  28.115 +
  28.116 +        data = resp.read()
  28.117 +        print >>sys.stderr, data
  28.118 +
  28.119 +if __name__ == "__main__":
  28.120 +
  28.121 +    if len(sys.argv) <= 1:
  28.122 +        print "Usage: Report.py [opt] <outputfiles...>"
  28.123 +        print "Where:"
  28.124 +        print "-d    : don't submit, just dump XML"
  28.125 +        print "-D    : do submit and dump XML"
  28.126 +        sys.exit(1)
  28.127 +
  28.128 +    submit = True
  28.129 +    dump = False
  28.130 +    files = []
  28.131 +
  28.132 +    for a in sys.argv[1:]:
  28.133 +        if a == "-d":
  28.134 +            submit = False
  28.135 +            dump = True
  28.136 +        elif a == "-D":
  28.137 +            dump = True
  28.138 +            submit = True
  28.139 +
  28.140 +        else:
  28.141 +            if not os.access(a, os.R_OK):
  28.142 +                print "Unable to access file: %s" % a
  28.143 +                sys.exit(1)
  28.144 +            else:
  28.145 +                files.append(a)
  28.146 +
  28.147 +    report = XmTestReport(files)
  28.148 +
  28.149 +    xmlout = "<xml>\n%s</xml>\n" % report
  28.150 +
  28.151 +    if dump:
  28.152 +        print xmlout
  28.153 +
  28.154 +    if submit:
  28.155 +        postResults(xmlout)
  28.156 +    
    29.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.2 +++ b/tools/xm-test/lib/XmTestReport/ResultReport.py	Mon Nov 07 12:53:38 2005 +0100
    29.3 @@ -0,0 +1,157 @@
    29.4 +#!/usr/bin/python
    29.5 +
    29.6 +"""
    29.7 + ResultReport.py - Handles the gathering and xml-formatting of xm-test
    29.8 +                   results
    29.9 +
   29.10 + Copyright (C) International Business Machines Corp., 2005
   29.11 + Author: Dan Smith <danms@us.ibm.com>
   29.12 +
   29.13 + This program is free software; you can redistribute it and/or modify
   29.14 + it under the terms of the GNU General Public License as published by
   29.15 + the Free Software Foundation; under version 2 of the License.
   29.16 +
   29.17 + This program is distributed in the hope that it will be useful,
   29.18 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   29.19 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   29.20 + GNU General Public License for more details.
   29.21 +
   29.22 + You should have received a copy of the GNU General Public License
   29.23 + along with this program; if not, write to the Free Software
   29.24 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   29.25 +
   29.26 +"""
   29.27 +
   29.28 +import utils
   29.29 +
   29.30 +import re
   29.31 +
   29.32 +class Test:
   29.33 +
   29.34 +    def __init__(self, name, state, seq):
   29.35 +        self.vars = {}
   29.36 +        self.vars["name"] = name
   29.37 +        self.vars["state"] = state
   29.38 +        self.vars["log"] = "NO LOG SUPPLIED"
   29.39 +        self.vars["seq"] = str(seq)
   29.40 +
   29.41 +    def setLog(self, log):
   29.42 +        self.vars["log"] = log
   29.43 +
   29.44 +    def __str__(self):
   29.45 +        string = "<test>\n"
   29.46 +
   29.47 +        for k in self.vars.keys():
   29.48 +            string += "  " + utils.tagify(k, self.vars[k]) + "\n"
   29.49 +
   29.50 +        string += "</test>\n"
   29.51 +
   29.52 +        return string
   29.53 +
   29.54 +class TestGroup:
   29.55 +
   29.56 +    def __init__(self, name):
   29.57 +        self.name = name
   29.58 +        self.tests = []
   29.59 +
   29.60 +    def addTest(self, test):
   29.61 +        self.tests.append(test)
   29.62 +
   29.63 +    def __str__(self):
   29.64 +        string  = "<group>\n"
   29.65 +        string += "  <name>%s</name>\n" % self.name
   29.66 +
   29.67 +        for t in self.tests:
   29.68 +            string += str(t)
   29.69 +
   29.70 +        string += "</group>\n"
   29.71 +
   29.72 +        return string
   29.73 +
   29.74 +class ResultSet:
   29.75 +
   29.76 +    def __init__(self):
   29.77 +        self.groups = []
   29.78 +
   29.79 +    def addGroup(self, group):
   29.80 +        self.groups.append(group)
   29.81 +
   29.82 +    def __str__(self):
   29.83 +        string = "<results>\n"
   29.84 +
   29.85 +        for g in self.groups:
   29.86 +            string += str(g)
   29.87 +
   29.88 +        string += "</results>\n"
   29.89 +
   29.90 +        return string
   29.91 +
   29.92 +class ResultParser:
   29.93 +
   29.94 +    def __init__(self):
   29.95 +        self.groups = {}
   29.96 +        self.resultSet = None
   29.97 +
   29.98 +    def __isImportant(self, line):
   29.99 +
  29.100 +        if re.search("^[Mm]ak(e|ing)", line):
  29.101 +            return False
  29.102 +        if re.search("^===", line):
  29.103 +            return False
  29.104 +        if re.search("^All [0-9]+ tests", line):
  29.105 +            return False
  29.106 +        if re.search("^[0-9]+ of [0-9]+ tests", line):
  29.107 +            return False
  29.108 +        if re.search("^cp [0-9]+_", line):
  29.109 +            return False
  29.110 +        if re.search("^chmod \+x [0-9]+_", line):
  29.111 +            return False
  29.112 +        
  29.113 +        return True
  29.114 +
  29.115 +    def parse(self, fileName):
  29.116 +        output = file(fileName);
  29.117 +        contents = output.read()
  29.118 +
  29.119 +        lines = contents.split("\n")
  29.120 +
  29.121 +        sequence = 0
  29.122 +        currentLog = ""
  29.123 +        for l in lines:
  29.124 +            match = re.match("^(PASS|FAIL|XPASS|XFAIL|SKIP): ([0-9]+)_([^_]+)_([^\.]+)\.test$", l)
  29.125 +            if match:
  29.126 +                # End of current test; build object
  29.127 +                testStatus = match.group(1)
  29.128 +                testNumber = match.group(2)
  29.129 +                testGroup  = match.group(3)
  29.130 +                testName   = match.group(4)
  29.131 +
  29.132 +                if not testGroup in self.groups.keys():
  29.133 +                    self.groups[testGroup] = TestGroup(testGroup)
  29.134 +
  29.135 +                test = Test("%s_%s" % (testNumber, testName), testStatus,
  29.136 +                            sequence)
  29.137 +                sequence += 1
  29.138 +                test.setLog(currentLog)
  29.139 +                self.groups[testGroup].addTest(test)
  29.140 +
  29.141 +                currentLog = ""
  29.142 +
  29.143 +            else:
  29.144 +                if self.__isImportant(l):
  29.145 +                    currentLog += l + "\n"
  29.146 +
  29.147 +        self.resultSet = ResultSet()
  29.148 +
  29.149 +        for g in self.groups:
  29.150 +            self.resultSet.addGroup(self.groups[g])
  29.151 +
  29.152 +        return self.resultSet
  29.153 +
  29.154 +if __name__ == "__main__":
  29.155 +
  29.156 +    import sys
  29.157 +
  29.158 +    r = ResultParser()
  29.159 +
  29.160 +    print str(r.parse(sys.argv[1]))
    30.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.2 +++ b/tools/xm-test/lib/XmTestReport/utils.py	Mon Nov 07 12:53:38 2005 +0100
    30.3 @@ -0,0 +1,31 @@
    30.4 +#!/usr/bin/python
    30.5 +
    30.6 +"""
    30.7 + utils.py - Utilities for reporting xm-test results
    30.8 +
    30.9 + Copyright (C) International Business Machines Corp., 2005
   30.10 + Author: Dan Smith <danms@us.ibm.com>
   30.11 +
   30.12 + This program is free software; you can redistribute it and/or modify
   30.13 + it under the terms of the GNU General Public License as published by
   30.14 + the Free Software Foundation; under version 2 of the License.
   30.15 +
   30.16 + This program is distributed in the hope that it will be useful,
   30.17 + but WITHOUT ANY WARRANTY; without even the implied warranty of
   30.18 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   30.19 + GNU General Public License for more details.
   30.20 +
   30.21 + You should have received a copy of the GNU General Public License
   30.22 + along with this program; if not, write to the Free Software
   30.23 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   30.24 +
   30.25 +"""
   30.26 +
   30.27 +from xml.sax.saxutils import escape
   30.28 +
   30.29 +def tagify(tag, string):
   30.30 +    return "<%s>%s</%s>" % (tag, escape(string.strip()), tag)
   30.31 +
   30.32 +
   30.33 +  
   30.34 +  
    31.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    31.2 +++ b/tools/xm-test/lib/XmTestReport/xmtest.py	Mon Nov 07 12:53:38 2005 +0100
    31.3 @@ -0,0 +1,3 @@
    31.4 +#!/usr/bin/python
    31.5 +
    31.6 +XM_TEST_VERSION = "0.4.0"
    32.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.2 +++ b/tools/xm-test/lib/XmTestReport/xmtest.py.in	Mon Nov 07 12:53:38 2005 +0100
    32.3 @@ -0,0 +1,3 @@
    32.4 +#!/usr/bin/python
    32.5 +
    32.6 +XM_TEST_VERSION = "@PACKAGE_VERSION@"
    33.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    33.2 +++ b/tools/xm-test/missing	Mon Nov 07 12:53:38 2005 +0100
    33.3 @@ -0,0 +1,357 @@
    33.4 +#! /bin/sh
    33.5 +# Common stub for a few missing GNU programs while installing.
    33.6 +
    33.7 +scriptversion=2005-02-08.22
    33.8 +
    33.9 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
   33.10 +#   Free Software Foundation, Inc.
   33.11 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
   33.12 +
   33.13 +# This program is free software; you can redistribute it and/or modify
   33.14 +# it under the terms of the GNU General Public License as published by
   33.15 +# the Free Software Foundation; either version 2, or (at your option)
   33.16 +# any later version.
   33.17 +
   33.18 +# This program is distributed in the hope that it will be useful,
   33.19 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   33.20 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   33.21 +# GNU General Public License for more details.
   33.22 +
   33.23 +# You should have received a copy of the GNU General Public License
   33.24 +# along with this program; if not, write to the Free Software
   33.25 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   33.26 +# 02111-1307, USA.
   33.27 +
   33.28 +# As a special exception to the GNU General Public License, if you
   33.29 +# distribute this file as part of a program that contains a
   33.30 +# configuration script generated by Autoconf, you may include it under
   33.31 +# the same distribution terms that you use for the rest of that program.
   33.32 +
   33.33 +if test $# -eq 0; then
   33.34 +  echo 1>&2 "Try \`$0 --help' for more information"
   33.35 +  exit 1
   33.36 +fi
   33.37 +
   33.38 +run=:
   33.39 +
   33.40 +# In the cases where this matters, `missing' is being run in the
   33.41 +# srcdir already.
   33.42 +if test -f configure.ac; then
   33.43 +  configure_ac=configure.ac
   33.44 +else
   33.45 +  configure_ac=configure.in
   33.46 +fi
   33.47 +
   33.48 +msg="missing on your system"
   33.49 +
   33.50 +case "$1" in
   33.51 +--run)
   33.52 +  # Try to run requested program, and just exit if it succeeds.
   33.53 +  run=
   33.54 +  shift
   33.55 +  "$@" && exit 0
   33.56 +  # Exit code 63 means version mismatch.  This often happens
   33.57 +  # when the user try to use an ancient version of a tool on
   33.58 +  # a file that requires a minimum version.  In this case we
   33.59 +  # we should proceed has if the program had been absent, or
   33.60 +  # if --run hadn't been passed.
   33.61 +  if test $? = 63; then
   33.62 +    run=:
   33.63 +    msg="probably too old"
   33.64 +  fi
   33.65 +  ;;
   33.66 +
   33.67 +  -h|--h|--he|--hel|--help)
   33.68 +    echo "\
   33.69 +$0 [OPTION]... PROGRAM [ARGUMENT]...
   33.70 +
   33.71 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
   33.72 +error status if there is no known handling for PROGRAM.
   33.73 +
   33.74 +Options:
   33.75 +  -h, --help      display this help and exit
   33.76 +  -v, --version   output version information and exit
   33.77 +  --run           try to run the given command, and emulate it if it fails
   33.78 +
   33.79 +Supported PROGRAM values:
   33.80 +  aclocal      touch file \`aclocal.m4'
   33.81 +  autoconf     touch file \`configure'
   33.82 +  autoheader   touch file \`config.h.in'
   33.83 +  automake     touch all \`Makefile.in' files
   33.84 +  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
   33.85 +  flex         create \`lex.yy.c', if possible, from existing .c
   33.86 +  help2man     touch the output file
   33.87 +  lex          create \`lex.yy.c', if possible, from existing .c
   33.88 +  makeinfo     touch the output file
   33.89 +  tar          try tar, gnutar, gtar, then tar without non-portable flags
   33.90 +  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
   33.91 +
   33.92 +Send bug reports to <bug-automake@gnu.org>."
   33.93 +    exit $?
   33.94 +    ;;
   33.95 +
   33.96 +  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
   33.97 +    echo "missing $scriptversion (GNU Automake)"
   33.98 +    exit $?
   33.99 +    ;;
  33.100 +
  33.101 +  -*)
  33.102 +    echo 1>&2 "$0: Unknown \`$1' option"
  33.103 +    echo 1>&2 "Try \`$0 --help' for more information"
  33.104 +    exit 1
  33.105 +    ;;
  33.106 +
  33.107 +esac
  33.108 +
  33.109 +# Now exit if we have it, but it failed.  Also exit now if we
  33.110 +# don't have it and --version was passed (most likely to detect
  33.111 +# the program).
  33.112 +case "$1" in
  33.113 +  lex|yacc)
  33.114 +    # Not GNU programs, they don't have --version.
  33.115 +    ;;
  33.116 +
  33.117 +  tar)
  33.118 +    if test -n "$run"; then
  33.119 +       echo 1>&2 "ERROR: \`tar' requires --run"
  33.120 +       exit 1
  33.121 +    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  33.122 +       exit 1
  33.123 +    fi
  33.124 +    ;;
  33.125 +
  33.126 +  *)
  33.127 +    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  33.128 +       # We have it, but it failed.
  33.129 +       exit 1
  33.130 +    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  33.131 +       # Could not run --version or --help.  This is probably someone
  33.132 +       # running `$TOOL --version' or `$TOOL --help' to check whether
  33.133 +       # $TOOL exists and not knowing $TOOL uses missing.
  33.134 +       exit 1
  33.135 +    fi
  33.136 +    ;;
  33.137 +esac
  33.138 +
  33.139 +# If it does not exist, or fails to run (possibly an outdated version),
  33.140 +# try to emulate it.
  33.141 +case "$1" in
  33.142 +  aclocal*)
  33.143 +    echo 1>&2 "\
  33.144 +WARNING: \`$1' is $msg.  You should only need it if
  33.145 +         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
  33.146 +         to install the \`Automake' and \`Perl' packages.  Grab them from
  33.147 +         any GNU archive site."
  33.148 +    touch aclocal.m4
  33.149 +    ;;
  33.150 +
  33.151 +  autoconf)
  33.152 +    echo 1>&2 "\
  33.153 +WARNING: \`$1' is $msg.  You should only need it if
  33.154 +         you modified \`${configure_ac}'.  You might want to install the
  33.155 +         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
  33.156 +         archive site."
  33.157 +    touch configure
  33.158 +    ;;
  33.159 +
  33.160 +  autoheader)
  33.161 +    echo 1>&2 "\
  33.162 +WARNING: \`$1' is $msg.  You should only need it if
  33.163 +         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
  33.164 +         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
  33.165 +         from any GNU archive site."
  33.166 +    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
  33.167 +    test -z "$files" && files="config.h"
  33.168 +    touch_files=
  33.169 +    for f in $files; do
  33.170 +      case "$f" in
  33.171 +      *:*) touch_files="$touch_files "`echo "$f" |
  33.172 +				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  33.173 +      *) touch_files="$touch_files $f.in";;
  33.174 +      esac
  33.175 +    done
  33.176 +    touch $touch_files
  33.177 +    ;;
  33.178 +
  33.179 +  automake*)
  33.180 +    echo 1>&2 "\
  33.181 +WARNING: \`$1' is $msg.  You should only need it if
  33.182 +         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  33.183 +         You might want to install the \`Automake' and \`Perl' packages.
  33.184 +         Grab them from any GNU archive site."
  33.185 +    find . -type f -name Makefile.am -print |
  33.186 +	   sed 's/\.am$/.in/' |
  33.187 +	   while read f; do touch "$f"; done
  33.188 +    ;;
  33.189 +
  33.190 +  autom4te)
  33.191 +    echo 1>&2 "\
  33.192 +WARNING: \`$1' is needed, but is $msg.
  33.193 +         You might have modified some files without having the
  33.194 +         proper tools for further handling them.
  33.195 +         You can get \`$1' as part of \`Autoconf' from any GNU
  33.196 +         archive site."
  33.197 +
  33.198 +    file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  33.199 +    test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  33.200 +    if test -f "$file"; then
  33.201 +	touch $file
  33.202 +    else
  33.203 +	test -z "$file" || exec >$file
  33.204 +	echo "#! /bin/sh"
  33.205 +	echo "# Created by GNU Automake missing as a replacement of"
  33.206 +	echo "#  $ $@"
  33.207 +	echo "exit 0"
  33.208 +	chmod +x $file
  33.209 +	exit 1
  33.210 +    fi
  33.211 +    ;;
  33.212 +
  33.213 +  bison|yacc)
  33.214 +    echo 1>&2 "\
  33.215 +WARNING: \`$1' $msg.  You should only need it if
  33.216 +         you modified a \`.y' file.  You may need the \`Bison' package
  33.217 +         in order for those modifications to take effect.  You can get
  33.218 +         \`Bison' from any GNU archive site."
  33.219 +    rm -f y.tab.c y.tab.h
  33.220 +    if [ $# -ne 1 ]; then
  33.221 +        eval LASTARG="\${$#}"
  33.222 +	case "$LASTARG" in
  33.223 +	*.y)
  33.224 +	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  33.225 +	    if [ -f "$SRCFILE" ]; then
  33.226 +	         cp "$SRCFILE" y.tab.c
  33.227 +	    fi
  33.228 +	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  33.229 +	    if [ -f "$SRCFILE" ]; then
  33.230 +	         cp "$SRCFILE" y.tab.h
  33.231 +	    fi
  33.232 +	  ;;
  33.233 +	esac
  33.234 +    fi
  33.235 +    if [ ! -f y.tab.h ]; then
  33.236 +	echo >y.tab.h
  33.237 +    fi
  33.238 +    if [ ! -f y.tab.c ]; then
  33.239 +	echo 'main() { return 0; }' >y.tab.c
  33.240 +    fi
  33.241 +    ;;
  33.242 +
  33.243 +  lex|flex)
  33.244 +    echo 1>&2 "\
  33.245 +WARNING: \`$1' is $msg.  You should only need it if
  33.246 +         you modified a \`.l' file.  You may need the \`Flex' package
  33.247 +         in order for those modifications to take effect.  You can get
  33.248 +         \`Flex' from any GNU archive site."
  33.249 +    rm -f lex.yy.c
  33.250 +    if [ $# -ne 1 ]; then
  33.251 +        eval LASTARG="\${$#}"
  33.252 +	case "$LASTARG" in
  33.253 +	*.l)
  33.254 +	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  33.255 +	    if [ -f "$SRCFILE" ]; then
  33.256 +	         cp "$SRCFILE" lex.yy.c
  33.257 +	    fi
  33.258 +	  ;;
  33.259 +	esac
  33.260 +    fi
  33.261 +    if [ ! -f lex.yy.c ]; then
  33.262 +	echo 'main() { return 0; }' >lex.yy.c
  33.263 +    fi
  33.264 +    ;;
  33.265 +
  33.266 +  help2man)
  33.267 +    echo 1>&2 "\
  33.268 +WARNING: \`$1' is $msg.  You should only need it if
  33.269 +	 you modified a dependency of a manual page.  You may need the
  33.270 +	 \`Help2man' package in order for those modifications to take
  33.271 +	 effect.  You can get \`Help2man' from any GNU archive site."
  33.272 +
  33.273 +    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  33.274 +    if test -z "$file"; then
  33.275 +	file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  33.276 +    fi
  33.277 +    if [ -f "$file" ]; then
  33.278 +	touch $file
  33.279 +    else
  33.280 +	test -z "$file" || exec >$file
  33.281 +	echo ".ab help2man is required to generate this page"
  33.282 +	exit 1
  33.283 +    fi
  33.284 +    ;;
  33.285 +
  33.286 +  makeinfo)
  33.287 +    echo 1>&2 "\
  33.288 +WARNING: \`$1' is $msg.  You should only need it if
  33.289 +         you modified a \`.texi' or \`.texinfo' file, or any other file
  33.290 +         indirectly affecting the aspect of the manual.  The spurious
  33.291 +         call might also be the consequence of using a buggy \`make' (AIX,
  33.292 +         DU, IRIX).  You might want to install the \`Texinfo' package or
  33.293 +         the \`GNU make' package.  Grab either from any GNU archive site."
  33.294 +    # The file to touch is that specified with -o ...
  33.295 +    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  33.296 +    if test -z "$file"; then
  33.297 +      # ... or it is the one specified with @setfilename ...
  33.298 +      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  33.299 +      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
  33.300 +      # ... or it is derived from the source name (dir/f.texi becomes f.info)
  33.301 +      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  33.302 +    fi
  33.303 +    touch $file
  33.304 +    ;;
  33.305 +
  33.306 +  tar)
  33.307 +    shift
  33.308 +
  33.309 +    # We have already tried tar in the generic part.
  33.310 +    # Look for gnutar/gtar before invocation to avoid ugly error
  33.311 +    # messages.
  33.312 +    if (gnutar --version > /dev/null 2>&1); then
  33.313 +       gnutar "$@" && exit 0
  33.314 +    fi
  33.315 +    if (gtar --version > /dev/null 2>&1); then
  33.316 +       gtar "$@" && exit 0
  33.317 +    fi
  33.318 +    firstarg="$1"
  33.319 +    if shift; then
  33.320 +	case "$firstarg" in
  33.321 +	*o*)
  33.322 +	    firstarg=`echo "$firstarg" | sed s/o//`
  33.323 +	    tar "$firstarg" "$@" && exit 0
  33.324 +	    ;;
  33.325 +	esac
  33.326 +	case "$firstarg" in
  33.327 +	*h*)
  33.328 +	    firstarg=`echo "$firstarg" | sed s/h//`
  33.329 +	    tar "$firstarg" "$@" && exit 0
  33.330 +	    ;;
  33.331 +	esac
  33.332 +    fi
  33.333 +
  33.334 +    echo 1>&2 "\
  33.335 +WARNING: I can't seem to be able to run \`tar' with the given arguments.
  33.336 +         You may want to install GNU tar or Free paxutils, or check the
  33.337 +         command line arguments."
  33.338 +    exit 1
  33.339 +    ;;
  33.340 +
  33.341 +  *)
  33.342 +    echo 1>&2 "\
  33.343 +WARNING: \`$1' is needed, and is $msg.
  33.344 +         You might have modified some files without having the
  33.345 +         proper tools for further handling them.  Check the \`README' file,
  33.346 +         it often tells you about the needed prerequisites for installing
  33.347 +         this package.  You may also peek at any GNU archive site, in case
  33.348 +         some other package would contain this missing \`$1' program."
  33.349 +    exit 1
  33.350 +    ;;
  33.351 +esac
  33.352 +
  33.353 +exit 0
  33.354 +
  33.355 +# Local variables:
  33.356 +# eval: (add-hook 'write-file-hooks 'time-stamp)
  33.357 +# time-stamp-start: "scriptversion="
  33.358 +# time-stamp-format: "%:y-%02m-%02d.%02H"
  33.359 +# time-stamp-end: "$"
  33.360 +# End:
    34.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    34.2 +++ b/tools/xm-test/mkreport	Mon Nov 07 12:53:38 2005 +0100
    34.3 @@ -0,0 +1,71 @@
    34.4 +#!/usr/bin/perl
    34.5 +
    34.6 +open(LOG, $ARGV[0]);
    34.7 +@lines = <LOG>;
    34.8 +
    34.9 +foreach $line (@lines) {
   34.10 +    if ($line =~ /^[A-Z]+/) {
   34.11 +	chomp($line);
   34.12 +	($type, @rest) = split(/:/, $line);
   34.13 +
   34.14 +	$message = "";
   34.15 +	foreach $chunk (@rest) {
   34.16 +	    $message .= $chunk;
   34.17 +	}
   34.18 +	
   34.19 +	if ($type eq "REASON") {
   34.20 +
   34.21 +	    $last_reason = $message ;
   34.22 +
   34.23 +	} elsif ($type =~ /X?FAIL/) {
   34.24 +
   34.25 +	    $rest[0] =~ /([^\. ]+)\.test/;
   34.26 +	    $name = $1;
   34.27 +
   34.28 +	    $passfail = $type;
   34.29 +	    $testname = $name;
   34.30 +	    $extra    = "\n\t$last_reason\n";
   34.31 +
   34.32 +	    $last_reason = "Unknown reason";
   34.33 +	    
   34.34 +	} elsif ($type =~ /X?PASS/) {
   34.35 +
   34.36 +	    $rest[0] =~ /([^\. ]+)\.test/;
   34.37 +	    $name = $1;
   34.38 +
   34.39 +	    $passfail = $type;
   34.40 +	    $testname = $name;
   34.41 +	    $extra    = "";
   34.42 +
   34.43 +	    $last_reason = "Unknown reason";
   34.44 +
   34.45 +	} else {
   34.46 +
   34.47 +	    $passfail = $type;
   34.48 +	    $testname = "UNKN";
   34.49 +	    $extra    = "Unknown status type $type!";
   34.50 +
   34.51 +	    $last_reason = "Unknown reason";
   34.52 +
   34.53 +	}
   34.54 +
   34.55 +	push(@results, ([$testname, $passfail, $extra]));
   34.56 +
   34.57 +    }
   34.58 +
   34.59 +}
   34.60 +
   34.61 +foreach $test (@results) {
   34.62 +
   34.63 +    
   34.64 +    if ($tests{$test->[0]} eq undef) {
   34.65 +	if ($test->[1] =~ /^X?FAIL/) {
   34.66 +	    $fmt = "%5s: %s %s\n";
   34.67 +	    printf($fmt, $test->[1], $test->[0], $test->[2]);
   34.68 +	}
   34.69 +	$tests{$test->[0]} = 1;
   34.70 +    }
   34.71 +
   34.72 +
   34.73 +}
   34.74 +
    35.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    35.2 +++ b/tools/xm-test/ramdisk/Makefile.am	Mon Nov 07 12:53:38 2005 +0100
    35.3 @@ -0,0 +1,38 @@
    35.4 +
    35.5 +EXTRA_DIST = skel configs
    35.6 +
    35.7 +BR_TAR = buildroot-20050823.tar.bz2
    35.8 +BR_URL = http://buildroot.uclibc.org/downloads/snapshots/$(BR_TAR)
    35.9 +#BR_URL = http://buildroot.uclibc.org/downloads/snapshots/buildroot-snapshot.tar.bz2
   35.10 +BR_SRC = buildroot
   35.11 +BR_IMG = $(BR_SRC)/rootfs.i386.ext2
   35.12 +
   35.13 +BR_ROOT = build_i386/root
   35.14 +
   35.15 +all: initrd.img
   35.16 +
   35.17 +$(BR_TAR):
   35.18 +	wget $(BR_URL)
   35.19 +
   35.20 +$(BR_SRC): $(BR_TAR)
   35.21 +	tar xjf $(BR_TAR)
   35.22 +
   35.23 +$(BR_IMG): $(BR_SRC)
   35.24 +	cp configs/buildroot $(BR_SRC)/.config
   35.25 +	cp configs/busybox $(BR_SRC)/package/busybox/busybox.config
   35.26 +	cp configs/uClibc $(BR_SRC)/toolchain/uClibc/uClibc.config
   35.27 +	cd $(BR_SRC) && make oldconfig && make
   35.28 +
   35.29 +initrd.img: $(BR_IMG)
   35.30 +	(cd skel; tar cf - .) | (cd $(BR_SRC)/$(BR_ROOT); tar xvf -)
   35.31 +	cd $(BR_SRC) && make
   35.32 +	cp $(BR_IMG) initrd.img
   35.33 +
   35.34 +clean-local: am_config_clean-local
   35.35 +
   35.36 +am_config_clean-local:
   35.37 +	rm -Rf buildroot
   35.38 +	rm -f *~
   35.39 +	rm -f initrd.img
   35.40 +	rm -f $(BR_TAR)
   35.41 +	rm -Rf patches make.d
    36.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    36.2 +++ b/tools/xm-test/ramdisk/Makefile.in	Mon Nov 07 12:53:38 2005 +0100
    36.3 @@ -0,0 +1,309 @@
    36.4 +# Makefile.in generated by automake 1.9.5 from Makefile.am.
    36.5 +# @configure_input@
    36.6 +
    36.7 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    36.8 +# 2003, 2004, 2005  Free Software Foundation, Inc.
    36.9 +# This Makefile.in is free software; the Free Software Foundation
   36.10 +# gives unlimited permission to copy and/or distribute it,
   36.11 +# with or without modifications, as long as this notice is preserved.
   36.12 +
   36.13 +# This program is distributed in the hope that it will be useful,
   36.14 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   36.15 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   36.16 +# PARTICULAR PURPOSE.
   36.17 +
   36.18 +@SET_MAKE@
   36.19 +srcdir = @srcdir@
   36.20 +top_srcdir = @top_srcdir@
   36.21 +VPATH = @srcdir@
   36.22 +pkgdatadir = $(datadir)/@PACKAGE@
   36.23 +pkglibdir = $(libdir)/@PACKAGE@
   36.24 +pkgincludedir = $(includedir)/@PACKAGE@
   36.25 +top_builddir = ..
   36.26 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
   36.27 +INSTALL = @INSTALL@
   36.28 +install_sh_DATA = $(install_sh) -c -m 644
   36.29 +install_sh_PROGRAM = $(install_sh) -c
   36.30 +install_sh_SCRIPT = $(install_sh) -c
   36.31 +INSTALL_HEADER = $(INSTALL_DATA)
   36.32 +transform = $(program_transform_name)
   36.33 +NORMAL_INSTALL = :
   36.34 +PRE_INSTALL = :
   36.35 +POST_INSTALL = :
   36.36 +NORMAL_UNINSTALL = :
   36.37 +PRE_UNINSTALL = :
   36.38 +POST_UNINSTALL = :
   36.39 +subdir = ramdisk
   36.40 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
   36.41 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
   36.42 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
   36.43 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
   36.44 +	$(ACLOCAL_M4)
   36.45 +mkinstalldirs = $(install_sh) -d
   36.46 +CONFIG_CLEAN_FILES =
   36.47 +SOURCES =
   36.48 +DIST_SOURCES =
   36.49 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
   36.50 +ACLOCAL = @ACLOCAL@
   36.51 +AMDEP_FALSE = @AMDEP_FALSE@
   36.52 +AMDEP_TRUE = @AMDEP_TRUE@
   36.53 +AMTAR = @AMTAR@
   36.54 +AUTOCONF = @AUTOCONF@
   36.55 +AUTOHEADER = @AUTOHEADER@
   36.56 +AUTOMAKE = @AUTOMAKE@
   36.57 +AWK = @AWK@
   36.58 +CC = @CC@
   36.59 +CCDEPMODE = @CCDEPMODE@
   36.60 +CFLAGS = @CFLAGS@
   36.61 +CPPFLAGS = @CPPFLAGS@
   36.62 +CYGPATH_W = @CYGPATH_W@
   36.63 +DEFS = @DEFS@
   36.64 +DEPDIR = @DEPDIR@
   36.65 +ECHO_C = @ECHO_C@
   36.66 +ECHO_N = @ECHO_N@
   36.67 +ECHO_T = @ECHO_T@
   36.68 +ENABLE_VMX = @ENABLE_VMX@
   36.69 +EXEEXT = @EXEEXT@
   36.70 +INSTALL_DATA = @INSTALL_DATA@
   36.71 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
   36.72 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
   36.73 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
   36.74 +LDFLAGS = @LDFLAGS@
   36.75 +LEX = @LEX@
   36.76 +LEXLIB = @LEXLIB@
   36.77 +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
   36.78 +LIBOBJS = @LIBOBJS@
   36.79 +LIBS = @LIBS@
   36.80 +LTLIBOBJS = @LTLIBOBJS@
   36.81 +MAKEINFO = @MAKEINFO@
   36.82 +OBJEXT = @OBJEXT@
   36.83 +PACKAGE = @PACKAGE@
   36.84 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
   36.85 +PACKAGE_NAME = @PACKAGE_NAME@
   36.86 +PACKAGE_STRING = @PACKAGE_STRING@
   36.87 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
   36.88 +PACKAGE_VERSION = @PACKAGE_VERSION@
   36.89 +PATH_SEPARATOR = @PATH_SEPARATOR@
   36.90 +SET_MAKE = @SET_MAKE@
   36.91 +SHELL = @SHELL@
   36.92 +STRIP = @STRIP@
   36.93 +TENV = @TENV@
   36.94 +VERSION = @VERSION@
   36.95 +YACC = @YACC@
   36.96 +ac_ct_CC = @ac_ct_CC@
   36.97 +ac_ct_STRIP = @ac_ct_STRIP@
   36.98 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
   36.99 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  36.100 +am__include = @am__include@
  36.101 +am__leading_dot = @am__leading_dot@
  36.102 +am__quote = @am__quote@
  36.103 +am__tar = @am__tar@
  36.104 +am__untar = @am__untar@
  36.105 +bindir = @bindir@
  36.106 +build_alias = @build_alias@
  36.107 +datadir = @datadir@
  36.108 +exec_prefix = @exec_prefix@
  36.109 +host_alias = @host_alias@
  36.110 +includedir = @includedir@
  36.111 +infodir = @infodir@
  36.112 +install_sh = @install_sh@
  36.113 +libdir = @libdir@
  36.114 +libexecdir = @libexecdir@
  36.115 +localstatedir = @localstatedir@
  36.116 +mandir = @mandir@
  36.117 +mkdir_p = @mkdir_p@
  36.118 +oldincludedir = @oldincludedir@
  36.119 +prefix = @prefix@
  36.120 +program_transform_name = @program_transform_name@
  36.121 +sbindir = @sbindir@
  36.122 +sharedstatedir = @sharedstatedir@
  36.123 +sysconfdir = @sysconfdir@
  36.124 +target_alias = @target_alias@
  36.125 +EXTRA_DIST = skel configs
  36.126 +BR_TAR = buildroot-20050823.tar.bz2
  36.127 +BR_URL = http://buildroot.uclibc.org/downloads/snapshots/$(BR_TAR)
  36.128 +#BR_URL = http://buildroot.uclibc.org/downloads/snapshots/buildroot-snapshot.tar.bz2
  36.129 +BR_SRC = buildroot
  36.130 +BR_IMG = $(BR_SRC)/rootfs.i386.ext2
  36.131 +BR_ROOT = build_i386/root
  36.132 +all: all-am
  36.133 +
  36.134 +.SUFFIXES:
  36.135 +$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
  36.136 +	@for dep in $?; do \
  36.137 +	  case '$(am__configure_deps)' in \
  36.138 +	    *$$dep*) \
  36.139 +	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  36.140 +		&& exit 0; \
  36.141 +	      exit 1;; \
  36.142 +	  esac; \
  36.143 +	done; \
  36.144 +	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  ramdisk/Makefile'; \
  36.145 +	cd $(top_srcdir) && \
  36.146 +	  $(AUTOMAKE) --foreign  ramdisk/Makefile
  36.147 +.PRECIOUS: Makefile
  36.148 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  36.149 +	@case '$?' in \
  36.150 +	  *config.status*) \
  36.151 +	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  36.152 +	  *) \
  36.153 +	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  36.154 +	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  36.155 +	esac;
  36.156 +
  36.157 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  36.158 +	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  36.159 +
  36.160 +$(top_srcdir)/configure:  $(am__configure_deps)
  36.161 +	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  36.162 +$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
  36.163 +	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  36.164 +uninstall-info-am:
  36.165 +tags: TAGS
  36.166 +TAGS:
  36.167 +
  36.168 +ctags: CTAGS
  36.169 +CTAGS:
  36.170 +
  36.171 +
  36.172 +distdir: $(DISTFILES)
  36.173 +	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  36.174 +	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  36.175 +	list='$(DISTFILES)'; for file in $$list; do \
  36.176 +	  case $$file in \
  36.177 +	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  36.178 +	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  36.179 +	  esac; \
  36.180 +	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  36.181 +	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  36.182 +	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  36.183 +	    dir="/$$dir"; \
  36.184 +	    $(mkdir_p) "$(distdir)$$dir"; \
  36.185 +	  else \
  36.186 +	    dir=''; \
  36.187 +	  fi; \
  36.188 +	  if test -d $$d/$$file; then \
  36.189 +	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  36.190 +	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  36.191 +	    fi; \
  36.192 +	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  36.193 +	  else \
  36.194 +	    test -f $(distdir)/$$file \
  36.195 +	    || cp -p $$d/$$file $(distdir)/$$file \
  36.196 +	    || exit 1; \
  36.197 +	  fi; \
  36.198 +	done
  36.199 +check-am: all-am
  36.200 +check: check-am
  36.201 +all-am: Makefile
  36.202 +installdirs:
  36.203 +install: install-am
  36.204 +install-exec: install-exec-am
  36.205 +install-data: install-data-am
  36.206 +uninstall: uninstall-am
  36.207 +
  36.208 +install-am: all-am
  36.209 +	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  36.210 +
  36.211 +installcheck: installcheck-am
  36.212 +install-strip:
  36.213 +	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  36.214 +	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  36.215 +	  `test -z '$(STRIP)' || \
  36.216 +	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  36.217 +mostlyclean-generic:
  36.218 +
  36.219 +clean-generic:
  36.220 +
  36.221 +distclean-generic:
  36.222 +	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  36.223 +
  36.224 +maintainer-clean-generic:
  36.225 +	@echo "This command is intended for maintainers to use"
  36.226 +	@echo "it deletes files that may require special tools to rebuild."
  36.227 +clean: clean-am
  36.228 +
  36.229 +clean-am: clean-generic clean-local mostlyclean-am
  36.230 +
  36.231 +distclean: distclean-am
  36.232 +	-rm -f Makefile
  36.233 +distclean-am: clean-am distclean-generic
  36.234 +
  36.235 +dvi: dvi-am
  36.236 +
  36.237 +dvi-am:
  36.238 +
  36.239 +html: html-am
  36.240 +
  36.241 +info: info-am
  36.242 +
  36.243 +info-am:
  36.244 +
  36.245 +install-data-am:
  36.246 +
  36.247 +install-exec-am:
  36.248 +
  36.249 +install-info: install-info-am
  36.250 +
  36.251 +install-man:
  36.252 +
  36.253 +installcheck-am:
  36.254 +
  36.255 +maintainer-clean: maintainer-clean-am
  36.256 +	-rm -f Makefile
  36.257 +maintainer-clean-am: distclean-am maintainer-clean-generic
  36.258 +
  36.259 +mostlyclean: mostlyclean-am
  36.260 +
  36.261 +mostlyclean-am: mostlyclean-generic
  36.262 +
  36.263 +pdf: pdf-am
  36.264 +
  36.265 +pdf-am:
  36.266 +
  36.267 +ps: ps-am
  36.268 +
  36.269 +ps-am:
  36.270 +
  36.271 +uninstall-am: uninstall-info-am
  36.272 +
  36.273 +.PHONY: all all-am check check-am clean clean-generic clean-local \
  36.274 +	distclean distclean-generic distdir dvi dvi-am html html-am \
  36.275 +	info info-am install install-am install-data install-data-am \
  36.276 +	install-exec install-exec-am install-info install-info-am \
  36.277 +	install-man install-strip installcheck installcheck-am \
  36.278 +	installdirs maintainer-clean maintainer-clean-generic \
  36.279 +	mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
  36.280 +	uninstall-am uninstall-info-am
  36.281 +
  36.282 +
  36.283 +all: initrd.img
  36.284 +
  36.285 +$(BR_TAR):
  36.286 +	wget $(BR_URL)
  36.287 +
  36.288 +$(BR_SRC): $(BR_TAR)
  36.289 +	tar xjf $(BR_TAR)
  36.290 +
  36.291 +$(BR_IMG): $(BR_SRC)
  36.292 +	cp configs/buildroot $(BR_SRC)/.config
  36.293 +	cp configs/busybox $(BR_SRC)/package/busybox/busybox.config
  36.294 +	cp configs/uClibc $(BR_SRC)/toolchain/uClibc/uClibc.config
  36.295 +	cd $(BR_SRC) && make oldconfig && make
  36.296 +
  36.297 +initrd.img: $(BR_IMG)
  36.298 +	(cd skel; tar cf - .) | (cd $(BR_SRC)/$(BR_ROOT); tar xvf -)
  36.299 +	cd $(BR_SRC) && make
  36.300 +	cp $(BR_IMG) initrd.img
  36.301 +
  36.302 +clean-local: am_config_clean-local
  36.303 +
  36.304 +am_config_clean-local:
  36.305 +	rm -Rf buildroot
  36.306 +	rm -f *~
  36.307 +	rm -f initrd.img
  36.308 +	rm -f $(BR_TAR)
  36.309 +	rm -Rf patches make.d
  36.310 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  36.311 +# Otherwise a system limit (for SysV at least) may be exceeded.
  36.312 +.NOEXPORT:
    37.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    37.2 +++ b/tools/xm-test/ramdisk/configs/buildroot	Mon Nov 07 12:53:38 2005 +0100
    37.3 @@ -0,0 +1,258 @@
    37.4 +#
    37.5 +# Automatically generated make config: don't edit
    37.6 +#
    37.7 +BR2_HAVE_DOT_CONFIG=y
    37.8 +# BR2_arm is not set
    37.9 +# BR2_armeb is not set
   37.10 +# BR2_cris is not set
   37.11 +BR2_i386=y
   37.12 +# BR2_m68k is not set
   37.13 +# BR2_mips is not se