diff -c -N -r vtun-2.6/README.Crypto vtun-3.0-RvR/README.Crypto
*** vtun-2.6/README.Crypto	Thu Jan  1 01:00:00 1970
--- vtun-3.0-RvR/README.Crypto	Fri Oct 10 13:50:04 2003
***************
*** 0 ****
--- 1,227 ----
+ -----BEGIN PGP SIGNED MESSAGE-----
+ Hash: SHA1
+ 
+ CRYPTOGRAPHIC AUDIT RESULTS FOR VTUN-2.6
+ 
+     OpenFortress has been looking into the option of extending VTun with
+     code for hardware tokens to conceal the symmetric secrets and provide
+     an industry-strength VPN where the only cost would be for the tokens.
+     In the course of this investigation we discovered several flaws in the
+     security of VTun up to version 2.6.  We repaired them and donated the
+     results back to the VTun project as a proposed 3.0 version.
+ 
+     Rick van Rein <rick@openfortress.nl>
+ 
+ 
+ >> Quick overview
+ 
+ To parties who do not rely on encryption or authentication, there is no direct
+ reason to stop using version 2.6 of VTun.
+ 
+ The versions of VTun starting with 3.0 are NOT BACKWARDS COMPATIBLE with
+ versions up to 2.6; the cryptgraphic improvements involved revising the
+ challenge/response authentication mechanism, and providing a backward
+ compatible option would have meant re-introducing the old security problems.
+ As a result, you must update communicating VTun systems all at the same time.
+ The configuration files are backward compatible, so the upgrade only involves
+ the software version.
+ 
+ The reported security problems included the ability to inject any desired
+ packet into the encrypted streams.  One hole allows this to users who send
+ data trough the tunnel, another allows this to intermediate parties who
+ manage to direct client traffic to their computer.  In addition to this
+ abililty to send any encrypted data, we were not convinced of the inability
+ to decrypt traffic.  Finally, authentication was not implemented properly.
+ 
+ 
+ >> Symmetric encryption... and authentication
+ 
+ There is no real problem in using symmetric encryption between two parties,
+ the only disadvantage is that the encryption schema as a whole is only as
+ strong as the weakest secret-keeping.  If multiple tunnels are used
+ simultaneously, the breaking of one could help to break the others as
+ well.  This was why we looked into the use of relatively low-cost tokens (the
+ ePass1000, see vpn.epass.nl for info).  Concealing the secrets within a
+ cryptographic token at both sides of a tunnel, and never leaving those secrets
+ out, would make a good way of protecting the connection -- since both the
+ physical token and its PIN are needed to play the role of an endpoint of the
+ tunnel.
+ 
+ On the other hand, using symmetric encryption for authentication is generally
+ considered bad practice, certainly if this uses the same password for normal
+ encryption and authentication-by-encryption.  The 2.6 version of VTun was in
+ conflict with this secure coding guideline. The use of secure hash functions
+ can easily improve security, since it disables reverse calculations that might
+ abuse or derive secrets.
+ 
+ In more detail, authentication on VTun up to 2.6 was done with a challenge (a
+ randomly chosen bitstring from the server) that had to be encrypted with the
+ password and sent back to the server for authentication.  This is where it goes
+ wrong: any party who manages to impersonate the server using non-cryptographic
+ attacks could challenge the client over and over again with challenges that are
+ actually packages that the attacker wanted to see encrypted.  In this setup,
+ the client plays the role of a signing party.  In other words, there was no
+ need to obtain the password to fool VTun into believing it was possessed.
+ 
+ Starting with version 3.0, VTun employs HMAC-MD5 to make authenticating
+ calculations.  This is done using the password, but the password is scrambled
+ heavily before being used as an encryption key.  HMAC-MD5 incorporates both
+ the password and a challenge received from the other side.  The response sent
+ back after a challenge is actually the SHA1 of the HMAC-MD5 calculation,
+ because the HMAC-MD5 outcome is used to obtain the encryption key.  Note that
+ this key material cannot be derived from the SHA1 result.
+ 
+ The results which came out of HMAC-MD5 but which never travelled over the wire
+ (because it was their SHA1 secure hash that travelled) are concatenated (server
+ first) and hashed through SHA1 (in a different manner than for the wired data)
+ to construct the session key.  This session key is influenced by both parties
+ in the communication, and none is able to set the session key to anything of
+ their own desire (which could have opened a hole to attackers).
+ 
+ Up to version 2.6, VTun only did authentication in one direction only.  The
+ server was implicitly trusted (in a world full of spoofing options, notably in
+ DNS, ARP and DHCP) and only the client's authenticity was verified (which is
+ needed indeed, unless you assume that the ability to send encrypted message
+ suffices as a proof of authenticity).  Starting version 3.0, VTun authenticates
+ in both directions.  The implementation of bi-directional authentication would
+ not have added much under the old authentication mechanism, since that was a
+ symmetric mechanism.  With the new authentication mechanism in place, there is
+ a meaningful added value in bi-directional authentication.
+ 
+ 
+ >> Encryption mode
+ 
+ The encryption algorithm used in VTun is Blowfish, a popular block cipher
+ that works in blocks of 8 bytes at once.  It can provide acceptable encryption,
+ if used well.  Vtun up to version 2.6 did not use it well.
+ 
+ When block ciphers are employed, it is important to incorporate the environment
+ of the block being encoded into the encoding process.  If this is not done,
+ each block can be individually copied and pasted to another block-aligned
+ location.  And because users behind a tunnel can easily send any desired data
+ over the tunnel, the construction of encrypted versions of data-to-be-sent is
+ not hard.  And as specified above, it is not even impossible for an external
+ attacker to trick a VTun daemon up to version 2.6 into encrypting anything
+ desired.  Influence by context would have gravely complicated such scenario's.
+ Blowfish was used in the so-called ECB mode, instead of in a much more secure
+ mode, like CBC.
+ 
+ Starting with 3.0, Blowfish is used in CBC mode, where the encryption output
+ of a previous block is taken into account in the next block.  A problem is
+ the start of such a block sequence; with TCP connections that would work,
+ but if VTun works over UDP (with out-of-order delivery possible) there is a
+ need to reset the encryption schedule for every packet sent.  To solve this,
+ the padding before the block is filled with pseudo-random data, at least
+ one block in size.  This is especially useful because network packets tend to
+ start with highly predictable headers.  Since there prefiexed block causes good
+ variation in the beginning of each network packet before encryption starts, it
+ is not possible to recognise patterns in this traffic anymore.
+ 
+ In the near future, we hope to employ AES as the encryption mechanism, probably
+ in counter mode.  It uses longer blocks, making it more secure than Blowfish
+ can be.  The reason for still supporting Blowfish (and only Blowfish) in the
+ current version is that this is currently unsupported in the underlying
+ crypto-library used by VTun.  Writing such mechanisms would have been possible,
+ but it would have placed serious restrictions on the ability to distribute VTun
+ accross certain country borders.
+ 
+ 
+ >> Vulnerability of passwords
+ 
+ Although somewhat secure, it is not ideal that VTun had to mention all its
+ tunnel-encrypting passwords in files.  It is even less pleasant that passwords
+ for all tunnels are combined in one file, at least for a server on a particular
+ port.  Firstly, because an administrator with access to one password would also
+ have access other passwords.  In addition to this, the direct use of passwords
+ made it possible that a code could be stolen and used to tap the network.
+ 
+ A practical defense against tapping a network flow is to change the session key
+ regularly.  Only when the flow was followed from the beginning, and only when
+ the initial password was known, could such a stream be decrypted.  Starting
+ with VTun 3.0, there is a session key in place.  And although this key is not
+ automatically renegotiated, it will be different every time the connection is
+ re-established.  Regularly restarting a VTun connection from either side would
+ suffice to arrange this.
+ 
+ An even better scheme to avoid misuse of the password is to conceal it in the
+ encasing of a cryptographic piece of hardware, commonly known as a token.  This
+ need not be the most complicated token around, a symmetric HMAC functionality
+ based on internally stored password will do.  An example of such a token is the
+ ePass1000 and starting with VTun 3.0 there is code in place to support this
+ token.  Furthermore, the website vpn.epass.nl has been set up in support of
+ this application.
+ 
+ This must be explicitly configured with the following option,
+ 	./configure --enable-epass
+ because the include files from the ePass1000 software must be present on the
+ system.  The driver software will be loaded dynamically by the software, so it
+ is possible to build such a binary with ePass support enabled, and distribute
+ it to people with or without such a token.
+ 
+ To load the drivers on systems equipped with them, the configuration file
+ must declare an option
+ 	cryptoken "epass1000";
+ If this is done, there must not be a password entry in the configuration file,
+ but instead there may be a keydir and there must be a keynum:
+ 	keydir "OpenFortress_tunnel_epass";
+ 	keynum 123456;
+ The keynum links to (a) key file(s) residing on the filesystem of the card, in
+ this case under a directory OpenFortress_tunnel_epass.  They are assumed to
+ provide the hardware with the details to perform a HMAC-MD5 calculation in such
+ a way that the involved secret remains on the token.
+ 
+ 
+ >> Impact on Efficiency
+ 
+ The impact on VTun efficiency by all the foregoing is negligable.  The
+ increased length of the network packets (8 bytes more than in 2.6) is the only
+ new overhead while a connection is up and running.  The rest only comes to play
+ during authentication, that is, during the initiation of a connection.  This is
+ a rare event, and since the client usually backs off for a matter of seconds
+ before attempting to reconnect, the impact is again negligable.  This is even
+ the case when a (relatively slow) communication with an ePass or other token is
+ required.
+ 
+ It is our hope to see the change to encryption with AES in counter mode
+ sometime soon.  If this happens, it will be possible to pre-calculate and
+ buffer encryption patterns, even before data is being received to be encrypted
+ or decrypted.  This would make it possible to realise a tunnel with a minimal
+ transmission delay.
+ 
+ 
+ >> Conclusion
+ 
+ It is as Bruce Schneier stated, cryptography is a black art; if not applied
+ properly it can backfire.  It is obvious that encryption and authentication
+ in VTun 2.6 are subject to such backfiring, in spite of the high quality of the
+ remainder of the software.
+ 
+ OpenFortress is pleased to have helped to improve this popular piece of
+ software, and hopes to have constructed a greatly improved, hopefully even
+ uncrackable, cryptographic application.
+ 
+ Please think of us when your company relies on the cryptographic qualities
+ of open source software -- we are here to help you investigate its problems,
+ and come up with solutions if so required.
+ 
+ 
+ Sincerely,
+ 
+ Rick van Rein,
+ Cryptographic Auditor,
+ OpenFortress Digital signatures
+ 
+ http://openfortress.nl/service/audit/
+ 
+ The key signing this audit is available for rick@openfortress.nl on
+ http://openfortress.nl/cgi-bin/pgplookup.cgi
+ 
+ 
+ -----BEGIN PGP SIGNATURE-----
+ Version: GnuPG v1.0.6 (FreeBSD)
+ Comment: To understand digital signatures visit http://openfortress.nl
+ 
+ iD8DBQE/hpziFBGpwol1RgYRArEKAKCSmj7hVIvDSZUQ3DkQCV1R+IqiKQCeISGc
+ 5DznUe/GZutMoLUfjbAitE0=
+ =w6S+
+ -----END PGP SIGNATURE-----
diff -c -N -r vtun-2.6/auth.c vtun-3.0-RvR/auth.c
*** vtun-2.6/auth.c	Mon Dec 16 22:40:44 2002
--- vtun-3.0-RvR/auth.c	Fri Oct 10 14:16:41 2003
***************
*** 58,129 ****
  #include "lock.h"
  #include "auth.h"
  
  /* Encryption and Decryption of the challenge key */
- #ifdef HAVE_SSL
  
  #ifndef __APPLE_CC__
  #include <openssl/md5.h>
  #include <openssl/blowfish.h>
  #include <openssl/rand.h>
  #else /* YAY - We're MAC OS */
  #include <sys/md5.h>
  #include <crypto/blowfish.h>
  #endif  /* __APPLE_CC__ */
  
  void gen_chal(char *buf)
  {
!    RAND_bytes(buf, VTUN_CHAL_SIZE);
  }
  
! void encrypt_chal(char *chal, char *pwd)
! { 
!    register int i;
!    BF_KEY key;
! 
!    BF_set_key(&key, 16, MD5(pwd,strlen(pwd),NULL));
  
!    for(i=0; i < VTUN_CHAL_SIZE; i += 8 )
!       BF_ecb_encrypt(chal + i,  chal + i, &key, BF_ENCRYPT);
  }
  
! void decrypt_chal(char *chal, char *pwd)
! { 
!    register int i;
!    BF_KEY key;
  
!    BF_set_key(&key, 16, MD5(pwd,strlen(pwd),NULL));
  
!    for(i=0; i < VTUN_CHAL_SIZE; i += 8 )
!       BF_ecb_encrypt(chal + i,  chal + i, &key, BF_DECRYPT);
  }
  
! #else /* HAVE_SSL */
  
! void encrypt_chal(char *chal, char *pwd)
! { 
!    char * xor_msk = pwd;
!    register int i, xor_len = strlen(xor_msk);
  
!    for(i=0; i < VTUN_CHAL_SIZE; i++)
!       chal[i] ^= xor_msk[i%xor_len];
  }
  
! void inline decrypt_chal(char *chal, char *pwd)
! { 
!    encrypt_chal(chal, pwd);
  }
  
! /* Generate PSEUDO random challenge key. */
! void gen_chal(char *buf)
! {
!    register int i;
!  
!    srand(time(NULL));
  
!    for(i=0; i < VTUN_CHAL_SIZE; i++)
!       buf[i] = (unsigned int)(255.0 * rand()/RAND_MAX);
  }
- #endif /* HAVE_SSL */
  
  /* 
   * Functions to convert binary flags to character string.
--- 58,336 ----
  #include "lock.h"
  #include "auth.h"
  
+ #ifdef USE_EPASS
+ #include <epass/epassapi.h>
+ static EPAS_HANDLE ePass;
+ #endif
+ 
+ 
  /* Encryption and Decryption of the challenge key */
  
  #ifndef __APPLE_CC__
  #include <openssl/md5.h>
+ #include <openssl/hmac.h>
  #include <openssl/blowfish.h>
  #include <openssl/rand.h>
  #else /* YAY - We're MAC OS */
  #include <sys/md5.h>
+ #include <crypto/hmac.h>
  #include <crypto/blowfish.h>
  #endif  /* __APPLE_CC__ */
  
  void gen_chal(char *buf)
  {
!    if ((!vtun.epasslib) || rndgen_cryptoken (buf, VTUN_CHAL_SIZE)) { 
!       RAND_bytes (buf, VTUN_CHAL_SIZE);
!    }
  }
  
! #ifdef USE_EPASS
  
! /* Routines to open and close the ePass1000 device.
!  * These are also called before vtun forks, to ask/send the PIN for
!  * access if needed.  If the PIN had not been entered before, this would
!  * cause problems with the detached tty.
!  * These routines return 0 for okay or -1 for error; in the latter
!  * case, errno has been set to indicate the type of error.
!  */
! 
! /* Translate a token-specific error message into a generic Unix message.
!  * This routine returns 0 for FT_SUCCESS, or sets errno and returns -1.
!  */
! static int errormap_cryptoken (int fterr) {
!    switch (fterr) {
!    case FT_SUCCESS:
! 	return 0;
!    case FT_PIN_EXPIRED:
! 	errno = EPERM;
! 	return -1;
!    case FT_ACCESS_DENIED:
! 	errno = EACCES;
! 	return -1;
!    case FT_CANNOT_OPEN_DRIVER:
!    case FT_INVALID_DRVR_VERSION:
!    case FT_DEVICE_REMOVED:
! 	errno = ENODEV;
!    	return -1;
!    case FT_UNIT_NOT_FOUND:
! 	errno = ENXIO;
! 	return -1;
!    case FT_COMMUNICATIONS_ERROR:
!    case FT_MEM_CORRUPT:
!    case FT_INTERNAL_HW_ERROR:
!    case FT_INVALID_STATUS:
! 	errno = EIO;
! 	return -1;
!    case FT_DIR_NOT_FOUND:
!    case FT_FILE_NOT_FOUND:
!    case FT_ITEM_NOT_FOUND:
! 	errno = ENOENT;
! 	return -1;
!    case FT_ALREADY_EXISTS:
! 	errno = EEXIST;
! 	return -1;
!    case FT_NOT_ENOUGH_MEMORY:
! 	errno = ENOMEM;
! 	return -1;
!    case FT_INVALID_FILE_SELECTED:
! 	errno = ENOEXEC;
! 	return -1;
!    case FT_TIME_OUT_ERROR:
! 	errno = ETIMEDOUT;
! 	return -1;
!    case FT_INPUT_TOO_LONG:
! 	errno = EMSGSIZE;
! 	return -1;
!    case FT_COMMAND_ABORTED:
! 	errno = EINTR;
! 	return -1;
!    case FT_INVALID_COMMAND:
!    case FT_INVALID_RESP_SIZE:
!    case FT_INVALID_PARAMETER:
!    default:
! 	errno = EINVAL;
! 	return -1;
!    }
!    return 0;
  }
  
! /* Open the connection to the ePass.
!  * There may only be one application using it at a time, so it is important
!  * to open/use/close quickly.
!  */
! int open_cryptoken (void) {
!    int myerr = 0;
!    int state = 0;
!    int tries = 3;
!    char chal [VTUN_CHAL_SIZE];
!    char resp [VTUN_RESP_SIZE];
! 
!    if (!vtun.epasslib) {
! 	   errno = ENODEV;
! 	   return -1;
!    }
! 
!    /* Create handler structure for the ePass1000 driver */
!    if (!myerr)
!    if (errormap_cryptoken (epas_CreateContext (&ePass, 0, EPAS_API_VERSION))) {
! 	   myerr++;
!    } else {
! 	   state++;
!    }
! 
!    /* Connect with the ePass1000 device... if it is present in a slot! */
!    if (!myerr)
!    if (errormap_cryptoken (epas_OpenDevice (ePass, EPAS_OPEN_FIRST, NULL))) {
! 	   myerr++;
!    } else {
! 	   state++;
!    }
! 
!    epas_SetProperty (ePass, EPAS_PROP_LED_OFF, NULL, NULL, 0);
! 
!    /* Cleanup in case of error */
!    if (myerr) {
! 	   epas_SetProperty (ePass, EPAS_PROP_LED_ON, NULL, NULL, 0);
! 	   if (state >= 2) {
! 		   epas_CloseDevice (ePass);
! 	   }
! 	   if (state >= 1) {
! 		   epas_DeleteContext (ePass);
! 	   }
!    }
  
!    /* Return the proper error values */
!    if (myerr) {
! 	   return -1;
!    } else {
! 	   return 0;
!    }
! }
! 
! /* Close the ePass crypto-token.  Important to free to card for others.
!  */
! int close_cryptoken (void) {
!    epas_SetProperty (ePass, EPAS_PROP_LED_ON, NULL, NULL, 0);
!    epas_CloseDevice (ePass);
!    epas_DeleteContext (ePass);
!    return 0;
! }
  
! /* Generate random bytes on the ePass and return them in the given buffer.
!  */
! int rndgen_cryptoken (char *buf, int size) {
!    return errormap_cryptoken (epas_GenRandom (ePass, 0, buf, VTUN_CHAL_SIZE));
  }
  
! /* Perform a challenge/response exchange on the ePass.  The ePass must be open.
!  */
! int challenge_cryptoken (char *keydir, unsigned long keynum, char chal[VTUN_CHAL_SIZE], char resp[VTUN_RESP_SIZE]) {
!    int retval = 0;
!    unsigned long key1 = keynum >> 16;
!    unsigned long key2 = keynum & 0x0000ffffL;
! 
!    epas_SetProperty (ePass, EPAS_PROP_LED_ON, NULL, NULL, 0);  /* Flicker */
! 
!    /* Check if the expected application exists on this device */
!    if (keydir == NULL) {
! 	keydir = "OpenFortress_tunnel_epass";
!    }
!    retval = errormap_cryptoken (epas_ChangeDir (ePass, EPAS_DIR_BY_NAME, 0, keydir));
! 
!    /* Obtain the signature based on key numbers */
!    if (retval == 0)
!    retval = errormap_cryptoken (epas_MD5_HMAC (ePass, key1, key2, chal, VTUN_CHAL_SIZE, resp));
  
!    epas_SetProperty (ePass, EPAS_PROP_LED_OFF, NULL, NULL, 0); /* Flicker */
  
!    return retval;
  }
  
! /* Login to the ePass by sending it its PIN.  The ePass must be open.
!  * NOTE: Currently not used, login is assumed to be done externally.
!  */
! int login_cryptoken (char *pin) {
!    return errormap_cryptoken (epas_Verify (ePass, EPAS_VERIFY_USER_PIN, pin, strlen (pin)));
  }
  
! #else
  
! /* Placeholder functions to represent the lack of a cryptographic token.
!  * Would this ideally be arranged dynamically or statically?
!  */
! int open_cryptoken (void) {
! 	errno = -ENODEV;
! 	return -1;
! }
! int close_cryptoken (void) {
! 	errno = -ENODEV;
! 	return -1;
! }
! int rndgen_cryptoken (char *buf, int size) {
! 	errno = -ENODEV;
! 	return -1;
! }
! int challenge_cryptoken (char *keydir, unsigned long keynum, char chal[VTUN_CHAL_SIZE], char resp[VTUN_RESP_SIZE]) {
! 	errno = -ENODEV;
! 	return -1;
! }
! int login_cryptoken (char *pin) {
! 	errno = -ENODEV;
! 	return -1;
! }
! 
! #endif
! 
! /* Calculate a response to the challenge, using HMAC_MD5 which is also
!  * found in many hardware tokens.  The result goes to 16 bytes at resp
!  * if it is non-NULL.  The MD5 hash of the result goes into the 20 bytes
!  * at resp_h if that is non-NULL.
!  * Even if MD5 is not 100% reliable nowadays, then still the SHA1 provides
!  * excellent protection.  Also, 128 bit passwords are strong enough, even
!  * if MD5 would ever be cracked.
!  * The idea is to use "resp" to form a session key, and send resp_h over
!  * the wire as proof.  This way, the session key is protected with a strong
!  * SHA1 hash, which is quite good.
!  */
! void response_to_chal (char *chal, struct vtun_host *h, char *resp, char *resp_h) {
!    unsigned int mdlen = 16;
!    char response [16];
!    char *cl2cs(char *chal, int bytes);
!    static int nopasspause = 60;
! 
!    if (resp == NULL) {
!       resp = response;
!    }
! 
!    if (vtun.epasslib == NULL) {
!       HMAC (EVP_md5 (), h->passwd, strlen (h->passwd), chal, VTUN_CHAL_SIZE, resp, &mdlen);
!    } else {
!    
!       if (!open_cryptoken ()) {
!           memset (resp, 0, VTUN_RESP_SIZE);
!           if (!challenge_cryptoken (h->keydir, h->keynum, chal, resp)) {
!    	   nopasspause = 60;
!           } else {
!    	   syslog (LOG_ERR, "The ePass reported an error: %m");
!    	   // Most likely cause is that the cryptoken was taken out
!    	   // We have no TTY anymore, so await PIN entrance elsewhere...
!    	   sleep (nopasspause);
!    	   nopasspause <<= 1;
!    	   if (nopasspause > 900) {
!    		   nopasspause = 900;
!    	   }
!           }
!           close_cryptoken ();
!       } else {
!    	syslog (LOG_ERR, "Failed to open ePass: %m");
!       }
! 
!    }
! 
!    if (resp_h != NULL) {
!       SHA1 (resp, 16, resp_h);
!    }
  }
  
  /* 
   * Functions to convert binary flags to character string.
***************
*** 260,273 ****
   * string format:  <char_data> 
   */ 
  
