Changeset dab82f29


Ignore:
Timestamp:
Mar 28, 2009, 5:00:34 PM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
owl
Children:
4de643d
Parents:
5189631
Message:
Don't crash on mobile device AIM messages [BZ 20]
Don't crash when sending to someone not on AIM buddy list [BZ 94]
Fix overflow vulerability in zwrite.c and zcrypt.c
Add stack protector and -D_FORTIFY_SOURCE=2 where possible
Fix hang [barnowl 4c46dfdebc294ca24fef59924f01688b8ee07dee]
Fix segfault on missing subs [barnowl 99dabeed7de6d19acb50f1e73aa0bfe5f9469c02]
Fix zcrypt bufffer size bug [barnowl 559076cd86edc3a8317819814dd5877b8bc7c3cb]
Fix double free [barnowl e97c4a306ae2c9d2147d83da29fee59918198e70]
Memory leak fix [barnowl c0a90c2c7ab97b9465c9873757faf312faa0021e]
Memory leak fix [barnowl 95caa16b2e9ba10770d87d0955198c14c2d0e16a]
Memory leak fix [barnowl 1716fed8c2650e46892cf6571555eac937266c6e]
Add getstyle command [barnowl 216c73421653e3ef0e957aa9a9804e208a77c80e]
Binary search for msgid [barnowl 0c8ab5eadbb6ecc97a120c91b9a824b33538c764]
File-handle leak [barnowl e78397d6ac5da0de31a4e269c0ba7f3d691857a3]
Fix delay in jump from top to bottom [barnowl 801b7ac63b962640debbcfd422cb9a60da5fea31]
Load subs in chunks [barnowl 93e883d60051b80bf6d35391f9d76fd7dfd198e3]
Load subs in chunks [barnowl f6050ee9b0a171a5031f84409eb181062afacd18]
Better zsig logging [barnowl d857b667a5a9b108b1a2a26b4a5513bef2b53f80]
free() -> owlfree() [barnowl d524c838ac7c115628424b8ac171c3489622ea3a]
Escape AIM users in smartfilters [barnowl af9b92e3e7ccb7de276a94b5c7e5861b24e71eff]
Better regex escape chars [barnowl 80e54a7631f091be8c9762adb9746bad38104738]
Deal with quotes in smart filters [barnowl 4099cf83702763fa8d1efc4f1582a605431bdb77]
Deal with 0 length zephyr fields [barnowl 128171aaf7cefa91a4bb1eada93a19d8fd0c355c]
Deal with 0 length zephyr fields [barnowl 50e29e35c64d64e223d378d350a7bc4f038d78f5]
Deal with 0 length zephyr fields [barnowl 804ab8af8b6d00bcd7e2402df892db8fbd61a3ec]
Leave curmsg on screen after resize [barnowl c0f9e3009bc03e80a44de64cd5f2b4033290236e]
Rip out brower stuff [barnowl 8e5935d11c699a7ce5a3e6e9a47799564c696d6a]
Rip out browser stuff [barnowl 4f15e8e9ceada0d4b2cc969ebf43b0a1fb3709ea]
No passwords in command history [barnowl 6e400cc71aa59e041dce677aadf50dc1f25228e2]
Format NOC mssages [barnowl a1bb1980e4bca23b8329cc0e7c0bd5027055ea0a]
Expand ~ in loadsubs [barnowl 27d8d835dc6d58c08fae10e75aae306c49215143]
Expand ~ in source [barnowl 10d67d57cb29221f63a43a30643c697fc7b38911]
Only use resizeterm() if it's available
Debian backports
Change license to GPLv3
Files:
1 added
56 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r0154e2d rdab82f29  
    11$Id$
    22
    3 2.1.12pre
    4         Don't crash when sending/logging outgoing
    5            AIM message and not logged in [BZ 90]
    6         Don't crash when senging to someone not on AIM buddy list [BZ 94]
    7            (patch from Alex Vandiver)
    8        
     32.1.12-pre-6
     4        Don't crash on mobile device AIM messages [BZ 20]
     5        Don't crash when sending to someone not on AIM buddy list [BZ 94]
     6        Fix overflow vulerability in zwrite.c and zcrypt.c
     7        Add stack protector and -D_FORTIFY_SOURCE=2 where possible
     8        Fix hang [barnowl 4c46dfdebc294ca24fef59924f01688b8ee07dee]
     9        Fix segfault on missing subs [barnowl 99dabeed7de6d19acb50f1e73aa0bfe5f9469c02]
     10        Fix zcrypt bufffer size bug [barnowl 559076cd86edc3a8317819814dd5877b8bc7c3cb]
     11        Fix double free [barnowl e97c4a306ae2c9d2147d83da29fee59918198e70]
     12        Memory leak fix [barnowl c0a90c2c7ab97b9465c9873757faf312faa0021e]
     13        Memory leak fix [barnowl 95caa16b2e9ba10770d87d0955198c14c2d0e16a]
     14        Memory leak fix [barnowl 1716fed8c2650e46892cf6571555eac937266c6e]
     15        Add getstyle command [barnowl 216c73421653e3ef0e957aa9a9804e208a77c80e]
     16        Binary search for msgid [barnowl 0c8ab5eadbb6ecc97a120c91b9a824b33538c764]
     17        File-handle leak [barnowl e78397d6ac5da0de31a4e269c0ba7f3d691857a3]
     18        Fix delay in jump from top to bottom [barnowl 801b7ac63b962640debbcfd422cb9a60da5fea31]
     19        Load subs in chunks [barnowl 93e883d60051b80bf6d35391f9d76fd7dfd198e3]
     20        Load subs in chunks [barnowl f6050ee9b0a171a5031f84409eb181062afacd18]
     21        Better zsig logging [barnowl d857b667a5a9b108b1a2a26b4a5513bef2b53f80]
     22        free() -> owlfree() [barnowl d524c838ac7c115628424b8ac171c3489622ea3a]
     23        Escape AIM users in smartfilters [barnowl af9b92e3e7ccb7de276a94b5c7e5861b24e71eff]
     24        Better regex escape chars [barnowl 80e54a7631f091be8c9762adb9746bad38104738]
     25        Deal with quotes in smart filters [barnowl 4099cf83702763fa8d1efc4f1582a605431bdb77]
     26        Deal with 0 length zephyr fields [barnowl 128171aaf7cefa91a4bb1eada93a19d8fd0c355c]
     27        Deal with 0 length zephyr fields [barnowl 50e29e35c64d64e223d378d350a7bc4f038d78f5]
     28        Deal with 0 length zephyr fields [barnowl 804ab8af8b6d00bcd7e2402df892db8fbd61a3ec]
     29        Leave curmsg on screen after resize [barnowl c0f9e3009bc03e80a44de64cd5f2b4033290236e]
     30        Rip out brower stuff [barnowl 8e5935d11c699a7ce5a3e6e9a47799564c696d6a]
     31        Rip out browser stuff [barnowl 4f15e8e9ceada0d4b2cc969ebf43b0a1fb3709ea]
     32        No passwords in command history [barnowl 6e400cc71aa59e041dce677aadf50dc1f25228e2]
     33        Format NOC mssages [barnowl a1bb1980e4bca23b8329cc0e7c0bd5027055ea0a]
     34        Expand ~ in loadsubs [barnowl 27d8d835dc6d58c08fae10e75aae306c49215143]
     35        Expand ~ in source [barnowl 10d67d57cb29221f63a43a30643c697fc7b38911]
     36        Only use resizeterm() if it's available
     37        Debian backports
     38        Change license to GPLv3
     39
    9402.1.11
    1041        Don't crash doing zlocate with bad tickets. [BZ 12]
  • Makefile.in

    rafbf668 rdab82f29  
    2424     keypress.c keymap.c keybinding.c cmd.c context.c zcrypt.c \
    2525     aim.c buddy.c buddylist.c timer.c style.c stylefunc.c errqueue.c \
    26      zbuddylist.c muxevents.c popexec.c
     26     zbuddylist.c popexec.c select.c
    2727OWL_SRC = owl.c
    2828TESTER_SRC = tester.c
  • aim.c

    r9854278 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <stdio.h>
    226#include <stdio.h>
    … …  
    239263{
    240264  if (message) {
    241     owl_function_error(message);
     265    owl_function_error("%s", message);
    242266  } else {
    243267    owl_function_error("Authentication error on login");
    … …  
    948972 
    949973  if (modname) {
    950     if (!(filename = malloc(strlen(priv->aimbinarypath)+1+strlen(modname)+4+1))) {
     974    if (!(filename = owl_malloc(strlen(priv->aimbinarypath)+1+strlen(modname)+4+1))) {
    951975      /* perror("memrequest: malloc"); */
    952976      return -1;
    … …  
    954978    sprintf(filename, "%s/%s.ocm", priv->aimbinarypath, modname);
    955979  } else {
    956     if (!(filename = malloc(strlen(priv->aimbinarypath)+1+strlen(defaultmod)+1))) {
     980    if (!(filename = owl_malloc(strlen(priv->aimbinarypath)+1+strlen(defaultmod)+1))) {
    957981      /* perror("memrequest: malloc"); */
    958982      return -1;
    … …  
    964988    if (!modname) {
    965989      /* perror("memrequest: stat"); */
    966       free(filename);
     990      owl_free(filename);
    967991      return -1;
    968992    }
    … …  
    9861010    int i;
    9871011   
    988     free(filename); /* not needed */
     1012    owl_free(filename); /* not needed */
    9891013    owl_function_error("getaimdata memrequest: recieved invalid request for 0x%08lx bytes at 0x%08lx (file %s)\n", len, offset, modname);
    9901014    i = 8;
    … …  
    9931017    }
    9941018   
    995     if (!(buf = malloc(i))) {
     1019    if (!(buf = owl_malloc(i))) {
    9961020      return -1;
    9971021    }
    … …  
    10171041    *buflenret = i;
    10181042  } else {
    1019     if (!(buf = malloc(len))) {
    1020       free(filename);
     1043    if (!(buf = owl_malloc(len))) {
     1044      owl_free(filename);
    10211045      return -1;
    10221046    }
    … …  
    10241048    if (!(f = fopen(filename, "r"))) {
    10251049      /* perror("memrequest: fopen"); */
    1026       free(filename);
    1027       free(buf);
     1050      owl_free(filename);
     1051      owl_free(buf);
    10281052      return -1;
    10291053    }
    10301054   
    1031     free(filename);
     1055    owl_free(filename);
    10321056   
    10331057    if (fseek(f, offset, SEEK_SET) == -1) {
    10341058      /* perror("memrequest: fseek"); */
    10351059      fclose(f);
    1036       free(buf);
     1060      owl_free(buf);
    10371061      return -1;
    10381062    }
    … …  
    10411065      /* perror("memrequest: fread"); */
    10421066      fclose(f);
    1043       free(buf);
     1067      owl_free(buf);
    10441068      return -1;
    10451069    }
    … …  
    10761100  if (priv->aimbinarypath && (getaimdata(sess, &buf, &buflen, offset, len, modname) == 0)) {
    10771101    aim_sendmemblock(sess, fr->conn, offset, buflen, buf, AIM_SENDMEMBLOCK_FLAG_ISREQUEST);
    1078     free(buf);
     1102    owl_free(buf);
    10791103  } else {
    10801104    owl_function_debugmsg("faimtest_memrequest: unable to use AIM binary (\"%s/%s\"), sending defaults...\n", priv->aimbinarypath, modname);
    … …  
    13421366      int z;
    13431367     
    1344       newbuf = malloc(i+1);
     1368      newbuf = owl_malloc(i+1);
    13451369      for (z = 0; z < i; z++)
    13461370        newbuf[z] = (z % 10)+0x30;
    13471371      newbuf[i] = '\0';
    13481372      /* aim_send_im(sess, userinfo->sn, AIM_IMFLAGS_ACK | AIM_IMFLAGS_AWAY, newbuf); */
    1349       free(newbuf);
     1373      owl_free(newbuf);
    13501374    }
    13511375  } else if (strstr(tmpstr, "seticqstatus")) {
    … …  
    14521476     *
    14531477     */
    1454     strncpy(realmsg, args->msg, sizeof(realmsg));
     1478    if (!args->msg) {
     1479      if (args->mpmsg.parts->data) {
     1480        strncpy(realmsg,args->mpmsg.parts->data, sizeof(realmsg));
     1481      } else {
     1482        strncpy(realmsg,"",1);
     1483      }
     1484    } else {
     1485      strncpy(realmsg, args->msg, sizeof(realmsg));
     1486    }
    14551487  }
    14561488
    … …  
    16971729 
    16981730  /* printf("snac threw error (reason 0x%04x: %s)\n", reason, (reason<msgerrreasonslen)?msgerrreasons[reason]:"unknown"); */
    1699   if (reason<msgerrreasonslen) owl_function_error(msgerrreasons[reason]);
     1731  if (reason<msgerrreasonslen) owl_function_error("%s", msgerrreasons[reason]);
    17001732 
    17011733  return 1;
    … …  
    17141746 
    17151747  /* printf("message to %s bounced (reason 0x%04x: %s)\n", destsn, reason, (reason<msgerrreasonslen)?msgerrreasons[reason]:"unknown"); */
    1716   if (reason<msgerrreasonslen) owl_function_error(msgerrreasons[reason]);
     1748  if (reason<msgerrreasonslen) owl_function_error("%s", msgerrreasons[reason]);
    17171749
    17181750  if (reason==4) {
    … …  
    17351767 
    17361768  /* printf("user information for %s unavailable (reason 0x%04x: %s)\n", destsn, reason, (reason<msgerrreasonslen)?msgerrreasons[reason]:"unknown"); */
    1737   if (reason<msgerrreasonslen) owl_function_error(msgerrreasons[reason]);
     1769  if (reason<msgerrreasonslen) owl_function_error("%s", msgerrreasons[reason]);
    17381770 
    17391771  return 1;
    … …  
    23102342}
    23112343
     2344void owl_process_aim()
     2345{
     2346  if (owl_global_is_doaimevents(&g)) {
     2347    owl_aim_process_events();
     2348  }
     2349}
    23122350
    23132351/**********************************************************************************/
  • buddy.c

    rf4d0975 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • buddylist.c

    r257a22f rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • cmd.c

    rf1e629d rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <stdio.h>
    226#include <stdlib.h>
  • commands.c

    r5e0b690 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <stdio.h>
    226#include <stdlib.h>
    … …  
    442466  OWLCMD_VOID("pop-message", owl_command_pop_message, OWL_CTX_RECWIN,
    443467              "pops up a message in a window", "", ""),
    444 
    445   OWLCMD_VOID("openurl", owl_command_openurl, OWL_CTX_INTERACTIVE,
    446               "opens up a URL from the current message",
    447               "",
    448               "Uses the 'webbrowser' variable to determine\n"
    449               "which browser to use.  Currently, 'netscape'\n"
    450               "and 'galeon' are supported.\n"),
    451468
    452469  OWLCMD_ARGS("zaway", owl_command_zaway, OWL_CTX_INTERACTIVE,
    … …  
    704721              "getvar <varname>", ""),
    705722
     723  OWLCMD_ARGS("getstyle", owl_command_getstyle, OWL_CTX_INTERACTIVE,
     724              "returns the name of the style for the current view",
     725              "", ""),
     726
    706727  OWLCMD_ARGS("search", owl_command_search, OWL_CTX_INTERACTIVE,
    707728              "search messages for a particular string",
    … …  
    15561577char *owl_command_multi(int argc, char **argv, char *buff)
    15571578{
    1558   char *lastrv = NULL, *newbuff;
     1579  char *lastrv = NULL, *dupbuff, *newbuff;
    15591580  char **commands;
    15601581  int  ncommands, i;
    … …  
    15631584    return NULL;
    15641585  }
    1565   newbuff = owl_strdup(buff);
    1566   newbuff = skiptokens(newbuff, 1);
     1586  dupbuff = owl_strdup(buff);
     1587  newbuff = skiptokens(dupbuff, 1);
    15671588  if (!strcmp(argv[0], "(")) {
    15681589    for (i=strlen(newbuff)-1; i>=0; i--) {
    … …  
    15841605    lastrv = owl_function_command(commands[i]);
    15851606  }
     1607  owl_free(dupbuff);
    15861608  atokenize_free(commands, ncommands);
    15871609  return lastrv;
    … …  
    19761998      foo=owl_function_create_negative_filter(owl_view_get_filtname(owl_global_get_current_view(&g)));
    19771999      owl_function_change_currentview_filter(foo);
     2000      owl_free(foo);
    19782001      return(NULL);
    19792002    }
    … …  
    21572180}
    21582181
    2159 void owl_command_openurl(void)
    2160 {
    2161   owl_function_openurl();
    2162 }
    2163 
    21642182char *owl_command_delete(int argc, char **argv, char *buff)
    21652183{
    … …  
    23992417}
    24002418
     2419char *owl_command_getstyle(int argc, char **argv, char *buff)
     2420{
     2421  char *stylename;
     2422  if (argc != 1) {
     2423    owl_function_makemsg("Wrong number of arguments for %s", argv[0]);
     2424    return NULL;
     2425  }
     2426  stylename = owl_view_get_style_name(owl_global_get_current_view(&g));
     2427  if (stylename) stylename = owl_strdup(stylename);
     2428  return stylename;
     2429}
     2430
    24012431/*********************************************************************/
    24022432/************************** EDIT SPECIFIC ****************************/
    … …  
    24092439  owl_function_makemsg("Command cancelled.");
    24102440
    2411   hist=owl_editwin_get_history(e);
    2412   owl_history_store(hist, owl_editwin_get_text(e));
    2413   owl_history_reset(hist);
     2441  if(e->echochar == 0) {
     2442    hist=owl_editwin_get_history(e);
     2443    owl_history_store(hist, owl_editwin_get_text(e));
     2444    owl_history_reset(hist);
     2445  }
    24142446
    24152447  owl_editwin_fullclear(e);
  • config.h.in

    r11a7c6a rdab82f29  
    6060#undef HAVE_DES_ECB_ENCRYPT_PROTO
    6161
     62#undef TERMINFO
    6263
    63 #undef TERMINFO
     64/* Define to 1 if you have the `resizeterm' function. */
     65#undef HAVE_RESIZETERM
     66
  • configure

    r8298425 rdab82f29  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59.
     3# Generated by GNU Autoconf 2.61.
    44#
    5 # Copyright (C) 2003 Free Software Foundation, Inc.
     5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
    67# This configure script is free software; the Free Software Foundation
    78# gives unlimited permission to copy, distribute and modify it.
    … …  
    1011## --------------------- ##
    1112
    12 # Be Bourne compatible
     13# Be more Bourne compatible
     14DUALCASE=1; export DUALCASE # for MKS sh
    1315if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    1416  emulate sh
    … …  
    1719  # is contrary to our usage.  Disable this feature.
    1820  alias -g '${1+"$@"}'='"$@"'
    19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    20   set -o posix
    21 fi
    22 DUALCASE=1; export DUALCASE # for MKS sh
    23 
    24 # Support unset when possible.
    25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    26   as_unset=unset
    27 else
    28   as_unset=false
    29 fi
    30 
    31 
    32 # Work around bugs in pre-3.0 UWIN ksh.
    33 $as_unset ENV MAIL MAILPATH
    34 PS1='$ '
    35 PS2='> '
    36 PS4='+ '
    37 
    38 # NLS nuisances.
    39 for as_var in \
    40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    42   LC_TELEPHONE LC_TIME
    43 do
    44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    45     eval $as_var=C; export $as_var
    46   else
    47     $as_unset $as_var
    48   fi
    49 done
    50 
    51 # Required to use basename.
    52 if expr a : '\(a\)' >/dev/null 2>&1; then
    53   as_expr=expr
    54 else
    55   as_expr=false
    56 fi
    57 
    58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    59   as_basename=basename
    60 else
    61   as_basename=false
    62 fi
    63 
    64 
    65 # Name of the executable.
    66 as_me=`$as_basename "$0" ||
    67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    68          X"$0" : 'X\(//\)$' \| \
    69          X"$0" : 'X\(/\)$' \| \
    70          .     : '\(.\)' 2>/dev/null ||
    71 echo X/"$0" |
    72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    73           /^X\/\(\/\/\)$/{ s//\1/; q; }
    74           /^X\/\(\/\).*/{ s//\1/; q; }
    75           s/.*/./; q'`
    76 
    77 
    78 # PATH needs CR, and LINENO needs CR and PATH.
     21  setopt NO_GLOB_SUBST
     22else
     23  case `(set -o) 2>/dev/null` in
     24  *posix*) set -o posix ;;
     25esac
     26
     27fi
     28
     29
     30
     31
     32# PATH needs CR
    7933# Avoid depending upon Character Ranges.
    8034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    … …  
    9751fi
    9852
    99 
    100   as_lineno_1=$LINENO
    101   as_lineno_2=$LINENO
    102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    103   test "x$as_lineno_1" != "x$as_lineno_2" &&
    104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    105   # Find who we are.  Look in the path if we contain no path at all
    106   # relative or not.
    107   case $0 in
    108     *[\\/]* ) as_myself=$0 ;;
    109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     53# Support unset when possible.
     54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     55  as_unset=unset
     56else
     57  as_unset=false
     58fi
     59
     60
     61# IFS
     62# We need space, tab and new line, in precisely that order.  Quoting is
     63# there to prevent editors from complaining about space-tab.
     64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     65# splitting by setting IFS to empty value.)
     66as_nl='
     67'
     68IFS=" ""        $as_nl"
     69
     70# Find who we are.  Look in the path if we contain no directory separator.
     71case $0 in
     72  *[\\/]* ) as_myself=$0 ;;
     73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    11074for as_dir in $PATH
    11175do
    … …  
    11478  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    11579done
    116 
    117        ;;
    118   esac
    119   # We did not find ourselves, most probably we were run as `sh COMMAND'
    120   # in which case we are not to be found in the path.
    121   if test "x$as_myself" = x; then
    122     as_myself=$0
     80IFS=$as_save_IFS
     81
     82     ;;
     83esac
     84# We did not find ourselves, most probably we were run as `sh COMMAND'
     85# in which case we are not to be found in the path.
     86if test "x$as_myself" = x; then
     87  as_myself=$0
     88fi
     89if test ! -f "$as_myself"; then
     90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     91  { (exit 1); exit 1; }
     92fi
     93
     94# Work around bugs in pre-3.0 UWIN ksh.
     95for as_var in ENV MAIL MAILPATH
     96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     97done
     98PS1='$ '
     99PS2='> '
     100PS4='+ '
     101
     102# NLS nuisances.
     103for as_var in \
     104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     106  LC_TELEPHONE LC_TIME
     107do
     108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     109    eval $as_var=C; export $as_var
     110  else
     111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    123112  fi
    124   if test ! -f "$as_myself"; then
    125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
    126    { (exit 1); exit 1; }; }
    127   fi
    128   case $CONFIG_SHELL in
    129   '')
     113done
     114
     115# Required to use basename.
     116if expr a : '\(a\)' >/dev/null 2>&1 &&
     117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     118  as_expr=expr
     119else
     120  as_expr=false
     121fi
     122
     123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
     124  as_basename=basename
     125else
     126  as_basename=false
     127fi
     128
     129
     130# Name of the executable.
     131as_me=`$as_basename -- "$0" ||
     132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     133         X"$0" : 'X\(//\)$' \| \
     134         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     135echo X/"$0" |
     136    sed '/^.*\/\([^/][^/]*\)\/*$/{
     137            s//\1/
     138            q
     139          }
     140          /^X\/\(\/\/\)$/{
     141            s//\1/
     142            q
     143          }
     144          /^X\/\(\/\).*/{
     145            s//\1/
     146            q
     147          }
     148          s/.*/./; q'`
     149
     150# CDPATH.
     151$as_unset CDPATH
     152
     153
     154if test "x$CONFIG_SHELL" = x; then
     155  if (eval ":") 2>/dev/null; then
     156  as_have_required=yes
     157else
     158  as_have_required=no
     159fi
     160
     161  if test $as_have_required = yes &&     (eval ":
     162(as_func_return () {
     163  (exit \$1)
     164}
     165as_func_success () {
     166  as_func_return 0
     167}
     168as_func_failure () {
     169  as_func_return 1
     170}
     171as_func_ret_success () {
     172  return 0
     173}
     174as_func_ret_failure () {
     175  return 1
     176}
     177
     178exitcode=0
     179if as_func_success; then
     180  :
     181else
     182  exitcode=1
     183  echo as_func_success failed.
     184fi
     185
     186if as_func_failure; then
     187  exitcode=1
     188  echo as_func_failure succeeded.
     189fi
     190
     191if as_func_ret_success; then
     192  :
     193else
     194  exitcode=1
     195  echo as_func_ret_success failed.
     196fi
     197
     198if as_func_ret_failure; then
     199  exitcode=1
     200  echo as_func_ret_failure succeeded.
     201fi
     202
     203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
     204  :
     205else
     206  exitcode=1
     207  echo positional parameters were not saved.
     208fi
     209
     210test \$exitcode = 0) || { (exit 1); exit 1; }
     211
     212(
     213  as_lineno_1=\$LINENO
     214  as_lineno_2=\$LINENO
     215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
     216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
     217") 2> /dev/null; then
     218  :
     219else
     220  as_candidate_shells=
    130221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    131222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    … …  
    133224  IFS=$as_save_IFS
    134225  test -z "$as_dir" && as_dir=.
    135   for as_base in sh bash ksh sh5; do
    136          case $as_dir in
     226  case $as_dir in
    137227         /*)
    138            if ("$as_dir/$as_base" -c '
     228           for as_base in sh bash ksh sh5; do
     229             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
     230           done;;
     231       esac
     232done
     233IFS=$as_save_IFS
     234
     235
     236      for as_shell in $as_candidate_shells $SHELL; do
     237         # Try only shells that exist, to save several forks.
     238         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
     239                { ("$as_shell") 2> /dev/null <<\_ASEOF
     240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     241  emulate sh
     242  NULLCMD=:
     243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     244  # is contrary to our usage.  Disable this feature.
     245  alias -g '${1+"$@"}'='"$@"'
     246  setopt NO_GLOB_SUBST
     247else
     248  case `(set -o) 2>/dev/null` in
     249  *posix*) set -o posix ;;
     250esac
     251
     252fi
     253
     254
     255:
     256_ASEOF
     257}; then
     258  CONFIG_SHELL=$as_shell
     259               as_have_required=yes
     260               if { "$as_shell" 2> /dev/null <<\_ASEOF
     261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     262  emulate sh
     263  NULLCMD=:
     264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     265  # is contrary to our usage.  Disable this feature.
     266  alias -g '${1+"$@"}'='"$@"'
     267  setopt NO_GLOB_SUBST
     268else
     269  case `(set -o) 2>/dev/null` in
     270  *posix*) set -o posix ;;
     271esac
     272
     273fi
     274
     275
     276:
     277(as_func_return () {
     278  (exit $1)
     279}
     280as_func_success () {
     281  as_func_return 0
     282}
     283as_func_failure () {
     284  as_func_return 1
     285}
     286as_func_ret_success () {
     287  return 0
     288}
     289as_func_ret_failure () {
     290  return 1
     291}
     292
     293exitcode=0
     294if as_func_success; then
     295  :
     296else
     297  exitcode=1
     298  echo as_func_success failed.
     299fi
     300
     301if as_func_failure; then
     302  exitcode=1
     303  echo as_func_failure succeeded.
     304fi
     305
     306if as_func_ret_success; then
     307  :
     308else
     309  exitcode=1
     310  echo as_func_ret_success failed.
     311fi
     312
     313if as_func_ret_failure; then
     314  exitcode=1
     315  echo as_func_ret_failure succeeded.
     316fi
     317
     318if ( set x; as_func_ret_success y && test x = "$1" ); then
     319  :
     320else
     321  exitcode=1
     322  echo positional parameters were not saved.
     323fi
     324
     325test $exitcode = 0) || { (exit 1); exit 1; }
     326
     327(
    139328  as_lineno_1=$LINENO
    140329  as_lineno_2=$LINENO
    141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    142330  test "x$as_lineno_1" != "x$as_lineno_2" &&
    143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    146              CONFIG_SHELL=$as_dir/$as_base
    147              export CONFIG_SHELL
    148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    149            fi;;
    150          esac
    151        done
    152 done
    153 ;;
    154   esac
     331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
     332
     333_ASEOF
     334}; then
     335  break
     336fi
     337
     338fi
     339
     340      done
     341
     342      if test "x$CONFIG_SHELL" != x; then
     343  for as_var in BASH_ENV ENV
     344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     345        done
     346        export CONFIG_SHELL
     347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
     348fi
     349
     350
     351    if test $as_have_required = no; then
     352  echo This script requires a shell more modern than all the
     353      echo shells that I found on your system.  Please install a
     354      echo modern shell, or manually run the script under such a
     355      echo shell if you do have one.
     356      { (exit 1); exit 1; }
     357fi
     358
     359
     360fi
     361
     362fi
     363
     364
     365
     366(eval "as_func_return () {
     367  (exit \$1)
     368}
     369as_func_success () {
     370  as_func_return 0
     371}
     372as_func_failure () {
     373  as_func_return 1
     374}
     375as_func_ret_success () {
     376  return 0
     377}
     378as_func_ret_failure () {
     379  return 1
     380}
     381
     382exitcode=0
     383if as_func_success; then
     384  :
     385else
     386  exitcode=1
     387  echo as_func_success failed.
     388fi
     389
     390if as_func_failure; then
     391  exitcode=1
     392  echo as_func_failure succeeded.
     393fi
     394
     395if as_func_ret_success; then
     396  :
     397else
     398  exitcode=1
     399  echo as_func_ret_success failed.
     400fi
     401
     402if as_func_ret_failure; then
     403  exitcode=1
     404  echo as_func_ret_failure succeeded.
     405fi
     406
     407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
     408  :
     409else
     410  exitcode=1
     411  echo positional parameters were not saved.
     412fi
     413
     414test \$exitcode = 0") || {
     415  echo No shell found that supports shell functions.
     416  echo Please tell autoconf@gnu.org about your system,
     417  echo including any error possibly output before this
     418  echo message
     419}
     420
     421
     422
     423  as_lineno_1=$LINENO
     424  as_lineno_2=$LINENO
     425  test "x$as_lineno_1" != "x$as_lineno_2" &&
     426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    155427
    156428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    157429  # uniformly replaced by the line number.  The first 'sed' inserts a
    158   # line-number line before each line; the second 'sed' does the real
    159   # work.  The second script uses 'N' to pair each line-number line
    160   # with the numbered line, and appends trailing '-' during
    161   # substitution so that $LINENO is not a special case at line end.
     430  # line-number line after each line using $LINENO; the second 'sed'
     431  # does the real work.  The second script uses 'N' to pair each
     432  # line-number line with the line containing $LINENO, and appends
     433  # trailing '-' during substitution so that $LINENO is not a special
     434  # case at line end.
    162435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    164   sed '=' <$as_myself |
     436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
     437  # E. McMahon (1931-1989) for sed's syntax.  :-)
     438  sed -n '
     439    p
     440    /[$]LINENO/=
     441  ' <$as_myself |
    165442    sed '
     443      s/[$]LINENO.*/&-/
     444      t lineno
     445      b
     446      :lineno
    166447      N
    167       s,$,-,
    168       : loop
    169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     448      :loop
     449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    170450      t loop
    171       s,-$,,
    172       s,^['$as_cr_digits']*\n,,
     451      s/-\n.*//
    173452    ' >$as_me.lineno &&
    174   chmod +x $as_me.lineno ||
     453  chmod +x "$as_me.lineno" ||
    175454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    176455   { (exit 1); exit 1; }; }
    … …  
    178457  # Don't try to exec as it changes $[0], causing all sort of problems
    179458  # (the dirname of $[0] is not the place where we might find the
    180   # original and so on.  Autoconf is especially sensible to this).
    181   . ./$as_me.lineno
     459  # original and so on.  Autoconf is especially sensitive to this).
     460  . "./$as_me.lineno"
    182461  # Exit status is that of the last command.
    183462  exit
    … …  
    185464
    186465
    187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    188   *c*,-n*) ECHO_N= ECHO_C='
    189 ' ECHO_T='      ' ;;
    190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    192 esac
    193 
    194 if expr a : '\(a\)' >/dev/null 2>&1; then
     466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     467  as_dirname=dirname
     468else
     469  as_dirname=false
     470fi
     471
     472ECHO_C= ECHO_N= ECHO_T=
     473case `echo -n x` in
     474-n*)
     475  case `echo 'x\c'` in
     476  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
     477  *)   ECHO_C='\c';;
     478  esac;;
     479*)
     480  ECHO_N='-n';;
     481esac
     482
     483if expr a : '\(a\)' >/dev/null 2>&1 &&
     484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    195485  as_expr=expr
    196486else
    … …  
    199489
    200490rm -f conf$$ conf$$.exe conf$$.file
     491if test -d conf$$.dir; then
     492  rm -f conf$$.dir/conf$$.file
     493else
     494  rm -f conf$$.dir
     495  mkdir conf$$.dir
     496fi
    201497echo >conf$$.file
    202498if ln -s conf$$.file conf$$ 2>/dev/null; then
    203   # We could just check for DJGPP; but this test a) works b) is more generic
    204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    205   if test -f conf$$.exe; then
    206     # Don't use ln at all; we don't have any links
     499  as_ln_s='ln -s'
     500  # ... but there are two gotchas:
     501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     503  # In both cases, we have to default to `cp -p'.
     504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    207505    as_ln_s='cp -p'
    208   else
    209     as_ln_s='ln -s'
    210   fi
    211506elif ln conf$$.file conf$$ 2>/dev/null; then
    212507  as_ln_s=ln
    … …  
    214509  as_ln_s='cp -p'
    215510fi
    216 rm -f conf$$ conf$$.exe conf$$.file
     511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     512rmdir conf$$.dir 2>/dev/null
    217513
    218514if mkdir -p . 2>/dev/null; then
    … …  
    223519fi
    224520
    225 as_executable_p="test -f"
     521if test -x / >/dev/null 2>&1; then
     522  as_test_x='test -x'
     523else
     524  if ls -dL / >/dev/null 2>&1; then
     525    as_ls_L_option=L
     526  else
     527    as_ls_L_option=
     528  fi
     529  as_test_x='
     530    eval sh -c '\''
     531      if test -d "$1"; then
     532        test -d "$1/.";
     533      else
     534        case $1 in
     535        -*)set "./$1";;
     536        esac;
     537        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
     538        ???[sx]*):;;*)false;;esac;fi
     539    '\'' sh
     540  '
     541fi
     542as_executable_p=$as_test_x
    226543
    227544# Sed expression to map a string onto a valid CPP name.
    … …  
    232549
    233550
    234 # IFS
    235 # We need space, tab and new line, in precisely that order.
    236 as_nl='
    237 '
    238 IFS="   $as_nl"
    239 
    240 # CDPATH.
    241 $as_unset CDPATH
    242 
     551
     552exec 7<&0 </dev/null 6>&1
    243553
    244554# Name of the host.
    … …  
    247557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    248558
    249 exec 6>&1
    250 
    251559#
    252560# Initializations.
    253561#
    254562ac_default_prefix=/usr/local
     563ac_clean_files=
    255564ac_config_libobj_dir=.
     565LIBOBJS=
    256566cross_compiling=no
    257567subdirs=
    … …  
    259569MAKEFLAGS=
    260570SHELL=${CONFIG_SHELL-/bin/sh}
    261 
    262 # Maximum number of lines to put in a shell here document.
    263 # This variable seems obsolete.  It should probably be removed, and
    264 # only ac_max_sed_lines should be used.
    265 : ${ac_max_here_lines=38}
    266571
    267572# Identity of this package.
    … …  
    276581ac_includes_default="\
    277582#include <stdio.h>
    278 #if HAVE_SYS_TYPES_H
     583#ifdef HAVE_SYS_TYPES_H
    279584# include <sys/types.h>
    280585#endif
    281 #if HAVE_SYS_STAT_H
     586#ifdef HAVE_SYS_STAT_H
    282587# include <sys/stat.h>
    283588#endif
    284 #if STDC_HEADERS
     589#ifdef STDC_HEADERS
    285590# include <stdlib.h>
    286591# include <stddef.h>
    287592#else
    288 # if HAVE_STDLIB_H
     593# ifdef HAVE_STDLIB_H
    289594#  include <stdlib.h>
    290595# endif
    291596#endif
    292 #if HAVE_STRING_H
    293 # if !STDC_HEADERS && HAVE_MEMORY_H
     597#ifdef HAVE_STRING_H
     598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    294599#  include <memory.h>
    295600# endif
    296601# include <string.h>
    297602#endif
    298 #if HAVE_STRINGS_H
     603#ifdef HAVE_STRINGS_H
    299604# include <strings.h>
    300605#endif
    301 #if HAVE_INTTYPES_H
     606#ifdef HAVE_INTTYPES_H
    302607# include <inttypes.h>
    303 #else
    304 # if HAVE_STDINT_H
    305 #  include <stdint.h>
    306 # endif
    307608#endif
    308 #if HAVE_UNISTD_H
     609#ifdef HAVE_STDINT_H
     610# include <stdint.h>
     611#endif
     612#ifdef HAVE_UNISTD_H
    309613# include <unistd.h>
    310614#endif"
    311615
    312 ac_subdirs_all="$ac_subdirs_all libfaim"
    313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP XSUBPPDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA subdirs LIBOBJS LTLIBOBJS'
     616ac_subst_vars='SHELL
     617PATH_SEPARATOR
     618PACKAGE_NAME
     619PACKAGE_TARNAME
     620PACKAGE_VERSION
     621PACKAGE_STRING
     622PACKAGE_BUGREPORT
     623exec_prefix
     624prefix
     625program_transform_name
     626bindir
     627sbindir
     628libexecdir
     629datarootdir
     630datadir
     631sysconfdir
     632sharedstatedir
     633localstatedir
     634includedir
     635oldincludedir
     636docdir
     637infodir
     638htmldir
     639dvidir
     640pdfdir
     641psdir
     642libdir
     643localedir
     644mandir
     645DEFS
     646ECHO_C
     647ECHO_N
     648ECHO_T
     649LIBS
     650build_alias
     651host_alias
     652target_alias
     653CC
     654CFLAGS
     655LDFLAGS
     656CPPFLAGS
     657ac_ct_CC
     658EXEEXT
     659OBJEXT
     660CPP
     661GREP
     662EGREP
     663XSUBPPDIR
     664INSTALL_PROGRAM
     665INSTALL_SCRIPT
     666INSTALL_DATA
     667subdirs
     668LIBOBJS
     669LTLIBOBJS'
    314670ac_subst_files=''
     671      ac_precious_vars='build_alias
     672host_alias
     673target_alias
     674CC
     675CFLAGS
     676LDFLAGS
     677LIBS
     678CPPFLAGS
     679CPP'
     680ac_subdirs_all='libfaim'
    315681
    316682# Initialize some variables set by options.
    … …  
    339705# by default will actually change.
    340706# Use braces instead of parens because sh, perl, etc. also accept them.
     707# (The list follows the same order as the GNU Coding Standards.)
    341708bindir='${exec_prefix}/bin'
    342709sbindir='${exec_prefix}/sbin'
    343710libexecdir='${exec_prefix}/libexec'
    344 datadir='${prefix}/share'
     711datarootdir='${prefix}/share'
     712datadir='${datarootdir}'
    345713sysconfdir='${prefix}/etc'
    346714sharedstatedir='${prefix}/com'
    347715localstatedir='${prefix}/var'
    348 libdir='${exec_prefix}/lib'
    349716includedir='${prefix}/include'
    350717oldincludedir='/usr/include'
    351 infodir='${prefix}/info'
    352 mandir='${prefix}/man'
     718docdir='${datarootdir}/doc/${PACKAGE}'
     719infodir='${datarootdir}/info'
     720htmldir='${docdir}'
     721dvidir='${docdir}'
     722pdfdir='${docdir}'
     723psdir='${docdir}'
     724libdir='${exec_prefix}/lib'
     725localedir='${datarootdir}/locale'
     726mandir='${datarootdir}/man'
    353727
    354728ac_prev=
     729ac_dashdash=
    355730for ac_option
    356731do
    357732  # If the previous option needs an argument, assign it.
    358733  if test -n "$ac_prev"; then
    359     eval "$ac_prev=\$ac_option"
     734    eval $ac_prev=\$ac_option
    360735    ac_prev=
    361736    continue
    362737  fi
    363738
    364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     739  case $ac_option in
     740  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     741  *)    ac_optarg=yes ;;
     742  esac
    365743
    366744  # Accept the important Cygnus configure options, so we can diagnose typos.
    367745
    368   case $ac_option in
     746  case $ac_dashdash$ac_option in
     747  --)
     748    ac_dashdash=yes ;;
    369749
    370750  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    … …  
    388768    cache_file=config.cache ;;
    389769
    390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     770  -datadir | --datadir | --datadi | --datad)
    391771    ac_prev=datadir ;;
    392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    393   | --da=*)
     772  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    394773    datadir=$ac_optarg ;;
     774
     775  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
     776  | --dataroo | --dataro | --datar)
     777    ac_prev=datarootdir ;;
     778  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
     779  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
     780    datarootdir=$ac_optarg ;;
    395781
    396782  -disable-* | --disable-*)
    397783    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    398784    # Reject names that are not valid shell variable names.
    399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     785    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    400786      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    401787   { (exit 1); exit 1; }; }
    402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    403     eval "enable_$ac_feature=no" ;;
     788    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
     789    eval enable_$ac_feature=no ;;
     790
     791  -docdir | --docdir | --docdi | --doc | --do)
     792    ac_prev=docdir ;;
     793  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
     794    docdir=$ac_optarg ;;
     795
     796  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
     797    ac_prev=dvidir ;;
     798  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
     799    dvidir=$ac_optarg ;;
    404800
    405801  -enable-* | --enable-*)
    406802    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    407803    # Reject names that are not valid shell variable names.
    408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     804    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    409805      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    410806   { (exit 1); exit 1; }; }
    411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    412     case $ac_option in
    413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    414       *) ac_optarg=yes ;;
    415     esac
    416     eval "enable_$ac_feature='$ac_optarg'" ;;
     807    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
     808    eval enable_$ac_feature=\$ac_optarg ;;
    417809
    418810  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    … …  
    441833    host_alias=$ac_optarg ;;
    442834
     835  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
     836    ac_prev=htmldir ;;
     837  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
     838  | --ht=*)
     839    htmldir=$ac_optarg ;;
     840
    443841  -includedir | --includedir | --includedi | --included | --include \
    444842  | --includ | --inclu | --incl | --inc)
    … …  
    465863    libexecdir=$ac_optarg ;;
    466864
     865  -localedir | --localedir | --localedi | --localed | --locale)
     866    ac_prev=localedir ;;
     867  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
     868    localedir=$ac_optarg ;;
     869
    467870  -localstatedir | --localstatedir | --localstatedi | --localstated \
    468   | --localstate | --localstat | --localsta | --localst \
    469   | --locals | --local | --loca | --loc | --lo)
     871  | --localstate | --localstat | --localsta | --localst | --locals)
    470872    ac_prev=localstatedir ;;
    471873  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     874  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    474875    localstatedir=$ac_optarg ;;
    475876
    … …  
    536937    program_transform_name=$ac_optarg ;;
    537938
     939  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
     940    ac_prev=pdfdir ;;
     941  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
     942    pdfdir=$ac_optarg ;;
     943
     944  -psdir | --psdir | --psdi | --psd | --ps)
     945    ac_prev=psdir ;;
     946  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
     947    psdir=$ac_optarg ;;
     948
    538949  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    539950  | -silent | --silent | --silen | --sile | --sil)
    … …  
    588999    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    5891000    # Reject names that are not valid shell variable names.
    590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     1001    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    5911002      { echo "$as_me: error: invalid package name: $ac_package" >&2
    5921003   { (exit 1); exit 1; }; }
    593     ac_package=`echo $ac_package| sed 's/-/_/g'`
    594     case $ac_option in
    595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    596       *) ac_optarg=yes ;;
    597     esac
    598     eval "with_$ac_package='$ac_optarg'" ;;
     1004    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
     1005    eval with_$ac_package=\$ac_optarg ;;
    5991006
    6001007  -without-* | --without-*)
    6011008    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    6021009    # Reject names that are not valid shell variable names.
    603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     1010    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    6041011      { echo "$as_me: error: invalid package name: $ac_package" >&2
    6051012   { (exit 1); exit 1; }; }
    606     ac_package=`echo $ac_package | sed 's/-/_/g'`
    607     eval "with_$ac_package=no" ;;
     1013    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
     1014    eval with_$ac_package=no ;;
    6081015
    6091016  --x)
    … …  
    6361043      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    6371044   { (exit 1); exit 1; }; }
    638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    639     eval "$ac_envvar='$ac_optarg'"
     1045    eval $ac_envvar=\$ac_optarg
    6401046    export $ac_envvar ;;
    6411047
    … …  
    6571063fi
    6581064
    659 # Be sure to have absolute paths.
    660 for ac_var in exec_prefix prefix
     1065# Be sure to have absolute directory names.
     1066for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
     1067                datadir sysconfdir sharedstatedir localstatedir includedir \
     1068                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
     1069                libdir localedir mandir
    6611070do
    662   eval ac_val=$`echo $ac_var`
     1071  eval ac_val=\$$ac_var
    6631072  case $ac_val in
    664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    666    { (exit 1); exit 1; }; };;
     1073    [\\/$]* | ?:[\\/]* )  continue;;
     1074    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    6671075  esac
    668 done
    669 
    670 # Be sure to have absolute paths.
    671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    672               localstatedir libdir includedir oldincludedir infodir mandir
    673 do
    674   eval ac_val=$`echo $ac_var`
    675   case $ac_val in
    676     [\\/$]* | ?:[\\/]* ) ;;
    677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    678    { (exit 1); exit 1; }; };;
    679   esac
     1076  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     1077   { (exit 1); exit 1; }; }
    6801078done
    6811079
    … …  
    7041102
    7051103
     1104ac_pwd=`pwd` && test -n "$ac_pwd" &&
     1105ac_ls_di=`ls -di .` &&
     1106ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
     1107  { echo "$as_me: error: Working directory cannot be determined" >&2
     1108   { (exit 1); exit 1; }; }
     1109test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
     1110  { echo "$as_me: error: pwd does not report name of working directory" >&2
     1111   { (exit 1); exit 1; }; }
     1112
     1113
    7061114# Find the source files, if location was not specified.
    7071115if test -z "$srcdir"; then
    7081116  ac_srcdir_defaulted=yes
    709   # Try the directory containing this script, then its parent.
    710   ac_confdir=`(dirname "$0") 2>/dev/null ||
     1117  # Try the directory containing this script, then the parent directory.
     1118  ac_confdir=`$as_dirname -- "$0" ||
    7111119$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    7121120         X"$0" : 'X\(//\)[^/]' \| \
    7131121         X"$0" : 'X\(//\)$' \| \
    714          X"$0" : 'X\(/\)' \| \
    715          .     : '\(.\)' 2>/dev/null ||
     1122         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    7161123echo X"$0" |
    717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    719           /^X\(\/\/\)$/{ s//\1/; q; }
    720           /^X\(\/\).*/{ s//\1/; q; }
    721           s/.*/./; q'`
     1124    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     1125            s//\1/
     1126            q
     1127          }
     1128          /^X\(\/\/\)[^/].*/{
     1129            s//\1/
     1130            q
     1131          }
     1132          /^X\(\/\/\)$/{
     1133            s//\1/
     1134            q
     1135          }
     1136          /^X\(\/\).*/{
     1137            s//\1/
     1138            q
     1139          }
     1140          s/.*/./; q'`
    7221141  srcdir=$ac_confdir
    723   if test ! -r $srcdir/$ac_unique_file; then
     1142  if test ! -r "$srcdir/$ac_unique_file"; then
    7241143    srcdir=..
    7251144  fi
    … …  
    7271146  ac_srcdir_defaulted=no
    7281147fi
    729 if test ! -r $srcdir/$ac_unique_file; then
    730   if test "$ac_srcdir_defaulted" = yes; then
    731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
     1148if test ! -r "$srcdir/$ac_unique_file"; then
     1149  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
     1150  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    7321151   { (exit 1); exit 1; }; }
    733   else
    734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     1152fi
     1153ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
     1154ac_abs_confdir=`(
     1155        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
    7351156   { (exit 1); exit 1; }; }
    736   fi
    737 fi
    738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
    739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    740    { (exit 1); exit 1; }; }
    741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    742 ac_env_build_alias_set=${build_alias+set}
    743 ac_env_build_alias_value=$build_alias
    744 ac_cv_env_build_alias_set=${build_alias+set}
    745 ac_cv_env_build_alias_value=$build_alias
    746 ac_env_host_alias_set=${host_alias+set}
    747 ac_env_host_alias_value=$host_alias
    748 ac_cv_env_host_alias_set=${host_alias+set}
    749 ac_cv_env_host_alias_value=$host_alias
    750 ac_env_target_alias_set=${target_alias+set}
    751 ac_env_target_alias_value=$target_alias
    752 ac_cv_env_target_alias_set=${target_alias+set}
    753 ac_cv_env_target_alias_value=$target_alias
    754 ac_env_CC_set=${CC+set}
    755 ac_env_CC_value=$CC
    756 ac_cv_env_CC_set=${CC+set}
    757 ac_cv_env_CC_value=$CC
    758 ac_env_CFLAGS_set=${CFLAGS+set}
    759 ac_env_CFLAGS_value=$CFLAGS
    760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    761 ac_cv_env_CFLAGS_value=$CFLAGS
    762 ac_env_LDFLAGS_set=${LDFLAGS+set}
    763 ac_env_LDFLAGS_value=$LDFLAGS
    764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    765 ac_cv_env_LDFLAGS_value=$LDFLAGS
    766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    767 ac_env_CPPFLAGS_value=$CPPFLAGS
    768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    770 ac_env_CPP_set=${CPP+set}
    771 ac_env_CPP_value=$CPP
    772 ac_cv_env_CPP_set=${CPP+set}
    773 ac_cv_env_CPP_value=$CPP
     1157        pwd)`
     1158# When building in place, set srcdir=.
     1159if test "$ac_abs_confdir" = "$ac_pwd"; then
     1160  srcdir=.
     1161fi
     1162# Remove unnecessary trailing slashes from srcdir.
     1163# Double slashes in file names in object file debugging info
     1164# mess up M-x gdb in Emacs.
     1165case $srcdir in
     1166*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
     1167esac
     1168for ac_var in $ac_precious_vars; do
     1169  eval ac_env_${ac_var}_set=\${${ac_var}+set}
     1170  eval ac_env_${ac_var}_value=\$${ac_var}
     1171  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
     1172  eval ac_cv_env_${ac_var}_value=\$${ac_var}
     1173done
    7741174
    7751175#
    … …  
    8001200      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    8011201
    802 _ACEOF
    803 
    804   cat <<_ACEOF
    8051202Installation directories:
    8061203  --prefix=PREFIX         install architecture-independent files in PREFIX
    … …  
    8201217  --sbindir=DIR          system admin executables [EPREFIX/sbin]
    8211218  --libexecdir=DIR       program executables [EPREFIX/libexec]
    822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    8231219  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    8241220  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    … …  
    8271223  --includedir=DIR       C header files [PREFIX/include]
    8281224  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    829   --infodir=DIR          info documentation [PREFIX/info]
    830   --mandir=DIR           man documentation [PREFIX/man]
     1225  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
     1226  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
     1227  --infodir=DIR          info documentation [DATAROOTDIR/info]
     1228  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
     1229  --mandir=DIR           man documentation [DATAROOTDIR/man]
     1230  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
     1231  --htmldir=DIR          html documentation [DOCDIR]
     1232  --dvidir=DIR           dvi documentation [DOCDIR]
     1233  --pdfdir=DIR           pdf documentation [DOCDIR]
     1234  --psdir=DIR            ps documentation [DOCDIR]
    8311235_ACEOF
    8321236
    … …  
    8441248  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    8451249              nonstandard directory <lib dir>
    846   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    847               headers in a nonstandard directory <include dir>
     1250  LIBS        libraries to pass to the linker, e.g. -l<library>
     1251  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
     1252              you have headers in a nonstandard directory <include dir>
    8481253  CPP         C preprocessor
    8491254
    … …  
    8521257
    8531258_ACEOF
     1259ac_status=$?
    8541260fi
    8551261
    8561262if test "$ac_init_help" = "recursive"; then
    8571263  # If there are subdirs, report their specific --help.
    858   ac_popdir=`pwd`
    8591264  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    860     test -d $ac_dir || continue
     1265    test -d "$ac_dir" || continue
    8611266    ac_builddir=.
    8621267
    863 if test "$ac_dir" != .; then
     1268case "$ac_dir" in
     1269.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1270*)
    8641271  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    865   # A "../" for each directory in $ac_dir_suffix.
    866   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    867 else
    868   ac_dir_suffix= ac_top_builddir=
    869 fi
     1272  # A ".." for each directory in $ac_dir_suffix.
     1273  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
     1274  case $ac_top_builddir_sub in
     1275  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1276  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     1277  esac ;;
     1278esac
     1279ac_abs_top_builddir=$ac_pwd
     1280ac_abs_builddir=$ac_pwd$ac_dir_suffix
     1281# for backward compatibility:
     1282ac_top_builddir=$ac_top_build_prefix
    8701283
    8711284case $srcdir in
    872   .)  # No --srcdir option.  We are building in place.
     1285  .)  # We are building in place.
    8731286    ac_srcdir=.
    874     if test -z "$ac_top_builddir"; then
    875        ac_top_srcdir=.
    876     else
    877        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    878     fi ;;
    879   [\\/]* | ?:[\\/]* )  # Absolute path.
     1287    ac_top_srcdir=$ac_top_builddir_sub
     1288    ac_abs_top_srcdir=$ac_pwd ;;
     1289  [\\/]* | ?:[\\/]* )  # Absolute name.
    8801290    ac_srcdir=$srcdir$ac_dir_suffix;
    881     ac_top_srcdir=$srcdir ;;
    882   *) # Relative path.
    883     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    884     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    885 esac
    886 
    887 # Do not use `cd foo && pwd` to compute absolute paths, because
    888 # the directories may not exist.
    889 case `pwd` in
    890 .) ac_abs_builddir="$ac_dir";;
    891 *)
    892   case "$ac_dir" in
    893   .) ac_abs_builddir=`pwd`;;
    894   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    895   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    896   esac;;
    897 esac
    898 case $ac_abs_builddir in
    899 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    900 *)
    901   case ${ac_top_builddir}. in
    902   .) ac_abs_top_builddir=$ac_abs_builddir;;
    903   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    904   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    905   esac;;
    906 esac
    907 case $ac_abs_builddir in
    908 .) ac_abs_srcdir=$ac_srcdir;;
    909 *)
    910   case $ac_srcdir in
    911   .) ac_abs_srcdir=$ac_abs_builddir;;
    912   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    913   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    914   esac;;
    915 esac
    916 case $ac_abs_builddir in
    917 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    918 *)
    919   case $ac_top_srcdir in
    920   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    921   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    922   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    923   esac;;
    924 esac
    925 
    926     cd $ac_dir
    927     # Check for guested configure; otherwise get Cygnus style configure.
    928     if test -f $ac_srcdir/configure.gnu; then
    929       echo
    930       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    931     elif test -f $ac_srcdir/configure; then
    932       echo
    933       $SHELL $ac_srcdir/configure  --help=recursive
    934     elif test -f $ac_srcdir/configure.ac ||
    935            test -f $ac_srcdir/configure.in; then
    936       echo
    937       $ac_configure --help
     1291    ac_top_srcdir=$srcdir
     1292    ac_abs_top_srcdir=$srcdir ;;
     1293  *) # Relative name.
     1294    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     1295    ac_top_srcdir=$ac_top_build_prefix$srcdir
     1296    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     1297esac
     1298ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     1299
     1300    cd "$ac_dir" || { ac_status=$?; continue; }
     1301    # Check for guested configure.
     1302    if test -f "$ac_srcdir/configure.gnu"; then
     1303      echo &&
     1304      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
     1305    elif test -f "$ac_srcdir/configure"; then
     1306      echo &&
     1307      $SHELL "$ac_srcdir/configure" --help=recursive
    9381308    else
    9391309      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    940     fi
    941     cd $ac_popdir
     1310    fi || ac_status=$?
     1311    cd "$ac_pwd" || { ac_status=$?; break; }
    9421312  done
    9431313fi
    9441314
    945 test -n "$ac_init_help" && exit 0
     1315test -n "$ac_init_help" && exit $ac_status
    9461316if $ac_init_version; then
    9471317  cat <<\_ACEOF
    948 
    949 Copyright (C) 2003 Free Software Foundation, Inc.
     1318configure
     1319generated by GNU Autoconf 2.61
     1320
     1321Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     13222002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
    9501323This configure script is free software; the Free Software Foundation
    9511324gives unlimited permission to copy, distribute and modify it.
    9521325_ACEOF
    953   exit 0
    954 fi
    955 exec 5>config.log
    956 cat >&5 <<_ACEOF
     1326  exit
     1327fi
     1328cat >config.log <<_ACEOF
    9571329This file contains any messages produced by compilers while
    9581330running configure, to aid debugging if configure makes a mistake.
    9591331
    9601332It was created by $as_me, which was
    961 generated by GNU Autoconf 2.59.  Invocation command line was
     1333generated by GNU Autoconf 2.61.  Invocation command line was
    9621334
    9631335  $ $0 $@
    9641336
    9651337_ACEOF
     1338exec 5>>config.log
    9661339{
    9671340cat <<_ASUNAME
    … …  
    9821355/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    9831356/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    984 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1357/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
    9851358/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    9861359/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    … …  
    9961369  echo "PATH: $as_dir"
    9971370done
     1371IFS=$as_save_IFS
    9981372
    9991373} >&5
    … …  
    10171391ac_configure_args0=
    10181392ac_configure_args1=
    1019 ac_sep=
    10201393ac_must_keep_next=false
    10211394for ac_pass in 1 2
    … …  
    10281401    | -silent | --silent | --silen | --sile | --sil)
    10291402      continue ;;
    1030     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1403    *\'*)
    10311404      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    10321405    esac
    … …  
    10501423        esac
    10511424      fi
    1052       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1053       # Get rid of the leading space.
    1054       ac_sep=" "
     1425      ac_configure_args="$ac_configure_args '$ac_arg'"
    10551426      ;;
    10561427    esac
    … …  
    10631434# config.log.  We remove comments because anyway the quotes in there
    10641435# would cause problems or look ugly.
    1065 # WARNING: Be sure not to use single quotes in there, as some shells,
    1066 # such as our DU 5.0 friend, will then `close' the trap.
     1436# WARNING: Use '\'' to represent an apostrophe within the trap.
     1437# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
    10671438trap 'exit_status=$?
    10681439  # Save into config.log some information that might help in debugging.
    … …  
    10771448    echo
    10781449    # The following way of writing the cache mishandles newlines in values,
    1079 {
     1450(
     1451  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
     1452    eval ac_val=\$$ac_var
     1453    case $ac_val in #(
     1454    *${as_nl}*)
     1455      case $ac_var in #(
     1456      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
     1457echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
     1458      esac
     1459      case $ac_var in #(
     1460      _ | IFS | as_nl) ;; #(
     1461      *) $as_unset $ac_var ;;
     1462      esac ;;
     1463    esac
     1464  done
    10801465  (set) 2>&1 |
    1081     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1082     *ac_space=\ *)
     1466    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
     1467    *${as_nl}ac_space=\ *)
    10831468      sed -n \
    1084         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1469        "s/'\''/'\''\\\\'\'''\''/g;
     1470          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
     1471      ;; #(
     1472    *)
     1473      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    10861474      ;;
    1087     *)
    1088       sed -n \
    1089         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1090       ;;
    1091     esac;
    1092 }
     1475    esac |
     1476    sort
     1477)
    10931478    echo
    10941479
    … …  
    11011486    for ac_var in $ac_subst_vars
    11021487    do
    1103       eval ac_val=$`echo $ac_var`
    1104       echo "$ac_var='"'"'$ac_val'"'"'"
     1488      eval ac_val=\$$ac_var
     1489      case $ac_val in
     1490      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     1491      esac
     1492      echo "$ac_var='\''$ac_val'\''"
    11051493    done | sort
    11061494    echo
    … …  
    11081496    if test -n "$ac_subst_files"; then
    11091497      cat <<\_ASBOX
    1110 ## ------------- ##
    1111 ## Output files. ##
    1112 ## ------------- ##
     1498## ------------------- ##
     1499## File substitutions. ##
     1500## ------------------- ##
    11131501_ASBOX
    11141502      echo
    11151503      for ac_var in $ac_subst_files
    11161504      do
    1117         eval ac_val=$`echo $ac_var`
    1118         echo "$ac_var='"'"'$ac_val'"'"'"
     1505        eval ac_val=\$$ac_var
     1506        case $ac_val in
     1507        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     1508        esac
     1509        echo "$ac_var='\''$ac_val'\''"
    11191510      done | sort
    11201511      echo
    … …  
    11281519_ASBOX
    11291520      echo
    1130       sed "/^$/d" confdefs.h | sort
     1521      cat confdefs.h
    11311522      echo
    11321523    fi
    … …  
    11351526    echo "$as_me: exit $exit_status"
    11361527  } >&5
    1137   rm -f core *.core &&
    1138   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     1528  rm -f core *.core core.conftest.* &&
     1529    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    11391530    exit $exit_status
    1140      ' 0
     1531' 0
    11411532for ac_signal in 1 2 13 15; do
    11421533  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    … …  
    11451536
    11461537# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1147 rm -rf conftest* confdefs.h
    1148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1149 echo >confdefs.h
     1538rm -f -r conftest* confdefs.h
    11501539
    11511540# Predefined preprocessor variables.
    … …  
    11781567# Let the site file select an alternate cache file if it wants to.
    11791568# Prefer explicitly selected file to automatically selected ones.
    1180 if test -z "$CONFIG_SITE"; then
    1181   if test "x$prefix" != xNONE; then
    1182     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1183   else
    1184     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1185   fi
    1186 fi
    1187 for ac_site_file in $CONFIG_SITE; do
     1569if test -n "$CONFIG_SITE"; then
     1570  set x "$CONFIG_SITE"
     1571elif test "x$prefix" != xNONE; then
     1572  set x "$prefix/share/config.site" "$prefix/etc/config.site"
     1573else
     1574  set x "$ac_default_prefix/share/config.site" \
     1575        "$ac_default_prefix/etc/config.site"
     1576fi
     1577shift
     1578for ac_site_file
     1579do
    11881580  if test -r "$ac_site_file"; then
    11891581    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    … …  
    12011593echo "$as_me: loading cache $cache_file" >&6;}
    12021594    case $cache_file in
    1203       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1204       *)                      . ./$cache_file;;
     1595      [\\/]* | ?:[\\/]* ) . "$cache_file";;
     1596      *)                      . "./$cache_file";;
    12051597    esac
    12061598  fi
    … …  
    12141606# value.
    12151607ac_cache_corrupted=false
    1216 for ac_var in `(set) 2>&1 |
    1217                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1608for ac_var in $ac_precious_vars; do
    12181609  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    12191610  eval ac_new_set=\$ac_env_${ac_var}_set
    1220   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1221   eval ac_new_val="\$ac_env_${ac_var}_value"
     1611  eval ac_old_val=\$ac_cv_env_${ac_var}_value
     1612  eval ac_new_val=\$ac_env_${ac_var}_value
    12221613  case $ac_old_set,$ac_new_set in
    12231614    set,)
    … …  
    12441635  if test "$ac_new_set" = set; then
    12451636    case $ac_new_val in
    1246     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1247       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1637    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    12481638    *) ac_arg=$ac_var=$ac_new_val ;;
    12491639    esac
    … …  
    12621652fi
    12631653
     1654
     1655
     1656
     1657
     1658
     1659
     1660
     1661
     1662
     1663
     1664
     1665
     1666
     1667
     1668
     1669
    12641670ac_ext=c
    12651671ac_cpp='$CPP $CPPFLAGS'
    … …  
    12701676
    12711677
    1272 
    1273 
    1274 
    1275 
    1276 
    1277 
    1278 
    1279 
    1280 
    1281 
    1282 
    1283 
    1284 
    1285 
    1286 
    1287 
    1288 
    1289           ac_config_headers="$ac_config_headers config.h"
     1678ac_config_headers="$ac_config_headers config.h"
    12901679
    12911680
    … …  
    12981687  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    12991688set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1300 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    13021691if test "${ac_cv_prog_CC+set}" = set; then
    13031692  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    13121701  test -z "$as_dir" && as_dir=.
    13131702  for ac_exec_ext in '' $ac_executable_extensions; do
    1314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    13151704    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    13161705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    13191708done
    13201709done
     1710IFS=$as_save_IFS
    13211711
    13221712fi
    … …  
    13241714CC=$ac_cv_prog_CC
    13251715if test -n "$CC"; then
    1326   echo "$as_me:$LINENO: result: $CC" >&5
    1327 echo "${ECHO_T}$CC" >&6
    1328 else
    1329   echo "$as_me:$LINENO: result: no" >&5
    1330 echo "${ECHO_T}no" >&6
    1331 fi
     1716  { echo "$as_me:$LINENO: result: $CC" >&5
     1717echo "${ECHO_T}$CC" >&6; }
     1718else
     1719  { echo "$as_me:$LINENO: result: no" >&5
     1720echo "${ECHO_T}no" >&6; }
     1721fi
     1722
    13321723
    13331724fi
    … …  
    13361727  # Extract the first word of "gcc", so it can be a program name with args.
    13371728set dummy gcc; ac_word=$2
    1338 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    13401731if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    13411732  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    13501741  test -z "$as_dir" && as_dir=.
    13511742  for ac_exec_ext in '' $ac_executable_extensions; do
    1352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    13531744    ac_cv_prog_ac_ct_CC="gcc"
    13541745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    13571748done
    13581749done
     1750IFS=$as_save_IFS
    13591751
    13601752fi
    … …  
    13621754ac_ct_CC=$ac_cv_prog_ac_ct_CC
    13631755if test -n "$ac_ct_CC"; then
    1364   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1365 echo "${ECHO_T}$ac_ct_CC" >&6
    1366 else
    1367   echo "$as_me:$LINENO: result: no" >&5
    1368 echo "${ECHO_T}no" >&6
    1369 fi
    1370 
    1371   CC=$ac_ct_CC
     1756  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1757echo "${ECHO_T}$ac_ct_CC" >&6; }
     1758else
     1759  { echo "$as_me:$LINENO: result: no" >&5
     1760echo "${ECHO_T}no" >&6; }
     1761fi
     1762
     1763  if test "x$ac_ct_CC" = x; then
     1764    CC=""
     1765  else
     1766    case $cross_compiling:$ac_tool_warned in
     1767yes:)
     1768{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     1769whose name does not start with the host triplet.  If you think this
     1770configuration is useful to you, please write to autoconf@gnu.org." >&5
     1771echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     1772whose name does not start with the host triplet.  If you think this
     1773configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     1774ac_tool_warned=yes ;;
     1775esac
     1776    CC=$ac_ct_CC
     1777  fi
    13721778else
    13731779  CC="$ac_cv_prog_CC"
    … …  
    13751781
    13761782if test -z "$CC"; then
    1377   if test -n "$ac_tool_prefix"; then
    1378   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1783          if test -n "$ac_tool_prefix"; then
     1784    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    13791785set dummy ${ac_tool_prefix}cc; ac_word=$2
    1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    13821788if test "${ac_cv_prog_CC+set}" = set; then
    13831789  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    13921798  test -z "$as_dir" && as_dir=.
    13931799  for ac_exec_ext in '' $ac_executable_extensions; do
    1394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    13951801    ac_cv_prog_CC="${ac_tool_prefix}cc"
    13961802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    13991805done
    14001806done
     1807IFS=$as_save_IFS
    14011808
    14021809fi
    … …  
    14041811CC=$ac_cv_prog_CC
    14051812if test -n "$CC"; then
    1406   echo "$as_me:$LINENO: result: $CC" >&5
    1407 echo "${ECHO_T}$CC" >&6
    1408 else
    1409   echo "$as_me:$LINENO: result: no" >&5
    1410 echo "${ECHO_T}no" >&6
    1411 fi
    1412 
    1413 fi
    1414 if test -z "$ac_cv_prog_CC"; then
    1415   ac_ct_CC=$CC
    1416   # Extract the first word of "cc", so it can be a program name with args.
    1417 set dummy cc; ac_word=$2
    1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1421   echo $ECHO_N "(cached) $ECHO_C" >&6
    1422 else
    1423   if test -n "$ac_ct_CC"; then
    1424   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1425 else
    1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1427 for as_dir in $PATH
    1428 do
    1429   IFS=$as_save_IFS
    1430   test -z "$as_dir" && as_dir=.
    1431   for ac_exec_ext in '' $ac_executable_extensions; do
    1432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1433     ac_cv_prog_ac_ct_CC="cc"
    1434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1435     break 2
     1813  { echo "$as_me:$LINENO: result: $CC" >&5
     1814echo "${ECHO_T}$CC" >&6; }
     1815else
     1816  { echo "$as_me:$LINENO: result: no" >&5
     1817echo "${ECHO_T}no" >&6; }
     1818fi
     1819
     1820
    14361821  fi
    1437 done
    1438 done
    1439 
    1440 fi
    1441 fi
    1442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1443 if test -n "$ac_ct_CC"; then
    1444   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1445 echo "${ECHO_T}$ac_ct_CC" >&6
    1446 else
    1447   echo "$as_me:$LINENO: result: no" >&5
    1448 echo "${ECHO_T}no" >&6
    1449 fi
    1450 
    1451   CC=$ac_ct_CC
    1452 else
    1453   CC="$ac_cv_prog_CC"
    1454 fi
    1455 
    14561822fi
    14571823if test -z "$CC"; then
    14581824  # Extract the first word of "cc", so it can be a program name with args.
    14591825set dummy cc; ac_word=$2
    1460 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    14621828if test "${ac_cv_prog_CC+set}" = set; then
    14631829  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    14731839  test -z "$as_dir" && as_dir=.
    14741840  for ac_exec_ext in '' $ac_executable_extensions; do
    1475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    14761842    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    14771843       ac_prog_rejected=yes
    … …  
    14841850done
    14851851done
     1852IFS=$as_save_IFS
    14861853
    14871854if test $ac_prog_rejected = yes; then
    … …  
    15011868CC=$ac_cv_prog_CC
    15021869if test -n "$CC"; then
    1503   echo "$as_me:$LINENO: result: $CC" >&5
    1504 echo "${ECHO_T}$CC" >&6
    1505 else
    1506   echo "$as_me:$LINENO: result: no" >&5
    1507 echo "${ECHO_T}no" >&6
    1508 fi
     1870  { echo "$as_me:$LINENO: result: $CC" >&5
     1871echo "${ECHO_T}$CC" >&6; }
     1872else
     1873  { echo "$as_me:$LINENO: result: no" >&5
     1874echo "${ECHO_T}no" >&6; }
     1875fi
     1876
    15091877
    15101878fi
    15111879if test -z "$CC"; then
    15121880  if test -n "$ac_tool_prefix"; then
    1513   for ac_prog in cl
     1881  for ac_prog in cl.exe
    15141882  do
    15151883    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    15161884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    15191887if test "${ac_cv_prog_CC+set}" = set; then
    15201888  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    15291897  test -z "$as_dir" && as_dir=.
    15301898  for ac_exec_ext in '' $ac_executable_extensions; do
    1531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    15321900    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    15331901    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    15361904done
    15371905done
     1906IFS=$as_save_IFS
    15381907
    15391908fi
    … …  
    15411910CC=$ac_cv_prog_CC
    15421911if test -n "$CC"; then
    1543   echo "$as_me:$LINENO: result: $CC" >&5
    1544 echo "${ECHO_T}$CC" >&6
    1545 else
    1546   echo "$as_me:$LINENO: result: no" >&5
    1547 echo "${ECHO_T}no" >&6
    1548 fi
     1912  { echo "$as_me:$LINENO: result: $CC" >&5
     1913echo "${ECHO_T}$CC" >&6; }
     1914else
     1915  { echo "$as_me:$LINENO: result: no" >&5
     1916echo "${ECHO_T}no" >&6; }
     1917fi
     1918
    15491919
    15501920    test -n "$CC" && break
    … …  
    15531923if test -z "$CC"; then
    15541924  ac_ct_CC=$CC
    1555   for ac_prog in cl
     1925  for ac_prog in cl.exe
    15561926do
    15571927  # Extract the first word of "$ac_prog", so it can be a program name with args.
    15581928set dummy $ac_prog; ac_word=$2
    1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    15611931if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    15621932  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    15711941  test -z "$as_dir" && as_dir=.
    15721942  for ac_exec_ext in '' $ac_executable_extensions; do
    1573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    15741944    ac_cv_prog_ac_ct_CC="$ac_prog"
    15751945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    15781948done
    15791949done
     1950IFS=$as_save_IFS
    15801951
    15811952fi
    … …  
    15831954ac_ct_CC=$ac_cv_prog_ac_ct_CC
    15841955if test -n "$ac_ct_CC"; then
    1585   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1586 echo "${ECHO_T}$ac_ct_CC" >&6
    1587 else
    1588   echo "$as_me:$LINENO: result: no" >&5
    1589 echo "${ECHO_T}no" >&6
    1590 fi
     1956  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1957echo "${ECHO_T}$ac_ct_CC" >&6; }
     1958else
     1959  { echo "$as_me:$LINENO: result: no" >&5
     1960echo "${ECHO_T}no" >&6; }
     1961fi
     1962
    15911963
    15921964  test -n "$ac_ct_CC" && break
    15931965done
    15941966
    1595   CC=$ac_ct_CC
     1967  if test "x$ac_ct_CC" = x; then
     1968    CC=""
     1969  else
     1970    case $cross_compiling:$ac_tool_warned in
     1971yes:)
     1972{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     1973whose name does not start with the host triplet.  If you think this
     1974configuration is useful to you, please write to autoconf@gnu.org." >&5
     1975echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     1976whose name does not start with the host triplet.  If you think this
     1977configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     1978ac_tool_warned=yes ;;
     1979esac
     1980    CC=$ac_ct_CC
     1981  fi
    15961982fi
    15971983
    … …  
    16061992
    16071993# Provide some information about the compiler.
    1608 echo "$as_me:$LINENO:" \
    1609      "checking for C compiler version" >&5
     1994echo "$as_me:$LINENO: checking for C compiler version" >&5
    16101995ac_compiler=`set X $ac_compile; echo $2`
    1611 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    1612   (eval $ac_compiler --version </dev/null >&5) 2>&5
     1996{ (ac_try="$ac_compiler --version >&5"
     1997case "(($ac_try" in
     1998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1999  *) ac_try_echo=$ac_try;;
     2000esac
     2001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2002  (eval "$ac_compiler --version >&5") 2>&5
    16132003  ac_status=$?
    16142004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16152005  (exit $ac_status); }
    1616 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    1617   (eval $ac_compiler -v </dev/null >&5) 2>&5
     2006{ (ac_try="$ac_compiler -v >&5"
     2007case "(($ac_try" in
     2008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2009  *) ac_try_echo=$ac_try;;
     2010esac
     2011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2012  (eval "$ac_compiler -v >&5") 2>&5
    16182013  ac_status=$?
    16192014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16202015  (exit $ac_status); }
    1621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    1622   (eval $ac_compiler -V </dev/null >&5) 2>&5
     2016{ (ac_try="$ac_compiler -V >&5"
     2017case "(($ac_try" in
     2018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2019  *) ac_try_echo=$ac_try;;
     2020esac
     2021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2022  (eval "$ac_compiler -V >&5") 2>&5
    16232023  ac_status=$?
    16242024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    … …  
    16452045# It will help us diagnose broken compilers, and finding out an intuition
    16462046# of exeext.
    1647 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    1648 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     2047{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     2048echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
    16492049ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1650 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    1651   (eval $ac_link_default) 2>&5
     2050#
     2051# List of possible output files, starting from the most likely.
     2052# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
     2053# only as a last resort.  b.out is created by i960 compilers.
     2054ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
     2055#
     2056# The IRIX 6 linker writes into existing files which may not be
     2057# executable, retaining their permissions.  Remove them first so a
     2058# subsequent execution test works.
     2059ac_rmfiles=
     2060for ac_file in $ac_files
     2061do
     2062  case $ac_file in
     2063    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
     2064    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     2065  esac
     2066done
     2067rm -f $ac_rmfiles
     2068
     2069if { (ac_try="$ac_link_default"
     2070case "(($ac_try" in
     2071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2072  *) ac_try_echo=$ac_try;;
     2073esac
     2074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2075  (eval "$ac_link_default") 2>&5
    16522076  ac_status=$?
    16532077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16542078  (exit $ac_status); }; then
    1655   # Find the output, starting from the most likely.  This scheme is
    1656 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    1657 # resort.
    1658 
    1659 # Be careful to initialize this variable, since it used to be cached.
    1660 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    1661 ac_cv_exeext=
    1662 # b.out is created by i960 compilers.
    1663 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     2079  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     2080# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     2081# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     2082# so that the user can short-circuit this test for compilers unknown to
     2083# Autoconf.
     2084for ac_file in $ac_files ''
    16642085do
    16652086  test -f "$ac_file" || continue
    16662087  case $ac_file in
    1667     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    1668         ;;
    1669     conftest.$ac_ext )
    1670         # This is the source file.
     2088    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
    16712089        ;;
    16722090    [ab].out )
    … …  
    16752093        break;;
    16762094    *.* )
    1677         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1678         # FIXME: I believe we export ac_cv_exeext for Libtool,
    1679         # but it would be cool to find out if it's true.  Does anybody
    1680         # maintain Libtool? --akim.
    1681         export ac_cv_exeext
     2095        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2096        then :; else
     2097           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2098        fi
     2099        # We set ac_cv_exeext here because the later test for it is not
     2100        # safe: cross compilers may not add the suffix if given an `-o'
     2101        # argument, so we may need to know it at that point already.
     2102        # Even if this section looks crufty: it has the advantage of
     2103        # actually working.
    16822104        break;;
    16832105    * )
    … …  
    16852107  esac
    16862108done
    1687 else
     2109test "$ac_cv_exeext" = no && ac_cv_exeext=
     2110
     2111else
     2112  ac_file=''
     2113fi
     2114
     2115{ echo "$as_me:$LINENO: result: $ac_file" >&5
     2116echo "${ECHO_T}$ac_file" >&6; }
     2117if test -z "$ac_file"; then
    16882118  echo "$as_me: failed program was:" >&5
    16892119sed 's/^/| /' conftest.$ac_ext >&5
    … …  
    16972127
    16982128ac_exeext=$ac_cv_exeext
    1699 echo "$as_me:$LINENO: result: $ac_file" >&5
    1700 echo "${ECHO_T}$ac_file" >&6
    1701 
    1702 # Check the compiler produces executables we can run.  If not, either
     2129
     2130# Check that the compiler produces executables we can run.  If not, either
    17032131# the compiler is broken, or we cross compile.
    1704 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    1705 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     2132{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2133echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
    17062134# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    17072135# If not cross compiling, check that we can run a simple program.
    17082136if test "$cross_compiling" != yes; then
    17092137  if { ac_try='./$ac_file'
    1710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1711   (eval $ac_try) 2>&5
     2138  { (case "(($ac_try" in
     2139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2140  *) ac_try_echo=$ac_try;;
     2141esac
     2142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2143  (eval "$ac_try") 2>&5
    17122144  ac_status=$?
    17132145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    … …  
    17282160  fi
    17292161fi
    1730 echo "$as_me:$LINENO: result: yes" >&5
    1731 echo "${ECHO_T}yes" >&6
     2162{ echo "$as_me:$LINENO: result: yes" >&5
     2163echo "${ECHO_T}yes" >&6; }
    17322164
    17332165rm -f a.out a.exe conftest$ac_cv_exeext b.out
    17342166ac_clean_files=$ac_clean_files_save
    1735 # Check the compiler produces executables we can run.  If not, either
     2167# Check that the compiler produces executables we can run.  If not, either
    17362168# the compiler is broken, or we cross compile.
    1737 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    1738 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1739 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    1740 echo "${ECHO_T}$cross_compiling" >&6
    1741 
    1742 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    1743 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    1744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    1745   (eval $ac_link) 2>&5
     2169{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     2170echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
     2171{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
     2172echo "${ECHO_T}$cross_compiling" >&6; }
     2173
     2174{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
     2175echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
     2176if { (ac_try="$ac_link"
     2177case "(($ac_try" in
     2178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2179  *) ac_try_echo=$ac_try;;
     2180esac
     2181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2182  (eval "$ac_link") 2>&5
    17462183  ac_status=$?
    17472184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    … …  
    17542191  test -f "$ac_file" || continue
    17552192  case $ac_file in
    1756     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    17572194    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1758           export ac_cv_exeext
    17592195          break;;
    17602196    * ) break;;
    … …  
    17702206
    17712207rm -f conftest$ac_cv_exeext
    1772 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    1773 echo "${ECHO_T}$ac_cv_exeext" >&6
     2208{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     2209echo "${ECHO_T}$ac_cv_exeext" >&6; }
    17742210
    17752211rm -f conftest.$ac_ext
    17762212EXEEXT=$ac_cv_exeext
    17772213ac_exeext=$EXEEXT
    1778 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    1779 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     2214{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2215echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
    17802216if test "${ac_cv_objext+set}" = set; then
    17812217  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    17972233_ACEOF
    17982234rm -f conftest.o conftest.obj
    1799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1800   (eval $ac_compile) 2>&5
     2235if { (ac_try="$ac_compile"
     2236case "(($ac_try" in
     2237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2238  *) ac_try_echo=$ac_try;;
     2239esac
     2240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2241  (eval "$ac_compile") 2>&5
    18012242  ac_status=$?
    18022243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18032244  (exit $ac_status); }; then
    1804   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     2245  for ac_file in conftest.o conftest.obj conftest.*; do
     2246  test -f "$ac_file" || continue;
    18052247  case $ac_file in
    1806     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     2248    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
    18072249    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    18082250       break;;
    … …  
    18222264rm -f conftest.$ac_cv_objext conftest.$ac_ext
    18232265fi
    1824 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    1825 echo "${ECHO_T}$ac_cv_objext" >&6
     2266{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     2267echo "${ECHO_T}$ac_cv_objext" >&6; }
    18262268OBJEXT=$ac_cv_objext
    18272269ac_objext=$OBJEXT
    1828 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    1829 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     2270{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2271echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
    18302272if test "${ac_cv_c_compiler_gnu+set}" = set; then
    18312273  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    18502292_ACEOF
    18512293rm -f conftest.$ac_objext
    1852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1853   (eval $ac_compile) 2>conftest.er1
     2294if { (ac_try="$ac_compile"
     2295case "(($ac_try" in
     2296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2297  *) ac_try_echo=$ac_try;;
     2298esac
     2299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2300  (eval "$ac_compile") 2>conftest.er1
    18542301  ac_status=$?
    18552302  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    18572304  cat conftest.err >&5
    18582305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1859   (exit $ac_status); } &&
    1860          { ac_try='test -z "$ac_c_werror_flag"
    1861                          || test ! -s conftest.err'
    1862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1863   (eval $ac_try) 2>&5
    1864   ac_status=$?
    1865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1866   (exit $ac_status); }; } &&
    1867          { ac_try='test -s conftest.$ac_objext'
    1868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1869   (eval $ac_try) 2>&5
    1870   ac_status=$?
    1871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1872   (exit $ac_status); }; }; then
     2306  (exit $ac_status); } && {
     2307         test -z "$ac_c_werror_flag" ||
     2308         test ! -s conftest.err
     2309       } && test -s conftest.$ac_objext; then
    18732310  ac_compiler_gnu=yes
    18742311else
    … …  
    18762313sed 's/^/| /' conftest.$ac_ext >&5
    18772314
    1878 ac_compiler_gnu=no
    1879 fi
    1880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2315        ac_compiler_gnu=no
     2316fi
     2317
     2318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    18812319ac_cv_c_compiler_gnu=$ac_compiler_gnu
    18822320
    18832321fi
    1884 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    1885 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2322{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2323echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
    18862324GCC=`test $ac_compiler_gnu = yes && echo yes`
    18872325ac_test_CFLAGS=${CFLAGS+set}
    18882326ac_save_CFLAGS=$CFLAGS
    1889 CFLAGS="-g"
    1890 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    1891 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2327{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2328echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
    18922329if test "${ac_cv_prog_cc_g+set}" = set; then
    18932330  echo $ECHO_N "(cached) $ECHO_C" >&6
    18942331else
    1895   cat >conftest.$ac_ext <<_ACEOF
     2332  ac_save_c_werror_flag=$ac_c_werror_flag
     2333   ac_c_werror_flag=yes
     2334   ac_cv_prog_cc_g=no
     2335   CFLAGS="-g"
     2336   cat >conftest.$ac_ext <<_ACEOF
    18962337/* confdefs.h.  */
    18972338_ACEOF
    … …  
    19092350_ACEOF
    19102351rm -f conftest.$ac_objext
    1911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1912   (eval $ac_compile) 2>conftest.er1
     2352if { (ac_try="$ac_compile"
     2353case "(($ac_try" in
     2354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2355  *) ac_try_echo=$ac_try;;
     2356esac
     2357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2358  (eval "$ac_compile") 2>conftest.er1
    19132359  ac_status=$?
    19142360  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    19162362  cat conftest.err >&5
    19172363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1918   (exit $ac_status); } &&
    1919          { ac_try='test -z "$ac_c_werror_flag"
    1920                          || test ! -s conftest.err'
    1921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1922   (eval $ac_try) 2>&5
    1923   ac_status=$?
    1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1925   (exit $ac_status); }; } &&
    1926          { ac_try='test -s conftest.$ac_objext'
    1927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1928   (eval $ac_try) 2>&5
    1929   ac_status=$?
    1930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1931   (exit $ac_status); }; }; then
     2364  (exit $ac_status); } && {
     2365         test -z "$ac_c_werror_flag" ||
     2366         test ! -s conftest.err
     2367       } && test -s conftest.$ac_objext; then
    19322368  ac_cv_prog_cc_g=yes
    19332369else
    … …  
    19352371sed 's/^/| /' conftest.$ac_ext >&5
    19362372
    1937 ac_cv_prog_cc_g=no
    1938 fi
    1939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    1940 fi
    1941 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    1942 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     2373        CFLAGS=""
     2374      cat >conftest.$ac_ext <<_ACEOF
     2375/* confdefs.h.  */
     2376_ACEOF
     2377cat confdefs.h >>conftest.$ac_ext
     2378cat >>conftest.$ac_ext <<_ACEOF
     2379/* end confdefs.h.  */
     2380
     2381int
     2382main ()
     2383{
     2384
     2385  ;
     2386  return 0;
     2387}
     2388_ACEOF
     2389rm -f conftest.$ac_objext
     2390if { (ac_try="$ac_compile"
     2391case "(($ac_try" in
     2392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2393  *) ac_try_echo=$ac_try;;
     2394esac
     2395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2396  (eval "$ac_compile") 2>conftest.er1
     2397  ac_status=$?
     2398  grep -v '^ *+' conftest.er1 >conftest.err
     2399  rm -f conftest.er1
     2400  cat conftest.err >&5
     2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2402  (exit $ac_status); } && {
     2403         test -z "$ac_c_werror_flag" ||
     2404         test ! -s conftest.err
     2405       } && test -s conftest.$ac_objext; then
     2406  :
     2407else
     2408  echo "$as_me: failed program was:" >&5
     2409sed 's/^/| /' conftest.$ac_ext >&5
     2410
     2411        ac_c_werror_flag=$ac_save_c_werror_flag
     2412         CFLAGS="-g"
     2413         cat >conftest.$ac_ext <<_ACEOF
     2414/* confdefs.h.  */
     2415_ACEOF
     2416cat confdefs.h >>conftest.$ac_ext
     2417cat >>conftest.$ac_ext <<_ACEOF
     2418/* end confdefs.h.  */
     2419
     2420int
     2421main ()
     2422{
     2423
     2424  ;
     2425  return 0;
     2426}
     2427_ACEOF
     2428rm -f conftest.$ac_objext
     2429if { (ac_try="$ac_compile"
     2430case "(($ac_try" in
     2431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2432  *) ac_try_echo=$ac_try;;
     2433esac
     2434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2435  (eval "$ac_compile") 2>conftest.er1
     2436  ac_status=$?
     2437  grep -v '^ *+' conftest.er1 >conftest.err
     2438  rm -f conftest.er1
     2439  cat conftest.err >&5
     2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2441  (exit $ac_status); } && {
     2442         test -z "$ac_c_werror_flag" ||
     2443         test ! -s conftest.err
     2444       } && test -s conftest.$ac_objext; then
     2445  ac_cv_prog_cc_g=yes
     2446else
     2447  echo "$as_me: failed program was:" >&5
     2448sed 's/^/| /' conftest.$ac_ext >&5
     2449
     2450
     2451fi
     2452
     2453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2454fi
     2455
     2456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2457fi
     2458
     2459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2460   ac_c_werror_flag=$ac_save_c_werror_flag
     2461fi
     2462{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2463echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
    19432464if test "$ac_test_CFLAGS" = set; then
    19442465  CFLAGS=$ac_save_CFLAGS
    … …  
    19562477  fi
    19572478fi
    1958 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    1959 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    1960 if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2479{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
     2480echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
     2481if test "${ac_cv_prog_cc_c89+set}" = set; then
    19612482  echo $ECHO_N "(cached) $ECHO_C" >&6
    19622483else
    1963   ac_cv_prog_cc_stdc=no
     2484  ac_cv_prog_cc_c89=no
    19642485ac_save_CC=$CC
    19652486cat >conftest.$ac_ext <<_ACEOF
    … …  
    19952516   function prototypes and stuff, but not '\xHH' hex character constants.
    19962517   These don't provoke an error unfortunately, instead are silently treated
    1997    as 'x'.  The following induces an error, until -std1 is added to get
     2518   as 'x'.  The following induces an error, until -std is added to get
    19982519   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    19992520   array size at least.  It's necessary to write '\x00'==0 to get something
    2000    that's true only with -std1.  */
     2521   that's true only with -std.  */
    20012522int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2523
     2524/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     2525   inside strings and character constants.  */
     2526#define FOO(x) 'x'
     2527int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    20022528
    20032529int test (int i, double x);
    … …  
    20152541}
    20162542_ACEOF
    2017 # Don't try gcc -ansi; that turns off useful extensions and
    2018 # breaks some systems' header files.
    2019 # AIX                   -qlanglvl=ansi
    2020 # Ultrix and OSF/1      -std1
    2021 # HP-UX 10.20 and later -Ae
    2022 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2023 # SVR4                  -Xc -D__EXTENSIONS__
    2024 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2543for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     2544        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    20252545do
    20262546  CC="$ac_save_CC $ac_arg"
    20272547  rm -f conftest.$ac_objext
    2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2029   (eval $ac_compile) 2>conftest.er1
     2548if { (ac_try="$ac_compile"
     2549case "(($ac_try" in
     2550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2551  *) ac_try_echo=$ac_try;;
     2552esac
     2553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2554  (eval "$ac_compile") 2>conftest.er1
    20302555  ac_status=$?
    20312556  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    20332558  cat conftest.err >&5
    20342559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2035   (exit $ac_status); } &&
    2036          { ac_try='test -z "$ac_c_werror_flag"
    2037                          || test ! -s conftest.err'
    2038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2039   (eval $ac_try) 2>&5
    2040   ac_status=$?
    2041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2042   (exit $ac_status); }; } &&
    2043          { ac_try='test -s conftest.$ac_objext'
    2044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2045   (eval $ac_try) 2>&5
    2046   ac_status=$?
    2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2048   (exit $ac_status); }; }; then
    2049   ac_cv_prog_cc_stdc=$ac_arg
    2050 break
     2560  (exit $ac_status); } && {
     2561         test -z "$ac_c_werror_flag" ||
     2562         test ! -s conftest.err
     2563       } && test -s conftest.$ac_objext; then
     2564  ac_cv_prog_cc_c89=$ac_arg
    20512565else
    20522566  echo "$as_me: failed program was:" >&5
    20532567sed 's/^/| /' conftest.$ac_ext >&5
    20542568
    2055 fi
    2056 rm -f conftest.err conftest.$ac_objext
     2569
     2570fi
     2571
     2572rm -f core conftest.err conftest.$ac_objext
     2573  test "x$ac_cv_prog_cc_c89" != "xno" && break
    20572574done
    2058 rm -f conftest.$ac_ext conftest.$ac_objext
     2575rm -f conftest.$ac_ext
    20592576CC=$ac_save_CC
    20602577
    20612578fi
    2062 
    2063 case "x$ac_cv_prog_cc_stdc" in
    2064   x|xno)
    2065     echo "$as_me:$LINENO: result: none needed" >&5
    2066 echo "${ECHO_T}none needed" >&6 ;;
     2579# AC_CACHE_VAL
     2580case "x$ac_cv_prog_cc_c89" in
     2581  x)
     2582    { echo "$as_me:$LINENO: result: none needed" >&5
     2583echo "${ECHO_T}none needed" >&6; } ;;
     2584  xno)
     2585    { echo "$as_me:$LINENO: result: unsupported" >&5
     2586echo "${ECHO_T}unsupported" >&6; } ;;
    20672587  *)
    2068     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2069 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2070     CC="$CC $ac_cv_prog_cc_stdc" ;;
    2071 esac
    2072 
    2073 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2074 # in C++ we need to declare it.  In case someone uses the same compiler
    2075 # for both compiling C and C++ we need to have the C++ compiler decide
    2076 # the declaration of exit, since it's the most demanding environment.
     2588    CC="$CC $ac_cv_prog_cc_c89"
     2589    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
     2590echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
     2591esac
     2592
     2593
     2594ac_ext=c
     2595ac_cpp='$CPP $CPPFLAGS'
     2596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2598ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2599
     2600
     2601if test "$GCC" = yes; then
     2602     CFLAGS="$CFLAGS -Wall -g -D_FORTIFY_SOURCE=2";
     2603fi
     2604
     2605{ echo "$as_me:$LINENO: checking for /usr/athena/include" >&5
     2606echo $ECHO_N "checking for /usr/athena/include... $ECHO_C" >&6; }
     2607if test -d /usr/athena/include; then
     2608        CFLAGS=${CFLAGS}\ -I/usr/athena/include
     2609        CPPFLAGS=${CPPFLAGS}\ -I/usr/athena/include
     2610        { echo "$as_me:$LINENO: result: yes" >&5
     2611echo "${ECHO_T}yes" >&6; }
     2612else
     2613        { echo "$as_me:$LINENO: result: no" >&5
     2614echo "${ECHO_T}no" >&6; }
     2615fi
     2616{ echo "$as_me:$LINENO: checking for /usr/athena/lib" >&5
     2617echo $ECHO_N "checking for /usr/athena/lib... $ECHO_C" >&6; }
     2618if test -d /usr/athena/lib; then
     2619        LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS}
     2620        { echo "$as_me:$LINENO: result: yes" >&5
     2621echo "${ECHO_T}yes" >&6; }
     2622else
     2623        { echo "$as_me:$LINENO: result: no" >&5
     2624echo "${ECHO_T}no" >&6; }
     2625fi
     2626
     2627{ echo "$as_me:$LINENO: checking for /usr/include/kerberosIV" >&5
     2628echo $ECHO_N "checking for /usr/include/kerberosIV... $ECHO_C" >&6; }
     2629if test -d /usr/include/kerberosIV; then
     2630        CFLAGS=${CFLAGS}\ -I/usr/include/kerberosIV
     2631        CPPFLAGS=${CPPFLAGS}\ -I/usr/include/kerberosIV
     2632        { echo "$as_me:$LINENO: result: yes" >&5
     2633echo "${ECHO_T}yes" >&6; }
     2634else
     2635        { echo "$as_me:$LINENO: result: no" >&5
     2636echo "${ECHO_T}no" >&6; }
     2637fi
     2638
     2639PROTECT_CFLAGS=${PROTECT_CFLAGS-"-fstack-protector"}
     2640SAVE_CFLAGS=$CFLAGS
     2641CFLAGS="$CFLAGS $PROTECT_CFLAGS"
     2642{ echo "$as_me:$LINENO: checking whether protection cflags work" >&5
     2643echo $ECHO_N "checking whether protection cflags work... $ECHO_C" >&6; }
     2644
    20772645cat >conftest.$ac_ext <<_ACEOF
    2078 #ifndef __cplusplus
    2079   choke me
    2080 #endif
     2646int i;
    20812647_ACEOF
    20822648rm -f conftest.$ac_objext
    2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2084   (eval $ac_compile) 2>conftest.er1
     2649if { (ac_try="$ac_compile"
     2650case "(($ac_try" in
     2651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2652  *) ac_try_echo=$ac_try;;
     2653esac
     2654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2655  (eval "$ac_compile") 2>conftest.er1
    20852656  ac_status=$?
    20862657  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    20882659  cat conftest.err >&5
    20892660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2090   (exit $ac_status); } &&
    2091          { ac_try='test -z "$ac_c_werror_flag"
    2092                          || test ! -s conftest.err'
    2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2094   (eval $ac_try) 2>&5
    2095   ac_status=$?
    2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2097   (exit $ac_status); }; } &&
    2098          { ac_try='test -s conftest.$ac_objext'
    2099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2100   (eval $ac_try) 2>&5
    2101   ac_status=$?
    2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2103   (exit $ac_status); }; }; then
    2104   for ac_declaration in \
    2105    '' \
    2106    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2107    'extern "C" void std::exit (int); using std::exit;' \
    2108    'extern "C" void exit (int) throw ();' \
    2109    'extern "C" void exit (int);' \
    2110    'void exit (int);'
    2111 do
    2112   cat >conftest.$ac_ext <<_ACEOF
     2661  (exit $ac_status); } && {
     2662         test -z "$ac_c_werror_flag" ||
     2663         test ! -s conftest.err
     2664       } && test -s conftest.$ac_objext; then
     2665  { echo "$as_me:$LINENO: result: yes" >&5
     2666echo "${ECHO_T}yes" >&6; }
     2667else
     2668  echo "$as_me: failed program was:" >&5
     2669sed 's/^/| /' conftest.$ac_ext >&5
     2670
     2671        { echo "$as_me:$LINENO: result: no" >&5
     2672echo "${ECHO_T}no" >&6; }
     2673    CFLAGS=$SAVE_CFLAGS
     2674fi
     2675
     2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2677
     2678
     2679{ echo "$as_me:$LINENO: checking for __stack_chk_guard in -lssp" >&5
     2680echo $ECHO_N "checking for __stack_chk_guard in -lssp... $ECHO_C" >&6; }
     2681if test "${ac_cv_lib_ssp___stack_chk_guard+set}" = set; then
     2682  echo $ECHO_N "(cached) $ECHO_C" >&6
     2683else
     2684  ac_check_lib_save_LIBS=$LIBS
     2685LIBS="-lssp  $LIBS"
     2686cat >conftest.$ac_ext <<_ACEOF
    21132687/* confdefs.h.  */
    21142688_ACEOF
    … …  
    21162690cat >>conftest.$ac_ext <<_ACEOF
    21172691/* end confdefs.h.  */
    2118 $ac_declaration
    2119 #include <stdlib.h>
     2692
     2693/* Override any GCC internal prototype to avoid an error.
     2694   Use char because int might match the return type of a GCC
     2695   builtin and then its argument prototype would still apply.  */
     2696#ifdef __cplusplus
     2697extern "C"
     2698#endif
     2699char __stack_chk_guard ();
    21202700int
    21212701main ()
    21222702{
    2123 exit (42);
     2703return __stack_chk_guard ();
    21242704  ;
    21252705  return 0;
    21262706}
    21272707_ACEOF
    2128 rm -f conftest.$ac_objext
    2129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2130   (eval $ac_compile) 2>conftest.er1
     2708rm -f conftest.$ac_objext conftest$ac_exeext
     2709if { (ac_try="$ac_link"
     2710case "(($ac_try" in
     2711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2712  *) ac_try_echo=$ac_try;;
     2713esac
     2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2715  (eval "$ac_link") 2>conftest.er1
    21312716  ac_status=$?
    21322717  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    21342719  cat conftest.err >&5
    21352720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2136   (exit $ac_status); } &&
    2137          { ac_try='test -z "$ac_c_werror_flag"
    2138                          || test ! -s conftest.err'
    2139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2140   (eval $ac_try) 2>&5
    2141   ac_status=$?
    2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2143   (exit $ac_status); }; } &&
    2144          { ac_try='test -s conftest.$ac_objext'
    2145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2146   (eval $ac_try) 2>&5
    2147   ac_status=$?
    2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2149   (exit $ac_status); }; }; then
    2150   :
     2721  (exit $ac_status); } && {
     2722         test -z "$ac_c_werror_flag" ||
     2723         test ! -s conftest.err
     2724       } && test -s conftest$ac_exeext &&
     2725       $as_test_x conftest$ac_exeext; then
     2726  ac_cv_lib_ssp___stack_chk_guard=yes
    21512727else
    21522728  echo "$as_me: failed program was:" >&5
    21532729sed 's/^/| /' conftest.$ac_ext >&5
    21542730
    2155 continue
    2156 fi
    2157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2158   cat >conftest.$ac_ext <<_ACEOF
     2731        ac_cv_lib_ssp___stack_chk_guard=no
     2732fi
     2733
     2734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     2735      conftest$ac_exeext conftest.$ac_ext
     2736LIBS=$ac_check_lib_save_LIBS
     2737fi
     2738{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssp___stack_chk_guard" >&5
     2739echo "${ECHO_T}$ac_cv_lib_ssp___stack_chk_guard" >&6; }
     2740if test $ac_cv_lib_ssp___stack_chk_guard = yes; then
     2741  cat >>confdefs.h <<_ACEOF
     2742#define HAVE_LIBSSP 1
     2743_ACEOF
     2744
     2745  LIBS="-lssp $LIBS"
     2746
     2747fi
     2748
     2749
     2750{ echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
     2751echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
     2752if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
     2753  echo $ECHO_N "(cached) $ECHO_C" >&6
     2754else
     2755  ac_check_lib_save_LIBS=$LIBS
     2756LIBS="-lncurses  $LIBS"
     2757cat >conftest.$ac_ext <<_ACEOF
    21592758/* confdefs.h.  */
    21602759_ACEOF
    … …  
    21622761cat >>conftest.$ac_ext <<_ACEOF
    21632762/* end confdefs.h.  */
    2164 $ac_declaration
     2763
     2764/* Override any GCC internal prototype to avoid an error.
     2765   Use char because int might match the return type of a GCC
     2766   builtin and then its argument prototype would still apply.  */
     2767#ifdef __cplusplus
     2768extern "C"
     2769#endif
     2770char initscr ();
    21652771int
    21662772main ()
    21672773{
    2168 exit (42);
     2774return initscr ();
    21692775  ;
    21702776  return 0;
    21712777}
    21722778_ACEOF
    2173 rm -f conftest.$ac_objext
    2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2175   (eval $ac_compile) 2>conftest.er1
     2779rm -f conftest.$ac_objext conftest$ac_exeext
     2780if { (ac_try="$ac_link"
     2781case "(($ac_try" in
     2782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2783  *) ac_try_echo=$ac_try;;
     2784esac
     2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2786  (eval "$ac_link") 2>conftest.er1
    21762787  ac_status=$?
    21772788  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    21792790  cat conftest.err >&5
    21802791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2181   (exit $ac_status); } &&
    2182          { ac_try='test -z "$ac_c_werror_flag"
    2183                          || test ! -s conftest.err'
    2184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2185   (eval $ac_try) 2>&5
    2186   ac_status=$?
    2187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2188   (exit $ac_status); }; } &&
    2189          { ac_try='test -s conftest.$ac_objext'
    2190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2191   (eval $ac_try) 2>&5
    2192   ac_status=$?
    2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2194   (exit $ac_status); }; }; then
    2195   break
     2792  (exit $ac_status); } && {
     2793         test -z "$ac_c_werror_flag" ||
     2794         test ! -s conftest.err
     2795       } && test -s conftest$ac_exeext &&
     2796       $as_test_x conftest$ac_exeext; then
     2797  ac_cv_lib_ncurses_initscr=yes
    21962798else
    21972799  echo "$as_me: failed program was:" >&5
    21982800sed 's/^/| /' conftest.$ac_ext >&5
    21992801
    2200 fi
    2201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2202 done
    2203 rm -f conftest*
    2204 if test -n "$ac_declaration"; then
    2205   echo '#ifdef __cplusplus' >>confdefs.h
    2206   echo $ac_declaration      >>confdefs.h
    2207   echo '#endif'             >>confdefs.h
    2208 fi
    2209 
    2210 else
    2211   echo "$as_me: failed program was:" >&5
    2212 sed 's/^/| /' conftest.$ac_ext >&5
    2213 
    2214 fi
    2215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2216 ac_ext=c
    2217 ac_cpp='$CPP $CPPFLAGS'
    2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2221 
    2222 
    2223 if test "$GCC" = yes; then
    2224      CFLAGS="$CFLAGS -Wall -g";
    2225 fi
    2226 
    2227 
    2228 echo "$as_me:$LINENO: checking for /usr/athena/include" >&5
    2229 echo $ECHO_N "checking for /usr/athena/include... $ECHO_C" >&6
    2230 if test -d /usr/athena/include; then
    2231         CFLAGS=${CFLAGS}\ -I/usr/athena/include
    2232         CPPFLAGS=${CPPFLAGS}\ -I/usr/athena/include
    2233         echo "$as_me:$LINENO: result: yes" >&5
    2234 echo "${ECHO_T}yes" >&6
    2235 else
    2236         echo "$as_me:$LINENO: result: no" >&5
    2237 echo "${ECHO_T}no" >&6
    2238 fi
    2239 echo "$as_me:$LINENO: checking for /usr/athena/lib" >&5
    2240 echo $ECHO_N "checking for /usr/athena/lib... $ECHO_C" >&6
    2241 if test -d /usr/athena/lib; then
    2242         LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS}
    2243         echo "$as_me:$LINENO: result: yes" >&5
    2244 echo "${ECHO_T}yes" >&6
    2245 else
    2246         echo "$as_me:$LINENO: result: no" >&5
    2247 echo "${ECHO_T}no" >&6
    2248 fi
    2249 
    2250 echo "$as_me:$LINENO: checking for /usr/include/kerberosIV" >&5
    2251 echo $ECHO_N "checking for /usr/include/kerberosIV... $ECHO_C" >&6
    2252 if test -d /usr/include/kerberosIV; then
    2253         CFLAGS=${CFLAGS}\ -I/usr/include/kerberosIV
    2254         CPPFLAGS=${CPPFLAGS}\ -I/usr/include/kerberosIV
    2255         echo "$as_me:$LINENO: result: yes" >&5
    2256 echo "${ECHO_T}yes" >&6
    2257 else
    2258         echo "$as_me:$LINENO: result: no" >&5
    2259 echo "${ECHO_T}no" >&6
    2260 fi
    2261 
    2262 
    2263 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
    2264 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
    2265 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
     2802        ac_cv_lib_ncurses_initscr=no
     2803fi
     2804
     2805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     2806      conftest$ac_exeext conftest.$ac_ext
     2807LIBS=$ac_check_lib_save_LIBS
     2808fi
     2809{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
     2810echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
     2811if test $ac_cv_lib_ncurses_initscr = yes; then
     2812  cat >>confdefs.h <<_ACEOF
     2813#define HAVE_LIBNCURSES 1
     2814_ACEOF
     2815
     2816  LIBS="-lncurses $LIBS"
     2817
     2818else
     2819
     2820{ echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
     2821echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
     2822if test "${ac_cv_lib_curses_initscr+set}" = set; then
    22662823  echo $ECHO_N "(cached) $ECHO_C" >&6
    22672824else
    22682825  ac_check_lib_save_LIBS=$LIBS
    2269 LIBS="-lncurses  $LIBS"
     2826LIBS="-lcurses  $LIBS"
    22702827cat >conftest.$ac_ext <<_ACEOF
    22712828/* confdefs.h.  */
    … …  
    22752832/* end confdefs.h.  */
    22762833
    2277 /* Override any gcc2 internal prototype to avoid an error.  */
     2834/* Override any GCC internal prototype to avoid an error.
     2835   Use char because int might match the return type of a GCC
     2836   builtin and then its argument prototype would still apply.  */
    22782837#ifdef __cplusplus
    22792838extern "C"
    22802839#endif
    2281 /* We use char because int might match the return type of a gcc2
    2282    builtin and then its argument prototype would still apply.  */
    22832840char initscr ();
    22842841int
    22852842main ()
    22862843{
    2287 initscr ();
     2844return initscr ();
    22882845  ;
    22892846  return 0;
    … …  
    22912848_ACEOF
    22922849rm -f conftest.$ac_objext conftest$ac_exeext
    2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2294   (eval $ac_link) 2>conftest.er1
     2850if { (ac_try="$ac_link"
     2851case "(($ac_try" in
     2852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2853  *) ac_try_echo=$ac_try;;
     2854esac
     2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2856  (eval "$ac_link") 2>conftest.er1
    22952857  ac_status=$?
    22962858  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    22982860  cat conftest.err >&5
    22992861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2300   (exit $ac_status); } &&
    2301          { ac_try='test -z "$ac_c_werror_flag"
    2302                          || test ! -s conftest.err'
    2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2304   (eval $ac_try) 2>&5
    2305   ac_status=$?
    2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2307   (exit $ac_status); }; } &&
    2308          { ac_try='test -s conftest$ac_exeext'
    2309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2310   (eval $ac_try) 2>&5
    2311   ac_status=$?
    2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2313   (exit $ac_status); }; }; then
    2314   ac_cv_lib_ncurses_initscr=yes
     2862  (exit $ac_status); } && {
     2863         test -z "$ac_c_werror_flag" ||
     2864         test ! -s conftest.err
     2865       } && test -s conftest$ac_exeext &&
     2866       $as_test_x conftest$ac_exeext; then
     2867  ac_cv_lib_curses_initscr=yes
    23152868else
    23162869  echo "$as_me: failed program was:" >&5
    23172870sed 's/^/| /' conftest.$ac_ext >&5
    23182871
    2319 ac_cv_lib_ncurses_initscr=no
    2320 fi
    2321 rm -f conftest.err conftest.$ac_objext \
     2872        ac_cv_lib_curses_initscr=no
     2873fi
     2874
     2875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    23222876      conftest$ac_exeext conftest.$ac_ext
    23232877LIBS=$ac_check_lib_save_LIBS
    23242878fi
    2325 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
    2326 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
    2327 if test $ac_cv_lib_ncurses_initscr = yes; then
     2879{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
     2880echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
     2881if test $ac_cv_lib_curses_initscr = yes; then
    23282882  cat >>confdefs.h <<_ACEOF
    2329 #define HAVE_LIBNCURSES 1
    2330 _ACEOF
    2331 
    2332   LIBS="-lncurses $LIBS"
    2333 
    2334 else
    2335 
    2336 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
    2337 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
    2338 if test "${ac_cv_lib_curses_initscr+set}" = set; then
     2883#define HAVE_LIBCURSES 1
     2884_ACEOF
     2885
     2886  LIBS="-lcurses $LIBS"
     2887
     2888else
     2889  { { echo "$as_me:$LINENO: error: No curses library found." >&5
     2890echo "$as_me: error: No curses library found." >&2;}
     2891   { (exit 1); exit 1; }; }
     2892fi
     2893
     2894fi
     2895
     2896
     2897{ echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
     2898echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
     2899if test "${ac_cv_lib_com_err_com_err+set}" = set; then
    23392900  echo $ECHO_N "(cached) $ECHO_C" >&6
    23402901else
    23412902  ac_check_lib_save_LIBS=$LIBS
    2342 LIBS="-lcurses  $LIBS"
    2343 
     2903LIBS="-lcom_err  $LIBS"
    23442904cat >conftest.$ac_ext <<_ACEOF
    23452905/* confdefs.h.  */
    … …  
    23492909/* end confdefs.h.  */
    23502910
    2351 /* Override any gcc2 internal prototype to avoid an error.  */
     2911/* Override any GCC internal prototype to avoid an error.
     2912   Use char because int might match the return type of a GCC
     2913   builtin and then its argument prototype would still apply.  */
    23522914#ifdef __cplusplus
    23532915extern "C"
    23542916#endif
    2355 /* We use char because int might match the return type of a gcc2
    2356    builtin and then its argument prototype would still apply.  */
    2357 char initscr ();
     2917char com_err ();
    23582918int
    23592919main ()
    23602920{
    2361 initscr ();
     2921return com_err ();
    23622922  ;
    23632923  return 0;
    … …  
    23652925_ACEOF
    23662926rm -f conftest.$ac_objext conftest$ac_exeext
    2367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2368   (eval $ac_link) 2>conftest.er1
     2927if { (ac_try="$ac_link"
     2928case "(($ac_try" in
     2929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2930  *) ac_try_echo=$ac_try;;
     2931esac
     2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2933  (eval "$ac_link") 2>conftest.er1
    23692934  ac_status=$?
    23702935  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    23722937  cat conftest.err >&5
    23732938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2374   (exit $ac_status); } &&
    2375          { ac_try='test -z "$ac_c_werror_flag"
    2376                          || test ! -s conftest.err'
    2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2378   (eval $ac_try) 2>&5
    2379   ac_status=$?
    2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2381   (exit $ac_status); }; } &&
    2382          { ac_try='test -s conftest$ac_exeext'
    2383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2384   (eval $ac_try) 2>&5
    2385   ac_status=$?
    2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2387   (exit $ac_status); }; }; then
    2388   ac_cv_lib_curses_initscr=yes
     2939  (exit $ac_status); } && {
     2940         test -z "$ac_c_werror_flag" ||
     2941         test ! -s conftest.err
     2942       } && test -s conftest$ac_exeext &&
     2943       $as_test_x conftest$ac_exeext; then
     2944  ac_cv_lib_com_err_com_err=yes
    23892945else
    23902946  echo "$as_me: failed program was:" >&5
    23912947sed 's/^/| /' conftest.$ac_ext >&5
    23922948
    2393 ac_cv_lib_curses_initscr=no
    2394 fi
    2395 rm -f conftest.err conftest.$ac_objext \
     2949        ac_cv_lib_com_err_com_err=no
     2950fi
     2951
     2952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    23962953      conftest$ac_exeext conftest.$ac_ext
    23972954LIBS=$ac_check_lib_save_LIBS
    23982955fi
    2399 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
    2400 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
    2401 if test $ac_cv_lib_curses_initscr = yes; then
     2956{ echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
     2957echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
     2958if test $ac_cv_lib_com_err_com_err = yes; then
    24022959  cat >>confdefs.h <<_ACEOF
    2403 #define HAVE_LIBCURSES 1
    2404 _ACEOF
    2405 
    2406   LIBS="-lcurses $LIBS"
    2407 
    2408 else
    2409   { { echo "$as_me:$LINENO: error: No curses library found." >&5
    2410 echo "$as_me: error: No curses library found." >&2;}
    2411    { (exit 1); exit 1; }; }
    2412 fi
    2413 
    2414 fi
    2415 
    2416 
    2417 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
    2418 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
    2419 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
     2960#define HAVE_LIBCOM_ERR 1
     2961_ACEOF
     2962
     2963  LIBS="-lcom_err $LIBS"
     2964
     2965fi
     2966
     2967
     2968{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
     2969echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
     2970if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
    24202971  echo $ECHO_N "(cached) $ECHO_C" >&6
    24212972else
    24222973  ac_check_lib_save_LIBS=$LIBS
    2423 LIBS="-lcom_err  $LIBS"
     2974LIBS="-lnsl  $LIBS"
    24242975cat >conftest.$ac_ext <<_ACEOF
    24252976/* confdefs.h.  */
    … …  
    24292980/* end confdefs.h.  */
    24302981
    2431 /* Override any gcc2 internal prototype to avoid an error.  */
     2982/* Override any GCC internal prototype to avoid an error.
     2983   Use char because int might match the return type of a GCC
     2984   builtin and then its argument prototype would still apply.  */
    24322985#ifdef __cplusplus
    24332986extern "C"
    24342987#endif
    2435 /* We use char because int might match the return type of a gcc2
    2436    builtin and then its argument prototype would still apply.  */
    2437 char com_err ();
     2988char gethostbyname ();
    24382989int
    24392990main ()
    24402991{
    2441 com_err ();
     2992return gethostbyname ();
    24422993  ;
    24432994  return 0;
    … …  
    24452996_ACEOF
    24462997rm -f conftest.$ac_objext conftest$ac_exeext
    2447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2448   (eval $ac_link) 2>conftest.er1
     2998if { (ac_try="$ac_link"
     2999case "(($ac_try" in
     3000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3001  *) ac_try_echo=$ac_try;;
     3002esac
     3003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3004  (eval "$ac_link") 2>conftest.er1
    24493005  ac_status=$?
    24503006  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    24523008  cat conftest.err >&5
    24533009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2454   (exit $ac_status); } &&
    2455          { ac_try='test -z "$ac_c_werror_flag"
    2456                          || test ! -s conftest.err'
    2457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2458   (eval $ac_try) 2>&5
    2459   ac_status=$?
    2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2461   (exit $ac_status); }; } &&
    2462          { ac_try='test -s conftest$ac_exeext'
    2463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2464   (eval $ac_try) 2>&5
    2465   ac_status=$?
    2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2467   (exit $ac_status); }; }; then
    2468   ac_cv_lib_com_err_com_err=yes
     3010  (exit $ac_status); } && {
     3011         test -z "$ac_c_werror_flag" ||
     3012         test ! -s conftest.err
     3013       } && test -s conftest$ac_exeext &&
     3014       $as_test_x conftest$ac_exeext; then
     3015  ac_cv_lib_nsl_gethostbyname=yes
    24693016else
    24703017  echo "$as_me: failed program was:" >&5
    24713018sed 's/^/| /' conftest.$ac_ext >&5
    24723019
    2473 ac_cv_lib_com_err_com_err=no
    2474 fi
    2475 rm -f conftest.err conftest.$ac_objext \
     3020        ac_cv_lib_nsl_gethostbyname=no
     3021fi
     3022
     3023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    24763024      conftest$ac_exeext conftest.$ac_ext
    24773025LIBS=$ac_check_lib_save_LIBS
    24783026fi
    2479 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
    2480 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
    2481 if test $ac_cv_lib_com_err_com_err = yes; then
     3027{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
     3028echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
     3029if test $ac_cv_lib_nsl_gethostbyname = yes; then
    24823030  cat >>confdefs.h <<_ACEOF
    2483 #define HAVE_LIBCOM_ERR 1
    2484 _ACEOF
    2485 
    2486   LIBS="-lcom_err $LIBS"
    2487 
    2488 fi
    2489 
    2490 
    2491 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
    2492 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
    2493 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
     3031#define HAVE_LIBNSL 1
     3032_ACEOF
     3033
     3034  LIBS="-lnsl $LIBS"
     3035
     3036fi
     3037
     3038
     3039{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
     3040echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
     3041if test "${ac_cv_lib_socket_socket+set}" = set; then
    24943042  echo $ECHO_N "(cached) $ECHO_C" >&6
    24953043else
    24963044  ac_check_lib_save_LIBS=$LIBS
    2497 LIBS="-lnsl  $LIBS"
     3045LIBS="-lsocket  $LIBS"
    24983046cat >conftest.$ac_ext <<_ACEOF
    24993047/* confdefs.h.  */
    … …  
    25033051/* end confdefs.h.  */
    25043052
    2505 /* Override any gcc2 internal prototype to avoid an error.  */
     3053/* Override any GCC internal prototype to avoid an error.
     3054   Use char because int might match the return type of a GCC
     3055   builtin and then its argument prototype would still apply.  */
    25063056#ifdef __cplusplus
    25073057extern "C"
    25083058#endif
    2509 /* We use char because int might match the return type of a gcc2
    2510    builtin and then its argument prototype would still apply.  */
    2511 char gethostbyname ();
     3059char socket ();
    25123060int
    25133061main ()
    25143062{
    2515 gethostbyname ();
     3063return socket ();
    25163064  ;
    25173065  return 0;
    … …  
    25193067_ACEOF
    25203068rm -f conftest.$ac_objext conftest$ac_exeext
    2521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2522   (eval $ac_link) 2>conftest.er1
     3069if { (ac_try="$ac_link"
     3070case "(($ac_try" in
     3071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3072  *) ac_try_echo=$ac_try;;
     3073esac
     3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3075  (eval "$ac_link") 2>conftest.er1
    25233076  ac_status=$?
    25243077  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    25263079  cat conftest.err >&5
    25273080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2528   (exit $ac_status); } &&
    2529          { ac_try='test -z "$ac_c_werror_flag"
    2530                          || test ! -s conftest.err'
    2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2532   (eval $ac_try) 2>&5
    2533   ac_status=$?
    2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2535   (exit $ac_status); }; } &&
    2536          { ac_try='test -s conftest$ac_exeext'
    2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2538   (eval $ac_try) 2>&5
    2539   ac_status=$?
    2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2541   (exit $ac_status); }; }; then
    2542   ac_cv_lib_nsl_gethostbyname=yes
     3081  (exit $ac_status); } && {
     3082         test -z "$ac_c_werror_flag" ||
     3083         test ! -s conftest.err
     3084       } && test -s conftest$ac_exeext &&
     3085       $as_test_x conftest$ac_exeext; then
     3086  ac_cv_lib_socket_socket=yes
    25433087else
    25443088  echo "$as_me: failed program was:" >&5
    25453089sed 's/^/| /' conftest.$ac_ext >&5
    25463090
    2547 ac_cv_lib_nsl_gethostbyname=no
    2548 fi
    2549 rm -f conftest.err conftest.$ac_objext \
     3091        ac_cv_lib_socket_socket=no
     3092fi
     3093
     3094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    25503095      conftest$ac_exeext conftest.$ac_ext
    25513096LIBS=$ac_check_lib_save_LIBS
    25523097fi
    2553 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
    2554 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
    2555 if test $ac_cv_lib_nsl_gethostbyname = yes; then
     3098{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
     3099echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
     3100if test $ac_cv_lib_socket_socket = yes; then
    25563101  cat >>confdefs.h <<_ACEOF
    2557 #define HAVE_LIBNSL 1
    2558 _ACEOF
    2559 
    2560   LIBS="-lnsl $LIBS"
    2561 
    2562 fi
    2563 
    2564 
    2565 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
    2566 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
    2567 if test "${ac_cv_lib_socket_socket+set}" = set; then
     3102#define HAVE_LIBSOCKET 1
     3103_ACEOF
     3104
     3105  LIBS="-lsocket $LIBS"
     3106
     3107fi
     3108
     3109
     3110{ echo "$as_me:$LINENO: checking for krb5_derive_key in -lk5crypto" >&5
     3111echo $ECHO_N "checking for krb5_derive_key in -lk5crypto... $ECHO_C" >&6; }
     3112if test "${ac_cv_lib_k5crypto_krb5_derive_key+set}" = set; then
    25683113  echo $ECHO_N "(cached) $ECHO_C" >&6
    25693114else
    25703115  ac_check_lib_save_LIBS=$LIBS
    2571 LIBS="-lsocket  $LIBS"
     3116LIBS="-lk5crypto  $LIBS"
    25723117cat >conftest.$ac_ext <<_ACEOF
    25733118/* confdefs.h.  */
    … …  
    25773122/* end confdefs.h.  */
    25783123
    2579 /* Override any gcc2 internal prototype to avoid an error.  */
     3124/* Override any GCC internal prototype to avoid an error.
     3125   Use char because int might match the return type of a GCC
     3126   builtin and then its argument prototype would still apply.  */
    25803127#ifdef __cplusplus
    25813128extern "C"
    25823129#endif
    2583 /* We use char because int might match the return type of a gcc2
    2584    builtin and then its argument prototype would still apply.  */
    2585 char socket ();
     3130char krb5_derive_key ();
    25863131int
    25873132main ()
    25883133{
    2589 socket ();
     3134return krb5_derive_key ();
    25903135  ;
    25913136  return 0;
    … …  
    25933138_ACEOF
    25943139rm -f conftest.$ac_objext conftest$ac_exeext
    2595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2596   (eval $ac_link) 2>conftest.er1
     3140if { (ac_try="$ac_link"
     3141case "(($ac_try" in
     3142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3143  *) ac_try_echo=$ac_try;;
     3144esac
     3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3146  (eval "$ac_link") 2>conftest.er1
    25973147  ac_status=$?
    25983148  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    26003150  cat conftest.err >&5
    26013151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2602   (exit $ac_status); } &&
    2603          { ac_try='test -z "$ac_c_werror_flag"
    2604                          || test ! -s conftest.err'
    2605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2606   (eval $ac_try) 2>&5
    2607   ac_status=$?
    2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2609   (exit $ac_status); }; } &&
    2610          { ac_try='test -s conftest$ac_exeext'
    2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2612   (eval $ac_try) 2>&5
    2613   ac_status=$?
    2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2615   (exit $ac_status); }; }; then
    2616   ac_cv_lib_socket_socket=yes
     3152  (exit $ac_status); } && {
     3153         test -z "$ac_c_werror_flag" ||
     3154         test ! -s conftest.err
     3155       } && test -s conftest$ac_exeext &&
     3156       $as_test_x conftest$ac_exeext; then
     3157  ac_cv_lib_k5crypto_krb5_derive_key=yes
    26173158else
    26183159  echo "$as_me: failed program was:" >&5
    26193160sed 's/^/| /' conftest.$ac_ext >&5
    26203161
    2621 ac_cv_lib_socket_socket=no
    2622 fi
    2623 rm -f conftest.err conftest.$ac_objext \
     3162        ac_cv_lib_k5crypto_krb5_derive_key=no
     3163fi
     3164
     3165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    26243166      conftest$ac_exeext conftest.$ac_ext
    26253167LIBS=$ac_check_lib_save_LIBS
    26263168fi
    2627 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
    2628 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
    2629 if test $ac_cv_lib_socket_socket = yes; then
     3169{ echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_derive_key" >&5
     3170echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_derive_key" >&6; }
     3171if test $ac_cv_lib_k5crypto_krb5_derive_key = yes; then
    26303172  cat >>confdefs.h <<_ACEOF
    2631 #define HAVE_LIBSOCKET 1
    2632 _ACEOF
    2633 
    2634   LIBS="-lsocket $LIBS"
    2635 
    2636 fi
    2637 
    2638 
    2639 echo "$as_me:$LINENO: checking for krb5_derive_key in -lk5crypto" >&5
    2640 echo $ECHO_N "checking for krb5_derive_key in -lk5crypto... $ECHO_C" >&6
    2641 if test "${ac_cv_lib_k5crypto_krb5_derive_key+set}" = set; then
     3173#define HAVE_LIBK5CRYPTO 1
     3174_ACEOF
     3175
     3176  LIBS="-lk5crypto $LIBS"
     3177
     3178fi
     3179
     3180
     3181{ echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
     3182echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
     3183if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
    26423184  echo $ECHO_N "(cached) $ECHO_C" >&6
    26433185else
    26443186  ac_check_lib_save_LIBS=$LIBS
    2645 LIBS="-lk5crypto  $LIBS"
     3187LIBS="-ldes425  $LIBS"
    26463188cat >conftest.$ac_ext <<_ACEOF
    26473189/* confdefs.h.  */
    … …  
    26513193/* end confdefs.h.  */
    26523194
    2653 /* Override any gcc2 internal prototype to avoid an error.  */
     3195/* Override any GCC internal prototype to avoid an error.
     3196   Use char because int might match the return type of a GCC
     3197   builtin and then its argument prototype would still apply.  */
    26543198#ifdef __cplusplus
    26553199extern "C"
    26563200#endif
    2657 /* We use char because int might match the return type of a gcc2
    2658    builtin and then its argument prototype would still apply.  */
    2659 char krb5_derive_key ();
     3201char des_cbc_encrypt ();
    26603202int
    26613203main ()
    26623204{
    2663 krb5_derive_key ();
     3205return des_cbc_encrypt ();
    26643206  ;
    26653207  return 0;
    … …  
    26673209_ACEOF
    26683210rm -f conftest.$ac_objext conftest$ac_exeext
    2669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2670   (eval $ac_link) 2>conftest.er1
     3211if { (ac_try="$ac_link"
     3212case "(($ac_try" in
     3213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3214  *) ac_try_echo=$ac_try;;
     3215esac
     3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3217  (eval "$ac_link") 2>conftest.er1
    26713218  ac_status=$?
    26723219  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    26743221  cat conftest.err >&5
    26753222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2676   (exit $ac_status); } &&
    2677          { ac_try='test -z "$ac_c_werror_flag"
    2678                          || test ! -s conftest.err'
    2679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2680   (eval $ac_try) 2>&5
    2681   ac_status=$?
    2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2683   (exit $ac_status); }; } &&
    2684          { ac_try='test -s conftest$ac_exeext'
    2685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2686   (eval $ac_try) 2>&5
    2687   ac_status=$?
    2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2689   (exit $ac_status); }; }; then
    2690   ac_cv_lib_k5crypto_krb5_derive_key=yes
     3223  (exit $ac_status); } && {
     3224         test -z "$ac_c_werror_flag" ||
     3225         test ! -s conftest.err
     3226       } && test -s conftest$ac_exeext &&
     3227       $as_test_x conftest$ac_exeext; then
     3228  ac_cv_lib_des425_des_cbc_encrypt=yes
    26913229else
    26923230  echo "$as_me: failed program was:" >&5
    26933231sed 's/^/| /' conftest.$ac_ext >&5
    26943232
    2695 ac_cv_lib_k5crypto_krb5_derive_key=no
    2696 fi
    2697 rm -f conftest.err conftest.$ac_objext \
     3233        ac_cv_lib_des425_des_cbc_encrypt=no
     3234fi
     3235
     3236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    26983237      conftest$ac_exeext conftest.$ac_ext
    26993238LIBS=$ac_check_lib_save_LIBS
    27003239fi
    2701 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_derive_key" >&5
    2702 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_derive_key" >&6
    2703 if test $ac_cv_lib_k5crypto_krb5_derive_key = yes; then
     3240{ echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
     3241echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
     3242if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
    27043243  cat >>confdefs.h <<_ACEOF
    2705 #define HAVE_LIBK5CRYPTO 1
    2706 _ACEOF
    2707 
    2708   LIBS="-lk5crypto $LIBS"
    2709 
    2710 fi
    2711 
    2712 
    2713 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
    2714 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
    2715 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
     3244#define HAVE_LIBDES425 1
     3245_ACEOF
     3246
     3247  LIBS="-ldes425 $LIBS"
     3248
     3249fi
     3250
     3251
     3252{ echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
     3253echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
     3254if test "${ac_cv_lib_resolv_res_search+set}" = set; then
    27163255  echo $ECHO_N "(cached) $ECHO_C" >&6
    27173256else
    27183257  ac_check_lib_save_LIBS=$LIBS
    2719 LIBS="-ldes425  $LIBS"
     3258LIBS="-lresolv  $LIBS"
    27203259cat >conftest.$ac_ext <<_ACEOF
    27213260/* confdefs.h.  */
    … …  
    27253264/* end confdefs.h.  */
    27263265
    2727 /* Override any gcc2 internal prototype to avoid an error.  */
     3266/* Override any GCC internal prototype to avoid an error.
     3267   Use char because int might match the return type of a GCC
     3268   builtin and then its argument prototype would still apply.  */
    27283269#ifdef __cplusplus
    27293270extern "C"
    27303271#endif
    2731 /* We use char because int might match the return type of a gcc2
    2732    builtin and then its argument prototype would still apply.  */
    2733 char des_cbc_encrypt ();
     3272char res_search ();
    27343273int
    27353274main ()
    27363275{
    2737 des_cbc_encrypt ();
     3276return res_search ();
    27383277  ;
    27393278  return 0;
    … …  
    27413280_ACEOF
    27423281rm -f conftest.$ac_objext conftest$ac_exeext
    2743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2744   (eval $ac_link) 2>conftest.er1
     3282if { (ac_try="$ac_link"
     3283case "(($ac_try" in
     3284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3285  *) ac_try_echo=$ac_try;;
     3286esac
     3287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3288  (eval "$ac_link") 2>conftest.er1
    27453289  ac_status=$?
    27463290  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    27483292  cat conftest.err >&5
    27493293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2750   (exit $ac_status); } &&
    2751          { ac_try='test -z "$ac_c_werror_flag"
    2752                          || test ! -s conftest.err'
    2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2754   (eval $ac_try) 2>&5
    2755   ac_status=$?
    2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2757   (exit $ac_status); }; } &&
    2758          { ac_try='test -s conftest$ac_exeext'
    2759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2760   (eval $ac_try) 2>&5
    2761   ac_status=$?
    2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2763   (exit $ac_status); }; }; then
    2764   ac_cv_lib_des425_des_cbc_encrypt=yes
     3294  (exit $ac_status); } && {
     3295         test -z "$ac_c_werror_flag" ||
     3296         test ! -s conftest.err
     3297       } && test -s conftest$ac_exeext &&
     3298       $as_test_x conftest$ac_exeext; then
     3299  ac_cv_lib_resolv_res_search=yes
    27653300else
    27663301  echo "$as_me: failed program was:" >&5
    27673302sed 's/^/| /' conftest.$ac_ext >&5
    27683303
    2769 ac_cv_lib_des425_des_cbc_encrypt=no
    2770 fi
    2771 rm -f conftest.err conftest.$ac_objext \
     3304        ac_cv_lib_resolv_res_search=no
     3305fi
     3306
     3307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    27723308      conftest$ac_exeext conftest.$ac_ext
    27733309LIBS=$ac_check_lib_save_LIBS
    27743310fi
    2775 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
    2776 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
    2777 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
     3311{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
     3312echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
     3313if test $ac_cv_lib_resolv_res_search = yes; then
    27783314  cat >>confdefs.h <<_ACEOF
    2779 #define HAVE_LIBDES425 1
    2780 _ACEOF
    2781 
    2782   LIBS="-ldes425 $LIBS"
    2783 
    2784 fi
    2785 
    2786 
    2787 echo "$as_me:$LINENO: checking for des_quad_cksum in -ldes" >&5
    2788 echo $ECHO_N "checking for des_quad_cksum in -ldes... $ECHO_C" >&6
    2789 if test "${ac_cv_lib_des_des_quad_cksum+set}" = set; then
     3315#define HAVE_LIBRESOLV 1
     3316_ACEOF
     3317
     3318  LIBS="-lresolv $LIBS"
     3319
     3320fi
     3321
     3322
     3323{ echo "$as_me:$LINENO: checking for krb5_get_credentials in -lkrb5" >&5
     3324echo $ECHO_N "checking for krb5_get_credentials in -lkrb5... $ECHO_C" >&6; }
     3325if test "${ac_cv_lib_krb5_krb5_get_credentials+set}" = set; then
    27903326  echo $ECHO_N "(cached) $ECHO_C" >&6
    27913327else
    27923328  ac_check_lib_save_LIBS=$LIBS
    2793 LIBS="-ldes  $LIBS"
     3329LIBS="-lkrb5  $LIBS"
    27943330cat >conftest.$ac_ext <<_ACEOF
    27953331/* confdefs.h.  */
    … …  
    27993335/* end confdefs.h.  */
    28003336
    2801 /* Override any gcc2 internal prototype to avoid an error.  */
     3337/* Override any GCC internal prototype to avoid an error.
     3338   Use char because int might match the return type of a GCC
     3339   builtin and then its argument prototype would still apply.  */
    28023340#ifdef __cplusplus
    28033341extern "C"
    28043342#endif
    2805 /* We use char because int might match the return type of a gcc2
    2806    builtin and then its argument prototype would still apply.  */
    2807 char des_quad_cksum ();
     3343char krb5_get_credentials ();
    28083344int
    28093345main ()
    28103346{
    2811 des_quad_cksum ();
     3347return krb5_get_credentials ();
    28123348  ;
    28133349  return 0;
    … …  
    28153351_ACEOF
    28163352rm -f conftest.$ac_objext conftest$ac_exeext
    2817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2818   (eval $ac_link) 2>conftest.er1
     3353if { (ac_try="$ac_link"
     3354case "(($ac_try" in
     3355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3356  *) ac_try_echo=$ac_try;;
     3357esac
     3358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3359  (eval "$ac_link") 2>conftest.er1
    28193360  ac_status=$?
    28203361  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    28223363  cat conftest.err >&5
    28233364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2824   (exit $ac_status); } &&
    2825          { ac_try='test -z "$ac_c_werror_flag"
    2826                          || test ! -s conftest.err'
    2827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2828   (eval $ac_try) 2>&5
    2829   ac_status=$?
    2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2831   (exit $ac_status); }; } &&
    2832          { ac_try='test -s conftest$ac_exeext'
    2833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2834   (eval $ac_try) 2>&5
    2835   ac_status=$?
    2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2837   (exit $ac_status); }; }; then
    2838   ac_cv_lib_des_des_quad_cksum=yes
     3365  (exit $ac_status); } && {
     3366         test -z "$ac_c_werror_flag" ||
     3367         test ! -s conftest.err
     3368       } && test -s conftest$ac_exeext &&
     3369       $as_test_x conftest$ac_exeext; then
     3370  ac_cv_lib_krb5_krb5_get_credentials=yes
    28393371else
    28403372  echo "$as_me: failed program was:" >&5
    28413373sed 's/^/| /' conftest.$ac_ext >&5
    28423374
    2843 ac_cv_lib_des_des_quad_cksum=no
    2844 fi
    2845 rm -f conftest.err conftest.$ac_objext \
     3375        ac_cv_lib_krb5_krb5_get_credentials=no
     3376fi
     3377
     3378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    28463379      conftest$ac_exeext conftest.$ac_ext
    28473380LIBS=$ac_check_lib_save_LIBS
    28483381fi
    2849 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_quad_cksum" >&5
    2850 echo "${ECHO_T}$ac_cv_lib_des_des_quad_cksum" >&6
    2851 if test $ac_cv_lib_des_des_quad_cksum = yes; then
     3382{ echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_get_credentials" >&5
     3383echo "${ECHO_T}$ac_cv_lib_krb5_krb5_get_credentials" >&6; }
     3384if test $ac_cv_lib_krb5_krb5_get_credentials = yes; then
    28523385  cat >>confdefs.h <<_ACEOF
    2853 #define HAVE_LIBDES 1
    2854 _ACEOF
    2855 
    2856   LIBS="-ldes $LIBS"
    2857 
    2858 fi
    2859 
    2860 
    2861 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
    2862 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
    2863 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
     3386#define HAVE_LIBKRB5 1
     3387_ACEOF
     3388
     3389  LIBS="-lkrb5 $LIBS"
     3390
     3391fi
     3392
     3393
     3394{ echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb4" >&5
     3395echo $ECHO_N "checking for krb_sendauth in -lkrb4... $ECHO_C" >&6; }
     3396if test "${ac_cv_lib_krb4_krb_sendauth+set}" = set; then
    28643397  echo $ECHO_N "(cached) $ECHO_C" >&6
    28653398else
    28663399  ac_check_lib_save_LIBS=$LIBS
    2867 LIBS="-lresolv  $LIBS"
     3400LIBS="-lkrb4  $LIBS"
    28683401cat >conftest.$ac_ext <<_ACEOF
    28693402/* confdefs.h.  */
    … …  
    28733406/* end confdefs.h.  */
    28743407
    2875 /* Override any gcc2 internal prototype to avoid an error.  */
     3408/* Override any GCC internal prototype to avoid an error.
     3409   Use char because int might match the return type of a GCC
     3410   builtin and then its argument prototype would still apply.  */
    28763411#ifdef __cplusplus
    28773412extern "C"
    28783413#endif
    2879 /* We use char because int might match the return type of a gcc2
    2880    builtin and then its argument prototype would still apply.  */
    2881 char res_search ();
     3414char krb_sendauth ();
    28823415int
    28833416main ()
    28843417{
    2885 res_search ();
     3418return krb_sendauth ();
    28863419  ;
    28873420  return 0;
    … …  
    28893422_ACEOF
    28903423rm -f conftest.$ac_objext conftest$ac_exeext
    2891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2892   (eval $ac_link) 2>conftest.er1
     3424if { (ac_try="$ac_link"
     3425case "(($ac_try" in
     3426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3427  *) ac_try_echo=$ac_try;;
     3428esac
     3429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3430  (eval "$ac_link") 2>conftest.er1
    28933431  ac_status=$?
    28943432  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    28963434  cat conftest.err >&5
    28973435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2898   (exit $ac_status); } &&
    2899          { ac_try='test -z "$ac_c_werror_flag"
    2900                          || test ! -s conftest.err'
    2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2902   (eval $ac_try) 2>&5
    2903   ac_status=$?
    2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2905   (exit $ac_status); }; } &&
    2906          { ac_try='test -s conftest$ac_exeext'
    2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2908   (eval $ac_try) 2>&5
    2909   ac_status=$?
    2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2911   (exit $ac_status); }; }; then
    2912   ac_cv_lib_resolv_res_search=yes
     3436  (exit $ac_status); } && {
     3437         test -z "$ac_c_werror_flag" ||
     3438         test ! -s conftest.err
     3439       } && test -s conftest$ac_exeext &&
     3440       $as_test_x conftest$ac_exeext; then
     3441  ac_cv_lib_krb4_krb_sendauth=yes
    29133442else
    29143443  echo "$as_me: failed program was:" >&5
    29153444sed 's/^/| /' conftest.$ac_ext >&5
    29163445
    2917 ac_cv_lib_resolv_res_search=no
    2918 fi
    2919 rm -f conftest.err conftest.$ac_objext \
     3446        ac_cv_lib_krb4_krb_sendauth=no
     3447fi
     3448
     3449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    29203450      conftest$ac_exeext conftest.$ac_ext
    29213451LIBS=$ac_check_lib_save_LIBS
    29223452fi
    2923 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
    2924 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
    2925 if test $ac_cv_lib_resolv_res_search = yes; then
     3453{ echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_sendauth" >&5
     3454echo "${ECHO_T}$ac_cv_lib_krb4_krb_sendauth" >&6; }
     3455if test $ac_cv_lib_krb4_krb_sendauth = yes; then
    29263456  cat >>confdefs.h <<_ACEOF
    2927 #define HAVE_LIBRESOLV 1
    2928 _ACEOF
    2929 
    2930   LIBS="-lresolv $LIBS"
    2931 
    2932 fi
    2933 
    2934 
    2935 echo "$as_me:$LINENO: checking for krb5_get_credentials in -lkrb5" >&5
    2936 echo $ECHO_N "checking for krb5_get_credentials in -lkrb5... $ECHO_C" >&6
    2937 if test "${ac_cv_lib_krb5_krb5_get_credentials+set}" = set; then
     3457#define HAVE_LIBKRB4 1
     3458_ACEOF
     3459
     3460  LIBS="-lkrb4 $LIBS"
     3461
     3462else
     3463
     3464{ echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
     3465echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6; }
     3466if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
    29383467  echo $ECHO_N "(cached) $ECHO_C" >&6
    29393468else
    29403469  ac_check_lib_save_LIBS=$LIBS
    2941 LIBS="-lkrb5  $LIBS"
     3470LIBS="-lkrb  $LIBS"
    29423471cat >conftest.$ac_ext <<_ACEOF
    29433472/* confdefs.h.  */
    … …  
    29473476/* end confdefs.h.  */
    29483477
    2949 /* Override any gcc2 internal prototype to avoid an error.  */
     3478/* Override any GCC internal prototype to avoid an error.
     3479   Use char because int might match the return type of a GCC
     3480   builtin and then its argument prototype would still apply.  */
    29503481#ifdef __cplusplus
    29513482extern "C"
    29523483#endif
    2953 /* We use char because int might match the return type of a gcc2
    2954    builtin and then its argument prototype would still apply.  */
    2955 char krb5_get_credentials ();
     3484char krb_sendauth ();
    29563485int
    29573486main ()
    29583487{
    2959 krb5_get_credentials ();
     3488return krb_sendauth ();
    29603489  ;
    29613490  return 0;
    … …  
    29633492_ACEOF
    29643493rm -f conftest.$ac_objext conftest$ac_exeext
    2965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2966   (eval $ac_link) 2>conftest.er1
     3494if { (ac_try="$ac_link"
     3495case "(($ac_try" in
     3496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3497  *) ac_try_echo=$ac_try;;
     3498esac
     3499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3500  (eval "$ac_link") 2>conftest.er1
    29673501  ac_status=$?
    29683502  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    29703504  cat conftest.err >&5
    29713505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2972   (exit $ac_status); } &&
    2973          { ac_try='test -z "$ac_c_werror_flag"
    2974                          || test ! -s conftest.err'
    2975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2976   (eval $ac_try) 2>&5
    2977   ac_status=$?
    2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2979   (exit $ac_status); }; } &&
    2980          { ac_try='test -s conftest$ac_exeext'
    2981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2982   (eval $ac_try) 2>&5
    2983   ac_status=$?
    2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2985   (exit $ac_status); }; }; then
    2986   ac_cv_lib_krb5_krb5_get_credentials=yes
     3506  (exit $ac_status); } && {
     3507         test -z "$ac_c_werror_flag" ||
     3508         test ! -s conftest.err
     3509       } && test -s conftest$ac_exeext &&
     3510       $as_test_x conftest$ac_exeext; then
     3511  ac_cv_lib_krb_krb_sendauth=yes
    29873512else
    29883513  echo "$as_me: failed program was:" >&5
    29893514sed 's/^/| /' conftest.$ac_ext >&5
    29903515
    2991 ac_cv_lib_krb5_krb5_get_credentials=no
    2992 fi
    2993 rm -f conftest.err conftest.$ac_objext \
     3516        ac_cv_lib_krb_krb_sendauth=no
     3517fi
     3518
     3519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    29943520      conftest$ac_exeext conftest.$ac_ext
    29953521LIBS=$ac_check_lib_save_LIBS
    29963522fi
    2997 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_get_credentials" >&5
    2998 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_get_credentials" >&6
    2999 if test $ac_cv_lib_krb5_krb5_get_credentials = yes; then
     3523{ echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
     3524echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6; }
     3525if test $ac_cv_lib_krb_krb_sendauth = yes; then
    30003526  cat >>confdefs.h <<_ACEOF
    3001 #define HAVE_LIBKRB5 1
    3002 _ACEOF
    3003 
    3004   LIBS="-lkrb5 $LIBS"
    3005 
    3006 fi
    3007 
    3008 
    3009 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb4" >&5
    3010 echo $ECHO_N "checking for krb_sendauth in -lkrb4... $ECHO_C" >&6
    3011 if test "${ac_cv_lib_krb4_krb_sendauth+set}" = set; then
     3527#define HAVE_LIBKRB 1
     3528_ACEOF
     3529
     3530  LIBS="-lkrb $LIBS"
     3531
     3532fi
     3533
     3534fi
     3535
     3536
     3537{ echo "$as_me:$LINENO: checking for ZGetSender in -lzephyr" >&5
     3538echo $ECHO_N "checking for ZGetSender in -lzephyr... $ECHO_C" >&6; }
     3539if test "${ac_cv_lib_zephyr_ZGetSender+set}" = set; then
    30123540  echo $ECHO_N "(cached) $ECHO_C" >&6
    30133541else
    30143542  ac_check_lib_save_LIBS=$LIBS
    3015 LIBS="-lkrb4  $LIBS"
     3543LIBS="-lzephyr  $LIBS"
    30163544cat >conftest.$ac_ext <<_ACEOF
    30173545/* confdefs.h.  */
    … …  
    30213549/* end confdefs.h.  */
    30223550
    3023 /* Override any gcc2 internal prototype to avoid an error.  */
     3551/* Override any GCC internal prototype to avoid an error.
     3552   Use char because int might match the return type of a GCC
     3553   builtin and then its argument prototype would still apply.  */
    30243554#ifdef __cplusplus
    30253555extern "C"
    30263556#endif
    3027 /* We use char because int might match the return type of a gcc2
    3028    builtin and then its argument prototype would still apply.  */
    3029 char krb_sendauth ();
     3557char ZGetSender ();
    30303558int
    30313559main ()
    30323560{
    3033 krb_sendauth ();
     3561return ZGetSender ();
    30343562  ;
    30353563  return 0;
    … …  
    30373565_ACEOF
    30383566rm -f conftest.$ac_objext conftest$ac_exeext
    3039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3040   (eval $ac_link) 2>conftest.er1
     3567if { (ac_try="$ac_link"
     3568case "(($ac_try" in
     3569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3570  *) ac_try_echo=$ac_try;;
     3571esac
     3572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3573  (eval "$ac_link") 2>conftest.er1
    30413574  ac_status=$?
    30423575  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    30443577  cat conftest.err >&5
    30453578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3046   (exit $ac_status); } &&
    3047          { ac_try='test -z "$ac_c_werror_flag"
    3048                          || test ! -s conftest.err'
    3049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3050   (eval $ac_try) 2>&5
    3051   ac_status=$?
    3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3053   (exit $ac_status); }; } &&
    3054          { ac_try='test -s conftest$ac_exeext'
    3055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3056   (eval $ac_try) 2>&5
    3057   ac_status=$?
    3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3059   (exit $ac_status); }; }; then
    3060   ac_cv_lib_krb4_krb_sendauth=yes
     3579  (exit $ac_status); } && {
     3580         test -z "$ac_c_werror_flag" ||
     3581         test ! -s conftest.err
     3582       } && test -s conftest$ac_exeext &&
     3583       $as_test_x conftest$ac_exeext; then
     3584  ac_cv_lib_zephyr_ZGetSender=yes
    30613585else
    30623586  echo "$as_me: failed program was:" >&5
    30633587sed 's/^/| /' conftest.$ac_ext >&5
    30643588
    3065 ac_cv_lib_krb4_krb_sendauth=no
    3066 fi
    3067 rm -f conftest.err conftest.$ac_objext \
     3589        ac_cv_lib_zephyr_ZGetSender=no
     3590fi
     3591
     3592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    30683593      conftest$ac_exeext conftest.$ac_ext
    30693594LIBS=$ac_check_lib_save_LIBS
    30703595fi
    3071 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_sendauth" >&5
    3072 echo "${ECHO_T}$ac_cv_lib_krb4_krb_sendauth" >&6
    3073 if test $ac_cv_lib_krb4_krb_sendauth = yes; then
     3596{ echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZGetSender" >&5
     3597echo "${ECHO_T}$ac_cv_lib_zephyr_ZGetSender" >&6; }
     3598if test $ac_cv_lib_zephyr_ZGetSender = yes; then
    30743599  cat >>confdefs.h <<_ACEOF
    3075 #define HAVE_LIBKRB4 1
    3076 _ACEOF
    3077 
    3078   LIBS="-lkrb4 $LIBS"
    3079 
    3080 else
    3081 
    3082 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
    3083 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
    3084 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
     3600#define HAVE_LIBZEPHYR 1
     3601_ACEOF
     3602
     3603  LIBS="-lzephyr $LIBS"
     3604
     3605fi
     3606
     3607{ echo "$as_me:$LINENO: checking for ZInitLocationInfo in -lzephyr" >&5
     3608echo $ECHO_N "checking for ZInitLocationInfo in -lzephyr... $ECHO_C" >&6; }
     3609if test "${ac_cv_lib_zephyr_ZInitLocationInfo+set}" = set; then
    30853610  echo $ECHO_N "(cached) $ECHO_C" >&6
    30863611else
    30873612  ac_check_lib_save_LIBS=$LIBS
    3088 LIBS="-lkrb  $LIBS"
     3613LIBS="-lzephyr  $LIBS"
    30893614cat >conftest.$ac_ext <<_ACEOF
    30903615/* confdefs.h.  */
    … …  
    30943619/* end confdefs.h.  */
    30953620
    3096 /* Override any gcc2 internal prototype to avoid an error.  */
     3621/* Override any GCC internal prototype to avoid an error.
     3622   Use char because int might match the return type of a GCC
     3623   builtin and then its argument prototype would still apply.  */
    30973624#ifdef __cplusplus
    30983625extern "C"
    30993626#endif
    3100 /* We use char because int might match the return type of a gcc2
    3101    builtin and then its argument prototype would still apply.  */
    3102 char krb_sendauth ();
     3627char ZInitLocationInfo ();
    31033628int
    31043629main ()
    31053630{
    3106 krb_sendauth ();
     3631return ZInitLocationInfo ();
    31073632  ;
    31083633  return 0;
    … …  
    31103635_ACEOF
    31113636rm -f conftest.$ac_objext conftest$ac_exeext
    3112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3113   (eval $ac_link) 2>conftest.er1
     3637if { (ac_try="$ac_link"
     3638case "(($ac_try" in
     3639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3640  *) ac_try_echo=$ac_try;;
     3641esac
     3642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3643  (eval "$ac_link") 2>conftest.er1
    31143644  ac_status=$?
    31153645  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    31173647  cat conftest.err >&5
    31183648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3119   (exit $ac_status); } &&
    3120          { ac_try='test -z "$ac_c_werror_flag"
    3121                          || test ! -s conftest.err'
    3122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3123   (eval $ac_try) 2>&5
    3124   ac_status=$?
    3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3126   (exit $ac_status); }; } &&
    3127          { ac_try='test -s conftest$ac_exeext'
    3128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3129   (eval $ac_try) 2>&5
    3130   ac_status=$?
    3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3132   (exit $ac_status); }; }; then
    3133   ac_cv_lib_krb_krb_sendauth=yes
     3649  (exit $ac_status); } && {
     3650         test -z "$ac_c_werror_flag" ||
     3651         test ! -s conftest.err
     3652       } && test -s conftest$ac_exeext &&
     3653       $as_test_x conftest$ac_exeext; then
     3654  ac_cv_lib_zephyr_ZInitLocationInfo=yes
    31343655else
    31353656  echo "$as_me: failed program was:" >&5
    31363657sed 's/^/| /' conftest.$ac_ext >&5
    31373658
    3138 ac_cv_lib_krb_krb_sendauth=no
    3139 fi
    3140 rm -f conftest.err conftest.$ac_objext \
     3659        ac_cv_lib_zephyr_ZInitLocationInfo=no
     3660fi
     3661
     3662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    31413663      conftest$ac_exeext conftest.$ac_ext
    31423664LIBS=$ac_check_lib_save_LIBS
    31433665fi
    3144 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
    3145 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
    3146 if test $ac_cv_lib_krb_krb_sendauth = yes; then
    3147   cat >>confdefs.h <<_ACEOF
    3148 #define HAVE_LIBKRB 1
    3149 _ACEOF
    3150 
    3151   LIBS="-lkrb $LIBS"
    3152 
    3153 fi
    3154 
    3155 fi
    3156 
    3157 
    3158 echo "$as_me:$LINENO: checking for ZGetSender in -lzephyr" >&5
    3159 echo $ECHO_N "checking for ZGetSender in -lzephyr... $ECHO_C" >&6
    3160 if test "${ac_cv_lib_zephyr_ZGetSender+set}" = set; then
    3161   echo $ECHO_N "(cached) $ECHO_C" >&6
    3162 else
    3163   ac_check_lib_save_LIBS=$LIBS
    3164 LIBS="-lzephyr  $LIBS"
    3165 cat >conftest.$ac_ext <<_ACEOF
    3166 /* confdefs.h.  */
    3167 _ACEOF
    3168 cat confdefs.h >>conftest.$ac_ext
    3169 cat >>conftest.$ac_ext <<_ACEOF
    3170 /* end confdefs.h.  */
    3171 
    3172 /* Override any gcc2 internal prototype to avoid an error.  */
    3173 #ifdef __cplusplus
    3174 extern "C"
    3175 #endif
    3176 /* We use char because int might match the return type of a gcc2
    3177    builtin and then its argument prototype would still apply.  */
    3178 char ZGetSender ();
    3179 int
    3180 main ()
    3181 {
    3182 ZGetSender ();
    3183   ;
    3184   return 0;
    3185 }
    3186 _ACEOF
    3187 rm -f conftest.$ac_objext conftest$ac_exeext
    3188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3189   (eval $ac_link) 2>conftest.er1
    3190   ac_status=$?
    3191   grep -v '^ *+' conftest.er1 >conftest.err
    3192   rm -f conftest.er1
    3193   cat conftest.err >&5
    3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3195   (exit $ac_status); } &&
    3196          { ac_try='test -z "$ac_c_werror_flag"
    3197                          || test ! -s conftest.err'
    3198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3199   (eval $ac_try) 2>&5
    3200   ac_status=$?
    3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3202   (exit $ac_status); }; } &&
    3203          { ac_try='test -s conftest$ac_exeext'
    3204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3205   (eval $ac_try) 2>&5
    3206   ac_status=$?
    3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3208   (exit $ac_status); }; }; then
    3209   ac_cv_lib_zephyr_ZGetSender=yes
    3210 else
    3211   echo "$as_me: failed program was:" >&5
    3212 sed 's/^/| /' conftest.$ac_ext >&5
    3213 
    3214 ac_cv_lib_zephyr_ZGetSender=no
    3215 fi
    3216 rm -f conftest.err conftest.$ac_objext \
    3217       conftest$ac_exeext conftest.$ac_ext
    3218 LIBS=$ac_check_lib_save_LIBS
    3219 fi
    3220 echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZGetSender" >&5
    3221 echo "${ECHO_T}$ac_cv_lib_zephyr_ZGetSender" >&6
    3222 if test $ac_cv_lib_zephyr_ZGetSender = yes; then
    3223   cat >>confdefs.h <<_ACEOF
    3224 #define HAVE_LIBZEPHYR 1
    3225 _ACEOF
    3226 
    3227   LIBS="-lzephyr $LIBS"
    3228 
    3229 fi
    3230 
    3231 echo "$as_me:$LINENO: checking for ZInitLocationInfo in -lzephyr" >&5
    3232 echo $ECHO_N "checking for ZInitLocationInfo in -lzephyr... $ECHO_C" >&6
    3233 if test "${ac_cv_lib_zephyr_ZInitLocationInfo+set}" = set; then
    3234   echo $ECHO_N "(cached) $ECHO_C" >&6
    3235 else
    3236   ac_check_lib_save_LIBS=$LIBS
    3237 LIBS="-lzephyr  $LIBS"
    3238 cat >conftest.$ac_ext <<_ACEOF
    3239 /* confdefs.h.  */
    3240 _ACEOF
    3241 cat confdefs.h >>conftest.$ac_ext
    3242 cat >>conftest.$ac_ext <<_ACEOF
    3243 /* end confdefs.h.  */
    3244 
    3245 /* Override any gcc2 internal prototype to avoid an error.  */
    3246 #ifdef __cplusplus
    3247 extern "C"
    3248 #endif
    3249 /* We use char because int might match the return type of a gcc2
    3250    builtin and then its argument prototype would still apply.  */
    3251 char ZInitLocationInfo ();
    3252 int
    3253 main ()
    3254 {
    3255 ZInitLocationInfo ();
    3256   ;
    3257   return 0;
    3258 }
    3259 _ACEOF
    3260 rm -f conftest.$ac_objext conftest$ac_exeext
    3261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3262   (eval $ac_link) 2>conftest.er1
    3263   ac_status=$?
    3264   grep -v '^ *+' conftest.er1 >conftest.err
    3265   rm -f conftest.er1
    3266   cat conftest.err >&5
    3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3268   (exit $ac_status); } &&
    3269          { ac_try='test -z "$ac_c_werror_flag"
    3270                          || test ! -s conftest.err'
    3271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3272   (eval $ac_try) 2>&5
    3273   ac_status=$?
    3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3275   (exit $ac_status); }; } &&
    3276          { ac_try='test -s conftest$ac_exeext'
    3277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3278   (eval $ac_try) 2>&5
    3279   ac_status=$?
    3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3281   (exit $ac_status); }; }; then
    3282   ac_cv_lib_zephyr_ZInitLocationInfo=yes
    3283 else
    3284   echo "$as_me: failed program was:" >&5
    3285 sed 's/^/| /' conftest.$ac_ext >&5
    3286 
    3287 ac_cv_lib_zephyr_ZInitLocationInfo=no
    3288 fi
    3289 rm -f conftest.err conftest.$ac_objext \
    3290       conftest$ac_exeext conftest.$ac_ext
    3291 LIBS=$ac_check_lib_save_LIBS
    3292 fi
    3293 echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitLocationInfo" >&5
    3294 echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitLocationInfo" >&6
     3666{ echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitLocationInfo" >&5
     3667echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitLocationInfo" >&6; }
    32953668if test $ac_cv_lib_zephyr_ZInitLocationInfo = yes; then
    32963669
    … …  
    33063679
    33073680
    3308 for ac_func in use_default_colors des_string_to_key des_key_sched des_ecb_encrypt
     3681
     3682for ac_func in use_default_colors resizeterm des_string_to_key des_key_sched des_ecb_encrypt
    33093683do
    33103684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    3311 echo "$as_me:$LINENO: checking for $ac_func" >&5
    3312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    3313 if eval "test \"\${$as_ac_var+set}\" = set"; then
     3685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
     3686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
     3687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    33143688  echo $ECHO_N "(cached) $ECHO_C" >&6
    33153689else
    … …  
    33373711#undef $ac_func
    33383712
    3339 /* Override any gcc2 internal prototype to avoid an error.  */
     3713/* Override any GCC internal prototype to avoid an error.
     3714   Use char because int might match the return type of a GCC
     3715   builtin and then its argument prototype would still apply.  */
    33403716#ifdef __cplusplus
    33413717extern "C"
    3342 {
    33433718#endif
    3344 /* We use char because int might match the return type of a gcc2
    3345    builtin and then its argument prototype would still apply.  */
    33463719char $ac_func ();
    33473720/* The GNU C library defines this for functions which it implements
    33483721    to always fail with ENOSYS.  Some functions are actually named
    33493722    something starting with __ and the normal name is an alias.  */
    3350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     3723#if defined __stub_$ac_func || defined __stub___$ac_func
    33513724choke me
    3352 #else
    3353 char (*f) () = $ac_func;
    3354 #endif
    3355 #ifdef __cplusplus
    3356 }
    33573725#endif
    33583726
    … …  
    33603728main ()
    33613729{
    3362 return f != $ac_func;
     3730return $ac_func ();
    33633731  ;
    33643732  return 0;
    … …  
    33663734_ACEOF
    33673735rm -f conftest.$ac_objext conftest$ac_exeext
    3368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3369   (eval $ac_link) 2>conftest.er1
     3736if { (ac_try="$ac_link"
     3737case "(($ac_try" in
     3738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3739  *) ac_try_echo=$ac_try;;
     3740esac
     3741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3742  (eval "$ac_link") 2>conftest.er1
    33703743  ac_status=$?
    33713744  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    33733746  cat conftest.err >&5
    33743747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3375   (exit $ac_status); } &&
    3376          { ac_try='test -z "$ac_c_werror_flag"
    3377                          || test ! -s conftest.err'
    3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3379   (eval $ac_try) 2>&5
    3380   ac_status=$?
    3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3382   (exit $ac_status); }; } &&
    3383          { ac_try='test -s conftest$ac_exeext'
    3384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3385   (eval $ac_try) 2>&5
    3386   ac_status=$?
    3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3388   (exit $ac_status); }; }; then
     3748  (exit $ac_status); } && {
     3749         test -z "$ac_c_werror_flag" ||
     3750         test ! -s conftest.err
     3751       } && test -s conftest$ac_exeext &&
     3752       $as_test_x conftest$ac_exeext; then
    33893753  eval "$as_ac_var=yes"
    33903754else
    … …  
    33923756sed 's/^/| /' conftest.$ac_ext >&5
    33933757
    3394 eval "$as_ac_var=no"
    3395 fi
    3396 rm -f conftest.err conftest.$ac_objext \
     3758        eval "$as_ac_var=no"
     3759fi
     3760
     3761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    33973762      conftest$ac_exeext conftest.$ac_ext
    33983763fi
    3399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    3400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     3764ac_res=`eval echo '${'$as_ac_var'}'`
     3765               { echo "$as_me:$LINENO: result: $ac_res" >&5
     3766echo "${ECHO_T}$ac_res" >&6; }
    34013767if test `eval echo '${'$as_ac_var'}'` = yes; then
    34023768  cat >>confdefs.h <<_ACEOF
    … …  
    34083774
    34093775
    3410 echo "$as_me:$LINENO: checking for des_ecb_encrypt prototype" >&5
    3411 echo $ECHO_N "checking for des_ecb_encrypt prototype... $ECHO_C" >&6
     3776{ echo "$as_me:$LINENO: checking for des_ecb_encrypt prototype" >&5
     3777echo $ECHO_N "checking for des_ecb_encrypt prototype... $ECHO_C" >&6; }
    34123778cat >conftest.$ac_ext <<_ACEOF
    34133779/* confdefs.h.  */
    … …  
    34273793_ACEOF
    34283794rm -f conftest.$ac_objext
    3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3430   (eval $ac_compile) 2>conftest.er1
     3795if { (ac_try="$ac_compile"
     3796case "(($ac_try" in
     3797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3798  *) ac_try_echo=$ac_try;;
     3799esac
     3800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3801  (eval "$ac_compile") 2>conftest.er1
    34313802  ac_status=$?
    34323803  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    34343805  cat conftest.err >&5
    34353806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3436   (exit $ac_status); } &&
    3437          { ac_try='test -z "$ac_c_werror_flag"
    3438                          || test ! -s conftest.err'
    3439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3440   (eval $ac_try) 2>&5
    3441   ac_status=$?
    3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3443   (exit $ac_status); }; } &&
    3444          { ac_try='test -s conftest.$ac_objext'
    3445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3446   (eval $ac_try) 2>&5
    3447   ac_status=$?
    3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3449   (exit $ac_status); }; }; then
     3807  (exit $ac_status); } && {
     3808         test -z "$ac_c_werror_flag" ||
     3809         test ! -s conftest.err
     3810       } && test -s conftest.$ac_objext; then
    34503811  ac_cv_des_ecb_encrypt_proto=no
    34513812else
    … …  
    34533814sed 's/^/| /' conftest.$ac_ext >&5
    34543815
    3455 ac_cv_des_ecb_encrypt_proto=yes
    3456 fi
    3457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3458 echo "$as_me:$LINENO: result: $ac_cv_des_ecb_encrypt_proto" >&5
    3459 echo "${ECHO_T}$ac_cv_des_ecb_encrypt_proto" >&6
     3816        ac_cv_des_ecb_encrypt_proto=yes
     3817fi
     3818
     3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3820{ echo "$as_me:$LINENO: result: $ac_cv_des_ecb_encrypt_proto" >&5
     3821echo "${ECHO_T}$ac_cv_des_ecb_encrypt_proto" >&6; }
    34603822if test "$ac_cv_des_ecb_encrypt_proto" = yes; then
    34613823
    … …  
    34713833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    34723834ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3473 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    3474 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     3835{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     3836echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
    34753837# On Suns, sometimes $CPP names a directory.
    34763838if test -n "$CPP" && test -d "$CPP"; then
    … …  
    35063868                     Syntax error
    35073869_ACEOF
    3508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3870if { (ac_try="$ac_cpp conftest.$ac_ext"
     3871case "(($ac_try" in
     3872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3873  *) ac_try_echo=$ac_try;;
     3874esac
     3875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3876  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    35103877  ac_status=$?
    35113878  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    35133880  cat conftest.err >&5
    35143881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3515   (exit $ac_status); } >/dev/null; then
    3516   if test -s conftest.err; then
    3517     ac_cpp_err=$ac_c_preproc_warn_flag
    3518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3519   else
    3520     ac_cpp_err=
    3521   fi
    3522 else
    3523   ac_cpp_err=yes
    3524 fi
    3525 if test -z "$ac_cpp_err"; then
     3882  (exit $ac_status); } >/dev/null && {
     3883         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3884         test ! -s conftest.err
     3885       }; then
    35263886  :
    35273887else
    … …  
    35323892continue
    35333893fi
     3894
    35343895rm -f conftest.err conftest.$ac_ext
    35353896
    3536   # OK, works on sane cases.  Now check whether non-existent headers
     3897  # OK, works on sane cases.  Now check whether nonexistent headers
    35373898  # can be detected and how.
    35383899  cat >conftest.$ac_ext <<_ACEOF
    … …  
    35443905#include <ac_nonexistent.h>
    35453906_ACEOF
    3546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3907if { (ac_try="$ac_cpp conftest.$ac_ext"
     3908case "(($ac_try" in
     3909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3910  *) ac_try_echo=$ac_try;;
     3911esac
     3912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3913  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    35483914  ac_status=$?
    35493915  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    35513917  cat conftest.err >&5
    35523918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3553   (exit $ac_status); } >/dev/null; then
    3554   if test -s conftest.err; then
    3555     ac_cpp_err=$ac_c_preproc_warn_flag
    3556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3557   else
    3558     ac_cpp_err=
    3559   fi
    3560 else
    3561   ac_cpp_err=yes
    3562 fi
    3563 if test -z "$ac_cpp_err"; then
     3919  (exit $ac_status); } >/dev/null && {
     3920         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3921         test ! -s conftest.err
     3922       }; then
    35643923  # Broken: success on invalid input.
    35653924continue
    … …  
    35723931break
    35733932fi
     3933
    35743934rm -f conftest.err conftest.$ac_ext
    35753935
    … …  
    35893949  ac_cv_prog_CPP=$CPP
    35903950fi
    3591 echo "$as_me:$LINENO: result: $CPP" >&5
    3592 echo "${ECHO_T}$CPP" >&6
     3951{ echo "$as_me:$LINENO: result: $CPP" >&5
     3952echo "${ECHO_T}$CPP" >&6; }
    35933953ac_preproc_ok=false
    35943954for ac_c_preproc_warn_flag in '' yes
    … …  
    36133973                     Syntax error
    36143974_ACEOF
    3615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3616   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3975if { (ac_try="$ac_cpp conftest.$ac_ext"
     3976case "(($ac_try" in
     3977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3978  *) ac_try_echo=$ac_try;;
     3979esac
     3980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     3981  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    36173982  ac_status=$?
    36183983  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    36203985  cat conftest.err >&5
    36213986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3622   (exit $ac_status); } >/dev/null; then
    3623   if test -s conftest.err; then
    3624     ac_cpp_err=$ac_c_preproc_warn_flag
    3625     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3626   else
    3627     ac_cpp_err=
    3628   fi
    3629 else
    3630   ac_cpp_err=yes
    3631 fi
    3632 if test -z "$ac_cpp_err"; then
     3987  (exit $ac_status); } >/dev/null && {
     3988         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3989         test ! -s conftest.err
     3990       }; then
    36333991  :
    36343992else
    … …  
    36393997continue
    36403998fi
     3999
    36414000rm -f conftest.err conftest.$ac_ext
    36424001
    3643   # OK, works on sane cases.  Now check whether non-existent headers
     4002  # OK, works on sane cases.  Now check whether nonexistent headers
    36444003  # can be detected and how.
    36454004  cat >conftest.$ac_ext <<_ACEOF
    … …  
    36514010#include <ac_nonexistent.h>
    36524011_ACEOF
    3653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3654   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4012if { (ac_try="$ac_cpp conftest.$ac_ext"
     4013case "(($ac_try" in
     4014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4015  *) ac_try_echo=$ac_try;;
     4016esac
     4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4018  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    36554019  ac_status=$?
    36564020  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    36584022  cat conftest.err >&5
    36594023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3660   (exit $ac_status); } >/dev/null; then
    3661   if test -s conftest.err; then
    3662     ac_cpp_err=$ac_c_preproc_warn_flag
    3663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3664   else
    3665     ac_cpp_err=
    3666   fi
    3667 else
    3668   ac_cpp_err=yes
    3669 fi
    3670 if test -z "$ac_cpp_err"; then
     4024  (exit $ac_status); } >/dev/null && {
     4025         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4026         test ! -s conftest.err
     4027       }; then
    36714028  # Broken: success on invalid input.
    36724029continue
    … …  
    36794036break
    36804037fi
     4038
    36814039rm -f conftest.err conftest.$ac_ext
    36824040
    … …  
    37014059
    37024060
    3703 echo "$as_me:$LINENO: checking for egrep" >&5
    3704 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    3705 if test "${ac_cv_prog_egrep+set}" = set; then
     4061{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
     4062echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
     4063if test "${ac_cv_path_GREP+set}" = set; then
    37064064  echo $ECHO_N "(cached) $ECHO_C" >&6
    37074065else
    3708   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    3709     then ac_cv_prog_egrep='grep -E'
    3710     else ac_cv_prog_egrep='egrep'
     4066  # Extract the first word of "grep ggrep" to use in msg output
     4067if test -z "$GREP"; then
     4068set dummy grep ggrep; ac_prog_name=$2
     4069if test "${ac_cv_path_GREP+set}" = set; then
     4070  echo $ECHO_N "(cached) $ECHO_C" >&6
     4071else
     4072  ac_path_GREP_found=false
     4073# Loop through the user's path and test for each of PROGNAME-LIST
     4074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4075for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4076do
     4077  IFS=$as_save_IFS
     4078  test -z "$as_dir" && as_dir=.
     4079  for ac_prog in grep ggrep; do
     4080  for ac_exec_ext in '' $ac_executable_extensions; do
     4081    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     4082    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     4083    # Check for GNU ac_path_GREP and select it if it is found.
     4084  # Check for GNU $ac_path_GREP
     4085case `"$ac_path_GREP" --version 2>&1` in
     4086*GNU*)
     4087  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     4088*)
     4089  ac_count=0
     4090  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
     4091  while :
     4092  do
     4093    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4094    mv "conftest.tmp" "conftest.in"
     4095    cp "conftest.in" "conftest.nl"
     4096    echo 'GREP' >> "conftest.nl"
     4097    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4098    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4099    ac_count=`expr $ac_count + 1`
     4100    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     4101      # Best one so far, save it but keep looking for a better one
     4102      ac_cv_path_GREP="$ac_path_GREP"
     4103      ac_path_GREP_max=$ac_count
    37114104    fi
    3712 fi
    3713 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    3714 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    3715  EGREP=$ac_cv_prog_egrep
    3716 
    3717 
    3718 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     4105    # 10*(2^10) chars as input seems more than enough
     4106    test $ac_count -gt 10 && break
     4107  done
     4108  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4109esac
     4110
     4111
     4112    $ac_path_GREP_found && break 3
     4113  done
     4114done
     4115
     4116done
     4117IFS=$as_save_IFS
     4118
     4119
     4120fi
     4121
     4122GREP="$ac_cv_path_GREP"
     4123if test -z "$GREP"; then
     4124  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
     4125echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
     4126   { (exit 1); exit 1; }; }
     4127fi
     4128
     4129else
     4130  ac_cv_path_GREP=$GREP
     4131fi
     4132
     4133
     4134fi
     4135{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
     4136echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
     4137 GREP="$ac_cv_path_GREP"
     4138
     4139
     4140{ echo "$as_me:$LINENO: checking for egrep" >&5
     4141echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
     4142if test "${ac_cv_path_EGREP+set}" = set; then
     4143  echo $ECHO_N "(cached) $ECHO_C" >&6
     4144else
     4145  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
     4146   then ac_cv_path_EGREP="$GREP -E"
     4147   else
     4148     # Extract the first word of "egrep" to use in msg output
     4149if test -z "$EGREP"; then
     4150set dummy egrep; ac_prog_name=$2
     4151if test "${ac_cv_path_EGREP+set}" = set; then
     4152  echo $ECHO_N "(cached) $ECHO_C" >&6
     4153else
     4154  ac_path_EGREP_found=false
     4155# Loop through the user's path and test for each of PROGNAME-LIST
     4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4157for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     4158do
     4159  IFS=$as_save_IFS
     4160  test -z "$as_dir" && as_dir=.
     4161  for ac_prog in egrep; do
     4162  for ac_exec_ext in '' $ac_executable_extensions; do
     4163    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     4164    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     4165    # Check for GNU ac_path_EGREP and select it if it is found.
     4166  # Check for GNU $ac_path_EGREP
     4167case `"$ac_path_EGREP" --version 2>&1` in
     4168*GNU*)
     4169  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
     4170*)
     4171  ac_count=0
     4172  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
     4173  while :
     4174  do
     4175    cat "conftest.in" "conftest.in" >"conftest.tmp"
     4176    mv "conftest.tmp" "conftest.in"
     4177    cp "conftest.in" "conftest.nl"
     4178    echo 'EGREP' >> "conftest.nl"
     4179    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     4180    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     4181    ac_count=`expr $ac_count + 1`
     4182    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
     4183      # Best one so far, save it but keep looking for a better one
     4184      ac_cv_path_EGREP="$ac_path_EGREP"
     4185      ac_path_EGREP_max=$ac_count
     4186    fi
     4187    # 10*(2^10) chars as input seems more than enough
     4188    test $ac_count -gt 10 && break
     4189  done
     4190  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     4191esac
     4192
     4193
     4194    $ac_path_EGREP_found && break 3
     4195  done
     4196done
     4197
     4198done
     4199IFS=$as_save_IFS
     4200
     4201
     4202fi
     4203
     4204EGREP="$ac_cv_path_EGREP"
     4205if test -z "$EGREP"; then
     4206  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
     4207echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
     4208   { (exit 1); exit 1; }; }
     4209fi
     4210
     4211else
     4212  ac_cv_path_EGREP=$EGREP
     4213fi
     4214
     4215
     4216   fi
     4217fi
     4218{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
     4219echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
     4220 EGREP="$ac_cv_path_EGREP"
     4221
     4222
     4223{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     4224echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
    37204225if test "${ac_cv_header_stdc+set}" = set; then
    37214226  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    37414246_ACEOF
    37424247rm -f conftest.$ac_objext
    3743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3744   (eval $ac_compile) 2>conftest.er1
     4248if { (ac_try="$ac_compile"
     4249case "(($ac_try" in
     4250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4251  *) ac_try_echo=$ac_try;;
     4252esac
     4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4254  (eval "$ac_compile") 2>conftest.er1
    37454255  ac_status=$?
    37464256  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    37484258  cat conftest.err >&5
    37494259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3750   (exit $ac_status); } &&
    3751          { ac_try='test -z "$ac_c_werror_flag"
    3752                          || test ! -s conftest.err'
    3753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3754   (eval $ac_try) 2>&5
    3755   ac_status=$?
    3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3757   (exit $ac_status); }; } &&
    3758          { ac_try='test -s conftest.$ac_objext'
    3759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3760   (eval $ac_try) 2>&5
    3761   ac_status=$?
    3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3763   (exit $ac_status); }; }; then
     4260  (exit $ac_status); } && {
     4261         test -z "$ac_c_werror_flag" ||
     4262         test ! -s conftest.err
     4263       } && test -s conftest.$ac_objext; then
    37644264  ac_cv_header_stdc=yes
    37654265else
    … …  
    37674267sed 's/^/| /' conftest.$ac_ext >&5
    37684268
    3769 ac_cv_header_stdc=no
    3770 fi
    3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4269        ac_cv_header_stdc=no
     4270fi
     4271
     4272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    37724273
    37734274if test $ac_cv_header_stdc = yes; then
    … …  
    38254326/* end confdefs.h.  */
    38264327#include <ctype.h>
     4328#include <stdlib.h>
    38274329#if ((' ' & 0x0FF) == 0x020)
    38284330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    … …  
    38444346    if (XOR (islower (i), ISLOWER (i))
    38454347        || toupper (i) != TOUPPER (i))
    3846       exit(2);
    3847   exit (0);
     4348      return 2;
     4349  return 0;
    38484350}
    38494351_ACEOF
    38504352rm -f conftest$ac_exeext
    3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3852   (eval $ac_link) 2>&5
     4353if { (ac_try="$ac_link"
     4354case "(($ac_try" in
     4355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4356  *) ac_try_echo=$ac_try;;
     4357esac
     4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4359  (eval "$ac_link") 2>&5
    38534360  ac_status=$?
    38544361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38554362  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3857   (eval $ac_try) 2>&5
     4363  { (case "(($ac_try" in
     4364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4365  *) ac_try_echo=$ac_try;;
     4366esac
     4367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4368  (eval "$ac_try") 2>&5
    38584369  ac_status=$?
    38594370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    … …  
    38684379ac_cv_header_stdc=no
    38694380fi
    3870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3871 fi
    3872 fi
    3873 fi
    3874 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3875 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     4381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4382fi
     4383
     4384
     4385fi
     4386fi
     4387{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     4388echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
    38764389if test $ac_cv_header_stdc = yes; then
    38774390
    … …  
    38824395fi
    38834396
    3884 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
    3885 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
     4397{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
     4398echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
    38864399if test "${ac_cv_header_sys_wait_h+set}" = set; then
    38874400  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    38964409#include <sys/wait.h>
    38974410#ifndef WEXITSTATUS
    3898 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
     4411# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
    38994412#endif
    39004413#ifndef WIFEXITED
    … …  
    39134426_ACEOF
    39144427rm -f conftest.$ac_objext
    3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3916   (eval $ac_compile) 2>conftest.er1
     4428if { (ac_try="$ac_compile"
     4429case "(($ac_try" in
     4430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4431  *) ac_try_echo=$ac_try;;
     4432esac
     4433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4434  (eval "$ac_compile") 2>conftest.er1
    39174435  ac_status=$?
    39184436  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    39204438  cat conftest.err >&5
    39214439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3922   (exit $ac_status); } &&
    3923          { ac_try='test -z "$ac_c_werror_flag"
    3924                          || test ! -s conftest.err'
    3925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3926   (eval $ac_try) 2>&5
    3927   ac_status=$?
    3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3929   (exit $ac_status); }; } &&
    3930          { ac_try='test -s conftest.$ac_objext'
    3931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3932   (eval $ac_try) 2>&5
    3933   ac_status=$?
    3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3935   (exit $ac_status); }; }; then
     4440  (exit $ac_status); } && {
     4441         test -z "$ac_c_werror_flag" ||
     4442         test ! -s conftest.err
     4443       } && test -s conftest.$ac_objext; then
    39364444  ac_cv_header_sys_wait_h=yes
    39374445else
    … …  
    39394447sed 's/^/| /' conftest.$ac_ext >&5
    39404448
    3941 ac_cv_header_sys_wait_h=no
    3942 fi
    3943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3944 fi
    3945 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
    3946 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
     4449        ac_cv_header_sys_wait_h=no
     4450fi
     4451
     4452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4453fi
     4454{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
     4455echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
    39474456if test $ac_cv_header_sys_wait_h = yes; then
    39484457
    … …  
    39674476do
    39684477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3969 echo "$as_me:$LINENO: checking for $ac_header" >&5
    3970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4478{ echo "$as_me:$LINENO: checking for $ac_header" >&5
     4479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    39724481  echo $ECHO_N "(cached) $ECHO_C" >&6
    39734482else
    … …  
    39834492_ACEOF
    39844493rm -f conftest.$ac_objext
    3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3986   (eval $ac_compile) 2>conftest.er1
     4494if { (ac_try="$ac_compile"
     4495case "(($ac_try" in
     4496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4497  *) ac_try_echo=$ac_try;;
     4498esac
     4499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4500  (eval "$ac_compile") 2>conftest.er1
    39874501  ac_status=$?
    39884502  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    39904504  cat conftest.err >&5
    39914505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3992   (exit $ac_status); } &&
    3993          { ac_try='test -z "$ac_c_werror_flag"
    3994                          || test ! -s conftest.err'
    3995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3996   (eval $ac_try) 2>&5
    3997   ac_status=$?
    3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3999   (exit $ac_status); }; } &&
    4000          { ac_try='test -s conftest.$ac_objext'
    4001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4002   (eval $ac_try) 2>&5
    4003   ac_status=$?
    4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4005   (exit $ac_status); }; }; then
     4506  (exit $ac_status); } && {
     4507         test -z "$ac_c_werror_flag" ||
     4508         test ! -s conftest.err
     4509       } && test -s conftest.$ac_objext; then
    40064510  eval "$as_ac_Header=yes"
    40074511else
    … …  
    40094513sed 's/^/| /' conftest.$ac_ext >&5
    40104514
    4011 eval "$as_ac_Header=no"
    4012 fi
    4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4014 fi
    4015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4515        eval "$as_ac_Header=no"
     4516fi
     4517
     4518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4519fi
     4520ac_res=`eval echo '${'$as_ac_Header'}'`
     4521               { echo "$as_me:$LINENO: result: $ac_res" >&5
     4522echo "${ECHO_T}$ac_res" >&6; }
    40174523if test `eval echo '${'$as_ac_Header'}'` = yes; then
    40184524  cat >>confdefs.h <<_ACEOF
    … …  
    40334539do
    40344540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4036   echo "$as_me:$LINENO: checking for $ac_header" >&5
    4037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     4542  { echo "$as_me:$LINENO: checking for $ac_header" >&5
     4543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    40394545  echo $ECHO_N "(cached) $ECHO_C" >&6
    40404546fi
    4041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4547ac_res=`eval echo '${'$as_ac_Header'}'`
     4548               { echo "$as_me:$LINENO: result: $ac_res" >&5
     4549echo "${ECHO_T}$ac_res" >&6; }
    40434550else
    40444551  # Is the header compilable?
    4045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    4046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4552{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
    40474554cat >conftest.$ac_ext <<_ACEOF
    40484555/* confdefs.h.  */
    … …  
    40554562_ACEOF
    40564563rm -f conftest.$ac_objext
    4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4058   (eval $ac_compile) 2>conftest.er1
     4564if { (ac_try="$ac_compile"
     4565case "(($ac_try" in
     4566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4567  *) ac_try_echo=$ac_try;;
     4568esac
     4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4570  (eval "$ac_compile") 2>conftest.er1
    40594571  ac_status=$?
    40604572  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    40624574  cat conftest.err >&5
    40634575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4064   (exit $ac_status); } &&
    4065          { ac_try='test -z "$ac_c_werror_flag"
    4066                          || test ! -s conftest.err'
    4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4068   (eval $ac_try) 2>&5
    4069   ac_status=$?
    4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4071   (exit $ac_status); }; } &&
    4072          { ac_try='test -s conftest.$ac_objext'
    4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4074   (eval $ac_try) 2>&5
    4075   ac_status=$?
    4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4077   (exit $ac_status); }; }; then
     4576  (exit $ac_status); } && {
     4577         test -z "$ac_c_werror_flag" ||
     4578         test ! -s conftest.err
     4579       } && test -s conftest.$ac_objext; then
    40784580  ac_header_compiler=yes
    40794581else
    … …  
    40814583sed 's/^/| /' conftest.$ac_ext >&5
    40824584
    4083 ac_header_compiler=no
    4084 fi
    4085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4087 echo "${ECHO_T}$ac_header_compiler" >&6
     4585        ac_header_compiler=no
     4586fi
     4587
     4588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4589{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4590echo "${ECHO_T}$ac_header_compiler" >&6; }
    40884591
    40894592# Is the header present?
    4090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    4091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4593{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
    40924595cat >conftest.$ac_ext <<_ACEOF
    40934596/* confdefs.h.  */
    … …  
    40984601#include <$ac_header>
    40994602_ACEOF
    4100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4603if { (ac_try="$ac_cpp conftest.$ac_ext"
     4604case "(($ac_try" in
     4605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4606  *) ac_try_echo=$ac_try;;
     4607esac
     4608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     4609  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    41024610  ac_status=$?
    41034611  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    41054613  cat conftest.err >&5
    41064614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4107   (exit $ac_status); } >/dev/null; then
    4108   if test -s conftest.err; then
    4109     ac_cpp_err=$ac_c_preproc_warn_flag
    4110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4111   else
    4112     ac_cpp_err=
    4113   fi
    4114 else
    4115   ac_cpp_err=yes
    4116 fi
    4117 if test -z "$ac_cpp_err"; then
     4615  (exit $ac_status); } >/dev/null && {
     4616         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4617         test ! -s conftest.err
     4618       }; then
    41184619  ac_header_preproc=yes
    41194620else
    … …  
    41234624  ac_header_preproc=no
    41244625fi
     4626
    41254627rm -f conftest.err conftest.$ac_ext
    4126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4127 echo "${ECHO_T}$ac_header_preproc" >&6
     4628{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4629echo "${ECHO_T}$ac_header_preproc" >&6; }
    41284630
    41294631# So?  What about this header?
    … …  
    41494651    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    41504652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    4151     (
    4152       cat <<\_ASBOX
    4153 ## ------------------------------------------ ##
    4154 ## Report this to the AC_PACKAGE_NAME lists.  ##
    4155 ## ------------------------------------------ ##
    4156 _ASBOX
    4157     ) |
    4158       sed "s/^/$as_me: WARNING:     /" >&2
     4653
    41594654    ;;
    41604655esac
    4161 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4656{ echo "$as_me:$LINENO: checking for $ac_header" >&5
     4657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     4658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    41644659  echo $ECHO_N "(cached) $ECHO_C" >&6
    41654660else
    41664661  eval "$as_ac_Header=\$ac_header_preproc"
    41674662fi
    4168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4663ac_res=`eval echo '${'$as_ac_Header'}'`
     4664               { echo "$as_me:$LINENO: result: $ac_res" >&5
     4665echo "${ECHO_T}$ac_res" >&6; }
    41704666
    41714667fi
    … …  
    41844680CFLAGS=${CFLAGS}\ ${FOO}
    41854681
    4186 echo "$as_me:$LINENO: checking for the perl xsubpp precompiler" >&5
    4187 echo $ECHO_N "checking for the perl xsubpp precompiler... $ECHO_C" >&6
     4682{ echo "$as_me:$LINENO: checking for the perl xsubpp precompiler" >&5
     4683echo $ECHO_N "checking for the perl xsubpp precompiler... $ECHO_C" >&6; }
    41884684XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
    41894685if test -n "${XSUBPPDIR}"; then
    4190    echo "$as_me:$LINENO: result: ${XSUBPPDIR}" >&5
    4191 echo "${ECHO_T}${XSUBPPDIR}" >&6
     4686   { echo "$as_me:$LINENO: result: ${XSUBPPDIR}" >&5
     4687echo "${ECHO_T}${XSUBPPDIR}" >&6; }
    41924688else
    41934689   { { echo "$as_me:$LINENO: error: not found" >&5
    … …  
    42004696LDFLAGS=${LDFLAGS}\ ${FOO}
    42014697
    4202 echo "$as_me:$LINENO: checking for /usr/share/terminfo" >&5
    4203 echo $ECHO_N "checking for /usr/share/terminfo... $ECHO_C" >&6
     4698{ echo "$as_me:$LINENO: checking for /usr/share/terminfo" >&5
     4699echo $ECHO_N "checking for /usr/share/terminfo... $ECHO_C" >&6; }
    42044700if test "${ac_cv_file__usr_share_terminfo+set}" = set; then
    42054701  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    42154711fi
    42164712fi
    4217 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_terminfo" >&5
    4218 echo "${ECHO_T}$ac_cv_file__usr_share_terminfo" >&6
     4713{ echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_terminfo" >&5
     4714echo "${ECHO_T}$ac_cv_file__usr_share_terminfo" >&6; }
    42194715if test $ac_cv_file__usr_share_terminfo = yes; then
    42204716
    … …  
    42244720
    42254721else
    4226   echo "$as_me:$LINENO: checking for /usr/share/lib/terminfo" >&5
    4227 echo $ECHO_N "checking for /usr/share/lib/terminfo... $ECHO_C" >&6
     4722  { echo "$as_me:$LINENO: checking for /usr/share/lib/terminfo" >&5
     4723echo $ECHO_N "checking for /usr/share/lib/terminfo... $ECHO_C" >&6; }
    42284724if test "${ac_cv_file__usr_share_lib_terminfo+set}" = set; then
    42294725  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    42394735fi
    42404736fi
    4241 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_lib_terminfo" >&5
    4242 echo "${ECHO_T}$ac_cv_file__usr_share_lib_terminfo" >&6
     4737{ echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_lib_terminfo" >&5
     4738echo "${ECHO_T}$ac_cv_file__usr_share_lib_terminfo" >&6; }
    42434739if test $ac_cv_file__usr_share_lib_terminfo = yes; then
    42444740
    … …  
    42594755
    42604756ac_aux_dir=
    4261 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    4262   if test -f $ac_dir/install-sh; then
     4757for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
     4758  if test -f "$ac_dir/install-sh"; then
    42634759    ac_aux_dir=$ac_dir
    42644760    ac_install_sh="$ac_aux_dir/install-sh -c"
    42654761    break
    4266   elif test -f $ac_dir/install.sh; then
     4762  elif test -f "$ac_dir/install.sh"; then
    42674763    ac_aux_dir=$ac_dir
    42684764    ac_install_sh="$ac_aux_dir/install.sh -c"
    42694765    break
    4270   elif test -f $ac_dir/shtool; then
     4766  elif test -f "$ac_dir/shtool"; then
    42714767    ac_aux_dir=$ac_dir
    42724768    ac_install_sh="$ac_aux_dir/shtool install -c"
    … …  
    42754771done
    42764772if test -z "$ac_aux_dir"; then
    4277   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    4278 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     4773  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
     4774echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
    42794775   { (exit 1); exit 1; }; }
    42804776fi
    4281 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    4282 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    4283 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     4777
     4778# These three variables are undocumented and unsupported,
     4779# and are intended to be withdrawn in a future Autoconf release.
     4780# They can cause serious problems if a builder's source tree is in a directory
     4781# whose full name contains unusual characters.
     4782ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
     4783ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
     4784ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
     4785
    42844786
    42854787# Find a good install program.  We prefer a C program (faster),
    … …  
    42964798# OS/2's system install, which has a completely different semantic
    42974799# ./install, which can be erroneously created by make from ./install.sh.
    4298 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    4299 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     4800{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     4801echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
    43004802if test -z "$INSTALL"; then
    43014803if test "${ac_cv_path_install+set}" = set; then
    … …  
    43194821    for ac_prog in ginstall scoinst install; do
    43204822      for ac_exec_ext in '' $ac_executable_extensions; do
    4321         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     4823        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
    43224824          if test $ac_prog = install &&
    43234825            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    … …  
    43384840esac
    43394841done
     4842IFS=$as_save_IFS
    43404843
    43414844
    … …  
    43444847    INSTALL=$ac_cv_path_install
    43454848  else
    4346     # As a last resort, use the slow shell script.  We don't cache a
    4347     # path for INSTALL within a source directory, because that will
     4849    # As a last resort, use the slow shell script.  Don't cache a
     4850    # value for INSTALL within a source directory, because that will
    43484851    # break other packages using the cache if that directory is
    4349     # removed, or if the path is relative.
     4852    # removed, or if the value is a relative name.
    43504853    INSTALL=$ac_install_sh
    43514854  fi
    43524855fi
    4353 echo "$as_me:$LINENO: result: $INSTALL" >&5
    4354 echo "${ECHO_T}$INSTALL" >&6
     4856{ echo "$as_me:$LINENO: result: $INSTALL" >&5
     4857echo "${ECHO_T}$INSTALL" >&6; }
    43554858
    43564859# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    … …  
    43634866
    43644867
    4365 
    4366 
    43674868subdirs="$subdirs libfaim"
    43684869
    43694870
    4370           ac_config_files="$ac_config_files Makefile"
     4871ac_config_files="$ac_config_files Makefile"
     4872
    43714873cat >confcache <<\_ACEOF
    43724874# This file is a shell script that caches the results of configure
    … …  
    43874889# The following way of writing the cache mishandles newlines in values,
    43884890# but we know of no workaround that is simple, portable, and efficient.
    4389 # So, don't put newlines in cache variables' values.
     4891# So, we kill variables containing newlines.
    43904892# Ultrix sh set writes to stderr and can't be redirected directly,
    43914893# and sets the high bit in the cache file unless we assign to the vars.
    4392 {
     4894(
     4895  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
     4896    eval ac_val=\$$ac_var
     4897    case $ac_val in #(
     4898    *${as_nl}*)
     4899      case $ac_var in #(
     4900      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
     4901echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
     4902      esac
     4903      case $ac_var in #(
     4904      _ | IFS | as_nl) ;; #(
     4905      *) $as_unset $ac_var ;;
     4906      esac ;;
     4907    esac
     4908  done
     4909
    43934910  (set) 2>&1 |
    4394     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    4395     *ac_space=\ *)
     4911    case $as_nl`(ac_space=' '; set) 2>&1` in #(
     4912    *${as_nl}ac_space=\ *)
    43964913      # `set' does not quote correctly, so add quotes (double-quote
    43974914      # substitution turns \\\\ into \\, and sed turns \\ into \).
    … …  
    43994916        "s/'/'\\\\''/g;
    44004917          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    4401       ;;
     4918      ;; #(
    44024919    *)
    44034920      # `set' quotes correctly as required by POSIX, so do not add quotes.
    4404       sed -n \
    4405         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     4921      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    44064922      ;;
    4407     esac;
    4408 } |
     4923    esac |
     4924    sort
     4925) |
    44094926  sed '
     4927     /^ac_cv_env_/b end
    44104928     t clear
    4411      : clear
     4929     :clear
    44124930     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    44134931     t end
    4414      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    4415      : end' >>confcache
    4416 if diff $cache_file confcache >/dev/null 2>&1; then :; else
    4417   if test -w $cache_file; then
    4418     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     4932     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     4933     :end' >>confcache
     4934if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
     4935  if test -w "$cache_file"; then
     4936    test "x$cache_file" != "x/dev/null" &&
     4937      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
     4938echo "$as_me: updating cache $cache_file" >&6;}
    44194939    cat confcache >$cache_file
    44204940  else
    4421     echo "not updating unwritable cache $cache_file"
     4941    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
     4942echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    44224943  fi
    44234944fi
    … …  
    44274948# Let make expand exec_prefix.
    44284949test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    4429 
    4430 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    4431 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    4432 # trailing colons and then remove the whole line if VPATH becomes empty
    4433 # (actually we leave an empty line to preserve line numbers).
    4434 if test "x$srcdir" = x.; then
    4435   ac_vpsub='/^[  ]*VPATH[        ]*=/{
    4436 s/:*\$(srcdir):*/:/;
    4437 s/:*\${srcdir}:*/:/;
    4438 s/:*@srcdir@:*/:/;
    4439 s/^\([^=]*=[     ]*\):*/\1/;
    4440 s/:*$//;
    4441 s/^[^=]*=[       ]*$//;
    4442 }'
    4443 fi
    44444950
    44454951DEFS=-DHAVE_CONFIG_H
    … …  
    44494955for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    44504956  # 1. Remove the extension, and $U if already installed.
    4451   ac_i=`echo "$ac_i" |
    4452          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    4453   # 2. Add them.
    4454   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    4455   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     4957  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
     4958  ac_i=`echo "$ac_i" | sed "$ac_script"`
     4959  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
     4960  #    will be set to the directory where LIBOBJS objects are built.
     4961  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     4962  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
    44564963done
    44574964LIBOBJS=$ac_libobjs
    … …  
    44844991## --------------------- ##
    44854992
    4486 # Be Bourne compatible
     4993# Be more Bourne compatible
     4994DUALCASE=1; export DUALCASE # for MKS sh
    44874995if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    44884996  emulate sh
    … …  
    44914999  # is contrary to our usage.  Disable this feature.
    44925000  alias -g '${1+"$@"}'='"$@"'
    4493 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    4494   set -o posix
    4495 fi
    4496 DUALCASE=1; export DUALCASE # for MKS sh
    4497 
    4498 # Support unset when possible.
    4499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    4500   as_unset=unset
    4501 else
    4502   as_unset=false
    4503 fi
    4504 
    4505 
    4506 # Work around bugs in pre-3.0 UWIN ksh.
    4507 $as_unset ENV MAIL MAILPATH
    4508 PS1='$ '
    4509 PS2='> '
    4510 PS4='+ '
    4511 
    4512 # NLS nuisances.
    4513 for as_var in \
    4514   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    4515   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    4516   LC_TELEPHONE LC_TIME
    4517 do
    4518   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    4519     eval $as_var=C; export $as_var
    4520   else
    4521     $as_unset $as_var
    4522   fi
    4523 done
    4524 
    4525 # Required to use basename.
    4526 if expr a : '\(a\)' >/dev/null 2>&1; then
    4527   as_expr=expr
    4528 else
    4529   as_expr=false
    4530 fi
    4531 
    4532 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    4533   as_basename=basename
    4534 else
    4535   as_basename=false
    4536 fi
    4537 
    4538 
    4539 # Name of the executable.
    4540 as_me=`$as_basename "$0" ||
    4541 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    4542          X"$0" : 'X\(//\)$' \| \
    4543          X"$0" : 'X\(/\)$' \| \
    4544          .     : '\(.\)' 2>/dev/null ||
    4545 echo X/"$0" |
    4546     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    4547           /^X\/\(\/\/\)$/{ s//\1/; q; }
    4548           /^X\/\(\/\).*/{ s//\1/; q; }
    4549           s/.*/./; q'`
    4550 
    4551 
    4552 # PATH needs CR, and LINENO needs CR and PATH.
     5001  setopt NO_GLOB_SUBST
     5002else
     5003  case `(set -o) 2>/dev/null` in
     5004  *posix*) set -o posix ;;
     5005esac
     5006
     5007fi
     5008
     5009
     5010
     5011
     5012# PATH needs CR
    45535013# Avoid depending upon Character Ranges.
    45545014as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    … …  
    45715031fi
    45725032
    4573 
    4574   as_lineno_1=$LINENO
    4575   as_lineno_2=$LINENO
    4576   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    4577   test "x$as_lineno_1" != "x$as_lineno_2" &&
    4578   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    4579   # Find who we are.  Look in the path if we contain no path at all
    4580   # relative or not.
    4581   case $0 in
    4582     *[\\/]* ) as_myself=$0 ;;
    4583     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5033# Support unset when possible.
     5034if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     5035  as_unset=unset
     5036else
     5037  as_unset=false
     5038fi
     5039
     5040
     5041# IFS
     5042# We need space, tab and new line, in precisely that order.  Quoting is
     5043# there to prevent editors from complaining about space-tab.
     5044# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     5045# splitting by setting IFS to empty value.)
     5046as_nl='
     5047'
     5048IFS=" ""        $as_nl"
     5049
     5050# Find who we are.  Look in the path if we contain no directory separator.
     5051case $0 in
     5052  *[\\/]* ) as_myself=$0 ;;
     5053  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    45845054for as_dir in $PATH
    45855055do
    … …  
    45885058  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    45895059done
    4590 
    4591        ;;
    4592   esac
    4593   # We did not find ourselves, most probably we were run as `sh COMMAND'
    4594   # in which case we are not to be found in the path.
    4595   if test "x$as_myself" = x; then
    4596     as_myself=$0
     5060IFS=$as_save_IFS
     5061
     5062     ;;
     5063esac
     5064# We did not find ourselves, most probably we were run as `sh COMMAND'
     5065# in which case we are not to be found in the path.
     5066if test "x$as_myself" = x; then
     5067  as_myself=$0
     5068fi
     5069if test ! -f "$as_myself"; then
     5070  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     5071  { (exit 1); exit 1; }
     5072fi
     5073
     5074# Work around bugs in pre-3.0 UWIN ksh.
     5075for as_var in ENV MAIL MAILPATH
     5076do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     5077done
     5078PS1='$ '
     5079PS2='> '
     5080PS4='+ '
     5081
     5082# NLS nuisances.
     5083for as_var in \
     5084  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     5085  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     5086  LC_TELEPHONE LC_TIME
     5087do
     5088  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     5089    eval $as_var=C; export $as_var
     5090  else
     5091    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    45975092  fi
    4598   if test ! -f "$as_myself"; then
    4599     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    4600 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    4601    { (exit 1); exit 1; }; }
    4602   fi
    4603   case $CONFIG_SHELL in
    4604   '')
    4605     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4606 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    4607 do
    4608   IFS=$as_save_IFS
    4609   test -z "$as_dir" && as_dir=.
    4610   for as_base in sh bash ksh sh5; do
    4611          case $as_dir in
    4612          /*)
    4613            if ("$as_dir/$as_base" -c '
     5093done
     5094
     5095# Required to use basename.
     5096if expr a : '\(a\)' >/dev/null 2>&1 &&
     5097   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     5098  as_expr=expr
     5099else
     5100  as_expr=false
     5101fi
     5102
     5103if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
     5104  as_basename=basename
     5105else
     5106  as_basename=false
     5107fi
     5108
     5109
     5110# Name of the executable.
     5111as_me=`$as_basename -- "$0" ||
     5112$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     5113         X"$0" : 'X\(//\)$' \| \
     5114         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     5115echo X/"$0" |
     5116    sed '/^.*\/\([^/][^/]*\)\/*$/{
     5117            s//\1/
     5118            q
     5119          }
     5120          /^X\/\(\/\/\)$/{
     5121            s//\1/
     5122            q
     5123          }
     5124          /^X\/\(\/\).*/{
     5125            s//\1/
     5126            q
     5127          }
     5128          s/.*/./; q'`
     5129
     5130# CDPATH.
     5131$as_unset CDPATH
     5132
     5133
     5134
    46145135  as_lineno_1=$LINENO
    46155136  as_lineno_2=$LINENO
    4616   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    46175137  test "x$as_lineno_1" != "x$as_lineno_2" &&
    4618   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    4619              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    4620              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    4621              CONFIG_SHELL=$as_dir/$as_base
    4622              export CONFIG_SHELL
    4623              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    4624            fi;;
    4625          esac
    4626        done
    4627 done
    4628 ;;
    4629   esac
     5138  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    46305139
    46315140  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    46325141  # uniformly replaced by the line number.  The first 'sed' inserts a
    4633   # line-number line before each line; the second 'sed' does the real
    4634   # work.  The second script uses 'N' to pair each line-number line
    4635   # with the numbered line, and appends trailing '-' during
    4636   # substitution so that $LINENO is not a special case at line end.
     5142  # line-number line after each line using $LINENO; the second 'sed'
     5143  # does the real work.  The second script uses 'N' to pair each
     5144  # line-number line with the line containing $LINENO, and appends
     5145  # trailing '-' during substitution so that $LINENO is not a special
     5146  # case at line end.
    46375147  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    4638   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    4639   sed '=' <$as_myself |
     5148  # scripts with optimization help from Paolo Bonzini.  Blame Lee
     5149  # E. McMahon (1931-1989) for sed's syntax.  :-)
     5150  sed -n '
     5151    p
     5152    /[$]LINENO/=
     5153  ' <$as_myself |
    46405154    sed '
     5155      s/[$]LINENO.*/&-/
     5156      t lineno
     5157      b
     5158      :lineno
    46415159      N
    4642       s,$,-,
    4643       : loop
    4644       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     5160      :loop
     5161      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    46455162      t loop
    4646       s,-$,,
    4647       s,^['$as_cr_digits']*\n,,
     5163      s/-\n.*//
    46485164    ' >$as_me.lineno &&
    4649   chmod +x $as_me.lineno ||
    4650     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    4651 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
     5165  chmod +x "$as_me.lineno" ||
     5166    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    46525167   { (exit 1); exit 1; }; }
    46535168
    46545169  # Don't try to exec as it changes $[0], causing all sort of problems
    46555170  # (the dirname of $[0] is not the place where we might find the
    4656   # original and so on.  Autoconf is especially sensible to this).
    4657   . ./$as_me.lineno
     5171  # original and so on.  Autoconf is especially sensitive to this).
     5172  . "./$as_me.lineno"
    46585173  # Exit status is that of the last command.
    46595174  exit
    … …  
    46615176
    46625177
    4663 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    4664   *c*,-n*) ECHO_N= ECHO_C='
    4665 ' ECHO_T='      ' ;;
    4666   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    4667   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    4668 esac
    4669 
    4670 if expr a : '\(a\)' >/dev/null 2>&1; then
     5178if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     5179  as_dirname=dirname
     5180else
     5181  as_dirname=false
     5182fi
     5183
     5184ECHO_C= ECHO_N= ECHO_T=
     5185case `echo -n x` in
     5186-n*)
     5187  case `echo 'x\c'` in
     5188  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
     5189  *)   ECHO_C='\c';;
     5190  esac;;
     5191*)
     5192  ECHO_N='-n';;
     5193esac
     5194
     5195if expr a : '\(a\)' >/dev/null 2>&1 &&
     5196   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    46715197  as_expr=expr
    46725198else
    … …  
    46755201
    46765202rm -f conf$$ conf$$.exe conf$$.file
     5203if test -d conf$$.dir; then
     5204  rm -f conf$$.dir/conf$$.file
     5205else
     5206  rm -f conf$$.dir
     5207  mkdir conf$$.dir
     5208fi
    46775209echo >conf$$.file
    46785210if ln -s conf$$.file conf$$ 2>/dev/null; then
    4679   # We could just check for DJGPP; but this test a) works b) is more generic
    4680   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    4681   if test -f conf$$.exe; then
    4682     # Don't use ln at all; we don't have any links
     5211  as_ln_s='ln -s'
     5212  # ... but there are two gotchas:
     5213  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     5214  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     5215  # In both cases, we have to default to `cp -p'.
     5216  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    46835217    as_ln_s='cp -p'
    4684   else
    4685     as_ln_s='ln -s'
    4686   fi
    46875218elif ln conf$$.file conf$$ 2>/dev/null; then
    46885219  as_ln_s=ln
    … …  
    46905221  as_ln_s='cp -p'
    46915222fi
    4692 rm -f conf$$ conf$$.exe conf$$.file
     5223rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     5224rmdir conf$$.dir 2>/dev/null
    46935225
    46945226if mkdir -p . 2>/dev/null; then
    … …  
    46995231fi
    47005232
    4701 as_executable_p="test -f"
     5233if test -x / >/dev/null 2>&1; then
     5234  as_test_x='test -x'
     5235else
     5236  if ls -dL / >/dev/null 2>&1; then
     5237    as_ls_L_option=L
     5238  else
     5239    as_ls_L_option=
     5240  fi
     5241  as_test_x='
     5242    eval sh -c '\''
     5243      if test -d "$1"; then
     5244        test -d "$1/.";
     5245      else
     5246        case $1 in
     5247        -*)set "./$1";;
     5248        esac;
     5249        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
     5250        ???[sx]*):;;*)false;;esac;fi
     5251    '\'' sh
     5252  '
     5253fi
     5254as_executable_p=$as_test_x
    47025255
    47035256# Sed expression to map a string onto a valid CPP name.
    … …  
    47085261
    47095262
    4710 # IFS
    4711 # We need space, tab and new line, in precisely that order.
    4712 as_nl='
    4713 '
    4714 IFS="   $as_nl"
    4715 
    4716 # CDPATH.
    4717 $as_unset CDPATH
    4718 
    47195263exec 6>&1
    47205264
    4721 # Open the log real soon, to keep \$[0] and so on meaningful, and to
     5265# Save the log message, to keep $[0] and so on meaningful, and to
    47225266# report actual input values of CONFIG_FILES etc. instead of their
    4723 # values after options handling.  Logging --version etc. is OK.
    4724 exec 5>>config.log
    4725 {
    4726   echo
    4727   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
    4728 ## Running $as_me. ##
    4729 _ASBOX
    4730 } >&5
    4731 cat >&5 <<_CSEOF
    4732 
     5267# values after options handling.
     5268ac_log="
    47335269This file was extended by $as_me, which was
    4734 generated by GNU Autoconf 2.59.  Invocation command line was
     5270generated by GNU Autoconf 2.61.  Invocation command line was
    47355271
    47365272  CONFIG_FILES    = $CONFIG_FILES
    … …  
    47405276  $ $0 $@
    47415277
    4742 _CSEOF
    4743 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    4744 echo >&5
    4745 _ACEOF
    4746 
     5278on `(hostname || uname -n) 2>/dev/null | sed 1q`
     5279"
     5280
     5281_ACEOF
     5282
     5283cat >>$CONFIG_STATUS <<_ACEOF
    47475284# Files that config.status was made for.
    4748 if test -n "$ac_config_files"; then
    4749   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    4750 fi
    4751 
    4752 if test -n "$ac_config_headers"; then
    4753   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    4754 fi
    4755 
    4756 if test -n "$ac_config_links"; then
    4757   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    4758 fi
    4759 
    4760 if test -n "$ac_config_commands"; then
    4761   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    4762 fi
     5285config_files="$ac_config_files"
     5286config_headers="$ac_config_headers"
     5287
     5288_ACEOF
    47635289
    47645290cat >>$CONFIG_STATUS <<\_ACEOF
    4765 
    47665291ac_cs_usage="\
    47675292\`$as_me' instantiates files from templates according to the
    … …  
    47715296
    47725297  -h, --help       print this help, then exit
    4773   -V, --version    print version number, then exit
     5298  -V, --version    print version number and configuration settings, then exit
    47745299  -q, --quiet      do not print progress messages
    47755300  -d, --debug      don't remove temporary files
    … …  
    47875312
    47885313Report bugs to <bug-autoconf@gnu.org>."
    4789 _ACEOF
    4790 
     5314
     5315_ACEOF
    47915316cat >>$CONFIG_STATUS <<_ACEOF
    47925317ac_cs_version="\\
    47935318config.status
    4794 configured by $0, generated by GNU Autoconf 2.59,
    4795   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    4796 
    4797 Copyright (C) 2003 Free Software Foundation, Inc.
     5319configured by $0, generated by GNU Autoconf 2.61,
     5320  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
     5321
     5322Copyright (C) 2006 Free Software Foundation, Inc.
    47985323This config.status script is free software; the Free Software Foundation
    47995324gives unlimited permission to copy, distribute and modify it."
    4800 srcdir=$srcdir
    4801 INSTALL="$INSTALL"
     5325
     5326ac_pwd='$ac_pwd'
     5327srcdir='$srcdir'
     5328INSTALL='$INSTALL'
    48025329_ACEOF
    48035330
    … …  
    48105337  case $1 in
    48115338  --*=*)
    4812     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    4813     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     5339    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     5340    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    48145341    ac_shift=:
    48155342    ;;
    4816   -*)
     5343  *)
    48175344    ac_option=$1
    48185345    ac_optarg=$2
    48195346    ac_shift=shift
    48205347    ;;
    4821   *) # This is not an option, so the user has probably given explicit
    4822      # arguments.
    4823      ac_option=$1
    4824      ac_need_defaults=false;;
    48255348  esac
    48265349
    48275350  case $ac_option in
    48285351  # Handling of the options.
    4829 _ACEOF
    4830 cat >>$CONFIG_STATUS <<\_ACEOF
    48315352  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    48325353    ac_cs_recheck=: ;;
    4833   --version | --vers* | -V )
    4834     echo "$ac_cs_version"; exit 0 ;;
    4835   --he | --h)
    4836     # Conflict between --help and --header
    4837     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    4838 Try \`$0 --help' for more information." >&5
    4839 echo "$as_me: error: ambiguous option: $1
    4840 Try \`$0 --help' for more information." >&2;}
    4841    { (exit 1); exit 1; }; };;
    4842   --help | --hel | -h )
    4843     echo "$ac_cs_usage"; exit 0 ;;
    4844   --debug | --d* | -d )
     5354  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
     5355    echo "$ac_cs_version"; exit ;;
     5356  --debug | --debu | --deb | --de | --d | -d )
    48455357    debug=: ;;
    48465358  --file | --fil | --fi | --f )
    … …  
    48525364    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    48535365    ac_need_defaults=false;;
     5366  --he | --h)
     5367    # Conflict between --help and --header
     5368    { echo "$as_me: error: ambiguous option: $1
     5369Try \`$0 --help' for more information." >&2
     5370   { (exit 1); exit 1; }; };;
     5371  --help | --hel | -h )
     5372    echo "$ac_cs_usage"; exit ;;
    48545373  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    48555374  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    … …  
    48575376
    48585377  # This is an error.
    4859   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    4860 Try \`$0 --help' for more information." >&5
    4861 echo "$as_me: error: unrecognized option: $1
    4862 Try \`$0 --help' for more information." >&2;}
     5378  -*) { echo "$as_me: error: unrecognized option: $1
     5379Try \`$0 --help' for more information." >&2
    48635380   { (exit 1); exit 1; }; } ;;
    48645381
    4865   *) ac_config_targets="$ac_config_targets $1" ;;
     5382  *) ac_config_targets="$ac_config_targets $1"
     5383     ac_need_defaults=false ;;
    48665384
    48675385  esac
    … …  
    48795397cat >>$CONFIG_STATUS <<_ACEOF
    48805398if \$ac_cs_recheck; then
    4881   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    4882   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    4883 fi
    4884 
    4885 _ACEOF
    4886 
    4887 
    4888 
    4889 
    4890 
     5399  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
     5400  CONFIG_SHELL=$SHELL
     5401  export CONFIG_SHELL
     5402  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     5403fi
     5404
     5405_ACEOF
    48915406cat >>$CONFIG_STATUS <<\_ACEOF
     5407exec 5>>config.log
     5408{
     5409  echo
     5410  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     5411## Running $as_me. ##
     5412_ASBOX
     5413  echo "$ac_log"
     5414} >&5
     5415
     5416_ACEOF
     5417cat >>$CONFIG_STATUS <<_ACEOF
     5418_ACEOF
     5419
     5420cat >>$CONFIG_STATUS <<\_ACEOF
     5421
     5422# Handling of arguments.
    48925423for ac_config_target in $ac_config_targets
    48935424do
    4894   case "$ac_config_target" in
    4895   # Handling of arguments.
    4896   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    4897   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     5425  case $ac_config_target in
     5426    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     5427    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     5428
    48985429  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    48995430echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    … …  
    49015432  esac
    49025433done
     5434
    49035435
    49045436# If the user did not use the arguments to specify the items to instantiate,
    … …  
    49125444
    49135445# Have a temporary directory for convenience.  Make it in the build tree
    4914 # simply because there is no reason to put it here, and in addition,
     5446# simply because there is no reason against having it here, and in addition,
    49155447# creating and moving files from /tmp can sometimes cause problems.
    4916 # Create a temporary directory, and hook for its removal unless debugging.
     5448# Hook for its removal unless debugging.
     5449# Note that there is a small window in which the directory will not be cleaned:
     5450# after its creation but before its name has been assigned to `$tmp'.
    49175451$debug ||
    49185452{
    4919   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     5453  tmp=
     5454  trap 'exit_status=$?
     5455  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
     5456' 0
    49205457  trap '{ (exit 1); exit 1; }' 1 2 13 15
    49215458}
    4922 
    49235459# Create a (secure) tmp directory for tmp files.
    49245460
    49255461{
    4926   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     5462  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    49275463  test -n "$tmp" && test -d "$tmp"
    49285464}  ||
    49295465{
    4930   tmp=./confstat$$-$RANDOM
    4931   (umask 077 && mkdir $tmp)
     5466  tmp=./conf$$-$RANDOM
     5467  (umask 077 && mkdir "$tmp")
    49325468} ||
    49335469{
    … …  
    49365472}
    49375473
    4938 _ACEOF
    4939 
    4940 cat >>$CONFIG_STATUS <<_ACEOF
    4941 
    49425474#
    4943 # CONFIG_FILES section.
     5475# Set up the sed scripts for CONFIG_FILES section.
    49445476#
    49455477
    49465478# No need to generate the scripts if there are no CONFIG_FILES.
    49475479# This happens for instance when ./config.status config.h
    4948 if test -n "\$CONFIG_FILES"; then
    4949   # Protect against being on the right side of a sed subst in config.status.
    4950   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    4951    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    4952 s,@SHELL@,$SHELL,;t t
    4953 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    4954 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    4955 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    4956 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    4957 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    4958 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    4959 s,@exec_prefix@,$exec_prefix,;t t
    4960 s,@prefix@,$prefix,;t t
    4961 s,@program_transform_name@,$program_transform_name,;t t
    4962 s,@bindir@,$bindir,;t t
    4963 s,@sbindir@,$sbindir,;t t
    4964 s,@libexecdir@,$libexecdir,;t t
    4965 s,@datadir@,$datadir,;t t
    4966 s,@sysconfdir@,$sysconfdir,;t t
    4967 s,@sharedstatedir@,$sharedstatedir,;t t
    4968 s,@localstatedir@,$localstatedir,;t t
    4969 s,@libdir@,$libdir,;t t
    4970 s,@includedir@,$includedir,;t t
    4971 s,@oldincludedir@,$oldincludedir,;t t
    4972 s,@infodir@,$infodir,;t t
    4973 s,@mandir@,$mandir,;t t
    4974 s,@build_alias@,$build_alias,;t t
    4975 s,@host_alias@,$host_alias,;t t
    4976 s,@target_alias@,$target_alias,;t t
    4977 s,@DEFS@,$DEFS,;t t
    4978 s,@ECHO_C@,$ECHO_C,;t t
    4979 s,@ECHO_N@,$ECHO_N,;t t
    4980 s,@ECHO_T@,$ECHO_T,;t t
    4981 s,@LIBS@,$LIBS,;t t
    4982 s,@CC@,$CC,;t t
    4983 s,@CFLAGS@,$CFLAGS,;t t
    4984 s,@LDFLAGS@,$LDFLAGS,;t t
    4985 s,@CPPFLAGS@,$CPPFLAGS,;t t
    4986 s,@ac_ct_CC@,$ac_ct_CC,;t t
    4987 s,@EXEEXT@,$EXEEXT,;t t
    4988 s,@OBJEXT@,$OBJEXT,;t t
    4989 s,@CPP@,$CPP,;t t
    4990 s,@EGREP@,$EGREP,;t t
    4991 s,@XSUBPPDIR@,$XSUBPPDIR,;t t
    4992 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    4993 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    4994 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    4995 s,@subdirs@,$subdirs,;t t
    4996 s,@LIBOBJS@,$LIBOBJS,;t t
    4997 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    4998 CEOF
    4999 
    5000 _ACEOF
    5001 
    5002   cat >>$CONFIG_STATUS <<\_ACEOF
    5003   # Split the substitutions into bite-sized pieces for seds with
    5004   # small command number limits, like on Digital OSF/1 and HP-UX.
    5005   ac_max_sed_lines=48
    5006   ac_sed_frag=1 # Number of current file.
    5007   ac_beg=1 # First line for current file.
    5008   ac_end=$ac_max_sed_lines # Line after last line for current file.
    5009   ac_more_lines=:
    5010   ac_sed_cmds=
    5011   while $ac_more_lines; do
    5012     if test $ac_beg -gt 1; then
    5013       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    5014     else
    5015       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     5480if test -n "$CONFIG_FILES"; then
     5481
     5482_ACEOF
     5483
     5484
     5485
     5486ac_delim='%!_!# '
     5487for ac_last_try in false false false false false :; do
     5488  cat >conf$$subs.sed <<_ACEOF
     5489SHELL!$SHELL$ac_delim
     5490PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
     5491PACKAGE_NAME!$PACKAGE_NAME$ac_delim
     5492PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
     5493PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
     5494PACKAGE_STRING!$PACKAGE_STRING$ac_delim
     5495PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
     5496exec_prefix!$exec_prefix$ac_delim
     5497prefix!$prefix$ac_delim
     5498program_transform_name!$program_transform_name$ac_delim
     5499bindir!$bindir$ac_delim
     5500sbindir!$sbindir$ac_delim
     5501libexecdir!$libexecdir$ac_delim
     5502datarootdir!$datarootdir$ac_delim
     5503datadir!$datadir$ac_delim
     5504sysconfdir!$sysconfdir$ac_delim
     5505sharedstatedir!$sharedstatedir$ac_delim
     5506localstatedir!$localstatedir$ac_delim
     5507includedir!$includedir$ac_delim
     5508oldincludedir!$oldincludedir$ac_delim
     5509docdir!$docdir$ac_delim
     5510infodir!$infodir$ac_delim
     5511htmldir!$htmldir$ac_delim
     5512dvidir!$dvidir$ac_delim
     5513pdfdir!$pdfdir$ac_delim
     5514psdir!$psdir$ac_delim
     5515libdir!$libdir$ac_delim
     5516localedir!$localedir$ac_delim
     5517mandir!$mandir$ac_delim
     5518DEFS!$DEFS$ac_delim
     5519ECHO_C!$ECHO_C$ac_delim
     5520ECHO_N!$ECHO_N$ac_delim
     5521ECHO_T!$ECHO_T$ac_delim
     5522LIBS!$LIBS$ac_delim
     5523build_alias!$build_alias$ac_delim
     5524host_alias!$host_alias$ac_delim
     5525target_alias!$target_alias$ac_delim
     5526CC!$CC$ac_delim
     5527CFLAGS!$CFLAGS$ac_delim
     5528LDFLAGS!$LDFLAGS$ac_delim
     5529CPPFLAGS!$CPPFLAGS$ac_delim
     5530ac_ct_CC!$ac_ct_CC$ac_delim
     5531EXEEXT!$EXEEXT$ac_delim
     5532OBJEXT!$OBJEXT$ac_delim
     5533CPP!$CPP$ac_delim
     5534GREP!$GREP$ac_delim
     5535EGREP!$EGREP$ac_delim
     5536XSUBPPDIR!$XSUBPPDIR$ac_delim
     5537INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
     5538INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
     5539INSTALL_DATA!$INSTALL_DATA$ac_delim
     5540subdirs!$subdirs$ac_delim
     5541LIBOBJS!$LIBOBJS$ac_delim
     5542LTLIBOBJS!$LTLIBOBJS$ac_delim
     5543_ACEOF
     5544
     5545  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
     5546    break
     5547  elif $ac_last_try; then
     5548    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
     5549echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
     5550   { (exit 1); exit 1; }; }
     5551  else
     5552    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     5553  fi
     5554done
     5555
     5556ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
     5557if test -n "$ac_eof"; then
     5558  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
     5559  ac_eof=`expr $ac_eof + 1`
     5560fi
     5561
     5562cat >>$CONFIG_STATUS <<_ACEOF
     5563cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
     5564/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
     5565_ACEOF
     5566sed '
     5567s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
     5568s/^/s,@/; s/!/@,|#_!!_#|/
     5569:n
     5570t n
     5571s/'"$ac_delim"'$/,g/; t
     5572s/$/\\/; p
     5573N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
     5574' >>$CONFIG_STATUS <conf$$subs.sed
     5575rm -f conf$$subs.sed
     5576cat >>$CONFIG_STATUS <<_ACEOF
     5577:end
     5578s/|#_!!_#|//g
     5579CEOF$ac_eof
     5580_ACEOF
     5581
     5582
     5583# VPATH may cause trouble with some makes, so we remove $(srcdir),
     5584# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     5585# trailing colons and then remove the whole line if VPATH becomes empty
     5586# (actually we leave an empty line to preserve line numbers).
     5587if test "x$srcdir" = x.; then
     5588  ac_vpsub='/^[  ]*VPATH[        ]*=/{
     5589s/:*\$(srcdir):*/:/
     5590s/:*\${srcdir}:*/:/
     5591s/:*@srcdir@:*/:/
     5592s/^\([^=]*=[     ]*\):*/\1/
     5593s/:*$//
     5594s/^[^=]*=[       ]*$//
     5595}'
     5596fi
     5597
     5598cat >>$CONFIG_STATUS <<\_ACEOF
     5599fi # test -n "$CONFIG_FILES"
     5600
     5601
     5602for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
     5603do
     5604  case $ac_tag in
     5605  :[FHLC]) ac_mode=$ac_tag; continue;;
     5606  esac
     5607  case $ac_mode$ac_tag in
     5608  :[FHL]*:*);;
     5609  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
     5610echo "$as_me: error: Invalid tag $ac_tag." >&2;}
     5611   { (exit 1); exit 1; }; };;
     5612  :[FH]-) ac_tag=-:-;;
     5613  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     5614  esac
     5615  ac_save_IFS=$IFS
     5616  IFS=:
     5617  set x $ac_tag
     5618  IFS=$ac_save_IFS
     5619  shift
     5620  ac_file=$1
     5621  shift
     5622
     5623  case $ac_mode in
     5624  :L) ac_source=$1;;
     5625  :[FH])
     5626    ac_file_inputs=
     5627    for ac_f
     5628    do
     5629      case $ac_f in
     5630      -) ac_f="$tmp/stdin";;
     5631      *) # Look for the file first in the build tree, then in the source tree
     5632         # (if the path is not absolute).  The absolute path cannot be DOS-style,
     5633         # because $ac_f cannot contain `:'.
     5634         test -f "$ac_f" ||
     5635           case $ac_f in
     5636           [\\/$]*) false;;
     5637           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
     5638           esac ||
     5639           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
     5640echo "$as_me: error: cannot find input file: $ac_f" >&2;}
     5641   { (exit 1); exit 1; }; };;
     5642      esac
     5643      ac_file_inputs="$ac_file_inputs $ac_f"
     5644    done
     5645
     5646    # Let's still pretend it is `configure' which instantiates (i.e., don't
     5647    # use $as_me), people would be surprised to read:
     5648    #    /* config.h.  Generated by config.status.  */
     5649    configure_input="Generated from "`IFS=:
     5650          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
     5651    if test x"$ac_file" != x-; then
     5652      configure_input="$ac_file.  $configure_input"
     5653      { echo "$as_me:$LINENO: creating $ac_file" >&5
     5654echo "$as_me: creating $ac_file" >&6;}
    50165655    fi
    5017     if test ! -s $tmp/subs.frag; then
    5018       ac_more_lines=false
    5019     else
    5020       # The purpose of the label and of the branching condition is to
    5021       # speed up the sed processing (if there are no `@' at all, there
    5022       # is no need to browse any of the substitutions).
    5023       # These are the two extra sed commands mentioned above.
    5024       (echo ':t
    5025   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    5026       if test -z "$ac_sed_cmds"; then
    5027         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    5028       else
    5029         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    5030       fi
    5031       ac_sed_frag=`expr $ac_sed_frag + 1`
    5032       ac_beg=$ac_end
    5033       ac_end=`expr $ac_end + $ac_max_sed_lines`
    5034     fi
    5035   done
    5036   if test -z "$ac_sed_cmds"; then
    5037     ac_sed_cmds=cat
    5038   fi
    5039 fi # test -n "$CONFIG_FILES"
    5040 
    5041 _ACEOF
    5042 cat >>$CONFIG_STATUS <<\_ACEOF
    5043 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    5044   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    5045   case $ac_file in
    5046   - | *:- | *:-:* ) # input from stdin
    5047         cat >$tmp/stdin
    5048         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5049         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5050   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5051         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5052   * )   ac_file_in=$ac_file.in ;;
     5656
     5657    case $ac_tag in
     5658    *:-:* | *:-) cat >"$tmp/stdin";;
     5659    esac
     5660    ;;
    50535661  esac
    50545662
    5055   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    5056   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     5663  ac_dir=`$as_dirname -- "$ac_file" ||
    50575664$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    50585665         X"$ac_file" : 'X\(//\)[^/]' \| \
    50595666         X"$ac_file" : 'X\(//\)$' \| \
    5060          X"$ac_file" : 'X\(/\)' \| \
    5061          .     : '\(.\)' 2>/dev/null ||
     5667         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
    50625668echo X"$ac_file" |
    5063     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    5064           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    5065           /^X\(\/\/\)$/{ s//\1/; q; }
    5066           /^X\(\/\).*/{ s//\1/; q; }
    5067           s/.*/./; q'`
    5068   { if $as_mkdir_p; then
    5069     mkdir -p "$ac_dir"
    5070   else
    5071     as_dir="$ac_dir"
     5669    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     5670            s//\1/
     5671            q
     5672          }
     5673          /^X\(\/\/\)[^/].*/{
     5674            s//\1/
     5675            q
     5676          }
     5677          /^X\(\/\/\)$/{
     5678            s//\1/
     5679            q
     5680          }
     5681          /^X\(\/\).*/{
     5682            s//\1/
     5683            q
     5684          }
     5685          s/.*/./; q'`
     5686  { as_dir="$ac_dir"
     5687  case $as_dir in #(
     5688  -*) as_dir=./$as_dir;;
     5689  esac
     5690  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    50725691    as_dirs=
    5073     while test ! -d "$as_dir"; do
    5074       as_dirs="$as_dir $as_dirs"
    5075       as_dir=`(dirname "$as_dir") 2>/dev/null ||
     5692    while :; do
     5693      case $as_dir in #(
     5694      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
     5695      *) as_qdir=$as_dir;;
     5696      esac
     5697      as_dirs="'$as_qdir' $as_dirs"
     5698      as_dir=`$as_dirname -- "$as_dir" ||
    50765699$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    50775700         X"$as_dir" : 'X\(//\)[^/]' \| \
    50785701         X"$as_dir" : 'X\(//\)$' \| \
    5079          X"$as_dir" : 'X\(/\)' \| \
    5080          .     : '\(.\)' 2>/dev/null ||
     5702         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    50815703echo X"$as_dir" |
    5082     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    5083           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    5084           /^X\(\/\/\)$/{ s//\1/; q; }
    5085           /^X\(\/\).*/{ s//\1/; q; }
    5086           s/.*/./; q'`
     5704    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     5705            s//\1/
     5706            q
     5707          }
     5708          /^X\(\/\/\)[^/].*/{
     5709            s//\1/
     5710            q
     5711          }
     5712          /^X\(\/\/\)$/{
     5713            s//\1/
     5714            q
     5715          }
     5716          /^X\(\/\).*/{
     5717            s//\1/
     5718            q
     5719          }
     5720          s/.*/./; q'`
     5721      test -d "$as_dir" && break
    50875722    done
    5088     test ! -n "$as_dirs" || mkdir $as_dirs
    5089   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    5090 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     5723    test -z "$as_dirs" || eval "mkdir $as_dirs"
     5724  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
     5725echo "$as_me: error: cannot create directory $as_dir" >&2;}
    50915726   { (exit 1); exit 1; }; }; }
    5092 
    50935727  ac_builddir=.
    50945728
    5095 if test "$ac_dir" != .; then
     5729case "$ac_dir" in
     5730.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     5731*)
    50965732  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    5097   # A "../" for each directory in $ac_dir_suffix.
    5098   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    5099 else
    5100   ac_dir_suffix= ac_top_builddir=
    5101 fi
     5733  # A ".." for each directory in $ac_dir_suffix.
     5734  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
     5735  case $ac_top_builddir_sub in
     5736  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     5737  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     5738  esac ;;
     5739esac
     5740ac_abs_top_builddir=$ac_pwd
     5741ac_abs_builddir=$ac_pwd$ac_dir_suffix
     5742# for backward compatibility:
     5743ac_top_builddir=$ac_top_build_prefix
    51025744
    51035745case $srcdir in
    5104   .)  # No --srcdir option.  We are building in place.
     5746  .)  # We are building in place.
    51055747    ac_srcdir=.
    5106     if test -z "$ac_top_builddir"; then
    5107        ac_top_srcdir=.
    5108     else
    5109        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    5110     fi ;;
    5111   [\\/]* | ?:[\\/]* )  # Absolute path.
     5748    ac_top_srcdir=$ac_top_builddir_sub
     5749    ac_abs_top_srcdir=$ac_pwd ;;
     5750  [\\/]* | ?:[\\/]* )  # Absolute name.
    51125751    ac_srcdir=$srcdir$ac_dir_suffix;
    5113     ac_top_srcdir=$srcdir ;;
    5114   *) # Relative path.
    5115     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    5116     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    5117 esac
    5118 
    5119 # Do not use `cd foo && pwd` to compute absolute paths, because
    5120 # the directories may not exist.
    5121 case `pwd` in
    5122 .) ac_abs_builddir="$ac_dir";;
    5123 *)
    5124   case "$ac_dir" in
    5125   .) ac_abs_builddir=`pwd`;;
    5126   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    5127   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    5128   esac;;
    5129 esac
    5130 case $ac_abs_builddir in
    5131 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    5132 *)
    5133   case ${ac_top_builddir}. in
    5134   .) ac_abs_top_builddir=$ac_abs_builddir;;
    5135   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    5136   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    5137   esac;;
    5138 esac
    5139 case $ac_abs_builddir in
    5140 .) ac_abs_srcdir=$ac_srcdir;;
    5141 *)
    5142   case $ac_srcdir in
    5143   .) ac_abs_srcdir=$ac_abs_builddir;;
    5144   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    5145   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    5146   esac;;
    5147 esac
    5148 case $ac_abs_builddir in
    5149 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    5150 *)
    5151   case $ac_top_srcdir in
    5152   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    5153   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    5154   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    5155   esac;;
    5156 esac
    5157 
     5752    ac_top_srcdir=$srcdir
     5753    ac_abs_top_srcdir=$srcdir ;;
     5754  *) # Relative name.
     5755    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     5756    ac_top_srcdir=$ac_top_build_prefix$srcdir
     5757    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     5758esac
     5759ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     5760
     5761
     5762  case $ac_mode in
     5763  :F)
     5764  #
     5765  # CONFIG_FILE
     5766  #
    51585767
    51595768  case $INSTALL in
    51605769  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    5161   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     5770  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    51625771  esac
    5163 
    5164   if test x"$ac_file" != x-; then
    5165     { echo "$as_me:$LINENO: creating $ac_file" >&5
    5166 echo "$as_me: creating $ac_file" >&6;}
    5167     rm -f "$ac_file"
    5168   fi
    5169   # Let's still pretend it is `configure' which instantiates (i.e., don't
    5170   # use $as_me), people would be surprised to read:
    5171   #    /* config.h.  Generated by config.status.  */
    5172   if test x"$ac_file" = x-; then
    5173     configure_input=
    5174   else
    5175     configure_input="$ac_file.  "
    5176   fi
    5177   configure_input=$configure_input"Generated from `echo $ac_file_in |
    5178                                      sed 's,.*/,,'` by configure."
    5179 
    5180   # First look for the input files in the build tree, otherwise in the
    5181   # src tree.
    5182   ac_file_inputs=`IFS=:
    5183     for f in $ac_file_in; do
    5184       case $f in
    5185       -) echo $tmp/stdin ;;
    5186       [\\/$]*)
    5187          # Absolute (can't be DOS-style, as IFS=:)
    5188          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    5189 echo "$as_me: error: cannot find input file: $f" >&2;}
    5190    { (exit 1); exit 1; }; }
    5191          echo "$f";;
    5192       *) # Relative
    5193          if test -f "$f"; then
    5194            # Build tree
    5195            echo "$f"
    5196          elif test -f "$srcdir/$f"; then
    5197            # Source tree
    5198            echo "$srcdir/$f"
    5199          else
    5200            # /dev/null tree
    5201            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    5202 echo "$as_me: error: cannot find input file: $f" >&2;}
    5203    { (exit 1); exit 1; }; }
    5204          fi;;
    5205       esac
    5206     done` || { (exit 1); exit 1; }
    5207 _ACEOF
     5772_ACEOF
     5773
     5774cat >>$CONFIG_STATUS <<\_ACEOF
     5775# If the template does not know about datarootdir, expand it.
     5776# FIXME: This hack should be removed a few years after 2.60.
     5777ac_datarootdir_hack=; ac_datarootdir_seen=
     5778
     5779case `sed -n '/datarootdir/ {
     5780  p
     5781  q
     5782}
     5783/@datadir@/p
     5784/@docdir@/p
     5785/@infodir@/p
     5786/@localedir@/p
     5787/@mandir@/p
     5788' $ac_file_inputs` in
     5789*datarootdir*) ac_datarootdir_seen=yes;;
     5790*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
     5791  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     5792echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     5793_ACEOF
     5794cat >>$CONFIG_STATUS <<_ACEOF
     5795  ac_datarootdir_hack='
     5796  s&@datadir@&$datadir&g
     5797  s&@docdir@&$docdir&g
     5798  s&@infodir@&$infodir&g
     5799  s&@localedir@&$localedir&g
     5800  s&@mandir@&$mandir&g
     5801    s&\\\${datarootdir}&$datarootdir&g' ;;
     5802esac
     5803_ACEOF
     5804
     5805# Neutralize VPATH when `$srcdir' = `.'.
     5806# Shell code in configure.ac might set extrasub.
     5807# FIXME: do we really want to maintain this feature?
    52085808cat >>$CONFIG_STATUS <<_ACEOF
    52095809  sed "$ac_vpsub
    … …  
    52135813:t
    52145814/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    5215 s,@configure_input@,$configure_input,;t t
    5216 s,@srcdir@,$ac_srcdir,;t t
    5217 s,@abs_srcdir@,$ac_abs_srcdir,;t t
    5218 s,@top_srcdir@,$ac_top_srcdir,;t t
    5219 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    5220 s,@builddir@,$ac_builddir,;t t
    5221 s,@abs_builddir@,$ac_abs_builddir,;t t
    5222 s,@top_builddir@,$ac_top_builddir,;t t
    5223 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    5224 s,@INSTALL@,$ac_INSTALL,;t t
    5225 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    5226   rm -f $tmp/stdin
    5227   if test x"$ac_file" != x-; then
    5228     mv $tmp/out $ac_file
    5229   else
    5230     cat $tmp/out
    5231     rm -f $tmp/out
    5232   fi
    5233 
    5234 done
    5235 _ACEOF
    5236 cat >>$CONFIG_STATUS <<\_ACEOF
    5237 
    5238 #
    5239 # CONFIG_HEADER section.
    5240 #
    5241 
    5242 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
    5243 # NAME is the cpp macro being defined and VALUE is the value it is being given.
    5244 #
    5245 # ac_d sets the value in "#define NAME VALUE" lines.
    5246 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
    5247 ac_dB='[         ].*$,\1#\2'
     5815s&@configure_input@&$configure_input&;t t
     5816s&@top_builddir@&$ac_top_builddir_sub&;t t
     5817s&@srcdir@&$ac_srcdir&;t t
     5818s&@abs_srcdir@&$ac_abs_srcdir&;t t
     5819s&@top_srcdir@&$ac_top_srcdir&;t t
     5820s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
     5821s&@builddir@&$ac_builddir&;t t
     5822s&@abs_builddir@&$ac_abs_builddir&;t t
     5823s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
     5824s&@INSTALL@&$ac_INSTALL&;t t
     5825$ac_datarootdir_hack
     5826" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
     5827
     5828test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     5829  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
     5830  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
     5831  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     5832which seems to be undefined.  Please make sure it is defined." >&5
     5833echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     5834which seems to be undefined.  Please make sure it is defined." >&2;}
     5835
     5836  rm -f "$tmp/stdin"
     5837  case $ac_file in
     5838  -) cat "$tmp/out"; rm -f "$tmp/out";;
     5839  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
     5840  esac
     5841 ;;
     5842  :H)
     5843  #
     5844  # CONFIG_HEADER
     5845  #
     5846_ACEOF
     5847
     5848# Transform confdefs.h into a sed script `conftest.defines', that
     5849# substitutes the proper values into config.h.in to produce config.h.
     5850rm -f conftest.defines conftest.tail
     5851# First, append a space to every undef/define line, to ease matching.
     5852echo 's/$/ /' >conftest.defines
     5853# Then, protect against being on the right side of a sed subst, or in
     5854# an unquoted here document, in config.status.  If some macros were
     5855# called several times there might be several #defines for the same
     5856# symbol, which is useless.  But do not sort them, since the last
     5857# AC_DEFINE must be honored.
     5858ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     5859# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
     5860# NAME is the cpp macro being defined, VALUE is the value it is being given.
     5861# PARAMS is the parameter list in the macro definition--in most cases, it's
     5862# just an empty string.
     5863ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
     5864ac_dB='\\)[      (].*,\\1define\\2'
    52485865ac_dC=' '
    5249 ac_dD=',;t'
    5250 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    5251 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    5252 ac_uB='$,\1#\2define\3'
    5253 ac_uC=' '
    5254 ac_uD=',;t'
    5255 
    5256 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    5257   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    5258   case $ac_file in
    5259   - | *:- | *:-:* ) # input from stdin
    5260         cat >$tmp/stdin
    5261         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5262         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5263   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    5264         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    5265   * )   ac_file_in=$ac_file.in ;;
    5266   esac
    5267 
    5268   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    5269 echo "$as_me: creating $ac_file" >&6;}
    5270 
    5271   # First look for the input files in the build tree, otherwise in the
    5272   # src tree.
    5273   ac_file_inputs=`IFS=:
    5274     for f in $ac_file_in; do
    5275       case $f in
    5276       -) echo $tmp/stdin ;;
    5277       [\\/$]*)
    5278          # Absolute (can't be DOS-style, as IFS=:)
    5279          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    5280 echo "$as_me: error: cannot find input file: $f" >&2;}
    5281    { (exit 1); exit 1; }; }
    5282          # Do quote $f, to prevent DOS paths from being IFS'd.
    5283          echo "$f";;
    5284       *) # Relative
    5285          if test -f "$f"; then
    5286            # Build tree
    5287            echo "$f"
    5288          elif test -f "$srcdir/$f"; then
    5289            # Source tree
    5290            echo "$srcdir/$f"
    5291          else
    5292            # /dev/null tree
    5293            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    5294 echo "$as_me: error: cannot find input file: $f" >&2;}
    5295    { (exit 1); exit 1; }; }
    5296          fi;;
    5297       esac
    5298     done` || { (exit 1); exit 1; }
    5299   # Remove the trailing spaces.
    5300   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
    5301 
    5302 _ACEOF
    5303 
    5304 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    5305 # `conftest.undefs', that substitutes the proper values into
    5306 # config.h.in to produce config.h.  The first handles `#define'
    5307 # templates, and the second `#undef' templates.
    5308 # And first: Protect against being on the right side of a sed subst in
    5309 # config.status.  Protect against being in an unquoted here document
    5310 # in config.status.
    5311 rm -f conftest.defines conftest.undefs
    5312 # Using a here document instead of a string reduces the quoting nightmare.
    5313 # Putting comments in sed scripts is not portable.
    5314 #
    5315 # `end' is used to avoid that the second main sed command (meant for
    5316 # 0-ary CPP macros) applies to n-ary macro definitions.
    5317 # See the Autoconf documentation for `clear'.
    5318 cat >confdef2sed.sed <<\_ACEOF
    5319 s/[\\&,]/\\&/g
    5320 s,[\\$`],\\&,g
    5321 t clear
    5322 : clear
    5323 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    5324 t end
    5325 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    5326 : end
    5327 _ACEOF
    5328 # If some macros were called several times there might be several times
    5329 # the same #defines, which is useless.  Nevertheless, we may not want to
    5330 # sort them, since we want the *last* AC-DEFINE to be honored.
    5331 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    5332 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    5333 rm -f confdef2sed.sed
    5334 
    5335 # This sed command replaces #undef with comments.  This is necessary, for
     5866ac_dD=' ,'
     5867
     5868uniq confdefs.h |
     5869  sed -n '
     5870        t rset
     5871        :rset
     5872        s/^[     ]*#[    ]*define[       ][      ]*//
     5873        t ok
     5874        d
     5875        :ok
     5876        s/[\\&,]/\\&/g
     5877        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
     5878        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
     5879  ' >>conftest.defines
     5880
     5881# Remove the space that was appended to ease matching.
     5882# Then replace #undef with comments.  This is necessary, for
    53365883# example, in the case of _POSIX_SOURCE, which is predefined and required
    53375884# on some systems where configure will not decide to define it.
    5338 cat >>conftest.undefs <<\_ACEOF
    5339 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    5340 _ACEOF
    5341 
    5342 # Break up conftest.defines because some shells have a limit on the size
    5343 # of here documents, and old seds have small limits too (100 cmds).
    5344 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    5345 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    5346 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    5347 echo '  :' >>$CONFIG_STATUS
    5348 rm -f conftest.tail
    5349 while grep . conftest.defines >/dev/null
     5885# (The regexp can be short, since the line contains either #define or #undef.)
     5886echo 's/ $//
     5887s,^[     #]*u.*,/* & */,' >>conftest.defines
     5888
     5889# Break up conftest.defines:
     5890ac_max_sed_lines=50
     5891
     5892# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
     5893# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
     5894# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
     5895# et cetera.
     5896ac_in='$ac_file_inputs'
     5897ac_out='"$tmp/out1"'
     5898ac_nxt='"$tmp/out2"'
     5899
     5900while :
    53505901do
    5351   # Write a limited-size here document to $tmp/defines.sed.
    5352   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    5353   # Speed up: don't consider the non `#define' lines.
    5354   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
    5355   # Work around the forget-to-reset-the-flag bug.
    5356   echo 't clr' >>$CONFIG_STATUS
    5357   echo ': clr' >>$CONFIG_STATUS
    5358   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
     5902  # Write a here document:
     5903    cat >>$CONFIG_STATUS <<_ACEOF
     5904    # First, check the format of the line:
     5905    cat >"\$tmp/defines.sed" <<\\CEOF
     5906/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
     5907/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
     5908b
     5909:def
     5910_ACEOF
     5911  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
    53595912  echo 'CEOF
    5360   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    5361   rm -f $tmp/in
    5362   mv $tmp/out $tmp/in
    5363 ' >>$CONFIG_STATUS
    5364   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     5913    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
     5914  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
     5915  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
     5916  grep . conftest.tail >/dev/null || break
    53655917  rm -f conftest.defines
    53665918  mv conftest.tail conftest.defines
    53675919done
    5368 rm -f conftest.defines
    5369 echo '  fi # grep' >>$CONFIG_STATUS
    5370 echo >>$CONFIG_STATUS
    5371 
    5372 # Break up conftest.undefs because some shells have a limit on the size
    5373 # of here documents, and old seds have small limits too (100 cmds).
    5374 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    5375 rm -f conftest.tail
    5376 while grep . conftest.undefs >/dev/null
    5377 do
    5378   # Write a limited-size here document to $tmp/undefs.sed.
    5379   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    5380   # Speed up: don't consider the non `#undef'
    5381   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    5382   # Work around the forget-to-reset-the-flag bug.
    5383   echo 't clr' >>$CONFIG_STATUS
    5384   echo ': clr' >>$CONFIG_STATUS
    5385   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    5386   echo 'CEOF
    5387   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    5388   rm -f $tmp/in
    5389   mv $tmp/out $tmp/in
    5390 ' >>$CONFIG_STATUS
    5391   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    5392   rm -f conftest.undefs
    5393   mv conftest.tail conftest.undefs
    5394 done
    5395 rm -f conftest.undefs
    5396 
     5920rm -f conftest.defines conftest.tail
     5921
     5922echo "ac_result=$ac_in" >>$CONFIG_STATUS
    53975923cat >>$CONFIG_STATUS <<\_ACEOF
    5398   # Let's still pretend it is `configure' which instantiates (i.e., don't
    5399   # use $as_me), people would be surprised to read:
    5400   #    /* config.h.  Generated by config.status.  */
    5401   if test x"$ac_file" = x-; then
    5402     echo "/* Generated by configure.  */" >$tmp/config.h
    5403   else
    5404     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    5405   fi
    5406   cat $tmp/in >>$tmp/config.h
    5407   rm -f $tmp/in
    54085924  if test x"$ac_file" != x-; then
    5409     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     5925    echo "/* $configure_input  */" >"$tmp/config.h"
     5926    cat "$ac_result" >>"$tmp/config.h"
     5927    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
    54105928      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    54115929echo "$as_me: $ac_file is unchanged" >&6;}
    54125930    else
    5413       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    5414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    5415          X"$ac_file" : 'X\(//\)[^/]' \| \
    5416          X"$ac_file" : 'X\(//\)$' \| \
    5417          X"$ac_file" : 'X\(/\)' \| \
    5418          .     : '\(.\)' 2>/dev/null ||
    5419 echo X"$ac_file" |
    5420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    5421           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    5422           /^X\(\/\/\)$/{ s//\1/; q; }
    5423           /^X\(\/\).*/{ s//\1/; q; }
    5424           s/.*/./; q'`
    5425       { if $as_mkdir_p; then
    5426     mkdir -p "$ac_dir"
    5427   else
    5428     as_dir="$ac_dir"
    5429     as_dirs=
    5430     while test ! -d "$as_dir"; do
    5431       as_dirs="$as_dir $as_dirs"
    5432       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    5433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    5434          X"$as_dir" : 'X\(//\)[^/]' \| \
    5435          X"$as_dir" : 'X\(//\)$' \| \
    5436          X"$as_dir" : 'X\(/\)' \| \
    5437          .     : '\(.\)' 2>/dev/null ||
    5438 echo X"$as_dir" |
    5439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    5440           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    5441           /^X\(\/\/\)$/{ s//\1/; q; }
    5442           /^X\(\/\).*/{ s//\1/; q; }
    5443           s/.*/./; q'`
    5444     done
    5445     test ! -n "$as_dirs" || mkdir $as_dirs
    5446   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    5447 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    5448    { (exit 1); exit 1; }; }; }
    5449 
    54505931      rm -f $ac_file
    5451       mv $tmp/config.h $ac_file
     5932      mv "$tmp/config.h" $ac_file
    54525933    fi
    54535934  else
    5454     cat $tmp/config.h
    5455     rm -f $tmp/config.h
     5935    echo "/* $configure_input  */"
     5936    cat "$ac_result"
    54565937  fi
    5457 done
    5458 _ACEOF
    5459 
    5460 cat >>$CONFIG_STATUS <<\_ACEOF
     5938  rm -f "$tmp/out12"
     5939 ;;
     5940
     5941
     5942  esac
     5943
     5944done # for ac_tag
     5945
    54615946
    54625947{ (exit 0); exit 0; }
    … …  
    54955980  ac_sub_configure_args=
    54965981  ac_prev=
    5497   for ac_arg in $ac_configure_args; do
     5982  eval "set x $ac_configure_args"
     5983  shift
     5984  for ac_arg
     5985  do
    54985986    if test -n "$ac_prev"; then
    54995987      ac_prev=
    … …  
    55186006    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    55196007      ;;
    5520     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
     6008    *)
     6009      case $ac_arg in
     6010      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     6011      esac
     6012      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
    55216013    esac
    55226014  done
    … …  
    55246016  # Always prepend --prefix to ensure using the same prefix
    55256017  # in subdir configurations.
    5526   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
     6018  ac_arg="--prefix=$prefix"
     6019  case $ac_arg in
     6020  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     6021  esac
     6022  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
     6023
     6024  # Pass --silent
     6025  if test "$silent" = yes; then
     6026    ac_sub_configure_args="--silent $ac_sub_configure_args"
     6027  fi
    55276028
    55286029  ac_popdir=`pwd`
    … …  
    55316032    # Do not complain, so a configure script can configure whichever
    55326033    # parts of a large source tree are present.
    5533     test -d $srcdir/$ac_dir || continue
    5534 
    5535     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
    5536 echo "$as_me: configuring in $ac_dir" >&6;}
    5537     { if $as_mkdir_p; then
    5538     mkdir -p "$ac_dir"
    5539   else
    5540     as_dir="$ac_dir"
     6034    test -d "$srcdir/$ac_dir" || continue
     6035
     6036    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
     6037    echo "$as_me:$LINENO: $ac_msg" >&5
     6038    echo "$ac_msg" >&6
     6039    { as_dir="$ac_dir"
     6040  case $as_dir in #(
     6041  -*) as_dir=./$as_dir;;
     6042  esac
     6043  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    55416044    as_dirs=
    5542     while test ! -d "$as_dir"; do
    5543       as_dirs="$as_dir $as_dirs"
    5544       as_dir=`(dirname "$as_dir") 2>/dev/null ||
     6045    while :; do
     6046      case $as_dir in #(
     6047      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
     6048      *) as_qdir=$as_dir;;
     6049      esac
     6050      as_dirs="'$as_qdir' $as_dirs"
     6051      as_dir=`$as_dirname -- "$as_dir" ||
    55456052$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    55466053         X"$as_dir" : 'X\(//\)[^/]' \| \
    55476054         X"$as_dir" : 'X\(//\)$' \| \
    5548          X"$as_dir" : 'X\(/\)' \| \
    5549          .     : '\(.\)' 2>/dev/null ||
     6055         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    55506056echo X"$as_dir" |
    5551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    5552           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    5553           /^X\(\/\/\)$/{ s//\1/; q; }
    5554           /^X\(\/\).*/{ s//\1/; q; }
    5555           s/.*/./; q'`
     6057    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     6058            s//\1/
     6059            q
     6060          }
     6061          /^X\(\/\/\)[^/].*/{
     6062            s//\1/
     6063            q
     6064          }
     6065          /^X\(\/\/\)$/{
     6066            s//\1/
     6067            q
     6068          }
     6069          /^X\(\/\).*/{
     6070            s//\1/
     6071            q
     6072          }
     6073          s/.*/./; q'`
     6074      test -d "$as_dir" && break
    55566075    done
    5557     test ! -n "$as_dirs" || mkdir $as_dirs
    5558   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    5559 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     6076    test -z "$as_dirs" || eval "mkdir $as_dirs"
     6077  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
     6078echo "$as_me: error: cannot create directory $as_dir" >&2;}
    55606079   { (exit 1); exit 1; }; }; }
    5561 
    55626080    ac_builddir=.
    55636081
    5564 if test "$ac_dir" != .; then
     6082case "$ac_dir" in
     6083.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     6084*)
    55656085  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    5566   # A "../" for each directory in $ac_dir_suffix.
    5567   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    5568 else
    5569   ac_dir_suffix= ac_top_builddir=
    5570 fi
     6086  # A ".." for each directory in $ac_dir_suffix.
     6087  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
     6088  case $ac_top_builddir_sub in
     6089  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     6090  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     6091  esac ;;
     6092esac
     6093ac_abs_top_builddir=$ac_pwd
     6094ac_abs_builddir=$ac_pwd$ac_dir_suffix
     6095# for backward compatibility:
     6096ac_top_builddir=$ac_top_build_prefix
    55716097
    55726098case $srcdir in
    5573   .)  # No --srcdir option.  We are building in place.
     6099  .)  # We are building in place.
    55746100    ac_srcdir=.
    5575     if test -z "$ac_top_builddir"; then
    5576        ac_top_srcdir=.
    5577     else
    5578        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    5579     fi ;;
    5580   [\\/]* | ?:[\\/]* )  # Absolute path.
     6101    ac_top_srcdir=$ac_top_builddir_sub
     6102    ac_abs_top_srcdir=$ac_pwd ;;
     6103  [\\/]* | ?:[\\/]* )  # Absolute name.
    55816104    ac_srcdir=$srcdir$ac_dir_suffix;
    5582     ac_top_srcdir=$srcdir ;;
    5583   *) # Relative path.
    5584     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    5585     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    5586 esac
    5587 
    5588 # Do not use `cd foo && pwd` to compute absolute paths, because
    5589 # the directories may not exist.
    5590 case `pwd` in
    5591 .) ac_abs_builddir="$ac_dir";;
    5592 *)
    5593   case "$ac_dir" in
    5594   .) ac_abs_builddir=`pwd`;;
    5595   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    5596   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    5597   esac;;
    5598 esac
    5599 case $ac_abs_builddir in
    5600 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    5601 *)
    5602   case ${ac_top_builddir}. in
    5603   .) ac_abs_top_builddir=$ac_abs_builddir;;
    5604   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    5605   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    5606   esac;;
    5607 esac
    5608 case $ac_abs_builddir in
    5609 .) ac_abs_srcdir=$ac_srcdir;;
    5610 *)
    5611   case $ac_srcdir in
    5612   .) ac_abs_srcdir=$ac_abs_builddir;;
    5613   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    5614   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    5615   esac;;
    5616 esac
    5617 case $ac_abs_builddir in
    5618 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    5619 *)
    5620   case $ac_top_srcdir in
    5621   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    5622   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    5623   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    5624   esac;;
    5625 esac
    5626 
    5627 
    5628     cd $ac_dir
     6105    ac_top_srcdir=$srcdir
     6106    ac_abs_top_srcdir=$srcdir ;;
     6107  *) # Relative name.
     6108    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     6109    ac_top_srcdir=$ac_top_build_prefix$srcdir
     6110    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     6111esac
     6112ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     6113
     6114
     6115    cd "$ac_dir"
    56296116
    56306117    # Check for guested configure; otherwise get Cygnus style configure.
    5631     if test -f $ac_srcdir/configure.gnu; then
    5632       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
    5633     elif test -f $ac_srcdir/configure; then
    5634       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
    5635     elif test -f $ac_srcdir/configure.in; then
    5636       ac_sub_configure=$ac_configure
     6118    if test -f "$ac_srcdir/configure.gnu"; then
     6119      ac_sub_configure=$ac_srcdir/configure.gnu
     6120    elif test -f "$ac_srcdir/configure"; then
     6121      ac_sub_configure=$ac_srcdir/configure
     6122    elif test -f "$ac_srcdir/configure.in"; then
     6123      # This should be Cygnus configure.
     6124      ac_sub_configure=$ac_aux_dir/configure
    56376125    else
    56386126      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
    … …  
    56466134      case $cache_file in
    56476135      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
    5648       *) # Relative path.
    5649         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
     6136      *) # Relative name.
     6137        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
    56506138      esac
    56516139
    5652       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
    5653 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
     6140      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
     6141echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
    56546142      # The eval makes quoting arguments work.
    5655       eval $ac_sub_configure $ac_sub_configure_args \
    5656            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
     6143      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
     6144           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
    56576145        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
    56586146echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
    … …  
    56606148    fi
    56616149
    5662     cd $ac_popdir
     6150    cd "$ac_popdir"
    56636151  done
    56646152fi
  • configure.in

    r8298425 rdab82f29  
    99dnl If we're using GCC, enable all warnings
    1010if test "$GCC" = yes; then
    11      CFLAGS="$CFLAGS -Wall -g";
     11     CFLAGS="$CFLAGS -Wall -g -D_FORTIFY_SOURCE=2";
    1212fi
    13 
    1413
    1514dnl Check for Athena
    … …  
    4039fi
    4140
     41dnl check for stack-protector
     42PROTECT_CFLAGS=${PROTECT_CFLAGS-"-fstack-protector"}
     43SAVE_CFLAGS=$CFLAGS
     44CFLAGS="$CFLAGS $PROTECT_CFLAGS"
     45AC_MSG_CHECKING(whether protection cflags work)
     46AC_COMPILE_IFELSE(int i;,
     47    [AC_MSG_RESULT(yes)],
     48    [AC_MSG_RESULT(no)
     49    CFLAGS=$SAVE_CFLAGS])
     50
     51AC_CHECK_LIB(ssp, __stack_chk_guard,,)
    4252AC_CHECK_LIB(ncurses, initscr,,
    4353   AC_CHECK_LIB(curses, initscr,, AC_MSG_ERROR(No curses library found.)))
    … …  
    4858dnl AC_CHECK_LIB(des425, req_act_vno)
    4959AC_CHECK_LIB(des425, des_cbc_encrypt)
    50 AC_CHECK_LIB(des, des_quad_cksum)
     60dnl AC_CHECK_LIB(des, des_quad_cksum)
    5161AC_CHECK_LIB(resolv, res_search)
    5262AC_CHECK_LIB(krb5, krb5_get_credentials)
    … …  
    5767AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [], [Have ZInitLocationInfo]),)
    5868
    59 AC_CHECK_FUNCS(use_default_colors des_string_to_key des_key_sched des_ecb_encrypt)
     69AC_CHECK_FUNCS(use_default_colors resizeterm des_string_to_key des_key_sched des_ecb_encrypt)
    6070
    6171AC_MSG_CHECKING(for des_ecb_encrypt prototype)
  • context.c

    rcf83b7a rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <string.h>
    226#include "owl.h"
  • dict.c

    r1aee7d9 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125/* Dictionary data abstraction. 
    226 * Maps from strings to pointers.
  • editwin.c

    r12c35df rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226#include <stdlib.h>
    … …  
    711735  while (1) {
    712736    z=_owl_editwin_get_index_from_xy(e);
    713     if (e->buff[z+1]==' ' || e->buff[z+1]=='\n' || e->buff[z+1]=='\0') break;
     737    /* z == e->bufflen check added to prevent a hang I (nelhage) have
     738       seen repeatedly while using owl. I'm not sure precisely what
     739       conditions lead to it. */
     740    if (z == e->bufflen
     741        || e->buff[z+1]==' ' || e->buff[z+1]=='\n' || e->buff[z+1]=='\0') break;
    714742    owl_editwin_delete_char(e);
    715743  }
  • errqueue.c

    rec6ff52 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • examples/owlconf.erik

    r5d9c664 rdab82f29  
    147147    owl::command("set -q rxping on");
    148148    owl::command("set -q typewinsize 5");
    149     if ($ENV{"DISPLAY"} eq ":0.0") {
    150       owl::command("set -q webbrowser galeon");
    151     }
    152149    owl::command("filter me recipient %me% or ( sender %me% and class message and instance personal ) or class mail or type aim");
    153150    owl::command("filter owl instance ^owl.*");
  • examples/owlconf.simple

    r2b14303 rdab82f29  
    9393    # owl::command('set -q view_home all');
    9494
    95 
    96     ## Which webbrowser to use to launch URLs with the 'w' key.
    97     # owl::command('set -q webbrowser netscape');
    98     # owl::command('set -q webbrowser galeon');
    99     # owl::command('set -q webbrowser none');
    10095
    10196    ## Default message to send when zaway is on (toggle with 'A')
  • filter.c

    r15b34fd rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <string.h>
    226#include "owl.h"
    … …  
    1337  argv=owl_parseline(string, &argc);
    1438  out=owl_filter_init(f, name, argc, argv);
    15   /* owl_parsefree(argv, argc); */
     39  owl_parsefree(argv, argc);
    1640  return(out);
    1741}
  • filterelement.c

    r32eed98 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • fmtext.c

    ra0a5179 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226#include <stdlib.h>
  • functions.c

    r3c7d086a rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <stdio.h>
    226#include <stdlib.h>
    … …  
    125149  text=""
    126150    "Owl version " OWL_VERSION_STRING "\n"
    127     "Copyright (c) 2004 James Kretchmar. All rights reserved.\n"
    128151    "\n"
    129     "Redistribution and use in source and binary forms, with or without\n"
    130     "modification, are permitted provided that the following conditions are\n"
    131     "met:\n"
     152    "Copyright (c) 2002,2003,2004,2009 James M. Kretchmar\n"
    132153    "\n"
    133     "   * Redistributions of source code must retain the above copyright\n"
    134     "     notice, this list of conditions and the following disclaimer.\n"
     154    "Owl is free software: you can redistribute it and/or modify\n"
     155    "it under the terms of the GNU General Public License as published by\n"
     156    "the Free Software Foundation, either version 3 of the License, or\n"
     157    "(at your option) any later version.\n"
    135158    "\n"
    136     "   * Redistributions in binary form must reproduce the above copyright\n"
    137     "     notice, this list of conditions and the following disclaimer in\n"
    138     "     the documentation and/or other materials provided with the\n"
    139     "     distribution.\n"
     159    "Owl is distributed in the hope that it will be useful,\n"
     160    "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
     161    "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
     162    "GNU General Public License for more details.\n"
    140163    "\n"
    141     "   * Redistributions in any form must be accompanied by information on\n"
    142     "     how to obtain complete source code for the Owl software and any\n"
    143     "     accompanying software that uses the Owl software. The source code\n"
    144     "     must either be included in the distribution or be available for no\n"
    145     "     more than the cost of distribution plus a nominal fee, and must be\n"
    146     "     freely redistributable under reasonable conditions. For an\n"
    147     "     executable file, complete source code means the source code for\n"
    148     "     all modules it contains. It does not include source code for\n"
    149     "     modules or files that typically accompany the major components of\n"
    150     "     the operating system on which the executable file runs.\n"
     164    "You should have received a copy of the GNU General Public License\n"
     165    "along with Owl.  If not, see <http://www.gnu.org/licenses/>.\n"
    151166    "\n"
    152     "THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n"
    153     "IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n"
    154     "WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR\n"
    155     "NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE\n"
    156     "LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n"
    157     "CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n"
    158     "SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n"
    159     "BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n"
    160     "WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n"
    161     "OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n"
    162     "IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n";
     167    "---------------------------------------------------------------\n"
     168    "\n"
     169    "As of Owl version 2.1.12 there are patches contributed by\n"
     170    "developers of the the branched BarnOwl project, Copyright (c)\n"
     171    "2006-2008 The BarnOwl Developers. All rights reserved.\n";
    163172  owl_function_popless_text(text);
    164173}
    … …  
    399408    m=owl_function_make_outgoing_zephyr(mymsg, line, owl_zwrite_get_zsig(&z));
    400409
    401     if (m) {
    402       /* log it */
    403       owl_log_message(m);
    404      
    405       /* add it or nuke it */
    406       if (owl_global_is_displayoutgoing(&g)) {
    407         owl_function_add_message(m);
    408       } else {
    409         owl_message_free(m);
    410       }
     410    /* log it */
     411    owl_log_message(m);
     412
     413    /* add it or nuke it */
     414    if (owl_global_is_displayoutgoing(&g)) {
     415      owl_function_add_message(m);
    411416    } else {
    412       owl_function_error("Could not create outgoing zephyr message");
     417      owl_message_free(m);
    413418    }
    414419  }
    … …  
    439444  mymsg=owl_zwrite_get_message(&z);
    440445#ifdef OWL_ENABLE_ZCRYPT
    441   cryptmsg=owl_malloc(strlen(mymsg)*4);
     446  /* Allocate enough space for the crypted message. For each byte of
     447   * the message, the encoded cyphertext will have two bytes. Block
     448   * size is 8 bytes of input, or 16 bytes of output, so make sure we
     449   * have at least one block worth of space allocated. If the message
     450   * is empty, no blocks are sent, but we still allocate one
     451   * block. The additional 16 bytes also provide space for the null
     452   * terminator, as we will never use all of it for cyphertext.
     453   */
     454  cryptmsg=owl_malloc((strlen(mymsg)*2)+16);
    442455  ret=owl_zcrypt_encrypt(cryptmsg, mymsg, owl_zwrite_get_class(&z), owl_zwrite_get_instance(&z));
    443456  if (ret) {
    … …  
    445458    owl_function_beep();
    446459    owl_free(cryptmsg);
     460    owl_zwrite_free(&z);
    447461    return;
    448462  }
    … …  
    463477    mymsg=owl_zwrite_get_message(&z);
    464478    m=owl_function_make_outgoing_zephyr(mymsg, line, owl_zwrite_get_zsig(&z));
    465     if (m) {
    466       /* log it */
    467       owl_log_message(m);
    468      
    469       /* add it or nuke it */
    470       if (owl_global_is_displayoutgoing(&g)) {
    471         owl_function_add_message(m);
    472       } else {
    473         owl_message_free(m);
    474       }
     479   
     480    /* log it */
     481    owl_log_message(m);
     482   
     483    /* add it or nuke it */
     484    if (owl_global_is_displayoutgoing(&g)) {
     485      owl_function_add_message(m);
    475486    } else {
    476       owl_function_error("Could not create outgoing zephyr message");
     487      owl_message_free(m);
    477488    }
    478489  }
    … …  
    505516  m=owl_function_make_outgoing_aim(msg, to);
    506517
    507   if (m) {
    508     /* log it */
    509     owl_log_message(m);
    510    
    511     /* display it or nuke it */
    512     if (owl_global_is_displayoutgoing(&g)) {
    513       owl_function_add_message(m);
    514     } else {
    515       owl_message_free(m);
    516     }
    517   } else {
    518     owl_function_error("Could not create outgoing AIM message");
     518  /* log it */
     519  owl_log_message(m);
     520
     521  /* display it or nuke it */
     522  if (owl_global_is_displayoutgoing(&g)) {
     523    owl_function_add_message(m);
     524  } else {
     525    owl_message_free(m);
    519526  }
    520527
    … …  
    887894{
    888895  int ret, ret2;
    889   char *foo;
     896  char *foo, *path;
    890897
    891898  if (file==NULL) {
    892899    ret=owl_zephyr_loadsubs(NULL, 0);
    893900  } else {
    894     ret=owl_zephyr_loadsubs(file, 1);
     901    path = owl_util_makepath(file);
     902    ret=owl_zephyr_loadsubs(path, 1);
     903    free(path);
    895904  }
    896905
    … …  
    10201029  owl_function_debugmsg("Quitting Owl");
    10211030  exit(0);
    1022 }
    1023 
    1024 void owl_function_openurl()
    1025 {
    1026   /* visit the first url in the current message */
    1027   owl_message *m;
    1028   owl_view *v;
    1029   char *ptr1, *ptr2, *text, url[LINE], tmpbuff[LINE];
    1030   int webbrowser;
    1031 
    1032   webbrowser = owl_global_get_webbrowser(&g);
    1033 
    1034   if (webbrowser < 0 || webbrowser == OWL_WEBBROWSER_NONE) {
    1035     owl_function_error("No browser selected");
    1036     return;
    1037   }
    1038 
    1039   v=owl_global_get_current_view(&g);
    1040  
    1041   m=owl_view_get_element(v, owl_global_get_curmsg(&g));
    1042 
    1043   if (!m || owl_view_get_size(v)==0) {
    1044     owl_function_error("No current message selected");
    1045     return;
    1046   }
    1047 
    1048   text=owl_message_get_text(m);
    1049 
    1050   /* First look for a good URL */ 
    1051   if ((ptr1=strstr(text, "http://"))!=NULL) {
    1052     ptr2=strpbrk(ptr1, " \n\t");
    1053     if (ptr2) {
    1054       strncpy(url, ptr1, ptr2-ptr1+1);
    1055       url[ptr2-ptr1+1]='\0';
    1056     } else {
    1057       strcpy(url, ptr1);
    1058     }
    1059 
    1060     /* if we had <http strip a trailing > */
    1061     if (ptr1>text && ptr1[-1]=='<') {
    1062       if (url[strlen(url)-1]=='>') {
    1063         url[strlen(url)-1]='\0';
    1064       }
    1065     }
    1066   } else if ((ptr1=strstr(text, "https://"))!=NULL) {
    1067     /* Look for an https URL */ 
    1068     ptr2=strpbrk(ptr1, " \n\t");
    1069     if (ptr2) {
    1070       strncpy(url, ptr1, ptr2-ptr1+1);
    1071       url[ptr2-ptr1+1]='\0';
    1072     } else {
    1073       strcpy(url, ptr1);
    1074     }
    1075    
    1076     /* if we had <http strip a trailing > */
    1077     if (ptr1>text && ptr1[-1]=='<') {
    1078       if (url[strlen(url)-1]=='>') {
    1079         url[strlen(url)-1]='\0';
    1080       }
    1081     }
    1082   } else if ((ptr1=strstr(text, "www."))!=NULL) {
    1083     /* if we can't find a real url look for www.something */
    1084     ptr2=strpbrk(ptr1, " \n\t");
    1085     if (ptr2) {
    1086       strncpy(url, ptr1, ptr2-ptr1+1);
    1087       url[ptr2-ptr1+1]='\0';
    1088     } else {
    1089       strcpy(url, ptr1);
    1090     }
    1091   } else {
    1092     owl_function_beep();
    1093     owl_function_error("Could not find URL to open.");
    1094     return;
    1095   }
    1096 
    1097   /* Make sure there aren't any quotes or \'s in the url */
    1098   for (ptr1 = url; *ptr1; ptr1++) {
    1099     if (*ptr1 == '"' || *ptr1 == '\\') {
    1100       owl_function_beep();
    1101       owl_function_error("URL contains invalid characters.");
    1102       return;
    1103     }
    1104   }
    1105  
    1106   /* NOTE: There are potentially serious security issues here... */
    1107 
    1108   /* open the page */
    1109   owl_function_makemsg("Opening %s", url);
    1110   if (webbrowser == OWL_WEBBROWSER_NETSCAPE) {
    1111     snprintf(tmpbuff, LINE, "netscape -remote \"openURL(%s)\" > /dev/null 2> /dev/null", url);
    1112     system(tmpbuff);
    1113   } else if (webbrowser == OWL_WEBBROWSER_GALEON) {
    1114     snprintf(tmpbuff, LINE, "galeon \"%s\" > /dev/null 2> /dev/null &", url);
    1115     system(tmpbuff);
    1116   } else if (webbrowser == OWL_WEBBROWSER_OPERA) {
    1117     snprintf(tmpbuff, LINE, "opera \"%s\" > /dev/null 2> /dev/null &", url);
    1118     system(tmpbuff);
    1119   }
    11201031}
    11211032
    … …  
    12391150int owl_function_calculate_topmsg_normal(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines)
    12401151{
    1241   int savey, j, i, foo, y;
     1152  int savey, i, foo, y;
    12421153
    12431154  if (curmsg<0) return(topmsg);
    … …  
    12481159  }
    12491160
    1250   /* Find number of lines from top to bottom of curmsg (store in savey) */
    1251   savey=0;
    1252   for (i=topmsg; i<=curmsg; i++) {
    1253     savey+=owl_message_get_numlines(owl_view_get_element(v, i));
     1161  /* If curmsg is so far past topmsg that there are more messages than
     1162     lines, skip the line counting that follows because we're
     1163     certainly off screen.  */
     1164  savey=curmsg-topmsg;
     1165  if (savey <= recwinlines) {
     1166    /* Find number of lines from top to bottom of curmsg (store in savey) */
     1167    savey = 0;
     1168    for (i=topmsg; i<=curmsg; i++) {
     1169      savey+=owl_message_get_numlines(owl_view_get_element(v, i));
     1170    }
    12541171  }
    12551172
    … …  
    12581175  if (savey > recwinlines) {
    12591176    topmsg=curmsg;
    1260     savey=owl_message_get_numlines(owl_view_get_element(v, i));
     1177    savey=owl_message_get_numlines(owl_view_get_element(v, curmsg));
    12611178    direction=OWL_DIRECTION_UPWARDS;
    12621179  }
    … …  
    12661183    if (savey < (recwinlines / 4)) {
    12671184      y=0;
    1268       for (j=curmsg; j>=0; j--) {
    1269         foo=owl_message_get_numlines(owl_view_get_element(v, j));
     1185      for (i=curmsg; i>=0; i--) {
     1186        foo=owl_message_get_numlines(owl_view_get_element(v, i));
    12701187        /* will we run the curmsg off the screen? */
    12711188        if ((foo+y) >= recwinlines) {
    1272           j++;
    1273           if (j>curmsg) j=curmsg;
     1189          i++;
     1190          if (i>curmsg) i=curmsg;
    12741191          break;
    12751192        }
    … …  
    12781195        if (y > (recwinlines / 2)) break;
    12791196      }
    1280       if (j<0) j=0;
    1281       return(j);
     1197      if (i<0) i=0;
     1198      return(i);
    12821199    }
    12831200  }
    … …  
    12881205      y=0;
    12891206      /* count lines from the top until we can save 1/2 the screen size */
    1290       for (j=topmsg; j<curmsg; j++) {
    1291         y+=owl_message_get_numlines(owl_view_get_element(v, j));
     1207      for (i=topmsg; i<curmsg; i++) {
     1208        y+=owl_message_get_numlines(owl_view_get_element(v, i));
    12921209        if (y > (recwinlines / 2)) break;
    12931210      }
    1294       if (j==curmsg) {
    1295         j--;
     1211      if (i==curmsg) {
     1212        i--;
    12961213      }
    1297       return(j+1);
     1214      return(i+1);
    12981215    }
    12991216  }
    … …  
    14751392void owl_function_about()
    14761393{
    1477   char buff[5000];
    1478 
    1479   sprintf(buff, "This is owl version %s\n", OWL_VERSION_STRING);
    1480   strcat(buff, "\nOwl was written by James Kretchmar at the Massachusetts\n");
    1481   strcat(buff, "Institute of Technology.  The first version, 0.5, was\n");
    1482   strcat(buff, "released in March 2002.\n");
    1483   strcat(buff, "\n");
    1484   strcat(buff, "The name 'owl' was chosen in reference to the owls in the\n");
    1485   strcat(buff, "Harry Potter novels, who are tasked with carrying messages\n");
    1486   strcat(buff, "between Witches and Wizards.\n");
    1487   strcat(buff, "\n");
    1488   strcat(buff, "Copyright 2002 Massachusetts Institute of Technology\n");
    1489   strcat(buff, "\n");
    1490   strcat(buff, "Permission to use, copy, modify, and distribute this\n");
    1491   strcat(buff, "software and its documentation for any purpose and without\n");
    1492   strcat(buff, "fee is hereby granted, provided that the above copyright\n");
    1493   strcat(buff, "notice and this permission notice appear in all copies\n");
    1494   strcat(buff, "and in supporting documentation.  No representation is\n");
    1495   strcat(buff, "made about the suitability of this software for any\n");
    1496   strcat(buff, "purpose.  It is provided \"as is\" without express\n");
    1497   strcat(buff, "or implied warranty.\n");
    1498   owl_function_popless_text(buff);
     1394  owl_function_show_license();
    14991395}
    15001396
    … …  
    25942490  /* downcase it */
    25952491  downstr(filtname);
    2596   /* turn spaces into dots */
     2492  /* turn spaces, single quotes, and double quotes into dots */
    25972493  owl_text_tr(filtname, ' ', '.');
     2494  owl_text_tr(filtname, '\'', '.');
     2495  owl_text_tr(filtname, '"', '.');
    25982496 
    25992497  /* if it already exists then go with it.  This lets users override */
    … …  
    26062504  tmpclass=owl_text_quote(class, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
    26072505  owl_text_tr(tmpclass, ' ', '.');
     2506  owl_text_tr(tmpclass, '\'', '.');
     2507  owl_text_tr(tmpclass, '"', '.');
    26082508  if (instance) {
    26092509    tmpinstance=owl_text_quote(instance, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
    26102510    owl_text_tr(tmpinstance, ' ', '.');
     2511    owl_text_tr(tmpinstance, '\'', '.');
     2512    owl_text_tr(tmpinstance, '"', '.');
    26112513  }
    26122514  sprintf(argbuff, "( class ^%s$ )", tmpclass);
    … …  
    26832585  owl_filter *f;
    26842586  char *argbuff, *filtname;
     2587  char *escuser;
    26852588
    26862589  /* name for the filter */
    … …  
    26962599  f=owl_malloc(sizeof(owl_filter));
    26972600
     2601  escuser = owl_text_quote(user, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
     2602
    26982603  argbuff=owl_malloc(1000);
    26992604  sprintf(argbuff,
    2700           "( type ^aim$ and ( ( sender ^%s$ and recipient ^%s$ ) or ( sender ^%s$ and recipient ^%s$ ) ) )",
    2701           user, owl_global_get_aim_screenname(&g), owl_global_get_aim_screenname(&g), user);
     2605          "( type ^aim$ and ( ( sender ^%s$ and recipient ^%s$ ) or ( sender ^%s$ and recipient ^%s$ ) ) )",
     2606          escuser, owl_global_get_aim_screenname(&g), owl_global_get_aim_screenname(&g), escuser);
    27022607
    27032608  owl_filter_init_fromstring(f, filtname, argbuff);
    … …  
    27082613  /* free stuff */
    27092614  owl_free(argbuff);
     2615  owl_free(escuser);
    27102616
    27112617  return(filtname);
    … …  
    29892895    quoted=owl_text_quote(class, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
    29902896    owl_text_tr(quoted, ' ', '.');
     2897    owl_text_tr(quoted, '\'', '.');
     2898    owl_text_tr(quoted, '"', '.');
    29912899    sprintf(buff, "%s ^%s$", buff, quoted);
    29922900    owl_free(quoted);
    … …  
    29972905    quoted=owl_text_quote(inst, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
    29982906    owl_text_tr(quoted, ' ', '.');
     2907    owl_text_tr(quoted, '\'', '.');
     2908    owl_text_tr(quoted, '"', '.');
    29992909    sprintf(buff, "%s and instance ^%s$", buff, quoted);
    30002910    owl_free(quoted);
    … …  
    30032913    quoted=owl_text_quote(recip, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
    30042914    owl_text_tr(quoted, ' ', '.');
     2915    owl_text_tr(quoted, '\'', '.');
     2916    owl_text_tr(quoted, '"', '.');
    30052917    sprintf(buff, "%s and recipient ^%s$", buff, quoted);
    30062918    owl_free(quoted);
    … …  
    32703182            owl_fmtext_append_normal(&fm, line);
    32713183            owl_free(tmp);
     3184            owl_free(line);
    32723185          }
    32733186          if (numlocs>=200) {
    … …  
    34283341void owl_function_source(char *filename)
    34293342{
     3343  char *path;
    34303344  FILE *file;
    34313345  char buff[LINE];
     3346  int fail_silent = 0;
    34323347
    34333348  if (!filename) {
    3434     filename=owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE);
    3435     file=fopen(filename, "r");
    3436     owl_free(filename);
    3437   } else {
    3438     file=fopen(filename, "r");
    3439   }
     3349    fail_silent = 1;
     3350    path = owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE);
     3351  } else {
     3352    path = owl_util_makepath(filename);
     3353  }
     3354  file=fopen(path, "r");
     3355  owl_free(path);
    34403356  if (!file) {
    3441     /* just fail silently if it doesn't exist */
     3357    if (!fail_silent) {
     3358      owl_function_error("Error opening file: %s", filename);
     3359    }
    34423360    return;
    34433361  }
    34443362  while (fgets(buff, LINE, file)!=NULL) {
     3363    if (buff[0] == '#') continue;
    34453364    buff[strlen(buff)-1]='\0';
    34463365    owl_function_command(buff);
  • global.c

    r176d3443 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <stdio.h>
    226#include <unistd.h>
    … …  
    5074  owl_keys_setup_keymaps(&g->kh);
    5175
    52   owl_list_create(&(g->muxevents));
    5376  owl_list_create(&(g->filterlist));
    5477  owl_list_create(&(g->puntlist));
    … …  
    110133  owl_zbuddylist_create(&(g->zbuddies));
    111134  owl_timer_create_countdown(&(g->zephyr_buddycheck_timer), 60*3);
     135
     136  owl_list_create(&(g->dispatchlist));
    112137}
    113138
    … …  
    392417  }
    393418
     419#ifdef HAVE_RESIZETERM
    394420  resizeterm(size.ws_row, size.ws_col);
     421#endif
    395422
    396423  /* re-initialize the windows */
    … …  
    399426  /* in case any styles rely on the current width */
    400427  owl_messagelist_invalidate_formats(owl_global_get_msglist(g));
     428
     429  /* recalculate the topmsg to make sure the current message is on
     430   * screen */
     431  owl_function_calculate_topmsg(OWL_DIRECTION_NONE);
    401432
    402433  /* refresh stuff */
    … …  
    522553}
    523554
    524 /* muxevents */
    525 
    526 owl_muxevents *owl_global_get_muxevents(owl_global *g) {
    527   return(&(g->muxevents));
    528 }
    529 
    530555/* filterlist */
    531556
    … …  
    889914  return(&(g->startup_tio));
    890915}
     916
     917owl_list *owl_global_get_dispatchlist(owl_global *g)
     918{
     919  return &(g->dispatchlist);
     920}
  • help.c

    r3895e23 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226#include <string.h>
  • history.c

    r52f3507 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • keybinding.c

    r176d3443 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <ctype.h>
    226#include <string.h>
    … …  
    4468  }
    4569  kb->j[i] = 0;
     70
     71  atokenize_free(ktokens, nktokens);
    4672
    4773  if (command) kb->command = owl_strdup(command);
  • keymap.c

    rcf83b7a rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <string.h>
    226#include "owl.h"
  • keypress.c

    r948b942 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <ctype.h>
    226#include <string.h>
  • keys.c

    r3895e23 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
    … …  
    275299  BIND_CMD("M-r", "reply -e",         "reply to the current message, but allow editing of recipient");
    276300  BIND_CMD("M-R", "reply -e sender",  "reply to sender of the current message, but allow editing of recipient");
    277                  
    278   BIND_CMD("w",   "openurl",          "open a URL using a webbrowser");
    279301
    280302  BIND_CMD("C-c",  "",                "no effect in this mode");
  • libfaim/configure

    r1ef65fb rdab82f29  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59.
     3# Generated by GNU Autoconf 2.61.
    44#
    5 # Copyright (C) 2003 Free Software Foundation, Inc.
     5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
    67# This configure script is free software; the Free Software Foundation
    78# gives unlimited permission to copy, distribute and modify it.
    … …  
    1011## --------------------- ##
    1112
    12 # Be Bourne compatible
     13# Be more Bourne compatible
     14DUALCASE=1; export DUALCASE # for MKS sh
    1315if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    1416  emulate sh
    … …  
    1719  # is contrary to our usage.  Disable this feature.
    1820  alias -g '${1+"$@"}'='"$@"'
    19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    20   set -o posix
    21 fi
    22 DUALCASE=1; export DUALCASE # for MKS sh
    23 
    24 # Support unset when possible.
    25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    26   as_unset=unset
    27 else
    28   as_unset=false
    29 fi
    30 
    31 
    32 # Work around bugs in pre-3.0 UWIN ksh.
    33 $as_unset ENV MAIL MAILPATH
    34 PS1='$ '
    35 PS2='> '
    36 PS4='+ '
    37 
    38 # NLS nuisances.
    39 for as_var in \
    40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    42   LC_TELEPHONE LC_TIME
    43 do
    44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    45     eval $as_var=C; export $as_var
    46   else
    47     $as_unset $as_var
    48   fi
    49 done
    50 
    51 # Required to use basename.
    52 if expr a : '\(a\)' >/dev/null 2>&1; then
    53   as_expr=expr
    54 else
    55   as_expr=false
    56 fi
    57 
    58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    59   as_basename=basename
    60 else
    61   as_basename=false
    62 fi
    63 
    64 
    65 # Name of the executable.
    66 as_me=`$as_basename "$0" ||
    67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    68          X"$0" : 'X\(//\)$' \| \
    69          X"$0" : 'X\(/\)$' \| \
    70          .     : '\(.\)' 2>/dev/null ||
    71 echo X/"$0" |
    72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    73           /^X\/\(\/\/\)$/{ s//\1/; q; }
    74           /^X\/\(\/\).*/{ s//\1/; q; }
    75           s/.*/./; q'`
    76 
    77 
    78 # PATH needs CR, and LINENO needs CR and PATH.
     21  setopt NO_GLOB_SUBST
     22else
     23  case `(set -o) 2>/dev/null` in
     24  *posix*) set -o posix ;;
     25esac
     26
     27fi
     28
     29
     30
     31
     32# PATH needs CR
    7933# Avoid depending upon Character Ranges.
    8034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    … …  
    9751fi
    9852
    99 
    100   as_lineno_1=$LINENO
    101   as_lineno_2=$LINENO
    102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    103   test "x$as_lineno_1" != "x$as_lineno_2" &&
    104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    105   # Find who we are.  Look in the path if we contain no path at all
    106   # relative or not.
    107   case $0 in
    108     *[\\/]* ) as_myself=$0 ;;
    109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     53# Support unset when possible.
     54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     55  as_unset=unset
     56else
     57  as_unset=false
     58fi
     59
     60
     61# IFS
     62# We need space, tab and new line, in precisely that order.  Quoting is
     63# there to prevent editors from complaining about space-tab.
     64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     65# splitting by setting IFS to empty value.)
     66as_nl='
     67'
     68IFS=" ""        $as_nl"
     69
     70# Find who we are.  Look in the path if we contain no directory separator.
     71case $0 in
     72  *[\\/]* ) as_myself=$0 ;;
     73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    11074for as_dir in $PATH
    11175do
    … …  
    11478  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    11579done
    116 
    117        ;;
    118   esac
    119   # We did not find ourselves, most probably we were run as `sh COMMAND'
    120   # in which case we are not to be found in the path.
    121   if test "x$as_myself" = x; then
    122     as_myself=$0
     80IFS=$as_save_IFS
     81
     82     ;;
     83esac
     84# We did not find ourselves, most probably we were run as `sh COMMAND'
     85# in which case we are not to be found in the path.
     86if test "x$as_myself" = x; then
     87  as_myself=$0
     88fi
     89if test ! -f "$as_myself"; then
     90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     91  { (exit 1); exit 1; }
     92fi
     93
     94# Work around bugs in pre-3.0 UWIN ksh.
     95for as_var in ENV MAIL MAILPATH
     96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     97done
     98PS1='$ '
     99PS2='> '
     100PS4='+ '
     101
     102# NLS nuisances.
     103for as_var in \
     104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     106  LC_TELEPHONE LC_TIME
     107do
     108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     109    eval $as_var=C; export $as_var
     110  else
     111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    123112  fi
    124   if test ! -f "$as_myself"; then
    125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
    126    { (exit 1); exit 1; }; }
    127   fi
    128   case $CONFIG_SHELL in
    129   '')
     113done
     114
     115# Required to use basename.
     116if expr a : '\(a\)' >/dev/null 2>&1 &&
     117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     118  as_expr=expr
     119else
     120  as_expr=false
     121fi
     122
     123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
     124  as_basename=basename
     125else
     126  as_basename=false
     127fi
     128
     129
     130# Name of the executable.
     131as_me=`$as_basename -- "$0" ||
     132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     133         X"$0" : 'X\(//\)$' \| \
     134         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     135echo X/"$0" |
     136    sed '/^.*\/\([^/][^/]*\)\/*$/{
     137            s//\1/
     138            q
     139          }
     140          /^X\/\(\/\/\)$/{
     141            s//\1/
     142            q
     143          }
     144          /^X\/\(\/\).*/{
     145            s//\1/
     146            q
     147          }
     148          s/.*/./; q'`
     149
     150# CDPATH.
     151$as_unset CDPATH
     152
     153
     154if test "x$CONFIG_SHELL" = x; then
     155  if (eval ":") 2>/dev/null; then
     156  as_have_required=yes
     157else
     158  as_have_required=no
     159fi
     160
     161  if test $as_have_required = yes &&     (eval ":
     162(as_func_return () {
     163  (exit \$1)
     164}
     165as_func_success () {
     166  as_func_return 0
     167}
     168as_func_failure () {
     169  as_func_return 1
     170}
     171as_func_ret_success () {
     172  return 0
     173}
     174as_func_ret_failure () {
     175  return 1
     176}
     177
     178exitcode=0
     179if as_func_success; then
     180  :
     181else
     182  exitcode=1
     183  echo as_func_success failed.
     184fi
     185
     186if as_func_failure; then
     187  exitcode=1
     188  echo as_func_failure succeeded.
     189fi
     190
     191if as_func_ret_success; then
     192  :
     193else
     194  exitcode=1
     195  echo as_func_ret_success failed.
     196fi
     197
     198if as_func_ret_failure; then
     199  exitcode=1
     200  echo as_func_ret_failure succeeded.
     201fi
     202
     203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
     204  :
     205else
     206  exitcode=1
     207  echo positional parameters were not saved.
     208fi
     209
     210test \$exitcode = 0) || { (exit 1); exit 1; }
     211
     212(
     213  as_lineno_1=\$LINENO
     214  as_lineno_2=\$LINENO
     215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
     216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
     217") 2> /dev/null; then
     218  :
     219else
     220  as_candidate_shells=
    130221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    131222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    … …  
    133224  IFS=$as_save_IFS
    134225  test -z "$as_dir" && as_dir=.
    135   for as_base in sh bash ksh sh5; do
    136          case $as_dir in
     226  case $as_dir in
    137227         /*)
    138            if ("$as_dir/$as_base" -c '
     228           for as_base in sh bash ksh sh5; do
     229             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
     230           done;;
     231       esac
     232done
     233IFS=$as_save_IFS
     234
     235
     236      for as_shell in $as_candidate_shells $SHELL; do
     237         # Try only shells that exist, to save several forks.
     238         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
     239                { ("$as_shell") 2> /dev/null <<\_ASEOF
     240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     241  emulate sh
     242  NULLCMD=:
     243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     244  # is contrary to our usage.  Disable this feature.
     245  alias -g '${1+"$@"}'='"$@"'
     246  setopt NO_GLOB_SUBST
     247else
     248  case `(set -o) 2>/dev/null` in
     249  *posix*) set -o posix ;;
     250esac
     251
     252fi
     253
     254
     255:
     256_ASEOF
     257}; then
     258  CONFIG_SHELL=$as_shell
     259               as_have_required=yes
     260               if { "$as_shell" 2> /dev/null <<\_ASEOF
     261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     262  emulate sh
     263  NULLCMD=:
     264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     265  # is contrary to our usage.  Disable this feature.
     266  alias -g '${1+"$@"}'='"$@"'
     267  setopt NO_GLOB_SUBST
     268else
     269  case `(set -o) 2>/dev/null` in
     270  *posix*) set -o posix ;;
     271esac
     272
     273fi
     274
     275
     276:
     277(as_func_return () {
     278  (exit $1)
     279}
     280as_func_success () {
     281  as_func_return 0
     282}
     283as_func_failure () {
     284  as_func_return 1
     285}
     286as_func_ret_success () {
     287  return 0
     288}
     289as_func_ret_failure () {
     290  return 1
     291}
     292
     293exitcode=0
     294if as_func_success; then
     295  :
     296else
     297  exitcode=1
     298  echo as_func_success failed.
     299fi
     300
     301if as_func_failure; then
     302  exitcode=1
     303  echo as_func_failure succeeded.
     304fi
     305
     306if as_func_ret_success; then
     307  :
     308else
     309  exitcode=1
     310  echo as_func_ret_success failed.
     311fi
     312
     313if as_func_ret_failure; then
     314  exitcode=1
     315  echo as_func_ret_failure succeeded.
     316fi
     317
     318if ( set x; as_func_ret_success y && test x = "$1" ); then
     319  :
     320else
     321  exitcode=1
     322  echo positional parameters were not saved.
     323fi
     324
     325test $exitcode = 0) || { (exit 1); exit 1; }
     326
     327(
    139328  as_lineno_1=$LINENO
    140329  as_lineno_2=$LINENO
    141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    142330  test "x$as_lineno_1" != "x$as_lineno_2" &&
    143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    146              CONFIG_SHELL=$as_dir/$as_base
    147              export CONFIG_SHELL
    148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    149            fi;;
    150          esac
    151        done
    152 done
    153 ;;
    154   esac
     331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
     332
     333_ASEOF
     334}; then
     335  break
     336fi
     337
     338fi
     339
     340      done
     341
     342      if test "x$CONFIG_SHELL" != x; then
     343  for as_var in BASH_ENV ENV
     344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     345        done
     346        export CONFIG_SHELL
     347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
     348fi
     349
     350
     351    if test $as_have_required = no; then
     352  echo This script requires a shell more modern than all the
     353      echo shells that I found on your system.  Please install a
     354      echo modern shell, or manually run the script under such a
     355      echo shell if you do have one.
     356      { (exit 1); exit 1; }
     357fi
     358
     359
     360fi
     361
     362fi
     363
     364
     365
     366(eval "as_func_return () {
     367  (exit \$1)
     368}
     369as_func_success () {
     370  as_func_return 0
     371}
     372as_func_failure () {
     373  as_func_return 1
     374}
     375as_func_ret_success () {
     376  return 0
     377}
     378as_func_ret_failure () {
     379  return 1
     380}
     381
     382exitcode=0
     383if as_func_success; then
     384  :
     385else
     386  exitcode=1
     387  echo as_func_success failed.
     388fi
     389
     390if as_func_failure; then
     391  exitcode=1
     392  echo as_func_failure succeeded.
     393fi
     394
     395if as_func_ret_success; then
     396  :
     397else
     398  exitcode=1
     399  echo as_func_ret_success failed.
     400fi
     401
     402if as_func_ret_failure; then
     403  exitcode=1
     404  echo as_func_ret_failure succeeded.
     405fi
     406
     407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
     408  :
     409else
     410  exitcode=1
     411  echo positional parameters were not saved.
     412fi
     413
     414test \$exitcode = 0") || {
     415  echo No shell found that supports shell functions.
     416  echo Please tell autoconf@gnu.org about your system,
     417  echo including any error possibly output before this
     418  echo message
     419}
     420
     421
     422
     423  as_lineno_1=$LINENO
     424  as_lineno_2=$LINENO
     425  test "x$as_lineno_1" != "x$as_lineno_2" &&
     426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    155427
    156428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    157429  # uniformly replaced by the line number.  The first 'sed' inserts a
    158   # line-number line before each line; the second 'sed' does the real
    159   # work.  The second script uses 'N' to pair each line-number line
    160   # with the numbered line, and appends trailing '-' during
    161   # substitution so that $LINENO is not a special case at line end.
     430  # line-number line after each line using $LINENO; the second 'sed'
     431  # does the real work.  The second script uses 'N' to pair each
     432  # line-number line with the line containing $LINENO, and appends
     433  # trailing '-' during substitution so that $LINENO is not a special
     434  # case at line end.
    162435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    164   sed '=' <$as_myself |
     436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
     437  # E. McMahon (1931-1989) for sed's syntax.  :-)
     438  sed -n '
     439    p
     440    /[$]LINENO/=
     441  ' <$as_myself |
    165442    sed '
     443      s/[$]LINENO.*/&-/
     444      t lineno
     445      b
     446      :lineno
    166447      N
    167       s,$,-,
    168       : loop
    169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     448      :loop
     449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    170450      t loop
    171       s,-$,,
    172       s,^['$as_cr_digits']*\n,,
     451      s/-\n.*//
    173452    ' >$as_me.lineno &&
    174   chmod +x $as_me.lineno ||
     453  chmod +x "$as_me.lineno" ||
    175454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    176455   { (exit 1); exit 1; }; }
    … …  
    178457  # Don't try to exec as it changes $[0], causing all sort of problems
    179458  # (the dirname of $[0] is not the place where we might find the
    180   # original and so on.  Autoconf is especially sensible to this).
    181   . ./$as_me.lineno
     459  # original and so on.  Autoconf is especially sensitive to this).
     460  . "./$as_me.lineno"
    182461  # Exit status is that of the last command.
    183462  exit
    … …  
    185464
    186465
    187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    188   *c*,-n*) ECHO_N= ECHO_C='
    189 ' ECHO_T='      ' ;;
    190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     467  as_dirname=dirname
     468else
     469  as_dirname=false
     470fi
     471
     472ECHO_C= ECHO_N= ECHO_T=
     473case `echo -n x` in
     474-n*)
     475  case `echo 'x\c'` in
     476  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
     477  *)   ECHO_C='\c';;
     478  esac;;
     479*)
     480  ECHO_N='-n';;
    192481esac
    193482
    194 if expr a : '\(a\)' >/dev/null 2>&1; then
     483if expr a : '\(a\)' >/dev/null 2>&1 &&
     484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    195485  as_expr=expr
    196486else
    … …  
    199489
    200490rm -f conf$$ conf$$.exe conf$$.file
     491if test -d conf$$.dir; then
     492  rm -f conf$$.dir/conf$$.file
     493else
     494  rm -f conf$$.dir
     495  mkdir conf$$.dir
     496fi
    201497echo >conf$$.file
    202498if ln -s conf$$.file conf$$ 2>/dev/null; then
    203   # We could just check for DJGPP; but this test a) works b) is more generic
    204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    205   if test -f conf$$.exe; then
    206     # Don't use ln at all; we don't have any links
     499  as_ln_s='ln -s'
     500  # ... but there are two gotchas:
     501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     503  # In both cases, we have to default to `cp -p'.
     504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    207505    as_ln_s='cp -p'
    208   else
    209     as_ln_s='ln -s'
    210   fi
    211506elif ln conf$$.file conf$$ 2>/dev/null; then
    212507  as_ln_s=ln
    … …  
    214509  as_ln_s='cp -p'
    215510fi
    216 rm -f conf$$ conf$$.exe conf$$.file
     511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     512rmdir conf$$.dir 2>/dev/null
    217513
    218514if mkdir -p . 2>/dev/null; then
    … …  
    223519fi
    224520
    225 as_executable_p="test -f"
     521if test -x / >/dev/null 2>&1; then
     522  as_test_x='test -x'
     523else
     524  if ls -dL / >/dev/null 2>&1; then
     525    as_ls_L_option=L
     526  else
     527    as_ls_L_option=
     528  fi
     529  as_test_x='
     530    eval sh -c '\''
     531      if test -d "$1"; then
     532        test -d "$1/.";
     533      else
     534        case $1 in
     535        -*)set "./$1";;
     536        esac;
     537        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
     538        ???[sx]*):;;*)false;;esac;fi
     539    '\'' sh
     540  '
     541fi
     542as_executable_p=$as_test_x
    226543
    227544# Sed expression to map a string onto a valid CPP name.
    … …  
    232549
    233550
    234 # IFS
    235 # We need space, tab and new line, in precisely that order.
    236 as_nl='
    237 '
    238 IFS="   $as_nl"
    239 
    240 # CDPATH.
    241 $as_unset CDPATH
    242 
     551
     552exec 7<&0 </dev/null 6>&1
    243553
    244554# Name of the host.
    … …  
    247557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    248558
    249 exec 6>&1
    250 
    251559#
    252560# Initializations.
    253561#
    254562ac_default_prefix=/usr/local
     563ac_clean_files=
    255564ac_config_libobj_dir=.
     565LIBOBJS=
    256566cross_compiling=no
    257567subdirs=
    … …  
    259569MAKEFLAGS=
    260570SHELL=${CONFIG_SHELL-/bin/sh}
    261 
    262 # Maximum number of lines to put in a shell here document.
    263 # This variable seems obsolete.  It should probably be removed, and
    264 # only ac_max_sed_lines should be used.
    265 : ${ac_max_here_lines=38}
    266571
    267572# Identity of this package.
    … …  
    273578
    274579ac_unique_file="bos.c"
    275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB LIBOBJS LTLIBOBJS'
     580ac_subst_vars='SHELL
     581PATH_SEPARATOR
     582PACKAGE_NAME
     583PACKAGE_TARNAME
     584PACKAGE_VERSION
     585PACKAGE_STRING
     586PACKAGE_BUGREPORT
     587exec_prefix
     588prefix
     589program_transform_name
     590bindir
     591sbindir
     592libexecdir
     593datarootdir
     594datadir
     595sysconfdir
     596sharedstatedir
     597localstatedir
     598includedir
     599oldincludedir
     600docdir
     601infodir
     602htmldir
     603dvidir
     604pdfdir
     605psdir
     606libdir
     607localedir
     608mandir
     609DEFS
     610ECHO_C
     611ECHO_N
     612ECHO_T
     613LIBS
     614build_alias
     615host_alias
     616target_alias
     617CC
     618CFLAGS
     619LDFLAGS
     620CPPFLAGS
     621ac_ct_CC
     622EXEEXT
     623OBJEXT
     624RANLIB
     625LIBOBJS
     626LTLIBOBJS'
    276627ac_subst_files=''
     628      ac_precious_vars='build_alias
     629host_alias
     630target_alias
     631CC
     632CFLAGS
     633LDFLAGS
     634LIBS
     635CPPFLAGS'
     636
    277637
    278638# Initialize some variables set by options.
    … …  
    301661# by default will actually change.
    302662# Use braces instead of parens because sh, perl, etc. also accept them.
     663# (The list follows the same order as the GNU Coding Standards.)
    303664bindir='${exec_prefix}/bin'
    304665sbindir='${exec_prefix}/sbin'
    305666libexecdir='${exec_prefix}/libexec'
    306 datadir='${prefix}/share'
     667datarootdir='${prefix}/share'
     668datadir='${datarootdir}'
    307669sysconfdir='${prefix}/etc'
    308670sharedstatedir='${prefix}/com'
    309671localstatedir='${prefix}/var'
    310 libdir='${exec_prefix}/lib'
    311672includedir='${prefix}/include'
    312673oldincludedir='/usr/include'
    313 infodir='${prefix}/info'
    314 mandir='${prefix}/man'
     674docdir='${datarootdir}/doc/${PACKAGE}'
     675infodir='${datarootdir}/info'
     676htmldir='${docdir}'
     677dvidir='${docdir}'
     678pdfdir='${docdir}'
     679psdir='${docdir}'
     680libdir='${exec_prefix}/lib'
     681localedir='${datarootdir}/locale'
     682mandir='${datarootdir}/man'
    315683
    316684ac_prev=
     685ac_dashdash=
    317686for ac_option
    318687do
    319688  # If the previous option needs an argument, assign it.
    320689  if test -n "$ac_prev"; then
    321     eval "$ac_prev=\$ac_option"
     690    eval $ac_prev=\$ac_option
    322691    ac_prev=
    323692    continue
    324693  fi
    325694
    326   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     695  case $ac_option in
     696  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     697  *)    ac_optarg=yes ;;
     698  esac
    327699
    328700  # Accept the important Cygnus configure options, so we can diagnose typos.
    329701
    330   case $ac_option in
     702  case $ac_dashdash$ac_option in
     703  --)
     704    ac_dashdash=yes ;;
    331705
    332706  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    … …  
    350724    cache_file=config.cache ;;
    351725
    352   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     726  -datadir | --datadir | --datadi | --datad)
    353727    ac_prev=datadir ;;
    354   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    355   | --da=*)
     728  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    356729    datadir=$ac_optarg ;;
     730
     731  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
     732  | --dataroo | --dataro | --datar)
     733    ac_prev=datarootdir ;;
     734  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
     735  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
     736    datarootdir=$ac_optarg ;;
    357737
    358738  -disable-* | --disable-*)
    359739    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    360740    # Reject names that are not valid shell variable names.
    361     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     741    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    362742      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    363743   { (exit 1); exit 1; }; }
    364     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    365     eval "enable_$ac_feature=no" ;;
     744    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
     745    eval enable_$ac_feature=no ;;
     746
     747  -docdir | --docdir | --docdi | --doc | --do)
     748    ac_prev=docdir ;;
     749  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
     750    docdir=$ac_optarg ;;
     751
     752  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
     753    ac_prev=dvidir ;;
     754  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
     755    dvidir=$ac_optarg ;;
    366756
    367757  -enable-* | --enable-*)
    368758    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    369759    # Reject names that are not valid shell variable names.
    370     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     760    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    371761      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    372762   { (exit 1); exit 1; }; }
    373     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    374     case $ac_option in
    375       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    376       *) ac_optarg=yes ;;
    377     esac
    378     eval "enable_$ac_feature='$ac_optarg'" ;;
     763    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
     764    eval enable_$ac_feature=\$ac_optarg ;;
    379765
    380766  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    … …  
    403789    host_alias=$ac_optarg ;;
    404790
     791  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
     792    ac_prev=htmldir ;;
     793  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
     794  | --ht=*)
     795    htmldir=$ac_optarg ;;
     796
    405797  -includedir | --includedir | --includedi | --included | --include \
    406798  | --includ | --inclu | --incl | --inc)
    … …  
    427819    libexecdir=$ac_optarg ;;
    428820
     821  -localedir | --localedir | --localedi | --localed | --locale)
     822    ac_prev=localedir ;;
     823  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
     824    localedir=$ac_optarg ;;
     825
    429826  -localstatedir | --localstatedir | --localstatedi | --localstated \
    430   | --localstate | --localstat | --localsta | --localst \
    431   | --locals | --local | --loca | --loc | --lo)
     827  | --localstate | --localstat | --localsta | --localst | --locals)
    432828    ac_prev=localstatedir ;;
    433829  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    434   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    435   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     830  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    436831    localstatedir=$ac_optarg ;;
    437832
    … …  
    498893    program_transform_name=$ac_optarg ;;
    499894
     895  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
     896    ac_prev=pdfdir ;;
     897  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
     898    pdfdir=$ac_optarg ;;
     899
     900  -psdir | --psdir | --psdi | --psd | --ps)
     901    ac_prev=psdir ;;
     902  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
     903    psdir=$ac_optarg ;;
     904
    500905  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    501906  | -silent | --silent | --silen | --sile | --sil)
    … …  
    550955    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    551956    # Reject names that are not valid shell variable names.
    552     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     957    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    553958      { echo "$as_me: error: invalid package name: $ac_package" >&2
    554959   { (exit 1); exit 1; }; }
    555     ac_package=`echo $ac_package| sed 's/-/_/g'`
    556     case $ac_option in
    557       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    558       *) ac_optarg=yes ;;
    559     esac
    560     eval "with_$ac_package='$ac_optarg'" ;;
     960    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
     961    eval with_$ac_package=\$ac_optarg ;;
    561962
    562963  -without-* | --without-*)
    563964    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    564965    # Reject names that are not valid shell variable names.
    565     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     966    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    566967      { echo "$as_me: error: invalid package name: $ac_package" >&2
    567968   { (exit 1); exit 1; }; }
    568     ac_package=`echo $ac_package | sed 's/-/_/g'`
    569     eval "with_$ac_package=no" ;;
     969    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
     970    eval with_$ac_package=no ;;
    570971
    571972  --x)
    … …  
    598999      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    5991000   { (exit 1); exit 1; }; }
    600     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    601     eval "$ac_envvar='$ac_optarg'"
     1001    eval $ac_envvar=\$ac_optarg
    6021002    export $ac_envvar ;;
    6031003
    … …  
    6191019fi
    6201020
    621 # Be sure to have absolute paths.
    622 for ac_var in exec_prefix prefix
     1021# Be sure to have absolute directory names.
     1022for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
     1023                datadir sysconfdir sharedstatedir localstatedir includedir \
     1024                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
     1025                libdir localedir mandir
    6231026do
    624   eval ac_val=$`echo $ac_var`
     1027  eval ac_val=\$$ac_var
    6251028  case $ac_val in
    626     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    627     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    628    { (exit 1); exit 1; }; };;
     1029    [\\/$]* | ?:[\\/]* )  continue;;
     1030    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    6291031  esac
    630 done
    631 
    632 # Be sure to have absolute paths.
    633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    634               localstatedir libdir includedir oldincludedir infodir mandir
    635 do
    636   eval ac_val=$`echo $ac_var`
    637   case $ac_val in
    638     [\\/$]* | ?:[\\/]* ) ;;
    639     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    640    { (exit 1); exit 1; }; };;
    641   esac
     1032  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     1033   { (exit 1); exit 1; }; }
    6421034done
    6431035
    … …  
    6661058
    6671059
     1060ac_pwd=`pwd` && test -n "$ac_pwd" &&
     1061ac_ls_di=`ls -di .` &&
     1062ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
     1063  { echo "$as_me: error: Working directory cannot be determined" >&2
     1064   { (exit 1); exit 1; }; }
     1065test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
     1066  { echo "$as_me: error: pwd does not report name of working directory" >&2
     1067   { (exit 1); exit 1; }; }
     1068
     1069
    6681070# Find the source files, if location was not specified.
    6691071if test -z "$srcdir"; then
    6701072  ac_srcdir_defaulted=yes
    671   # Try the directory containing this script, then its parent.
    672   ac_confdir=`(dirname "$0") 2>/dev/null ||
     1073  # Try the directory containing this script, then the parent directory.
     1074  ac_confdir=`$as_dirname -- "$0" ||
    6731075$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    6741076         X"$0" : 'X\(//\)[^/]' \| \
    6751077         X"$0" : 'X\(//\)$' \| \
    676          X"$0" : 'X\(/\)' \| \
    677          .     : '\(.\)' 2>/dev/null ||
     1078         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    6781079echo X"$0" |
    679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    681           /^X\(\/\/\)$/{ s//\1/; q; }
    682           /^X\(\/\).*/{ s//\1/; q; }
    683           s/.*/./; q'`
     1080    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     1081            s//\1/
     1082            q
     1083          }
     1084          /^X\(\/\/\)[^/].*/{
     1085            s//\1/
     1086            q
     1087          }
     1088          /^X\(\/\/\)$/{
     1089            s//\1/
     1090            q
     1091          }
     1092          /^X\(\/\).*/{
     1093            s//\1/
     1094            q
     1095          }
     1096          s/.*/./; q'`
    6841097  srcdir=$ac_confdir
    685   if test ! -r $srcdir/$ac_unique_file; then
     1098  if test ! -r "$srcdir/$ac_unique_file"; then
    6861099    srcdir=..
    6871100  fi
    … …  
    6891102  ac_srcdir_defaulted=no
    6901103fi
    691 if test ! -r $srcdir/$ac_unique_file; then
    692   if test "$ac_srcdir_defaulted" = yes; then
    693     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
     1104if test ! -r "$srcdir/$ac_unique_file"; then
     1105  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
     1106  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    6941107   { (exit 1); exit 1; }; }
    695   else
    696     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     1108fi
     1109ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
     1110ac_abs_confdir=`(
     1111        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
    6971112   { (exit 1); exit 1; }; }
    698   fi
    699 fi
    700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
    701   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    702    { (exit 1); exit 1; }; }
    703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    704 ac_env_build_alias_set=${build_alias+set}
    705 ac_env_build_alias_value=$build_alias
    706 ac_cv_env_build_alias_set=${build_alias+set}
    707 ac_cv_env_build_alias_value=$build_alias
    708 ac_env_host_alias_set=${host_alias+set}
    709 ac_env_host_alias_value=$host_alias
    710 ac_cv_env_host_alias_set=${host_alias+set}
    711 ac_cv_env_host_alias_value=$host_alias
    712 ac_env_target_alias_set=${target_alias+set}
    713 ac_env_target_alias_value=$target_alias
    714 ac_cv_env_target_alias_set=${target_alias+set}
    715 ac_cv_env_target_alias_value=$target_alias
    716 ac_env_CC_set=${CC+set}
    717 ac_env_CC_value=$CC
    718 ac_cv_env_CC_set=${CC+set}
    719 ac_cv_env_CC_value=$CC
    720 ac_env_CFLAGS_set=${CFLAGS+set}
    721 ac_env_CFLAGS_value=$CFLAGS
    722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    723 ac_cv_env_CFLAGS_value=$CFLAGS
    724 ac_env_LDFLAGS_set=${LDFLAGS+set}
    725 ac_env_LDFLAGS_value=$LDFLAGS
    726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    727 ac_cv_env_LDFLAGS_value=$LDFLAGS
    728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    729 ac_env_CPPFLAGS_value=$CPPFLAGS
    730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     1113        pwd)`
     1114# When building in place, set srcdir=.
     1115if test "$ac_abs_confdir" = "$ac_pwd"; then
     1116  srcdir=.
     1117fi
     1118# Remove unnecessary trailing slashes from srcdir.
     1119# Double slashes in file names in object file debugging info
     1120# mess up M-x gdb in Emacs.
     1121case $srcdir in
     1122*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
     1123esac
     1124for ac_var in $ac_precious_vars; do
     1125  eval ac_env_${ac_var}_set=\${${ac_var}+set}
     1126  eval ac_env_${ac_var}_value=\$${ac_var}
     1127  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
     1128  eval ac_cv_env_${ac_var}_value=\$${ac_var}
     1129done
    7321130
    7331131#
    … …  
    7581156      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    7591157
    760 _ACEOF
    761 
    762   cat <<_ACEOF
    7631158Installation directories:
    7641159  --prefix=PREFIX         install architecture-independent files in PREFIX
    … …  
    7781173  --sbindir=DIR          system admin executables [EPREFIX/sbin]
    7791174  --libexecdir=DIR       program executables [EPREFIX/libexec]
    780   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    7811175  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    7821176  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    … …  
    7851179  --includedir=DIR       C header files [PREFIX/include]
    7861180  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    787   --infodir=DIR          info documentation [PREFIX/info]
    788   --mandir=DIR           man documentation [PREFIX/man]
     1181  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
     1182  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
     1183  --infodir=DIR          info documentation [DATAROOTDIR/info]
     1184  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
     1185  --mandir=DIR           man documentation [DATAROOTDIR/man]
     1186  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
     1187  --htmldir=DIR          html documentation [DOCDIR]
     1188  --dvidir=DIR           dvi documentation [DOCDIR]
     1189  --pdfdir=DIR           pdf documentation [DOCDIR]
     1190  --psdir=DIR            ps documentation [DOCDIR]
    7891191_ACEOF
    7901192
    … …  
    8021204  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    8031205              nonstandard directory <lib dir>
    804   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    805               headers in a nonstandard directory <include dir>
     1206  LIBS        libraries to pass to the linker, e.g. -l<library>
     1207  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
     1208              you have headers in a nonstandard directory <include dir>
    8061209
    8071210Use these variables to override the choices made by `configure' or to help
    … …  
    8091212
    8101213_ACEOF
     1214ac_status=$?
    8111215fi
    8121216
    8131217if test "$ac_init_help" = "recursive"; then
    8141218  # If there are subdirs, report their specific --help.
    815   ac_popdir=`pwd`
    8161219  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    817     test -d $ac_dir || continue
     1220    test -d "$ac_dir" || continue
    8181221    ac_builddir=.
    8191222
    820 if test "$ac_dir" != .; then
     1223case "$ac_dir" in
     1224.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1225*)
    8211226  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    822   # A "../" for each directory in $ac_dir_suffix.
    823   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    824 else
    825   ac_dir_suffix= ac_top_builddir=
    826 fi
     1227  # A ".." for each directory in $ac_dir_suffix.
     1228  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
     1229  case $ac_top_builddir_sub in
     1230  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1231  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     1232  esac ;;
     1233esac
     1234ac_abs_top_builddir=$ac_pwd
     1235ac_abs_builddir=$ac_pwd$ac_dir_suffix
     1236# for backward compatibility:
     1237ac_top_builddir=$ac_top_build_prefix
    8271238
    8281239case $srcdir in
    829   .)  # No --srcdir option.  We are building in place.
     1240  .)  # We are building in place.
    8301241    ac_srcdir=.
    831     if test -z "$ac_top_builddir"; then
    832        ac_top_srcdir=.
    833     else
    834        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    835     fi ;;
    836   [\\/]* | ?:[\\/]* )  # Absolute path.
     1242    ac_top_srcdir=$ac_top_builddir_sub
     1243    ac_abs_top_srcdir=$ac_pwd ;;
     1244  [\\/]* | ?:[\\/]* )  # Absolute name.
    8371245    ac_srcdir=$srcdir$ac_dir_suffix;
    838     ac_top_srcdir=$srcdir ;;
    839   *) # Relative path.
    840     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    841     ac_top_srcdir=$ac_top_builddir$srcdir ;;
     1246    ac_top_srcdir=$srcdir
     1247    ac_abs_top_srcdir=$srcdir ;;
     1248  *) # Relative name.
     1249    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     1250    ac_top_srcdir=$ac_top_build_prefix$srcdir
     1251    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    8421252esac
    843 
    844 # Do not use `cd foo && pwd` to compute absolute paths, because
    845 # the directories may not exist.
    846 case `pwd` in
    847 .) ac_abs_builddir="$ac_dir";;
    848 *)
    849   case "$ac_dir" in
    850   .) ac_abs_builddir=`pwd`;;
    851   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    852   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    853   esac;;
    854 esac
    855 case $ac_abs_builddir in
    856 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    857 *)
    858   case ${ac_top_builddir}. in
    859   .) ac_abs_top_builddir=$ac_abs_builddir;;
    860   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    861   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    862   esac;;
    863 esac
    864 case $ac_abs_builddir in
    865 .) ac_abs_srcdir=$ac_srcdir;;
    866 *)
    867   case $ac_srcdir in
    868   .) ac_abs_srcdir=$ac_abs_builddir;;
    869   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    870   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    871   esac;;
    872 esac
    873 case $ac_abs_builddir in
    874 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    875 *)
    876   case $ac_top_srcdir in
    877   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    878   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    879   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    880   esac;;
    881 esac
    882 
    883     cd $ac_dir
    884     # Check for guested configure; otherwise get Cygnus style configure.
    885     if test -f $ac_srcdir/configure.gnu; then
    886       echo
    887       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    888     elif test -f $ac_srcdir/configure; then
    889       echo
    890       $SHELL $ac_srcdir/configure  --help=recursive
    891     elif test -f $ac_srcdir/configure.ac ||
    892            test -f $ac_srcdir/configure.in; then
    893       echo
    894       $ac_configure --help
     1253ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     1254
     1255    cd "$ac_dir" || { ac_status=$?; continue; }
     1256    # Check for guested configure.
     1257    if test -f "$ac_srcdir/configure.gnu"; then
     1258      echo &&
     1259      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
     1260    elif test -f "$ac_srcdir/configure"; then
     1261      echo &&
     1262      $SHELL "$ac_srcdir/configure" --help=recursive
    8951263    else
    8961264      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    897     fi
    898     cd $ac_popdir
     1265    fi || ac_status=$?
     1266    cd "$ac_pwd" || { ac_status=$?; break; }
    8991267  done
    9001268fi
    9011269
    902 test -n "$ac_init_help" && exit 0
     1270test -n "$ac_init_help" && exit $ac_status
    9031271if $ac_init_version; then
    9041272  cat <<\_ACEOF
    905 
    906 Copyright (C) 2003 Free Software Foundation, Inc.
     1273configure
     1274generated by GNU Autoconf 2.61
     1275
     1276Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     12772002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
    9071278This configure script is free software; the Free Software Foundation
    9081279gives unlimited permission to copy, distribute and modify it.
    9091280_ACEOF
    910   exit 0
    911 fi
    912 exec 5>config.log
    913 cat >&5 <<_ACEOF
     1281  exit
     1282fi
     1283cat >config.log <<_ACEOF
    9141284This file contains any messages produced by compilers while
    9151285running configure, to aid debugging if configure makes a mistake.
    9161286
    9171287It was created by $as_me, which was
    918 generated by GNU Autoconf 2.59.  Invocation command line was
     1288generated by GNU Autoconf 2.61.  Invocation command line was
    9191289
    9201290  $ $0 $@
    9211291
    9221292_ACEOF
     1293exec 5>>config.log
    9231294{
    9241295cat <<_ASUNAME
    … …  
    9391310/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    9401311/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    941 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1312/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
    9421313/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    9431314/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    … …  
    9531324  echo "PATH: $as_dir"
    9541325done
     1326IFS=$as_save_IFS
    9551327
    9561328} >&5
    … …  
    9741346ac_configure_args0=
    9751347ac_configure_args1=
    976 ac_sep=
    9771348ac_must_keep_next=false
    9781349for ac_pass in 1 2
    … …  
    9851356    | -silent | --silent | --silen | --sile | --sil)
    9861357      continue ;;
    987     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1358    *\'*)
    9881359      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    9891360    esac
    … …  
    10071378        esac
    10081379      fi
    1009       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1010       # Get rid of the leading space.
    1011       ac_sep=" "
     1380      ac_configure_args="$ac_configure_args '$ac_arg'"
    10121381      ;;
    10131382    esac
    … …  
    10201389# config.log.  We remove comments because anyway the quotes in there
    10211390# would cause problems or look ugly.
    1022 # WARNING: Be sure not to use single quotes in there, as some shells,
    1023 # such as our DU 5.0 friend, will then `close' the trap.
     1391# WARNING: Use '\'' to represent an apostrophe within the trap.
     1392# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
    10241393trap 'exit_status=$?
    10251394  # Save into config.log some information that might help in debugging.
    … …  
    10341403    echo
    10351404    # The following way of writing the cache mishandles newlines in values,
    1036 {
     1405(
     1406  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
     1407    eval ac_val=\$$ac_var
     1408    case $ac_val in #(
     1409    *${as_nl}*)
     1410      case $ac_var in #(
     1411      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
     1412echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
     1413      esac
     1414      case $ac_var in #(
     1415      _ | IFS | as_nl) ;; #(
     1416      *) $as_unset $ac_var ;;
     1417      esac ;;
     1418    esac
     1419  done
    10371420  (set) 2>&1 |
    1038     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1039     *ac_space=\ *)
     1421    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
     1422    *${as_nl}ac_space=\ *)
    10401423      sed -n \
    1041         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1042           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1424        "s/'\''/'\''\\\\'\'''\''/g;
     1425          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
     1426      ;; #(
     1427    *)
     1428      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    10431429      ;;
    1044     *)
    1045       sed -n \
    1046         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1047       ;;
    1048     esac;
    1049 }
     1430    esac |
     1431    sort
     1432)
    10501433    echo
    10511434
    … …  
    10581441    for ac_var in $ac_subst_vars
    10591442    do
    1060       eval ac_val=$`echo $ac_var`
    1061       echo "$ac_var='"'"'$ac_val'"'"'"
     1443      eval ac_val=\$$ac_var
     1444      case $ac_val in
     1445      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     1446      esac
     1447      echo "$ac_var='\''$ac_val'\''"
    10621448    done | sort
    10631449    echo
    … …  
    10651451    if test -n "$ac_subst_files"; then
    10661452      cat <<\_ASBOX
    1067 ## ------------- ##
    1068 ## Output files. ##
    1069 ## ------------- ##
     1453## ------------------- ##
     1454## File substitutions. ##
     1455## ------------------- ##
    10701456_ASBOX
    10711457      echo
    10721458      for ac_var in $ac_subst_files
    10731459      do
    1074         eval ac_val=$`echo $ac_var`
    1075         echo "$ac_var='"'"'$ac_val'"'"'"
     1460        eval ac_val=\$$ac_var
     1461        case $ac_val in
     1462        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     1463        esac
     1464        echo "$ac_var='\''$ac_val'\''"
    10761465      done | sort
    10771466      echo
    … …  
    10851474_ASBOX
    10861475      echo
    1087       sed "/^$/d" confdefs.h | sort
     1476      cat confdefs.h
    10881477      echo
    10891478    fi
    … …  
    10921481    echo "$as_me: exit $exit_status"
    10931482  } >&5
    1094   rm -f core *.core &&
    1095   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     1483  rm -f core *.core core.conftest.* &&
     1484    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    10961485    exit $exit_status
    1097      ' 0
     1486' 0
    10981487for ac_signal in 1 2 13 15; do
    10991488  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    … …  
    11021491
    11031492# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1104 rm -rf conftest* confdefs.h
    1105 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1106 echo >confdefs.h
     1493rm -f -r conftest* confdefs.h
    11071494
    11081495# Predefined preprocessor variables.
    … …  
    11351522# Let the site file select an alternate cache file if it wants to.
    11361523# Prefer explicitly selected file to automatically selected ones.
    1137 if test -z "$CONFIG_SITE"; then
    1138   if test "x$prefix" != xNONE; then
    1139     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1140   else
    1141     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1142   fi
    1143 fi
    1144 for ac_site_file in $CONFIG_SITE; do
     1524if test -n "$CONFIG_SITE"; then
     1525  set x "$CONFIG_SITE"
     1526elif test "x$prefix" != xNONE; then
     1527  set x "$prefix/share/config.site" "$prefix/etc/config.site"
     1528else
     1529  set x "$ac_default_prefix/share/config.site" \
     1530        "$ac_default_prefix/etc/config.site"
     1531fi
     1532shift
     1533for ac_site_file
     1534do
    11451535  if test -r "$ac_site_file"; then
    11461536    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    … …  
    11581548echo "$as_me: loading cache $cache_file" >&6;}
    11591549    case $cache_file in
    1160       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1161       *)                      . ./$cache_file;;
     1550      [\\/]* | ?:[\\/]* ) . "$cache_file";;
     1551      *)                      . "./$cache_file";;
    11621552    esac
    11631553  fi
    … …  
    11711561# value.
    11721562ac_cache_corrupted=false
    1173 for ac_var in `(set) 2>&1 |
    1174                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1563for ac_var in $ac_precious_vars; do
    11751564  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    11761565  eval ac_new_set=\$ac_env_${ac_var}_set
    1177   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1178   eval ac_new_val="\$ac_env_${ac_var}_value"
     1566  eval ac_old_val=\$ac_cv_env_${ac_var}_value
     1567  eval ac_new_val=\$ac_env_${ac_var}_value
    11791568  case $ac_old_set,$ac_new_set in
    11801569    set,)
    … …  
    12011590  if test "$ac_new_set" = set; then
    12021591    case $ac_new_val in
    1203     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1204       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1592    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    12051593    *) ac_arg=$ac_var=$ac_new_val ;;
    12061594    esac
    … …  
    12191607fi
    12201608
     1609
     1610
     1611
     1612
     1613
     1614
     1615
     1616
     1617
     1618
     1619
     1620
     1621
     1622
     1623
     1624
    12211625ac_ext=c
    12221626ac_cpp='$CPP $CPPFLAGS'
    … …  
    12241628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    12251629ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1226 
    1227 
    1228 
    1229 
    1230 
    1231 
    1232 
    1233 
    1234 
    1235 
    1236 
    1237 
    1238 
    1239 
    1240 
    1241 
    1242 
    12431630
    12441631
    … …  
    12531640  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    12541641set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1255 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    12571644if test "${ac_cv_prog_CC+set}" = set; then
    12581645  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    12671654  test -z "$as_dir" && as_dir=.
    12681655  for ac_exec_ext in '' $ac_executable_extensions; do
    1269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    12701657    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    12711658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    12741661done
    12751662done
     1663IFS=$as_save_IFS
    12761664
    12771665fi
    … …  
    12791667CC=$ac_cv_prog_CC
    12801668if test -n "$CC"; then
    1281   echo "$as_me:$LINENO: result: $CC" >&5
    1282 echo "${ECHO_T}$CC" >&6
    1283 else
    1284   echo "$as_me:$LINENO: result: no" >&5
    1285 echo "${ECHO_T}no" >&6
    1286 fi
     1669  { echo "$as_me:$LINENO: result: $CC" >&5
     1670echo "${ECHO_T}$CC" >&6; }
     1671else
     1672  { echo "$as_me:$LINENO: result: no" >&5
     1673echo "${ECHO_T}no" >&6; }
     1674fi
     1675
    12871676
    12881677fi
    … …  
    12911680  # Extract the first word of "gcc", so it can be a program name with args.
    12921681set dummy gcc; ac_word=$2
    1293 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    12951684if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    12961685  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    13051694  test -z "$as_dir" && as_dir=.
    13061695  for ac_exec_ext in '' $ac_executable_extensions; do
    1307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    13081697    ac_cv_prog_ac_ct_CC="gcc"
    13091698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    13121701done
    13131702done
     1703IFS=$as_save_IFS
    13141704
    13151705fi
    … …  
    13171707ac_ct_CC=$ac_cv_prog_ac_ct_CC
    13181708if test -n "$ac_ct_CC"; then
    1319   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1320 echo "${ECHO_T}$ac_ct_CC" >&6
    1321 else
    1322   echo "$as_me:$LINENO: result: no" >&5
    1323 echo "${ECHO_T}no" >&6
    1324 fi
    1325 
    1326   CC=$ac_ct_CC
     1709  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1710echo "${ECHO_T}$ac_ct_CC" >&6; }
     1711else
     1712  { echo "$as_me:$LINENO: result: no" >&5
     1713echo "${ECHO_T}no" >&6; }
     1714fi
     1715
     1716  if test "x$ac_ct_CC" = x; then
     1717    CC=""
     1718  else
     1719    case $cross_compiling:$ac_tool_warned in
     1720yes:)
     1721{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     1722whose name does not start with the host triplet.  If you think this
     1723configuration is useful to you, please write to autoconf@gnu.org." >&5
     1724echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     1725whose name does not start with the host triplet.  If you think this
     1726configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     1727ac_tool_warned=yes ;;
     1728esac
     1729    CC=$ac_ct_CC
     1730  fi
    13271731else
    13281732  CC="$ac_cv_prog_CC"
    … …  
    13301734
    13311735if test -z "$CC"; then
    1332   if test -n "$ac_tool_prefix"; then
    1333   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1736          if test -n "$ac_tool_prefix"; then
     1737    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    13341738set dummy ${ac_tool_prefix}cc; ac_word=$2
    1335 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    13371741if test "${ac_cv_prog_CC+set}" = set; then
    13381742  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    13471751  test -z "$as_dir" && as_dir=.
    13481752  for ac_exec_ext in '' $ac_executable_extensions; do
    1349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    13501754    ac_cv_prog_CC="${ac_tool_prefix}cc"
    13511755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    13541758done
    13551759done
     1760IFS=$as_save_IFS
    13561761
    13571762fi
    … …  
    13591764CC=$ac_cv_prog_CC
    13601765if test -n "$CC"; then
    1361   echo "$as_me:$LINENO: result: $CC" >&5
    1362 echo "${ECHO_T}$CC" >&6
    1363 else
    1364   echo "$as_me:$LINENO: result: no" >&5
    1365 echo "${ECHO_T}no" >&6
    1366 fi
    1367 
    1368 fi
    1369 if test -z "$ac_cv_prog_CC"; then
    1370   ac_ct_CC=$CC
    1371   # Extract the first word of "cc", so it can be a program name with args.
    1372 set dummy cc; ac_word=$2
    1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1376   echo $ECHO_N "(cached) $ECHO_C" >&6
    1377 else
    1378   if test -n "$ac_ct_CC"; then
    1379   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1380 else
    1381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1382 for as_dir in $PATH
    1383 do
    1384   IFS=$as_save_IFS
    1385   test -z "$as_dir" && as_dir=.
    1386   for ac_exec_ext in '' $ac_executable_extensions; do
    1387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1388     ac_cv_prog_ac_ct_CC="cc"
    1389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1390     break 2
     1766  { echo "$as_me:$LINENO: result: $CC" >&5
     1767echo "${ECHO_T}$CC" >&6; }
     1768else
     1769  { echo "$as_me:$LINENO: result: no" >&5
     1770echo "${ECHO_T}no" >&6; }
     1771fi
     1772
     1773
    13911774  fi
    1392 done
    1393 done
    1394 
    1395 fi
    1396 fi
    1397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1398 if test -n "$ac_ct_CC"; then
    1399   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1400 echo "${ECHO_T}$ac_ct_CC" >&6
    1401 else
    1402   echo "$as_me:$LINENO: result: no" >&5
    1403 echo "${ECHO_T}no" >&6
    1404 fi
    1405 
    1406   CC=$ac_ct_CC
    1407 else
    1408   CC="$ac_cv_prog_CC"
    1409 fi
    1410 
    14111775fi
    14121776if test -z "$CC"; then
    14131777  # Extract the first word of "cc", so it can be a program name with args.
    14141778set dummy cc; ac_word=$2
    1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    14171781if test "${ac_cv_prog_CC+set}" = set; then
    14181782  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    14281792  test -z "$as_dir" && as_dir=.
    14291793  for ac_exec_ext in '' $ac_executable_extensions; do
    1430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    14311795    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    14321796       ac_prog_rejected=yes
    … …  
    14391803done
    14401804done
     1805IFS=$as_save_IFS
    14411806
    14421807if test $ac_prog_rejected = yes; then
    … …  
    14561821CC=$ac_cv_prog_CC
    14571822if test -n "$CC"; then
    1458   echo "$as_me:$LINENO: result: $CC" >&5
    1459 echo "${ECHO_T}$CC" >&6
    1460 else
    1461   echo "$as_me:$LINENO: result: no" >&5
    1462 echo "${ECHO_T}no" >&6
    1463 fi
     1823  { echo "$as_me:$LINENO: result: $CC" >&5
     1824echo "${ECHO_T}$CC" >&6; }
     1825else
     1826  { echo "$as_me:$LINENO: result: no" >&5
     1827echo "${ECHO_T}no" >&6; }
     1828fi
     1829
    14641830
    14651831fi
    14661832if test -z "$CC"; then
    14671833  if test -n "$ac_tool_prefix"; then
    1468   for ac_prog in cl
     1834  for ac_prog in cl.exe
    14691835  do
    14701836    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    14711837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    14741840if test "${ac_cv_prog_CC+set}" = set; then
    14751841  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    14841850  test -z "$as_dir" && as_dir=.
    14851851  for ac_exec_ext in '' $ac_executable_extensions; do
    1486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1852  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    14871853    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    14881854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    14911857done
    14921858done
     1859IFS=$as_save_IFS
    14931860
    14941861fi
    … …  
    14961863CC=$ac_cv_prog_CC
    14971864if test -n "$CC"; then
    1498   echo "$as_me:$LINENO: result: $CC" >&5
    1499 echo "${ECHO_T}$CC" >&6
    1500 else
    1501   echo "$as_me:$LINENO: result: no" >&5
    1502 echo "${ECHO_T}no" >&6
    1503 fi
     1865  { echo "$as_me:$LINENO: result: $CC" >&5
     1866echo "${ECHO_T}$CC" >&6; }
     1867else
     1868  { echo "$as_me:$LINENO: result: no" >&5
     1869echo "${ECHO_T}no" >&6; }
     1870fi
     1871
    15041872
    15051873    test -n "$CC" && break
    … …  
    15081876if test -z "$CC"; then
    15091877  ac_ct_CC=$CC
    1510   for ac_prog in cl
     1878  for ac_prog in cl.exe
    15111879do
    15121880  # Extract the first word of "$ac_prog", so it can be a program name with args.
    15131881set dummy $ac_prog; ac_word=$2
    1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     1883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    15161884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    15171885  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    15261894  test -z "$as_dir" && as_dir=.
    15271895  for ac_exec_ext in '' $ac_executable_extensions; do
    1528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    15291897    ac_cv_prog_ac_ct_CC="$ac_prog"
    15301898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    15331901done
    15341902done
     1903IFS=$as_save_IFS
    15351904
    15361905fi
    … …  
    15381907ac_ct_CC=$ac_cv_prog_ac_ct_CC
    15391908if test -n "$ac_ct_CC"; then
    1540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1541 echo "${ECHO_T}$ac_ct_CC" >&6
    1542 else
    1543   echo "$as_me:$LINENO: result: no" >&5
    1544 echo "${ECHO_T}no" >&6
    1545 fi
     1909  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1910echo "${ECHO_T}$ac_ct_CC" >&6; }
     1911else
     1912  { echo "$as_me:$LINENO: result: no" >&5
     1913echo "${ECHO_T}no" >&6; }
     1914fi
     1915
    15461916
    15471917  test -n "$ac_ct_CC" && break
    15481918done
    15491919
    1550   CC=$ac_ct_CC
     1920  if test "x$ac_ct_CC" = x; then
     1921    CC=""
     1922  else
     1923    case $cross_compiling:$ac_tool_warned in
     1924yes:)
     1925{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     1926whose name does not start with the host triplet.  If you think this
     1927configuration is useful to you, please write to autoconf@gnu.org." >&5
     1928echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     1929whose name does not start with the host triplet.  If you think this
     1930configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     1931ac_tool_warned=yes ;;
     1932esac
     1933    CC=$ac_ct_CC
     1934  fi
    15511935fi
    15521936
    … …  
    15611945
    15621946# Provide some information about the compiler.
    1563 echo "$as_me:$LINENO:" \
    1564      "checking for C compiler version" >&5
     1947echo "$as_me:$LINENO: checking for C compiler version" >&5
    15651948ac_compiler=`set X $ac_compile; echo $2`
    1566 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    1567   (eval $ac_compiler --version </dev/null >&5) 2>&5
     1949{ (ac_try="$ac_compiler --version >&5"
     1950case "(($ac_try" in
     1951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1952  *) ac_try_echo=$ac_try;;
     1953esac
     1954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     1955  (eval "$ac_compiler --version >&5") 2>&5
    15681956  ac_status=$?
    15691957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15701958  (exit $ac_status); }
    1571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    1572   (eval $ac_compiler -v </dev/null >&5) 2>&5
     1959{ (ac_try="$ac_compiler -v >&5"
     1960case "(($ac_try" in
     1961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1962  *) ac_try_echo=$ac_try;;
     1963esac
     1964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     1965  (eval "$ac_compiler -v >&5") 2>&5
    15731966  ac_status=$?
    15741967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15751968  (exit $ac_status); }
    1576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    1577   (eval $ac_compiler -V </dev/null >&5) 2>&5
     1969{ (ac_try="$ac_compiler -V >&5"
     1970case "(($ac_try" in
     1971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1972  *) ac_try_echo=$ac_try;;
     1973esac
     1974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     1975  (eval "$ac_compiler -V >&5") 2>&5
    15781976  ac_status=$?
    15791977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    … …  
    16001998# It will help us diagnose broken compilers, and finding out an intuition
    16011999# of exeext.
    1602 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    1603 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     2000{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     2001echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
    16042002ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1605 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    1606   (eval $ac_link_default) 2>&5
     2003#
     2004# List of possible output files, starting from the most likely.
     2005# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
     2006# only as a last resort.  b.out is created by i960 compilers.
     2007ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
     2008#
     2009# The IRIX 6 linker writes into existing files which may not be
     2010# executable, retaining their permissions.  Remove them first so a
     2011# subsequent execution test works.
     2012ac_rmfiles=
     2013for ac_file in $ac_files
     2014do
     2015  case $ac_file in
     2016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
     2017    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     2018  esac
     2019done
     2020rm -f $ac_rmfiles
     2021
     2022if { (ac_try="$ac_link_default"
     2023case "(($ac_try" in
     2024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2025  *) ac_try_echo=$ac_try;;
     2026esac
     2027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2028  (eval "$ac_link_default") 2>&5
    16072029  ac_status=$?
    16082030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16092031  (exit $ac_status); }; then
    1610   # Find the output, starting from the most likely.  This scheme is
    1611 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    1612 # resort.
    1613 
    1614 # Be careful to initialize this variable, since it used to be cached.
    1615 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    1616 ac_cv_exeext=
    1617 # b.out is created by i960 compilers.
    1618 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     2032  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     2033# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     2034# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     2035# so that the user can short-circuit this test for compilers unknown to
     2036# Autoconf.
     2037for ac_file in $ac_files ''
    16192038do
    16202039  test -f "$ac_file" || continue
    16212040  case $ac_file in
    1622     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    1623         ;;
    1624     conftest.$ac_ext )
    1625         # This is the source file.
     2041    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
    16262042        ;;
    16272043    [ab].out )
    … …  
    16302046        break;;
    16312047    *.* )
    1632         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1633         # FIXME: I believe we export ac_cv_exeext for Libtool,
    1634         # but it would be cool to find out if it's true.  Does anybody
    1635         # maintain Libtool? --akim.
    1636         export ac_cv_exeext
     2048        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2049        then :; else
     2050           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2051        fi
     2052        # We set ac_cv_exeext here because the later test for it is not
     2053        # safe: cross compilers may not add the suffix if given an `-o'
     2054        # argument, so we may need to know it at that point already.
     2055        # Even if this section looks crufty: it has the advantage of
     2056        # actually working.
    16372057        break;;
    16382058    * )
    … …  
    16402060  esac
    16412061done
    1642 else
     2062test "$ac_cv_exeext" = no && ac_cv_exeext=
     2063
     2064else
     2065  ac_file=''
     2066fi
     2067
     2068{ echo "$as_me:$LINENO: result: $ac_file" >&5
     2069echo "${ECHO_T}$ac_file" >&6; }
     2070if test -z "$ac_file"; then
    16432071  echo "$as_me: failed program was:" >&5
    16442072sed 's/^/| /' conftest.$ac_ext >&5
    … …  
    16522080
    16532081ac_exeext=$ac_cv_exeext
    1654 echo "$as_me:$LINENO: result: $ac_file" >&5
    1655 echo "${ECHO_T}$ac_file" >&6
    1656 
    1657 # Check the compiler produces executables we can run.  If not, either
     2082
     2083# Check that the compiler produces executables we can run.  If not, either
    16582084# the compiler is broken, or we cross compile.
    1659 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    1660 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     2085{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2086echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
    16612087# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    16622088# If not cross compiling, check that we can run a simple program.
    16632089if test "$cross_compiling" != yes; then
    16642090  if { ac_try='./$ac_file'
    1665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1666   (eval $ac_try) 2>&5
     2091  { (case "(($ac_try" in
     2092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2093  *) ac_try_echo=$ac_try;;
     2094esac
     2095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2096  (eval "$ac_try") 2>&5
    16672097  ac_status=$?
    16682098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    … …  
    16832113  fi
    16842114fi
    1685 echo "$as_me:$LINENO: result: yes" >&5
    1686 echo "${ECHO_T}yes" >&6
     2115{ echo "$as_me:$LINENO: result: yes" >&5
     2116echo "${ECHO_T}yes" >&6; }
    16872117
    16882118rm -f a.out a.exe conftest$ac_cv_exeext b.out
    16892119ac_clean_files=$ac_clean_files_save
    1690 # Check the compiler produces executables we can run.  If not, either
     2120# Check that the compiler produces executables we can run.  If not, either
    16912121# the compiler is broken, or we cross compile.
    1692 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    1693 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1694 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    1695 echo "${ECHO_T}$cross_compiling" >&6
    1696 
    1697 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    1698 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    1699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    1700   (eval $ac_link) 2>&5
     2122{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     2123echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
     2124{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
     2125echo "${ECHO_T}$cross_compiling" >&6; }
     2126
     2127{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
     2128echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
     2129if { (ac_try="$ac_link"
     2130case "(($ac_try" in
     2131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2132  *) ac_try_echo=$ac_try;;
     2133esac
     2134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2135  (eval "$ac_link") 2>&5
    17012136  ac_status=$?
    17022137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    … …  
    17092144  test -f "$ac_file" || continue
    17102145  case $ac_file in
    1711     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2146    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    17122147    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1713           export ac_cv_exeext
    17142148          break;;
    17152149    * ) break;;
    … …  
    17252159
    17262160rm -f conftest$ac_cv_exeext
    1727 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    1728 echo "${ECHO_T}$ac_cv_exeext" >&6
     2161{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     2162echo "${ECHO_T}$ac_cv_exeext" >&6; }
    17292163
    17302164rm -f conftest.$ac_ext
    17312165EXEEXT=$ac_cv_exeext
    17322166ac_exeext=$EXEEXT
    1733 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    1734 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     2167{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2168echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
    17352169if test "${ac_cv_objext+set}" = set; then
    17362170  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    17522186_ACEOF
    17532187rm -f conftest.o conftest.obj
    1754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1755   (eval $ac_compile) 2>&5
     2188if { (ac_try="$ac_compile"
     2189case "(($ac_try" in
     2190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2191  *) ac_try_echo=$ac_try;;
     2192esac
     2193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2194  (eval "$ac_compile") 2>&5
    17562195  ac_status=$?
    17572196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17582197  (exit $ac_status); }; then
    1759   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     2198  for ac_file in conftest.o conftest.obj conftest.*; do
     2199  test -f "$ac_file" || continue;
    17602200  case $ac_file in
    1761     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     2201    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
    17622202    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    17632203       break;;
    … …  
    17772217rm -f conftest.$ac_cv_objext conftest.$ac_ext
    17782218fi
    1779 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    1780 echo "${ECHO_T}$ac_cv_objext" >&6
     2219{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     2220echo "${ECHO_T}$ac_cv_objext" >&6; }
    17812221OBJEXT=$ac_cv_objext
    17822222ac_objext=$OBJEXT
    1783 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    1784 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     2223{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2224echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
    17852225if test "${ac_cv_c_compiler_gnu+set}" = set; then
    17862226  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    18052245_ACEOF
    18062246rm -f conftest.$ac_objext
    1807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1808   (eval $ac_compile) 2>conftest.er1
     2247if { (ac_try="$ac_compile"
     2248case "(($ac_try" in
     2249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2250  *) ac_try_echo=$ac_try;;
     2251esac
     2252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2253  (eval "$ac_compile") 2>conftest.er1
    18092254  ac_status=$?
    18102255  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    18122257  cat conftest.err >&5
    18132258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1814   (exit $ac_status); } &&
    1815          { ac_try='test -z "$ac_c_werror_flag"
    1816                          || test ! -s conftest.err'
    1817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1818   (eval $ac_try) 2>&5
    1819   ac_status=$?
    1820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1821   (exit $ac_status); }; } &&
    1822          { ac_try='test -s conftest.$ac_objext'
    1823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1824   (eval $ac_try) 2>&5
    1825   ac_status=$?
    1826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1827   (exit $ac_status); }; }; then
     2259  (exit $ac_status); } && {
     2260         test -z "$ac_c_werror_flag" ||
     2261         test ! -s conftest.err
     2262       } && test -s conftest.$ac_objext; then
    18282263  ac_compiler_gnu=yes
    18292264else
    … …  
    18312266sed 's/^/| /' conftest.$ac_ext >&5
    18322267
    1833 ac_compiler_gnu=no
    1834 fi
    1835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2268        ac_compiler_gnu=no
     2269fi
     2270
     2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    18362272ac_cv_c_compiler_gnu=$ac_compiler_gnu
    18372273
    18382274fi
    1839 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    1840 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2275{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2276echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
    18412277GCC=`test $ac_compiler_gnu = yes && echo yes`
    18422278ac_test_CFLAGS=${CFLAGS+set}
    18432279ac_save_CFLAGS=$CFLAGS
    1844 CFLAGS="-g"
    1845 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    1846 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2280{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2281echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
    18472282if test "${ac_cv_prog_cc_g+set}" = set; then
    18482283  echo $ECHO_N "(cached) $ECHO_C" >&6
    18492284else
    1850   cat >conftest.$ac_ext <<_ACEOF
     2285  ac_save_c_werror_flag=$ac_c_werror_flag
     2286   ac_c_werror_flag=yes
     2287   ac_cv_prog_cc_g=no
     2288   CFLAGS="-g"
     2289   cat >conftest.$ac_ext <<_ACEOF
    18512290/* confdefs.h.  */
    18522291_ACEOF
    … …  
    18642303_ACEOF
    18652304rm -f conftest.$ac_objext
    1866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1867   (eval $ac_compile) 2>conftest.er1
     2305if { (ac_try="$ac_compile"
     2306case "(($ac_try" in
     2307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2308  *) ac_try_echo=$ac_try;;
     2309esac
     2310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2311  (eval "$ac_compile") 2>conftest.er1
    18682312  ac_status=$?
    18692313  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    18712315  cat conftest.err >&5
    18722316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1873   (exit $ac_status); } &&
    1874          { ac_try='test -z "$ac_c_werror_flag"
    1875                          || test ! -s conftest.err'
    1876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1877   (eval $ac_try) 2>&5
    1878   ac_status=$?
    1879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1880   (exit $ac_status); }; } &&
    1881          { ac_try='test -s conftest.$ac_objext'
    1882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1883   (eval $ac_try) 2>&5
    1884   ac_status=$?
    1885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1886   (exit $ac_status); }; }; then
     2317  (exit $ac_status); } && {
     2318         test -z "$ac_c_werror_flag" ||
     2319         test ! -s conftest.err
     2320       } && test -s conftest.$ac_objext; then
    18872321  ac_cv_prog_cc_g=yes
    18882322else
    … …  
    18902324sed 's/^/| /' conftest.$ac_ext >&5
    18912325
    1892 ac_cv_prog_cc_g=no
    1893 fi
    1894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    1895 fi
    1896 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    1897 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     2326        CFLAGS=""
     2327      cat >conftest.$ac_ext <<_ACEOF
     2328/* confdefs.h.  */
     2329_ACEOF
     2330cat confdefs.h >>conftest.$ac_ext
     2331cat >>conftest.$ac_ext <<_ACEOF
     2332/* end confdefs.h.  */
     2333
     2334int
     2335main ()
     2336{
     2337
     2338  ;
     2339  return 0;
     2340}
     2341_ACEOF
     2342rm -f conftest.$ac_objext
     2343if { (ac_try="$ac_compile"
     2344case "(($ac_try" in
     2345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2346  *) ac_try_echo=$ac_try;;
     2347esac
     2348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2349  (eval "$ac_compile") 2>conftest.er1
     2350  ac_status=$?
     2351  grep -v '^ *+' conftest.er1 >conftest.err
     2352  rm -f conftest.er1
     2353  cat conftest.err >&5
     2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2355  (exit $ac_status); } && {
     2356         test -z "$ac_c_werror_flag" ||
     2357         test ! -s conftest.err
     2358       } && test -s conftest.$ac_objext; then
     2359  :
     2360else
     2361  echo "$as_me: failed program was:" >&5
     2362sed 's/^/| /' conftest.$ac_ext >&5
     2363
     2364        ac_c_werror_flag=$ac_save_c_werror_flag
     2365         CFLAGS="-g"
     2366         cat >conftest.$ac_ext <<_ACEOF
     2367/* confdefs.h.  */
     2368_ACEOF
     2369cat confdefs.h >>conftest.$ac_ext
     2370cat >>conftest.$ac_ext <<_ACEOF
     2371/* end confdefs.h.  */
     2372
     2373int
     2374main ()
     2375{
     2376
     2377  ;
     2378  return 0;
     2379}
     2380_ACEOF
     2381rm -f conftest.$ac_objext
     2382if { (ac_try="$ac_compile"
     2383case "(($ac_try" in
     2384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2385  *) ac_try_echo=$ac_try;;
     2386esac
     2387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2388  (eval "$ac_compile") 2>conftest.er1
     2389  ac_status=$?
     2390  grep -v '^ *+' conftest.er1 >conftest.err
     2391  rm -f conftest.er1
     2392  cat conftest.err >&5
     2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2394  (exit $ac_status); } && {
     2395         test -z "$ac_c_werror_flag" ||
     2396         test ! -s conftest.err
     2397       } && test -s conftest.$ac_objext; then
     2398  ac_cv_prog_cc_g=yes
     2399else
     2400  echo "$as_me: failed program was:" >&5
     2401sed 's/^/| /' conftest.$ac_ext >&5
     2402
     2403
     2404fi
     2405
     2406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2407fi
     2408
     2409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2410fi
     2411
     2412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2413   ac_c_werror_flag=$ac_save_c_werror_flag
     2414fi
     2415{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2416echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
    18982417if test "$ac_test_CFLAGS" = set; then
    18992418  CFLAGS=$ac_save_CFLAGS
    … …  
    19112430  fi
    19122431fi
    1913 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    1914 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    1915 if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2432{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
     2433echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
     2434if test "${ac_cv_prog_cc_c89+set}" = set; then
    19162435  echo $ECHO_N "(cached) $ECHO_C" >&6
    19172436else
    1918   ac_cv_prog_cc_stdc=no
     2437  ac_cv_prog_cc_c89=no
    19192438ac_save_CC=$CC
    19202439cat >conftest.$ac_ext <<_ACEOF
    … …  
    19502469   function prototypes and stuff, but not '\xHH' hex character constants.
    19512470   These don't provoke an error unfortunately, instead are silently treated
    1952    as 'x'.  The following induces an error, until -std1 is added to get
     2471   as 'x'.  The following induces an error, until -std is added to get
    19532472   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    19542473   array size at least.  It's necessary to write '\x00'==0 to get something
    1955    that's true only with -std1.  */
     2474   that's true only with -std.  */
    19562475int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2476
     2477/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     2478   inside strings and character constants.  */
     2479#define FOO(x) 'x'
     2480int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    19572481
    19582482int test (int i, double x);
    … …  
    19702494}
    19712495_ACEOF
    1972 # Don't try gcc -ansi; that turns off useful extensions and
    1973 # breaks some systems' header files.
    1974 # AIX                   -qlanglvl=ansi
    1975 # Ultrix and OSF/1      -std1
    1976 # HP-UX 10.20 and later -Ae
    1977 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    1978 # SVR4                  -Xc -D__EXTENSIONS__
    1979 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2496for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     2497        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    19802498do
    19812499  CC="$ac_save_CC $ac_arg"
    19822500  rm -f conftest.$ac_objext
    1983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1984   (eval $ac_compile) 2>conftest.er1
     2501if { (ac_try="$ac_compile"
     2502case "(($ac_try" in
     2503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2504  *) ac_try_echo=$ac_try;;
     2505esac
     2506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     2507  (eval "$ac_compile") 2>conftest.er1
    19852508  ac_status=$?
    19862509  grep -v '^ *+' conftest.er1 >conftest.err
    … …  
    19882511  cat conftest.err >&5
    19892512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1990   (exit $ac_status); } &&
    1991          { ac_try='test -z "$ac_c_werror_flag"
    1992                          || test ! -s conftest.err'
    1993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1994   (eval $ac_try) 2>&5
    1995   ac_status=$?
    1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1997   (exit $ac_status); }; } &&
    1998          { ac_try='test -s conftest.$ac_objext'
    1999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2000   (eval $ac_try) 2>&5
    2001   ac_status=$?
    2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2003   (exit $ac_status); }; }; then
    2004   ac_cv_prog_cc_stdc=$ac_arg
    2005 break
     2513  (exit $ac_status); } && {
     2514         test -z "$ac_c_werror_flag" ||
     2515         test ! -s conftest.err
     2516       } && test -s conftest.$ac_objext; then
     2517  ac_cv_prog_cc_c89=$ac_arg
    20062518else
    20072519  echo "$as_me: failed program was:" >&5
    20082520sed 's/^/| /' conftest.$ac_ext >&5
    20092521
    2010 fi
    2011 rm -f conftest.err conftest.$ac_objext
    2012 done
    2013 rm -f conftest.$ac_ext conftest.$ac_objext
     2522
     2523fi
     2524
     2525rm -f core conftest.err conftest.$ac_objext
     2526  test "x$ac_cv_prog_cc_c89" != "xno" && break
     2527done
     2528rm -f conftest.$ac_ext
    20142529CC=$ac_save_CC
    20152530
    20162531fi
    2017 
    2018 case "x$ac_cv_prog_cc_stdc" in
    2019   x|xno)
    2020     echo "$as_me:$LINENO: result: none needed" >&5
    2021 echo "${ECHO_T}none needed" >&6 ;;
     2532# AC_CACHE_VAL
     2533case "x$ac_cv_prog_cc_c89" in
     2534  x)
     2535    { echo "$as_me:$LINENO: result: none needed" >&5
     2536echo "${ECHO_T}none needed" >&6; } ;;
     2537  xno)
     2538    { echo "$as_me:$LINENO: result: unsupported" >&5
     2539echo "${ECHO_T}unsupported" >&6; } ;;
    20222540  *)
    2023     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2024 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2025     CC="$CC $ac_cv_prog_cc_stdc" ;;
     2541    CC="$CC $ac_cv_prog_cc_c89"
     2542    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
     2543echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
    20262544esac
    20272545
    2028 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2029 # in C++ we need to declare it.  In case someone uses the same compiler
    2030 # for both compiling C and C++ we need to have the C++ compiler decide
    2031 # the declaration of exit, since it's the most demanding environment.
    2032 cat >conftest.$ac_ext <<_ACEOF
    2033 #ifndef __cplusplus
    2034   choke me
    2035 #endif
    2036 _ACEOF
    2037 rm -f conftest.$ac_objext
    2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2039   (eval $ac_compile) 2>conftest.er1
    2040   ac_status=$?
    2041   grep -v '^ *+' conftest.er1 >conftest.err
    2042   rm -f conftest.er1
    2043   cat conftest.err >&5
    2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2045   (exit $ac_status); } &&
    2046          { ac_try='test -z "$ac_c_werror_flag"
    2047                          || test ! -s conftest.err'
    2048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2049   (eval $ac_try) 2>&5
    2050   ac_status=$?
    2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2052   (exit $ac_status); }; } &&
    2053          { ac_try='test -s conftest.$ac_objext'
    2054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2055   (eval $ac_try) 2>&5
    2056   ac_status=$?
    2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2058   (exit $ac_status); }; }; then
    2059   for ac_declaration in \
    2060    '' \
    2061    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2062    'extern "C" void std::exit (int); using std::exit;' \
    2063    'extern "C" void exit (int) throw ();' \
    2064    'extern "C" void exit (int);' \
    2065    'void exit (int);'
    2066 do
    2067   cat >conftest.$ac_ext <<_ACEOF
    2068 /* confdefs.h.  */
    2069 _ACEOF
    2070 cat confdefs.h >>conftest.$ac_ext
    2071 cat >>conftest.$ac_ext <<_ACEOF
    2072 /* end confdefs.h.  */
    2073 $ac_declaration
    2074 #include <stdlib.h>
    2075 int
    2076 main ()
    2077 {
    2078 exit (42);
    2079   ;
    2080   return 0;
    2081 }
    2082 _ACEOF
    2083 rm -f conftest.$ac_objext
    2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2085   (eval $ac_compile) 2>conftest.er1
    2086   ac_status=$?
    2087   grep -v '^ *+' conftest.er1 >conftest.err
    2088   rm -f conftest.er1
    2089   cat conftest.err >&5
    2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2091   (exit $ac_status); } &&
    2092          { ac_try='test -z "$ac_c_werror_flag"
    2093                          || test ! -s conftest.err'
    2094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2095   (eval $ac_try) 2>&5
    2096   ac_status=$?
    2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2098   (exit $ac_status); }; } &&
    2099          { ac_try='test -s conftest.$ac_objext'
    2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2101   (eval $ac_try) 2>&5
    2102   ac_status=$?
    2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2104   (exit $ac_status); }; }; then
    2105   :
    2106 else
    2107   echo "$as_me: failed program was:" >&5
    2108 sed 's/^/| /' conftest.$ac_ext >&5
    2109 
    2110 continue
    2111 fi
    2112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2113   cat >conftest.$ac_ext <<_ACEOF
    2114 /* confdefs.h.  */
    2115 _ACEOF
    2116 cat confdefs.h >>conftest.$ac_ext
    2117 cat >>conftest.$ac_ext <<_ACEOF
    2118 /* end confdefs.h.  */
    2119 $ac_declaration
    2120 int
    2121 main ()
    2122 {
    2123 exit (42);
    2124   ;
    2125   return 0;
    2126 }
    2127 _ACEOF
    2128 rm -f conftest.$ac_objext
    2129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2130   (eval $ac_compile) 2>conftest.er1
    2131   ac_status=$?
    2132   grep -v '^ *+' conftest.er1 >conftest.err
    2133   rm -f conftest.er1
    2134   cat conftest.err >&5
    2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2136   (exit $ac_status); } &&
    2137          { ac_try='test -z "$ac_c_werror_flag"
    2138                          || test ! -s conftest.err'
    2139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2140   (eval $ac_try) 2>&5
    2141   ac_status=$?
    2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2143   (exit $ac_status); }; } &&
    2144          { ac_try='test -s conftest.$ac_objext'
    2145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2146   (eval $ac_try) 2>&5
    2147   ac_status=$?
    2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2149   (exit $ac_status); }; }; then
    2150   break
    2151 else
    2152   echo "$as_me: failed program was:" >&5
    2153 sed 's/^/| /' conftest.$ac_ext >&5
    2154 
    2155 fi
    2156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2157 done
    2158 rm -f conftest*
    2159 if test -n "$ac_declaration"; then
    2160   echo '#ifdef __cplusplus' >>confdefs.h
    2161   echo $ac_declaration      >>confdefs.h
    2162   echo '#endif'             >>confdefs.h
    2163 fi
    2164 
    2165 else
    2166   echo "$as_me: failed program was:" >&5
    2167 sed 's/^/| /' conftest.$ac_ext >&5
    2168 
    2169 fi
    2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2546
    21712547ac_ext=c
    21722548ac_cpp='$CPP $CPPFLAGS'
    … …  
    21812557  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    21822558set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2183 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     2560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    21852561if test "${ac_cv_prog_RANLIB+set}" = set; then
    21862562  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    21952571  test -z "$as_dir" && as_dir=.
    21962572  for ac_exec_ext in '' $ac_executable_extensions; do
    2197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    21982574    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    21992575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    22022578done
    22032579done
     2580IFS=$as_save_IFS
    22042581
    22052582fi
    … …  
    22072584RANLIB=$ac_cv_prog_RANLIB
    22082585if test -n "$RANLIB"; then
    2209   echo "$as_me:$LINENO: result: $RANLIB" >&5
    2210 echo "${ECHO_T}$RANLIB" >&6
    2211 else
    2212   echo "$as_me:$LINENO: result: no" >&5
    2213 echo "${ECHO_T}no" >&6
    2214 fi
     2586  { echo "$as_me:$LINENO: result: $RANLIB" >&5
     2587echo "${ECHO_T}$RANLIB" >&6; }
     2588else
     2589  { echo "$as_me:$LINENO: result: no" >&5
     2590echo "${ECHO_T}no" >&6; }
     2591fi
     2592
    22152593
    22162594fi
    … …  
    22192597  # Extract the first word of "ranlib", so it can be a program name with args.
    22202598set dummy ranlib; ac_word=$2
    2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
     2600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
    22232601if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    22242602  echo $ECHO_N "(cached) $ECHO_C" >&6
    … …  
    22332611  test -z "$as_dir" && as_dir=.
    22342612  for ac_exec_ext in '' $ac_executable_extensions; do
    2235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    22362614    ac_cv_prog_ac_ct_RANLIB="ranlib"
    22372615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    … …  
    22402618done
    22412619done
    2242 
    2243   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2620IFS=$as_save_IFS
     2621
    22442622fi
    22452623fi
    22462624ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    22472625if test -n "$ac_ct_RANLIB"; then
    2248   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    2249 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    2250 else
    2251   echo "$as_me:$LINENO: result: no" >&5
    2252 echo "${ECHO_T}no" >&6
    2253 fi
    2254 
    2255   RANLIB=$ac_ct_RANLIB
     2626  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     2627echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
     2628else
     2629  { echo "$as_me:$LINENO: result: no" >&5
     2630echo "${ECHO_T}no" >&6; }
     2631fi
     2632
     2633  if test "x$ac_ct_RANLIB" = x; then
     2634    RANLIB=":"
     2635  else
     2636    case $cross_compiling:$ac_tool_warned in
     2637yes:)
     2638{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
     2639whose name does not start with the host triplet.  If you think this
     2640configuration is useful to you, please write to autoconf@gnu.org." >&5
     2641echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
     2642whose name does not start with the host triplet.  If you think this
     2643configuration is useful to you, please write to autoconf@gnu.org." >&2;}
     2644ac_tool_warned=yes ;;
     2645esac
     2646    RANLIB=$ac_ct_RANLIB
     2647  fi
    22562648else
    22572649  RANLIB="$ac_cv_prog_RANLIB"
    … …  
    22602652
    22612653
    2262           ac_config_files="$ac_config_files Makefile"
     2654ac_config_files="$ac_config_files Makefile"
     2655
    22632656cat >confcache <<\_ACEOF
    22642657# This file is a shell script that caches the results of configure
    … …  
    22792672# The following way of writing the cache mishandles newlines in values,
    22802673# but we know of no workaround that is simple, portable, and efficient.
    2281 # So, don't put newlines in cache variables' values.
     2674# So, we kill variables containing newlines.
    22822675# Ultrix sh set writes to stderr and can't be redirected directly,
    22832676# and sets the high bit in the cache file unless we assign to the vars.
    2284 {
     2677(
     2678  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
     2679    eval ac_val=\$$ac_var
     2680    case $ac_val in #(
     2681    *${as_nl}*)
     2682      case $ac_var in #(
     2683      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
     2684echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
     2685      esac
     2686      case $ac_var in #(
     2687      _ | IFS | as_nl) ;; #(
     2688      *) $as_unset $ac_var ;;
     2689      esac ;;
     2690    esac
     2691  done
     2692
    22852693  (set) 2>&1 |
    2286     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    2287     *ac_space=\ *)
     2694    case $as_nl`(ac_space=' '; set) 2>&1` in #(
     2695    *${as_nl}ac_space=\ *)
    22882696      # `set' does not quote correctly, so add quotes (double-quote
    22892697      # substitution turns \\\\ into \\, and sed turns \\ into \).
    … …  
    22912699        "s/'/'\\\\''/g;
    22922700          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    2293       ;;
     2701      ;; #(
    22942702    *)
    22952703      # `set' quotes correctly as required by POSIX, so do not add quotes.
    2296       sed -n \
    2297         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     2704      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    22982705      ;;
    2299     esac;
    2300 } |
     2706    esac |
     2707    sort
     2708) |
    23012709  sed '
     2710     /^ac_cv_env_/b end
    23022711     t clear
    2303      : clear
     2712     :clear
    23042713     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    23052714     t end
    2306      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    2307      : end' >>confcache
    2308 if diff $cache_file confcache >/dev/null 2>&1; then :; else
    2309   if test -w $cache_file; then
    2310     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     2715     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     2716     :end' >>confcache
     2717if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
     2718  if test -w "$cache_file"; then
     2719    test "x$cache_file" != "x/dev/null" &&
     2720      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
     2721echo "$as_me: updating cache $cache_file" >&6;}
    23112722    cat confcache >$cache_file
    23122723  else
    2313     echo "not updating unwritable cache $cache_file"
     2724    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
     2725echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    23142726  fi
    23152727fi
    … …  
    23192731# Let make expand exec_prefix.
    23202732test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    2321 
    2322 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    2323 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    2324 # trailing colons and then remove the whole line if VPATH becomes empty
    2325 # (actually we leave an empty line to preserve line numbers).
    2326 if test "x$srcdir" = x.; then
    2327   ac_vpsub='/^[  ]*VPATH[        ]*=/{
    2328 s/:*\$(srcdir):*/:/;
    2329 s/:*\${srcdir}:*/:/;
    2330 s/:*@srcdir@:*/:/;
    2331 s/^\([^=]*=[     ]*\):*/\1/;
    2332 s/:*$//;
    2333 s/^[^=]*=[       ]*$//;
    2334 }'
    2335 fi
    23362733
    23372734# Transform confdefs.h into DEFS.
    … …  
    23402737#
    23412738# If the first sed substitution is executed (which looks for macros that
    2342 # take arguments), then we branch to the quote section.  Otherwise,
     2739# take arguments), then branch to the quote section.  Otherwise,
    23432740# look for a macro that doesn't take arguments.
    2344 cat >confdef2opt.sed <<\_ACEOF
     2741ac_script='
    23452742t clear
    2346 : clear
    2347 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
     2743:clear
     2744s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
    23482745t quote
    2349 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
     2746s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
    23502747t quote
    2351 d
    2352 : quote
    2353 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
    2354 s,\[,\\&,g
    2355 s,\],\\&,g
    2356 s,\$,$$,g
    2357 p
    2358 _ACEOF
    2359 # We use echo to avoid assuming a particular line-breaking character.
    2360 # The extra dot is to prevent the shell from consuming trailing
    2361 # line-breaks from the sub-command output.  A line-break within
    2362 # single-quotes doesn't work because, if this script is created in a
    2363 # platform that uses two characters for line-breaks (e.g., DOS), tr
    2364 # would break.
    2365 ac_LF_and_DOT=`echo; echo .`
    2366 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
    2367 rm -f confdef2opt.sed
     2748b any
     2749:quote
     2750s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
     2751s/\[/\\&/g
     2752s/\]/\\&/g
     2753s/\$/$$/g
     2754H
     2755:any
     2756${
     2757        g
     2758        s/^\n//
     2759        s/\n/ /g
     2760        p
     2761}
     2762'
     2763DEFS=`sed -n "$ac_script" confdefs.h`
    23682764
    23692765
    … …  
    23722768for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    23732769  # 1. Remove the extension, and $U if already installed.
    2374   ac_i=`echo "$ac_i" |
    2375          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    2376   # 2. Add them.
    2377   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    2378   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     2770  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
     2771  ac_i=`echo "$ac_i" | sed "$ac_script"`
     2772  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
     2773  #    will be set to the directory where LIBOBJS objects are built.
     2774  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     2775  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
    23792776done
    23802777LIBOBJS=$ac_libobjs
    … …  
    24072804## --------------------- ##
    24082805
    2409 # Be Bourne compatible
     2806# Be more Bourne compatible
     2807DUALCASE=1; export DUALCASE # for MKS sh
    24102808if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    24112809  emulate sh
    … …  
    24142812  # is contrary to our usage.  Disable this feature.
    24152813  alias -g '${1+"$@"}'='"$@"'
    2416 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    2417   set -o posix
    2418 fi
    2419 DUALCASE=1; export DUALCASE # for MKS sh
    2420 
    2421 # Support unset when possible.
    2422 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    2423   as_unset=unset
    2424 else
    2425   as_unset=false
    2426 fi
    2427 
    2428 
    2429 # Work around bugs in pre-3.0 UWIN ksh.
    2430 $as_unset ENV MAIL MAILPATH
    2431 PS1='$ '
    2432 PS2='> '
    2433 PS4='+ '
    2434 
    2435 # NLS nuisances.
    2436 for as_var in \
    2437   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    2438   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    2439   LC_TELEPHONE LC_TIME
    2440 do
    2441   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    2442     eval $as_var=C; export $as_var
    2443   else
    2444     $as_unset $as_var
    2445   fi
    2446 done
    2447 
    2448 # Required to use basename.
    2449 if expr a : '\(a\)' >/dev/null 2>&1; then
    2450   as_expr=expr
    2451 else
    2452   as_expr=false
    2453 fi
    2454 
    2455 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    2456   as_basename=basename
    2457 else
    2458   as_basename=false
    2459 fi
    2460 
    2461 
    2462 # Name of the executable.
    2463 as_me=`$as_basename "$0" ||
    2464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    2465          X"$0" : 'X\(//\)$' \| \
    2466          X"$0" : 'X\(/\)$' \| \
    2467          .     : '\(.\)' 2>/dev/null ||
    2468 echo X/"$0" |
    2469     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    2470           /^X\/\(\/\/\)$/{ s//\1/; q; }
    2471           /^X\/\(\/\).*/{ s//\1/; q; }
    2472           s/.*/./; q'`
    2473 
    2474 
    2475 # PATH needs CR, and LINENO needs CR and PATH.
     2814  setopt NO_GLOB_SUBST
     2815else
     2816  case `(set -o) 2>/dev/null` in
     2817  *posix*) set -o posix ;;
     2818esac
     2819
     2820fi
     2821
     2822
     2823
     2824
     2825# PATH needs CR
    24762826# Avoid depending upon Character Ranges.
    24772827as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    … …  
    24942844fi
    24952845
    2496 
    2497   as_lineno_1=$LINENO
    2498   as_lineno_2=$LINENO
    2499   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    2500   test "x$as_lineno_1" != "x$as_lineno_2" &&
    2501   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    2502   # Find who we are.  Look in the path if we contain no path at all
    2503   # relative or not.
    2504   case $0 in
    2505     *[\\/]* ) as_myself=$0 ;;
    2506     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2846# Support unset when possible.
     2847if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     2848  as_unset=unset
     2849else
     2850  as_unset=false
     2851fi
     2852
     2853
     2854# IFS
     2855# We need space, tab and new line, in precisely that order.  Quoting is
     2856# there to prevent editors from complaining about space-tab.
     2857# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     2858# splitting by setting IFS to empty value.)
     2859as_nl='
     2860'
     2861IFS=" ""        $as_nl"
     2862
     2863# Find who we are.  Look in the path if we contain no directory separator.
     2864case $0 in
     2865  *[\\/]* ) as_myself=$0 ;;
     2866  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    25072867for as_dir in $PATH
    25082868do
    … …  
    25112871  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    25122872done
    2513 
    2514        ;;
    2515   esac
    2516   # We did not find ourselves, most probably we were run as `sh COMMAND'
    2517   # in which case we are not to be found in the path.
    2518   if test "x$as_myself" = x; then
    2519     as_myself=$0
     2873IFS=$as_save_IFS
     2874
     2875     ;;
     2876esac
     2877# We did not find ourselves, most probably we were run as `sh COMMAND'
     2878# in which case we are not to be found in the path.
     2879if test "x$as_myself" = x; then
     2880  as_myself=$0
     2881fi
     2882if test ! -f "$as_myself"; then
     2883  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     2884  { (exit 1); exit 1; }
     2885fi
     2886
     2887# Work around bugs in pre-3.0 UWIN ksh.
     2888for as_var in ENV MAIL MAILPATH
     2889do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     2890done
     2891PS1='$ '
     2892PS2='> '
     2893PS4='+ '
     2894
     2895# NLS nuisances.
     2896for as_var in \
     2897  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     2898  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     2899  LC_TELEPHONE LC_TIME
     2900do
     2901  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     2902    eval $as_var=C; export $as_var
     2903  else
     2904    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    25202905  fi
    2521   if test ! -f "$as_myself"; then
    2522     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    2523 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    2524    { (exit 1); exit 1; }; }
    2525   fi
    2526   case $CONFIG_SHELL in
    2527   '')
    2528     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2529 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    2530 do
    2531   IFS=$as_save_IFS
    2532   test -z "$as_dir" && as_dir=.
    2533   for as_base in sh bash ksh sh5; do
    2534          case $as_dir in
    2535          /*)
    2536            if ("$as_dir/$as_base" -c '
     2906done
     2907
     2908# Required to use basename.
     2909if expr a : '\(a\)' >/dev/null 2>&1 &&
     2910   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     2911  as_expr=expr
     2912else
     2913  as_expr=false
     2914fi
     2915
     2916if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
     2917  as_basename=basename
     2918else
     2919  as_basename=false
     2920fi
     2921
     2922
     2923# Name of the executable.
     2924as_me=`$as_basename -- "$0" ||
     2925$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     2926         X"$0" : 'X\(//\)$' \| \
     2927         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     2928echo X/"$0" |
     2929    sed '/^.*\/\([^/][^/]*\)\/*$/{
     2930            s//\1/
     2931            q
     2932          }
     2933          /^X\/\(\/\/\)$/{
     2934            s//\1/
     2935            q
     2936          }
     2937          /^X\/\(\/\).*/{
     2938            s//\1/
     2939            q
     2940          }
     2941          s/.*/./; q'`
     2942
     2943# CDPATH.
     2944$as_unset CDPATH
     2945
     2946
     2947
    25372948  as_lineno_1=$LINENO
    25382949  as_lineno_2=$LINENO
    2539   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    25402950  test "x$as_lineno_1" != "x$as_lineno_2" &&
    2541   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    2542              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    2543              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    2544              CONFIG_SHELL=$as_dir/$as_base
    2545              export CONFIG_SHELL
    2546              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    2547            fi;;
    2548          esac
    2549        done
    2550 done
    2551 ;;
    2552   esac
     2951  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    25532952
    25542953  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    25552954  # uniformly replaced by the line number.  The first 'sed' inserts a
    2556   # line-number line before each line; the second 'sed' does the real
    2557   # work.  The second script uses 'N' to pair each line-number line
    2558   # with the numbered line, and appends trailing '-' during
    2559   # substitution so that $LINENO is not a special case at line end.
     2955  # line-number line after each line using $LINENO; the second 'sed'
     2956  # does the real work.  The second script uses 'N' to pair each
     2957  # line-number line with the line containing $LINENO, and appends
     2958  # trailing '-' during substitution so that $LINENO is not a special
     2959  # case at line end.
    25602960  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    2561   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    2562   sed '=' <$as_myself |
     2961  # scripts with optimization help from Paolo Bonzini.  Blame Lee
     2962  # E. McMahon (1931-1989) for sed's syntax.  :-)
     2963  sed -n '
     2964    p
     2965    /[$]LINENO/=
     2966  ' <$as_myself |
    25632967    sed '
     2968      s/[$]LINENO.*/&-/
     2969      t lineno
     2970      b
     2971      :lineno
    25642972      N
    2565       s,$,-,
    2566       : loop
    2567       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     2973      :loop
     2974      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    25682975      t loop
    2569       s,-$,,
    2570       s,^['$as_cr_digits']*\n,,
     2976      s/-\n.*//
    25712977    ' >$as_me.lineno &&
    2572   chmod +x $as_me.lineno ||
    2573     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    2574 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
     2978  chmod +x "$as_me.lineno" ||
     2979    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    25752980   { (exit 1); exit 1; }; }
    25762981
    25772982  # Don't try to exec as it changes $[0], causing all sort of problems
    25782983  # (the dirname of $[0] is not the place where we might find the
    2579   # original and so on.  Autoconf is especially sensible to this).
    2580   . ./$as_me.lineno
     2984  # original and so on.  Autoconf is especially sensitive to this).
     2985  . "./$as_me.lineno"
    25812986  # Exit status is that of the last command.
    25822987  exit
    … …  
    25842989
    25852990
    2586 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    2587   *c*,-n*) ECHO_N= ECHO_C='
    2588 ' ECHO_T='      ' ;;
    2589   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    2590   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     2991if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     2992  as_dirname=dirname
     2993else
     2994  as_dirname=false
     2995fi
     2996
     2997ECHO_C= ECHO_N= ECHO_T=
     2998case `echo -n x` in
     2999-n*)
     3000  case `echo 'x\c'` in
     3001  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
     3002  *)   ECHO_C='\c';;
     3003  esac;;
     3004*)
     3005  ECHO_N='-n';;
    25913006esac
    25923007
    2593 if expr a : '\(a\)' >/dev/null 2>&1; then
     3008if expr a : '\(a\)' >/dev/null 2>&1 &&
     3009   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    25943010  as_expr=expr
    25953011else
    … …  
    25983014
    25993015rm -f conf$$ conf$$.exe conf$$.file
     3016if test -d conf$$.dir; then
     3017  rm -f conf$$.dir/conf$$.file
     3018else
     3019  rm -f conf$$.dir
     3020  mkdir conf$$.dir
     3021fi
    26003022echo >conf$$.file
    26013023if ln -s conf$$.file conf$$ 2>/dev/null; then
    2602   # We could just check for DJGPP; but this test a) works b) is more generic
    2603   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    2604   if test -f conf$$.exe; then
    2605     # Don't use ln at all; we don't have any links
     3024  as_ln_s='ln -s'
     3025  # ... but there are two gotchas:
     3026  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     3027  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     3028  # In both cases, we have to default to `cp -p'.
     3029  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    26063030    as_ln_s='cp -p'
    2607   else
    2608     as_ln_s='ln -s'
    2609   fi
    26103031elif ln conf$$.file conf$$ 2>/dev/null; then
    26113032  as_ln_s=ln
    … …  
    26133034  as_ln_s='cp -p'
    26143035fi
    2615 rm -f conf$$ conf$$.exe conf$$.file
     3036rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     3037rmdir conf$$.dir 2>/dev/null
    26163038
    26173039if mkdir -p . 2>/dev/null; then
    … …  
    26223044fi
    26233045
    2624 as_executable_p="test -f"
     3046if test -x / >/dev/null 2>&1; then
     3047  as_test_x='test -x'
     3048else
     3049  if ls -dL / >/dev/null 2>&1; then
     3050    as_ls_L_option=L
     3051  else
     3052    as_ls_L_option=
     3053  fi
     3054  as_test_x='
     3055    eval sh -c '\''
     3056      if test -d "$1"; then
     3057        test -d "$1/.";
     3058      else
     3059        case $1 in
     3060        -*)set "./$1";;
     3061        esac;
     3062        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
     3063        ???[sx]*):;;*)false;;esac;fi
     3064    '\'' sh
     3065  '
     3066fi
     3067as_executable_p=$as_test_x
    26253068
    26263069# Sed expression to map a string onto a valid CPP name.
    … …  
    26313074
    26323075
    2633 # IFS
    2634 # We need space, tab and new line, in precisely that order.
    2635 as_nl='
    2636 '
    2637 IFS="   $as_nl"
    2638 
    2639 # CDPATH.
    2640 $as_unset CDPATH
    2641 
    26423076exec 6>&1
    26433077
    2644 # Open the log real soon, to keep \$[0] and so on meaningful, and to
     3078# Save the log message, to keep $[0] and so on meaningful, and to
    26453079# report actual input values of CONFIG_FILES etc. instead of their
    2646 # values after options handling.  Logging --version etc. is OK.
    2647 exec 5>>config.log
    2648 {
    2649   echo
    2650   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
    2651 ## Running $as_me. ##
    2652 _ASBOX
    2653 } >&5
    2654 cat >&5 <<_CSEOF
    2655 
     3080# values after options handling.
     3081ac_log="
    26563082This file was extended by $as_me, which was
    2657 generated by GNU Autoconf 2.59.  Invocation command line was
     3083generated by GNU Autoconf 2.61.  Invocation command line was
    26583084
    26593085  CONFIG_FILES    = $CONFIG_FILES
    … …  
    26633089  $ $0 $@
    26643090
    2665 _CSEOF
    2666 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    2667 echo >&5
    2668 _ACEOF
    2669 
     3091on `(hostname || uname -n) 2>/dev/null | sed 1q`
     3092"
     3093
     3094_ACEOF
     3095
     3096cat >>$CONFIG_STATUS <<_ACEOF
    26703097# Files that config.status was made for.
    2671 if test -n "$ac_config_files"; then
    2672   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    2673 fi
    2674 
    2675 if test -n "$ac_config_headers"; then
    2676   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    2677 fi
    2678 
    2679 if test -n "$ac_config_links"; then
    2680   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    2681 fi
    2682 
    2683 if test -n "$ac_config_commands"; then
    2684   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    2685 fi
     3098config_files="$ac_config_files"
     3099
     3100_ACEOF
    26863101
    26873102cat >>$CONFIG_STATUS <<\_ACEOF
    2688 
    26893103ac_cs_usage="\
    26903104\`$as_me' instantiates files from templates according to the
    … …  
    26943108
    26953109  -h, --help       print this help, then exit
    2696   -V, --version    print version number, then exit
     3110  -V, --version    print version number and configuration settings, then exit
    26973111  -q, --quiet      do not print progress messages
    26983112  -d, --debug      don't remove temporary files
    … …  
    27053119
    27063120Report bugs to <bug-autoconf@gnu.org>."
    2707 _ACEOF
    2708 
     3121
     3122_ACEOF
    27093123cat >>$CONFIG_STATUS <<_ACEOF
    27103124ac_cs_version="\\
    27113125config.status
    2712 configured by $0, generated by GNU Autoconf 2.59,
    2713   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    2714 
    2715 Copyright (C) 2003 Free Software Foundation, Inc.
     3126configured by $0, generated by GNU Autoconf 2.61,
     3127  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
     3128
     3129Copyright (C) 2006 Free Software Foundation, Inc.
    27163130This config.status script is free software; the Free Software Foundation
    27173131gives unlimited permission to copy, distribute and modify it."
    2718 srcdir=$srcdir
     3132
     3133ac_pwd='$ac_pwd'
     3134srcdir='$srcdir'
    27193135_ACEOF
    27203136
    … …  
    27273143  case $1 in
    27283144  --*=*)
    2729     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    2730     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     3145    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     3146    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    27313147    ac_shift=:
    27323148    ;;
    2733   -*)
     3149  *)
    27343150    ac_option=$1
    27353151    ac_optarg=$2
    27363152    ac_shift=shift
    27373153    ;;
    2738   *) # This is not an option, so the user has probably given explicit
    2739      # arguments.
    2740      ac_option=$1
    2741      ac_need_defaults=false;;
    27423154  esac
    27433155
    27443156  case $ac_option in
    27453157  # Handling of the options.
    2746 _ACEOF
    2747 cat >>$CONFIG_STATUS <<\_ACEOF
    27483158  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    27493159    ac_cs_recheck=: ;;
    2750   --version | --vers* | -V )
    2751     echo "$ac_cs_version"; exit 0 ;;
    2752   --he | --h)
    2753     # Conflict between --help and --header
    2754     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    2755 Try \`$0 --help' for more information." >&5
    2756 echo "$as_me: error: ambiguous option: $1
    2757 Try \`$0 --help' for more information." >&2;}
    2758    { (exit 1); exit 1; }; };;
    2759   --help | --hel | -h )
    2760     echo "$ac_cs_usage"; exit 0 ;;
    2761   --debug | --d* | -d )
     3160  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
     3161    echo "$ac_cs_version"; exit ;;
     3162  --debug | --debu | --deb | --de | --d | -d )
    27623163    debug=: ;;
    27633164  --file | --fil | --fi | --f )
    … …  
    27653166    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    27663167    ac_need_defaults=false;;
    2767   --header | --heade | --head | --hea )
    2768     $ac_shift
    2769     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    2770     ac_need_defaults=false;;
     3168  --he | --h |  --help | --hel | -h )
     3169    echo "$ac_cs_usage"; exit ;;
    27713170  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    27723171  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    … …  
    27743173
    27753174  # This is an error.
    2776   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    2777 Try \`$0 --help' for more information." >&5
    2778 echo "$as_me: error: unrecognized option: $1
    2779 Try \`$0 --help' for more information." >&2;}
     3175  -*) { echo "$as_me: error: unrecognized option: $1
     3176Try \`$0 --help' for more information." >&2
    27803177   { (exit 1); exit 1; }; } ;;
    27813178
    2782   *) ac_config_targets="$ac_config_targets $1" ;;
     3179  *) ac_config_targets="$ac_config_targets $1"
     3180     ac_need_defaults=false ;;
    27833181
    27843182  esac
    … …  
    27963194cat >>$CONFIG_STATUS <<_ACEOF
    27973195if \$ac_cs_recheck; then
    2798   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    2799   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    2800 fi
    2801 
    2802 _ACEOF
    2803 
    2804 
    2805 
    2806 
    2807 
     3196  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
     3197  CONFIG_SHELL=$SHELL
     3198  export CONFIG_SHELL
     3199  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     3200fi
     3201
     3202_ACEOF
    28083203cat >>$CONFIG_STATUS <<\_ACEOF
     3204exec 5>>config.log
     3205{
     3206  echo
     3207  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
     3208## Running $as_me. ##
     3209_ASBOX
     3210  echo "$ac_log"
     3211} >&5
     3212
     3213_ACEOF
     3214cat >>$CONFIG_STATUS <<_ACEOF
     3215_ACEOF
     3216
     3217cat >>$CONFIG_STATUS <<\_ACEOF
     3218
     3219# Handling of arguments.
    28093220for ac_config_target in $ac_config_targets
    28103221do
    2811   case "$ac_config_target" in
    2812   # Handling of arguments.
    2813   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     3222  case $ac_config_target in
     3223    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     3224
    28143225  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    28153226echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    … …  
    28173228  esac
    28183229done
     3230
    28193231
    28203232# If the user did not use the arguments to specify the items to instantiate,
    … …  
    28273239
    28283240# Have a temporary directory for convenience.  Make it in the build tree
    2829 # simply because there is no reason to put it here, and in addition,
     3241# simply because there is no reason against having it here, and in addition,
    28303242# creating and moving files from /tmp can sometimes cause problems.
    2831 # Create a temporary directory, and hook for its removal unless debugging.
     3243# Hook for its removal unless debugging.
     3244# Note that there is a small window in which the directory will not be cleaned:
     3245# after its creation but before its name has been assigned to `$tmp'.
    28323246$debug ||
    28333247{
    2834   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     3248  tmp=
     3249  trap 'exit_status=$?
     3250  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
     3251' 0
    28353252  trap '{ (exit 1); exit 1; }' 1 2 13 15
    28363253}
    2837 
    28383254# Create a (secure) tmp directory for tmp files.
    28393255
    28403256{
    2841   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
     3257  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    28423258  test -n "$tmp" && test -d "$tmp"
    28433259}  ||
    28443260{
    2845   tmp=./confstat$$-$RANDOM
    2846   (umask 077 && mkdir $tmp)
     3261  tmp=./conf$$-$RANDOM
     3262  (umask 077 && mkdir "$tmp")
    28473263} ||
    28483264{
    … …  
    28513267}
    28523268
    2853 _ACEOF
    2854 
    2855 cat >>$CONFIG_STATUS <<_ACEOF
    2856 
    28573269#
    2858 # CONFIG_FILES section.
     3270# Set up the sed scripts for CONFIG_FILES section.
    28593271#
    28603272
    28613273# No need to generate the scripts if there are no CONFIG_FILES.
    28623274# This happens for instance when ./config.status config.h
    2863 if test -n "\$CONFIG_FILES"; then
    2864   # Protect against being on the right side of a sed subst in config.status.
    2865   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    2866    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    2867 s,@SHELL@,$SHELL,;t t
    2868 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    2869 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    2870 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    2871 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    2872 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    2873 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    2874 s,@exec_prefix@,$exec_prefix,;t t
    2875 s,@prefix@,$prefix,;t t
    2876 s,@program_transform_name@,$program_transform_name,;t t
    2877 s,@bindir@,$bindir,;t t
    2878 s,@sbindir@,$sbindir,;t t
    2879 s,@libexecdir@,$libexecdir,;t t
    2880 s,@datadir@,$datadir,;t t
    2881 s,@sysconfdir@,$sysconfdir,;t t
    2882 s,@sharedstatedir@,$sharedstatedir,;t t
    2883 s,@localstatedir@,$localstatedir,;t t
    2884 s,@libdir@,$libdir,;t t
    2885 s,@includedir@,$includedir,;t t
    2886 s,@oldincludedir@,$oldincludedir,;t t
    2887 s,@infodir@,$infodir,;t t
    2888 s,@mandir@,$mandir,;t t
    2889 s,@build_alias@,$build_alias,;t t
    2890 s,@host_alias@,$host_alias,;t t
    2891 s,@target_alias@,$target_alias,;t t
    2892 s,@DEFS@,$DEFS,;t t
    2893 s,@ECHO_C@,$ECHO_C,;t t
    2894 s,@ECHO_N@,$ECHO_N,;t t
    2895 s,@ECHO_T@,$ECHO_T,;t t
    2896 s,@LIBS@,$LIBS,;t t
    2897 s,@CC@,$CC,;t t
    2898 s,@CFLAGS@,$CFLAGS,;t t
    2899 s,@LDFLAGS@,$LDFLAGS,;t t
    2900 s,@CPPFLAGS@,$CPPFLAGS,;t t
    2901 s,@ac_ct_CC@,$ac_ct_CC,;t t
    2902 s,@EXEEXT@,$EXEEXT,;t t
    2903 s,@OBJEXT@,$OBJEXT,;t t
    2904 s,@RANLIB@,$RANLIB,;t t
    2905 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    2906 s,@LIBOBJS@,$LIBOBJS,;t t
    2907 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    2908 CEOF
    2909 
    2910 _ACEOF
    2911 
    2912   cat >>$CONFIG_STATUS <<\_ACEOF
    2913   # Split the substitutions into bite-sized pieces for seds with
    2914   # small command number limits, like on Digital OSF/1 and HP-UX.
    2915   ac_max_sed_lines=48
    2916   ac_sed_frag=1 # Number of current file.
    2917   ac_beg=1 # First line for current file.
    2918   ac_end=$ac_max_sed_lines # Line after last line for current file.
    2919   ac_more_lines=:
    2920   ac_sed_cmds=
    2921   while $ac_more_lines; do
    2922     if test $ac_beg -gt 1; then
    2923       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    2924     else
    2925       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     3275if test -n "$CONFIG_FILES"; then
     3276
     3277_ACEOF
     3278
     3279
     3280
     3281ac_delim='%!_!# '
     3282for ac_last_try in false false false false false :; do
     3283  cat >conf$$subs.sed <<_ACEOF
     3284SHELL!$SHELL$ac_delim
     3285PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
     3286PACKAGE_NAME!$PACKAGE_NAME$ac_delim
     3287PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
     3288PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
     3289PACKAGE_STRING!$PACKAGE_STRING$ac_delim
     3290PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
     3291exec_prefix!$exec_prefix$ac_delim
     3292prefix!$prefix$ac_delim
     3293program_transform_name!$program_transform_name$ac_delim
     3294bindir!$bindir$ac_delim
     3295sbindir!$sbindir$ac_delim
     3296libexecdir!$libexecdir$ac_delim
     3297datarootdir!$datarootdir$ac_delim
     3298datadir!$datadir$ac_delim
     3299sysconfdir!$sysconfdir$ac_delim
     3300sharedstatedir!$sharedstatedir$ac_delim
     3301localstatedir!$localstatedir$ac_delim
     3302includedir!$includedir$ac_delim
     3303oldincludedir!$oldincludedir$ac_delim
     3304docdir!$docdir$ac_delim
     3305infodir!$infodir$ac_delim
     3306htmldir!$htmldir$ac_delim
     3307dvidir!$dvidir$ac_delim
     3308pdfdir!$pdfdir$ac_delim
     3309psdir!$psdir$ac_delim
     3310libdir!$libdir$ac_delim
     3311localedir!$localedir$ac_delim
     3312mandir!$mandir$ac_delim
     3313DEFS!$DEFS$ac_delim
     3314ECHO_C!$ECHO_C$ac_delim
     3315ECHO_N!$ECHO_N$ac_delim
     3316ECHO_T!$ECHO_T$ac_delim
     3317LIBS!$LIBS$ac_delim
     3318build_alias!$build_alias$ac_delim
     3319host_alias!$host_alias$ac_delim
     3320target_alias!$target_alias$ac_delim
     3321CC!$CC$ac_delim
     3322CFLAGS!$CFLAGS$ac_delim
     3323LDFLAGS!$LDFLAGS$ac_delim
     3324CPPFLAGS!$CPPFLAGS$ac_delim
     3325ac_ct_CC!$ac_ct_CC$ac_delim
     3326EXEEXT!$EXEEXT$ac_delim
     3327OBJEXT!$OBJEXT$ac_delim
     3328RANLIB!$RANLIB$ac_delim
     3329LIBOBJS!$LIBOBJS$ac_delim
     3330LTLIBOBJS!$LTLIBOBJS$ac_delim
     3331_ACEOF
     3332
     3333  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
     3334    break
     3335  elif $ac_last_try; then
     3336    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
     3337echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
     3338   { (exit 1); exit 1; }; }
     3339  else
     3340    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     3341  fi
     3342done
     3343
     3344ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
     3345if test -n "$ac_eof"; then
     3346  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
     3347  ac_eof=`expr $ac_eof + 1`
     3348fi
     3349
     3350cat >>$CONFIG_STATUS <<_ACEOF
     3351cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
     3352/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
     3353_ACEOF
     3354sed '
     3355s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
     3356s/^/s,@/; s/!/@,|#_!!_#|/
     3357:n
     3358t n
     3359s/'"$ac_delim"'$/,g/; t
     3360s/$/\\/; p
     3361N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
     3362' >>$CONFIG_STATUS <conf$$subs.sed
     3363rm -f conf$$subs.sed
     3364cat >>$CONFIG_STATUS <<_ACEOF
     3365:end
     3366s/|#_!!_#|//g
     3367CEOF$ac_eof
     3368_ACEOF
     3369
     3370
     3371# VPATH may cause trouble with some makes, so we remove $(srcdir),
     3372# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     3373# trailing colons and then remove the whole line if VPATH becomes empty
     3374# (actually we leave an empty line to preserve line numbers).
     3375if test "x$srcdir" = x.; then
     3376  ac_vpsub='/^[  ]*VPATH[        ]*=/{
     3377s/:*\$(srcdir):*/:/
     3378s/:*\${srcdir}:*/:/
     3379s/:*@srcdir@:*/:/
     3380s/^\([^=]*=[     ]*\):*/\1/
     3381s/:*$//
     3382s/^[^=]*=[       ]*$//
     3383}'
     3384fi
     3385
     3386cat >>$CONFIG_STATUS <<\_ACEOF
     3387fi # test -n "$CONFIG_FILES"
     3388
     3389
     3390for ac_tag in  :F $CONFIG_FILES
     3391do
     3392  case $ac_tag in
     3393  :[FHLC]) ac_mode=$ac_tag; continue;;
     3394  esac
     3395  case $ac_mode$ac_tag in
     3396  :[FHL]*:*);;
     3397  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
     3398echo "$as_me: error: Invalid tag $ac_tag." >&2;}
     3399   { (exit 1); exit 1; }; };;
     3400  :[FH]-) ac_tag=-:-;;
     3401  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     3402  esac
     3403  ac_save_IFS=$IFS
     3404  IFS=:
     3405  set x $ac_tag
     3406  IFS=$ac_save_IFS
     3407  shift
     3408  ac_file=$1
     3409  shift
     3410
     3411  case $ac_mode in
     3412  :L) ac_source=$1;;
     3413  :[FH])
     3414    ac_file_inputs=
     3415    for ac_f
     3416    do
     3417      case $ac_f in
     3418      -) ac_f="$tmp/stdin";;
     3419      *) # Look for the file first in the build tree, then in the source tree
     3420         # (if the path is not absolute).  The absolute path cannot be DOS-style,
     3421         # because $ac_f cannot contain `:'.
     3422         test -f "$ac_f" ||
     3423           case $ac_f in
     3424           [\\/$]*) false;;
     3425           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
     3426           esac ||
     3427           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
     3428echo "$as_me: error: cannot find input file: $ac_f" >&2;}
     3429   { (exit 1); exit 1; }; };;
     3430      esac
     3431      ac_file_inputs="$ac_file_inputs $ac_f"
     3432    done
     3433
     3434    # Let's still pretend it is `configure' which instantiates (i.e., don't
     3435    # use $as_me), people would be surprised to read:
     3436    #    /* config.h.  Generated by config.status.  */
     3437    configure_input="Generated from "`IFS=:
     3438          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
     3439    if test x"$ac_file" != x-; then
     3440      configure_input="$ac_file.  $configure_input"
     3441      { echo "$as_me:$LINENO: creating $ac_file" >&5
     3442echo "$as_me: creating $ac_file" >&6;}
    29263443    fi
    2927     if test ! -s $tmp/subs.frag; then
    2928       ac_more_lines=false
    2929     else
    2930       # The purpose of the label and of the branching condition is to
    2931       # speed up the sed processing (if there are no `@' at all, there
    2932       # is no need to browse any of the substitutions).
    2933       # These are the two extra sed commands mentioned above.
    2934       (echo ':t
    2935   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    2936       if test -z "$ac_sed_cmds"; then
    2937         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    2938       else
    2939         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    2940       fi
    2941       ac_sed_frag=`expr $ac_sed_frag + 1`
    2942       ac_beg=$ac_end
    2943       ac_end=`expr $ac_end + $ac_max_sed_lines`
    2944     fi
    2945   done
    2946   if test -z "$ac_sed_cmds"; then
    2947     ac_sed_cmds=cat
    2948   fi
    2949 fi # test -n "$CONFIG_FILES"
    2950 
    2951 _ACEOF
    2952 cat >>$CONFIG_STATUS <<\_ACEOF
    2953 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    2954   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    2955   case $ac_file in
    2956   - | *:- | *:-:* ) # input from stdin
    2957         cat >$tmp/stdin
    2958         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    2959         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    2960   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    2961         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    2962   * )   ac_file_in=$ac_file.in ;;
     3444
     3445    case $ac_tag in
     3446    *:-:* | *:-) cat >"$tmp/stdin";;
     3447    esac
     3448    ;;
    29633449  esac
    29643450
    2965   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    2966   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     3451  ac_dir=`$as_dirname -- "$ac_file" ||
    29673452$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    29683453         X"$ac_file" : 'X\(//\)[^/]' \| \
    29693454         X"$ac_file" : 'X\(//\)$' \| \
    2970          X"$ac_file" : 'X\(/\)' \| \
    2971          .     : '\(.\)' 2>/dev/null ||
     3455         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
    29723456echo X"$ac_file" |
    2973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    2974           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    2975           /^X\(\/\/\)$/{ s//\1/; q; }
    2976           /^X\(\/\).*/{ s//\1/; q; }
    2977           s/.*/./; q'`
    2978   { if $as_mkdir_p; then
    2979     mkdir -p "$ac_dir"
    2980   else
    2981     as_dir="$ac_dir"
     3457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     3458            s//\1/
     3459            q
     3460          }
     3461          /^X\(\/\/\)[^/].*/{
     3462            s//\1/
     3463            q
     3464          }
     3465          /^X\(\/\/\)$/{
     3466            s//\1/
     3467            q
     3468          }
     3469          /^X\(\/\).*/{
     3470            s//\1/
     3471            q
     3472          }
     3473          s/.*/./; q'`
     3474  { as_dir="$ac_dir"
     3475  case $as_dir in #(
     3476  -*) as_dir=./$as_dir;;
     3477  esac
     3478  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    29823479    as_dirs=
    2983     while test ! -d "$as_dir"; do
    2984       as_dirs="$as_dir $as_dirs"
    2985       as_dir=`(dirname "$as_dir") 2>/dev/null ||
     3480    while :; do
     3481      case $as_dir in #(
     3482      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
     3483      *) as_qdir=$as_dir;;
     3484      esac
     3485      as_dirs="'$as_qdir' $as_dirs"
     3486      as_dir=`$as_dirname -- "$as_dir" ||
    29863487$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    29873488         X"$as_dir" : 'X\(//\)[^/]' \| \
    29883489         X"$as_dir" : 'X\(//\)$' \| \
    2989          X"$as_dir" : 'X\(/\)' \| \
    2990          .     : '\(.\)' 2>/dev/null ||
     3490         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    29913491echo X"$as_dir" |
    2992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    2993           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    2994           /^X\(\/\/\)$/{ s//\1/; q; }
    2995           /^X\(\/\).*/{ s//\1/; q; }
    2996           s/.*/./; q'`
     3492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     3493            s//\1/
     3494            q
     3495          }
     3496          /^X\(\/\/\)[^/].*/{
     3497            s//\1/
     3498            q
     3499          }
     3500          /^X\(\/\/\)$/{
     3501            s//\1/
     3502            q
     3503          }
     3504          /^X\(\/\).*/{
     3505            s//\1/
     3506            q
     3507          }
     3508          s/.*/./; q'`
     3509      test -d "$as_dir" && break
    29973510    done
    2998     test ! -n "$as_dirs" || mkdir $as_dirs
    2999   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    3000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     3511    test -z "$as_dirs" || eval "mkdir $as_dirs"
     3512  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
     3513echo "$as_me: error: cannot create directory $as_dir" >&2;}
    30013514   { (exit 1); exit 1; }; }; }
    3002 
    30033515  ac_builddir=.
    30043516
    3005 if test "$ac_dir" != .; then
     3517case "$ac_dir" in
     3518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     3519*)
    30063520  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    3007   # A "../" for each directory in $ac_dir_suffix.
    3008   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    3009 else
    3010   ac_dir_suffix= ac_top_builddir=
    3011 fi
     3521  # A ".." for each directory in $ac_dir_suffix.
     3522  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
     3523  case $ac_top_builddir_sub in
     3524  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     3525  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     3526  esac ;;
     3527esac
     3528ac_abs_top_builddir=$ac_pwd
     3529ac_abs_builddir=$ac_pwd$ac_dir_suffix
     3530# for backward compatibility:
     3531ac_top_builddir=$ac_top_build_prefix
    30123532
    30133533case $srcdir in
    3014   .)  # No --srcdir option.  We are building in place.
     3534  .)  # We are building in place.
    30153535    ac_srcdir=.
    3016     if test -z "$ac_top_builddir"; then
    3017        ac_top_srcdir=.
    3018     else
    3019        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    3020     fi ;;
    3021   [\\/]* | ?:[\\/]* )  # Absolute path.
     3536    ac_top_srcdir=$ac_top_builddir_sub
     3537    ac_abs_top_srcdir=$ac_pwd ;;
     3538  [\\/]* | ?:[\\/]* )  # Absolute name.
    30223539    ac_srcdir=$srcdir$ac_dir_suffix;
    3023     ac_top_srcdir=$srcdir ;;
    3024   *) # Relative path.
    3025     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    3026     ac_top_srcdir=$ac_top_builddir$srcdir ;;
     3540    ac_top_srcdir=$srcdir
     3541    ac_abs_top_srcdir=$srcdir ;;
     3542  *) # Relative name.
     3543    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     3544    ac_top_srcdir=$ac_top_build_prefix$srcdir
     3545    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    30273546esac
    3028 
    3029 # Do not use `cd foo && pwd` to compute absolute paths, because
    3030 # the directories may not exist.
    3031 case `pwd` in
    3032 .) ac_abs_builddir="$ac_dir";;
    3033 *)
    3034   case "$ac_dir" in
    3035   .) ac_abs_builddir=`pwd`;;
    3036   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    3037   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    3038   esac;;
     3547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     3548
     3549
     3550  case $ac_mode in
     3551  :F)
     3552  #
     3553  # CONFIG_FILE
     3554  #
     3555
     3556_ACEOF
     3557
     3558cat >>$CONFIG_STATUS <<\_ACEOF
     3559# If the template does not know about datarootdir, expand it.
     3560# FIXME: This hack should be removed a few years after 2.60.
     3561ac_datarootdir_hack=; ac_datarootdir_seen=
     3562
     3563case `sed -n '/datarootdir/ {
     3564  p
     3565  q
     3566}
     3567/@datadir@/p
     3568/@docdir@/p
     3569/@infodir@/p
     3570/@localedir@/p
     3571/@mandir@/p
     3572' $ac_file_inputs` in
     3573*datarootdir*) ac_datarootdir_seen=yes;;
     3574*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
     3575  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     3576echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     3577_ACEOF
     3578cat >>$CONFIG_STATUS <<_ACEOF
     3579  ac_datarootdir_hack='
     3580  s&@datadir@&$datadir&g
     3581  s&@docdir@&$docdir&g
     3582  s&@infodir@&$infodir&g
     3583  s&@localedir@&$localedir&g
     3584  s&@mandir@&$mandir&g
     3585    s&\\\${datarootdir}&$datarootdir&g' ;;
    30393586esac
    3040 case $ac_abs_builddir in
    3041 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    3042 *)
    3043   case ${ac_top_builddir}. in
    3044   .) ac_abs_top_builddir=$ac_abs_builddir;;
    3045   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    3046   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    3047   esac;;
    3048 esac
    3049 case $ac_abs_builddir in
    3050 .) ac_abs_srcdir=$ac_srcdir;;
    3051 *)
    3052   case $ac_srcdir in
    3053   .) ac_abs_srcdir=$ac_abs_builddir;;
    3054   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    3055   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    3056   esac;;
    3057 esac
    3058 case $ac_abs_builddir in
    3059 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    3060 *)
    3061   case $ac_top_srcdir in
    3062   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    3063   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    3064   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    3065   esac;;
    3066 esac
    3067 
    3068 
    3069 
    3070   if test x"$ac_file" != x-; then
    3071     { echo "$as_me:$LINENO: creating $ac_file" >&5
    3072 echo "$as_me: creating $ac_file" >&6;}
    3073     rm -f "$ac_file"
    3074   fi
    3075   # Let's still pretend it is `configure' which instantiates (i.e., don't
    3076   # use $as_me), people would be surprised to read:
    3077   #    /* config.h.  Generated by config.status.  */
    3078   if test x"$ac_file" = x-; then
    3079     configure_input=
    3080   else
    3081     configure_input="$ac_file.  "
    3082   fi
    3083   configure_input=$configure_input"Generated from `echo $ac_file_in |
    3084                                      sed 's,.*/,,'` by configure."
    3085 
    3086   # First look for the input files in the build tree, otherwise in the
    3087   # src tree.
    3088   ac_file_inputs=`IFS=:
    3089     for f in $ac_file_in; do
    3090       case $f in
    3091       -) echo $tmp/stdin ;;
    3092       [\\/$]*)
    3093          # Absolute (can't be DOS-style, as IFS=:)
    3094          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    3095 echo "$as_me: error: cannot find input file: $f" >&2;}
    3096    { (exit 1); exit 1; }; }
    3097          echo "$f";;
    3098       *) # Relative
    3099          if test -f "$f"; then
    3100            # Build tree
    3101            echo "$f"
    3102          elif test -f "$srcdir/$f"; then
    3103            # Source tree
    3104            echo "$srcdir/$f"
    3105          else
    3106            # /dev/null tree
    3107            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    3108 echo "$as_me: error: cannot find input file: $f" >&2;}
    3109    { (exit 1); exit 1; }; }
    3110          fi;;
    3111       esac
    3112     done` || { (exit 1); exit 1; }
    3113 _ACEOF
     3587_ACEOF
     3588
     3589# Neutralize VPATH when `$srcdir' = `.'.
     3590# Shell code in configure.ac might set extrasub.
     3591# FIXME: do we really want to maintain this feature?
    31143592cat >>$CONFIG_STATUS <<_ACEOF
    31153593  sed "$ac_vpsub
    … …  
    31193597:t
    31203598/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    3121 s,@configure_input@,$configure_input,;t t
    3122 s,@srcdir@,$ac_srcdir,;t t
    3123 s,@abs_srcdir@,$ac_abs_srcdir,;t t
    3124 s,@top_srcdir@,$ac_top_srcdir,;t t
    3125 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    3126 s,@builddir@,$ac_builddir,;t t
    3127 s,@abs_builddir@,$ac_abs_builddir,;t t
    3128 s,@top_builddir@,$ac_top_builddir,;t t
    3129 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    3130 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    3131   rm -f $tmp/stdin
    3132   if test x"$ac_file" != x-; then
    3133     mv $tmp/out $ac_file
    3134   else
    3135     cat $tmp/out
    3136     rm -f $tmp/out
    3137   fi
    3138 
    3139 done
    3140 _ACEOF
    3141 
    3142 cat >>$CONFIG_STATUS <<\_ACEOF
     3599s&@configure_input@&$configure_input&;t t
     3600s&@top_builddir@&$ac_top_builddir_sub&;t t
     3601s&@srcdir@&$ac_srcdir&;t t
     3602s&@abs_srcdir@&$ac_abs_srcdir&;t t
     3603s&@top_srcdir@&$ac_top_srcdir&;t t
     3604s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
     3605s&@builddir@&$ac_builddir&;t t
     3606s&@abs_builddir@&$ac_abs_builddir&;t t
     3607s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
     3608$ac_datarootdir_hack
     3609" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
     3610
     3611test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     3612  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
     3613  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
     3614  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     3615which seems to be undefined.  Please make sure it is defined." >&5
     3616echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     3617which seems to be undefined.  Please make sure it is defined." >&2;}
     3618
     3619  rm -f "$tmp/stdin"
     3620  case $ac_file in
     3621  -) cat "$tmp/out"; rm -f "$tmp/out";;
     3622  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
     3623  esac
     3624 ;;
     3625
     3626
     3627
     3628  esac
     3629
     3630done # for ac_tag
     3631
    31433632
    31443633{ (exit 0); exit 0; }
  • libfaim/rxhandlers.c

    rcf02dd6 rdab82f29  
    6767
    6868        mod->next = (aim_module_t *)sess->modlistv;
    69         (aim_module_t *)sess->modlistv = mod;
     69        /* (aim_module_t *)sess->modlistv = mod; */
     70        sess->modlistv = mod;
     71       
    7072
    7173        faimdprintf(sess, 1, "registered module %s (family 0x%04x, version = 0x%04x, tool 0x%04x, tool version 0x%04x)\n", mod->name, mod->family, mod->version, mod->toolid, mod->toolversion);
  • list.c

    r53f421b rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226#include <stdlib.h>
  • logging.c

    r3c7d086a rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226#include <stdlib.h>
    … …  
    1337void owl_log_message(owl_message *m) {
    1438  owl_function_debugmsg("owl_log_message: entering");
    15 
    16   if (m == NULL) {
    17     owl_function_debugmsg("owl_log_message: passed null message");
    18     return;
    19   }
    2039
    2140  /* should we be logging this message? */
    … …  
    281300  FILE *file, *allfile;
    282301  char filename[MAXPATHLEN], allfilename[MAXPATHLEN], *logpath;
    283   char *frombuff=NULL, *from=NULL, *buff=NULL, *ptr;
     302  char *frombuff=NULL, *from=NULL, *zsig=NULL;
    284303  int len, ch, i, personal;
    285304
    … …  
    377396    fprintf(file, "\n");
    378397    fprintf(file, "Time: %s Host: %s\n", owl_message_get_timestr(m), owl_message_get_hostname(m));
    379     ptr=owl_zephyr_get_zsig(owl_message_get_notice(m), &i);
    380     buff=owl_malloc(i+10);
    381     memcpy(buff, ptr, i);
    382     buff[i]='\0';
    383     fprintf(file, "From: %s <%s>\n\n", buff, tmp);
     398    zsig=owl_message_get_zsig(m);
     399    fprintf(file, "From: %s <%s>\n\n", zsig, tmp);
    384400    fprintf(file, "%s\n\n", owl_message_get_body(m));
    385401    owl_free(tmp);
    … …  
    411427      fprintf(allfile, "\n");
    412428      fprintf(allfile, "Time: %s Host: %s\n", owl_message_get_timestr(m), owl_message_get_hostname(m));
    413       fprintf(allfile, "From: %s <%s>\n\n", buff, tmp);
     429      fprintf(allfile, "From: %s <%s>\n\n", zsig, tmp);
    414430      fprintf(allfile, "%s\n\n", owl_message_get_body(m));
    415431      owl_free(tmp);
    … …  
    431447  }
    432448
    433   if (owl_message_is_type_zephyr(m)) {
    434     owl_free(buff);
    435   }
    436449  owl_free(frombuff);
    437450}
  • mainwin.c

    r37eab7f rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • message.c

    r8298425 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <stdlib.h>
    226#include <unistd.h>
    … …  
    2044  m->delete=0;
    2145  m->hostname=owl_strdup("");
    22   m->zwriteline=strdup("");
     46  m->zwriteline=NULL;
    2347  m->invalid_format=1;
    2448
    … …  
    437461char *owl_message_get_zwriteline(owl_message *m)
    438462{
     463  if(!m->zwriteline)
     464    return "";
    439465  return(m->zwriteline);
    440466}
    … …  
    442468void owl_message_set_zwriteline(owl_message *m, char *line)
    443469{
     470  if(m->zwriteline) owl_free(m->zwriteline);
    444471  m->zwriteline=strdup(line);
    445472}
    … …  
    724751  struct hostent *hent;
    725752  char *ptr, *tmp, *tmp2;
     753  int len;
    726754
    727755  owl_message_init(m);
    … …  
    752780    owl_message_set_opcode(m, "");
    753781  }
    754   owl_message_set_zsig(m, n->z_message);
     782  owl_message_set_zsig(m, owl_zephyr_get_zsig(n, &len));
    755783
    756784  if ((ptr=strchr(n->z_recipient, '@'))!=NULL) {
  • messagelist.c

    rbd3f232 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226#include <stdlib.h>
    … …  
    2145}
    2246
    23 owl_message *owl_messagelist_get_by_id(owl_messagelist *ml, int id)
     47owl_message *owl_messagelist_get_by_id(owl_messagelist *ml, int target_id)
    2448{
    2549  /* return the message with id == 'id'.  If it doesn't exist return NULL. */
    26   /* we could make this much more efficient at some point */
    27   int i, j;
     50  int first, last, mid, msg_id;
    2851  owl_message *m;
    2952
    30   j=owl_list_get_size(&(ml->list));
    31   for (i=0; i<j; i++) {
    32     m=owl_list_get_element(&(ml->list), i);
    33     if (owl_message_get_id(m)==id) return(m);
    34 
    35     /* the message id's have to be sequential.  If we've passed the
    36        one we're looking for just bail */
    37     if (owl_message_get_id(m) > id) return(NULL);
     53  first = 0;
     54  last = owl_list_get_size(&(ml->list)) - 1;
     55  while (first <= last) {
     56    mid = (first + last) / 2;
     57    m = owl_list_get_element(&(ml->list), mid);
     58    msg_id = owl_message_get_id(m);
     59    if (msg_id == target_id) {
     60      return(m);
     61    } else if (msg_id < target_id) {
     62      first = mid + 1;
     63    } else {
     64      last = mid - 1;
     65    }
    3866  }
    3967  return(NULL);
  • owl.c

    r176d3443 rdab82f29  
    1 /*  Copyright (c) 2004 James Kretchmar. All rights reserved.
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
    22 *
    3  *  Redistribution and use in source and binary forms, with or without
    4  *  modification, are permitted provided that the following conditions are
    5  *  met:
    6  * 
    7  *    * Redistributions of source code must retain the above copyright
    8  *      notice, this list of conditions and the following disclaimer.
    9  * 
    10  *    * Redistributions in binary form must reproduce the above copyright
    11  *      notice, this list of conditions and the following disclaimer in
    12  *      the documentation and/or other materials provided with the
    13  *      distribution.
    14  * 
    15  *    * Redistributions in any form must be accompanied by information on
    16  *      how to obtain complete source code for the Owl software and any
    17  *      accompanying software that uses the Owl software. The source code
    18  *      must either be included in the distribution or be available for no
    19  *      more than the cost of distribution plus a nominal fee, and must be
    20  *      freely redistributable under reasonable conditions. For an
    21  *      executable file, complete source code means the source code for
    22  *      all modules it contains. It does not include source code for
    23  *      modules or files that typically accompany the major components of
    24  *      the operating system on which the executable file runs.
    25  * 
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
    2619 *
    27  *  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    28  *  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    29  *  WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
    30  *  NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
    31  *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    32  *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    33  *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
    34  *  BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    35  *  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
    36  *  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
    37  *  IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
    3823 */
    3924
    … …  
    6045#endif
    6146
     47#define STDIN 0
     48
    6249static const char fileIdent[] = "$Id$";
    6350
    … …  
    6956  owl_editwin *tw;
    7057  owl_popwin *pw;
    71   int j, ret, initialsubs, debug, argcsave, followlast;
    72   int newmsgs, zpendcount, nexttimediff;
     58  int ret, initialsubs, debug, argcsave, followlast;
     59  int newmsgs, nexttimediff;
    7360  struct sigaction sigact;
    7461  char *configfile, *tty, *perlout, *perlerr, **argvsave, buff[LINE], startupmsg[LINE];
    … …  
    7966  char *dir;
    8067  struct termios tio;
    81 #ifdef HAVE_LIBZEPHYR
    82   ZNotice_t notice;
    83 #endif
    8468#if OWL_STDERR_REDIR
    8569  int newstderr;
    … …  
    200184  owl_function_debugmsg("startup: first available debugging message");
    201185  owl_global_set_startupargs(&g, argcsave, argvsave);
     186  owl_global_set_haveaim(&g);
     187
     188  /* prepare stdin dispatch */
     189  {
     190    owl_dispatch *d = owl_malloc(sizeof(owl_dispatch));
     191    owl_function_debugmsg("startup: creating input selector");
     192    d->fd = STDIN;
     193    d->cfunc = &owl_process_input;
     194    d->destroy = NULL;
     195    owl_select_add_dispatch(d);
     196  }
     197
    202198#ifdef HAVE_LIBZEPHYR
    203199  owl_global_set_havezephyr(&g);
     200  if (!ret) {
     201    owl_dispatch *d = owl_malloc(sizeof(owl_dispatch));
     202    owl_function_debugmsg("startup: creating zephyr selector");
     203    d->fd = ZGetFD();
     204    d->cfunc = &owl_zephyr_process_events;
     205    d->destroy = NULL;
     206    owl_select_add_dispatch(d);
     207    owl_global_set_havezephyr(&g);
     208  }
    204209#endif
    205   owl_global_set_haveaim(&g);
    206210
    207211#if OWL_STDERR_REDIR
    208212  /* Do this only after we've started curses up... */
    209   owl_function_debugmsg("startup: doing stderr redirection");
    210   newstderr = stderr_replace();
    211   owl_muxevents_add(owl_global_get_muxevents(&g), newstderr, OWL_MUX_READ,
    212                     stderr_redirect_handler, NULL);
     213  {
     214    owl_dispatch *d = owl_malloc(sizeof(owl_dispatch));
     215    owl_function_debugmsg("startup: doing stderr redirection");
     216    d->fd = stderr_replace();
     217    d->cfunc = stderr_redirect_handler;
     218    d->destroy = NULL;
     219    owl_function_debugmsg("testing: 1");
     220    owl_select_add_dispatch(d);
     221    owl_function_debugmsg("testing: 2");
     222  }
     223
    213224#endif   
    214225
    … …  
    463474    /* Grab incoming messages. */
    464475    newmsgs=0;
    465     zpendcount=0;
    466     while(owl_zephyr_zpending() || owl_global_messagequeue_pending(&g)) {
    467 #ifdef HAVE_LIBZEPHYR
    468       struct sockaddr_in from;
    469 #endif
     476    while(owl_global_messagequeue_pending(&g)) {
    470477      owl_message *m=NULL;
    471478      owl_filter *f;
    472479
    473       /* grab the new message, stick it in 'm' */
    474       if (owl_zephyr_zpending()) {
    475 #ifdef HAVE_LIBZEPHYR
    476         /* grab a zephyr notice, but if we've done 20 without stopping,
    477            take a break to process keystrokes etc. */
    478         if (zpendcount>20) break;
    479         ZReceiveNotice(&notice, &from);
    480         zpendcount++;
    481        
    482         /* is this an ack from a zephyr we sent? */
    483         if (owl_zephyr_notice_is_ack(&notice)) {
    484           owl_zephyr_handle_ack(&notice);
    485           continue;
    486         }
    487        
    488         /* if it's a ping and we're not viewing pings then skip it */
    489         if (!owl_global_is_rxping(&g) && !strcasecmp(notice.z_opcode, "ping")) {
    490           continue;
    491         }
    492 
    493         /* create the new message */
    494         m=owl_malloc(sizeof(owl_message));
    495         owl_message_create_from_znotice(m, &notice);
    496 #endif
    497       } else if (owl_global_messagequeue_pending(&g)) {
    498         /* pick up the non-zephyr message in the message queue */
    499         m=owl_global_messageuque_popmsg(&g);
    500       } else {
    501         /* Not supposed to happen, but we seem to get here on resizes */
    502         owl_function_debugmsg("Bottomed out looking for zephyr");
    503       }
    504 
    505       /* If we didn't pick up a message for some reason, don't go on */
    506       if (m==NULL) {
    507         owl_function_debugmsg("m is null in main loop");
    508         continue;
    509       }
     480      m=owl_global_messageuque_popmsg(&g);
    510481     
    511482      /* if this message it on the puntlist, nuke it and continue */
    … …  
    599570    }
    600571
    601     /* dispatch any muxevents */
    602     owl_muxevents_dispatch(owl_global_get_muxevents(&g), 0);
    603 
    604572    /* follow the last message if we're supposed to */
    605573    if (newmsgs && followlast) {
    … …  
    651619    }
    652620
    653     /* Handle all keypresses.  If no key has been pressed, sleep for a
    654      * little bit, but otherwise do not.  This lets input be grabbed
    655      * as quickly as possbile */
    656     j=wgetch(typwin);
    657     if (j==ERR) {
    658       usleep(10);
    659     } else {
    660       /* find and activate the current keymap.
    661        * TODO: this should really get fixed by activating
    662        * keymaps as we switch between windows...
    663        */
    664       if (pw && owl_popwin_is_active(pw) && owl_global_get_viewwin(&g)) {
    665         owl_context_set_popless(owl_global_get_context(&g),
    666                                 owl_global_get_viewwin(&g));
    667         owl_function_activate_keymap("popless");
    668       } else if (owl_global_is_typwin_active(&g)
    669                  && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_ONELINE) {
    670         /*
    671           owl_context_set_editline(owl_global_get_context(&g), tw);
    672           owl_function_activate_keymap("editline");
    673         */
    674       } else if (owl_global_is_typwin_active(&g)
    675                  && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_MULTILINE) {
    676         owl_context_set_editmulti(owl_global_get_context(&g), tw);
    677         owl_function_activate_keymap("editmulti");
    678       } else {
    679         owl_context_set_recv(owl_global_get_context(&g));
    680         owl_function_activate_keymap("recv");
    681       }
    682       /* now actually handle the keypress */
    683       ret = owl_keyhandler_process(owl_global_get_keyhandler(&g), j);
    684       if (ret!=0 && ret!=1) {
    685         owl_function_makemsg("Unable to handle keypress");
    686       }
    687     }
     621    /* select on FDs we know about. */
     622    owl_select();
    688623
    689624    /* Log any error signals */
    … …  
    698633    }
    699634
     635  }
     636}
     637
     638void owl_process_input(owl_dispatch *d)
     639{
     640  int ret, j;
     641  owl_popwin *pw;
     642  owl_editwin *tw;
     643  WINDOW *typwin;
     644
     645  typwin = owl_global_get_curs_typwin(&g);
     646  while (1) {
     647    j=wgetch(typwin);
     648    if (j==ERR) return;
     649
     650    pw=owl_global_get_popwin(&g);
     651    tw=owl_global_get_typwin(&g);
     652   
     653    /* find and activate the current keymap.
     654     * TODO: this should really get fixed by activating
     655     * keymaps as we switch between windows...
     656     */
     657    if (pw && owl_popwin_is_active(pw) && owl_global_get_viewwin(&g)) {
     658      owl_context_set_popless(owl_global_get_context(&g),
     659                              owl_global_get_viewwin(&g));
     660      owl_function_activate_keymap("popless");
     661    } else if (owl_global_is_typwin_active(&g)
     662               && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_ONELINE) {
     663      /*
     664        owl_context_set_editline(owl_global_get_context(&g), tw);
     665        owl_function_activate_keymap("editline");
     666      */
     667    } else if (owl_global_is_typwin_active(&g)
     668               && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_MULTILINE) {
     669      owl_context_set_editmulti(owl_global_get_context(&g), tw);
     670      owl_function_activate_keymap("editmulti");
     671    } else {
     672      owl_context_set_recv(owl_global_get_context(&g));
     673      owl_function_activate_keymap("recv");
     674    }
     675    /* now actually handle the keypress */
     676    ret = owl_keyhandler_process(owl_global_get_keyhandler(&g), j);
     677    if (ret!=0 && ret!=1) {
     678      owl_function_makemsg("Unable to handle keypress");
     679    }
    700680  }
    701681}
    … …  
    743723    return -1;
    744724  }
    745     owl_function_debugmsg("stderr_replace: pipe: %d,%d\n", pipefds[0], pipefds[1]);
     725    owl_function_debugmsg("stderr_replace: pipe: %d,%d", pipefds[0], pipefds[1]);
    746726  if (-1 == dup2(pipefds[1], 2 /*stderr*/)) {
    747     owl_function_debugmsg("stderr_replace: dup2 FAILED (%s)\n", strerror(errno));
     727    owl_function_debugmsg("stderr_replace: dup2 FAILED (%s)", strerror(errno));
    748728    perror("dup2");
    749729    return -1;
  • owl.h

    re74e573 rdab82f29  
    1 /*  Copyright (c) 2004 James Kretchmar. All rights reserved.
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
    22 *
    3  *  Redistribution and use in source and binary forms, with or without
    4  *  modification, are permitted provided that the following conditions are
    5  *  met:
    6  * 
    7  *    * Redistributions of source code must retain the above copyright
    8  *      notice, this list of conditions and the following disclaimer.
    9  * 
    10  *    * Redistributions in binary form must reproduce the above copyright
    11  *      notice, this list of conditions and the following disclaimer in
    12  *      the documentation and/or other materials provided with the
    13  *      distribution.
    14  * 
    15  *    * Redistributions in any form must be accompanied by information on
    16  *      how to obtain complete source code for the Owl software and any
    17  *      accompanying software that uses the Owl software. The source code
    18  *      must either be included in the distribution or be available for no
    19  *      more than the cost of distribution plus a nominal fee, and must be
    20  *      freely redistributable under reasonable conditions. For an
    21  *      executable file, complete source code means the source code for
    22  *      all modules it contains. It does not include source code for
    23  *      modules or files that typically accompany the major components of
    24  *      the operating system on which the executable file runs.
    25  * 
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
    2619 *
    27  *  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    28  *  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    29  *  WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
    30  *  NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
    31  *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    32  *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    33  *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
    34  *  BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    35  *  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
    36  *  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
    37  *  IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
    3823 */
    3924
    … …  
    6045static const char owl_h_fileIdent[] = "$Id$";
    6146
    62 #define OWL_VERSION         2.1.11
    63 #define OWL_VERSION_STRING "2.1.11"
     47#define OWL_VERSION         2.1.12
     48#define OWL_VERSION_STRING "2.1.12-pre-6"
    6449
    6550/* Feature that is being tested to redirect stderr through a pipe.
    … …  
    192177#define OWL_WEBZEPHYR_OPCODE    "webzephyr"
    193178
    194 #define OWL_REGEX_QUOTECHARS    "+*.?[]^\\"
     179#define OWL_REGEX_QUOTECHARS    "+*.?[]^\\${}()"
    195180#define OWL_REGEX_QUOTEWITH     "\\"
    196181
    … …  
    371356} owl_popwin;
    372357
     358typedef struct _owl_dispatch {
     359  int fd;                                 /* FD to watch for dispatch. */
     360  int needs_gc;
     361  void (*cfunc)(struct _owl_dispatch*);   /* C function to dispatch to. */
     362  void (*destroy)(struct _owl_dispatch*); /* Destructor */
     363  void *data;
     364} owl_dispatch;
     365
    373366typedef struct _owl_popexec {
    374367  int refcount;
    … …  
    376369  int winactive;
    377370  int pid;                      /* or 0 if it has terminated */
    378   int rfd; 
     371  owl_dispatch dispatch;
    379372} owl_popexec;
    380373
    … …  
    434427} owl_editwin;
    435428
    436 typedef struct _owl_mux {
    437   int handle;                   /* for referencing this */
    438   int active;                   /* has this been deleted? */
    439   int fd;                     
    440   int eventmask;                /* bitmask of OWL_MUX_* */
    441   void (*handler_fn)(int handle, int fd, int eventmask, void *data);
    442   void *data;                   /* data reference to pass to callback */
    443 } owl_mux;
    444 typedef owl_list owl_muxevents;
    445 
    446429typedef struct _owl_keybinding {
    447430  int  *j;                      /* keypress stack (0-terminated) */ 
    … …  
    503486  owl_list filterlist;
    504487  owl_list puntlist;
    505   owl_muxevents muxevents;      /* fds to dispatch on */
    506488  owl_vardict vars;
    507489  owl_cmddict cmds;
    … …  
    563545  owl_timer zephyr_buddycheck_timer;
    564546  struct termios startup_tio;
     547  owl_list dispatchlist;
    565548} owl_global;
    566549
  • pair.c

    r160ea47 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • perlconfig.c

    r4e0f545 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <stdio.h>
    226#include <stdlib.h>
    … …  
    7498  hv_store(h, "id", strlen("id"), newSViv(owl_message_get_id(m)),0);
    7599  hv_store(h, "deleted", strlen("deleted"), newSViv(owl_message_is_delete(m)),0);
     100  hv_store(h, "private", strlen("private"), newSViv(owl_message_is_private(m)),0);
    76101
    77102  if (owl_message_is_type_zephyr(m))       blessas = "owl::Message::Zephyr";
    … …  
    325350    char *ptr = NULL;
    326351    if (owl_perlconfig_is_function("owl::receive_msg")) {
    327       owl_perlconfig_call_with_message(subname?subname
     352      ptr = owl_perlconfig_call_with_message(subname?subname
    328353                                       :"owl::_receive_msg_legacy_wrap", m);
    329354    }
  • perlglue.xs

    r8a54409 rdab82f29  
    1616extern void g;
    1717extern int owl_global_get_cols(void*);
    18 
     18extern char *owl_zephyr_get_realm();
     19extern char *owl_zephyr_get_sender();
     20 
    1921MODULE = owl            PACKAGE = owl           
    2022
  • perlwrap.pm

    r87c6ef1 rdab82f29  
    4545sub recipient   { return shift->{"recipient"}; }
    4646sub login       { return shift->{"login"}; }
     47sub is_private  { return shift->{"private"}; }
    4748
    4849sub is_login    { return shift->login eq "login"; }
    … …  
    6364sub is_mail     { return 0; }
    6465sub is_personal { return undef; }
    65 sub is_private  { return undef; }
    6666sub class       { return undef; }
    6767sub instance    { return undef; }
    … …  
    191191sub is_ping     { return (lc(shift->opcode) eq "ping"); }
    192192
    193 sub is_private {
    194     my ($m) = @_;
    195     return (lc($m->recipient) eq lc(owl::zephyr_getsender()));
    196 }
    197 
    198193sub is_personal {
    199194    my ($m) = @_;
  • popexec.c

    r1971b59 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226#ifdef HAVE_SYS_IOCTL_H
    … …  
    5175    return NULL;
    5276  } else if (pid != 0) {
     77    close(child_write_fd);
    5378    /* still in owl */
    54     int muxhandle;
    5579    pe->pid=pid;
    5680    pe->winactive=1;
    57     pe->rfd = parent_read_fd;
    58     close(child_write_fd);
    59     muxhandle = owl_muxevents_add(owl_global_get_muxevents(&g),
    60                                   parent_read_fd, OWL_MUX_READ|OWL_MUX_EXCEPT,
    61                                   owl_popexec_inputhandler, (void*)pe);
     81    pe->dispatch.fd = parent_read_fd;
     82    pe->dispatch.cfunc = owl_popexec_inputhandler;
     83    pe->dispatch.destroy = owl_popexec_free_dispatch;
     84    pe->dispatch.data = pe;
     85    owl_select_add_dispatch(&pe->dispatch);
    6286    pe->refcount++;
    6387  } else {
    … …  
    7397    dup2(child_write_fd, 2 /*stderr*/);
    7498    close(child_write_fd);
    75    
    76     while(0) {
    77       write(child_write_fd, "meep\n", 5);
    78       sleep(1);
    79     }
    8099
    81100    argv[0] = "sh";
    … …  
    90109}
    91110
    92 void owl_popexec_inputhandler(int handle, int fd, int eventmask, void *data)
    93 {
    94   owl_popexec *pe = (owl_popexec*)data;
     111void owl_popexec_inputhandler(owl_dispatch *d)
     112{
     113  owl_popexec *pe = d->data;
    95114  int navail, bread, rv_navail;
    96115  char *buf;
    … …  
    101120  /* If pe->winactive is 0 then the vwin has closed.
    102121   * If pe->pid is 0 then the child has already been reaped.
    103    * if pe->rfd is -1 then the fd has been closed out.
     122   * if d->fd is -1 then the fd has been closed out.
    104123   * Under these cases we want to get to a state where:
    105124   *   - data read until end if child running
    … …  
    110129
    111130  /* the viewwin has closed */
    112   if (pe->rfd<0 && !pe->pid && !pe->winactive) {
    113     owl_muxevents_remove(owl_global_get_muxevents(&g), handle);
    114     owl_function_debugmsg("unref of %p from input handler at A", pe);
    115     owl_popexec_unref(pe);
     131  if (!pe->pid && !pe->winactive) {
     132    owl_select_remove_dispatch(d->fd);
    116133    return;
    117134  }
    118135
    119   if (0 != (rv_navail = ioctl(fd, FIONREAD, (void*)&navail))) {
     136  if (0 != (rv_navail = ioctl(d->fd, FIONREAD, (void*)&navail))) {
    120137    owl_function_debugmsg("ioctl error");
    121138  }
    … …  
    130147      owl_viewwin_redisplay(pe->vwin, 1);
    131148    }
    132     if (pe->rfd>0) {
    133       close(pe->rfd);
    134       pe->rfd = -1;
    135     }
    136     owl_muxevents_remove(owl_global_get_muxevents(&g), handle);
    137     owl_function_debugmsg("unref of %p from input handler at B", pe);
    138     owl_popexec_unref(pe);
     149    owl_select_remove_dispatch(d->fd);
    139150    return;
    140151  }
    141152
    142   if (pe->rfd<0 || !pe->pid || !pe->winactive || rv_navail) {
     153  if (d->fd<0 || !pe->pid || !pe->winactive || rv_navail) {
    143154    owl_function_error("popexec should not have reached this point");
    144155    return;
    … …  
    148159  if (navail>1024) { navail = 1024; }
    149160  buf = owl_malloc(navail+1);
    150   owl_function_debugmsg("about to read %d\n", navail);
    151   bread = read(fd, buf, navail);
     161  owl_function_debugmsg("about to read %d", navail);
     162  bread = read(d->fd, buf, navail);
    152163  if (bread<0) {
    153164    perror("read");
    … …  
    157168    buf[navail] = '\0';
    158169  }
    159   owl_function_debugmsg("got data:  <%s>\n", buf);
     170  owl_function_debugmsg("got data:  <%s>", buf);
    160171  if (pe->winactive) {
    161172    owl_viewwin_append_text(pe->vwin, buf);
    … …  
    166177}
    167178
     179void owl_popexec_free_dispatch(owl_dispatch *d)
     180{
     181  owl_popexec *pe = d->data;
     182  close(d->fd);
     183  owl_popexec_unref(pe);
     184}
     185
    168186void owl_popexec_viewwin_onclose(owl_viewwin *vwin, void *data)
    169187{
    … …  
    172190
    173191  pe->winactive = 0;
    174   if (pe->rfd>0) {
    175     close(pe->rfd);
    176     pe->rfd = -1;
     192  if (pe->dispatch.fd>0) {
     193    owl_select_remove_dispatch(pe->dispatch.fd);
    177194  }
    178195  if (pe->pid) {
  • popwin.c

    r818a073 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • regex.c

    rbc08664 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <string.h>
    226#include "owl.h"
  • style.c

    r5a9f6fe rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • stylefunc.c

    r789462a rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • tester.c

    r094009a rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226#include <unistd.h>
  • text.c

    r1bb1e67 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <stdio.h>
    226#include <string.h>
  • timer.c

    r6a415e9 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • util.c

    rfe67f1f rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226#include <stdlib.h>
    … …  
    346370  }
    347371
     372  owl_free(curarg);
     373
    348374  /* check for unbalanced quotes */
    349375  if (quote!='\0') {
    … …  
    648674      owl_function_error("Error opening file %s for writing", backupfilename);
    649675      owl_free(backupfilename);
     676      fclose(file);
    650677      return;
    651678    }
    652     owl_free(backupfilename);
    653679  }
    654680
    … …  
    689715    owl_function_error("WARNING: Error opening %s for writing.  Use %s to restore.", filename, backupfilename);
    690716    owl_function_beep();
    691     owl_free(line);
    692     return;
    693   }
    694 
    695   fputs(text, file);
    696   fclose(file);
     717  } else {
     718    fputs(text, file);
     719    fclose(file);
     720  }
     721
     722  if (backup)
     723    owl_free(backupfilename);
     724  owl_free(text);
    697725}
    698726
  • variable.c

    r15b34fd rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <stdio.h>
    226#include <stdlib.h>
    … …  
    341365               "                 the cursor will be near the center.\n",
    342366               "normal,top,neartop,center,paged,pagedcenter" ),
    343 
    344   OWLVAR_ENUM( "webbrowser" /* %OwlVarStub */, OWL_WEBBROWSER_NETSCAPE,
    345                "web browser to use to launch URLs",
    346                "When the 'w' key is pressed, this browser is used\n"
    347                "to display the requested URL.\n",
    348                "none,netscape,galeon,opera" ),
    349367
    350368
    … …  
    953971  FAIL_UNLESS("get int 7", 9==owl_variable_get_int(&vd,"typewinsize"));
    954972
    955   FAIL_UNLESS("get enum", OWL_WEBBROWSER_NETSCAPE==owl_variable_get_int(&vd,"webbrowser"));
    956   FAIL_UNLESS("get enum as string 1", 0==owl_variable_get_tostring(&vd,"webbrowser", buf, 1024));
    957   FAIL_UNLESS("get enum as string 2", 0==strcmp(buf,"netscape"));
    958   FAIL_UNLESS("set enum 1", 0==owl_variable_set_int(&vd,"webbrowser",OWL_WEBBROWSER_GALEON));
    959   FAIL_UNLESS("get enum 2", OWL_WEBBROWSER_GALEON==owl_variable_get_int(&vd,"webbrowser"));
    960   FAIL_UNLESS("set enum 1b", -1==owl_variable_set_int(&vd,"webbrowser",-3));
    961   FAIL_UNLESS("set enum 1b", -1==owl_variable_set_int(&vd,"webbrowser",209));
    962   FAIL_UNLESS("get enum 2b", OWL_WEBBROWSER_GALEON==owl_variable_get_int(&vd,"webbrowser"));
    963   FAIL_UNLESS("set enum 3", 0==owl_variable_set_fromstring(&vd,"webbrowser","none",0,0));
    964   FAIL_UNLESS("get enum 4", OWL_WEBBROWSER_NONE==owl_variable_get_int(&vd,"webbrowser"));
    965   FAIL_UNLESS("set enum 5", 0==owl_variable_set_fromstring(&vd,"webbrowser","netscape",0,0));
    966   FAIL_UNLESS("get enum 6", OWL_WEBBROWSER_NETSCAPE==owl_variable_get_int(&vd,"webbrowser"));
    967   FAIL_UNLESS("set enum 7", -1==owl_variable_set_fromstring(&vd,"webbrowser","xxx",0,0));
    968   FAIL_UNLESS("set enum 8", -1==owl_variable_set_fromstring(&vd,"webbrowser","",0,0));
    969   FAIL_UNLESS("set enum 9", -1==owl_variable_set_fromstring(&vd,"webbrowser","netscapey",0,0));
    970   FAIL_UNLESS("get enum 10", OWL_WEBBROWSER_NETSCAPE==owl_variable_get_int(&vd,"webbrowser"));
    971 
    972973
    973974
  • view.c

    rf1e629d rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <stdlib.h>
    226#include "owl.h"
    … …  
    97121int owl_view_get_nearest_to_msgid(owl_view *v, int targetid)
    98122{
    99   int i, bestdist=-1, bestpos=0, curid, curdist;
     123  int first, last, mid = 0, max, bestdist, curid = 0;
    100124
    101   for (i=0; i<owl_view_get_size(v); i++) {
    102     curid = owl_message_get_id(owl_view_get_element(v, i));
    103     curdist = abs(targetid-curid);
    104     if (bestdist<0 || curdist<bestdist) {
    105       bestdist = curdist;
    106       bestpos = i;
     125  first = 0;
     126  last = max = owl_view_get_size(v) - 1;
     127  while (first <= last) {
     128    mid = (first + last) / 2;
     129    curid = owl_message_get_id(owl_view_get_element(v, mid));
     130    if (curid == targetid) {
     131      return(mid);
     132    } else if (curid < targetid) {
     133      first = mid + 1;
     134    } else {
     135      last = mid - 1;
    107136    }
    108137  }
    109   return (bestpos);
     138  bestdist = abs(targetid-curid);
     139  if (curid < targetid && mid+1 < max) {
     140    curid = owl_message_get_id(owl_view_get_element(v, mid+1));
     141    mid = (bestdist < abs(targetid-curid)) ? mid : mid+1;
     142  }
     143  else if (curid > targetid && mid-1 >= 0) {
     144    curid = owl_message_get_id(owl_view_get_element(v, mid-1));
     145    mid = (bestdist < abs(targetid-curid)) ? mid : mid-1;
     146  }
     147  return mid;
    110148}
    111149
  • viewwin.c

    r8721756 rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <string.h>
    226#include "owl.h"
  • zbuddylist.c

    rdad943e rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include "owl.h"
    226
  • zcrypt.c

    r9ceee9d rdab82f29  
    1 /* This file is stolen and slightly modified code */
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
     25/* The functions here with "owl" in their name were written for the
     26 * Owl project.  Other code is from Philip Lisiecki's
     27 * (lisiecki@mit.edu) zcrypt program.
     28 */
    229
    330/* zcrypt.c -- Read in a data stream from stdin & dump a decrypted/encrypted *
    … …  
    423450char *GetZephyrVarKeyFile(char *whoami, char *class, char *instance) {
    424451  char *keyfile = NULL;
    425   char varname[MAX_SEARCH][128];
     452  char *varname[MAX_SEARCH];
    426453  int length[MAX_SEARCH], i;
    427454  char buffer[MAX_BUFF];
    428   char filename[MAX_BUFF];
     455  char *filename;
    429456  char result[MAX_SEARCH][MAX_BUFF];
    430457  int numsearch = 0;
    431458  FILE *fsearch;
    432459
     460  memset(varname, 0, sizeof(varname));
     461
    433462  /* Determine names to look for in .crypt-table */
    434463  if (instance) {
    435     sprintf(varname[numsearch++], "crypt-%s-%s:", (class?class:"message"), instance);
     464    varname[numsearch++] = owl_sprintf("crypt-%s-%s:", (class?class:"message"), instance);
    436465  }
    437466  if (class) {
    438     sprintf(varname[numsearch++], "crypt-%s:", class);
    439   }
    440   sprintf(varname[numsearch++], "crypt-default:");
     467    varname[numsearch++] = owl_sprintf("crypt-%s:", class);
     468  }
     469  varname[numsearch++] = owl_strdup("crypt-default:");
    441470
    442471  /* Setup the result array, and determine string lengths */
    … …  
    447476
    448477  /* Open~/.crypt-table */
    449   sprintf(filename, "%s/.crypt-table", getenv("HOME"));
     478  filename = owl_sprintf("%s/.crypt-table", getenv("HOME"));
    450479  fsearch = fopen(filename, "r");
    451480  if (fsearch) {
    … …  
    495524  }
    496525
     526  for(i = 0; i < MAX_SEARCH; i++) {
     527    owl_free(varname[i]);
     528  }
     529
     530  owl_free(filename);
     531
    497532  return(keyfile);
    498533}
  • zephyr.c

    r180cd15 rdab82f29  
    6666#endif
    6767}
     68
     69#ifdef HAVE_LIBZEPHYR
     70int owl_zephyr_loadsubs_helper(ZSubscription_t subs[], int count)
     71{
     72  int i, ret = 0;
     73  /* sub without defaults */
     74  if (ZSubscribeToSansDefaults(subs,count,0) != ZERR_NONE) {
     75    owl_function_error("Error subscribing to zephyr notifications.");
     76    ret=-2;
     77  }
     78
     79  /* free stuff */
     80  for (i=0; i<count; i++) {
     81    owl_free(subs[i].zsub_class);
     82    owl_free(subs[i].zsub_classinst);
     83    owl_free(subs[i].zsub_recipient);
     84  }
     85  return ret;
     86}
     87#endif
    6888
    6989/* Load zephyr subscriptions form 'filename'.  If 'filename' is NULL,
    … …  
    82102  char buffer[1024], subsfile[1024];
    83103  ZSubscription_t subs[3001];
    84   int count, ret, i;
     104  int count, ret;
    85105  struct stat statbuff;
    86106
    … …  
    98118
    99119  ZResetAuthentication();
    100   /* need to redo this to do chunks, not just bail after 3000 */
    101120  count=0;
    102121  file=fopen(subsfile, "r");
    … …  
    111130    }
    112131   
    113     if (count >= 3000) break; /* also tell the user */
     132    if (count >= 3000) {
     133      ret = owl_zephyr_loadsubs_helper(subs, count);
     134      if (ret != 0) {
     135        fclose(file);
     136        return(ret);
     137      }
     138      count=0;
     139    }
    114140   
    115141    /* add it to the list of subs */
    … …  
    130156  fclose(file);
    131157
    132   /* sub without defaults */
    133   ret=0;
    134   if (ZSubscribeToSansDefaults(subs,count,0) != ZERR_NONE) {
    135     owl_function_error("Error subscribing to zephyr notifications.");
    136     ret=-2;
    137   }
    138 
    139   /* free stuff */
    140   for (i=0; i<count; i++) {
    141     owl_free(subs[i].zsub_class);
    142     owl_free(subs[i].zsub_classinst);
    143     owl_free(subs[i].zsub_recipient);
    144   }
     158  ret=owl_zephyr_loadsubs_helper(subs, count);
    145159
    146160  return(ret);
    … …  
    291305  int i, count, save;
    292306  char *out;
     307
     308  /* If there's no message here, just run along now */
     309  if (n->z_message_len == 0)
     310    return(owl_strdup(""));
    293311
    294312  count=save=0;
    … …  
    327345  int i, fields;
    328346
     347  if(n->z_message_len == 0)
     348    return 0;
     349
    329350  fields=1;
    330351  for (i=0; i<n->z_message_len; i++) {
    … …  
    355376  if (!strcasecmp(n->z_sender, "olc.matisse@ATHENA.MIT.EDU")) {
    356377    return(owl_zephyr_get_field(n, 1));
     378  }
     379  /* deal with MIT NOC messages */
     380  else if (!strcasecmp(n->z_sender, "rcmd.achilles@ATHENA.MIT.EDU")) {
     381    /* $opcode service on $instance $3.\n$4 */
     382    char *msg, *opcode, *instance, *field3, *field4;
     383
     384    opcode = n->z_opcode;
     385    instance = n->z_class_inst;
     386    field3 = owl_zephyr_get_field(n, 3);
     387    field4 = owl_zephyr_get_field(n, 4);
     388
     389    msg = owl_sprintf("%s service on %s %s\n%s", opcode, instance, field3, field4);
     390    if (msg) {
     391      return msg;
     392    }
    357393  }
    358394
    … …  
    629665        owl_function_error("Subscription already present in %s", subsfile);
    630666        owl_free(line);
     667        fclose(file);
    631668        return;
    632669      }
    633670    }
     671    fclose(file);
    634672  }
    635673
    636674  /* if we get here then we didn't find it */
    637   fclose(file);
    638675  file=fopen(subsfile, "a");
    639676  if (!file) {
    … …  
    9691006#endif
    9701007}
     1008
     1009
     1010#ifdef HAVE_LIBZEPHYR
     1011void owl_zephyr_process_events(owl_dispatch *d) {
     1012  int zpendcount=0;
     1013  ZNotice_t notice;
     1014  struct sockaddr_in from;
     1015  owl_message *m=NULL;
     1016
     1017  while(owl_zephyr_zpending() && zpendcount < 20) {
     1018    if (owl_zephyr_zpending()) {
     1019      ZReceiveNotice(&notice, &from);
     1020      zpendcount++;
     1021
     1022      /* is this an ack from a zephyr we sent? */
     1023      if (owl_zephyr_notice_is_ack(&notice)) {
     1024        owl_zephyr_handle_ack(&notice);
     1025        continue;
     1026      }
     1027
     1028      /* if it's a ping and we're not viewing pings then skip it */
     1029      if (!owl_global_is_rxping(&g) && !strcasecmp(notice.z_opcode, "ping")) {
     1030        continue;
     1031      }
     1032
     1033      /* create the new message */
     1034      m=owl_malloc(sizeof(owl_message));
     1035      owl_message_create_from_znotice(m, &notice);
     1036
     1037      owl_global_messagequeue_addmsg(&g, m);
     1038    }
     1039  }
     1040}
     1041
     1042#else
     1043void owl_zephyr_process_events(owl_dispatch *d) {
     1044 
     1045}
     1046#endif
  • zwrite.c

    rdb2dd3d rdab82f29  
     1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
     2 *
     3 * This file is part of Owl.
     4 *
     5 * Owl is free software: you can redistribute it and/or modify
     6 * it under the terms of the GNU General Public License as published by
     7 * the Free Software Foundation, either version 3 of the License, or
     8 * (at your option) any later version.
     9 *
     10 * Owl is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 * GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License
     16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
     17 *
     18 * ---------------------------------------------------------------
     19 *
     20 * As of Owl version 2.1.12 there are patches contributed by
     21 * developers of the the branched BarnOwl project, Copyright (c)
     22 * 2006-2008 The BarnOwl Developers. All rights reserved.
     23 */
     24
    125#include <string.h>
    226#include <pwd.h>
    … …  
    191215{
    192216  int i, j;
    193   char to[LINE];
     217  char *to;
    194218
    195219  if (z->noping) return;
    … …  
    205229  for (i=0; i<j; i++) {
    206230    if (strcmp(z->realm, "")) {
    207       sprintf(to, "%s@%s", (char *) owl_list_get_element(&(z->recips), i), z->realm);
     231      to = owl_sprintf("%s@%s", (char *) owl_list_get_element(&(z->recips), i), z->realm);
    208232    } else {
    209       strcpy(to, owl_list_get_element(&(z->recips), i));
     233      to = owl_strdup(owl_list_get_element(&(z->recips), i));
    210234    }
    211235    send_ping(to);
     236    owl_free(to);
    212237  }
    213238
    … …  
    217242{
    218243  int i, j;
    219   char toline[LINE];
    220 
     244  char *toline = NULL;
     245  char *tmp = NULL;
     246 
    221247  if (z->message) owl_free(z->message);
    222248
    223249  j=owl_list_get_size(&(z->recips));
    224250  if (j>0 && z->cc) {
    225     strcpy(toline, "CC: ");
     251    toline = owl_strdup( "CC: ");
    226252    for (i=0; i<j; i++) {
     253      tmp = toline;
    227254      if (strcmp(z->realm, "")) {
    228         sprintf(toline, "%s%s@%s ", toline, (char *) owl_list_get_element(&(z->recips), i), z->realm);
     255        toline = owl_sprintf( "%s%s@%s ", toline, (char *) owl_list_get_element(&(z->recips), i), z->realm);
    229256      } else {
    230         sprintf(toline, "%s%s ", toline, (char *) owl_list_get_element(&(z->recips), i));
    231       }
     257        toline = owl_sprintf( "%s%s ", toline, (char *) owl_list_get_element(&(z->recips), i));
     258      }
     259      owl_free(tmp);
     260      tmp=NULL;
    232261    }
    233262    z->message=owl_sprintf("%s\n%s", toline, msg);
     263    owl_free(toline);
    234264  } else {
    235265    z->message=owl_strdup(msg);
    … …  
    252282{
    253283  int i, j;
    254   char to[LINE];
     284  char *to = NULL;
    255285
    256286  if (z->message==NULL) return(-1);
    … …  
    260290    for (i=0; i<j; i++) {
    261291      if (strcmp(z->realm, "")) {
    262         sprintf(to, "%s@%s", (char *) owl_list_get_element(&(z->recips), i), z->realm);
     292        to = owl_sprintf("%s@%s", (char *) owl_list_get_element(&(z->recips), i), z->realm);
    263293      } else {
    264         strcpy(to, owl_list_get_element(&(z->recips), i));
     294to = owl_strdup( owl_list_get_element(&(z->recips), i));
    265295      }
    266296      send_zephyr(z->opcode, z->zsig, z->class, z->inst, to, z->message);
     297      owl_free(to);
     298      to = NULL;
    267299    }
    268300  } else {
    269     sprintf(to, "@%s", z->realm);
     301    to = owl_sprintf( "@%s", z->realm);
    270302    send_zephyr(z->opcode, z->zsig, z->class, z->inst, to, z->message);
    271303  }
     304  owl_free(to);
    272305  return(0);
    273306}
Note: See TracChangeset for help on using the changeset viewer.