! char *cl2cs(char *chal)
  {
!      static char str[VTUN_CHAL_SIZE*2+3], *chr="abcdefghijklmnop";
       register char *ptr = str;
       register int i;
  
       *(ptr++) = '<';
!      for(i=0; i<VTUN_CHAL_SIZE; i++){
  	*(ptr++) = chr[ ((chal[i] & 0xf0) >> 4) ];  
  	*(ptr++) = chr[ (chal[i] & 0x0f) ];
       }  
--- 467,480 ----
   * string format:  <char_data> 
   */ 
  
! char *cl2cs(char *chal, int bytes)
  {
!      static char str[VTUN_CHALRESP_MAXSIZE*2+3], *chr="abcdefghijklmnop";
       register char *ptr = str;
       register int i;
  
       *(ptr++) = '<';
!      for(i=0; i<bytes; i++){
  	*(ptr++) = chr[ ((chal[i] & 0xf0) >> 4) ];  
  	*(ptr++) = chr[ (chal[i] & 0x0f) ];
       }  
***************
*** 278,284 ****
       return str;
  }
  
! int cs2cl(char *str, char *chal)
  {
       register char *ptr = str;
       register int i;
--- 485,491 ----
       return str;
  }
  
! int cs2cl(char *str, char *chal, int bytes)
  {
       register char *ptr = str;
       register int i;
***************
*** 286,295 ****
       if( !(ptr = strchr(str,'<')) ) 
          return 0;
       ptr++;
!      if( !strtok(ptr,">") || strlen(ptr) != VTUN_CHAL_SIZE*2 )
          return 0;
  
!      for(i=0; i<VTUN_CHAL_SIZE && *ptr; i++, ptr+=2) {
  	chal[i]  = (*ptr - 'a') << 4;  
  	chal[i] |= *(ptr+1) - 'a';
       }
--- 493,502 ----
       if( !(ptr = strchr(str,'<')) ) 
          return 0;
       ptr++;
!      if( !strtok(ptr,">") || strlen(ptr) != bytes*2 )
          return 0;
  
!      for(i=0; i<bytes && *ptr; i++, ptr+=2) {
  	chal[i]  = (*ptr - 'a') << 4;  
  	chal[i] |= *(ptr+1) - 'a';
       }
***************
*** 297,313 ****
       return 1;
  }   
  
  /* Authentication (Server side) */
  struct vtun_host * auth_server(int fd)
  {
!         char chal_req[VTUN_CHAL_SIZE], chal_res[VTUN_CHAL_SIZE];	
  	char buf[VTUN_MESG_SIZE], *str1, *str2;
          struct vtun_host *h = NULL;
  	char *host = NULL;
  	int  stage;
  
          set_title("authentication");
  
  	print_p(fd,"VTUN server ver %s\n",VTUN_VER);
  
  	stage = ST_HOST;
--- 504,558 ----
       return 1;
  }   
  
+ /* Security improvements by Rick van Rein <rick@openfortress.nl>
+  *
+  * Past versions of vtun only challenged the client, but did not establish
+  * that the server was the Proper Party to talk to.  Servers are often
+  * looked up in DNS, which is all too easy to spoof or poison.  Therefore
+  * it is just as important to authenticate the server as it is to authenticate
+  * the client.  (That is, if you assume that the encryption is insufficient
+  * to authenticate the client, then it is also insufficient to authenticate
+  * the server.)
+  *
+  * The server now sends a CHALCLI message instead of CHAL, which will be
+  * properly rejected by older clients.  The client then sends a CHALSRV and
+  * receives the response in a RESPSRV message; only then will it send out
+  * its own RESPSRV message.
+  *
+  * The challenge/response used to be done with BlowFish, which is not quite
+  * suitable for that; one-way functions are much better at it, and certainly
+  * HMAC algorithms.  We choose HMAC_MD5 to allow simple integration with
+  * cheap symmetric crypto-tokens which can be used to securely encapsulate
+  * the secret password.
+  *
+  * The response is not the HMAC_MD5 itself, but a secure hash of this value,
+  * so that the HMAC_MD5, which varies as wildly as the challenge, can be
+  * used for another purpose.  The HMAC_MD5 outcomes for both sides are
+  * concatenated to form a session key.  Killing a tunnel (at night) therefore
+  * suffices to construct a brand new session key.  By using SHA1 to hash the
+  * HMAC_MD5 algorithm, any dependencies of MD5 security alone were avoided.
+  * Even if MD5 is ever broken, it stands to question if HMAC_MD5 will be
+  * broken, and even if that happens then it is still suitable for the current
+  * applications because the outcome of the HMAC_MD5 are only available locally
+  * in the tunnel endpoints.
+  */
+ 
  /* Authentication (Server side) */
  struct vtun_host * auth_server(int fd)
  {
!         char chalcli[VTUN_CHAL_SIZE], chalsrv[VTUN_CHAL_SIZE];
! 	char chal_res[VTUN_RESP_SIZE];
! 	char chal_resh[VTUN_RESP_HASH_SIZE], chal_ansh[VTUN_RESP_HASH_SIZE];
  	char buf[VTUN_MESG_SIZE], *str1, *str2;
          struct vtun_host *h = NULL;
  	char *host = NULL;
  	int  stage;
+ 	SHA_CTX sesctx;
  
          set_title("authentication");
  
+ 	SHA1_Init (&sesctx);
+ 
  	print_p(fd,"VTUN server ver %s\n",VTUN_VER);
  
  	stage = ST_HOST;
***************
*** 326,349 ****
  	        if( !strcmp(str1,"HOST") ){
  		   host = strdup(str2);
  
! 		   gen_chal(chal_req);
! 		   print_p(fd,"OK CHAL: %s\n", cl2cs(chal_req));
  
! 		   stage = ST_CHAL;
  		   continue;
  	        }
  		break;
! 	     case ST_CHAL:
! 	        if( !strcmp(str1,"CHAL") ){
! 		   if( !cs2cl(str2,chal_res) )
! 		      break; 
  		   
  		   if( !(h = find_host(host)) )
  		      break;
  
! 		   decrypt_chal(chal_res, h->passwd);   		
! 	
! 		   if( !memcmp(chal_req, chal_res, VTUN_CHAL_SIZE) ){
  		      /* Auth successeful. */
  
  		      /* Lock host */	
--- 571,610 ----
  	        if( !strcmp(str1,"HOST") ){
  		   host = strdup(str2);
  
! 		   gen_chal(chalcli);
! 		   print_p(fd,"OK CHALCLI: %s\n", cl2cs(chalcli,VTUN_CHAL_SIZE));
  
! 		   stage = ST_CHAL_SRV; // First handle the server challenge
  		   continue;
  	        }
  		break;
! 
! 	     case ST_CHAL_SRV:
! 		if (!strcmp (str1, "CHALSRV")) {
! 		   if (!cs2cl (str2, chalsrv, VTUN_CHAL_SIZE))
! 		      break;
  		   
  		   if( !(h = find_host(host)) )
  		      break;
  
! 		   response_to_chal (chalsrv, h, chal_res, chal_resh);
! 
! 		   print_p (fd, "OK RESPSRV: %s %s\n", cl2cs (chal_resh, VTUN_RESP_HASH_SIZE));
! 		   stage = ST_CHAL_CLI;
! 		   continue;
! 		}
! 		break;
! 
! 	     case ST_CHAL_CLI:
! 	        if( !strcmp(str1,"RESPCLI") ){
! 		   if( !cs2cl(str2,chal_ansh,VTUN_RESP_HASH_SIZE) )
! 		      break; 
! 		   
! 		   SHA1_Update (&sesctx, chal_res, VTUN_RESP_SIZE);  // srv.rnd
! 		   response_to_chal (chalcli, h, chal_res, chal_resh);
! 		   SHA1_Update (&sesctx, chal_res, VTUN_RESP_SIZE);  // cli.rnd
! 
! 		   if( !memcmp(chal_resh, chal_ansh, VTUN_RESP_HASH_SIZE) ){
  		      /* Auth successeful. */
  
  		      /* Lock host */	
***************
*** 353,358 ****
--- 614,621 ----
  		         break;
  		      }	
  		      print_p(fd,"OK FLAGS: %s\n", bf2cf(h)); 
+ 		      SHA1_Final (h->seskey, &sesctx);
+ 		      SHA1_Init (&sesctx);  // wipe data
   		   } else
  		      h = NULL;
  	        }
***************
*** 373,408 ****
  /* Authentication (Client side) */
  int auth_client(int fd, struct vtun_host *host)
  {
! 	char buf[VTUN_MESG_SIZE], chal[VTUN_CHAL_SIZE];
  	int stage, success=0 ;
  	
  	stage = ST_INIT;
  
  	while( readn_t(fd, buf, VTUN_MESG_SIZE, vtun.timeout) > 0 ){
  	   buf[sizeof(buf)-1]='\0';
  	   switch( stage ){
  		case ST_INIT:
  	    	   if( !strncmp(buf,"VTUN",4) ){
- 		      stage = ST_HOST;
  		      print_p(fd,"HOST: %s\n",host->host);
  		      continue;
  	           }
  		   break;	
  
  	        case ST_HOST:
! 		   if( !strncmp(buf,"OK",2) && cs2cl(buf,chal)){
! 		      stage = ST_CHAL;
! 					
! 		      encrypt_chal(chal,host->passwd);
! 		      print_p(fd,"CHAL: %s\n", cl2cs(chal));
  
  		      continue;
  	   	   }
  		   break;	
  	
! 	        case ST_CHAL:
! 		   if( !strncmp(buf,"OK",2) && cf2bf(buf,host) )
  		      success = 1;
  		   break;
  	   }
  	   break;
--- 636,694 ----
  /* Authentication (Client side) */
  int auth_client(int fd, struct vtun_host *host)
  {
! 	char buf[VTUN_MESG_SIZE], chalcli[VTUN_CHAL_SIZE], chalsrv[VTUN_CHAL_SIZE];
! 	char res[VTUN_RESP_SIZE], resh[VTUN_RESP_HASH_SIZE], reshsrv [VTUN_RESP_HASH_SIZE];
  	int stage, success=0 ;
+ 	SHA_CTX sesctx;
  	
  	stage = ST_INIT;
+ 	SHA1_Init (&sesctx);
  
  	while( readn_t(fd, buf, VTUN_MESG_SIZE, vtun.timeout) > 0 ){
  	   buf[sizeof(buf)-1]='\0';
  	   switch( stage ){
  		case ST_INIT:
  	    	   if( !strncmp(buf,"VTUN",4) ){
  		      print_p(fd,"HOST: %s\n",host->host);
+ 		      stage = ST_HOST;
  		      continue;
  	           }
  		   break;	
  
  	        case ST_HOST:
! 		   if( !strncmp(buf,"OK CHALCLI",10) && cs2cl(buf,chalcli,VTUN_CHAL_SIZE)){
! 		      gen_chal(chalsrv);
! 		      print_p (fd, "CHALSRV: %s\n", cl2cs (chalsrv, VTUN_CHAL_SIZE));
! 		      stage = ST_CHAL_SRV;
! 		      continue;
! 		   }
! 		   break;
! 
! 		case ST_CHAL_SRV:
! 		   if (!strncmp(buf,"OK RESPSRV",10) && cs2cl(buf,reshsrv,VTUN_RESP_HASH_SIZE)) {
! 		      response_to_chal (chalsrv, host, res, resh);
! 		      if (memcmp (resh, reshsrv, VTUN_RESP_HASH_SIZE)) {
! 			 /* Server authentication failed */
! 			 break;
! 		      }
! 
! 		      SHA1_Update (&sesctx, res, VTUN_RESP_SIZE); // srv.rnd
! 		      response_to_chal (chalcli, host, res, resh);
! 		      SHA1_Update (&sesctx, res, VTUN_RESP_SIZE); // cli.rnd
! 		      print_p (fd, "RESPCLI: %s\n", cl2cs (resh, VTUN_RESP_HASH_SIZE));
! 
! 		      SHA1_Final (host->seskey, &sesctx);
! 		      SHA1_Init (&sesctx);  // wipe data
  
+ 		      stage = ST_CHAL_CLI;
  		      continue;
  	   	   }
  		   break;	
  	
! 	        case ST_CHAL_CLI:
! 		   if( !strncmp(buf,"OK",2) && cf2bf(buf,host) ) {
  		      success = 1;
+ 		   }
  		   break;
  	   }
  	   break;
diff -c -N -r vtun-2.6/auth.h vtun-3.0-RvR/auth.h
*** vtun-2.6/auth.h	Tue Mar 28 19:19:39 2000
--- vtun-3.0-RvR/auth.h	Fri Oct 10 13:41:05 2003
***************
*** 20,30 ****
   * auth.h,v 1.1.1.2 2000/03/28 17:19:39 maxk Exp
   */ 
  
! #define VTUN_CHAL_SIZE	 16	
  
! #define ST_INIT  0
! #define ST_HOST  1
! #define ST_CHAL  2
  
  struct vtun_host * auth_server(int fd);
  int auth_client(int fd, struct vtun_host *host);
--- 20,40 ----
   * auth.h,v 1.1.1.2 2000/03/28 17:19:39 maxk Exp
   */ 
  
! #define VTUN_CHAL_SIZE	       16
! #define VTUN_RESP_SIZE         16
! #define VTUN_RESP_HASH_SIZE    20
! #define VTUN_CHALRESP_MAXSIZE  20
  
! #define ST_INIT      0
! #define ST_HOST      1
! #define ST_CHAL_SRV  2
! #define ST_CHAL_CLI  3
  
  struct vtun_host * auth_server(int fd);
  int auth_client(int fd, struct vtun_host *host);
+ 
+ int open_cryptoken (void);
+ int close_cryptoken (void);
+ int rndgen_cryptoken (char *buf, int size);
+ int challenge_cryptoken (char *keydir, unsigned long keynum, char chal [VTUN_CHAL_SIZE], char resp [VTUN_RESP_SIZE]);
+ int login_cryptoken (char *pin);
diff -c -N -r vtun-2.6/cfg_file.y vtun-3.0-RvR/cfg_file.y
*** vtun-2.6/cfg_file.y	Thu Jun  6 04:53:14 2002
--- vtun-3.0-RvR/cfg_file.y	Fri Oct 10 13:41:06 2003
***************
*** 29,34 ****
--- 29,35 ----
  #include <stdarg.h>
  
  #include <syslog.h>
+ #include <dlfcn.h>
  
  #include "compat.h"
  #include "vtun.h"
***************
*** 76,81 ****
--- 77,83 ----
  %token K_MULTI K_SRCADDR K_IFACE K_ADDR
  %token K_TYPE K_PROT K_COMPRESS K_ENCRYPT K_KALIVE K_STAT
  %token K_UP K_DOWN K_SYSLOG K_IPROUTE
+ %token K_CRYPTOKEN K_KEYNUM K_KEYDIR
  
  %token <str> K_HOST K_ERROR
  %token <str> WORD PATH STRING
***************
*** 107,112 ****
--- 109,116 ----
  	  	  memcpy(parse_host, &default_host, sizeof(struct vtun_host));
  		  parse_host->host = strdup($1);
  		  parse_host->passwd = NULL;
+ 		  parse_host->keydir = NULL;
+ 		  parse_host->keynum = ~0L;
  
  		  /* Copy local address */
  		  copy_addr(parse_host, &default_host);
***************
*** 118,125 ****
      '{' host_options '}'
  		{
  		  /* Check if session definition is complete */ 
! 		  if (!parse_host->passwd) {
! 		  	cfg_error("Ignored incomplete session definition '%s'", parse_host->host);
  			free_host(parse_host, NULL);			
  			free(parse_host);
  		  } else {
--- 122,133 ----
      '{' host_options '}'
  		{
  		  /* Check if session definition is complete */ 
! 		  if ((!vtun.epasslib) && (!parse_host->passwd)) {
! 		  	cfg_error("Ignored password-less session definition '%s'", parse_host->host);
! 			free_host(parse_host, NULL);			
! 			free(parse_host);
! 		  } else if (vtun.epasslib && (parse_host->keynum == ~0L)) {
! 		  	cfg_error("Ignored key-less session definition '%s'", parse_host->host);
  			free_host(parse_host, NULL);			
  			free(parse_host);
  		  } else {
***************
*** 183,188 ****
--- 191,206 ----
  
    | K_SYSLOG  syslog_opt
  
+   | K_CRYPTOKEN STRING	{
+ 			  // Ignore argument for now (may become token type)
+ 			  vtun.epasslib = dlopen ("/usr/lib/libepassapi.so", RTLD_NOW);
+ 			  if (!vtun.epasslib) {
+ 			    cfg_error ("Unavailable ePass1000 driver: %s", dlerror ());
+ 			    YYABORT;
+ 			  }
+ 			}
+ 
+ 
    | K_ERROR		{
  			  cfg_error("Unknown option '%s'",$1);
  			  YYABORT;
***************
*** 216,225 ****
--- 234,264 ----
   * could be strduped from default_host */
  host_option: '\n'
    | K_PASSWD WORD 	{
+ 			  if (vtun.epasslib) {
+ 			    cfg_error ("Unexpected password, there is a cryptoken driver");
+ 			    YYABORT;
+ 			  }
  			  free(parse_host->passwd);
  			  parse_host->passwd = strdup($2);
  			}
  
+   | K_KEYNUM NUM	{
+ 			  if (!vtun.epasslib) {
+ 			    cfg_error ("Cannot accept keynum without cryptoken driver");
+ 			    YYABORT;
+ 			  }
+ 			  parse_host->keynum = $2;
+ 			}
+ 
+   | K_KEYDIR STRING	{
+ 			  if (!vtun.epasslib) {
+ 			    cfg_error ("Cannot accept keydir without cryptoken driver");
+ 			    YYABORT;
+ 			  }
+ 			  free (parse_host->keydir);
+ 			  parse_host->keydir = strdup ($2);
+ 			}
+ 
    | K_DEVICE WORD 	{
  			  free(parse_host->dev);
  			  parse_host->dev = strdup($2);
***************
*** 256,261 ****
--- 295,302 ----
  			compress
  
    | K_ENCRYPT NUM 	{  
+ 			  /* Future versions: allow AES / Blowfish distinction
+ 			   */
  			  if( $2 )
  			     parse_host->flags |= VTUN_ENCRYPT;
  			  else
diff -c -N -r vtun-2.6/cfg_kwords.h vtun-3.0-RvR/cfg_kwords.h
*** vtun-2.6/cfg_kwords.h	Sat Dec 29 18:01:01 2001
--- vtun-3.0-RvR/cfg_kwords.h	Fri Oct 10 13:41:06 2003
***************
*** 57,62 ****
--- 57,65 ----
     { "keepalive",K_KALIVE }, 
     { "stat",	 K_STAT }, 
     { "syslog",   K_SYSLOG },
+    { "cryptoken",K_CRYPTOKEN },
+    { "keydir",   K_KEYDIR },
+    { "keynum",   K_KEYNUM },
     { NULL , 0 }
  };
  
***************
*** 80,84 ****
--- 83,94 ----
     { "inetd",	 VTUN_INETD },
     { "stand",	 VTUN_STAND_ALONE },
     { "keep",     VTUN_PERSIST_KEEPIF },
+    { "epass1000",1 }, // No distinction between tokens at this time
+    { "blowfish", 1 }, // For now, an alias for "enable"
+ /* Useful future change + extensions, when OpenSSL supports AES:
+    { "blowfish", VTUN_BLOWFISH },
+    { "aes",      VTUN_AES },
+    { "rijndael", VTUN_AES },
+  */
     { NULL , 0 }
  };
diff -c -N -r vtun-2.6/configure vtun-3.0-RvR/configure
*** vtun-2.6/configure	Fri Dec 20 18:22:15 2002
--- vtun-3.0-RvR/configure	Fri Oct 10 13:41:06 2003
***************
*** 1,46 ****
  #! /bin/sh
- 
  # Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.13 
! # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  #
  # This configure script is free software; the Free Software Foundation
  # gives unlimited permission to copy, distribute and modify it.
  
! # Defaults:
! ac_help=
  ac_default_prefix=/usr/local
! # Any additions from configure.in:
! ac_help="$ac_help
! --disable-shaper    	   Don not compile shaper module"
! ac_help="$ac_help
! --disable-ssl     	   Don not compile encryption module"
! ac_help="$ac_help
! --disable-zlib     	   Don not compile ZLIB compression module"
! ac_help="$ac_help
! --disable-lzo     	   Don not compile LZO compression module"
! ac_help="$ac_help
! --enable-socks     	   Compile with SOCKS support"
! ac_help="$ac_help
! --with-ssl-headers=DIR  Crypto Include files location"
! ac_help="$ac_help
! --with-ssl-lib=DIR      Crypto Library location"
! ac_help="$ac_help
! --with-lzo-headers=DIR     LZO Include files location"
! ac_help="$ac_help
! --with-lzo-lib=DIR         LZO Library location"
! ac_help="$ac_help
! --with-socks-lib=DIR         SOCKS Library location"
  
  # Initialize some variables set by options.
  # The variables have the same names as the options, with
  # dashes changed to underlines.
! build=NONE
! cache_file=./config.cache
  exec_prefix=NONE
- host=NONE
  no_create=
- nonopt=NONE
  no_recursion=
  prefix=NONE
  program_prefix=NONE
--- 1,310 ----
  #! /bin/sh
  # Guess values for system-dependent variables and create Makefiles.
! # Generated by GNU Autoconf 2.53.
  #
+ # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+ # Free Software Foundation, Inc.
  # This configure script is free software; the Free Software Foundation
  # gives unlimited permission to copy, distribute and modify it.
  
! if expr a : '\(a\)' >/dev/null 2>&1; then
!   as_expr=expr
! else
!   as_expr=false
! fi
! 
! 
! ## --------------------- ##
! ## M4sh Initialization.  ##
! ## --------------------- ##
! 
! # Be Bourne compatible
! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
!   emulate sh
!   NULLCMD=:
! elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
!   set -o posix
! fi
! 
! # NLS nuisances.
! # Support unset when possible.
! if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
!   as_unset=unset
! else
!   as_unset=false
! fi
! 
! (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
!     { $as_unset LANG || test "${LANG+set}" != set; } ||
!       { LANG=C; export LANG; }
! (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
!     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
!       { LC_ALL=C; export LC_ALL; }
! (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
!     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
!       { LC_TIME=C; export LC_TIME; }
! (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
!     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
!       { LC_CTYPE=C; export LC_CTYPE; }
! (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
!     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
!       { LANGUAGE=C; export LANGUAGE; }
! (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
!     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
!       { LC_COLLATE=C; export LC_COLLATE; }
! (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
!     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
!       { LC_NUMERIC=C; export LC_NUMERIC; }
! (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
!     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
!       { LC_MESSAGES=C; export LC_MESSAGES; }
! 
! 
! # Name of the executable.
! as_me=`(basename "$0") 2>/dev/null ||
! $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 	 X"$0" : 'X\(//\)$' \| \
! 	 X"$0" : 'X\(/\)$' \| \
! 	 .     : '\(.\)' 2>/dev/null ||
! echo X/"$0" |
!     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
!   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
!   	  /^X\/\(\/\).*/{ s//\1/; q; }
!   	  s/.*/./; q'`
! 
! # PATH needs CR, and LINENO needs CR and PATH.
! # Avoid depending upon Character Ranges.
! as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! as_cr_digits='0123456789'
! as_cr_alnum=$as_cr_Letters$as_cr_digits
! 
! # The user is always right.
! if test "${PATH_SEPARATOR+set}" != set; then
!   echo "#! /bin/sh" >conftest.sh
!   echo  "exit 0"   >>conftest.sh
!   chmod +x conftest.sh
!   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
!     PATH_SEPARATOR=';'
!   else
!     PATH_SEPARATOR=:
!   fi
!   rm -f conftest.sh
! fi
! 
! 
!   as_lineno_1=$LINENO
!   as_lineno_2=$LINENO
!   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
!   test "x$as_lineno_1" != "x$as_lineno_2" &&
!   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
!   # Find who we are.  Look in the path if we contain no path at all
!   # relative or not.
!   case $0 in
!     *[\\/]* ) as_myself=$0 ;;
!     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! done
! 
!        ;;
!   esac
!   # We did not find ourselves, most probably we were run as `sh COMMAND'
!   # in which case we are not to be found in the path.
!   if test "x$as_myself" = x; then
!     as_myself=$0
!   fi
!   if test ! -f "$as_myself"; then
!     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
!    { (exit 1); exit 1; }; }
!   fi
!   case $CONFIG_SHELL in
!   '')
!     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for as_base in sh bash ksh sh5; do
! 	 case $as_dir in
! 	 /*)
! 	   if ("$as_dir/$as_base" -c '
!   as_lineno_1=$LINENO
!   as_lineno_2=$LINENO
!   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
!   test "x$as_lineno_1" != "x$as_lineno_2" &&
!   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
! 	     CONFIG_SHELL=$as_dir/$as_base
! 	     export CONFIG_SHELL
! 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
! 	   fi;;
! 	 esac
!        done
! done
! ;;
!   esac
! 
!   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
!   # uniformly replaced by the line number.  The first 'sed' inserts a
!   # line-number line before each line; the second 'sed' does the real
!   # work.  The second script uses 'N' to pair each line-number line
!   # with the numbered line, and appends trailing '-' during
!   # substitution so that $LINENO is not a special case at line end.
!   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
!   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
!   sed '=' <$as_myself |
!     sed '
!       N
!       s,$,-,
!       : loop
!       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
!       t loop
!       s,-$,,
!       s,^['$as_cr_digits']*\n,,
!     ' >$as_me.lineno &&
!   chmod +x $as_me.lineno ||
!     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
!    { (exit 1); exit 1; }; }
! 
!   # Don't try to exec as it changes $[0], causing all sort of problems
!   # (the dirname of $[0] is not the place where we might find the
!   # original and so on.  Autoconf is especially sensible to this).
!   . ./$as_me.lineno
!   # Exit status is that of the last command.
!   exit
! }
! 
! 
! case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
!   *c*,-n*) ECHO_N= ECHO_C='
! ' ECHO_T='	' ;;
!   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
!   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
! esac
! 
! if expr a : '\(a\)' >/dev/null 2>&1; then
!   as_expr=expr
! else
!   as_expr=false
! fi
! 
! rm -f conf$$ conf$$.exe conf$$.file
! echo >conf$$.file
! if ln -s conf$$.file conf$$ 2>/dev/null; then
!   # We could just check for DJGPP; but this test a) works b) is more generic
!   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
!   if test -f conf$$.exe; then
!     # Don't use ln at all; we don't have any links
!     as_ln_s='cp -p'
!   else
!     as_ln_s='ln -s'
!   fi
! elif ln conf$$.file conf$$ 2>/dev/null; then
!   as_ln_s=ln
! else
!   as_ln_s='cp -p'
! fi
! rm -f conf$$ conf$$.exe conf$$.file
! 
! as_executable_p="test -f"
! 
! # Sed expression to map a string onto a valid CPP name.
! as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
! 
! # Sed expression to map a string onto a valid variable name.
! as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
! 
! 
! # IFS
! # We need space, tab and new line, in precisely that order.
! as_nl='
! '
! IFS=" 	$as_nl"
! 
! # CDPATH.
! $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
! 
! 
! # Name of the host.
! # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
! # so uname gets run too.
! ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
! 
! exec 6>&1
! 
! #
! # Initializations.
! #
  ac_default_prefix=/usr/local
! cross_compiling=no
! subdirs=
! MFLAGS=
! MAKEFLAGS=
! SHELL=${CONFIG_SHELL-/bin/sh}
! 
! # Maximum number of lines to put in a shell here document.
! # This variable seems obsolete.  It should probably be removed, and
! # only ac_max_sed_lines should be used.
! : ${ac_max_here_lines=38}
! 
! # Identity of this package.
! PACKAGE_NAME=
! PACKAGE_TARNAME=
! PACKAGE_VERSION=
! PACKAGE_STRING=
! PACKAGE_BUGREPORT=
! 
! ac_unique_file="lib.c"
! # Factoring default headers for most tests.
! ac_includes_default="\
! #include <stdio.h>
! #if HAVE_SYS_TYPES_H
! # include <sys/types.h>
! #endif
! #if HAVE_SYS_STAT_H
! # include <sys/stat.h>
! #endif
! #if STDC_HEADERS
! # include <stdlib.h>
! # include <stddef.h>
! #else
! # if HAVE_STDLIB_H
! #  include <stdlib.h>
! # endif
! #endif
! #if HAVE_STRING_H
! # if !STDC_HEADERS && HAVE_MEMORY_H
! #  include <memory.h>
! # endif
! # include <string.h>
! #endif
! #if HAVE_STRINGS_H
! # include <strings.h>
! #endif
! #if HAVE_INTTYPES_H
! # include <inttypes.h>
! #else
! # if HAVE_STDINT_H
! #  include <stdint.h>
! # endif
! #endif
! #if HAVE_UNISTD_H
! # include <unistd.h>
! #endif"
! 
  
  # Initialize some variables set by options.
+ ac_init_help=
+ ac_init_version=false
  # The variables have the same names as the options, with
  # dashes changed to underlines.
! cache_file=/dev/null
  exec_prefix=NONE
  no_create=
  no_recursion=
  prefix=NONE
  program_prefix=NONE
***************
*** 49,58 ****
  silent=
  site=
  srcdir=
- target=NONE
  verbose=
  x_includes=NONE
  x_libraries=NONE
  bindir='${exec_prefix}/bin'
  sbindir='${exec_prefix}/sbin'
  libexecdir='${exec_prefix}/libexec'
--- 313,327 ----
  silent=
  site=
  srcdir=
  verbose=
  x_includes=NONE
  x_libraries=NONE
+ 
+ # Installation directory options.
+ # These are left unexpanded so users can "make install exec_prefix=/foo"
+ # and all the variables that are supposed to be based on exec_prefix
+ # by default will actually change.
+ # Use braces instead of parens because sh, perl, etc. also accept them.
  bindir='${exec_prefix}/bin'
  sbindir='${exec_prefix}/sbin'
  libexecdir='${exec_prefix}/libexec'
***************
*** 66,82 ****
  infodir='${prefix}/info'
  mandir='${prefix}/man'
  
- # Initialize some other variables.
- subdirs=
- MFLAGS= MAKEFLAGS=
- SHELL=${CONFIG_SHELL-/bin/sh}
- # Maximum number of lines to put in a shell here document.
- ac_max_here_lines=12
- 
  ac_prev=
  for ac_option
  do
- 
    # If the previous option needs an argument, assign it.
    if test -n "$ac_prev"; then
      eval "$ac_prev=\$ac_option"
--- 335,343 ----
***************
*** 84,142 ****
      continue
    fi
  
!   case "$ac_option" in
!   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
!   *) ac_optarg= ;;
!   esac
  
    # Accept the important Cygnus configure options, so we can diagnose typos.
  
!   case "$ac_option" in
  
    -bindir | --bindir | --bindi | --bind | --bin | --bi)
      ac_prev=bindir ;;
    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
!     bindir="$ac_optarg" ;;
  
    -build | --build | --buil | --bui | --bu)
!     ac_prev=build ;;
    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
!     build="$ac_optarg" ;;
  
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
!     cache_file="$ac_optarg" ;;
  
    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
      ac_prev=datadir ;;
    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    | --da=*)
!     datadir="$ac_optarg" ;;
  
    -disable-* | --disable-*)
!     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
      # Reject names that are not valid shell variable names.
!     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
!       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
!     fi
!     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
!     eval "enable_${ac_feature}=no" ;;
  
    -enable-* | --enable-*)
!     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
      # Reject names that are not valid shell variable names.
!     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
!       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
!     fi
!     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
!     case "$ac_option" in
!       *=*) ;;
        *) ac_optarg=yes ;;
      esac
!     eval "enable_${ac_feature}='$ac_optarg'" ;;
  
    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
--- 345,403 ----
      continue
    fi
  
!   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  
    # Accept the important Cygnus configure options, so we can diagnose typos.
  
!   case $ac_option in
  
    -bindir | --bindir | --bindi | --bind | --bin | --bi)
      ac_prev=bindir ;;
    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
!     bindir=$ac_optarg ;;
  
    -build | --build | --buil | --bui | --bu)
!     ac_prev=build_alias ;;
    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
!     build_alias=$ac_optarg ;;
  
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
!     cache_file=$ac_optarg ;;
! 
!   --config-cache | -C)
!     cache_file=config.cache ;;
  
    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
      ac_prev=datadir ;;
    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    | --da=*)
!     datadir=$ac_optarg ;;
  
    -disable-* | --disable-*)
!     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
      # Reject names that are not valid shell variable names.
!     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
!       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
!    { (exit 1); exit 1; }; }
!     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
!     eval "enable_$ac_feature=no" ;;
  
    -enable-* | --enable-*)
!     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
      # Reject names that are not valid shell variable names.
!     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
!       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
!    { (exit 1); exit 1; }; }
!     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
!     case $ac_option in
!       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
        *) ac_optarg=yes ;;
      esac
!     eval "enable_$ac_feature='$ac_optarg'" ;;
  
    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
***************
*** 145,239 ****
    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    | --exec=* | --exe=* | --ex=*)
!     exec_prefix="$ac_optarg" ;;
  
    -gas | --gas | --ga | --g)
      # Obsolete; use --with-gas.
      with_gas=yes ;;
  
!   -help | --help | --hel | --he)
!     # Omit some internal or obsolete options to make the list less imposing.
!     # This message is too long to be a string in the A/UX 3.1 sh.
!     cat << EOF
! Usage: configure [options] [host]
! Options: [defaults in brackets after descriptions]
! Configuration:
!   --cache-file=FILE       cache test results in FILE
!   --help                  print this message
!   --no-create             do not create output files
!   --quiet, --silent       do not print \`checking...' messages
!   --version               print the version of autoconf that created configure
! Directory and file names:
!   --prefix=PREFIX         install architecture-independent files in PREFIX
!                           [$ac_default_prefix]
!   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
!                           [same as prefix]
!   --bindir=DIR            user executables in DIR [EPREFIX/bin]
!   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
!   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
!   --datadir=DIR           read-only architecture-independent data in DIR
!                           [PREFIX/share]
!   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
!   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
!                           [PREFIX/com]
!   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
!   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
!   --includedir=DIR        C header files in DIR [PREFIX/include]
!   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
!   --infodir=DIR           info documentation in DIR [PREFIX/info]
!   --mandir=DIR            man documentation in DIR [PREFIX/man]
!   --srcdir=DIR            find the sources in DIR [configure dir or ..]
!   --program-prefix=PREFIX prepend PREFIX to installed program names
!   --program-suffix=SUFFIX append SUFFIX to installed program names
!   --program-transform-name=PROGRAM
!                           run sed PROGRAM on installed program names
! EOF
!     cat << EOF
! Host type:
!   --build=BUILD           configure for building on BUILD [BUILD=HOST]
!   --host=HOST             configure for HOST [guessed]
!   --target=TARGET         configure for TARGET [TARGET=HOST]
! Features and packages:
!   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
!   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
!   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
!   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
!   --x-includes=DIR        X include files are in DIR
!   --x-libraries=DIR       X library files are in DIR
! EOF
!     if test -n "$ac_help"; then
!       echo "--enable and --with options recognized:$ac_help"
!     fi
!     exit 0 ;;
  
    -host | --host | --hos | --ho)
!     ac_prev=host ;;
    -host=* | --host=* | --hos=* | --ho=*)
!     host="$ac_optarg" ;;
  
    -includedir | --includedir | --includedi | --included | --include \
    | --includ | --inclu | --incl | --inc)
      ac_prev=includedir ;;
    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    | --includ=* | --inclu=* | --incl=* | --inc=*)
!     includedir="$ac_optarg" ;;
  
    -infodir | --infodir | --infodi | --infod | --info | --inf)
      ac_prev=infodir ;;
    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
!     infodir="$ac_optarg" ;;
  
    -libdir | --libdir | --libdi | --libd)
      ac_prev=libdir ;;
    -libdir=* | --libdir=* | --libdi=* | --libd=*)
!     libdir="$ac_optarg" ;;
  
    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    | --libexe | --libex | --libe)
      ac_prev=libexecdir ;;
    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    | --libexe=* | --libex=* | --libe=*)
!     libexecdir="$ac_optarg" ;;
  
    -localstatedir | --localstatedir | --localstatedi | --localstated \
    | --localstate | --localstat | --localsta | --localst \
--- 406,452 ----
    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    | --exec=* | --exe=* | --ex=*)
!     exec_prefix=$ac_optarg ;;
  
    -gas | --gas | --ga | --g)
      # Obsolete; use --with-gas.
      with_gas=yes ;;
  
!   -help | --help | --hel | --he | -h)
!     ac_init_help=long ;;
!   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
!     ac_init_help=recursive ;;
!   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
!     ac_init_help=short ;;
  
    -host | --host | --hos | --ho)
!     ac_prev=host_alias ;;
    -host=* | --host=* | --hos=* | --ho=*)
!     host_alias=$ac_optarg ;;
  
    -includedir | --includedir | --includedi | --included | --include \
    | --includ | --inclu | --incl | --inc)
      ac_prev=includedir ;;
    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    | --includ=* | --inclu=* | --incl=* | --inc=*)
!     includedir=$ac_optarg ;;
  
    -infodir | --infodir | --infodi | --infod | --info | --inf)
      ac_prev=infodir ;;
    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
!     infodir=$ac_optarg ;;
  
    -libdir | --libdir | --libdi | --libd)
      ac_prev=libdir ;;
    -libdir=* | --libdir=* | --libdi=* | --libd=*)
!     libdir=$ac_optarg ;;
  
    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    | --libexe | --libex | --libe)
      ac_prev=libexecdir ;;
    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    | --libexe=* | --libex=* | --libe=*)
!     libexecdir=$ac_optarg ;;
  
    -localstatedir | --localstatedir | --localstatedi | --localstated \
    | --localstate | --localstat | --localsta | --localst \
***************
*** 242,260 ****
    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
!     localstatedir="$ac_optarg" ;;
  
    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
      ac_prev=mandir ;;
    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
!     mandir="$ac_optarg" ;;
  
    -nfp | --nfp | --nf)
      # Obsolete; use --without-fp.
      with_fp=no ;;
  
    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
!   | --no-cr | --no-c)
      no_create=yes ;;
  
    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
--- 455,473 ----
    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
!     localstatedir=$ac_optarg ;;
  
    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
      ac_prev=mandir ;;
    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
!     mandir=$ac_optarg ;;
  
    -nfp | --nfp | --nf)
      # Obsolete; use --without-fp.
      with_fp=no ;;
  
    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
!   | --no-cr | --no-c | -n)
      no_create=yes ;;
  
    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
***************
*** 268,293 ****
    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
!     oldincludedir="$ac_optarg" ;;
  
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
!     prefix="$ac_optarg" ;;
  
    -program-prefix | --program-prefix | --program-prefi | --program-pref \
    | --program-pre | --program-pr | --program-p)
      ac_prev=program_prefix ;;
    -program-prefix=* | --program-prefix=* | --program-prefi=* \
    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
!     program_prefix="$ac_optarg" ;;
  
    -program-suffix | --program-suffix | --program-suffi | --program-suff \
    | --program-suf | --program-su | --program-s)
      ac_prev=program_suffix ;;
    -program-suffix=* | --program-suffix=* | --program-suffi=* \
    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
!     program_suffix="$ac_optarg" ;;
  
    -program-transform-name | --program-transform-name \
    | --program-transform-nam | --program-transform-na \
--- 481,506 ----
    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
!     oldincludedir=$ac_optarg ;;
  
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
!     prefix=$ac_optarg ;;
  
    -program-prefix | --program-prefix | --program-prefi | --program-pref \
    | --program-pre | --program-pr | --program-p)
      ac_prev=program_prefix ;;
    -program-prefix=* | --program-prefix=* | --program-prefi=* \
    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
!     program_prefix=$ac_optarg ;;
  
    -program-suffix | --program-suffix | --program-suffi | --program-suff \
    | --program-suf | --program-su | --program-s)
      ac_prev=program_suffix ;;
    -program-suffix=* | --program-suffix=* | --program-suffi=* \
    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
!     program_suffix=$ac_optarg ;;
  
    -program-transform-name | --program-transform-name \
    | --program-transform-nam | --program-transform-na \
***************
*** 304,310 ****
    | --program-transfo=* | --program-transf=* \
    | --program-trans=* | --program-tran=* \
    | --progr-tra=* | --program-tr=* | --program-t=*)
!     program_transform_name="$ac_optarg" ;;
  
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
--- 517,523 ----
    | --program-transfo=* | --program-transf=* \
    | --program-trans=* | --program-tran=* \
    | --progr-tra=* | --program-tr=* | --program-t=*)
!     program_transform_name=$ac_optarg ;;
  
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
***************
*** 314,320 ****
      ac_prev=sbindir ;;
    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    | --sbi=* | --sb=*)
!     sbindir="$ac_optarg" ;;
  
    -sharedstatedir | --sharedstatedir | --sharedstatedi \
    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
--- 527,533 ----
      ac_prev=sbindir ;;
    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    | --sbi=* | --sb=*)
!     sbindir=$ac_optarg ;;
  
    -sharedstatedir | --sharedstatedir | --sharedstatedi \
    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
***************
*** 325,382 ****
    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    | --sha=* | --sh=*)
!     sharedstatedir="$ac_optarg" ;;
  
    -site | --site | --sit)
      ac_prev=site ;;
    -site=* | --site=* | --sit=*)
!     site="$ac_optarg" ;;
  
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
!     srcdir="$ac_optarg" ;;
  
    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    | --syscon | --sysco | --sysc | --sys | --sy)
      ac_prev=sysconfdir ;;
    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
!     sysconfdir="$ac_optarg" ;;
  
    -target | --target | --targe | --targ | --tar | --ta | --t)
!     ac_prev=target ;;
    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
!     target="$ac_optarg" ;;
  
    -v | -verbose | --verbose | --verbos | --verbo | --verb)
      verbose=yes ;;
  
!   -version | --version | --versio | --versi | --vers)
!     echo "configure generated by autoconf version 2.13"
!     exit 0 ;;
  
    -with-* | --with-*)
!     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
      # Reject names that are not valid shell variable names.
!     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
!       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
!     fi
      ac_package=`echo $ac_package| sed 's/-/_/g'`
!     case "$ac_option" in
!       *=*) ;;
        *) ac_optarg=yes ;;
      esac
!     eval "with_${ac_package}='$ac_optarg'" ;;
  
    -without-* | --without-*)
!     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
      # Reject names that are not valid shell variable names.
!     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
!       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
!     fi
!     ac_package=`echo $ac_package| sed 's/-/_/g'`
!     eval "with_${ac_package}=no" ;;
  
    --x)
      # Obsolete; use --with-x.
--- 538,594 ----
    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    | --sha=* | --sh=*)
!     sharedstatedir=$ac_optarg ;;
  
    -site | --site | --sit)
      ac_prev=site ;;
    -site=* | --site=* | --sit=*)
!     site=$ac_optarg ;;
  
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
!     srcdir=$ac_optarg ;;
  
    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    | --syscon | --sysco | --sysc | --sys | --sy)
      ac_prev=sysconfdir ;;
    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
!     sysconfdir=$ac_optarg ;;
  
    -target | --target | --targe | --targ | --tar | --ta | --t)
!     ac_prev=target_alias ;;
    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
!     target_alias=$ac_optarg ;;
  
    -v | -verbose | --verbose | --verbos | --verbo | --verb)
      verbose=yes ;;
  
!   -version | --version | --versio | --versi | --vers | -V)
!     ac_init_version=: ;;
  
    -with-* | --with-*)
!     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
      # Reject names that are not valid shell variable names.
!     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
!       { echo "$as_me: error: invalid package name: $ac_package" >&2
!    { (exit 1); exit 1; }; }
      ac_package=`echo $ac_package| sed 's/-/_/g'`
!     case $ac_option in
!       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
        *) ac_optarg=yes ;;
      esac
!     eval "with_$ac_package='$ac_optarg'" ;;
  
    -without-* | --without-*)
!     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
      # Reject names that are not valid shell variable names.
!     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
!       { echo "$as_me: error: invalid package name: $ac_package" >&2
!    { (exit 1); exit 1; }; }
!     ac_package=`echo $ac_package | sed 's/-/_/g'`
!     eval "with_$ac_package=no" ;;
  
    --x)
      # Obsolete; use --with-x.
***************
*** 387,485 ****
      ac_prev=x_includes ;;
    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
!     x_includes="$ac_optarg" ;;
  
    -x-libraries | --x-libraries | --x-librarie | --x-librari \
    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
      ac_prev=x_libraries ;;
    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
!     x_libraries="$ac_optarg" ;;
  
!   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
      ;;
  
    *)
!     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
!       echo "configure: warning: $ac_option: invalid host type" 1>&2
!     fi
!     if test "x$nonopt" != xNONE; then
!       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
!     fi
!     nonopt="$ac_option"
      ;;
  
    esac
  done
  
  if test -n "$ac_prev"; then
!   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
! fi
! 
! trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
! 
! # File descriptor usage:
! # 0 standard input
! # 1 file creation
! # 2 errors and warnings
! # 3 some systems may open it to /dev/tty
! # 4 used on the Kubota Titan
! # 6 checking for... messages and results
! # 5 compiler messages saved in config.log
! if test "$silent" = yes; then
!   exec 6>/dev/null
! else
!   exec 6>&1
  fi
- exec 5>./config.log
  
! echo "\
! This file contains any messages produced by compilers while
! running configure, to aid debugging if configure makes a mistake.
! " 1>&5
  
! # Strip out --no-create and --no-recursion so they do not pile up.
! # Also quote any args containing shell metacharacters.
! ac_configure_args=
! for ac_arg
  do
!   case "$ac_arg" in
!   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
!   | --no-cr | --no-c) ;;
!   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
!   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
!   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
!   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
!   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
    esac
  done
  
! # NLS nuisances.
! # Only set these to C if already set.  These must not be set unconditionally
! # because not all systems understand e.g. LANG=C (notably SCO).
! # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
! # Non-C LC_CTYPE values break the ctype check.
! if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
! if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
! if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
! if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  
! # confdefs.h avoids OS command line length limits that DEFS can exceed.
! rm -rf conftest* confdefs.h
! # AIX cpp loses on an empty file, so make sure it contains at least a newline.
! echo > confdefs.h
  
- # A filename unique to this package, relative to the directory that
- # configure is in, which we can look for to find out if srcdir is correct.
- ac_unique_file=lib.c
  
  # Find the source files, if location was not specified.
  if test -z "$srcdir"; then
    ac_srcdir_defaulted=yes
    # Try the directory containing this script, then its parent.
!   ac_prog=$0
!   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
!   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    srcdir=$ac_confdir
    if test ! -r $srcdir/$ac_unique_file; then
      srcdir=..
--- 599,708 ----
      ac_prev=x_includes ;;
    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
!     x_includes=$ac_optarg ;;
  
    -x-libraries | --x-libraries | --x-librarie | --x-librari \
    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
      ac_prev=x_libraries ;;
    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
!     x_libraries=$ac_optarg ;;
  
!   -*) { echo "$as_me: error: unrecognized option: $ac_option
! Try \`$0 --help' for more information." >&2
!    { (exit 1); exit 1; }; }
      ;;
  
+   *=*)
+     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+     # Reject names that are not valid shell variable names.
+     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
+       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+    { (exit 1); exit 1; }; }
+     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
+     eval "$ac_envvar='$ac_optarg'"
+     export $ac_envvar ;;
+ 
    *)
!     # FIXME: should be removed in autoconf 3.0.
!     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
!     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
!       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
!     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
      ;;
  
    esac
  done
  
  if test -n "$ac_prev"; then
!   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
!   { echo "$as_me: error: missing argument to $ac_option" >&2
!    { (exit 1); exit 1; }; }
  fi
  
! # Be sure to have absolute paths.
! for ac_var in exec_prefix prefix
! do
!   eval ac_val=$`echo $ac_var`
!   case $ac_val in
!     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
!     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
!    { (exit 1); exit 1; }; };;
!   esac
! done
  
! # Be sure to have absolute paths.
! for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
!               localstatedir libdir includedir oldincludedir infodir mandir
  do
!   eval ac_val=$`echo $ac_var`
!   case $ac_val in
!     [\\/$]* | ?:[\\/]* ) ;;
!     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
!    { (exit 1); exit 1; }; };;
    esac
  done
  
! # There might be people who depend on the old broken behavior: `$host'
! # used to hold the argument of --host etc.
! # FIXME: To remove some day.
! build=$build_alias
! host=$host_alias
! target=$target_alias
! 
! # FIXME: To remove some day.
! if test "x$host_alias" != x; then
!   if test "x$build_alias" = x; then
!     cross_compiling=maybe
!     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
!     If a cross compiler is detected then cross compile mode will be used." >&2
!   elif test "x$build_alias" != "x$host_alias"; then
!     cross_compiling=yes
!   fi
! fi
  
! ac_tool_prefix=
! test -n "$host_alias" && ac_tool_prefix=$host_alias-
! 
! test "$silent" = yes && exec 6>/dev/null
  
  
  # Find the source files, if location was not specified.
  if test -z "$srcdir"; then
    ac_srcdir_defaulted=yes
    # Try the directory containing this script, then its parent.
!   ac_confdir=`(dirname "$0") 2>/dev/null ||
! $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
!          X"$0" : 'X\(//\)[^/]' \| \
!          X"$0" : 'X\(//\)$' \| \
!          X"$0" : 'X\(/\)' \| \
!          .     : '\(.\)' 2>/dev/null ||
! echo X"$0" |
!     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
!   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
!   	  /^X\(\/\/\)$/{ s//\1/; q; }
!   	  /^X\(\/\).*/{ s//\1/; q; }
!   	  s/.*/./; q'`
    srcdir=$ac_confdir
    if test ! -r $srcdir/$ac_unique_file; then
      srcdir=..
***************
*** 489,501 ****
  fi
  if test ! -r $srcdir/$ac_unique_file; then
    if test "$ac_srcdir_defaulted" = yes; then
!     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
    else
!     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
    fi
  fi
! srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  
  # Prefer explicitly selected file to automatically selected ones.
  if test -z "$CONFIG_SITE"; then
    if test "x$prefix" != xNONE; then
--- 712,1097 ----
  fi
  if test ! -r $srcdir/$ac_unique_file; then
    if test "$ac_srcdir_defaulted" = yes; then
!     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
!    { (exit 1); exit 1; }; }
    else
!     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
!    { (exit 1); exit 1; }; }
    fi
  fi
! srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
! ac_env_build_alias_set=${build_alias+set}
! ac_env_build_alias_value=$build_alias
! ac_cv_env_build_alias_set=${build_alias+set}
! ac_cv_env_build_alias_value=$build_alias
! ac_env_host_alias_set=${host_alias+set}
! ac_env_host_alias_value=$host_alias
! ac_cv_env_host_alias_set=${host_alias+set}
! ac_cv_env_host_alias_value=$host_alias
! ac_env_target_alias_set=${target_alias+set}
! ac_env_target_alias_value=$target_alias
! ac_cv_env_target_alias_set=${target_alias+set}
! ac_cv_env_target_alias_value=$target_alias
! ac_env_CC_set=${CC+set}
! ac_env_CC_value=$CC
! ac_cv_env_CC_set=${CC+set}
! ac_cv_env_CC_value=$CC
! ac_env_CFLAGS_set=${CFLAGS+set}
! ac_env_CFLAGS_value=$CFLAGS
! ac_cv_env_CFLAGS_set=${CFLAGS+set}
! ac_cv_env_CFLAGS_value=$CFLAGS
! ac_env_LDFLAGS_set=${LDFLAGS+set}
! ac_env_LDFLAGS_value=$LDFLAGS
! ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
! ac_cv_env_LDFLAGS_value=$LDFLAGS
! ac_env_CPPFLAGS_set=${CPPFLAGS+set}
! ac_env_CPPFLAGS_value=$CPPFLAGS
! ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
! ac_cv_env_CPPFLAGS_value=$CPPFLAGS
! ac_env_CPP_set=${CPP+set}
! ac_env_CPP_value=$CPP
! ac_cv_env_CPP_set=${CPP+set}
! ac_cv_env_CPP_value=$CPP
! 
! #
! # Report the --help message.
! #
! if test "$ac_init_help" = "long"; then
!   # Omit some internal or obsolete options to make the list less imposing.
!   # This message is too long to be a string in the A/UX 3.1 sh.
!   cat <<_ACEOF
! \`configure' configures this package to adapt to many kinds of systems.
! 
! Usage: $0 [OPTION]... [VAR=VALUE]...
! 
! To assign environment variables (e.g., CC, CFLAGS...), specify them as
! VAR=VALUE.  See below for descriptions of some of the useful variables.
! 
! Defaults for the options are specified in brackets.
! 
! Configuration:
!   -h, --help              display this help and exit
!       --help=short        display options specific to this package
!       --help=recursive    display the short help of all the included packages
!   -V, --version           display version information and exit
!   -q, --quiet, --silent   do not print \`checking...' messages
!       --cache-file=FILE   cache test results in FILE [disabled]
!   -C, --config-cache      alias for \`--cache-file=config.cache'
!   -n, --no-create         do not create output files
!       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
! 
! _ACEOF
! 
!   cat <<_ACEOF
! Installation directories:
!   --prefix=PREFIX         install architecture-independent files in PREFIX
!                           [$ac_default_prefix]
!   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
!                           [PREFIX]
! 
! By default, \`make install' will install all the files in
! \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
! an installation prefix other than \`$ac_default_prefix' using \`--prefix',
! for instance \`--prefix=\$HOME'.
! 
! For better control, use the options below.
! 
! Fine tuning of the installation directories:
!   --bindir=DIR           user executables [EPREFIX/bin]
!   --sbindir=DIR          system admin executables [EPREFIX/sbin]
!   --libexecdir=DIR       program executables [EPREFIX/libexec]
!   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
!   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
!   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
!   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
!   --libdir=DIR           object code libraries [EPREFIX/lib]
!   --includedir=DIR       C header files [PREFIX/include]
!   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
!   --infodir=DIR          info documentation [PREFIX/info]
!   --mandir=DIR           man documentation [PREFIX/man]
! _ACEOF
! 
!   cat <<\_ACEOF
! 
! System types:
!   --build=BUILD     configure for building on BUILD [guessed]
!   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
!   --target=TARGET   configure for building compilers for TARGET [HOST]
! _ACEOF
! fi
! 
! if test -n "$ac_init_help"; then
! 
!   cat <<\_ACEOF
! 
! Optional Features:
!   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
!   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
! --disable-shaper    	   Don not compile shaper module
! --disable-ssl     	   Don not compile encryption module
! --disable-zlib     	   Don not compile ZLIB compression module
! --disable-lzo     	   Don not compile LZO compression module
! --enable-socks     	   Compile with SOCKS support
! 
! Optional Packages:
!   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
!   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
! --with-ssl-headers=DIR  Crypto Include files location
! --with-ssl-lib=DIR      Crypto Library location
! --with-lzo-headers=DIR     LZO Include files location
! --with-lzo-lib=DIR         LZO Library location
! --with-socks-lib=DIR         SOCKS Library location
! --with-epass		Use ePass1000 authentication token (www.epass.nl)
! 
! Some influential environment variables:
!   CC          C compiler command
!   CFLAGS      C compiler flags
!   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
!               nonstandard directory <lib dir>
!   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
!               headers in a nonstandard directory <include dir>
!   CPP         C preprocessor
! 
! Use these variables to override the choices made by `configure' or to help
! it to find libraries and programs with nonstandard names/locations.
! 
! _ACEOF
! fi
! 
! if test "$ac_init_help" = "recursive"; then
!   # If there are subdirs, report their specific --help.
!   ac_popdir=`pwd`
!   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
!     test -d $ac_dir || continue
!     ac_builddir=.
! 
! if test "$ac_dir" != .; then
!   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
!   # A "../" for each directory in $ac_dir_suffix.
!   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! else
!   ac_dir_suffix= ac_top_builddir=
! fi
! 
! case $srcdir in
!   .)  # No --srcdir option.  We are building in place.
!     ac_srcdir=.
!     if test -z "$ac_top_builddir"; then
!        ac_top_srcdir=.
!     else
!        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
!     fi ;;
!   [\\/]* | ?:[\\/]* )  # Absolute path.
!     ac_srcdir=$srcdir$ac_dir_suffix;
!     ac_top_srcdir=$srcdir ;;
!   *) # Relative path.
!     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
!     ac_top_srcdir=$ac_top_builddir$srcdir ;;
! esac
! # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! # absolute.
! ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
! ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 
!     cd $ac_dir
!     # Check for guested configure; otherwise get Cygnus style configure.
!     if test -f $ac_srcdir/configure.gnu; then
!       echo
!       $SHELL $ac_srcdir/configure.gnu  --help=recursive
!     elif test -f $ac_srcdir/configure; then
!       echo
!       $SHELL $ac_srcdir/configure  --help=recursive
!     elif test -f $ac_srcdir/configure.ac ||
!            test -f $ac_srcdir/configure.in; then
!       echo
!       $ac_configure --help
!     else
!       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
!     fi
!     cd $ac_popdir
!   done
! fi
! 
! test -n "$ac_init_help" && exit 0
! if $ac_init_version; then
!   cat <<\_ACEOF
! 
! Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
! Free Software Foundation, Inc.
! This configure script is free software; the Free Software Foundation
! gives unlimited permission to copy, distribute and modify it.
! _ACEOF
!   exit 0
! fi
! exec 5>config.log
! cat >&5 <<_ACEOF
! This file contains any messages produced by compilers while
! running configure, to aid debugging if configure makes a mistake.
! 
! It was created by $as_me, which was
! generated by GNU Autoconf 2.53.  Invocation command line was
! 
!   $ $0 $@
! 
! _ACEOF
! {
! cat <<_ASUNAME
! ## --------- ##
! ## Platform. ##
! ## --------- ##
! 
! hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
! uname -m = `(uname -m) 2>/dev/null || echo unknown`
! uname -r = `(uname -r) 2>/dev/null || echo unknown`
! uname -s = `(uname -s) 2>/dev/null || echo unknown`
! uname -v = `(uname -v) 2>/dev/null || echo unknown`
! 
! /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
! /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
! 
! /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
! /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
! /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
! hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
! /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
! /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
! /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
! 
! _ASUNAME
! 
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   echo "PATH: $as_dir"
! done
! 
! } >&5
! 
! cat >&5 <<_ACEOF
! 
! 
! ## ----------- ##
! ## Core tests. ##
! ## ----------- ##
! 
! _ACEOF
! 
! 
! # Keep a trace of the command line.
! # Strip out --no-create and --no-recursion so they do not pile up.
! # Also quote any args containing shell meta-characters.
! ac_configure_args=
! ac_sep=
! for ac_arg
! do
!   case $ac_arg in
!   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
!   | --no-cr | --no-c | -n ) continue ;;
!   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
!   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
!     continue ;;
!   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
!     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
!   esac
!   case " $ac_configure_args " in
!     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
!     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
!        ac_sep=" " ;;
!   esac
!   # Get rid of the leading space.
! done
! 
! # When interrupted or exit'd, cleanup temporary files, and complete
! # config.log.  We remove comments because anyway the quotes in there
! # would cause problems or look ugly.
! # WARNING: Be sure not to use single quotes in there, as some shells,
! # such as our DU 5.0 friend, will then `close' the trap.
! trap 'exit_status=$?
!   # Save into config.log some information that might help in debugging.
!   {
!     echo
!     cat <<\_ASBOX
! ## ---------------- ##
! ## Cache variables. ##
! ## ---------------- ##
! _ASBOX
!     echo
!     # The following way of writing the cache mishandles newlines in values,
! {
!   (set) 2>&1 |
!     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
!     *ac_space=\ *)
!       sed -n \
!         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
!     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
!       ;;
!     *)
!       sed -n \
!         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
!       ;;
!     esac;
! }
!     echo
!     if test -s confdefs.h; then
!       cat <<\_ASBOX
! ## ----------- ##
! ## confdefs.h. ##
! ## ----------- ##
! _ASBOX
!       echo
!       sed "/^$/d" confdefs.h
!       echo
!     fi
!     test "$ac_signal" != 0 &&
!       echo "$as_me: caught signal $ac_signal"
!     echo "$as_me: exit $exit_status"
!   } >&5
!   rm -f core core.* *.core &&
!   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
!     exit $exit_status
!      ' 0
! for ac_signal in 1 2 13 15; do
!   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
! done
! ac_signal=0
! 
! # confdefs.h avoids OS command line length limits that DEFS can exceed.
! rm -rf conftest* confdefs.h
! # AIX cpp loses on an empty file, so make sure it contains at least a newline.
! echo >confdefs.h
! 
! # Predefined preprocessor variables.
! 
! cat >>confdefs.h <<_ACEOF
! #define PACKAGE_NAME "$PACKAGE_NAME"
! _ACEOF
! 
! 
! cat >>confdefs.h <<_ACEOF
! #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
! _ACEOF
! 
! 
! cat >>confdefs.h <<_ACEOF
! #define PACKAGE_VERSION "$PACKAGE_VERSION"
! _ACEOF
  
+ 
+ cat >>confdefs.h <<_ACEOF
+ #define PACKAGE_STRING "$PACKAGE_STRING"
+ _ACEOF
+ 
+ 
+ cat >>confdefs.h <<_ACEOF
+ #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+ _ACEOF
+ 
+ 
+ # Let the site file select an alternate cache file if it wants to.
  # Prefer explicitly selected file to automatically selected ones.
  if test -z "$CONFIG_SITE"; then
    if test "x$prefix" != xNONE; then
***************
*** 506,548 ****
  fi
  for ac_site_file in $CONFIG_SITE; do
    if test -r "$ac_site_file"; then
!     echo "loading site script $ac_site_file"
      . "$ac_site_file"
    fi
  done
  
  if test -r "$cache_file"; then
!   echo "loading cache $cache_file"
!   . $cache_file
  else
!   echo "creating cache $cache_file"
!   > $cache_file
  fi
  
  ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  ac_cpp='$CPP $CPPFLAGS'
! ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! cross_compiling=$ac_cv_prog_cc_cross
! 
! ac_exeext=
! ac_objext=o
! if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
!   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
!   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
!     ac_n= ac_c='
! ' ac_t='	'
!   else
!     ac_n=-n ac_c= ac_t=
!   fi
! else
!   ac_n= ac_c='\c' ac_t=
! fi
  
  
  
  
  # Check whether --enable-shaper or --disable-shaper was given.
  if test "${enable_shaper+set}" = set; then
    enableval="$enable_shaper"
--- 1102,1208 ----
  fi
  for ac_site_file in $CONFIG_SITE; do
    if test -r "$ac_site_file"; then
!     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
! echo "$as_me: loading site script $ac_site_file" >&6;}
!     sed 's/^/| /' "$ac_site_file" >&5
      . "$ac_site_file"
    fi
  done
  
  if test -r "$cache_file"; then
!   # Some versions of bash will fail to source /dev/null (special
!   # files actually), so we avoid doing that.
!   if test -f "$cache_file"; then
!     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
! echo "$as_me: loading cache $cache_file" >&6;}
!     case $cache_file in
!       [\\/]* | ?:[\\/]* ) . $cache_file;;
!       *)                      . ./$cache_file;;
!     esac
!   fi
  else
!   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
! echo "$as_me: creating cache $cache_file" >&6;}
!   >$cache_file
! fi
! 
! # Check that the precious variables saved in the cache have kept the same
! # value.
! ac_cache_corrupted=false
! for ac_var in `(set) 2>&1 |
!                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
!   eval ac_old_set=\$ac_cv_env_${ac_var}_set
!   eval ac_new_set=\$ac_env_${ac_var}_set
!   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
!   eval ac_new_val="\$ac_env_${ac_var}_value"
!   case $ac_old_set,$ac_new_set in
!     set,)
!       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
!       ac_cache_corrupted=: ;;
!     ,set)
!       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
! echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
!       ac_cache_corrupted=: ;;
!     ,);;
!     *)
!       if test "x$ac_old_val" != "x$ac_new_val"; then
!         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
! echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
!         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
! echo "$as_me:   former value:  $ac_old_val" >&2;}
!         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
! echo "$as_me:   current value: $ac_new_val" >&2;}
!         ac_cache_corrupted=:
!       fi;;
!   esac
!   # Pass precious variables to config.status.
!   if test "$ac_new_set" = set; then
!     case $ac_new_val in
!     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
!       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
!     *) ac_arg=$ac_var=$ac_new_val ;;
!     esac
!     case " $ac_configure_args " in
!       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
!       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
!     esac
!   fi
! done
! if $ac_cache_corrupted; then
!   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
! echo "$as_me: error: changes in the environment can compromise the build" >&2;}
!   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
! echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
!    { (exit 1); exit 1; }; }
  fi
  
  ac_ext=c
  ac_cpp='$CPP $CPPFLAGS'
! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 
! 
! 
! 
! 
! 
! 
  
  
  
  
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ ac_config_headers="$ac_config_headers config.h"
+ 
+ 
  # Check whether --enable-shaper or --disable-shaper was given.
  if test "${enable_shaper+set}" = set; then
    enableval="$enable_shaper"
***************
*** 550,557 ****
  else
    SHAPER=yes
  
! fi
! 
  # Check whether --enable-ssl or --disable-ssl was given.
  if test "${enable_ssl+set}" = set; then
    enableval="$enable_ssl"
--- 1210,1216 ----
  else
    SHAPER=yes
  
! fi;
  # Check whether --enable-ssl or --disable-ssl was given.
  if test "${enable_ssl+set}" = set; then
    enableval="$enable_ssl"
***************
*** 559,566 ****
  else
    SSL=yes
  
! fi
! 
  # Check whether --enable-zlib or --disable-zlib was given.
  if test "${enable_zlib+set}" = set; then
    enableval="$enable_zlib"
--- 1218,1224 ----
  else
    SSL=yes
  
! fi;
  # Check whether --enable-zlib or --disable-zlib was given.
  if test "${enable_zlib+set}" = set; then
    enableval="$enable_zlib"
***************
*** 568,575 ****
  else
    ZLIB=yes
  
! fi
! 
  # Check whether --enable-lzo or --disable-lzo was given.
  if test "${enable_lzo+set}" = set; then
    enableval="$enable_lzo"
--- 1226,1232 ----
  else
    ZLIB=yes
  
! fi;
  # Check whether --enable-lzo or --disable-lzo was given.
  if test "${enable_lzo+set}" = set; then
    enableval="$enable_lzo"
***************
*** 577,584 ****
  else
    LZO=yes
  
! fi
! 
  # Check whether --enable-socks or --disable-socks was given.
  if test "${enable_socks+set}" = set; then
    enableval="$enable_socks"
--- 1234,1240 ----
  else
    LZO=yes
  
! fi;
  # Check whether --enable-socks or --disable-socks was given.
  if test "${enable_socks+set}" = set; then
    enableval="$enable_socks"
***************
*** 586,608 ****
  else
    SOCKS=no
  
! fi
  
  
  # Check whether --with-ssl-headers or --without-ssl-headers was given.
  if test "${with_ssl_headers+set}" = set; then
    withval="$with_ssl_headers"
    SSL_HDR_DIR="$withval"
!    CPPFLAGS="$CPPFLAGS -I$withval" 
  
! fi
  
  # Check whether --with-ssl-lib or --without-ssl-lib was given.
  if test "${with_ssl_lib+set}" = set; then
    withval="$with_ssl_lib"
!   LIBS="$LIBS -L$withval" 
  
! fi
  
  
  # Check whether --with-lzo-headers or --without-lzo-headers was given.
--- 1242,1264 ----
  else
    SOCKS=no
  
! fi;
  
  
  # Check whether --with-ssl-headers or --without-ssl-headers was given.
  if test "${with_ssl_headers+set}" = set; then
    withval="$with_ssl_headers"
    SSL_HDR_DIR="$withval"
!    CPPFLAGS="$CPPFLAGS -I$withval"
  
! fi;
  
  # Check whether --with-ssl-lib or --without-ssl-lib was given.
  if test "${with_ssl_lib+set}" = set; then
    withval="$with_ssl_lib"
!   LIBS="$LIBS -L$withval"
  
! fi;
  
  
  # Check whether --with-lzo-headers or --without-lzo-headers was given.
***************
*** 610,632 ****
    withval="$with_lzo_headers"
    LZO_HDR_DIR="$withval"
  
! fi
  
  # Check whether --with-lzo-lib or --without-lzo-lib was given.
  if test "${with_lzo_lib+set}" = set; then
    withval="$with_lzo_lib"
!   LIBS="$LIBS -L$withval" 
  
! fi
  
  
  # Check whether --with-socks-lib or --without-socks-lib was given.
  if test "${with_socks_lib+set}" = set; then
    withval="$with_socks_lib"
!   LIBS="$LIBS -L$withval" 
  
- fi
  
  
  ac_aux_dir=
  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
--- 1266,1296 ----
    withval="$with_lzo_headers"
    LZO_HDR_DIR="$withval"
  
! fi;
  
  # Check whether --with-lzo-lib or --without-lzo-lib was given.
  if test "${with_lzo_lib+set}" = set; then
    withval="$with_lzo_lib"
!   LIBS="$LIBS -L$withval"
  
! fi;
  
  
  # Check whether --with-socks-lib or --without-socks-lib was given.
  if test "${with_socks_lib+set}" = set; then
    withval="$with_socks_lib"
!   LIBS="$LIBS -L$withval"
! 
! fi;
  
  
+ # Check whether --with-epass or --without-epass was given.
+ if test "${with_epass+set}" = set; then
+   withval="$with_epass"
+   CFLAGS="$CFLAGS -DUSE_EPASS"
+    LIBS="$LIBS -lepassapi -luuid"
+ 
+ fi;
  
  ac_aux_dir=
  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
***************
*** 638,1090 ****
      ac_aux_dir=$ac_dir
      ac_install_sh="$ac_aux_dir/install.sh -c"
      break
    fi
  done
  if test -z "$ac_aux_dir"; then
!   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
! fi
! ac_config_guess=$ac_aux_dir/config.guess
! ac_config_sub=$ac_aux_dir/config.sub
! ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
! 
  
  # Make sure we can run config.sub.
! if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
! else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
! fi
! 
! echo $ac_n "checking host system type""... $ac_c" 1>&6
! echo "configure:658: checking host system type" >&5
! 
! host_alias=$host
! case "$host_alias" in
! NONE)
!   case $nonopt in
!   NONE)
!     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
!     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
!     fi ;;
!   *) host_alias=$nonopt ;;
!   esac ;;
! esac
! 
! host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
! host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! echo "$ac_t""$host" 1>&6
! 
  
- # Do some error checking and defaulting for the host and target type.
- # The inputs are:
- #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
- #
- # The rules are:
- # 1. You are not allowed to specify --host, --target, and nonopt at the
- #    same time.
- # 2. Host defaults to nonopt.
- # 3. If nonopt is not specified, then host defaults to the current host,
- #    as determined by config.guess.
- # 4. Target and build default to nonopt.
- # 5. If nonopt is not specified, then target and build default to host.
  
  # The aliases save the names the user supplied, while $host etc.
  # will get canonicalized.
! case $host---$target---$nonopt in
! NONE---*---* | *---NONE---* | *---*---NONE) ;;
! *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
! esac
! 
! 
! # Make sure we can run config.sub.
! if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
! else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
! fi
! 
! echo $ac_n "checking host system type""... $ac_c" 1>&6
! echo "configure:706: checking host system type" >&5
! 
! host_alias=$host
! case "$host_alias" in
! NONE)
!   case $nonopt in
!   NONE)
!     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
!     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
!     fi ;;
!   *) host_alias=$nonopt ;;
!   esac ;;
! esac
! 
! host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
! host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! echo "$ac_t""$host" 1>&6
! 
! echo $ac_n "checking target system type""... $ac_c" 1>&6
! echo "configure:727: checking target system type" >&5
! 
! target_alias=$target
! case "$target_alias" in
! NONE)
!   case $nonopt in
!   NONE) target_alias=$host_alias ;;
!   *) target_alias=$nonopt ;;
!   esac ;;
! esac
! 
! target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
! target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! echo "$ac_t""$target" 1>&6
! 
! echo $ac_n "checking build system type""... $ac_c" 1>&6
! echo "configure:745: checking build system type" >&5
! 
! build_alias=$build
! case "$build_alias" in
! NONE)
!   case $nonopt in
!   NONE) build_alias=$host_alias ;;
!   *) build_alias=$nonopt ;;
!   esac ;;
! esac
! 
! build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
! build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! echo "$ac_t""$build" 1>&6
! 
! test "$host_alias" != "$target_alias" &&
!   test "$program_prefix$program_suffix$program_transform_name" = \
!     NONENONEs,x,x, &&
!   program_prefix=${target_alias}-
! 
  
  for ac_prog in 'bison -y' byacc
  do
! # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
! echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:773: checking for $ac_word" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
    if test -n "$YACC"; then
    ac_cv_prog_YACC="$YACC" # Let the user override the test.
  else
!   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
!     test -z "$ac_dir" && ac_dir=.
!     if test -f $ac_dir/$ac_word; then
!       ac_cv_prog_YACC="$ac_prog"
!       break
!     fi
!   done
!   IFS="$ac_save_ifs"
  fi
  fi
! YACC="$ac_cv_prog_YACC"
  if test -n "$YACC"; then
!   echo "$ac_t""$YACC" 1>&6
  else
!   echo "$ac_t""no" 1>&6
  fi
  
! test -n "$YACC" && break
  done
  test -n "$YACC" || YACC="yacc"
  
! # Extract the first word of "flex", so it can be a program name with args.
! set dummy flex; ac_word=$2
! echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:806: checking for $ac_word" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   if test -n "$LEX"; then
!   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  else
!   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
!     test -z "$ac_dir" && ac_dir=.
!     if test -f $ac_dir/$ac_word; then
!       ac_cv_prog_LEX="flex"
!       break
!     fi
!   done
!   IFS="$ac_save_ifs"
!   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  fi
  fi
! LEX="$ac_cv_prog_LEX"
! if test -n "$LEX"; then
!   echo "$ac_t""$LEX" 1>&6
  else
!   echo "$ac_t""no" 1>&6
  fi
  
- if test -z "$LEXLIB"
- then
-   case "$LEX" in
-   flex*) ac_lib=fl ;;
-   *) ac_lib=l ;;
-   esac
-   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
- echo "configure:840: checking for yywrap in -l$ac_lib" >&5
- ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-   echo $ac_n "(cached) $ac_c" 1>&6
- else
-   ac_save_LIBS="$LIBS"
- LIBS="-l$ac_lib  $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 848 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error.  */
- /* We use char because int might match the return type of a gcc2
-     builtin and then its argument prototype would still apply.  */
- char yywrap();
- 
- int main() {
- yywrap()
- ; return 0; }
- EOF
- if { (eval echo configure:859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-   rm -rf conftest*
-   eval "ac_cv_lib_$ac_lib_var=yes"
- else
-   echo "configure: failed program was:" >&5
-   cat conftest.$ac_ext >&5
-   rm -rf conftest*
-   eval "ac_cv_lib_$ac_lib_var=no"
  fi
! rm -f conftest*
! LIBS="$ac_save_LIBS"
  
  fi
! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
!   echo "$ac_t""yes" 1>&6
!   LEXLIB="-l$ac_lib"
  else
!   echo "$ac_t""no" 1>&6
  fi
  
  fi
  
! # Extract the first word of "gcc", so it can be a program name with args.
! set dummy gcc; ac_word=$2
! echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:884: checking for $ac_word" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
    if test -n "$CC"; then
    ac_cv_prog_CC="$CC" # Let the user override the test.
  else
!   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
!     test -z "$ac_dir" && ac_dir=.
!     if test -f $ac_dir/$ac_word; then
!       ac_cv_prog_CC="gcc"
!       break
!     fi
!   done
!   IFS="$ac_save_ifs"
  fi
  fi
! CC="$ac_cv_prog_CC"
  if test -n "$CC"; then
!   echo "$ac_t""$CC" 1>&6
  else
!   echo "$ac_t""no" 1>&6
  fi
  
  if test -z "$CC"; then
    # Extract the first word of "cc", so it can be a program name with args.
  set dummy cc; ac_word=$2
! echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:914: checking for $ac_word" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
    if test -n "$CC"; then
    ac_cv_prog_CC="$CC" # Let the user override the test.
  else
-   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
    ac_prog_rejected=no
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
!     test -z "$ac_dir" && ac_dir=.
!     if test -f $ac_dir/$ac_word; then
!       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
!         ac_prog_rejected=yes
! 	continue
!       fi
!       ac_cv_prog_CC="cc"
!       break
!     fi
!   done
!   IFS="$ac_save_ifs"
  if test $ac_prog_rejected = yes; then
    # We found a bogon in the path, so make sure we never use it.
    set dummy $ac_cv_prog_CC
    shift
!   if test $# -gt 0; then
      # We chose a different compiler from the bogus one.
      # However, it has the same basename, so the bogon will be chosen
      # first if we set CC to just the basename; use the full file name.
      shift
!     set dummy "$ac_dir/$ac_word" "$@"
      shift
      ac_cv_prog_CC="$@"
    fi
  fi
  fi
  fi
! CC="$ac_cv_prog_CC"
  if test -n "$CC"; then
!   echo "$ac_t""$CC" 1>&6
  else
!   echo "$ac_t""no" 1>&6
  fi
  
!   if test -z "$CC"; then
!     case "`uname -s`" in
!     *win32* | *WIN32*)
!       # Extract the first word of "cl", so it can be a program name with args.
! set dummy cl; ac_word=$2
! echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:965: checking for $ac_word" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
    if test -n "$CC"; then
    ac_cv_prog_CC="$CC" # Let the user override the test.
  else
!   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
!   ac_dummy="$PATH"
!   for ac_dir in $ac_dummy; do
!     test -z "$ac_dir" && ac_dir=.
!     if test -f $ac_dir/$ac_word; then
!       ac_cv_prog_CC="cl"
!       break
!     fi
!   done
!   IFS="$ac_save_ifs"
  fi
  fi
! CC="$ac_cv_prog_CC"
  if test -n "$CC"; then
!   echo "$ac_t""$CC" 1>&6
  else
!   echo "$ac_t""no" 1>&6
  fi
!  ;;
!     esac
    fi
!   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  fi
  
! echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
! echo "configure:997: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  
! ac_ext=c
! # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
! ac_cpp='$CPP $CPPFLAGS'
! ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! cross_compiling=$ac_cv_prog_cc_cross
  
! cat > conftest.$ac_ext << EOF
  
! #line 1008 "configure"
  #include "confdefs.h"
  
! main(){return(0);}
! EOF
! if { (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   ac_cv_prog_cc_works=yes
!   # If we can't run a trivial program, we are probably using a cross compiler.
!   if (./conftest; exit) 2>/dev/null; then
!     ac_cv_prog_cc_cross=no
    else
!     ac_cv_prog_cc_cross=yes
    fi
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   ac_cv_prog_cc_works=no
  fi
! rm -fr conftest*
  ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  ac_cpp='$CPP $CPPFLAGS'
! ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! cross_compiling=$ac_cv_prog_cc_cross
  
- echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
- if test $ac_cv_prog_cc_works = no; then
-   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- echo "configure:1039: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
- cross_compiling=$ac_cv_prog_cc_cross
  
! echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
! echo "configure:1044: checking whether we are using GNU C" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   cat > conftest.c <<EOF
! #ifdef __GNUC__
!   yes;
  #endif
! EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
!   ac_cv_prog_gcc=yes
  else
!   ac_cv_prog_gcc=no
  fi
  fi
  
! echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  
! if test $ac_cv_prog_gcc = yes; then
!   GCC=yes
  else
!   GCC=
  fi
  
! ac_test_CFLAGS="${CFLAGS+set}"
! ac_save_CFLAGS="$CFLAGS"
! CFLAGS=
! echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! echo "configure:1072: checking whether ${CC-cc} accepts -g" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   echo 'void f(){}' > conftest.c
! if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
!   ac_cv_prog_cc_g=yes
  else
!   ac_cv_prog_cc_g=no
  fi
! rm -f conftest*
  
  fi
  
! echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  if test "$ac_test_CFLAGS" = set; then
!   CFLAGS="$ac_save_CFLAGS"
  elif test $ac_cv_prog_cc_g = yes; then
    if test "$GCC" = yes; then
      CFLAGS="-g -O2"
--- 1302,2885 ----
      ac_aux_dir=$ac_dir
      ac_install_sh="$ac_aux_dir/install.sh -c"
      break
+   elif test -f $ac_dir/shtool; then
+     ac_aux_dir=$ac_dir
+     ac_install_sh="$ac_aux_dir/shtool install -c"
+     break
    fi
  done
  if test -z "$ac_aux_dir"; then
!   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
! echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
!    { (exit 1); exit 1; }; }
! fi
! ac_config_guess="$SHELL $ac_aux_dir/config.guess"
! ac_config_sub="$SHELL $ac_aux_dir/config.sub"
! ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  
  # Make sure we can run config.sub.
! $ac_config_sub sun4 >/dev/null 2>&1 ||
!   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
! echo "$as_me: error: cannot run $ac_config_sub" >&2;}
!    { (exit 1); exit 1; }; }
! 
! echo "$as_me:$LINENO: checking build system type" >&5
! echo $ECHO_N "checking build system type... $ECHO_C" >&6
! if test "${ac_cv_build+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_cv_build_alias=$build_alias
! test -z "$ac_cv_build_alias" &&
!   ac_cv_build_alias=`$ac_config_guess`
! test -z "$ac_cv_build_alias" &&
!   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
!    { (exit 1); exit 1; }; }
! ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
!   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
! echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
!    { (exit 1); exit 1; }; }
! 
! fi
! echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! echo "${ECHO_T}$ac_cv_build" >&6
! build=$ac_cv_build
! build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 
! 
! echo "$as_me:$LINENO: checking host system type" >&5
! echo $ECHO_N "checking host system type... $ECHO_C" >&6
! if test "${ac_cv_host+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_cv_host_alias=$host_alias
! test -z "$ac_cv_host_alias" &&
!   ac_cv_host_alias=$ac_cv_build_alias
! ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
!   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
! echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
!    { (exit 1); exit 1; }; }
! 
! fi
! echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! echo "${ECHO_T}$ac_cv_host" >&6
! host=$ac_cv_host
! host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 
! 
! echo "$as_me:$LINENO: checking target system type" >&5
! echo $ECHO_N "checking target system type... $ECHO_C" >&6
! if test "${ac_cv_target+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_cv_target_alias=$target_alias
! test "x$ac_cv_target_alias" = "x" &&
!   ac_cv_target_alias=$ac_cv_host_alias
! ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
!   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
! echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
!    { (exit 1); exit 1; }; }
! 
! fi
! echo "$as_me:$LINENO: result: $ac_cv_target" >&5
! echo "${ECHO_T}$ac_cv_target" >&6
! target=$ac_cv_target
! target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  
  
  # The aliases save the names the user supplied, while $host etc.
  # will get canonicalized.
! test -n "$target_alias" &&
!   test "$program_prefix$program_suffix$program_transform_name" = \
!     NONENONEs,x,x, &&
!   program_prefix=${target_alias}-
  
  for ac_prog in 'bison -y' byacc
  do
!   # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_YACC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    if test -n "$YACC"; then
    ac_cv_prog_YACC="$YACC" # Let the user override the test.
  else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_YACC="$ac_prog"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
  fi
  fi
! YACC=$ac_cv_prog_YACC
  if test -n "$YACC"; then
!   echo "$as_me:$LINENO: result: $YACC" >&5
! echo "${ECHO_T}$YACC" >&6
  else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
  fi
  
!   test -n "$YACC" && break
  done
  test -n "$YACC" || YACC="yacc"
  
! ac_ext=c
! ac_cpp='$CPP $CPPFLAGS'
! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! ac_compiler_gnu=$ac_cv_c_compiler_gnu
! if test -n "$ac_tool_prefix"; then
!   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
! set dummy ${ac_tool_prefix}gcc; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   if test -n "$CC"; then
!   ac_cv_prog_CC="$CC" # Let the user override the test.
  else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_CC="${ac_tool_prefix}gcc"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
  fi
  fi
! CC=$ac_cv_prog_CC
! if test -n "$CC"; then
!   echo "$as_me:$LINENO: result: $CC" >&5
! echo "${ECHO_T}$CC" >&6
  else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
  fi
  
  fi
! if test -z "$ac_cv_prog_CC"; then
!   ac_ct_CC=$CC
!   # Extract the first word of "gcc", so it can be a program name with args.
! set dummy gcc; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   if test -n "$ac_ct_CC"; then
!   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_ac_ct_CC="gcc"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
  
  fi
! fi
! ac_ct_CC=$ac_cv_prog_ac_ct_CC
! if test -n "$ac_ct_CC"; then
!   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! echo "${ECHO_T}$ac_ct_CC" >&6
  else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
  fi
  
+   CC=$ac_ct_CC
+ else
+   CC="$ac_cv_prog_CC"
  fi
  
! if test -z "$CC"; then
!   if test -n "$ac_tool_prefix"; then
!   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
! set dummy ${ac_tool_prefix}cc; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    if test -n "$CC"; then
    ac_cv_prog_CC="$CC" # Let the user override the test.
  else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_CC="${ac_tool_prefix}cc"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
  fi
  fi
! CC=$ac_cv_prog_CC
  if test -n "$CC"; then
!   echo "$as_me:$LINENO: result: $CC" >&5
! echo "${ECHO_T}$CC" >&6
  else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
  fi
  
+ fi
+ if test -z "$ac_cv_prog_CC"; then
+   ac_ct_CC=$CC
+   # Extract the first word of "cc", so it can be a program name with args.
+ set dummy cc; ac_word=$2
+ echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+ if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   if test -n "$ac_ct_CC"; then
+   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+ else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+ for as_dir in $PATH
+ do
+   IFS=$as_save_IFS
+   test -z "$as_dir" && as_dir=.
+   for ac_exec_ext in '' $ac_executable_extensions; do
+   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+     ac_cv_prog_ac_ct_CC="cc"
+     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+     break 2
+   fi
+ done
+ done
+ 
+ fi
+ fi
+ ac_ct_CC=$ac_cv_prog_ac_ct_CC
+ if test -n "$ac_ct_CC"; then
+   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+ echo "${ECHO_T}$ac_ct_CC" >&6
+ else
+   echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+ fi
+ 
+   CC=$ac_ct_CC
+ else
+   CC="$ac_cv_prog_CC"
+ fi
+ 
+ fi
  if test -z "$CC"; then
    # Extract the first word of "cc", so it can be a program name with args.
  set dummy cc; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    if test -n "$CC"; then
    ac_cv_prog_CC="$CC" # Let the user override the test.
  else
    ac_prog_rejected=no
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
!        ac_prog_rejected=yes
!        continue
!      fi
!     ac_cv_prog_CC="cc"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
  if test $ac_prog_rejected = yes; then
    # We found a bogon in the path, so make sure we never use it.
    set dummy $ac_cv_prog_CC
    shift
!   if test $# != 0; then
      # We chose a different compiler from the bogus one.
      # However, it has the same basename, so the bogon will be chosen
      # first if we set CC to just the basename; use the full file name.
      shift
!     set dummy "$as_dir/$ac_word" ${1+"$@"}
      shift
      ac_cv_prog_CC="$@"
    fi
  fi
  fi
  fi
! CC=$ac_cv_prog_CC
  if test -n "$CC"; then
!   echo "$as_me:$LINENO: result: $CC" >&5
! echo "${ECHO_T}$CC" >&6
  else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
  fi
  
! fi
! if test -z "$CC"; then
!   if test -n "$ac_tool_prefix"; then
!   for ac_prog in cl
!   do
!     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    if test -n "$CC"; then
    ac_cv_prog_CC="$CC" # Let the user override the test.
  else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
  fi
  fi
! CC=$ac_cv_prog_CC
  if test -n "$CC"; then
!   echo "$as_me:$LINENO: result: $CC" >&5
! echo "${ECHO_T}$CC" >&6
  else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
  fi
! 
!     test -n "$CC" && break
!   done
! fi
! if test -z "$CC"; then
!   ac_ct_CC=$CC
!   for ac_prog in cl
! do
!   # Extract the first word of "$ac_prog", so it can be a program name with args.
! set dummy $ac_prog; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   if test -n "$ac_ct_CC"; then
!   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_ac_ct_CC="$ac_prog"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
    fi
! done
! done
! 
! fi
! fi
! ac_ct_CC=$ac_cv_prog_ac_ct_CC
! if test -n "$ac_ct_CC"; then
!   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! echo "${ECHO_T}$ac_ct_CC" >&6
! else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
  fi
  
!   test -n "$ac_ct_CC" && break
! done
  
!   CC=$ac_ct_CC
! fi
  
! fi
  
! 
! test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
! echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
!    { (exit 1); exit 1; }; }
! 
! # Provide some information about the compiler.
! echo "$as_me:$LINENO:" \
!      "checking for C compiler version" >&5
! ac_compiler=`set X $ac_compile; echo $2`
! { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
!   (eval $ac_compiler --version </dev/null >&5) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }
! { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
!   (eval $ac_compiler -v </dev/null >&5) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }
! { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
!   (eval $ac_compiler -V </dev/null >&5) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }
! 
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
  
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! 
!   ;
!   return 0;
! }
! _ACEOF
! ac_clean_files_save=$ac_clean_files
! ac_clean_files="$ac_clean_files a.out a.exe"
! # Try to create an executable without -o first, disregard a.out.
! # It will help us diagnose broken compilers, and finding out an intuition
! # of exeext.
! echo "$as_me:$LINENO: checking for C compiler default output" >&5
! echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
! ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
!   (eval $ac_link_default) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; then
!   # Find the output, starting from the most likely.  This scheme is
! # not robust to junk in `.', hence go to wildcards (a.*) only as a last
! # resort.
! 
! # Be careful to initialize this variable, since it used to be cached.
! # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
! ac_cv_exeext=
! for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
!                 ls a.out conftest 2>/dev/null;
!                 ls a.* conftest.* 2>/dev/null`; do
!   case $ac_file in
!     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
!     a.out ) # We found the default executable, but exeext='' is most
!             # certainly right.
!             break;;
!     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
!           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
!           export ac_cv_exeext
!           break;;
!     * ) break;;
!   esac
! done
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
! echo "$as_me: error: C compiler cannot create executables" >&2;}
!    { (exit 77); exit 77; }; }
! fi
! 
! ac_exeext=$ac_cv_exeext
! echo "$as_me:$LINENO: result: $ac_file" >&5
! echo "${ECHO_T}$ac_file" >&6
! 
! # Check the compiler produces executables we can run.  If not, either
! # the compiler is broken, or we cross compile.
! echo "$as_me:$LINENO: checking whether the C compiler works" >&5
! echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
! # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
! # If not cross compiling, check that we can run a simple program.
! if test "$cross_compiling" != yes; then
!   if { ac_try='./$ac_file'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!     cross_compiling=no
    else
!     if test "$cross_compiling" = maybe; then
! 	cross_compiling=yes
!     else
! 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
! If you meant to cross compile, use \`--host'." >&5
! echo "$as_me: error: cannot run C compiled programs.
! If you meant to cross compile, use \`--host'." >&2;}
!    { (exit 1); exit 1; }; }
!     fi
    fi
+ fi
+ echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ 
+ rm -f a.out a.exe conftest$ac_cv_exeext
+ ac_clean_files=$ac_clean_files_save
+ # Check the compiler produces executables we can run.  If not, either
+ # the compiler is broken, or we cross compile.
+ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
+ echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
+ echo "$as_me:$LINENO: result: $cross_compiling" >&5
+ echo "${ECHO_T}$cross_compiling" >&6
+ 
+ echo "$as_me:$LINENO: checking for suffix of executables" >&5
+ echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+   (eval $ac_link) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); }; then
+   # If both `conftest.exe' and `conftest' are `present' (well, observable)
+ # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
+ # work properly (i.e., refer to `conftest.exe'), while it won't with
+ # `rm'.
+ for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
+   case $ac_file in
+     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
+     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+           export ac_cv_exeext
+           break;;
+     * ) break;;
+   esac
+ done
  else
!   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
! echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
!    { (exit 1); exit 1; }; }
! fi
! 
! rm -f conftest$ac_cv_exeext
! echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! echo "${ECHO_T}$ac_cv_exeext" >&6
! 
! rm -f conftest.$ac_ext
! EXEEXT=$ac_cv_exeext
! ac_exeext=$EXEEXT
! echo "$as_me:$LINENO: checking for suffix of object files" >&5
! echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
! if test "${ac_cv_objext+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! 
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! 
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.o conftest.obj
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; then
!   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
!   case $ac_file in
!     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
!     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
!        break;;
!   esac
! done
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
! echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
!    { (exit 1); exit 1; }; }
! fi
! 
! rm -f conftest.$ac_cv_objext conftest.$ac_ext
! fi
! echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! echo "${ECHO_T}$ac_cv_objext" >&6
! OBJEXT=$ac_cv_objext
! ac_objext=$OBJEXT
! echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
! if test "${ac_cv_c_compiler_gnu+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! 
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! #ifndef __GNUC__
!        choke me
! #endif
! 
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_compiler_gnu=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_compiler_gnu=no
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! ac_cv_c_compiler_gnu=$ac_compiler_gnu
! 
! fi
! echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
! GCC=`test $ac_compiler_gnu = yes && echo yes`
! ac_test_CFLAGS=${CFLAGS+set}
! ac_save_CFLAGS=$CFLAGS
! CFLAGS="-g"
! echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
! if test "${ac_cv_prog_cc_g+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! 
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! 
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_prog_cc_g=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_cv_prog_cc_g=no
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! fi
! echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
! if test "$ac_test_CFLAGS" = set; then
!   CFLAGS=$ac_save_CFLAGS
! elif test $ac_cv_prog_cc_g = yes; then
!   if test "$GCC" = yes; then
!     CFLAGS="-g -O2"
!   else
!     CFLAGS="-g"
!   fi
! else
!   if test "$GCC" = yes; then
!     CFLAGS="-O2"
!   else
!     CFLAGS=
!   fi
! fi
! # Some people use a C++ compiler to compile C.  Since we use `exit',
! # in C++ we need to declare it.  In case someone uses the same compiler
! # for both compiling C and C++ we need to have the C++ compiler decide
! # the declaration of exit, since it's the most demanding environment.
! cat >conftest.$ac_ext <<_ACEOF
! #ifndef __cplusplus
!   choke me
! #endif
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   for ac_declaration in \
!    ''\
!    '#include <stdlib.h>' \
!    'extern "C" void std::exit (int) throw (); using std::exit;' \
!    'extern "C" void std::exit (int); using std::exit;' \
!    'extern "C" void exit (int) throw ();' \
!    'extern "C" void exit (int);' \
!    'void exit (int);'
! do
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! #include <stdlib.h>
! $ac_declaration
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! exit (42);
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   :
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! continue
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! $ac_declaration
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! exit (42);
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   break
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! done
! rm -f conftest*
! if test -n "$ac_declaration"; then
!   echo '#ifdef __cplusplus' >>confdefs.h
!   echo $ac_declaration      >>confdefs.h
!   echo '#endif'             >>confdefs.h
! fi
! 
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
  ac_ext=c
  ac_cpp='$CPP $CPPFLAGS'
! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! ac_compiler_gnu=$ac_cv_c_compiler_gnu
  
  
! for ac_prog in flex lex
! do
!   # Extract the first word of "$ac_prog", so it can be a program name with args.
! set dummy $ac_prog; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_LEX+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   if test -n "$LEX"; then
!   ac_cv_prog_LEX="$LEX" # Let the user override the test.
! else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_LEX="$ac_prog"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
! fi
! fi
! LEX=$ac_cv_prog_LEX
! if test -n "$LEX"; then
!   echo "$as_me:$LINENO: result: $LEX" >&5
! echo "${ECHO_T}$LEX" >&6
  else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
! fi
! 
!   test -n "$LEX" && break
! done
! test -n "$LEX" || LEX=":"
! 
! if test -z "$LEXLIB"
! then
!   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
! echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
! if test "${ac_cv_lib_fl_yywrap+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_check_lib_save_LIBS=$LIBS
! LIBS="-lfl  $LIBS"
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! 
! /* Override any gcc2 internal prototype to avoid an error.  */
! #ifdef __cplusplus
! extern "C"
  #endif
! /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char yywrap ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! yywrap ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_lib_fl_yywrap=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_cv_lib_fl_yywrap=no
! fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! LIBS=$ac_check_lib_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
! echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
! if test $ac_cv_lib_fl_yywrap = yes; then
!   LEXLIB="-lfl"
! else
!   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
! echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
! if test "${ac_cv_lib_l_yywrap+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_check_lib_save_LIBS=$LIBS
! LIBS="-ll  $LIBS"
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! 
! /* Override any gcc2 internal prototype to avoid an error.  */
! #ifdef __cplusplus
! extern "C"
! #endif
! /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char yywrap ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! yywrap ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_lib_l_yywrap=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_cv_lib_l_yywrap=no
! fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! LIBS=$ac_check_lib_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
! echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
! if test $ac_cv_lib_l_yywrap = yes; then
!   LEXLIB="-ll"
! fi
! 
! fi
! 
! fi
! 
! if test "x$LEX" != "x:"; then
!   echo "$as_me:$LINENO: checking lex output file root" >&5
! echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
! if test "${ac_cv_prog_lex_root+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   # The minimal lex program is just a single line: %%.  But some broken lexes
! # (Solaris, I think it was) want two %% lines, so accommodate them.
! cat >conftest.l <<_ACEOF
! %%
! %%
! _ACEOF
! { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
!   (eval $LEX conftest.l) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }
! if test -f lex.yy.c; then
!   ac_cv_prog_lex_root=lex.yy
! elif test -f lexyy.c; then
!   ac_cv_prog_lex_root=lexyy
! else
!   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
! echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
!    { (exit 1); exit 1; }; }
! fi
! fi
! echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
! echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
! rm -f conftest.l
! LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
! 
! echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
! echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
! if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   # POSIX says lex can declare yytext either as a pointer or an array; the
! # default is implementation-dependent. Figure out which it is, since
! # not all implementations provide the %pointer and %array declarations.
! ac_cv_prog_lex_yytext_pointer=no
! echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
! ac_save_LIBS=$LIBS
! LIBS="$LIBS $LEXLIB"
! cat >conftest.$ac_ext <<_ACEOF
! `cat $LEX_OUTPUT_ROOT.c`
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_prog_lex_yytext_pointer=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! LIBS=$ac_save_LIBS
! rm -f "${LEX_OUTPUT_ROOT}.c"
! 
! fi
! echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
! echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
! if test $ac_cv_prog_lex_yytext_pointer = yes; then
! 
! cat >>confdefs.h <<\_ACEOF
! #define YYTEXT_POINTER 1
! _ACEOF
! 
! fi
! 
! fi
! ac_ext=c
! ac_cpp='$CPP $CPPFLAGS'
! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! ac_compiler_gnu=$ac_cv_c_compiler_gnu
! if test -n "$ac_tool_prefix"; then
!   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
! set dummy ${ac_tool_prefix}gcc; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   if test -n "$CC"; then
!   ac_cv_prog_CC="$CC" # Let the user override the test.
! else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_CC="${ac_tool_prefix}gcc"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
  fi
  fi
+ CC=$ac_cv_prog_CC
+ if test -n "$CC"; then
+   echo "$as_me:$LINENO: result: $CC" >&5
+ echo "${ECHO_T}$CC" >&6
+ else
+   echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+ fi
+ 
+ fi
+ if test -z "$ac_cv_prog_CC"; then
+   ac_ct_CC=$CC
+   # Extract the first word of "gcc", so it can be a program name with args.
+ set dummy gcc; ac_word=$2
+ echo "$as_me:$LINENO: checking for $ac_word" >&5
+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+ if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   if test -n "$ac_ct_CC"; then
+   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+ else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+ for as_dir in $PATH
+ do
+   IFS=$as_save_IFS
+   test -z "$as_dir" && as_dir=.
+   for ac_exec_ext in '' $ac_executable_extensions; do
+   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+     ac_cv_prog_ac_ct_CC="gcc"
+     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+     break 2
+   fi
+ done
+ done
  
! fi
! fi
! ac_ct_CC=$ac_cv_prog_ac_ct_CC
! if test -n "$ac_ct_CC"; then
!   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! echo "${ECHO_T}$ac_ct_CC" >&6
! else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
! fi
  
!   CC=$ac_ct_CC
  else
!   CC="$ac_cv_prog_CC"
  fi
  
! if test -z "$CC"; then
!   if test -n "$ac_tool_prefix"; then
!   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
! set dummy ${ac_tool_prefix}cc; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   if test -n "$CC"; then
!   ac_cv_prog_CC="$CC" # Let the user override the test.
  else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_CC="${ac_tool_prefix}cc"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
  fi
! fi
! CC=$ac_cv_prog_CC
! if test -n "$CC"; then
!   echo "$as_me:$LINENO: result: $CC" >&5
! echo "${ECHO_T}$CC" >&6
! else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
! fi
! 
! fi
! if test -z "$ac_cv_prog_CC"; then
!   ac_ct_CC=$CC
!   # Extract the first word of "cc", so it can be a program name with args.
! set dummy cc; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   if test -n "$ac_ct_CC"; then
!   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_ac_ct_CC="cc"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
! fi
! fi
! ac_ct_CC=$ac_cv_prog_ac_ct_CC
! if test -n "$ac_ct_CC"; then
!   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! echo "${ECHO_T}$ac_ct_CC" >&6
! else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
! fi
! 
!   CC=$ac_ct_CC
! else
!   CC="$ac_cv_prog_CC"
! fi
! 
! fi
! if test -z "$CC"; then
!   # Extract the first word of "cc", so it can be a program name with args.
! set dummy cc; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   if test -n "$CC"; then
!   ac_cv_prog_CC="$CC" # Let the user override the test.
! else
!   ac_prog_rejected=no
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
!        ac_prog_rejected=yes
!        continue
!      fi
!     ac_cv_prog_CC="cc"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
! if test $ac_prog_rejected = yes; then
!   # We found a bogon in the path, so make sure we never use it.
!   set dummy $ac_cv_prog_CC
!   shift
!   if test $# != 0; then
!     # We chose a different compiler from the bogus one.
!     # However, it has the same basename, so the bogon will be chosen
!     # first if we set CC to just the basename; use the full file name.
!     shift
!     set dummy "$as_dir/$ac_word" ${1+"$@"}
!     shift
!     ac_cv_prog_CC="$@"
!   fi
! fi
! fi
! fi
! CC=$ac_cv_prog_CC
! if test -n "$CC"; then
!   echo "$as_me:$LINENO: result: $CC" >&5
! echo "${ECHO_T}$CC" >&6
! else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
! fi
! 
! fi
! if test -z "$CC"; then
!   if test -n "$ac_tool_prefix"; then
!   for ac_prog in cl
!   do
!     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   if test -n "$CC"; then
!   ac_cv_prog_CC="$CC" # Let the user override the test.
! else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
! fi
! fi
! CC=$ac_cv_prog_CC
! if test -n "$CC"; then
!   echo "$as_me:$LINENO: result: $CC" >&5
! echo "${ECHO_T}$CC" >&6
! else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
! fi
! 
!     test -n "$CC" && break
!   done
! fi
! if test -z "$CC"; then
!   ac_ct_CC=$CC
!   for ac_prog in cl
! do
!   # Extract the first word of "$ac_prog", so it can be a program name with args.
! set dummy $ac_prog; ac_word=$2
! echo "$as_me:$LINENO: checking for $ac_word" >&5
! echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   if test -n "$ac_ct_CC"; then
!   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! else
! as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   for ac_exec_ext in '' $ac_executable_extensions; do
!   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_ac_ct_CC="$ac_prog"
!     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
!     break 2
!   fi
! done
! done
! 
! fi
! fi
! ac_ct_CC=$ac_cv_prog_ac_ct_CC
! if test -n "$ac_ct_CC"; then
!   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! echo "${ECHO_T}$ac_ct_CC" >&6
! else
!   echo "$as_me:$LINENO: result: no" >&5
! echo "${ECHO_T}no" >&6
! fi
! 
!   test -n "$ac_ct_CC" && break
! done
  
+   CC=$ac_ct_CC
  fi
  
! fi
! 
! 
! test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
! echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
!    { (exit 1); exit 1; }; }
! 
! # Provide some information about the compiler.
! echo "$as_me:$LINENO:" \
!      "checking for C compiler version" >&5
! ac_compiler=`set X $ac_compile; echo $2`
! { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
!   (eval $ac_compiler --version </dev/null >&5) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }
! { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
!   (eval $ac_compiler -v </dev/null >&5) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }
! { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
!   (eval $ac_compiler -V </dev/null >&5) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }
! 
! echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
! if test "${ac_cv_c_compiler_gnu+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! 
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! #ifndef __GNUC__
!        choke me
! #endif
! 
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_compiler_gnu=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_compiler_gnu=no
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! ac_cv_c_compiler_gnu=$ac_compiler_gnu
! 
! fi
! echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
! GCC=`test $ac_compiler_gnu = yes && echo yes`
! ac_test_CFLAGS=${CFLAGS+set}
! ac_save_CFLAGS=$CFLAGS
! CFLAGS="-g"
! echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
! if test "${ac_cv_prog_cc_g+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! 
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! 
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_prog_cc_g=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_cv_prog_cc_g=no
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! fi
! echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  if test "$ac_test_CFLAGS" = set; then
!   CFLAGS=$ac_save_CFLAGS
  elif test $ac_cv_prog_cc_g = yes; then
    if test "$GCC" = yes; then
      CFLAGS="-g -O2"
***************
*** 1098,1103 ****
--- 2893,3020 ----
      CFLAGS=
    fi
  fi
+ # Some people use a C++ compiler to compile C.  Since we use `exit',
+ # in C++ we need to declare it.  In case someone uses the same compiler
+ # for both compiling C and C++ we need to have the C++ compiler decide
+ # the declaration of exit, since it's the most demanding environment.
+ cat >conftest.$ac_ext <<_ACEOF
+ #ifndef __cplusplus
+   choke me
+ #endif
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+   (eval $ac_compile) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } &&
+          { ac_try='test -s conftest.$ac_objext'
+   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+   (eval $ac_try) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); }; }; then
+   for ac_declaration in \
+    ''\
+    '#include <stdlib.h>' \
+    'extern "C" void std::exit (int) throw (); using std::exit;' \
+    'extern "C" void std::exit (int); using std::exit;' \
+    'extern "C" void exit (int) throw ();' \
+    'extern "C" void exit (int);' \
+    'void exit (int);'
+ do
+   cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+ #include <stdlib.h>
+ $ac_declaration
+ #ifdef F77_DUMMY_MAIN
+ #  ifdef __cplusplus
+      extern "C"
+ #  endif
+    int F77_DUMMY_MAIN() { return 1; }
+ #endif
+ int
+ main ()
+ {
+ exit (42);
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+   (eval $ac_compile) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } &&
+          { ac_try='test -s conftest.$ac_objext'
+   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+   (eval $ac_try) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); }; }; then
+   :
+ else
+   echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ continue
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+   cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+ $ac_declaration
+ #ifdef F77_DUMMY_MAIN
+ #  ifdef __cplusplus
+      extern "C"
+ #  endif
+    int F77_DUMMY_MAIN() { return 1; }
+ #endif
+ int
+ main ()
+ {
+ exit (42);
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+   (eval $ac_compile) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } &&
+          { ac_try='test -s conftest.$ac_objext'
+   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+   (eval $ac_try) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); }; }; then
+   break
+ else
+   echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ done
+ rm -f conftest*
+ if test -n "$ac_declaration"; then
+   echo '#ifdef __cplusplus' >>confdefs.h
+   echo $ac_declaration      >>confdefs.h
+   echo '#endif'             >>confdefs.h
+ fi
+ 
+ else
+   echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ ac_ext=c
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  
  # Find a good install program.  We prefer a C program (faster),
  # so one script is as good as another.  But avoid the broken or
***************
*** 1106,1405 ****
  # SunOS /usr/etc/install
  # IRIX /sbin/install
  # AIX /bin/install
  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # ./install, which can be erroneously created by make from ./install.sh.
! echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
! echo "configure:1115: checking for a BSD compatible install" >&5
  if test -z "$INSTALL"; then
! if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
!   for ac_dir in $PATH; do
!     # Account for people who put trailing slashes in PATH elements.
!     case "$ac_dir/" in
!     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
!     *)
!       # OSF1 and SCO ODT 3.0 have their own names for install.
!       # Don't use installbsd from OSF since it installs stuff as root
!       # by default.
!       for ac_prog in ginstall scoinst install; do
!         if test -f $ac_dir/$ac_prog; then
! 	  if test $ac_prog = install &&
!             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
! 	    # AIX install.  It has an incompatible calling convention.
! 	    :
! 	  else
! 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
! 	    break 2
! 	  fi
! 	fi
        done
!       ;;
!     esac
!   done
!   IFS="$ac_save_IFS"
  
  fi
    if test "${ac_cv_path_install+set}" = set; then
!     INSTALL="$ac_cv_path_install"
    else
      # As a last resort, use the slow shell script.  We don't cache a
      # path for INSTALL within a source directory, because that will
      # break other packages using the cache if that directory is
      # removed, or if the path is relative.
!     INSTALL="$ac_install_sh"
    fi
  fi
! echo "$ac_t""$INSTALL" 1>&6
  
  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  # It thinks the first close brace ends the variable substitution.
  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  
! test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  
  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  
  
! echo $ac_n "checking for working const""... $ac_c" 1>&6
! echo "configure:1169: checking for working const" >&5
! if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   cat > conftest.$ac_ext <<EOF
! #line 1174 "configure"
! #include "confdefs.h"
! 
! int main() {
! 
! /* Ultrix mips cc rejects this.  */
! typedef int charset[2]; const charset x;
! /* SunOS 4.1.1 cc rejects this.  */
! char const *const *ccp;
! char **p;
! /* NEC SVR4.0.2 mips cc rejects this.  */
! struct point {int x, y;};
! static struct point const zero = {0,0};
! /* AIX XL C 1.02.0.0 rejects this.
!    It does not let you subtract one const X* pointer from another in an arm
!    of an if-expression whose if-part is not a constant expression */
! const char *g = "string";
! ccp = &g + (g ? g-g : 0);
! /* HPUX 7.0 cc rejects these. */
! ++ccp;
! p = (char**) ccp;
! ccp = (char const *const *) p;
! { /* SCO 3.2v4 cc rejects this.  */
!   char *t;
!   char const *s = 0 ? (char *) 0 : (char const *) 0;
! 
!   *t++ = 0;
! }
! { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
!   int x[] = {25, 17};
!   const int *foo = &x[0];
!   ++foo;
! }
! { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
!   typedef const int *iptr;
!   iptr p = 0;
!   ++p;
! }
! { /* AIX XL C 1.02.0.0 rejects this saying
!      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
!   struct s { int j; const int *ap[3]; };
!   struct s *b; b->j = 5;
! }
! { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
!   const int foo = 10;
! }
! 
! ; return 0; }
! EOF
! if { (eval echo configure:1223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
!   rm -rf conftest*
!   ac_cv_c_const=yes
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   ac_cv_c_const=no
  fi
! rm -f conftest*
  fi
  
! echo "$ac_t""$ac_cv_c_const" 1>&6
  if test $ac_cv_c_const = no; then
!   cat >> confdefs.h <<\EOF
! #define const 
! EOF
  
  fi
  
! echo $ac_n "checking for inline""... $ac_c" 1>&6
! echo "configure:1244: checking for inline" >&5
! if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_cv_c_inline=no
  for ac_kw in inline __inline__ __inline; do
!   cat > conftest.$ac_ext <<EOF
! #line 1251 "configure"
  #include "confdefs.h"
  
! int main() {
! } $ac_kw foo() {
! ; return 0; }
! EOF
! if { (eval echo configure:1258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
!   rm -rf conftest*
    ac_cv_c_inline=$ac_kw; break
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
  done
  
  fi
! 
! echo "$ac_t""$ac_cv_c_inline" 1>&6
! case "$ac_cv_c_inline" in
    inline | yes) ;;
!   no) cat >> confdefs.h <<\EOF
! #define inline 
! EOF
   ;;
!   *)  cat >> confdefs.h <<EOF
  #define inline $ac_cv_c_inline
! EOF
   ;;
  esac
  
  
! echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
! echo "configure:1285: checking how to run the C preprocessor" >&5
! # On Suns, sometimes $CPP names a directory.
! if test -n "$CPP" && test -d "$CPP"; then
!   CPP=
  fi
! if test -z "$CPP"; then
! if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!     # This must be in double quotes, not single quotes, because CPP may get
!   # substituted into the Makefile and "${CC-cc}" will confuse make.
!   CPP="${CC-cc} -E"
    # On the NeXT, cc -E runs the code through the compiler's parser,
!   # not just through cpp.
!   cat > conftest.$ac_ext <<EOF
! #line 1300 "configure"
  #include "confdefs.h"
  #include <assert.h>
! Syntax Error
! EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! if test -z "$ac_err"; then
!   :
  else
!   echo "$ac_err" >&5
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   CPP="${CC-cc} -E -traditional-cpp"
!   cat > conftest.$ac_ext <<EOF
! #line 1317 "configure"
! #include "confdefs.h"
! #include <assert.h>
! Syntax Error
! EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! if test -z "$ac_err"; then
    :
  else
!   echo "$ac_err" >&5
!   echo "configure: failed program was:" >&5
    cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   CPP="${CC-cc} -nologo -E"
!   cat > conftest.$ac_ext <<EOF
! #line 1334 "configure"
  #include "confdefs.h"
! #include <assert.h>
! Syntax Error
! EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! if test -z "$ac_err"; then
!   :
  else
!   echo "$ac_err" >&5
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   CPP=/lib/cpp
! fi
! rm -f conftest*
! fi
! rm -f conftest*
  fi
! rm -f conftest*
!   ac_cv_prog_CPP="$CPP"
  fi
!   CPP="$ac_cv_prog_CPP"
  else
!   ac_cv_prog_CPP="$CPP"
  fi
- echo "$ac_t""$CPP" 1>&6
  
! echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! echo "configure:1365: checking for ANSI C header files" >&5
! if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   cat > conftest.$ac_ext <<EOF
! #line 1370 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
  #include <string.h>
  #include <float.h>
! EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! if test -z "$ac_err"; then
!   rm -rf conftest*
    ac_cv_header_stdc=yes
  else
!   echo "$ac_err" >&5
!   echo "configure: failed program was:" >&5
    cat conftest.$ac_ext >&5
-   rm -rf conftest*
    ac_cv_header_stdc=no
  fi
! rm -f conftest*
  
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! cat > conftest.$ac_ext <<EOF
! #line 1395 "configure"
  #include "confdefs.h"
  #include <string.h>
! EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    egrep "memchr" >/dev/null 2>&1; then
    :
  else
-   rm -rf conftest*
    ac_cv_header_stdc=no
  fi
  rm -f conftest*
--- 3023,3600 ----
  # SunOS /usr/etc/install
  # IRIX /sbin/install
  # AIX /bin/install
+ # AmigaOS /C/install, which installs bootblocks on floppy discs
  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # ./install, which can be erroneously created by make from ./install.sh.
! echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  if test -z "$INSTALL"; then
! if test "${ac_cv_path_install+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
! do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   # Account for people who put trailing slashes in PATH elements.
! case $as_dir/ in
!   ./ | .// | /cC/* | \
!   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
!   /usr/ucb/* ) ;;
!   *)
!     # OSF1 and SCO ODT 3.0 have their own names for install.
!     # Don't use installbsd from OSF since it installs stuff as root
!     # by default.
!     for ac_prog in ginstall scoinst install; do
!       for ac_exec_ext in '' $ac_executable_extensions; do
!         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
!           if test $ac_prog = install &&
!             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
!             # AIX install.  It has an incompatible calling convention.
!             :
!           elif test $ac_prog = install &&
!             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
!             # program-specific install script used by HP pwplus--don't use.
!             :
!           else
!             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
!             break 3
!           fi
!         fi
        done
!     done
!     ;;
! esac
! done
! 
  
  fi
    if test "${ac_cv_path_install+set}" = set; then
!     INSTALL=$ac_cv_path_install
    else
      # As a last resort, use the slow shell script.  We don't cache a
      # path for INSTALL within a source directory, because that will
      # break other packages using the cache if that directory is
      # removed, or if the path is relative.
!     INSTALL=$ac_install_sh
    fi
  fi
! echo "$as_me:$LINENO: result: $INSTALL" >&5
! echo "${ECHO_T}$INSTALL" >&6
  
  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  # It thinks the first close brace ends the variable substitution.
  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  
! test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  
  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  
  
! echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
! echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
! if test "${ac_cv_prog_cc_stdc+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_cv_prog_cc_stdc=no
! ac_save_CC=$CC
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! #include <stdarg.h>
! #include <stdio.h>
! #include <sys/types.h>
! #include <sys/stat.h>
! /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
! struct buf { int x; };
! FILE * (*rcsopen) (struct buf *, struct stat *, int);
! static char *e (p, i)
!      char **p;
!      int i;
! {
!   return p[i];
! }
! static char *f (char * (*g) (char **, int), char **p, ...)
! {
!   char *s;
!   va_list v;
!   va_start (v,p);
!   s = g (p, va_arg (v,int));
!   va_end (v);
!   return s;
! }
! int test (int i, double x);
! struct s1 {int (*f) (int a);};
! struct s2 {int (*f) (double a);};
! int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! int argc;
! char **argv;
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
!   ;
!   return 0;
! }
! _ACEOF
! # Don't try gcc -ansi; that turns off useful extensions and
! # breaks some systems' header files.
! # AIX			-qlanglvl=ansi
! # Ultrix and OSF/1	-std1
! # HP-UX 10.20 and later	-Ae
! # HP-UX older versions	-Aa -D_HPUX_SOURCE
! # SVR4			-Xc -D__EXTENSIONS__
! for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! do
!   CC="$ac_save_CC $ac_arg"
!   rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_prog_cc_stdc=$ac_arg
! break
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext
! done
! rm -f conftest.$ac_ext conftest.$ac_objext
! CC=$ac_save_CC
! 
  fi
  
! case "x$ac_cv_prog_cc_stdc" in
!   x|xno)
!     echo "$as_me:$LINENO: result: none needed" >&5
! echo "${ECHO_T}none needed" >&6 ;;
!   *)
!     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
! echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
!     CC="$CC $ac_cv_prog_cc_stdc" ;;
! esac
! 
! echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
! echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
! if test "${ac_cv_c_const+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! 
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! /* FIXME: Include the comments suggested by Paul. */
! #ifndef __cplusplus
!   /* Ultrix mips cc rejects this.  */
!   typedef int charset[2];
!   const charset x;
!   /* SunOS 4.1.1 cc rejects this.  */
!   char const *const *ccp;
!   char **p;
!   /* NEC SVR4.0.2 mips cc rejects this.  */
!   struct point {int x, y;};
!   static struct point const zero = {0,0};
!   /* AIX XL C 1.02.0.0 rejects this.
!      It does not let you subtract one const X* pointer from another in
!      an arm of an if-expression whose if-part is not a constant
!      expression */
!   const char *g = "string";
!   ccp = &g + (g ? g-g : 0);
!   /* HPUX 7.0 cc rejects these. */
!   ++ccp;
!   p = (char**) ccp;
!   ccp = (char const *const *) p;
!   { /* SCO 3.2v4 cc rejects this.  */
!     char *t;
!     char const *s = 0 ? (char *) 0 : (char const *) 0;
! 
!     *t++ = 0;
!   }
!   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
!     int x[] = {25, 17};
!     const int *foo = &x[0];
!     ++foo;
!   }
!   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
!     typedef const int *iptr;
!     iptr p = 0;
!     ++p;
!   }
!   { /* AIX XL C 1.02.0.0 rejects this saying
!        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
!     struct s { int j; const int *ap[3]; };
!     struct s *b; b->j = 5;
!   }
!   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
!     const int foo = 10;
!   }
! #endif
! 
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_c_const=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_cv_c_const=no
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! fi
! echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
! echo "${ECHO_T}$ac_cv_c_const" >&6
  if test $ac_cv_c_const = no; then
! 
! cat >>confdefs.h <<\_ACEOF
! #define const
! _ACEOF
  
  fi
  
! echo "$as_me:$LINENO: checking for inline" >&5
! echo $ECHO_N "checking for inline... $ECHO_C" >&6
! if test "${ac_cv_c_inline+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_cv_c_inline=no
  for ac_kw in inline __inline__ __inline; do
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ #ifndef __cplusplus
+ static $ac_kw int static_foo () {return 0; }
+ $ac_kw int foo () {return 0; }
+ #endif
  
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
    ac_cv_c_inline=$ac_kw; break
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest.$ac_ext
  done
  
  fi
! echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
! echo "${ECHO_T}$ac_cv_c_inline" >&6
! case $ac_cv_c_inline in
    inline | yes) ;;
!   no)
! cat >>confdefs.h <<\_ACEOF
! #define inline
! _ACEOF
   ;;
!   *)  cat >>confdefs.h <<_ACEOF
  #define inline $ac_cv_c_inline
! _ACEOF
   ;;
  esac
  
  
! ac_ext=c
! ac_cpp='$CPP $CPPFLAGS'
! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! ac_compiler_gnu=$ac_cv_c_compiler_gnu
! echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
! # On Suns, sometimes $CPP names a directory.
! if test -n "$CPP" && test -d "$CPP"; then
!   CPP=
! fi
! if test -z "$CPP"; then
!   if test "${ac_cv_prog_CPP+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!       # Double quotes because CPP needs to be expanded
!     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
!     do
!       ac_preproc_ok=false
! for ac_c_preproc_warn_flag in '' yes
! do
!   # Use a header file that comes with gcc, so configuring glibc
!   # with a fresh cross-compiler works.
!   # On the NeXT, cc -E runs the code through the compiler's parser,
!   # not just through cpp. "Syntax error" is here to catch this case.
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! #include <assert.h>
!                      Syntax error
! _ACEOF
! if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
!   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
!   ac_status=$?
!   egrep -v '^ *\+' conftest.er1 >conftest.err
!   rm -f conftest.er1
!   cat conftest.err >&5
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } >/dev/null; then
!   if test -s conftest.err; then
!     ac_cpp_err=$ac_c_preproc_warn_flag
!   else
!     ac_cpp_err=
!   fi
! else
!   ac_cpp_err=yes
! fi
! if test -z "$ac_cpp_err"; then
!   :
! else
!   echo "$as_me: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   # Broken: fails on valid input.
! continue
! fi
! rm -f conftest.err conftest.$ac_ext
! 
!   # OK, works on sane cases.  Now check whether non-existent headers
!   # can be detected and how.
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! #include <ac_nonexistent.h>
! _ACEOF
! if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
!   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
!   ac_status=$?
!   egrep -v '^ *\+' conftest.er1 >conftest.err
!   rm -f conftest.er1
!   cat conftest.err >&5
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } >/dev/null; then
!   if test -s conftest.err; then
!     ac_cpp_err=$ac_c_preproc_warn_flag
!   else
!     ac_cpp_err=
!   fi
! else
!   ac_cpp_err=yes
! fi
! if test -z "$ac_cpp_err"; then
!   # Broken: success on invalid input.
! continue
! else
!   echo "$as_me: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   # Passes both tests.
! ac_preproc_ok=:
! break
! fi
! rm -f conftest.err conftest.$ac_ext
! 
! done
! # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! rm -f conftest.err conftest.$ac_ext
! if $ac_preproc_ok; then
!   break
! fi
! 
!     done
!     ac_cv_prog_CPP=$CPP
! 
  fi
!   CPP=$ac_cv_prog_CPP
  else
!   ac_cv_prog_CPP=$CPP
! fi
! echo "$as_me:$LINENO: result: $CPP" >&5
! echo "${ECHO_T}$CPP" >&6
! ac_preproc_ok=false
! for ac_c_preproc_warn_flag in '' yes
! do
!   # Use a header file that comes with gcc, so configuring glibc
!   # with a fresh cross-compiler works.
    # On the NeXT, cc -E runs the code through the compiler's parser,
!   # not just through cpp. "Syntax error" is here to catch this case.
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
  #include <assert.h>
!                      Syntax error
! _ACEOF
! if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
!   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
!   ac_status=$?
!   egrep -v '^ *\+' conftest.er1 >conftest.err
!   rm -f conftest.er1
!   cat conftest.err >&5
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } >/dev/null; then
!   if test -s conftest.err; then
!     ac_cpp_err=$ac_c_preproc_warn_flag
!   else
!     ac_cpp_err=
!   fi
  else
!   ac_cpp_err=yes
! fi
! if test -z "$ac_cpp_err"; then
    :
  else
!   echo "$as_me: failed program was:" >&5
    cat conftest.$ac_ext >&5
!   # Broken: fails on valid input.
! continue
! fi
! rm -f conftest.err conftest.$ac_ext
! 
!   # OK, works on sane cases.  Now check whether non-existent headers
!   # can be detected and how.
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
! #include <ac_nonexistent.h>
! _ACEOF
! if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
!   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
!   ac_status=$?
!   egrep -v '^ *\+' conftest.er1 >conftest.err
!   rm -f conftest.er1
!   cat conftest.err >&5
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } >/dev/null; then
!   if test -s conftest.err; then
!     ac_cpp_err=$ac_c_preproc_warn_flag
!   else
!     ac_cpp_err=
!   fi
  else
!   ac_cpp_err=yes
  fi
! if test -z "$ac_cpp_err"; then
!   # Broken: success on invalid input.
! continue
! else
!   echo "$as_me: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   # Passes both tests.
! ac_preproc_ok=:
! break
  fi
! rm -f conftest.err conftest.$ac_ext
! 
! done
! # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! rm -f conftest.err conftest.$ac_ext
! if $ac_preproc_ok; then
!   :
  else
!   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
! echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
!    { (exit 1); exit 1; }; }
  fi
  
! ac_ext=c
! ac_cpp='$CPP $CPPFLAGS'
! ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 
! 
! echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! if test "${ac_cv_header_stdc+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
  #include <string.h>
  #include <float.h>
! 
! _ACEOF
! if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
!   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
!   ac_status=$?
!   egrep -v '^ *\+' conftest.er1 >conftest.err
!   rm -f conftest.er1
!   cat conftest.err >&5
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } >/dev/null; then
!   if test -s conftest.err; then
!     ac_cpp_err=$ac_c_preproc_warn_flag
!   else
!     ac_cpp_err=
!   fi
! else
!   ac_cpp_err=yes
! fi
! if test -z "$ac_cpp_err"; then
    ac_cv_header_stdc=yes
  else
!   echo "$as_me: failed program was:" >&5
    cat conftest.$ac_ext >&5
    ac_cv_header_stdc=no
  fi
! rm -f conftest.err conftest.$ac_ext
  
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
  #include <string.h>
! 
! _ACEOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    egrep "memchr" >/dev/null 2>&1; then
    :
  else
    ac_cv_header_stdc=no
  fi
  rm -f conftest*
***************
*** 1408,1423 ****
  
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! cat > conftest.$ac_ext <<EOF
! #line 1413 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
! EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    egrep "free" >/dev/null 2>&1; then
    :
  else
-   rm -rf conftest*
    ac_cv_header_stdc=no
  fi
  rm -f conftest*
--- 3603,3618 ----
  
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
  #include <stdlib.h>
! 
! _ACEOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    egrep "free" >/dev/null 2>&1; then
    :
  else
    ac_cv_header_stdc=no
  fi
  rm -f conftest*
***************
*** 1426,1974 ****
  
  if test $ac_cv_header_stdc = yes; then
    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! if test "$cross_compiling" = yes; then
    :
  else
!   cat > conftest.$ac_ext <<EOF
! #line 1434 "configure"
  #include "confdefs.h"
  #include <ctype.h>
! #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! int main () { int i; for (i = 0; i < 256; i++)
! if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
! exit (0); }
  
! EOF
! if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
! then
    :
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -fr conftest*
!   ac_cv_header_stdc=no
  fi
! rm -fr conftest*
  fi
- 
  fi
  fi
! 
! echo "$ac_t""$ac_cv_header_stdc" 1>&6
  if test $ac_cv_header_stdc = yes; then
!   cat >> confdefs.h <<\EOF
  #define STDC_HEADERS 1
! EOF
  
  fi
  
! for ac_hdr in sys/resource.h netdb.h sched.h resolv.h arpa/inet.h
  do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:1472: checking for $ac_hdr" >&5
! if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   cat > conftest.$ac_ext <<EOF
! #line 1477 "configure"
  #include "confdefs.h"
! #include <$ac_hdr>
! EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! if test -z "$ac_err"; then
!   rm -rf conftest*
!   eval "ac_cv_header_$ac_safe=yes"
  else
!   echo "$ac_err" >&5
!   echo "configure: failed program was:" >&5
    cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_header_$ac_safe=no"
  fi
! rm -f conftest*
  fi
! if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
!   echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
!   cat >> confdefs.h <<EOF
! #define $ac_tr_hdr 1
! EOF
!  
! else
!   echo "$ac_t""no" 1>&6
  fi
  done
  
! for ac_hdr in netinet/ip.h netinet/in.h netinet/tcp.h netinet/in_systm.h
! do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:1512: checking for $ac_hdr" >&5
! if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   cat > conftest.$ac_ext <<EOF
! #line 1517 "configure"
! #include "confdefs.h"
! #include <$ac_hdr>
! EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! if test -z "$ac_err"; then
!   rm -rf conftest*
!   eval "ac_cv_header_$ac_safe=yes"
  else
!   echo "$ac_err" >&5
!   echo "configure: failed program was:" >&5
    cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_header_$ac_safe=no"
  fi
! rm -f conftest*
  fi
! if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
!   echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
!   cat >> confdefs.h <<EOF
! #define $ac_tr_hdr 1
! EOF
!  
! else
!   echo "$ac_t""no" 1>&6
  fi
  done
  
! for ac_hdr in libutil.h sys/sockio.h
! do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:1552: checking for $ac_hdr" >&5
! if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   cat > conftest.$ac_ext <<EOF
! #line 1557 "configure"
! #include "confdefs.h"
! #include <$ac_hdr>
! EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! if test -z "$ac_err"; then
!   rm -rf conftest*
!   eval "ac_cv_header_$ac_safe=yes"
  else
!   echo "$ac_err" >&5
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_header_$ac_safe=no"
  fi
! rm -f conftest*
  fi
! if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
!   echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
!   cat >> confdefs.h <<EOF
! #define $ac_tr_hdr 1
! EOF
!  
  else
!   echo "$ac_t""no" 1>&6
  fi
! done
  
  
  
! echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
! echo "configure:1591: checking for library containing socket" >&5
! if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   ac_func_search_save_LIBS="$LIBS"
! ac_cv_search_socket="no"
! cat > conftest.$ac_ext <<EOF
! #line 1598 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char socket();
! 
! int main() {
! socket()
! ; return 0; }
! EOF
! if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
    ac_cv_search_socket="none required"
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
! test "$ac_cv_search_socket" = "no" && for i in socket; do
! LIBS="-l$i  $ac_func_search_save_LIBS"
! cat > conftest.$ac_ext <<EOF
! #line 1620 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char socket();
! 
! int main() {
! socket()
! ; return 0; }
! EOF
! if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   ac_cv_search_socket="-l$i"
  break
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
! done
! LIBS="$ac_func_search_save_LIBS"
  fi
! 
! echo "$ac_t""$ac_cv_search_socket" 1>&6
! if test "$ac_cv_search_socket" != "no"; then
    test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
!   
! else :
!   
  fi
  
  
! echo $ac_n "checking for library containing inet_ntoa""... $ac_c" 1>&6
! echo "configure:1654: checking for library containing inet_ntoa" >&5
! if eval "test \"`echo '$''{'ac_cv_search_inet_ntoa'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   ac_func_search_save_LIBS="$LIBS"
! ac_cv_search_inet_ntoa="no"
! cat > conftest.$ac_ext <<EOF
! #line 1661 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char inet_ntoa();
! 
! int main() {
! inet_ntoa()
! ; return 0; }
! EOF
! if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
    ac_cv_search_inet_ntoa="none required"
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
! test "$ac_cv_search_inet_ntoa" = "no" && for i in nsl; do
! LIBS="-l$i  $ac_func_search_save_LIBS"
! cat > conftest.$ac_ext <<EOF
! #line 1683 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char inet_ntoa();
! 
! int main() {
! inet_ntoa()
! ; return 0; }
! EOF
! if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   ac_cv_search_inet_ntoa="-l$i"
  break
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
! done
! LIBS="$ac_func_search_save_LIBS"
  fi
! 
! echo "$ac_t""$ac_cv_search_inet_ntoa" 1>&6
! if test "$ac_cv_search_inet_ntoa" != "no"; then
    test "$ac_cv_search_inet_ntoa" = "none required" || LIBS="$ac_cv_search_inet_ntoa $LIBS"
!   
! else :
!   
  fi
  
  
! echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
! echo "configure:1717: checking for library containing gethostbyname" >&5
! if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   ac_func_search_save_LIBS="$LIBS"
! ac_cv_search_gethostbyname="no"
! cat > conftest.$ac_ext <<EOF
! #line 1724 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char gethostbyname();
! 
! int main() {
! gethostbyname()
! ; return 0; }
! EOF
! if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
    ac_cv_search_gethostbyname="none required"
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
! test "$ac_cv_search_gethostbyname" = "no" && for i in resolv nsl; do
! LIBS="-l$i  $ac_func_search_save_LIBS"
! cat > conftest.$ac_ext <<EOF
! #line 1746 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char gethostbyname();
! 
! int main() {
! gethostbyname()
! ; return 0; }
! EOF
! if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   ac_cv_search_gethostbyname="-l$i"
  break
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
! done
! LIBS="$ac_func_search_save_LIBS"
  fi
! 
! echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
! if test "$ac_cv_search_gethostbyname" != "no"; then
    test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
!   
! else :
!   
  fi
  
  
! echo $ac_n "checking for library containing nanosleep""... $ac_c" 1>&6
! echo "configure:1780: checking for library containing nanosleep" >&5
! if eval "test \"`echo '$''{'ac_cv_search_nanosleep'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   ac_func_search_save_LIBS="$LIBS"
! ac_cv_search_nanosleep="no"
! cat > conftest.$ac_ext <<EOF
! #line 1787 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char nanosleep();
! 
! int main() {
! nanosleep()
! ; return 0; }
! EOF
! if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
    ac_cv_search_nanosleep="none required"
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
! test "$ac_cv_search_nanosleep" = "no" && for i in rt posix4; do
! LIBS="-l$i  $ac_func_search_save_LIBS"
! cat > conftest.$ac_ext <<EOF
! #line 1809 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char nanosleep();
! 
! int main() {
! nanosleep()
! ; return 0; }
! EOF
! if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   ac_cv_search_nanosleep="-l$i"
  break
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
! done
! LIBS="$ac_func_search_save_LIBS"
  fi
! 
! echo "$ac_t""$ac_cv_search_nanosleep" 1>&6
! if test "$ac_cv_search_nanosleep" != "no"; then
    test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
!   
! else :
!   
  fi
  
  
! echo $ac_n "checking for library containing setproctitle""... $ac_c" 1>&6
! echo "configure:1843: checking for library containing setproctitle" >&5
! if eval "test \"`echo '$''{'ac_cv_search_setproctitle'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   ac_func_search_save_LIBS="$LIBS"
! ac_cv_search_setproctitle="no"
! cat > conftest.$ac_ext <<EOF
! #line 1850 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char setproctitle();
! 
! int main() {
! setproctitle()
! ; return 0; }
! EOF
! if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
    ac_cv_search_setproctitle="none required"
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
! test "$ac_cv_search_setproctitle" = "no" && for i in util bsd; do
! LIBS="-l$i  $ac_func_search_save_LIBS"
! cat > conftest.$ac_ext <<EOF
! #line 1872 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char setproctitle();
! 
! int main() {
! setproctitle()
! ; return 0; }
! EOF
! if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   ac_cv_search_setproctitle="-l$i"
  break
  else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
  fi
! rm -f conftest*
! done
! LIBS="$ac_func_search_save_LIBS"
  fi
! 
! echo "$ac_t""$ac_cv_search_setproctitle" 1>&6
! if test "$ac_cv_search_setproctitle" != "no"; then
    test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
!   cat >> confdefs.h <<\EOF
  #define HAVE_SETPROC_TITLE 1
! EOF
!  
! else :
!   
  fi
  
  if test "$SHAPER" = "yes"; then
!    cat >> confdefs.h <<\EOF
  #define HAVE_SHAPER 1
! EOF
  
  fi
  
  if test "$ZLIB" = "yes"; then
!    echo "$ac_t""" 1>&6
!    echo "checking for ZLIB Library and Header files ... " 1>&6
! echo "configure:1917: checking for ZLIB Library and Header files ... " >&5
!    echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
! echo "configure:1919: checking for deflate in -lz" >&5
! ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   ac_save_LIBS="$LIBS"
  LIBS="-lz  $LIBS"
! cat > conftest.$ac_ext <<EOF
! #line 1927 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char deflate();
! 
! int main() {
! deflate()
! ; return 0; }
! EOF
! if { (eval echo configure:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=yes"
! else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=no"
! fi
! rm -f conftest*
! LIBS="$ac_save_LIBS"
! 
! fi
! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
!   echo "$ac_t""yes" 1>&6
    LIBS="$LIBS -lz"
! 	cat >> confdefs.h <<\EOF
  #define HAVE_ZLIB 1
! EOF
  
  else
!   echo "$ac_t""no" 1>&6
! { echo "configure: error: Zlib library not found." 1>&2; exit 1; }
!    
  fi
  
  fi
  
  if test "$LZO" = "yes"; then
!    echo "$ac_t""" 1>&6
!    echo "checking for LZO Library and Header files ... " 1>&6
! echo "configure:1969: checking for LZO Library and Header files ... " >&5
!    
!     echo $ac_n "checking "for lzo1x.h"""... $ac_c" 1>&6
! echo "configure:1972: checking "for lzo1x.h"" >&5 
      ac_hdr_found=no
      for p in $LZO_HDR_DIR /usr/include/lzo "" /usr/local/include; do
  	if test -n "$p"; then
--- 3621,4735 ----
  
  if test $ac_cv_header_stdc = yes; then
    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
!   if test "$cross_compiling" = yes; then
    :
  else
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
  #include <ctype.h>
! #if ((' ' & 0x0FF) == 0x020)
! # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! #else
! # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
!                      || ('j' <= (c) && (c) <= 'r') \
!                      || ('s' <= (c) && (c) <= 'z'))
! # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! #endif
  
! #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! int
! main ()
! {
!   int i;
!   for (i = 0; i < 256; i++)
!     if (XOR (islower (i), ISLOWER (i))
!         || toupper (i) != TOUPPER (i))
!       exit(2);
!   exit (0);
! }
! _ACEOF
! rm -f conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
    :
  else
!   echo "$as_me: program exited with status $ac_status" >&5
! echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ( exit $ac_status )
! ac_cv_header_stdc=no
  fi
! rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  fi
  fi
  fi
! echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! echo "${ECHO_T}$ac_cv_header_stdc" >&6
  if test $ac_cv_header_stdc = yes; then
! 
! cat >>confdefs.h <<\_ACEOF
  #define STDC_HEADERS 1
! _ACEOF
  
  fi
  
! # On IRIX 5.3, sys/types and inttypes.h are conflicting.
! 
! 
! 
! 
! 
! 
! 
! 
! 
! for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
!                   inttypes.h stdint.h unistd.h
  do
! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! echo "$as_me:$LINENO: checking for $ac_header" >&5
! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
! $ac_includes_default
! 
! #include <$ac_header>
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   eval "$as_ac_Header=yes"
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! eval "$as_ac_Header=no"
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! if test `eval echo '${'$as_ac_Header'}'` = yes; then
!   cat >>confdefs.h <<_ACEOF
! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! _ACEOF
! 
! fi
! 
! done
! 
! 
! 
! 
! 
! 
! 
! for ac_header in sys/resource.h netdb.h sched.h resolv.h arpa/inet.h
! do
! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo "$as_me:$LINENO: checking for $ac_header" >&5
! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! else
!   # Is the header compilable?
! echo "$as_me:$LINENO: checking $ac_header usability" >&5
! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! $ac_includes_default
! #include <$ac_header>
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_header_compiler=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_header_compiler=no
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! echo "${ECHO_T}$ac_header_compiler" >&6
! 
! # Is the header present?
! echo "$as_me:$LINENO: checking $ac_header presence" >&5
! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! #include <$ac_header>
! _ACEOF
! if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
!   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
!   ac_status=$?
!   egrep -v '^ *\+' conftest.er1 >conftest.err
!   rm -f conftest.er1
!   cat conftest.err >&5
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } >/dev/null; then
!   if test -s conftest.err; then
!     ac_cpp_err=$ac_c_preproc_warn_flag
!   else
!     ac_cpp_err=
!   fi
! else
!   ac_cpp_err=yes
! fi
! if test -z "$ac_cpp_err"; then
!   ac_header_preproc=yes
  else
!   echo "$as_me: failed program was:" >&5
    cat conftest.$ac_ext >&5
!   ac_header_preproc=no
  fi
! rm -f conftest.err conftest.$ac_ext
! echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! echo "${ECHO_T}$ac_header_preproc" >&6
! 
! # So?  What about this header?
! case $ac_header_compiler:$ac_header_preproc in
!   yes:no )
!     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
!   no:yes )
!     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
! esac
! echo "$as_me:$LINENO: checking for $ac_header" >&5
! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   eval "$as_ac_Header=$ac_header_preproc"
! fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 
  fi
! if test `eval echo '${'$as_ac_Header'}'` = yes; then
!   cat >>confdefs.h <<_ACEOF
! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! _ACEOF
! 
  fi
+ 
  done
  
! 
! 
! 
! 
! for ac_header in netinet/ip.h netinet/in.h netinet/tcp.h netinet/in_systm.h
! do
! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo "$as_me:$LINENO: checking for $ac_header" >&5
! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! else
!   # Is the header compilable?
! echo "$as_me:$LINENO: checking $ac_header usability" >&5
! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! $ac_includes_default
! #include <$ac_header>
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_header_compiler=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_header_compiler=no
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! echo "${ECHO_T}$ac_header_compiler" >&6
! 
! # Is the header present?
! echo "$as_me:$LINENO: checking $ac_header presence" >&5
! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! #include <$ac_header>
! _ACEOF
! if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
!   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
!   ac_status=$?
!   egrep -v '^ *\+' conftest.er1 >conftest.err
!   rm -f conftest.er1
!   cat conftest.err >&5
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } >/dev/null; then
!   if test -s conftest.err; then
!     ac_cpp_err=$ac_c_preproc_warn_flag
!   else
!     ac_cpp_err=
!   fi
! else
!   ac_cpp_err=yes
! fi
! if test -z "$ac_cpp_err"; then
!   ac_header_preproc=yes
  else
!   echo "$as_me: failed program was:" >&5
    cat conftest.$ac_ext >&5
!   ac_header_preproc=no
  fi
! rm -f conftest.err conftest.$ac_ext
! echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! echo "${ECHO_T}$ac_header_preproc" >&6
! 
! # So?  What about this header?
! case $ac_header_compiler:$ac_header_preproc in
!   yes:no )
!     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
!   no:yes )
!     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
! esac
! echo "$as_me:$LINENO: checking for $ac_header" >&5
! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   eval "$as_ac_Header=$ac_header_preproc"
  fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 
! fi
! if test `eval echo '${'$as_ac_Header'}'` = yes; then
!   cat >>confdefs.h <<_ACEOF
! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! _ACEOF
! 
  fi
+ 
  done
  
! 
! 
! for ac_header in libutil.h sys/sockio.h
! do
! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo "$as_me:$LINENO: checking for $ac_header" >&5
! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! else
!   # Is the header compilable?
! echo "$as_me:$LINENO: checking $ac_header usability" >&5
! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! $ac_includes_default
! #include <$ac_header>
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_header_compiler=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_header_compiler=no
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! echo "${ECHO_T}$ac_header_compiler" >&6
! 
! # Is the header present?
! echo "$as_me:$LINENO: checking $ac_header presence" >&5
! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! #include <$ac_header>
! _ACEOF
! if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
!   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
!   ac_status=$?
!   egrep -v '^ *\+' conftest.er1 >conftest.err
!   rm -f conftest.er1
!   cat conftest.err >&5
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } >/dev/null; then
!   if test -s conftest.err; then
!     ac_cpp_err=$ac_c_preproc_warn_flag
!   else
!     ac_cpp_err=
!   fi
  else
!   ac_cpp_err=yes
  fi
! if test -z "$ac_cpp_err"; then
!   ac_header_preproc=yes
! else
!   echo "$as_me: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   ac_header_preproc=no
  fi
! rm -f conftest.err conftest.$ac_ext
! echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! echo "${ECHO_T}$ac_header_preproc" >&6
! 
! # So?  What about this header?
! case $ac_header_compiler:$ac_header_preproc in
!   yes:no )
!     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
!   no:yes )
!     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
! esac
! echo "$as_me:$LINENO: checking for $ac_header" >&5
! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   eval "$as_ac_Header=$ac_header_preproc"
  fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  
+ fi
+ if test `eval echo '${'$as_ac_Header'}'` = yes; then
+   cat >>confdefs.h <<_ACEOF
+ #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+ _ACEOF
  
+ fi
  
! done
! 
! 
! echo "$as_me:$LINENO: checking for library containing socket" >&5
! echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
! if test "${ac_cv_search_socket+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_func_search_save_LIBS=$LIBS
! ac_cv_search_socket=no
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char socket ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! socket ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
    ac_cv_search_socket="none required"
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! if test "$ac_cv_search_socket" = no; then
!   for ac_lib in socket; do
!     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
!     cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char socket ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! socket ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_search_socket="-l$ac_lib"
  break
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
!   done
  fi
! LIBS=$ac_func_search_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
! echo "${ECHO_T}$ac_cv_search_socket" >&6
! if test "$ac_cv_search_socket" != no; then
    test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
! 
  fi
  
  
! echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
! echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6
! if test "${ac_cv_search_inet_ntoa+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_func_search_save_LIBS=$LIBS
! ac_cv_search_inet_ntoa=no
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char inet_ntoa ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! inet_ntoa ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
    ac_cv_search_inet_ntoa="none required"
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! if test "$ac_cv_search_inet_ntoa" = no; then
!   for ac_lib in nsl; do
!     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
!     cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char inet_ntoa ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! inet_ntoa ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_search_inet_ntoa="-l$ac_lib"
  break
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
!   done
  fi
! LIBS=$ac_func_search_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
! echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6
! if test "$ac_cv_search_inet_ntoa" != no; then
    test "$ac_cv_search_inet_ntoa" = "none required" || LIBS="$ac_cv_search_inet_ntoa $LIBS"
! 
  fi
  
  
! echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
! echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
! if test "${ac_cv_search_gethostbyname+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_func_search_save_LIBS=$LIBS
! ac_cv_search_gethostbyname=no
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char gethostbyname ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! gethostbyname ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
    ac_cv_search_gethostbyname="none required"
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! if test "$ac_cv_search_gethostbyname" = no; then
!   for ac_lib in resolv nsl; do
!     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
!     cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char gethostbyname ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! gethostbyname ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_search_gethostbyname="-l$ac_lib"
  break
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
!   done
  fi
! LIBS=$ac_func_search_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
! echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
! if test "$ac_cv_search_gethostbyname" != no; then
    test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
! 
  fi
  
  
! echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
! echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
! if test "${ac_cv_search_nanosleep+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_func_search_save_LIBS=$LIBS
! ac_cv_search_nanosleep=no
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char nanosleep ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! nanosleep ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
    ac_cv_search_nanosleep="none required"
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! if test "$ac_cv_search_nanosleep" = no; then
!   for ac_lib in rt posix4; do
!     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
!     cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char nanosleep ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! nanosleep ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_search_nanosleep="-l$ac_lib"
  break
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
!   done
  fi
! LIBS=$ac_func_search_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
! echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
! if test "$ac_cv_search_nanosleep" != no; then
    test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
! 
  fi
  
  
! echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
! echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
! if test "${ac_cv_search_setproctitle+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! else
!   ac_func_search_save_LIBS=$LIBS
! ac_cv_search_setproctitle=no
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char setproctitle ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! setproctitle ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
    ac_cv_search_setproctitle="none required"
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! if test "$ac_cv_search_setproctitle" = no; then
!   for ac_lib in util bsd; do
!     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
!     cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char setproctitle ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! setproctitle ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_search_setproctitle="-l$ac_lib"
  break
  else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
  fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
!   done
  fi
! LIBS=$ac_func_search_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
! echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
! if test "$ac_cv_search_setproctitle" != no; then
    test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
!   cat >>confdefs.h <<\_ACEOF
  #define HAVE_SETPROC_TITLE 1
! _ACEOF
! 
  fi
  
+ 
  if test "$SHAPER" = "yes"; then
!    cat >>confdefs.h <<\_ACEOF
  #define HAVE_SHAPER 1
! _ACEOF
  
  fi
  
  if test "$ZLIB" = "yes"; then
!    echo "$as_me:$LINENO: result: " >&5
! echo "${ECHO_T}" >&6
!    { echo "$as_me:$LINENO: checking for ZLIB Library and Header files ... ..." >&5
! echo "$as_me: checking for ZLIB Library and Header files ... ..." >&6;}
!    echo "$as_me:$LINENO: checking for deflate in -lz" >&5
! echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
! if test "${ac_cv_lib_z_deflate+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   ac_check_lib_save_LIBS=$LIBS
  LIBS="-lz  $LIBS"
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char deflate ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! deflate ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_lib_z_deflate=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_cv_lib_z_deflate=no
! fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! LIBS=$ac_check_lib_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
! echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
! if test $ac_cv_lib_z_deflate = yes; then
    LIBS="$LIBS -lz"
! 	cat >>confdefs.h <<\_ACEOF
  #define HAVE_ZLIB 1
! _ACEOF
  
  else
!   { { echo "$as_me:$LINENO: error: Zlib library not found." >&5
! echo "$as_me: error: Zlib library not found." >&2;}
!    { (exit 1); exit 1; }; }
! 
  fi
  
  fi
  
  if test "$LZO" = "yes"; then
!    echo "$as_me:$LINENO: result: " >&5
! echo "${ECHO_T}" >&6
!    { echo "$as_me:$LINENO: checking for LZO Library and Header files ... ..." >&5
! echo "$as_me: checking for LZO Library and Header files ... ..." >&6;}
! 
!     echo "$as_me:$LINENO: checking \"for lzo1x.h\"" >&5
! echo $ECHO_N "checking \"for lzo1x.h\"... $ECHO_C" >&6
      ac_hdr_found=no
      for p in $LZO_HDR_DIR /usr/include/lzo "" /usr/local/include; do
  	if test -n "$p"; then
***************
*** 1976,1982 ****
  	else
  	  dir="/usr/include"
  	fi
! 	
      ac_file_found=yes
      for f in lzo1x.h; do
  	if test ! -f $dir/$f; then
--- 4737,4743 ----
  	else
  	  dir="/usr/include"
  	fi
! 
      ac_file_found=yes
      for f in lzo1x.h; do
  	if test ! -f $dir/$f; then
***************
*** 1986,2069 ****
      done
  
      if test "$ac_file_found" = "yes" ; then
! 	 
       	       ac_hdr_found=yes
  	       break
! 	    
! 	
      else
  	:
      fi
  
!     done 
      if test "$ac_hdr_found" = "yes" ; then
  	if test -n "$p"; then
  	  CPPFLAGS="$CPPFLAGS -I$p"
  	fi
!         echo "$ac_t""($dir) yes " 1>&6 
! 	echo $ac_n "checking for lzo1x_decompress in -llzo""... $ac_c" 1>&6
! echo "configure:2006: checking for lzo1x_decompress in -llzo" >&5
! ac_lib_var=`echo lzo'_'lzo1x_decompress | sed 'y%./+-%__p_%'`
! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   ac_save_LIBS="$LIBS"
  LIBS="-llzo  $LIBS"
! cat > conftest.$ac_ext <<EOF
! #line 2014 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char lzo1x_decompress();
! 
! int main() {
! lzo1x_decompress()
! ; return 0; }
! EOF
! if { (eval echo configure:2025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=yes"
! else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=no"
! fi
! rm -f conftest*
! LIBS="$ac_save_LIBS"
  
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-   echo "$ac_t""yes" 1>&6
-   
  	       LIBS="$LIBS -llzo"
! 	       cat >> confdefs.h <<\EOF
  #define HAVE_LZO 1
! EOF
  
- 	    
  else
!   echo "$ac_t""no" 1>&6
! { echo "configure: error: LZO library not found. " 1>&2; exit 1; }
! 	
  fi
  
      else
!         echo "$ac_t"""no"" 1>&6 
! 	{ echo "configure: error: LZO headers not found. " 1>&2; exit 1; }
!    
      fi
  
  fi
  
  if test "$SSL" = "yes"; then
!    echo "$ac_t""" 1>&6
!    echo "checking for md5 Library and Header files ... " 1>&6
! echo "configure:2064: checking for md5 Library and Header files ... " >&5
  
!     echo $ac_n "checking "for md5.h"""... $ac_c" 1>&6
! echo "configure:2067: checking "for md5.h"" >&5 
      ac_hdr_found=no
      for p in $SSL_HDR_DIR /usr/include/openssl "" /usr/include /usr/include/ssl /usr/local/include /usr/local/ssl/include; do
  	if test -n "$p"; then
--- 4747,4857 ----
      done
  
      if test "$ac_file_found" = "yes" ; then
! 
       	       ac_hdr_found=yes
  	       break
! 
! 
      else
  	:
      fi
  
!     done
      if test "$ac_hdr_found" = "yes" ; then
  	if test -n "$p"; then
  	  CPPFLAGS="$CPPFLAGS -I$p"
  	fi
!         echo "$as_me:$LINENO: result: ($dir) yes " >&5
! echo "${ECHO_T}($dir) yes " >&6
! 	echo "$as_me:$LINENO: checking for lzo1x_decompress in -llzo" >&5
! echo $ECHO_N "checking for lzo1x_decompress in -llzo... $ECHO_C" >&6
! if test "${ac_cv_lib_lzo_lzo1x_decompress+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   ac_check_lib_save_LIBS=$LIBS
  LIBS="-llzo  $LIBS"
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char lzo1x_decompress ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! lzo1x_decompress ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_lib_lzo_lzo1x_decompress=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_cv_lib_lzo_lzo1x_decompress=no
! fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! LIBS=$ac_check_lib_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_lib_lzo_lzo1x_decompress" >&5
! echo "${ECHO_T}$ac_cv_lib_lzo_lzo1x_decompress" >&6
! if test $ac_cv_lib_lzo_lzo1x_decompress = yes; then
  
  	       LIBS="$LIBS -llzo"
! 	       cat >>confdefs.h <<\_ACEOF
  #define HAVE_LZO 1
! _ACEOF
! 
  
  else
!   { { echo "$as_me:$LINENO: error: LZO library not found. " >&5
! echo "$as_me: error: LZO library not found. " >&2;}
!    { (exit 1); exit 1; }; }
! 
  fi
  
      else
!         echo "$as_me:$LINENO: result: \"no\"" >&5
! echo "${ECHO_T}\"no\"" >&6
! 	{ { echo "$as_me:$LINENO: error: LZO headers not found. " >&5
! echo "$as_me: error: LZO headers not found. " >&2;}
!    { (exit 1); exit 1; }; }
! 
      fi
  
  fi
  
  if test "$SSL" = "yes"; then
!    echo "$as_me:$LINENO: result: " >&5
! echo "${ECHO_T}" >&6
!    { echo "$as_me:$LINENO: checking for md5 Library and Header files ... ..." >&5
! echo "$as_me: checking for md5 Library and Header files ... ..." >&6;}
  
!     echo "$as_me:$LINENO: checking \"for md5.h\"" >&5
! echo $ECHO_N "checking \"for md5.h\"... $ECHO_C" >&6
      ac_hdr_found=no
      for p in $SSL_HDR_DIR /usr/include/openssl "" /usr/include /usr/include/ssl /usr/local/include /usr/local/ssl/include; do
  	if test -n "$p"; then
***************
*** 2071,2077 ****
  	else
  	  dir="/usr/include"
  	fi
! 	
      ac_file_found=yes
      for f in md5.h; do
  	if test ! -f $dir/$f; then
--- 4859,4865 ----
  	else
  	  dir="/usr/include"
  	fi
! 
      ac_file_found=yes
      for f in md5.h; do
  	if test ! -f $dir/$f; then
***************
*** 2081,2116 ****
      done
  
      if test "$ac_file_found" = "yes" ; then
! 	 
       	       ac_hdr_found=yes
  	       break
! 	    
! 	
      else
  	:
      fi
  
!     done 
      if test "$ac_hdr_found" = "yes" ; then
  	if test -n "$p"; then
  	  CPPFLAGS="$CPPFLAGS -I$p"
  	fi
!         echo "$ac_t""($dir) yes " 1>&6 
  	/usr/include/sys
      else
!         echo "$ac_t"""no"" 1>&6 
  	:
      fi
  
  fi
  
  if test "$SSL" = "yes"; then
!    echo "$ac_t""" 1>&6
!    echo "checking for blowfish Library and Header files ... " 1>&6
! echo "configure:2111: checking for blowfish Library and Header files ... " >&5
!    
!     echo $ac_n "checking "for blowfish.h"""... $ac_c" 1>&6
! echo "configure:2114: checking "for blowfish.h"" >&5 
      ac_hdr_found=no
      for p in $BLOWFISH_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include  /usr/include/crypto; do
  	if test -n "$p"; then
--- 4869,4907 ----
      done
  
      if test "$ac_file_found" = "yes" ; then
! 
       	       ac_hdr_found=yes
  	       break
! 
! 
      else
  	:
      fi
  
!     done
      if test "$ac_hdr_found" = "yes" ; then
  	if test -n "$p"; then
  	  CPPFLAGS="$CPPFLAGS -I$p"
  	fi
!         echo "$as_me:$LINENO: result: ($dir) yes " >&5
! echo "${ECHO_T}($dir) yes " >&6
  	/usr/include/sys
      else
!         echo "$as_me:$LINENO: result: \"no\"" >&5
! echo "${ECHO_T}\"no\"" >&6
  	:
      fi
  
  fi
  
  if test "$SSL" = "yes"; then
!    echo "$as_me:$LINENO: result: " >&5
! echo "${ECHO_T}" >&6
!    { echo "$as_me:$LINENO: checking for blowfish Library and Header files ... ..." >&5
! echo "$as_me: checking for blowfish Library and Header files ... ..." >&6;}
! 
!     echo "$as_me:$LINENO: checking \"for blowfish.h\"" >&5
! echo $ECHO_N "checking \"for blowfish.h\"... $ECHO_C" >&6
      ac_hdr_found=no
      for p in $BLOWFISH_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include  /usr/include/crypto; do
  	if test -n "$p"; then
***************
*** 2118,2124 ****
  	else
  	  dir="/usr/include"
  	fi
! 	
      ac_file_found=yes
      for f in blowfish.h; do
  	if test ! -f $dir/$f; then
--- 4909,4915 ----
  	else
  	  dir="/usr/include"
  	fi
! 
      ac_file_found=yes
      for f in blowfish.h; do
  	if test ! -f $dir/$f; then
***************
*** 2128,2353 ****
      done
  
      if test "$ac_file_found" = "yes" ; then
! 	 
       	       ac_hdr_found=yes
  	       break
! 	    
! 	
      else
  	:
      fi
  
!     done 
      if test "$ac_hdr_found" = "yes" ; then
  	if test -n "$p"; then
  	  CPPFLAGS="$CPPFLAGS -I$p"
  	fi
!         echo "$ac_t""($dir) yes " 1>&6 
! 	echo $ac_n "checking for BF_set_key in -lcrypto""... $ac_c" 1>&6
! echo "configure:2148: checking for BF_set_key in -lcrypto" >&5
! ac_lib_var=`echo crypto'_'BF_set_key | sed 'y%./+-%__p_%'`
! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   ac_save_LIBS="$LIBS"
  LIBS="-lcrypto  $LIBS"
! cat > conftest.$ac_ext <<EOF
! #line 2156 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char BF_set_key();
! 
! int main() {
! BF_set_key()
! ; return 0; }
! EOF
! if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=yes"
! else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=no"
! fi
! rm -f conftest*
! LIBS="$ac_save_LIBS"
  
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-   echo "$ac_t""yes" 1>&6
-   
  	       LIBS="$LIBS -lcrypto"
! 	       cat >> confdefs.h <<\EOF
  #define HAVE_SSL 1
! EOF
  
- 	    
  else
!   echo "$ac_t""no" 1>&6
! { echo "configure: error: SSL library not found. " 1>&2; exit 1; }
! 	
  fi
  
      else
!         echo "$ac_t"""no"" 1>&6 
! 	{ echo "configure: error: SSL headers not found. " 1>&2; exit 1; }
!    
      fi
  
  fi
  
  if test "$SOCKS" = "yes"; then
!    echo "$ac_t""" 1>&6
!    echo "checking for SOCKS Library ... " 1>&6
! echo "configure:2206: checking for SOCKS Library ... " >&5
!    echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6
! echo "configure:2208: checking for SOCKSconnect in -lsocks5" >&5
! ac_lib_var=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'`
! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   ac_save_LIBS="$LIBS"
  LIBS="-lsocks5  $LIBS"
! cat > conftest.$ac_ext <<EOF
! #line 2216 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char SOCKSconnect();
! 
! int main() {
! SOCKSconnect()
! ; return 0; }
! EOF
! if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=yes"
! else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=no"
! fi
! rm -f conftest*
! LIBS="$ac_save_LIBS"
  
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-   echo "$ac_t""yes" 1>&6
-   
  	  CFLAGS="$CFLAGS -DVTUN_SOCKS=1"
  	  LIBS="$LIBS -lsocks5"
! 	
  else
!   echo "$ac_t""no" 1>&6
! echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6
! echo "configure:2249: checking for Rconnect in -lsocks" >&5
! ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'`
! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   ac_save_LIBS="$LIBS"
  LIBS="-lsocks  $LIBS"
! cat > conftest.$ac_ext <<EOF
! #line 2257 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char Rconnect();
! 
! int main() {
! Rconnect()
! ; return 0; }
! EOF
! if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=yes"
! else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=no"
! fi
! rm -f conftest*
! LIBS="$ac_save_LIBS"
  
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-   echo "$ac_t""yes" 1>&6
-   
  	       CFLAGS="$CFLAGS -DVTUN_SOCKS=2"
  	       LIBS="$LIBS -lsocks"
! 	    
  else
!   echo "$ac_t""no" 1>&6
! { echo "configure: error: SOCKS library not found. " 1>&2; exit 1; }
!         
  fi
  
!    
  fi
  
  fi
  
! echo "$ac_t""" 1>&6
  
  for ac_func in getpt grantpt unlockpt ptsname
  do
! echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:2303: checking for $ac_func" >&5
! if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
  else
!   cat > conftest.$ac_ext <<EOF
! #line 2308 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
!     which can conflict with char $ac_func(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char $ac_func();
! 
! int main() {
! 
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
      something starting with __ and the normal name is an alias.  */
  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  choke me
  #else
! $ac_func();
  #endif
  
! ; return 0; }
! EOF
! if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
!   rm -rf conftest*
!   eval "ac_cv_func_$ac_func=yes"
! else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_func_$ac_func=no"
! fi
! rm -f conftest*
! fi
  
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
-   echo "$ac_t""yes" 1>&6
-     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
-   cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-  
- else
-   echo "$ac_t""no" 1>&6
  fi
  done
  
--- 4919,5238 ----
      done
  
      if test "$ac_file_found" = "yes" ; then
! 
       	       ac_hdr_found=yes
  	       break
! 
! 
      else
  	:
      fi
  
!     done
      if test "$ac_hdr_found" = "yes" ; then
  	if test -n "$p"; then
  	  CPPFLAGS="$CPPFLAGS -I$p"
  	fi
!         echo "$as_me:$LINENO: result: ($dir) yes " >&5
! echo "${ECHO_T}($dir) yes " >&6
! 	echo "$as_me:$LINENO: checking for BF_set_key in -lcrypto" >&5
! echo $ECHO_N "checking for BF_set_key in -lcrypto... $ECHO_C" >&6
! if test "${ac_cv_lib_crypto_BF_set_key+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   ac_check_lib_save_LIBS=$LIBS
  LIBS="-lcrypto  $LIBS"
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char BF_set_key ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! BF_set_key ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_lib_crypto_BF_set_key=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_cv_lib_crypto_BF_set_key=no
! fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! LIBS=$ac_check_lib_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_BF_set_key" >&5
! echo "${ECHO_T}$ac_cv_lib_crypto_BF_set_key" >&6
! if test $ac_cv_lib_crypto_BF_set_key = yes; then
  
  	       LIBS="$LIBS -lcrypto"
! 	       cat >>confdefs.h <<\_ACEOF
  #define HAVE_SSL 1
! _ACEOF
! 
  
  else
!   { { echo "$as_me:$LINENO: error: SSL library not found. " >&5
! echo "$as_me: error: SSL library not found. " >&2;}
!    { (exit 1); exit 1; }; }
! 
  fi
  
      else
!         echo "$as_me:$LINENO: result: \"no\"" >&5
! echo "${ECHO_T}\"no\"" >&6
! 	{ { echo "$as_me:$LINENO: error: SSL headers not found. " >&5
! echo "$as_me: error: SSL headers not found. " >&2;}
!    { (exit 1); exit 1; }; }
! 
      fi
  
  fi
  
  if test "$SOCKS" = "yes"; then
!    echo "$as_me:$LINENO: result: " >&5
! echo "${ECHO_T}" >&6
!    { echo "$as_me:$LINENO: checking for SOCKS Library ... ..." >&5
! echo "$as_me: checking for SOCKS Library ... ..." >&6;}
!    echo "$as_me:$LINENO: checking for SOCKSconnect in -lsocks5" >&5
! echo $ECHO_N "checking for SOCKSconnect in -lsocks5... $ECHO_C" >&6
! if test "${ac_cv_lib_socks5_SOCKSconnect+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   ac_check_lib_save_LIBS=$LIBS
  LIBS="-lsocks5  $LIBS"
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char SOCKSconnect ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! SOCKSconnect ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_lib_socks5_SOCKSconnect=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_cv_lib_socks5_SOCKSconnect=no
! fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! LIBS=$ac_check_lib_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_lib_socks5_SOCKSconnect" >&5
! echo "${ECHO_T}$ac_cv_lib_socks5_SOCKSconnect" >&6
! if test $ac_cv_lib_socks5_SOCKSconnect = yes; then
  
  	  CFLAGS="$CFLAGS -DVTUN_SOCKS=1"
  	  LIBS="$LIBS -lsocks5"
! 
  else
!   echo "$as_me:$LINENO: checking for Rconnect in -lsocks" >&5
! echo $ECHO_N "checking for Rconnect in -lsocks... $ECHO_C" >&6
! if test "${ac_cv_lib_socks_Rconnect+set}" = set; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   ac_check_lib_save_LIBS=$LIBS
  LIBS="-lsocks  $LIBS"
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
+ 
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char Rconnect ();
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! Rconnect ();
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_cv_lib_socks_Rconnect=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_cv_lib_socks_Rconnect=no
! fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! LIBS=$ac_check_lib_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_lib_socks_Rconnect" >&5
! echo "${ECHO_T}$ac_cv_lib_socks_Rconnect" >&6
! if test $ac_cv_lib_socks_Rconnect = yes; then
  
  	       CFLAGS="$CFLAGS -DVTUN_SOCKS=2"
  	       LIBS="$LIBS -lsocks"
! 
  else
!   { { echo "$as_me:$LINENO: error: SOCKS library not found. " >&5
! echo "$as_me: error: SOCKS library not found. " >&2;}
!    { (exit 1); exit 1; }; }
! 
  fi
  
! 
  fi
  
  fi
  
! echo "$as_me:$LINENO: result: " >&5
! echo "${ECHO_T}" >&6
! 
! 
! 
! 
  
  for ac_func in getpt grantpt unlockpt ptsname
  do
! as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! echo "$as_me:$LINENO: checking for $ac_func" >&5
! echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! if eval "test \"\${$as_ac_var+set}\" = set"; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
!     which can conflict with char $ac_func (); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
  /* We use char because int might match the return type of a gcc2
!    builtin and then its argument prototype would still apply.  */
! char $ac_func ();
! char (*f) ();
! 
! #ifdef F77_DUMMY_MAIN
! #  ifdef __cplusplus
!      extern "C"
! #  endif
!    int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
      something starting with __ and the normal name is an alias.  */
  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  choke me
  #else
! f = $ac_func;
  #endif
  
!   ;
!   return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
!   (eval $ac_link) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest$ac_exeext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   eval "$as_ac_var=yes"
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! eval "$as_ac_var=no"
! fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! if test `eval echo '${'$as_ac_var'}'` = yes; then
!   cat >>confdefs.h <<_ACEOF
! #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! _ACEOF
  
  fi
  done
  
***************
*** 2356,2399 ****
  case $host_os in
  	*linux*)
  	     OS_DIR="linux"
! 	     for ac_hdr in linux/if_tun.h
  do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:2364: checking for $ac_hdr" >&5
! if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   cat > conftest.$ac_ext <<EOF
! #line 2369 "configure"
! #include "confdefs.h"
! #include <$ac_hdr>
! EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! if test -z "$ac_err"; then
!   rm -rf conftest*
!   eval "ac_cv_header_$ac_safe=yes"
  else
!   echo "$ac_err" >&5
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_header_$ac_safe=no"
  fi
! rm -f conftest*
  fi
! if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
!   echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
!   cat >> confdefs.h <<EOF
! #define $ac_tr_hdr 1
! EOF
!  
  else
!   echo "$ac_t""no" 1>&6
  fi
  done
  
  	     ;;
--- 5241,5358 ----
  case $host_os in
  	*linux*)
  	     OS_DIR="linux"
! 
! for ac_header in linux/if_tun.h
  do
! as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo "$as_me:$LINENO: checking for $ac_header" >&5
! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
! fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! else
!   # Is the header compilable?
! echo "$as_me:$LINENO: checking $ac_header usability" >&5
! echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! $ac_includes_default
! #include <$ac_header>
! _ACEOF
! rm -f conftest.$ac_objext
! if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
!   (eval $ac_compile) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } &&
!          { ac_try='test -s conftest.$ac_objext'
!   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
!   (eval $ac_try) 2>&5
!   ac_status=$?
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); }; }; then
!   ac_header_compiler=yes
! else
!   echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! ac_header_compiler=no
! fi
! rm -f conftest.$ac_objext conftest.$ac_ext
! echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! echo "${ECHO_T}$ac_header_compiler" >&6
! 
! # Is the header present?
! echo "$as_me:$LINENO: checking $ac_header presence" >&5
! echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"
! #include <$ac_header>
! _ACEOF
! if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
!   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
!   ac_status=$?
!   egrep -v '^ *\+' conftest.er1 >conftest.err
!   rm -f conftest.er1
!   cat conftest.err >&5
!   echo "$as_me:$LINENO: \$? = $ac_status" >&5
!   (exit $ac_status); } >/dev/null; then
!   if test -s conftest.err; then
!     ac_cpp_err=$ac_c_preproc_warn_flag
!   else
!     ac_cpp_err=
!   fi
  else
!   ac_cpp_err=yes
  fi
! if test -z "$ac_cpp_err"; then
!   ac_header_preproc=yes
! else
!   echo "$as_me: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   ac_header_preproc=no
  fi
! rm -f conftest.err conftest.$ac_ext
! echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! echo "${ECHO_T}$ac_header_preproc" >&6
! 
! # So?  What about this header?
! case $ac_header_compiler:$ac_header_preproc in
!   yes:no )
!     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
!   no:yes )
!     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
!     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
! esac
! echo "$as_me:$LINENO: checking for $ac_header" >&5
! echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! if eval "test \"\${$as_ac_Header+set}\" = set"; then
!   echo $ECHO_N "(cached) $ECHO_C" >&6
  else
!   eval "$as_ac_Header=$ac_header_preproc"
! fi
! echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 
! fi
! if test `eval echo '${'$as_ac_Header'}'` = yes; then
!   cat >>confdefs.h <<_ACEOF
! #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! _ACEOF
! 
  fi
+ 
  done
  
  	     ;;
***************
*** 2401,2822 ****
  	     OS_DIR="svr4"
  	     ;;
  	*freebsd*)
! 	     if test "$OS_REL" -ge "40"; then 
  	        OS_DIR="freebsd"
  	     fi
  	     ;;
  	*openbsd*)
! 	     if test "$OS_REL" -ge "25"; then 
  	        OS_DIR="openbsd"
  	     fi
  	     ;;
! esac	     
  
!     echo "$ac_t""creating driver and protocol links ... " 1>&6
  
      if test "$OS_DIR" != ""; then
!        
      for i in `cat vtun.drivers`; do
        if test -f $OS_DIR/$i -a ! -f $i; then
!          echo "$ac_t""linking $OS_DIR/$i  to  $i" 1>&6
           ln -f -s $OS_DIR/$i $i
        fi
!     done 
  
      fi
!     
      for i in `cat vtun.drivers`; do
        if test -f generic/$i -a ! -f $i; then
!          echo "$ac_t""linking generic/$i  to  $i" 1>&6
           ln -f -s generic/$i $i
        fi
!     done 
  
  
  
! echo "$ac_t""" 1>&6
  
  
! REL=`echo 'REL-2_6' | tr -d '$: \-' | sed 's/^[A-Za-z]*//' | sed 's/\_/\./'`
  
  
! cat >> confdefs.h <<EOF
  #define VTUN_VER "$REL `date '+%m/%d/%Y'`"
! EOF
  
  
! trap '' 1 2 15
! cat > confcache <<\EOF
  # This file is a shell script that caches the results of configure
  # tests run on this system so they can be shared between configure
! # scripts and configure runs.  It is not useful on other systems.
! # If it contains results you don't want to keep, you may remove or edit it.
  #
! # By default, configure uses ./config.cache as the cache file,
! # creating it if it does not exist already.  You can give configure
! # the --cache-file=FILE option to use a different cache file; that is
! # what configure does when it calls configure scripts in
! # subdirectories, so they share the cache.
! # Giving --cache-file=/dev/null disables caching, for debugging configure.
! # config.status only pays attention to the cache file if you give it the
! # --recheck option to rerun configure.
  #
! EOF
  # The following way of writing the cache mishandles newlines in values,
  # but we know of no workaround that is simple, portable, and efficient.
  # So, don't put newlines in cache variables' values.
  # Ultrix sh set writes to stderr and can't be redirected directly,
  # and sets the high bit in the cache file unless we assign to the vars.
! (set) 2>&1 |
!   case `(ac_space=' '; set | grep ac_space) 2>&1` in
!   *ac_space=\ *)
!     # `set' does not quote correctly, so add quotes (double-quote substitution
!     # turns \\\\ into \\, and sed turns \\ into \).
!     sed -n \
!       -e "s/'/'\\\\''/g" \
!       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
!     ;;
!   *)
!     # `set' quotes correctly as required by POSIX, so do not add quotes.
!     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
!     ;;
!   esac >> confcache
! if cmp -s $cache_file confcache; then
!   :
! else
    if test -w $cache_file; then
!     echo "updating cache $cache_file"
!     cat confcache > $cache_file
    else
      echo "not updating unwritable cache $cache_file"
    fi
  fi
  rm -f confcache
  
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- 
  test "x$prefix" = xNONE && prefix=$ac_default_prefix
  # Let make expand exec_prefix.
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  
! # Any assignment to VPATH causes Sun make to only execute
! # the first set of double-colon rules, so remove it if not needed.
! # If there is a colon in the path, we need to keep it.
  if test "x$srcdir" = x.; then
!   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
  fi
  
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- 
  DEFS=-DHAVE_CONFIG_H
  
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
  
! echo creating $CONFIG_STATUS
! rm -f $CONFIG_STATUS
! cat > $CONFIG_STATUS <<EOF
! #! /bin/sh
! # Generated automatically by configure.
  # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
  # Compiler output produced by configure, useful for debugging
! # configure, is in ./config.log if it exists.
  
! ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
! for ac_option
  do
!   case "\$ac_option" in
!   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
!     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
!     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
!   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
!     echo "$CONFIG_STATUS generated by autoconf version 2.13"
!     exit 0 ;;
!   -help | --help | --hel | --he | --h)
!     echo "\$ac_cs_usage"; exit 0 ;;
!   *) echo "\$ac_cs_usage"; exit 1 ;;
    esac
  done
  
! ac_given_srcdir=$srcdir
! ac_given_INSTALL="$INSTALL"
! 
! trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
! EOF
! cat >> $CONFIG_STATUS <<EOF
! 
! # Protect against being on the right side of a sed subst in config.status.
! sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
!  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
! $ac_vpsub
! $extrasub
! s%@SHELL@%$SHELL%g
! s%@CFLAGS@%$CFLAGS%g
! s%@CPPFLAGS@%$CPPFLAGS%g
! s%@CXXFLAGS@%$CXXFLAGS%g
! s%@FFLAGS@%$FFLAGS%g
! s%@DEFS@%$DEFS%g
! s%@LDFLAGS@%$LDFLAGS%g
! s%@LIBS@%$LIBS%g
! s%@exec_prefix@%$exec_prefix%g
! s%@prefix@%$prefix%g
! s%@program_transform_name@%$program_transform_name%g
! s%@bindir@%$bindir%g
! s%@sbindir@%$sbindir%g
! s%@libexecdir@%$libexecdir%g
! s%@datadir@%$datadir%g
! s%@sysconfdir@%$sysconfdir%g
! s%@sharedstatedir@%$sharedstatedir%g
! s%@localstatedir@%$localstatedir%g
! s%@libdir@%$libdir%g
! s%@includedir@%$includedir%g
! s%@oldincludedir@%$oldincludedir%g
! s%@infodir@%$infodir%g
! s%@mandir@%$mandir%g
! s%@host@%$host%g
! s%@host_alias@%$host_alias%g
! s%@host_cpu@%$host_cpu%g
! s%@host_vendor@%$host_vendor%g
! s%@host_os@%$host_os%g
! s%@target@%$target%g
! s%@target_alias@%$target_alias%g
! s%@target_cpu@%$target_cpu%g
! s%@target_vendor@%$target_vendor%g
! s%@target_os@%$target_os%g
! s%@build@%$build%g
! s%@build_alias@%$build_alias%g
! s%@build_cpu@%$build_cpu%g
! s%@build_vendor@%$build_vendor%g
! s%@build_os@%$build_os%g
! s%@YACC@%$YACC%g
! s%@LEX@%$LEX%g
! s%@LEXLIB@%$LEXLIB%g
! s%@CC@%$CC%g
! s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
! s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
! s%@INSTALL_DATA@%$INSTALL_DATA%g
! s%@CPP@%$CPP%g
  
- CEOF
- EOF
  
! cat >> $CONFIG_STATUS <<\EOF
  
! # Split the substitutions into bite-sized pieces for seds with
! # small command number limits, like on Digital OSF/1 and HP-UX.
! ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
! ac_file=1 # Number of current file.
! ac_beg=1 # First line for current file.
! ac_end=$ac_max_sed_cmds # Line after last line for current file.
! ac_more_lines=:
! ac_sed_cmds=""
! while $ac_more_lines; do
!   if test $ac_beg -gt 1; then
!     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
!   else
!     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
!   fi
!   if test ! -s conftest.s$ac_file; then
!     ac_more_lines=false
!     rm -f conftest.s$ac_file
    else
!     if test -z "$ac_sed_cmds"; then
!       ac_sed_cmds="sed -f conftest.s$ac_file"
!     else
!       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
!     fi
!     ac_file=`expr $ac_file + 1`
!     ac_beg=$ac_end
!     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    fi
  done
! if test -z "$ac_sed_cmds"; then
!   ac_sed_cmds=cat
  fi
- EOF
  
! cat >> $CONFIG_STATUS <<EOF
  
! CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
! EOF
! cat >> $CONFIG_STATUS <<\EOF
! for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
!   case "$ac_file" in
!   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
!        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
!   *) ac_file_in="${ac_file}.in" ;;
!   esac
! 
!   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
! 
!   # Remove last slash and all that follows it.  Not all systems have dirname.
!   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
!   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
!     # The file is in a subdirectory.
!     test ! -d "$ac_dir" && mkdir "$ac_dir"
!     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
!     # A "../" for each directory in $ac_dir_suffix.
!     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
!   else
!     ac_dir_suffix= ac_dots=
!   fi
! 
!   case "$ac_given_srcdir" in
!   .)  srcdir=.
!       if test -z "$ac_dots"; then top_srcdir=.
!       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
!   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
    *) # Relative path.
!     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
!     top_srcdir="$ac_dots$ac_given_srcdir" ;;
    esac
  
!   case "$ac_given_INSTALL" in
!   [/$]*) INSTALL="$ac_given_INSTALL" ;;
!   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
!   esac
! 
!   echo creating "$ac_file"
!   rm -f "$ac_file"
!   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
!   case "$ac_file" in
!   *Makefile*) ac_comsub="1i\\
! # $configure_input" ;;
!   *) ac_comsub= ;;
!   esac
! 
!   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
!   sed -e "$ac_comsub
! s%@configure_input@%$configure_input%g
! s%@srcdir@%$srcdir%g
! s%@top_srcdir@%$top_srcdir%g
! s%@INSTALL@%$INSTALL%g
! " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
! fi; done
! rm -f conftest.s*
  
  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  # NAME is the cpp macro being defined and VALUE is the value it is being given.
  #
  # ac_d sets the value in "#define NAME VALUE" lines.
! ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
! ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
! ac_dC='\3'
! ac_dD='%g'
! # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
! ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
! ac_uB='\([ 	]\)%\1#\2define\3'
  ac_uC=' '
! ac_uD='\4%g'
! # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
! ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
! ac_eB='$%\1#\2define\3'
! ac_eC=' '
! ac_eD='%g'
! 
! if test "${CONFIG_HEADERS+set}" != set; then
! EOF
! cat >> $CONFIG_STATUS <<EOF
!   CONFIG_HEADERS="config.h"
! EOF
! cat >> $CONFIG_STATUS <<\EOF
! fi
! for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
!   case "$ac_file" in
!   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
!        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
!   *) ac_file_in="${ac_file}.in" ;;
!   esac
! 
!   echo creating $ac_file
! 
!   rm -f conftest.frag conftest.in conftest.out
!   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
!   cat $ac_file_inputs > conftest.in
! 
! EOF
! 
! # Transform confdefs.h into a sed script conftest.vals that substitutes
! # the proper values into config.h.in to produce config.h.  And first:
! # Protect against being on the right side of a sed subst in config.status.
! # Protect against being in an unquoted here document in config.status.
! rm -f conftest.vals
! cat > conftest.hdr <<\EOF
! s/[\\&%]/\\&/g
! s%[\\$`]%\\&%g
! s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
! s%ac_d%ac_u%gp
! s%ac_u%ac_e%gp
! EOF
! sed -n -f conftest.hdr confdefs.h > conftest.vals
! rm -f conftest.hdr
  
  # This sed command replaces #undef with comments.  This is necessary, for
  # example, in the case of _POSIX_SOURCE, which is predefined and required
  # on some systems where configure will not decide to define it.
! cat >> conftest.vals <<\EOF
! s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
! EOF
! 
! # Break up conftest.vals because some shells have a limit on
! # the size of here documents, and old seds have small limits too.
! 
  rm -f conftest.tail
! while :
  do
!   ac_lines=`grep -c . conftest.vals`
!   # grep -c gives empty output for an empty file on some AIX systems.
!   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
!   # Write a limited-size here document to conftest.frag.
!   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
!   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
    echo 'CEOF
!   sed -f conftest.frag conftest.in > conftest.out
!   rm -f conftest.in
!   mv conftest.out conftest.in
! ' >> $CONFIG_STATUS
!   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
!   rm -f conftest.vals
!   mv conftest.tail conftest.vals
! done
! rm -f conftest.vals
! 
! cat >> $CONFIG_STATUS <<\EOF
!   rm -f conftest.frag conftest.h
!   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
!   cat conftest.in >> conftest.h
!   rm -f conftest.in
!   if cmp -s $ac_file conftest.h 2>/dev/null; then
!     echo "$ac_file is unchanged"
!     rm -f conftest.h
!   else
!     # Remove last slash and all that follows it.  Not all systems have dirname.
!       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
!       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
!       # The file is in a subdirectory.
!       test ! -d "$ac_dir" && mkdir "$ac_dir"
!     fi
!     rm -f $ac_file
!     mv conftest.h $ac_file
    fi
! fi; done
  
! EOF
! cat >> $CONFIG_STATUS <<EOF
  
! EOF
! cat >> $CONFIG_STATUS <<\EOF
  
! exit 0
! EOF
  chmod +x $CONFIG_STATUS
! rm -fr confdefs* $ac_clean_files
! test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  
--- 5360,6436 ----
  	     OS_DIR="svr4"
  	     ;;
  	*freebsd*)
! 	     if test "$OS_REL" -ge "40"; then
  	        OS_DIR="freebsd"
  	     fi
  	     ;;
  	*openbsd*)
! 	     if test "$OS_REL" -ge "25"; then
  	        OS_DIR="openbsd"
  	     fi
  	     ;;
! esac
  
!     echo "$as_me:$LINENO: result: creating driver and protocol links ... " >&5
! echo "${ECHO_T}creating driver and protocol links ... " >&6
  
      if test "$OS_DIR" != ""; then
! 
      for i in `cat vtun.drivers`; do
        if test -f $OS_DIR/$i -a ! -f $i; then
!          echo "$as_me:$LINENO: result: linking $OS_DIR/$i  to  $i" >&5
! echo "${ECHO_T}linking $OS_DIR/$i  to  $i" >&6
           ln -f -s $OS_DIR/$i $i
        fi
!     done
  
      fi
! 
      for i in `cat vtun.drivers`; do
        if test -f generic/$i -a ! -f $i; then
!          echo "$as_me:$LINENO: result: linking generic/$i  to  $i" >&5
! echo "${ECHO_T}linking generic/$i  to  $i" >&6
           ln -f -s generic/$i $i
        fi
!     done
  
  
  
! echo "$as_me:$LINENO: result: " >&5
! echo "${ECHO_T}" >&6
  
  
! REL=`echo 'substr($Name,0)$' | tr -d '$: \-' | sed 's/^[A-Za-z]*//' | sed 's/\_/\./'`
  
  
! cat >>confdefs.h <<_ACEOF
  #define VTUN_VER "$REL `date '+%m/%d/%Y'`"
! _ACEOF
  
  
! ac_config_files="$ac_config_files Makefile"
! cat >confcache <<\_ACEOF
  # This file is a shell script that caches the results of configure
  # tests run on this system so they can be shared between configure
! # scripts and configure runs, see configure's option --config-cache.
! # It is not useful on other systems.  If it contains results you don't
! # want to keep, you may remove or edit it.
  #
! # config.status only pays attention to the cache file if you give it
! # the --recheck option to rerun configure.
  #
! # `ac_cv_env_foo' variables (set or unset) will be overriden when
! # loading this file, other *unset* `ac_cv_foo' will be assigned the
! # following values.
! 
! _ACEOF
! 
  # The following way of writing the cache mishandles newlines in values,
  # but we know of no workaround that is simple, portable, and efficient.
  # So, don't put newlines in cache variables' values.
  # Ultrix sh set writes to stderr and can't be redirected directly,
  # and sets the high bit in the cache file unless we assign to the vars.
! {
!   (set) 2>&1 |
!     case `(ac_space=' '; set | grep ac_space) 2>&1` in
!     *ac_space=\ *)
!       # `set' does not quote correctly, so add quotes (double-quote
!       # substitution turns \\\\ into \\, and sed turns \\ into \).
!       sed -n \
!         "s/'/'\\\\''/g;
!     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
!       ;;
!     *)
!       # `set' quotes correctly as required by POSIX, so do not add quotes.
!       sed -n \
!         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
!       ;;
!     esac;
! } |
!   sed '
!      t clear
!      : clear
!      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
!      t end
!      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
!      : end' >>confcache
! if cmp -s $cache_file confcache; then :; else
    if test -w $cache_file; then
!     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
!     cat confcache >$cache_file
    else
      echo "not updating unwritable cache $cache_file"
    fi
  fi
  rm -f confcache
  
  test "x$prefix" = xNONE && prefix=$ac_default_prefix
  # Let make expand exec_prefix.
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  
! # VPATH may cause trouble with some makes, so we remove $(srcdir),
! # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! # trailing colons and then remove the whole line if VPATH becomes empty
! # (actually we leave an empty line to preserve line numbers).
  if test "x$srcdir" = x.; then
!   ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
! s/:*\$(srcdir):*/:/;
! s/:*\${srcdir}:*/:/;
! s/:*@srcdir@:*/:/;
! s/^\([^=]*=[ 	]*\):*/\1/;
! s/:*$//;
! s/^[^=]*=[ 	]*$//;
! }'
  fi
  
  DEFS=-DHAVE_CONFIG_H
  
  
! : ${CONFIG_STATUS=./config.status}
! ac_clean_files_save=$ac_clean_files
! ac_clean_files="$ac_clean_files $CONFIG_STATUS"
! { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
! echo "$as_me: creating $CONFIG_STATUS" >&6;}
! cat >$CONFIG_STATUS <<_ACEOF
! #! $SHELL
! # Generated by $as_me.
  # Run this file to recreate the current configuration.
  # Compiler output produced by configure, useful for debugging
! # configure, is in config.log if it exists.
  
! debug=false
! SHELL=\${CONFIG_SHELL-$SHELL}
! _ACEOF
! 
! cat >>$CONFIG_STATUS <<\_ACEOF
! 
! ## --------------------- ##
! ## M4sh Initialization.  ##
! ## --------------------- ##
! 
! # Be Bourne compatible
! if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
!   emulate sh
!   NULLCMD=:
! elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
!   set -o posix
! fi
! 
! # NLS nuisances.
! # Support unset when possible.
! if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
!   as_unset=unset
! else
!   as_unset=false
! fi
! 
! (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
!     { $as_unset LANG || test "${LANG+set}" != set; } ||
!       { LANG=C; export LANG; }
! (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
!     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
!       { LC_ALL=C; export LC_ALL; }
! (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
!     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
!       { LC_TIME=C; export LC_TIME; }
! (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
!     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
!       { LC_CTYPE=C; export LC_CTYPE; }
! (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
!     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
!       { LANGUAGE=C; export LANGUAGE; }
! (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
!     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
!       { LC_COLLATE=C; export LC_COLLATE; }
! (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
!     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
!       { LC_NUMERIC=C; export LC_NUMERIC; }
! (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
!     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
!       { LC_MESSAGES=C; export LC_MESSAGES; }
! 
! 
! # Name of the executable.
! as_me=`(basename "$0") 2>/dev/null ||
! $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 	 X"$0" : 'X\(//\)$' \| \
! 	 X"$0" : 'X\(/\)$' \| \
! 	 .     : '\(.\)' 2>/dev/null ||
! echo X/"$0" |
!     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
!   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
!   	  /^X\/\(\/\).*/{ s//\1/; q; }
!   	  s/.*/./; q'`
! 
! # PATH needs CR, and LINENO needs CR and PATH.
! # Avoid depending upon Character Ranges.
! as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! as_cr_digits='0123456789'
! as_cr_alnum=$as_cr_Letters$as_cr_digits
! 
! # The user is always right.
! if test "${PATH_SEPARATOR+set}" != set; then
!   echo "#! /bin/sh" >conftest.sh
!   echo  "exit 0"   >>conftest.sh
!   chmod +x conftest.sh
!   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
!     PATH_SEPARATOR=';'
!   else
!     PATH_SEPARATOR=:
!   fi
!   rm -f conftest.sh
! fi
! 
! 
!   as_lineno_1=$LINENO
!   as_lineno_2=$LINENO
!   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
!   test "x$as_lineno_1" != "x$as_lineno_2" &&
!   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
!   # Find who we are.  Look in the path if we contain no path at all
!   # relative or not.
!   case $0 in
!     *[\\/]* ) as_myself=$0 ;;
!     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! for as_dir in $PATH
  do
!   IFS=$as_save_IFS
!   test -z "$as_dir" && as_dir=.
!   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! done
! 
!        ;;
    esac
+   # We did not find ourselves, most probably we were run as `sh COMMAND'
+   # in which case we are not to be found in the path.
+   if test "x$as_myself" = x; then
+     as_myself=$0
+   fi
+   if test ! -f "$as_myself"; then
+     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
+ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
+    { (exit 1); exit 1; }; }
+   fi
+   case $CONFIG_SHELL in
+   '')
+     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+ for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+ do
+   IFS=$as_save_IFS
+   test -z "$as_dir" && as_dir=.
+   for as_base in sh bash ksh sh5; do
+ 	 case $as_dir in
+ 	 /*)
+ 	   if ("$as_dir/$as_base" -c '
+   as_lineno_1=$LINENO
+   as_lineno_2=$LINENO
+   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+   test "x$as_lineno_1" != "x$as_lineno_2" &&
+   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
+ 	     CONFIG_SHELL=$as_dir/$as_base
+ 	     export CONFIG_SHELL
+ 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+ 	   fi;;
+ 	 esac
+        done
  done
+ ;;
+   esac
  
!   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
!   # uniformly replaced by the line number.  The first 'sed' inserts a
!   # line-number line before each line; the second 'sed' does the real
!   # work.  The second script uses 'N' to pair each line-number line
!   # with the numbered line, and appends trailing '-' during
!   # substitution so that $LINENO is not a special case at line end.
!   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
!   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
!   sed '=' <$as_myself |
!     sed '
!       N
!       s,$,-,
!       : loop
!       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
!       t loop
!       s,-$,,
!       s,^['$as_cr_digits']*\n,,
!     ' >$as_me.lineno &&
!   chmod +x $as_me.lineno ||
!     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
! echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
!    { (exit 1); exit 1; }; }
! 
!   # Don't try to exec as it changes $[0], causing all sort of problems
!   # (the dirname of $[0] is not the place where we might find the
!   # original and so on.  Autoconf is especially sensible to this).
!   . ./$as_me.lineno
!   # Exit status is that of the last command.
!   exit
! }
  
  
! case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
!   *c*,-n*) ECHO_N= ECHO_C='
! ' ECHO_T='	' ;;
!   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
!   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
! esac
! 
! if expr a : '\(a\)' >/dev/null 2>&1; then
!   as_expr=expr
! else
!   as_expr=false
! fi
  
! rm -f conf$$ conf$$.exe conf$$.file
! echo >conf$$.file
! if ln -s conf$$.file conf$$ 2>/dev/null; then
!   # We could just check for DJGPP; but this test a) works b) is more generic
!   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
!   if test -f conf$$.exe; then
!     # Don't use ln at all; we don't have any links
!     as_ln_s='cp -p'
    else
!     as_ln_s='ln -s'
    fi
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+   as_ln_s=ln
+ else
+   as_ln_s='cp -p'
+ fi
+ rm -f conf$$ conf$$.exe conf$$.file
+ 
+ as_executable_p="test -f"
+ 
+ # Sed expression to map a string onto a valid CPP name.
+ as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
+ 
+ # Sed expression to map a string onto a valid variable name.
+ as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
+ 
+ 
+ # IFS
+ # We need space, tab and new line, in precisely that order.
+ as_nl='
+ '
+ IFS=" 	$as_nl"
+ 
+ # CDPATH.
+ $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
+ 
+ exec 6>&1
+ 
+ # Open the log real soon, to keep \$[0] and so on meaningful, and to
+ # report actual input values of CONFIG_FILES etc. instead of their
+ # values after options handling.  Logging --version etc. is OK.
+ exec 5>>config.log
+ {
+   echo
+   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+ ## Running $as_me. ##
+ _ASBOX
+ } >&5
+ cat >&5 <<_CSEOF
+ 
+ This file was extended by $as_me, which was
+ generated by GNU Autoconf 2.53.  Invocation command line was
+ 
+   CONFIG_FILES    = $CONFIG_FILES
+   CONFIG_HEADERS  = $CONFIG_HEADERS
+   CONFIG_LINKS    = $CONFIG_LINKS
+   CONFIG_COMMANDS = $CONFIG_COMMANDS
+   $ $0 $@
+ 
+ _CSEOF
+ echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
+ echo >&5
+ _ACEOF
+ 
+ # Files that config.status was made for.
+ if test -n "$ac_config_files"; then
+   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
+ fi
+ 
+ if test -n "$ac_config_headers"; then
+   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
+ fi
+ 
+ if test -n "$ac_config_links"; then
+   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
+ fi
+ 
+ if test -n "$ac_config_commands"; then
+   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
+ fi
+ 
+ cat >>$CONFIG_STATUS <<\_ACEOF
+ 
+ ac_cs_usage="\
+ \`$as_me' instantiates files from templates according to the
+ current configuration.
+ 
+ Usage: $0 [OPTIONS] [FILE]...
+ 
+   -h, --help       print this help, then exit
+   -V, --version    print version number, then exit
+   -d, --debug      don't remove temporary files
+       --recheck    update $as_me by reconfiguring in the same conditions
+   --file=FILE[:TEMPLATE]
+                    instantiate the configuration file FILE
+   --header=FILE[:TEMPLATE]
+                    instantiate the configuration header FILE
+ 
+ Configuration files:
+ $config_files
+ 
+ Configuration headers:
+ $config_headers
+ 
+ Report bugs to <bug-autoconf@gnu.org>."
+ _ACEOF
+ 
+ cat >>$CONFIG_STATUS <<_ACEOF
+ ac_cs_version="\\
+ config.status
+ configured by $0, generated by GNU Autoconf 2.53,
+   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+ 
+ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+ Free Software Foundation, Inc.
+ This config.status script is free software; the Free Software Foundation
+ gives unlimited permission to copy, distribute and modify it."
+ srcdir=$srcdir
+ INSTALL="$INSTALL"
+ _ACEOF
+ 
+ cat >>$CONFIG_STATUS <<\_ACEOF
+ # If no file are specified by the user, then we need to provide default
+ # value.  By we need to know if files were specified by the user.
+ ac_need_defaults=:
+ while test $# != 0
+ do
+   case $1 in
+   --*=*)
+     ac_option=`expr "x$1" : 'x\([^=]*\)='`
+     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
+     shift
+     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
+     shift
+     ;;
+   -*);;
+   *) # This is not an option, so the user has probably given explicit
+      # arguments.
+      ac_need_defaults=false;;
+   esac
+ 
+   case $1 in
+   # Handling of the options.
+ _ACEOF
+ cat >>$CONFIG_STATUS <<_ACEOF
+   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
+     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
+ _ACEOF
+ cat >>$CONFIG_STATUS <<\_ACEOF
+   --version | --vers* | -V )
+     echo "$ac_cs_version"; exit 0 ;;
+   --he | --h)
+     # Conflict between --help and --header
+     { { echo "$as_me:$LINENO: error: ambiguous option: $1
+ Try \`$0 --help' for more information." >&5
+ echo "$as_me: error: ambiguous option: $1
+ Try \`$0 --help' for more information." >&2;}
+    { (exit 1); exit 1; }; };;
+   --help | --hel | -h )
+     echo "$ac_cs_usage"; exit 0 ;;
+   --debug | --d* | -d )
+     debug=: ;;
+   --file | --fil | --fi | --f )
+     shift
+     CONFIG_FILES="$CONFIG_FILES $1"
+     ac_need_defaults=false;;
+   --header | --heade | --head | --hea )
+     shift
+     CONFIG_HEADERS="$CONFIG_HEADERS $1"
+     ac_need_defaults=false;;
+ 
+   # This is an error.
+   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
+ Try \`$0 --help' for more information." >&5
+ echo "$as_me: error: unrecognized option: $1
+ Try \`$0 --help' for more information." >&2;}
+    { (exit 1); exit 1; }; } ;;
+ 
+   *) ac_config_targets="$ac_config_targets $1" ;;
+ 
+   esac
+   shift
+ done
+ 
+ _ACEOF
+ 
+ 
+ 
+ 
+ 
+ cat >>$CONFIG_STATUS <<\_ACEOF
+ for ac_config_target in $ac_config_targets
+ do
+   case "$ac_config_target" in
+   # Handling of arguments.
+   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+ echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+    { (exit 1); exit 1; }; };;
+   esac
  done
! 
! # If the user did not use the arguments to specify the items to instantiate,
! # then the envvar interface is used.  Set only those that are not.
! # We use the long form for the default assignment because of an extremely
! # bizarre bug on SunOS 4.1.3.
! if $ac_need_defaults; then
!   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
!   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  fi
  
! # Create a temporary directory, and hook for its removal unless debugging.
! $debug ||
! {
!   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
!   trap '{ (exit 1); exit 1; }' 1 2 13 15
! }
! 
! # Create a (secure) tmp directory for tmp files.
! : ${TMPDIR=/tmp}
! {
!   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
!   test -n "$tmp" && test -d "$tmp"
! }  ||
! {
!   tmp=$TMPDIR/cs$$-$RANDOM
!   (umask 077 && mkdir $tmp)
! } ||
! {
!    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
!    { (exit 1); exit 1; }
! }
! 
! _ACEOF
! 
! cat >>$CONFIG_STATUS <<_ACEOF
! 
! #
! # CONFIG_FILES section.
! #
! 
! # No need to generate the scripts if there are no CONFIG_FILES.
! # This happens for instance when ./config.status config.h
! if test -n "\$CONFIG_FILES"; then
!   # Protect against being on the right side of a sed subst in config.status.
!   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
!    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
! s,@SHELL@,$SHELL,;t t
! s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
! s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
! s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
! s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
! s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
! s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
! s,@exec_prefix@,$exec_prefix,;t t
! s,@prefix@,$prefix,;t t
! s,@program_transform_name@,$program_transform_name,;t t
! s,@bindir@,$bindir,;t t
! s,@sbindir@,$sbindir,;t t
! s,@libexecdir@,$libexecdir,;t t
! s,@datadir@,$datadir,;t t
! s,@sysconfdir@,$sysconfdir,;t t
! s,@sharedstatedir@,$sharedstatedir,;t t
! s,@localstatedir@,$localstatedir,;t t
! s,@libdir@,$libdir,;t t
! s,@includedir@,$includedir,;t t
! s,@oldincludedir@,$oldincludedir,;t t
! s,@infodir@,$infodir,;t t
! s,@mandir@,$mandir,;t t
! s,@build_alias@,$build_alias,;t t
! s,@host_alias@,$host_alias,;t t
! s,@target_alias@,$target_alias,;t t
! s,@DEFS@,$DEFS,;t t
! s,@ECHO_C@,$ECHO_C,;t t
! s,@ECHO_N@,$ECHO_N,;t t
! s,@ECHO_T@,$ECHO_T,;t t
! s,@LIBS@,$LIBS,;t t
! s,@build@,$build,;t t
! s,@build_cpu@,$build_cpu,;t t
! s,@build_vendor@,$build_vendor,;t t
! s,@build_os@,$build_os,;t t
! s,@host@,$host,;t t
! s,@host_cpu@,$host_cpu,;t t
! s,@host_vendor@,$host_vendor,;t t
! s,@host_os@,$host_os,;t t
! s,@target@,$target,;t t
! s,@target_cpu@,$target_cpu,;t t
! s,@target_vendor@,$target_vendor,;t t
! s,@target_os@,$target_os,;t t
! s,@YACC@,$YACC,;t t
! s,@LEX@,$LEX,;t t
! s,@CC@,$CC,;t t
! s,@CFLAGS@,$CFLAGS,;t t
! s,@LDFLAGS@,$LDFLAGS,;t t
! s,@CPPFLAGS@,$CPPFLAGS,;t t
! s,@ac_ct_CC@,$ac_ct_CC,;t t
! s,@EXEEXT@,$EXEEXT,;t t
! s,@OBJEXT@,$OBJEXT,;t t
! s,@LEXLIB@,$LEXLIB,;t t
! s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
! s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
! s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
! s,@INSTALL_DATA@,$INSTALL_DATA,;t t
! s,@CPP@,$CPP,;t t
! CEOF
! 
! _ACEOF
  
!   cat >>$CONFIG_STATUS <<\_ACEOF
!   # Split the substitutions into bite-sized pieces for seds with
!   # small command number limits, like on Digital OSF/1 and HP-UX.
!   ac_max_sed_lines=48
!   ac_sed_frag=1 # Number of current file.
!   ac_beg=1 # First line for current file.
!   ac_end=$ac_max_sed_lines # Line after last line for current file.
!   ac_more_lines=:
!   ac_sed_cmds=
!   while $ac_more_lines; do
!     if test $ac_beg -gt 1; then
!       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
!     else
!       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
!     fi
!     if test ! -s $tmp/subs.frag; then
!       ac_more_lines=false
!     else
!       # The purpose of the label and of the branching condition is to
!       # speed up the sed processing (if there are no `@' at all, there
!       # is no need to browse any of the substitutions).
!       # These are the two extra sed commands mentioned above.
!       (echo ':t
!   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
!       if test -z "$ac_sed_cmds"; then
!   	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
!       else
!   	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
!       fi
!       ac_sed_frag=`expr $ac_sed_frag + 1`
!       ac_beg=$ac_end
!       ac_end=`expr $ac_end + $ac_max_sed_lines`
!     fi
!   done
!   if test -z "$ac_sed_cmds"; then
!     ac_sed_cmds=cat
!   fi
! fi # test -n "$CONFIG_FILES"
! 
! _ACEOF
! cat >>$CONFIG_STATUS <<\_ACEOF
! for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
!   case $ac_file in
!   - | *:- | *:-:* ) # input from stdin
!         cat >$tmp/stdin
!         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
!         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
!   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
!         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
!   * )   ac_file_in=$ac_file.in ;;
!   esac
! 
!   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
!   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
!          X"$ac_file" : 'X\(//\)[^/]' \| \
!          X"$ac_file" : 'X\(//\)$' \| \
!          X"$ac_file" : 'X\(/\)' \| \
!          .     : '\(.\)' 2>/dev/null ||
! echo X"$ac_file" |
!     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
!   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
!   	  /^X\(\/\/\)$/{ s//\1/; q; }
!   	  /^X\(\/\).*/{ s//\1/; q; }
!   	  s/.*/./; q'`
!   { case "$ac_dir" in
!   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
!   *)                      as_incr_dir=.;;
! esac
! as_dummy="$ac_dir"
! for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
!   case $as_mkdir_dir in
!     # Skip DOS drivespec
!     ?:) as_incr_dir=$as_mkdir_dir ;;
!     *)
!       as_incr_dir=$as_incr_dir/$as_mkdir_dir
!       test -d "$as_incr_dir" ||
!         mkdir "$as_incr_dir" ||
! 	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
! echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
!    { (exit 1); exit 1; }; }
!     ;;
!   esac
! done; }
! 
!   ac_builddir=.
! 
! if test "$ac_dir" != .; then
!   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
!   # A "../" for each directory in $ac_dir_suffix.
!   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! else
!   ac_dir_suffix= ac_top_builddir=
! fi
! 
! case $srcdir in
!   .)  # No --srcdir option.  We are building in place.
!     ac_srcdir=.
!     if test -z "$ac_top_builddir"; then
!        ac_top_srcdir=.
!     else
!        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
!     fi ;;
!   [\\/]* | ?:[\\/]* )  # Absolute path.
!     ac_srcdir=$srcdir$ac_dir_suffix;
!     ac_top_srcdir=$srcdir ;;
    *) # Relative path.
!     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
!     ac_top_srcdir=$ac_top_builddir$srcdir ;;
! esac
! # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! # absolute.
! ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
! ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 
! 
!   case $INSTALL in
!   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
!   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
    esac
  
!   if test x"$ac_file" != x-; then
!     { echo "$as_me:$LINENO: creating $ac_file" >&5
! echo "$as_me: creating $ac_file" >&6;}
!     rm -f "$ac_file"
!   fi
!   # Let's still pretend it is `configure' which instantiates (i.e., don't
!   # use $as_me), people would be surprised to read:
!   #    /* config.h.  Generated by config.status.  */
!   if test x"$ac_file" = x-; then
!     configure_input=
!   else
!     configure_input="$ac_file.  "
!   fi
!   configure_input=$configure_input"Generated from `echo $ac_file_in |
!                                      sed 's,.*/,,'` by configure."
! 
!   # First look for the input files in the build tree, otherwise in the
!   # src tree.
!   ac_file_inputs=`IFS=:
!     for f in $ac_file_in; do
!       case $f in
!       -) echo $tmp/stdin ;;
!       [\\/$]*)
!          # Absolute (can't be DOS-style, as IFS=:)
!          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! echo "$as_me: error: cannot find input file: $f" >&2;}
!    { (exit 1); exit 1; }; }
!          echo $f;;
!       *) # Relative
!          if test -f "$f"; then
!            # Build tree
!            echo $f
!          elif test -f "$srcdir/$f"; then
!            # Source tree
!            echo $srcdir/$f
!          else
!            # /dev/null tree
!            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! echo "$as_me: error: cannot find input file: $f" >&2;}
!    { (exit 1); exit 1; }; }
!          fi;;
!       esac
!     done` || { (exit 1); exit 1; }
! _ACEOF
! cat >>$CONFIG_STATUS <<_ACEOF
!   sed "$ac_vpsub
! $extrasub
! _ACEOF
! cat >>$CONFIG_STATUS <<\_ACEOF
! :t
! /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
! s,@configure_input@,$configure_input,;t t
! s,@srcdir@,$ac_srcdir,;t t
! s,@abs_srcdir@,$ac_abs_srcdir,;t t
! s,@top_srcdir@,$ac_top_srcdir,;t t
! s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
! s,@builddir@,$ac_builddir,;t t
! s,@abs_builddir@,$ac_abs_builddir,;t t
! s,@top_builddir@,$ac_top_builddir,;t t
! s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
! s,@INSTALL@,$ac_INSTALL,;t t
! " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
!   rm -f $tmp/stdin
!   if test x"$ac_file" != x-; then
!     mv $tmp/out $ac_file
!   else
!     cat $tmp/out
!     rm -f $tmp/out
!   fi
! 
! done
! _ACEOF
! cat >>$CONFIG_STATUS <<\_ACEOF
! 
! #
! # CONFIG_HEADER section.
! #
  
  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  # NAME is the cpp macro being defined and VALUE is the value it is being given.
  #
  # ac_d sets the value in "#define NAME VALUE" lines.
! ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
! ac_dB='[ 	].*$,\1#\2'
! ac_dC=' '
! ac_dD=',;t'
! # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
! ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
! ac_uB='$,\1#\2define\3'
  ac_uC=' '
! ac_uD=',;t'
! 
! for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
!   case $ac_file in
!   - | *:- | *:-:* ) # input from stdin
!         cat >$tmp/stdin
!         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
!         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
!   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
!         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
!   * )   ac_file_in=$ac_file.in ;;
!   esac
! 
!   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
! echo "$as_me: creating $ac_file" >&6;}
! 
!   # First look for the input files in the build tree, otherwise in the
!   # src tree.
!   ac_file_inputs=`IFS=:
!     for f in $ac_file_in; do
!       case $f in
!       -) echo $tmp/stdin ;;
!       [\\/$]*)
!          # Absolute (can't be DOS-style, as IFS=:)
!          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! echo "$as_me: error: cannot find input file: $f" >&2;}
!    { (exit 1); exit 1; }; }
!          echo $f;;
!       *) # Relative
!          if test -f "$f"; then
!            # Build tree
!            echo $f
!          elif test -f "$srcdir/$f"; then
!            # Source tree
!            echo $srcdir/$f
!          else
!            # /dev/null tree
!            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! echo "$as_me: error: cannot find input file: $f" >&2;}
!    { (exit 1); exit 1; }; }
!          fi;;
!       esac
!     done` || { (exit 1); exit 1; }
!   # Remove the trailing spaces.
!   sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
! 
! _ACEOF
! 
! # Transform confdefs.h into two sed scripts, `conftest.defines' and
! # `conftest.undefs', that substitutes the proper values into
! # config.h.in to produce config.h.  The first handles `#define'
! # templates, and the second `#undef' templates.
! # And first: Protect against being on the right side of a sed subst in
! # config.status.  Protect against being in an unquoted here document
! # in config.status.
! rm -f conftest.defines conftest.undefs
! # Using a here document instead of a string reduces the quoting nightmare.
! # Putting comments in sed scripts is not portable.
! #
! # `end' is used to avoid that the second main sed command (meant for
! # 0-ary CPP macros) applies to n-ary macro definitions.
! # See the Autoconf documentation for `clear'.
! cat >confdef2sed.sed <<\_ACEOF
! s/[\\&,]/\\&/g
! s,[\\$`],\\&,g
! t clear
! : clear
! s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
! t end
! s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
! : end
! _ACEOF
! # If some macros were called several times there might be several times
! # the same #defines, which is useless.  Nevertheless, we may not want to
! # sort them, since we want the *last* AC-DEFINE to be honored.
! uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
! sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
! rm -f confdef2sed.sed
  
  # This sed command replaces #undef with comments.  This is necessary, for
  # example, in the case of _POSIX_SOURCE, which is predefined and required
  # on some systems where configure will not decide to define it.
! cat >>conftest.undefs <<\_ACEOF
! s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
! _ACEOF
! 
! # Break up conftest.defines because some shells have a limit on the size
! # of here documents, and old seds have small limits too (100 cmds).
! echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
! echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
! echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
! echo '  :' >>$CONFIG_STATUS
  rm -f conftest.tail
! while grep . conftest.defines >/dev/null
  do
!   # Write a limited-size here document to $tmp/defines.sed.
!   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
!   # Speed up: don't consider the non `#define' lines.
!   echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
!   # Work around the forget-to-reset-the-flag bug.
!   echo 't clr' >>$CONFIG_STATUS
!   echo ': clr' >>$CONFIG_STATUS
!   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    echo 'CEOF
!   sed -f $tmp/defines.sed $tmp/in >$tmp/out
!   rm -f $tmp/in
!   mv $tmp/out $tmp/in
! ' >>$CONFIG_STATUS
!   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
!   rm -f conftest.defines
!   mv conftest.tail conftest.defines
! done
! rm -f conftest.defines
! echo '  fi # egrep' >>$CONFIG_STATUS
! echo >>$CONFIG_STATUS
! 
! # Break up conftest.undefs because some shells have a limit on the size
! # of here documents, and old seds have small limits too (100 cmds).
! echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
! rm -f conftest.tail
! while grep . conftest.undefs >/dev/null
! do
!   # Write a limited-size here document to $tmp/undefs.sed.
!   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
!   # Speed up: don't consider the non `#undef'
!   echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
!   # Work around the forget-to-reset-the-flag bug.
!   echo 't clr' >>$CONFIG_STATUS
!   echo ': clr' >>$CONFIG_STATUS
!   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
!   echo 'CEOF
!   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
!   rm -f $tmp/in
!   mv $tmp/out $tmp/in
! ' >>$CONFIG_STATUS
!   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
!   rm -f conftest.undefs
!   mv conftest.tail conftest.undefs
! done
! rm -f conftest.undefs
! 
! cat >>$CONFIG_STATUS <<\_ACEOF
!   # Let's still pretend it is `configure' which instantiates (i.e., don't
!   # use $as_me), people would be surprised to read:
!   #    /* config.h.  Generated by config.status.  */
!   if test x"$ac_file" = x-; then
!     echo "/* Generated by configure.  */" >$tmp/config.h
!   else
!     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    fi
!   cat $tmp/in >>$tmp/config.h
!   rm -f $tmp/in
!   if test x"$ac_file" != x-; then
!     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
!       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
! echo "$as_me: $ac_file is unchanged" >&6;}
!     else
!       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
!          X"$ac_file" : 'X\(//\)[^/]' \| \
!          X"$ac_file" : 'X\(//\)$' \| \
!          X"$ac_file" : 'X\(/\)' \| \
!          .     : '\(.\)' 2>/dev/null ||
! echo X"$ac_file" |
!     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
!   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
!   	  /^X\(\/\/\)$/{ s//\1/; q; }
!   	  /^X\(\/\).*/{ s//\1/; q; }
!   	  s/.*/./; q'`
!       { case "$ac_dir" in
!   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
!   *)                      as_incr_dir=.;;
! esac
! as_dummy="$ac_dir"
! for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
!   case $as_mkdir_dir in
!     # Skip DOS drivespec
!     ?:) as_incr_dir=$as_mkdir_dir ;;
!     *)
!       as_incr_dir=$as_incr_dir/$as_mkdir_dir
!       test -d "$as_incr_dir" ||
!         mkdir "$as_incr_dir" ||
! 	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
! echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
!    { (exit 1); exit 1; }; }
!     ;;
!   esac
! done; }
  
!       rm -f $ac_file
!       mv $tmp/config.h $ac_file
!     fi
!   else
!     cat $tmp/config.h
!     rm -f $tmp/config.h
!   fi
! done
! _ACEOF
  
! cat >>$CONFIG_STATUS <<\_ACEOF
  
! { (exit 0); exit 0; }
! _ACEOF
  chmod +x $CONFIG_STATUS
! ac_clean_files=$ac_clean_files_save
! 
! 
! # configure is writing to config.log, and then calls config.status.
! # config.status does its own redirection, appending to config.log.
! # Unfortunately, on DOS this fails, as config.log is still kept open
! # by configure, so config.status won't be able to write to it; its
! # output is simply discarded.  So we exec the FD to /dev/null,
! # effectively closing config.log, so it can be properly (re)opened and
! # appended to by config.status.  When coming back to configure, we
! # need to make the FD available again.
! if test "$no_create" != yes; then
!   ac_cs_success=:
!   exec 5>/dev/null
!   $SHELL $CONFIG_STATUS || ac_cs_success=false
!   exec 5>>config.log
!   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
!   # would make configure fail if this is the last instruction.
!   $ac_cs_success || { (exit 1); exit 1; }
! fi
  
diff -c -N -r vtun-2.6/configure.in vtun-3.0-RvR/configure.in
*** vtun-2.6/configure.in	Fri Dec 20 18:13:03 2002
--- vtun-3.0-RvR/configure.in	Fri Oct 10 14:15:09 2003
***************
*** 65,70 ****
--- 65,77 ----
     LIBS="$LIBS -L$withval" 
  )
  
+ dnl Build in dynamic support for ePass1000 (shipping without lib is possible)
+ AC_ARG_WITH(epass,
+    --with-epass		Support ePass1000 cryptographic token (README.Crypto)
+    CFLAGS="$CFLAGS -DUSE_EPASS"
+    LIBS="$LIBS -ldl"
+ )
+ 
  dnl Guess host type.
  AC_CANONICAL_HOST
  AC_CANONICAL_SYSTEM
diff -c -N -r vtun-2.6/lfd_encrypt.c vtun-3.0-RvR/lfd_encrypt.c
*** vtun-2.6/lfd_encrypt.c	Mon Dec 16 22:40:46 2002
--- vtun-3.0-RvR/lfd_encrypt.c	Fri Oct 10 14:27:10 2003
***************
*** 30,36 ****
   * This lfd_encrypt module uses MD5 to create 128 bits encryption
   * keys and BlowFish for actual data encryption.
   * It is based on code written by Chris Todd<christ@insynq.com> with 
!  * several improvements and modifications by me.  
   */
  
  #include "config.h"
--- 30,58 ----
   * This lfd_encrypt module uses MD5 to create 128 bits encryption
   * keys and BlowFish for actual data encryption.
   * It is based on code written by Chris Todd<christ@insynq.com> with 
!  * several improvements and modifications by Maxim Krasnyansky.  
!  * After that, Rick van Rein changed encryption mode from ECB to CBC,
!  * to deminish the chances of replay attacks.  This works optimally
!  * on TCP connections, where delivery order is known so that the chain
!  * can be continued between tunnelled packets.
!  */
! 
! /* Cryptographic improvements by Rick van Rein <rick@openfortress.nl>
!  *
!  * ECB mode was used, but it is not safe because every single 8-bit package
!  * could be replaced independently.  CBC is now used.  In addition, support
!  * for evolving ciphers was made using the initialisation vectors for that
!  * mode of operation.
!  *
!  * The prefix used to be length + zeroes to pad it to 8-byte blocks.  This
!  * would however give away a lot of information if the information there
!  * had been fixed bytes 08 00 00 00 00 00 00 00.  A simple improvement was
!  * made by replacing fill-up zeroes with psuedo-random bytes.  And to ensure
!  * that predicability of protocol headers plus zeroed-out initialisation
!  * vectors at the start of a transmission would cause a similar threat, we
!  * ensured that at least 8 bytes of randomness was prefixed to each packet.
!  * A small price to pay for security, and much simpler than constant
!  * tracking of IV's (which would be complicated in UDP mode).
   */
  
  #include "config.h"
***************
*** 51,56 ****
--- 73,79 ----
  #ifndef __APPLE_CC__
  /* OpenSSL includes */
  #include <openssl/md5.h>
+ #include <openssl/rand.h>
  #include <openssl/blowfish.h>
  #else /* YAY - We're MAC OS */
  #include <sys/md5.h>
***************
*** 70,76 ****
        return -1;
     }
  
!    BF_set_key(&key, ENC_KEY_SIZE, MD5(host->passwd,strlen(host->passwd),NULL));
  
     vtun_syslog(LOG_INFO, "BlowFish encryption initialized");
     return 0;
--- 93,100 ----
        return -1;
     }
  
!    BF_set_key(&key, VTUN_SESKEY_SIZE, host->seskey);
!    memset (host->seskey, 0, VTUN_SESKEY_SIZE); // Wipe from memory
  
     vtun_syslog(LOG_INFO, "BlowFish encryption initialized");
     return 0;
***************
*** 85,118 ****
  int encrypt_buf(int len, char *in, char **out)
  { 
     register int pad, p;
!    register char *in_ptr = in, *out_ptr = enc_buf;
  
!    /* 8 - ( len % 8 ) */
!    pad = (~len & 0x07) + 1; p = 8 - pad;
  
!    memset(out_ptr, 0, pad);
!    *out_ptr = (char) pad;
!    memcpy(out_ptr + pad, in_ptr, p);  
!    BF_ecb_encrypt(out_ptr, out_ptr, &key, BF_ENCRYPT);
!    out_ptr += 8; in_ptr += p; 
!    len = len - p;
  
!    for (p=0; p < len; p += 8)
!       BF_ecb_encrypt(in_ptr + p,  out_ptr + p, &key, BF_ENCRYPT);
  
     *out = enc_buf;
!    return len + 8;
  }
  
  int decrypt_buf(int len, char *in, char **out)
  {
     register int p;
  
!    for (p = 0; p < len; p += 8)
!       BF_ecb_encrypt(in + p, in + p, &key, BF_DECRYPT);
  
!    p = *in;
!    if (p < 1 || p > 8) {
        vtun_syslog(LOG_INFO, "decrypt_buf: bad pad length");
        return 0;
     }
--- 109,142 ----
  int encrypt_buf(int len, char *in, char **out)
  { 
     register int pad, p;
!    char preamble [16];
!    unsigned char iv [8];
  
!    /* 16 - ( len % 8 ) */
!    pad = (~len & 0x07) + 9; p = 16 - pad;
  
!    RAND_pseudo_bytes (preamble, pad); // Scramble the blowfish outcome
!    preamble [8] = (char) pad;
  
!    memset (iv, 0, 8);
!    memcpy(preamble + pad, in, p);  
!    BF_cbc_encrypt (preamble, enc_buf,      16,      &key, iv, BF_ENCRYPT);
!    BF_cbc_encrypt (in + p,   enc_buf + 16, len - p, &key, iv, BF_ENCRYPT);
  
     *out = enc_buf;
!    return len + pad;
  }
  
  int decrypt_buf(int len, char *in, char **out)
  {
     register int p;
+    unsigned char iv [8];
  
!    memset (iv, 0, 8);
!    BF_cbc_encrypt (in, in, len, &key, iv, BF_DECRYPT);
  
!    p = in [8];
!    if (p < 9 || p > 16) {
        vtun_syslog(LOG_INFO, "decrypt_buf: bad pad length");
        return 0;
     }
diff -c -N -r vtun-2.6/main.c vtun-3.0-RvR/main.c
*** vtun-2.6/main.c	Mon Apr 29 15:54:55 2002
--- vtun-3.0-RvR/main.c	Fri Oct 10 13:41:06 2003
***************
*** 36,41 ****
--- 36,42 ----
  #include "vtun.h"
  #include "lib.h"
  #include "compat.h"
+ #include "auth.h"
  
  /* Global options for the server and client */
  struct vtun_opts vtun;
***************
*** 54,59 ****
--- 55,63 ----
       struct vtun_host *host = NULL;
       struct sigaction sa;
       char *hst;
+      char testchal [VTUN_CHAL_SIZE];
+      char testresp [VTUN_RESP_SIZE];
+      int attempts;
  
       /* Configure default settings */
       svr = 0; daemon = 1; sock = 0; dofork = 1;
***************
*** 135,141 ****
  
  	vtun.svr_name = strdup(argv[optind]);
       } 
!       	
       /* 
        * Now fill uninitialized fields of the options structure
        * with default values. 
--- 139,156 ----
  
  	vtun.svr_name = strdup(argv[optind]);
       } 
! 
!      if (vtun.epasslib != NULL) {
!         if (open_cryptoken ()) {
! 	   perror ("Failed to access VPN token");
! 	   exit (1);
!         }
!         // Close immediately -- do not lock out other applications!
!         if (close_cryptoken ()) {
!            perror ("Failed to close VPN token after initial testing");
!         }
!      }
! 
       /* 
        * Now fill uninitialized fields of the options structure
        * with default values. 
***************
*** 189,197 ****
          client(host);
       }
  
       closelog();
! 	
!      return 0;
  }
  
  /* 
--- 204,215 ----
          client(host);
       }
  
+      if (vtun.epasslib != NULL) {
+         close_cryptoken ();
+      }
+ 
       closelog();
! 
  }
  
  /* 
diff -c -N -r vtun-2.6/vtun.h vtun-3.0-RvR/vtun.h
*** vtun-2.6/vtun.h	Sat Dec 29 18:01:01 2001
--- vtun-3.0-RvR/vtun.h	Fri Oct 10 13:41:05 2003
***************
*** 41,46 ****
--- 41,49 ----
  
  /* Max lenght of device name */
  #define VTUN_DEV_LEN  20 
+ 
+ /* Number of bytes in a session key */
+ #define VTUN_SESKEY_SIZE  20
   
  /* End of configurable part */
  
***************
*** 82,89 ****
  
  struct vtun_host {
     char *host;
!    char *passwd;
     char *dev;
  
     llist up;
     llist down;
--- 85,95 ----
  
  struct vtun_host {
     char *host;
!    char *passwd;     // For configfile-based auth/encrypt
!    unsigned long keynum;  // For token-based auth/encrypt
!    char *keydir;
     char *dev;
+    char seskey [VTUN_SESKEY_SIZE];
  
     llist up;
     llist down;
***************
*** 107,112 ****
--- 113,119 ----
     int ka_interval;
     int ka_failure;
  
+ 
     /* Source address */
     struct vtun_addr src_addr;
  
***************
*** 151,157 ****
  #define VTUN_BAD_FRAME  0x8000
  
  /* Authentication message size */
! #define VTUN_MESG_SIZE	50
  
  /* Support for multiple connections */
  #define VTUN_MULTI_DENY		0  /* no */ 
--- 158,164 ----
  #define VTUN_BAD_FRAME  0x8000
  
  /* Authentication message size */
! #define VTUN_MESG_SIZE	60
  
  /* Support for multiple connections */
  #define VTUN_MULTI_DENY		0  /* no */ 
***************
*** 184,189 ****
--- 191,198 ----
     int  svr_port;	 /* Server's port */
     int  svr_type;	 /* Server mode */
     int  syslog; 	 /* Facility to log messages to syslog under */
+    
+    void *epasslib;       /* Dynamically linked library for token support */
  };
  #define VTUN_STAND_ALONE	0 
  #define VTUN_INETD		1	
diff -c -N -r vtun-2.6/vtund.8 vtun-3.0-RvR/vtund.8
*** vtun-2.6/vtund.8	Wed May 16 22:51:21 2001
--- vtun-3.0-RvR/vtund.8	Fri Oct 10 13:41:07 2003
***************
*** 61,67 ****
  task like VPN, Mobile IP, Shaped Internet access, IP address saving, etc.
  .LP
  It is completely user space implementation and does not require modification
! to any kernel parts. 
  
  .SH OPTIONS
  .TP
--- 61,68 ----
  task like VPN, Mobile IP, Shaped Internet access, IP address saving, etc.
  .LP
  It is completely user space implementation and does not require modification
! to any kernel parts.  Optionally, it can employ a cryptographic token to
! protect the mutual encryption secrets between tunnel endpoints.
  
  .SH OPTIONS
  .TP
diff -c -N -r vtun-2.6/vtund.conf vtun-3.0-RvR/vtund.conf
*** vtun-2.6/vtund.conf	Mon Dec 16 18:20:50 2002
--- vtun-3.0-RvR/vtund.conf	Fri Oct 10 13:41:06 2003
***************
*** 56,65 ****
--- 56,69 ----
  #   firewall - Program for the firewall setup. 
  #
  # -----------
+ #   cryptoken - Use a cryptographic token.  Currently only "epass1000".
+ #
+ # -----------
  #  
  # Session options: 
  #
  #    passwd - Password for authentication.
+ #    keyname - A password-replacing reference to an on-token HMAC-MD5 key.
  #
  # -----------
  #    type - Tunnel type.
***************
*** 243,248 ****
--- 247,255 ----
    route 	/sbin/route;
    firewall 	/sbin/ipchains;
    ip		/sbin/ip;
+ 
+   # Use a cryptographic token as described in README.Crypto
+   # cryptoken "ePass1000";
  }
  
  # Default session options 
***************
*** 254,259 ****
--- 261,267 ----
  # TUN example. Session 'cobra'.
  cobra {
    passwd  Ma&^TU;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    type  tun;		# IP tunnel 
    proto udp;   		# UDP protocol
    compress  lzo:9;	# LZO compression level 9
***************
*** 271,276 ****
--- 279,285 ----
  # the same as above, but with iproute2 command
  cobra {
    passwd  Ma&^TU;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    type  tun;		# IP tunnel 
    proto udp;   		# UDP protocol
    compress  lzo:9;	# LZO compression level 9
***************
*** 290,295 ****
--- 299,305 ----
  # Ethernet example. Session 'lion'.
  lion {
    passwd  Ma&^TU;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    type  ether; 		# Ethernet tunnel
    device tap0; 		# Device tap0 
    proto udp;   		# UDP protocol
***************
*** 325,330 ****
--- 335,341 ----
  # PPP example. Session 'viper'.
  viper {	
    passwd  TTT$bio;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    compress  yes; 	# ZLIB compression level 1 
    encrypt  yes;		# Encryption
    up {
***************
*** 338,343 ****
--- 349,355 ----
  # Pipe example. Session 'backup'.
  backup {
    passwd OnlyME;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    type pipe;		# Pipe tunnel
    speed 256:128;	# Shaping speed 256K IN and 128K OUT.
    encrypt yes;		# Encryption
***************
*** 355,360 ****
--- 367,373 ----
  # anything :-). 
  sz {
    passwd  OnlyME;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    type  tty;		# TTY tunnel
    speed 64;		# Shaping speed 64K IN/OUT
    encrypt  yes;		# Encryption
***************
*** 388,393 ****
--- 401,407 ----
  # TUN example. Session 'cobra'. 
  cobra {
    passwd  Ma&^TU;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    device tun1; 		# Device tun1 
    persist yes;		# Persist mode 
    up {
***************
*** 400,405 ****
--- 414,420 ----
  # same as above, but with iproute2 command
  cobra {
    passwd  Ma&^TU;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    device tun1; 		# Device tun1 
    persist yes;		# Persist mode 
    up {
***************
*** 414,419 ****
--- 429,435 ----
  # Ethernet example. Session 'lion'. 
  lion {
    passwd  Ma&^TU;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    type  ether;		# Ethernet tunnel
    device tap1; 		# Device tap1 
    up {
***************
*** 433,438 ****
--- 449,455 ----
  # PPP example. Session 'viper'. 
  viper {
    passwd  TTT$bio; 	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    up {
  	# Connection is Up 
  
***************
*** 444,449 ****
--- 461,467 ----
  # Pipe example. Session 'backup'.
  backup {
    passwd OnlyME;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    up {
  	# Connection is Up 
  
***************
*** 458,463 ****
--- 476,482 ----
  # anything :-).
  sz {
    passwd  OnlyME;	# Password
+   # keyname 12345;	# Alternatively use a cryptographic token
    up {
  	# Receive file via ZMODEM from the
  	# stdin(tty tunnel).
diff -c -N -r vtun-2.6/vtund.conf.5 vtun-3.0-RvR/vtund.conf.5
*** vtun-2.6/vtund.conf.5	Tue Mar 18 13:32:28 2003
--- vtun-3.0-RvR/vtund.conf.5	Fri Oct 10 13:41:06 2003
***************
*** 68,73 ****
--- 68,81 ----
  .IP \fBsyslog\fR\ \fBnumber\fR|\fBname\fR
  syslog facility specification, either numeric or name (from syslog (3)).
  
+ .IP \fBcryptoken\fR\ \fIname\fR
+ The name of a cryptographic token to use (assuming it was configured).
+ If specified, authentication and encryption is based on the token
+ instead of on stored passwords; the \fBpassword\fR session option may
+ not be declared and a suitable \fBkeynum\fR option and possibly also
+ a \fBkeydir\fR option should take its place.
+ Currently supported value is "ePass1000" if compiled with --with-epass.
+ 
  .IP \fBppp\ \fIpath\fR
  path to \fBpppd\fR(8) program.  Can be used in session sections.
  
***************
*** 99,105 ****
  
  .IP \fBpassword\ \fIsecret\fR
  password for authentication.  This should be the same in
! client and server.
  
  .IP \fBtype\ \fItype\fR
  type of tunnel.  Possible tunnel types are:
--- 107,119 ----
  
  .IP \fBpassword\ \fIsecret\fR
  password for authentication.  This should be the same in
! client and server.  This must not be specified if a \fBcryptoken\fR declaration was made.
! 
! .IP \fBkeynum\ \fInumber\fR
! instead of a password, use this numbered key on a cryptographic token previously declared in the \fBcryptoken\fR general option.  This option may only be used if a \fBcryptoken\fR declaration was made.
! 
! .IP \fBkeydir\ \fIname\fR
! the named directory on the token file system where to the key number specified as \fBkeynum\fR is located.  This option may only be used if a \fBcryptoken\fR declaration was made.
  
  .IP \fBtype\ \fItype\fR
  type of tunnel.  Possible tunnel types are:
***************
*** 148,154 ****
  digit (1 is best speed, 9 is best compression ratio).
  This option ignored by the client.
  .IP \fBencrypt\ \fByes\fR|\fBno\fR
! enable or disable encryption.  This option ignored by the client.
  .IP \fBkeepalive\ \fByes\fR|\fBno\fR
  enable or disable connection keep-alive.
  This option is ignored by the client.
--- 162,169 ----
  digit (1 is best speed, 9 is best compression ratio).
  This option ignored by the client.
  .IP \fBencrypt\ \fByes\fR|\fBno\fR
! blowfish or enable or disable encryption.  In the current version, setting encryption to blowfish is an alias for enable.  Future versions will probably default to aes.  If you intend to avoid that, you can already set blowfish.
!   This option ignored by the client.
  .IP \fBkeepalive\ \fByes\fR|\fBno\fR
  enable or disable connection keep-alive.
  This option is ignored by the client.
