1@%:@! /bin/sh
2@%:@ From configure.in Id: configure.in.
3@%:@ Guess values for system-dependent variables and create Makefiles.
4@%:@ Generated by GNU Autoconf 2.59.
5@%:@
6@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
7@%:@ This configure script is free software; the Free Software Foundation
8@%:@ gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23DUALCASE=1; export DUALCASE # for MKS sh
24
25# Support unset when possible.
26if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27  as_unset=unset
28else
29  as_unset=false
30fi
31
32
33# Work around bugs in pre-3.0 UWIN ksh.
34$as_unset ENV MAIL MAILPATH
35PS1='$ '
36PS2='> '
37PS4='+ '
38
39# NLS nuisances.
40for as_var in \
41  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43  LC_TELEPHONE LC_TIME
44do
45  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46    eval $as_var=C; export $as_var
47  else
48    $as_unset $as_var
49  fi
50done
51
52# Required to use basename.
53if expr a : '\(a\)' >/dev/null 2>&1; then
54  as_expr=expr
55else
56  as_expr=false
57fi
58
59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60  as_basename=basename
61else
62  as_basename=false
63fi
64
65
66# Name of the executable.
67as_me=`$as_basename "$0" ||
68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69	 X"$0" : 'X\(//\)$' \| \
70	 X"$0" : 'X\(/\)$' \| \
71	 .     : '\(.\)' 2>/dev/null ||
72echo X/"$0" |
73    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
75  	  /^X\/\(\/\).*/{ s//\1/; q; }
76  	  s/.*/./; q'`
77
78
79# PATH needs CR, and LINENO needs CR and PATH.
80# Avoid depending upon Character Ranges.
81as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84as_cr_digits='0123456789'
85as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87# The user is always right.
88if test "${PATH_SEPARATOR+set}" != set; then
89  echo "#! /bin/sh" >conf$$.sh
90  echo  "exit 0"   >>conf$$.sh
91  chmod +x conf$$.sh
92  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93    PATH_SEPARATOR=';'
94  else
95    PATH_SEPARATOR=:
96  fi
97  rm -f conf$$.sh
98fi
99
100
101  as_lineno_1=$LINENO
102  as_lineno_2=$LINENO
103  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104  test "x$as_lineno_1" != "x$as_lineno_2" &&
105  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106  # Find who we are.  Look in the path if we contain no path at all
107  # relative or not.
108  case $0 in
109    *[\\/]* ) as_myself=$0 ;;
110    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111for as_dir in $PATH
112do
113  IFS=$as_save_IFS
114  test -z "$as_dir" && as_dir=.
115  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116done
117
118       ;;
119  esac
120  # We did not find ourselves, most probably we were run as `sh COMMAND'
121  # in which case we are not to be found in the path.
122  if test "x$as_myself" = x; then
123    as_myself=$0
124  fi
125  if test ! -f "$as_myself"; then
126    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127   { (exit 1); exit 1; }; }
128  fi
129  case $CONFIG_SHELL in
130  '')
131    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133do
134  IFS=$as_save_IFS
135  test -z "$as_dir" && as_dir=.
136  for as_base in sh bash ksh sh5; do
137	 case $as_dir in
138	 /*)
139	   if ("$as_dir/$as_base" -c '
140  as_lineno_1=$LINENO
141  as_lineno_2=$LINENO
142  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143  test "x$as_lineno_1" != "x$as_lineno_2" &&
144  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147	     CONFIG_SHELL=$as_dir/$as_base
148	     export CONFIG_SHELL
149	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150	   fi;;
151	 esac
152       done
153done
154;;
155  esac
156
157  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158  # uniformly replaced by the line number.  The first 'sed' inserts a
159  # line-number line before each line; the second 'sed' does the real
160  # work.  The second script uses 'N' to pair each line-number line
161  # with the numbered line, and appends trailing '-' during
162  # substitution so that $LINENO is not a special case at line end.
163  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165  sed '=' <$as_myself |
166    sed '
167      N
168      s,$,-,
169      : loop
170      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171      t loop
172      s,-$,,
173      s,^['$as_cr_digits']*\n,,
174    ' >$as_me.lineno &&
175  chmod +x $as_me.lineno ||
176    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177   { (exit 1); exit 1; }; }
178
179  # Don't try to exec as it changes $[0], causing all sort of problems
180  # (the dirname of $[0] is not the place where we might find the
181  # original and so on.  Autoconf is especially sensible to this).
182  . ./$as_me.lineno
183  # Exit status is that of the last command.
184  exit
185}
186
187
188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189  *c*,-n*) ECHO_N= ECHO_C='
190' ECHO_T='	' ;;
191  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193esac
194
195if expr a : '\(a\)' >/dev/null 2>&1; then
196  as_expr=expr
197else
198  as_expr=false
199fi
200
201rm -f conf$$ conf$$.exe conf$$.file
202echo >conf$$.file
203if ln -s conf$$.file conf$$ 2>/dev/null; then
204  # We could just check for DJGPP; but this test a) works b) is more generic
205  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206  if test -f conf$$.exe; then
207    # Don't use ln at all; we don't have any links
208    as_ln_s='cp -p'
209  else
210    as_ln_s='ln -s'
211  fi
212elif ln conf$$.file conf$$ 2>/dev/null; then
213  as_ln_s=ln
214else
215  as_ln_s='cp -p'
216fi
217rm -f conf$$ conf$$.exe conf$$.file
218
219if mkdir -p . 2>/dev/null; then
220  as_mkdir_p=:
221else
222  test -d ./-p && rmdir ./-p
223  as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" 	$as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245# Name of the host.
246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247# so uname gets run too.
248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250exec 6>&1
251
252#
253# Initializations.
254#
255ac_default_prefix=/usr/local
256ac_config_libobj_dir=.
257cross_compiling=no
258subdirs=
259MFLAGS=
260MAKEFLAGS=
261SHELL=${CONFIG_SHELL-/bin/sh}
262
263# Maximum number of lines to put in a shell here document.
264# This variable seems obsolete.  It should probably be removed, and
265# only ac_max_sed_lines should be used.
266: ${ac_max_here_lines=38}
267
268# Identity of this package.
269PACKAGE_NAME=
270PACKAGE_TARNAME=
271PACKAGE_VERSION=
272PACKAGE_STRING=
273PACKAGE_BUGREPORT=
274
275ac_unique_file="src/tf.h"
276ac_default_prefix=`
277    if test -w /usr/local/bin && test -w /usr/local/share; then
278	echo "/usr/local"
279    elif uname -s | egrep BeOS >/dev/null 2>&1; then
280	# prefix according to Steven Black <steven@be.com>
281	echo "$HOME/config"
282    else
283	echo "$HOME"
284    fi
285`
286# Factoring default headers for most tests.
287ac_includes_default="\
288#include <stdio.h>
289#if HAVE_SYS_TYPES_H
290# include <sys/types.h>
291#endif
292#if HAVE_SYS_STAT_H
293# include <sys/stat.h>
294#endif
295#if STDC_HEADERS
296# include <stdlib.h>
297# include <stddef.h>
298#else
299# if HAVE_STDLIB_H
300#  include <stdlib.h>
301# endif
302#endif
303#if HAVE_STRING_H
304# if !STDC_HEADERS && HAVE_MEMORY_H
305#  include <memory.h>
306# endif
307# include <string.h>
308#endif
309#if HAVE_STRINGS_H
310# include <strings.h>
311#endif
312#if HAVE_INTTYPES_H
313# include <inttypes.h>
314#else
315# if HAVE_STDINT_H
316#  include <stdint.h>
317# endif
318#endif
319#if HAVE_UNISTD_H
320# include <unistd.h>
321#endif"
322
323ac_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 TFVERSION CC UNAME CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SET_MAKE STRIP RANLIB PCRE EXENAME LIBNAME SYMLINK MODE OTHER_OBJS LIB@&t@OBJS LTLIBOBJS'
324ac_subst_files=''
325
326# Initialize some variables set by options.
327ac_init_help=
328ac_init_version=false
329# The variables have the same names as the options, with
330# dashes changed to underlines.
331cache_file=/dev/null
332exec_prefix=NONE
333no_create=
334no_recursion=
335prefix=NONE
336program_prefix=NONE
337program_suffix=NONE
338program_transform_name=s,x,x,
339silent=
340site=
341srcdir=
342verbose=
343x_includes=NONE
344x_libraries=NONE
345
346# Installation directory options.
347# These are left unexpanded so users can "make install exec_prefix=/foo"
348# and all the variables that are supposed to be based on exec_prefix
349# by default will actually change.
350# Use braces instead of parens because sh, perl, etc. also accept them.
351bindir='${exec_prefix}/bin'
352sbindir='${exec_prefix}/sbin'
353libexecdir='${exec_prefix}/libexec'
354datadir='${prefix}/share'
355sysconfdir='${prefix}/etc'
356sharedstatedir='${prefix}/com'
357localstatedir='${prefix}/var'
358libdir='${exec_prefix}/lib'
359includedir='${prefix}/include'
360oldincludedir='/usr/include'
361infodir='${prefix}/info'
362mandir='${prefix}/man'
363
364ac_prev=
365for ac_option
366do
367  # If the previous option needs an argument, assign it.
368  if test -n "$ac_prev"; then
369    eval "$ac_prev=\$ac_option"
370    ac_prev=
371    continue
372  fi
373
374  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
375
376  # Accept the important Cygnus configure options, so we can diagnose typos.
377
378  case $ac_option in
379
380  -bindir | --bindir | --bindi | --bind | --bin | --bi)
381    ac_prev=bindir ;;
382  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
383    bindir=$ac_optarg ;;
384
385  -build | --build | --buil | --bui | --bu)
386    ac_prev=build_alias ;;
387  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
388    build_alias=$ac_optarg ;;
389
390  -cache-file | --cache-file | --cache-fil | --cache-fi \
391  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
392    ac_prev=cache_file ;;
393  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
394  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
395    cache_file=$ac_optarg ;;
396
397  --config-cache | -C)
398    cache_file=config.cache ;;
399
400  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
401    ac_prev=datadir ;;
402  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
403  | --da=*)
404    datadir=$ac_optarg ;;
405
406  -disable-* | --disable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    eval "enable_$ac_feature=no" ;;
414
415  -enable-* | --enable-*)
416    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
417    # Reject names that are not valid shell variable names.
418    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
419      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
420   { (exit 1); exit 1; }; }
421    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
422    case $ac_option in
423      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
424      *) ac_optarg=yes ;;
425    esac
426    eval "enable_$ac_feature='$ac_optarg'" ;;
427
428  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
429  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
430  | --exec | --exe | --ex)
431    ac_prev=exec_prefix ;;
432  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
433  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
434  | --exec=* | --exe=* | --ex=*)
435    exec_prefix=$ac_optarg ;;
436
437  -gas | --gas | --ga | --g)
438    # Obsolete; use --with-gas.
439    with_gas=yes ;;
440
441  -help | --help | --hel | --he | -h)
442    ac_init_help=long ;;
443  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
444    ac_init_help=recursive ;;
445  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
446    ac_init_help=short ;;
447
448  -host | --host | --hos | --ho)
449    ac_prev=host_alias ;;
450  -host=* | --host=* | --hos=* | --ho=*)
451    host_alias=$ac_optarg ;;
452
453  -includedir | --includedir | --includedi | --included | --include \
454  | --includ | --inclu | --incl | --inc)
455    ac_prev=includedir ;;
456  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
457  | --includ=* | --inclu=* | --incl=* | --inc=*)
458    includedir=$ac_optarg ;;
459
460  -infodir | --infodir | --infodi | --infod | --info | --inf)
461    ac_prev=infodir ;;
462  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
463    infodir=$ac_optarg ;;
464
465  -libdir | --libdir | --libdi | --libd)
466    ac_prev=libdir ;;
467  -libdir=* | --libdir=* | --libdi=* | --libd=*)
468    libdir=$ac_optarg ;;
469
470  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
471  | --libexe | --libex | --libe)
472    ac_prev=libexecdir ;;
473  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
474  | --libexe=* | --libex=* | --libe=*)
475    libexecdir=$ac_optarg ;;
476
477  -localstatedir | --localstatedir | --localstatedi | --localstated \
478  | --localstate | --localstat | --localsta | --localst \
479  | --locals | --local | --loca | --loc | --lo)
480    ac_prev=localstatedir ;;
481  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
482  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
483  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
484    localstatedir=$ac_optarg ;;
485
486  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
487    ac_prev=mandir ;;
488  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
489    mandir=$ac_optarg ;;
490
491  -nfp | --nfp | --nf)
492    # Obsolete; use --without-fp.
493    with_fp=no ;;
494
495  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
496  | --no-cr | --no-c | -n)
497    no_create=yes ;;
498
499  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
500  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
501    no_recursion=yes ;;
502
503  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
504  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
505  | --oldin | --oldi | --old | --ol | --o)
506    ac_prev=oldincludedir ;;
507  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
508  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
509  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
510    oldincludedir=$ac_optarg ;;
511
512  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
513    ac_prev=prefix ;;
514  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
515    prefix=$ac_optarg ;;
516
517  -program-prefix | --program-prefix | --program-prefi | --program-pref \
518  | --program-pre | --program-pr | --program-p)
519    ac_prev=program_prefix ;;
520  -program-prefix=* | --program-prefix=* | --program-prefi=* \
521  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
522    program_prefix=$ac_optarg ;;
523
524  -program-suffix | --program-suffix | --program-suffi | --program-suff \
525  | --program-suf | --program-su | --program-s)
526    ac_prev=program_suffix ;;
527  -program-suffix=* | --program-suffix=* | --program-suffi=* \
528  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
529    program_suffix=$ac_optarg ;;
530
531  -program-transform-name | --program-transform-name \
532  | --program-transform-nam | --program-transform-na \
533  | --program-transform-n | --program-transform- \
534  | --program-transform | --program-transfor \
535  | --program-transfo | --program-transf \
536  | --program-trans | --program-tran \
537  | --progr-tra | --program-tr | --program-t)
538    ac_prev=program_transform_name ;;
539  -program-transform-name=* | --program-transform-name=* \
540  | --program-transform-nam=* | --program-transform-na=* \
541  | --program-transform-n=* | --program-transform-=* \
542  | --program-transform=* | --program-transfor=* \
543  | --program-transfo=* | --program-transf=* \
544  | --program-trans=* | --program-tran=* \
545  | --progr-tra=* | --program-tr=* | --program-t=*)
546    program_transform_name=$ac_optarg ;;
547
548  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
549  | -silent | --silent | --silen | --sile | --sil)
550    silent=yes ;;
551
552  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
553    ac_prev=sbindir ;;
554  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
555  | --sbi=* | --sb=*)
556    sbindir=$ac_optarg ;;
557
558  -sharedstatedir | --sharedstatedir | --sharedstatedi \
559  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
560  | --sharedst | --shareds | --shared | --share | --shar \
561  | --sha | --sh)
562    ac_prev=sharedstatedir ;;
563  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
564  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
565  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
566  | --sha=* | --sh=*)
567    sharedstatedir=$ac_optarg ;;
568
569  -site | --site | --sit)
570    ac_prev=site ;;
571  -site=* | --site=* | --sit=*)
572    site=$ac_optarg ;;
573
574  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
575    ac_prev=srcdir ;;
576  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
577    srcdir=$ac_optarg ;;
578
579  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
580  | --syscon | --sysco | --sysc | --sys | --sy)
581    ac_prev=sysconfdir ;;
582  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
583  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
584    sysconfdir=$ac_optarg ;;
585
586  -target | --target | --targe | --targ | --tar | --ta | --t)
587    ac_prev=target_alias ;;
588  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
589    target_alias=$ac_optarg ;;
590
591  -v | -verbose | --verbose | --verbos | --verbo | --verb)
592    verbose=yes ;;
593
594  -version | --version | --versio | --versi | --vers | -V)
595    ac_init_version=: ;;
596
597  -with-* | --with-*)
598    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
599    # Reject names that are not valid shell variable names.
600    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
601      { echo "$as_me: error: invalid package name: $ac_package" >&2
602   { (exit 1); exit 1; }; }
603    ac_package=`echo $ac_package| sed 's/-/_/g'`
604    case $ac_option in
605      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
606      *) ac_optarg=yes ;;
607    esac
608    eval "with_$ac_package='$ac_optarg'" ;;
609
610  -without-* | --without-*)
611    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
612    # Reject names that are not valid shell variable names.
613    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
614      { echo "$as_me: error: invalid package name: $ac_package" >&2
615   { (exit 1); exit 1; }; }
616    ac_package=`echo $ac_package | sed 's/-/_/g'`
617    eval "with_$ac_package=no" ;;
618
619  --x)
620    # Obsolete; use --with-x.
621    with_x=yes ;;
622
623  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
624  | --x-incl | --x-inc | --x-in | --x-i)
625    ac_prev=x_includes ;;
626  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
627  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
628    x_includes=$ac_optarg ;;
629
630  -x-libraries | --x-libraries | --x-librarie | --x-librari \
631  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
632    ac_prev=x_libraries ;;
633  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
634  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
635    x_libraries=$ac_optarg ;;
636
637  -*) { echo "$as_me: error: unrecognized option: $ac_option
638Try \`$0 --help' for more information." >&2
639   { (exit 1); exit 1; }; }
640    ;;
641
642  *=*)
643    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
644    # Reject names that are not valid shell variable names.
645    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
646      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
647   { (exit 1); exit 1; }; }
648    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
649    eval "$ac_envvar='$ac_optarg'"
650    export $ac_envvar ;;
651
652  *)
653    # FIXME: should be removed in autoconf 3.0.
654    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
655    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
656      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
657    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
658    ;;
659
660  esac
661done
662
663if test -n "$ac_prev"; then
664  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
665  { echo "$as_me: error: missing argument to $ac_option" >&2
666   { (exit 1); exit 1; }; }
667fi
668
669# Be sure to have absolute paths.
670for ac_var in exec_prefix prefix
671do
672  eval ac_val=$`echo $ac_var`
673  case $ac_val in
674    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
675    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676   { (exit 1); exit 1; }; };;
677  esac
678done
679
680# Be sure to have absolute paths.
681for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
682	      localstatedir libdir includedir oldincludedir infodir mandir
683do
684  eval ac_val=$`echo $ac_var`
685  case $ac_val in
686    [\\/$]* | ?:[\\/]* ) ;;
687    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
688   { (exit 1); exit 1; }; };;
689  esac
690done
691
692# There might be people who depend on the old broken behavior: `$host'
693# used to hold the argument of --host etc.
694# FIXME: To remove some day.
695build=$build_alias
696host=$host_alias
697target=$target_alias
698
699# FIXME: To remove some day.
700if test "x$host_alias" != x; then
701  if test "x$build_alias" = x; then
702    cross_compiling=maybe
703    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
704    If a cross compiler is detected then cross compile mode will be used." >&2
705  elif test "x$build_alias" != "x$host_alias"; then
706    cross_compiling=yes
707  fi
708fi
709
710ac_tool_prefix=
711test -n "$host_alias" && ac_tool_prefix=$host_alias-
712
713test "$silent" = yes && exec 6>/dev/null
714
715
716# Find the source files, if location was not specified.
717if test -z "$srcdir"; then
718  ac_srcdir_defaulted=yes
719  # Try the directory containing this script, then its parent.
720  ac_confdir=`(dirname "$0") 2>/dev/null ||
721$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
722	 X"$0" : 'X\(//\)[^/]' \| \
723	 X"$0" : 'X\(//\)$' \| \
724	 X"$0" : 'X\(/\)' \| \
725	 .     : '\(.\)' 2>/dev/null ||
726echo X"$0" |
727    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
728  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
729  	  /^X\(\/\/\)$/{ s//\1/; q; }
730  	  /^X\(\/\).*/{ s//\1/; q; }
731  	  s/.*/./; q'`
732  srcdir=$ac_confdir
733  if test ! -r $srcdir/$ac_unique_file; then
734    srcdir=..
735  fi
736else
737  ac_srcdir_defaulted=no
738fi
739if test ! -r $srcdir/$ac_unique_file; then
740  if test "$ac_srcdir_defaulted" = yes; then
741    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
742   { (exit 1); exit 1; }; }
743  else
744    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
745   { (exit 1); exit 1; }; }
746  fi
747fi
748(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
749  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
750   { (exit 1); exit 1; }; }
751srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
752ac_env_build_alias_set=${build_alias+set}
753ac_env_build_alias_value=$build_alias
754ac_cv_env_build_alias_set=${build_alias+set}
755ac_cv_env_build_alias_value=$build_alias
756ac_env_host_alias_set=${host_alias+set}
757ac_env_host_alias_value=$host_alias
758ac_cv_env_host_alias_set=${host_alias+set}
759ac_cv_env_host_alias_value=$host_alias
760ac_env_target_alias_set=${target_alias+set}
761ac_env_target_alias_value=$target_alias
762ac_cv_env_target_alias_set=${target_alias+set}
763ac_cv_env_target_alias_value=$target_alias
764ac_env_CC_set=${CC+set}
765ac_env_CC_value=$CC
766ac_cv_env_CC_set=${CC+set}
767ac_cv_env_CC_value=$CC
768ac_env_CFLAGS_set=${CFLAGS+set}
769ac_env_CFLAGS_value=$CFLAGS
770ac_cv_env_CFLAGS_set=${CFLAGS+set}
771ac_cv_env_CFLAGS_value=$CFLAGS
772ac_env_LDFLAGS_set=${LDFLAGS+set}
773ac_env_LDFLAGS_value=$LDFLAGS
774ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
775ac_cv_env_LDFLAGS_value=$LDFLAGS
776ac_env_CPPFLAGS_set=${CPPFLAGS+set}
777ac_env_CPPFLAGS_value=$CPPFLAGS
778ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
779ac_cv_env_CPPFLAGS_value=$CPPFLAGS
780ac_env_CPP_set=${CPP+set}
781ac_env_CPP_value=$CPP
782ac_cv_env_CPP_set=${CPP+set}
783ac_cv_env_CPP_value=$CPP
784
785#
786# Report the --help message.
787#
788if test "$ac_init_help" = "long"; then
789  # Omit some internal or obsolete options to make the list less imposing.
790  # This message is too long to be a string in the A/UX 3.1 sh.
791  cat <<_ACEOF
792\`configure' configures this package to adapt to many kinds of systems.
793
794Usage: $0 [OPTION]... [VAR=VALUE]...
795
796To assign environment variables (e.g., CC, CFLAGS...), specify them as
797VAR=VALUE.  See below for descriptions of some of the useful variables.
798
799Defaults for the options are specified in brackets.
800
801Configuration:
802  -h, --help              display this help and exit
803      --help=short        display options specific to this package
804      --help=recursive    display the short help of all the included packages
805  -V, --version           display version information and exit
806  -q, --quiet, --silent   do not print \`checking...' messages
807      --cache-file=FILE   cache test results in FILE [disabled]
808  -C, --config-cache      alias for \`--cache-file=config.cache'
809  -n, --no-create         do not create output files
810      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
811
812_ACEOF
813
814  cat <<_ACEOF
815Installation directories:
816  --prefix=PREFIX         install architecture-independent files in PREFIX
817			  [$ac_default_prefix]
818  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
819			  [PREFIX]
820
821By default, \`make install' will install all the files in
822\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
823an installation prefix other than \`$ac_default_prefix' using \`--prefix',
824for instance \`--prefix=\$HOME'.
825
826For better control, use the options below.
827
828Fine tuning of the installation directories:
829  --bindir=DIR           user executables [EPREFIX/bin]
830  --sbindir=DIR          system admin executables [EPREFIX/sbin]
831  --libexecdir=DIR       program executables [EPREFIX/libexec]
832  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
833  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
834  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
835  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
836  --libdir=DIR           object code libraries [EPREFIX/lib]
837  --includedir=DIR       C header files [PREFIX/include]
838  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
839  --infodir=DIR          info documentation [PREFIX/info]
840  --mandir=DIR           man documentation [PREFIX/man]
841_ACEOF
842
843  cat <<\_ACEOF
844_ACEOF
845fi
846
847if test -n "$ac_init_help"; then
848
849  cat <<\_ACEOF
850
851Optional Features:
852  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854  --enable-version        insert version number into names of installed files
855                          (equivalent to --program-suffix=\"-${TFVER}\")
856  --enable-symlink=NAME make a symlink NAME to the executable
857                          NAME=BINDIR/tf
858  --enable-core           enable debugging core files
859  --disable-ssl           disable SSL support
860  --enable-getaddrinfo    enable getaddrinfo() (if configure complains)
861  --disable-getaddrinfo   disable getaddrinfo() (implies --disable-inet6)
862  --disable-inet6         disable IPv6 support
863  --disable-termcap       use hardcoded vt100 codes instead of termcap
864  --enable-termcap=LIB    enable termcap with library LIB (e.g., "ncurses")
865                          (needed only if configure guesses incorrectly)
866  --disable-256colors     disable 256 color support (may reduce memory use)
867  --disable-mailcheck     disable mail checking
868  --enable-mailcheck=DIR  enable checking for mail in directory DIR
869                          (needed only if configure guesses incorrectly)
870  --disable-history       disable /recall and other history features
871  --disable-process       disable /quote and /repeat
872  --disable-float         disable floating point arithmetic and functions
873
874
875Optional Packages:
876  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878  --with-incdirs=DIRS     search for include files in DIRS
879  --with-libdirs=DIRS     search for libraries in DIRS
880  --with-inclibdirs=DIRS  same as --with-incdirs=DIRS --with-libdirs=DIRS
881  --with-inclibpfx=DIRS   same, but appends '/include' and '/lib'
882
883
884Some influential environment variables:
885  CC          C compiler command
886  CFLAGS      C compiler flags
887  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
888              nonstandard directory <lib dir>
889  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
890              headers in a nonstandard directory <include dir>
891  CPP         C preprocessor
892
893Use these variables to override the choices made by `configure' or to help
894it to find libraries and programs with nonstandard names/locations.
895
896_ACEOF
897fi
898
899if test "$ac_init_help" = "recursive"; then
900  # If there are subdirs, report their specific --help.
901  ac_popdir=`pwd`
902  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903    test -d $ac_dir || continue
904    ac_builddir=.
905
906if test "$ac_dir" != .; then
907  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908  # A "../" for each directory in $ac_dir_suffix.
909  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910else
911  ac_dir_suffix= ac_top_builddir=
912fi
913
914case $srcdir in
915  .)  # No --srcdir option.  We are building in place.
916    ac_srcdir=.
917    if test -z "$ac_top_builddir"; then
918       ac_top_srcdir=.
919    else
920       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921    fi ;;
922  [\\/]* | ?:[\\/]* )  # Absolute path.
923    ac_srcdir=$srcdir$ac_dir_suffix;
924    ac_top_srcdir=$srcdir ;;
925  *) # Relative path.
926    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927    ac_top_srcdir=$ac_top_builddir$srcdir ;;
928esac
929
930# Do not use `cd foo && pwd` to compute absolute paths, because
931# the directories may not exist.
932case `pwd` in
933.) ac_abs_builddir="$ac_dir";;
934*)
935  case "$ac_dir" in
936  .) ac_abs_builddir=`pwd`;;
937  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938  *) ac_abs_builddir=`pwd`/"$ac_dir";;
939  esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_top_builddir=${ac_top_builddir}.;;
943*)
944  case ${ac_top_builddir}. in
945  .) ac_abs_top_builddir=$ac_abs_builddir;;
946  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948  esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_srcdir=$ac_srcdir;;
952*)
953  case $ac_srcdir in
954  .) ac_abs_srcdir=$ac_abs_builddir;;
955  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957  esac;;
958esac
959case $ac_abs_builddir in
960.) ac_abs_top_srcdir=$ac_top_srcdir;;
961*)
962  case $ac_top_srcdir in
963  .) ac_abs_top_srcdir=$ac_abs_builddir;;
964  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966  esac;;
967esac
968
969    cd $ac_dir
970    # Check for guested configure; otherwise get Cygnus style configure.
971    if test -f $ac_srcdir/configure.gnu; then
972      echo
973      $SHELL $ac_srcdir/configure.gnu  --help=recursive
974    elif test -f $ac_srcdir/configure; then
975      echo
976      $SHELL $ac_srcdir/configure  --help=recursive
977    elif test -f $ac_srcdir/configure.ac ||
978	   test -f $ac_srcdir/configure.in; then
979      echo
980      $ac_configure --help
981    else
982      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983    fi
984    cd $ac_popdir
985  done
986fi
987
988test -n "$ac_init_help" && exit 0
989if $ac_init_version; then
990  cat <<\_ACEOF
991
992Copyright (C) 2003 Free Software Foundation, Inc.
993This configure script is free software; the Free Software Foundation
994gives unlimited permission to copy, distribute and modify it.
995_ACEOF
996  exit 0
997fi
998exec 5>config.log
999cat >&5 <<_ACEOF
1000This file contains any messages produced by compilers while
1001running configure, to aid debugging if configure makes a mistake.
1002
1003It was created by $as_me, which was
1004generated by GNU Autoconf 2.59.  Invocation command line was
1005
1006  $ $0 $@
1007
1008_ACEOF
1009{
1010cat <<_ASUNAME
1011@%:@@%:@ --------- @%:@@%:@
1012@%:@@%:@ Platform. @%:@@%:@
1013@%:@@%:@ --------- @%:@@%:@
1014
1015hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020
1021/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1023
1024/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1025/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1026/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1028/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1029/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1030/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1031
1032_ASUNAME
1033
1034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035for as_dir in $PATH
1036do
1037  IFS=$as_save_IFS
1038  test -z "$as_dir" && as_dir=.
1039  echo "PATH: $as_dir"
1040done
1041
1042} >&5
1043
1044cat >&5 <<_ACEOF
1045
1046
1047@%:@@%:@ ----------- @%:@@%:@
1048@%:@@%:@ Core tests. @%:@@%:@
1049@%:@@%:@ ----------- @%:@@%:@
1050
1051_ACEOF
1052
1053
1054# Keep a trace of the command line.
1055# Strip out --no-create and --no-recursion so they do not pile up.
1056# Strip out --silent because we don't want to record it for future runs.
1057# Also quote any args containing shell meta-characters.
1058# Make two passes to allow for proper duplicate-argument suppression.
1059ac_configure_args=
1060ac_configure_args0=
1061ac_configure_args1=
1062ac_sep=
1063ac_must_keep_next=false
1064for ac_pass in 1 2
1065do
1066  for ac_arg
1067  do
1068    case $ac_arg in
1069    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071    | -silent | --silent | --silen | --sile | --sil)
1072      continue ;;
1073    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075    esac
1076    case $ac_pass in
1077    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078    2)
1079      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080      if test $ac_must_keep_next = true; then
1081	ac_must_keep_next=false # Got value, back to normal.
1082      else
1083	case $ac_arg in
1084	  *=* | --config-cache | -C | -disable-* | --disable-* \
1085	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087	  | -with-* | --with-* | -without-* | --without-* | --x)
1088	    case "$ac_configure_args0 " in
1089	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090	    esac
1091	    ;;
1092	  -* ) ac_must_keep_next=true ;;
1093	esac
1094      fi
1095      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096      # Get rid of the leading space.
1097      ac_sep=" "
1098      ;;
1099    esac
1100  done
1101done
1102$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104
1105# When interrupted or exit'd, cleanup temporary files, and complete
1106# config.log.  We remove comments because anyway the quotes in there
1107# would cause problems or look ugly.
1108# WARNING: Be sure not to use single quotes in there, as some shells,
1109# such as our DU 5.0 friend, will then `close' the trap.
1110trap 'exit_status=$?
1111  # Save into config.log some information that might help in debugging.
1112  {
1113    echo
1114
1115    cat <<\_ASBOX
1116@%:@@%:@ ---------------- @%:@@%:@
1117@%:@@%:@ Cache variables. @%:@@%:@
1118@%:@@%:@ ---------------- @%:@@%:@
1119_ASBOX
1120    echo
1121    # The following way of writing the cache mishandles newlines in values,
1122{
1123  (set) 2>&1 |
1124    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125    *ac_space=\ *)
1126      sed -n \
1127	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129      ;;
1130    *)
1131      sed -n \
1132	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133      ;;
1134    esac;
1135}
1136    echo
1137
1138    cat <<\_ASBOX
1139@%:@@%:@ ----------------- @%:@@%:@
1140@%:@@%:@ Output variables. @%:@@%:@
1141@%:@@%:@ ----------------- @%:@@%:@
1142_ASBOX
1143    echo
1144    for ac_var in $ac_subst_vars
1145    do
1146      eval ac_val=$`echo $ac_var`
1147      echo "$ac_var='"'"'$ac_val'"'"'"
1148    done | sort
1149    echo
1150
1151    if test -n "$ac_subst_files"; then
1152      cat <<\_ASBOX
1153@%:@@%:@ ------------- @%:@@%:@
1154@%:@@%:@ Output files. @%:@@%:@
1155@%:@@%:@ ------------- @%:@@%:@
1156_ASBOX
1157      echo
1158      for ac_var in $ac_subst_files
1159      do
1160	eval ac_val=$`echo $ac_var`
1161	echo "$ac_var='"'"'$ac_val'"'"'"
1162      done | sort
1163      echo
1164    fi
1165
1166    if test -s confdefs.h; then
1167      cat <<\_ASBOX
1168@%:@@%:@ ----------- @%:@@%:@
1169@%:@@%:@ confdefs.h. @%:@@%:@
1170@%:@@%:@ ----------- @%:@@%:@
1171_ASBOX
1172      echo
1173      sed "/^$/d" confdefs.h | sort
1174      echo
1175    fi
1176    test "$ac_signal" != 0 &&
1177      echo "$as_me: caught signal $ac_signal"
1178    echo "$as_me: exit $exit_status"
1179  } >&5
1180  rm -f core *.core &&
1181  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182    exit $exit_status
1183     ' 0
1184for ac_signal in 1 2 13 15; do
1185  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186done
1187ac_signal=0
1188
1189# confdefs.h avoids OS command line length limits that DEFS can exceed.
1190rm -rf conftest* confdefs.h
1191# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192echo >confdefs.h
1193
1194# Predefined preprocessor variables.
1195
1196cat >>confdefs.h <<_ACEOF
1197@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218_ACEOF
1219
1220
1221# Let the site file select an alternate cache file if it wants to.
1222# Prefer explicitly selected file to automatically selected ones.
1223if test -z "$CONFIG_SITE"; then
1224  if test "x$prefix" != xNONE; then
1225    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226  else
1227    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228  fi
1229fi
1230for ac_site_file in $CONFIG_SITE; do
1231  if test -r "$ac_site_file"; then
1232    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233echo "$as_me: loading site script $ac_site_file" >&6;}
1234    sed 's/^/| /' "$ac_site_file" >&5
1235    . "$ac_site_file"
1236  fi
1237done
1238
1239if test -r "$cache_file"; then
1240  # Some versions of bash will fail to source /dev/null (special
1241  # files actually), so we avoid doing that.
1242  if test -f "$cache_file"; then
1243    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244echo "$as_me: loading cache $cache_file" >&6;}
1245    case $cache_file in
1246      [\\/]* | ?:[\\/]* ) . $cache_file;;
1247      *)                      . ./$cache_file;;
1248    esac
1249  fi
1250else
1251  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252echo "$as_me: creating cache $cache_file" >&6;}
1253  >$cache_file
1254fi
1255
1256# Check that the precious variables saved in the cache have kept the same
1257# value.
1258ac_cache_corrupted=false
1259for ac_var in `(set) 2>&1 |
1260	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262  eval ac_new_set=\$ac_env_${ac_var}_set
1263  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264  eval ac_new_val="\$ac_env_${ac_var}_value"
1265  case $ac_old_set,$ac_new_set in
1266    set,)
1267      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269      ac_cache_corrupted=: ;;
1270    ,set)
1271      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273      ac_cache_corrupted=: ;;
1274    ,);;
1275    *)
1276      if test "x$ac_old_val" != "x$ac_new_val"; then
1277	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1280echo "$as_me:   former value:  $ac_old_val" >&2;}
1281	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1282echo "$as_me:   current value: $ac_new_val" >&2;}
1283	ac_cache_corrupted=:
1284      fi;;
1285  esac
1286  # Pass precious variables to config.status.
1287  if test "$ac_new_set" = set; then
1288    case $ac_new_val in
1289    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291    *) ac_arg=$ac_var=$ac_new_val ;;
1292    esac
1293    case " $ac_configure_args " in
1294      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1295      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296    esac
1297  fi
1298done
1299if $ac_cache_corrupted; then
1300  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304   { (exit 1); exit 1; }; }
1305fi
1306
1307ac_ext=c
1308ac_cpp='$CPP $CPPFLAGS'
1309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332SOCKS=''
1333OTHER_OBJS=""
1334TFVER=`sed -ne 's/^TFVER=\(.*\)/\1/p' src/vars.mak`
1335TFVERSION=`sed -n -e '/Fugue version/s/^.*"\(.*\)".*$/\1/p' src/main.c`
1336
1337          ac_config_headers="$ac_config_headers src/tfconfig.h"
1338
1339
1340
1341
1342
1343{ echo "$as_me:$LINENO: Configuring $TFVERSION" >&5
1344echo "$as_me: Configuring $TFVERSION" >&6;}
1345
1346# User installation options
1347# Check whether --enable-version or --disable-version was given.
1348if test "${enable_version+set}" = set; then
1349  enableval="$enable_version"
1350
1351else
1352  enable_version=default
1353fi;
1354# Check whether --enable-symlink or --disable-symlink was given.
1355if test "${enable_symlink+set}" = set; then
1356  enableval="$enable_symlink"
1357
1358else
1359  enable_symlink=default
1360fi;
1361# Check whether --enable-core or --disable-core was given.
1362if test "${enable_core+set}" = set; then
1363  enableval="$enable_core"
1364
1365else
1366  enable_core=default
1367fi;
1368
1369# Check whether --enable-ssl or --disable-ssl was given.
1370if test "${enable_ssl+set}" = set; then
1371  enableval="$enable_ssl"
1372
1373else
1374  enable_ssl=yes
1375fi;
1376# Check whether --enable-getaddrinfo or --disable-getaddrinfo was given.
1377if test "${enable_getaddrinfo+set}" = set; then
1378  enableval="$enable_getaddrinfo"
1379
1380else
1381  enable_getaddrinfo=default
1382fi;
1383# Check whether --enable-inet6 or --disable-inet6 was given.
1384if test "${enable_inet6+set}" = set; then
1385  enableval="$enable_inet6"
1386
1387else
1388  enable_inet6=yes
1389fi;
1390# Check whether --enable-termcap or --disable-termcap was given.
1391if test "${enable_termcap+set}" = set; then
1392  enableval="$enable_termcap"
1393
1394else
1395  enable_termcap=default
1396fi;
1397# Check whether --enable-256colors or --disable-256colors was given.
1398if test "${enable_256colors+set}" = set; then
1399  enableval="$enable_256colors"
1400
1401else
1402  enable_256colors=yes
1403fi;
1404# Check whether --enable-mailcheck or --disable-mailcheck was given.
1405if test "${enable_mailcheck+set}" = set; then
1406  enableval="$enable_mailcheck"
1407
1408else
1409  enable_mailcheck=yes
1410fi;
1411
1412# User feature options
1413# Check whether --enable-history or --disable-history was given.
1414if test "${enable_history+set}" = set; then
1415  enableval="$enable_history"
1416
1417else
1418  enable_history=yes
1419fi;
1420# Check whether --enable-process or --disable-process was given.
1421if test "${enable_process+set}" = set; then
1422  enableval="$enable_process"
1423
1424else
1425  enable_process=yes
1426fi;
1427# Check whether --enable-float or --disable-float was given.
1428if test "${enable_float+set}" = set; then
1429  enableval="$enable_float"
1430
1431else
1432  enable_float=yes
1433fi;
1434
1435
1436# Check whether --with-incdirs or --without-incdirs was given.
1437if test "${with_incdirs+set}" = set; then
1438  withval="$with_incdirs"
1439
1440fi;
1441
1442# Check whether --with-libdirs or --without-libdirs was given.
1443if test "${with_libdirs+set}" = set; then
1444  withval="$with_libdirs"
1445
1446fi;
1447
1448# Check whether --with-inclibdirs or --without-inclibdirs was given.
1449if test "${with_inclibdirs+set}" = set; then
1450  withval="$with_inclibdirs"
1451
1452fi;
1453
1454# Check whether --with-inclibpfx or --without-inclibpfx was given.
1455if test "${with_inclibpfx+set}" = set; then
1456  withval="$with_inclibpfx"
1457
1458fi;
1459
1460# Check whether --with-incdir or --without-incdir was given.
1461if test "${with_incdir+set}" = set; then
1462  withval="$with_incdir"
1463
1464fi;
1465# Check whether --with-libdir or --without-libdir was given.
1466if test "${with_libdir+set}" = set; then
1467  withval="$with_libdir"
1468
1469fi;
1470# Check whether --with-inclibdir or --without-inclibdir was given.
1471if test "${with_inclibdir+set}" = set; then
1472  withval="$with_inclibdir"
1473
1474fi;
1475
1476# Developer options
1477# --enable-development implies --enable-core --disable-symlink
1478# Check whether --enable-development or --disable-development was given.
1479if test "${enable_development+set}" = set; then
1480  enableval="$enable_development"
1481
1482else
1483  enable_development=default
1484fi;
1485# Check whether --enable-dmalloc or --disable-dmalloc was given.
1486if test "${enable_dmalloc+set}" = set; then
1487  enableval="$enable_dmalloc"
1488
1489else
1490  enable_dmalloc=no
1491fi;
1492
1493{ echo "$as_me:$LINENO: " >&5
1494echo "$as_me: " >&6;}
1495
1496if test "$enable_development" = "default"; then
1497    if test -d CVS; then
1498	enable_development=yes
1499    else
1500	enable_development=no
1501    fi
1502fi
1503
1504if test "$enable_development" = "yes"; then
1505    { echo "$as_me:$LINENO: Development version." >&5
1506echo "$as_me: Development version." >&6;}
1507elif echo $TFVERSION | egrep "alpha" >/dev/null 2>&1; then
1508cat <<END
1509This is an alpha version, and so may not be fully tested on some platforms.
1510With the new features comes the possibility of new bugs.  If you don't want
1511to deal with this, get the latest stable or gamma version.
1512
1513END
1514fi
1515
1516if test "$enable_core" = "default"; then
1517    enable_core=$enable_development
1518fi
1519
1520if test "$enable_version" = "default"; then
1521    enable_version=$enable_development
1522fi
1523
1524if test "$enable_development" = "yes"; then
1525    if test "$enable_symlink" = "default"; then
1526	enable_symlink=no
1527    fi
1528    if test -z "${CC}"; then
1529	for ac_prog in tfcc gcc-anal
1530do
1531  # Extract the first word of "$ac_prog", so it can be a program name with args.
1532set dummy $ac_prog; ac_word=$2
1533echo "$as_me:$LINENO: checking for $ac_word" >&5
1534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1535if test "${ac_cv_prog_CC+set}" = set; then
1536  echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538  if test -n "$CC"; then
1539  ac_cv_prog_CC="$CC" # Let the user override the test.
1540else
1541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542for as_dir in $PATH
1543do
1544  IFS=$as_save_IFS
1545  test -z "$as_dir" && as_dir=.
1546  for ac_exec_ext in '' $ac_executable_extensions; do
1547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1548    ac_cv_prog_CC="$ac_prog"
1549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550    break 2
1551  fi
1552done
1553done
1554
1555fi
1556fi
1557CC=$ac_cv_prog_CC
1558if test -n "$CC"; then
1559  echo "$as_me:$LINENO: result: $CC" >&5
1560echo "${ECHO_T}$CC" >&6
1561else
1562  echo "$as_me:$LINENO: result: no" >&5
1563echo "${ECHO_T}no" >&6
1564fi
1565
1566  test -n "$CC" && break
1567done
1568
1569    fi
1570else
1571    cat >>confdefs.h <<\_ACEOF
1572@%:@define NDEBUG 1
1573_ACEOF
1574
1575fi
1576
1577if test "$enable_core" = "yes"; then
1578    { echo "$as_me:$LINENO: Core dumps enabled." >&5
1579echo "$as_me: Core dumps enabled." >&6;}
1580    CFLAGS="${CFLAGS} -g"
1581    STRIP=":"
1582else
1583    { echo "$as_me:$LINENO: Core dumps disabled." >&5
1584echo "$as_me: Core dumps disabled." >&6;}
1585    cat >>confdefs.h <<\_ACEOF
1586@%:@define DISABLE_CORE 1
1587_ACEOF
1588
1589fi
1590
1591
1592
1593
1594UNAME=`{ uname -s && uname -v && uname -r || uname -a; } 2>/dev/null`
1595UNAME=`echo $UNAME`  # remove newlines
1596
1597#AC_CYGWIN
1598
1599
1600ac_ext=c
1601ac_cpp='$CPP $CPPFLAGS'
1602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605if test -n "$ac_tool_prefix"; then
1606  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1607set dummy ${ac_tool_prefix}gcc; ac_word=$2
1608echo "$as_me:$LINENO: checking for $ac_word" >&5
1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610if test "${ac_cv_prog_CC+set}" = set; then
1611  echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613  if test -n "$CC"; then
1614  ac_cv_prog_CC="$CC" # Let the user override the test.
1615else
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619  IFS=$as_save_IFS
1620  test -z "$as_dir" && as_dir=.
1621  for ac_exec_ext in '' $ac_executable_extensions; do
1622  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625    break 2
1626  fi
1627done
1628done
1629
1630fi
1631fi
1632CC=$ac_cv_prog_CC
1633if test -n "$CC"; then
1634  echo "$as_me:$LINENO: result: $CC" >&5
1635echo "${ECHO_T}$CC" >&6
1636else
1637  echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
1639fi
1640
1641fi
1642if test -z "$ac_cv_prog_CC"; then
1643  ac_ct_CC=$CC
1644  # Extract the first word of "gcc", so it can be a program name with args.
1645set dummy gcc; ac_word=$2
1646echo "$as_me:$LINENO: checking for $ac_word" >&5
1647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649  echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651  if test -n "$ac_ct_CC"; then
1652  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653else
1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657  IFS=$as_save_IFS
1658  test -z "$as_dir" && as_dir=.
1659  for ac_exec_ext in '' $ac_executable_extensions; do
1660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661    ac_cv_prog_ac_ct_CC="gcc"
1662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663    break 2
1664  fi
1665done
1666done
1667
1668fi
1669fi
1670ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671if test -n "$ac_ct_CC"; then
1672  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673echo "${ECHO_T}$ac_ct_CC" >&6
1674else
1675  echo "$as_me:$LINENO: result: no" >&5
1676echo "${ECHO_T}no" >&6
1677fi
1678
1679  CC=$ac_ct_CC
1680else
1681  CC="$ac_cv_prog_CC"
1682fi
1683
1684if test -z "$CC"; then
1685  if test -n "$ac_tool_prefix"; then
1686  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1687set dummy ${ac_tool_prefix}cc; ac_word=$2
1688echo "$as_me:$LINENO: checking for $ac_word" >&5
1689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690if test "${ac_cv_prog_CC+set}" = set; then
1691  echo $ECHO_N "(cached) $ECHO_C" >&6
1692else
1693  if test -n "$CC"; then
1694  ac_cv_prog_CC="$CC" # Let the user override the test.
1695else
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699  IFS=$as_save_IFS
1700  test -z "$as_dir" && as_dir=.
1701  for ac_exec_ext in '' $ac_executable_extensions; do
1702  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703    ac_cv_prog_CC="${ac_tool_prefix}cc"
1704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705    break 2
1706  fi
1707done
1708done
1709
1710fi
1711fi
1712CC=$ac_cv_prog_CC
1713if test -n "$CC"; then
1714  echo "$as_me:$LINENO: result: $CC" >&5
1715echo "${ECHO_T}$CC" >&6
1716else
1717  echo "$as_me:$LINENO: result: no" >&5
1718echo "${ECHO_T}no" >&6
1719fi
1720
1721fi
1722if test -z "$ac_cv_prog_CC"; then
1723  ac_ct_CC=$CC
1724  # Extract the first word of "cc", so it can be a program name with args.
1725set dummy cc; ac_word=$2
1726echo "$as_me:$LINENO: checking for $ac_word" >&5
1727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729  echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
1731  if test -n "$ac_ct_CC"; then
1732  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733else
1734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735for as_dir in $PATH
1736do
1737  IFS=$as_save_IFS
1738  test -z "$as_dir" && as_dir=.
1739  for ac_exec_ext in '' $ac_executable_extensions; do
1740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741    ac_cv_prog_ac_ct_CC="cc"
1742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743    break 2
1744  fi
1745done
1746done
1747
1748fi
1749fi
1750ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751if test -n "$ac_ct_CC"; then
1752  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753echo "${ECHO_T}$ac_ct_CC" >&6
1754else
1755  echo "$as_me:$LINENO: result: no" >&5
1756echo "${ECHO_T}no" >&6
1757fi
1758
1759  CC=$ac_ct_CC
1760else
1761  CC="$ac_cv_prog_CC"
1762fi
1763
1764fi
1765if test -z "$CC"; then
1766  # Extract the first word of "cc", so it can be a program name with args.
1767set dummy cc; ac_word=$2
1768echo "$as_me:$LINENO: checking for $ac_word" >&5
1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770if test "${ac_cv_prog_CC+set}" = set; then
1771  echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773  if test -n "$CC"; then
1774  ac_cv_prog_CC="$CC" # Let the user override the test.
1775else
1776  ac_prog_rejected=no
1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778for as_dir in $PATH
1779do
1780  IFS=$as_save_IFS
1781  test -z "$as_dir" && as_dir=.
1782  for ac_exec_ext in '' $ac_executable_extensions; do
1783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1785       ac_prog_rejected=yes
1786       continue
1787     fi
1788    ac_cv_prog_CC="cc"
1789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790    break 2
1791  fi
1792done
1793done
1794
1795if test $ac_prog_rejected = yes; then
1796  # We found a bogon in the path, so make sure we never use it.
1797  set dummy $ac_cv_prog_CC
1798  shift
1799  if test $@%:@ != 0; then
1800    # We chose a different compiler from the bogus one.
1801    # However, it has the same basename, so the bogon will be chosen
1802    # first if we set CC to just the basename; use the full file name.
1803    shift
1804    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1805  fi
1806fi
1807fi
1808fi
1809CC=$ac_cv_prog_CC
1810if test -n "$CC"; then
1811  echo "$as_me:$LINENO: result: $CC" >&5
1812echo "${ECHO_T}$CC" >&6
1813else
1814  echo "$as_me:$LINENO: result: no" >&5
1815echo "${ECHO_T}no" >&6
1816fi
1817
1818fi
1819if test -z "$CC"; then
1820  if test -n "$ac_tool_prefix"; then
1821  for ac_prog in cl
1822  do
1823    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1825echo "$as_me:$LINENO: checking for $ac_word" >&5
1826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827if test "${ac_cv_prog_CC+set}" = set; then
1828  echo $ECHO_N "(cached) $ECHO_C" >&6
1829else
1830  if test -n "$CC"; then
1831  ac_cv_prog_CC="$CC" # Let the user override the test.
1832else
1833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834for as_dir in $PATH
1835do
1836  IFS=$as_save_IFS
1837  test -z "$as_dir" && as_dir=.
1838  for ac_exec_ext in '' $ac_executable_extensions; do
1839  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842    break 2
1843  fi
1844done
1845done
1846
1847fi
1848fi
1849CC=$ac_cv_prog_CC
1850if test -n "$CC"; then
1851  echo "$as_me:$LINENO: result: $CC" >&5
1852echo "${ECHO_T}$CC" >&6
1853else
1854  echo "$as_me:$LINENO: result: no" >&5
1855echo "${ECHO_T}no" >&6
1856fi
1857
1858    test -n "$CC" && break
1859  done
1860fi
1861if test -z "$CC"; then
1862  ac_ct_CC=$CC
1863  for ac_prog in cl
1864do
1865  # Extract the first word of "$ac_prog", so it can be a program name with args.
1866set dummy $ac_prog; ac_word=$2
1867echo "$as_me:$LINENO: checking for $ac_word" >&5
1868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870  echo $ECHO_N "(cached) $ECHO_C" >&6
1871else
1872  if test -n "$ac_ct_CC"; then
1873  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874else
1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878  IFS=$as_save_IFS
1879  test -z "$as_dir" && as_dir=.
1880  for ac_exec_ext in '' $ac_executable_extensions; do
1881  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882    ac_cv_prog_ac_ct_CC="$ac_prog"
1883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884    break 2
1885  fi
1886done
1887done
1888
1889fi
1890fi
1891ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892if test -n "$ac_ct_CC"; then
1893  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894echo "${ECHO_T}$ac_ct_CC" >&6
1895else
1896  echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6
1898fi
1899
1900  test -n "$ac_ct_CC" && break
1901done
1902
1903  CC=$ac_ct_CC
1904fi
1905
1906fi
1907
1908
1909test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1910See \`config.log' for more details." >&5
1911echo "$as_me: error: no acceptable C compiler found in \$PATH
1912See \`config.log' for more details." >&2;}
1913   { (exit 1); exit 1; }; }
1914
1915# Provide some information about the compiler.
1916echo "$as_me:$LINENO:" \
1917     "checking for C compiler version" >&5
1918ac_compiler=`set X $ac_compile; echo $2`
1919{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1920  (eval $ac_compiler --version </dev/null >&5) 2>&5
1921  ac_status=$?
1922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923  (exit $ac_status); }
1924{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1925  (eval $ac_compiler -v </dev/null >&5) 2>&5
1926  ac_status=$?
1927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928  (exit $ac_status); }
1929{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1930  (eval $ac_compiler -V </dev/null >&5) 2>&5
1931  ac_status=$?
1932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933  (exit $ac_status); }
1934
1935cat >conftest.$ac_ext <<_ACEOF
1936/* confdefs.h.  */
1937_ACEOF
1938cat confdefs.h >>conftest.$ac_ext
1939cat >>conftest.$ac_ext <<_ACEOF
1940/* end confdefs.h.  */
1941
1942int
1943main ()
1944{
1945
1946  ;
1947  return 0;
1948}
1949_ACEOF
1950ac_clean_files_save=$ac_clean_files
1951ac_clean_files="$ac_clean_files a.out a.exe b.out"
1952# Try to create an executable without -o first, disregard a.out.
1953# It will help us diagnose broken compilers, and finding out an intuition
1954# of exeext.
1955echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1956echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1957ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1958if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1959  (eval $ac_link_default) 2>&5
1960  ac_status=$?
1961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962  (exit $ac_status); }; then
1963  # Find the output, starting from the most likely.  This scheme is
1964# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1965# resort.
1966
1967# Be careful to initialize this variable, since it used to be cached.
1968# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1969ac_cv_exeext=
1970# b.out is created by i960 compilers.
1971for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1972do
1973  test -f "$ac_file" || continue
1974  case $ac_file in
1975    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1976	;;
1977    conftest.$ac_ext )
1978	# This is the source file.
1979	;;
1980    [ab].out )
1981	# We found the default executable, but exeext='' is most
1982	# certainly right.
1983	break;;
1984    *.* )
1985	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986	# FIXME: I believe we export ac_cv_exeext for Libtool,
1987	# but it would be cool to find out if it's true.  Does anybody
1988	# maintain Libtool? --akim.
1989	export ac_cv_exeext
1990	break;;
1991    * )
1992	break;;
1993  esac
1994done
1995else
1996  echo "$as_me: failed program was:" >&5
1997sed 's/^/| /' conftest.$ac_ext >&5
1998
1999{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2000See \`config.log' for more details." >&5
2001echo "$as_me: error: C compiler cannot create executables
2002See \`config.log' for more details." >&2;}
2003   { (exit 77); exit 77; }; }
2004fi
2005
2006ac_exeext=$ac_cv_exeext
2007echo "$as_me:$LINENO: result: $ac_file" >&5
2008echo "${ECHO_T}$ac_file" >&6
2009
2010# Check the compiler produces executables we can run.  If not, either
2011# the compiler is broken, or we cross compile.
2012echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2013echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2014# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2015# If not cross compiling, check that we can run a simple program.
2016if test "$cross_compiling" != yes; then
2017  if { ac_try='./$ac_file'
2018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019  (eval $ac_try) 2>&5
2020  ac_status=$?
2021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022  (exit $ac_status); }; }; then
2023    cross_compiling=no
2024  else
2025    if test "$cross_compiling" = maybe; then
2026	cross_compiling=yes
2027    else
2028	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2029If you meant to cross compile, use \`--host'.
2030See \`config.log' for more details." >&5
2031echo "$as_me: error: cannot run C compiled programs.
2032If you meant to cross compile, use \`--host'.
2033See \`config.log' for more details." >&2;}
2034   { (exit 1); exit 1; }; }
2035    fi
2036  fi
2037fi
2038echo "$as_me:$LINENO: result: yes" >&5
2039echo "${ECHO_T}yes" >&6
2040
2041rm -f a.out a.exe conftest$ac_cv_exeext b.out
2042ac_clean_files=$ac_clean_files_save
2043# Check the compiler produces executables we can run.  If not, either
2044# the compiler is broken, or we cross compile.
2045echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2046echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2047echo "$as_me:$LINENO: result: $cross_compiling" >&5
2048echo "${ECHO_T}$cross_compiling" >&6
2049
2050echo "$as_me:$LINENO: checking for suffix of executables" >&5
2051echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2053  (eval $ac_link) 2>&5
2054  ac_status=$?
2055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056  (exit $ac_status); }; then
2057  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2058# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2059# work properly (i.e., refer to `conftest.exe'), while it won't with
2060# `rm'.
2061for ac_file in conftest.exe conftest conftest.*; do
2062  test -f "$ac_file" || continue
2063  case $ac_file in
2064    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2065    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2066	  export ac_cv_exeext
2067	  break;;
2068    * ) break;;
2069  esac
2070done
2071else
2072  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2075See \`config.log' for more details." >&2;}
2076   { (exit 1); exit 1; }; }
2077fi
2078
2079rm -f conftest$ac_cv_exeext
2080echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2081echo "${ECHO_T}$ac_cv_exeext" >&6
2082
2083rm -f conftest.$ac_ext
2084EXEEXT=$ac_cv_exeext
2085ac_exeext=$EXEEXT
2086echo "$as_me:$LINENO: checking for suffix of object files" >&5
2087echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2088if test "${ac_cv_objext+set}" = set; then
2089  echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091  cat >conftest.$ac_ext <<_ACEOF
2092/* confdefs.h.  */
2093_ACEOF
2094cat confdefs.h >>conftest.$ac_ext
2095cat >>conftest.$ac_ext <<_ACEOF
2096/* end confdefs.h.  */
2097
2098int
2099main ()
2100{
2101
2102  ;
2103  return 0;
2104}
2105_ACEOF
2106rm -f conftest.o conftest.obj
2107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2108  (eval $ac_compile) 2>&5
2109  ac_status=$?
2110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111  (exit $ac_status); }; then
2112  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2113  case $ac_file in
2114    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2115    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2116       break;;
2117  esac
2118done
2119else
2120  echo "$as_me: failed program was:" >&5
2121sed 's/^/| /' conftest.$ac_ext >&5
2122
2123{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: cannot compute suffix of object files: cannot compile
2126See \`config.log' for more details." >&2;}
2127   { (exit 1); exit 1; }; }
2128fi
2129
2130rm -f conftest.$ac_cv_objext conftest.$ac_ext
2131fi
2132echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2133echo "${ECHO_T}$ac_cv_objext" >&6
2134OBJEXT=$ac_cv_objext
2135ac_objext=$OBJEXT
2136echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2137echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2138if test "${ac_cv_c_compiler_gnu+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141  cat >conftest.$ac_ext <<_ACEOF
2142/* confdefs.h.  */
2143_ACEOF
2144cat confdefs.h >>conftest.$ac_ext
2145cat >>conftest.$ac_ext <<_ACEOF
2146/* end confdefs.h.  */
2147
2148int
2149main ()
2150{
2151#ifndef __GNUC__
2152       choke me
2153#endif
2154
2155  ;
2156  return 0;
2157}
2158_ACEOF
2159rm -f conftest.$ac_objext
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161  (eval $ac_compile) 2>conftest.er1
2162  ac_status=$?
2163  grep -v '^ *+' conftest.er1 >conftest.err
2164  rm -f conftest.er1
2165  cat conftest.err >&5
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); } &&
2168	 { ac_try='test -z "$ac_c_werror_flag"
2169			 || test ! -s conftest.err'
2170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171  (eval $ac_try) 2>&5
2172  ac_status=$?
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); }; } &&
2175	 { ac_try='test -s conftest.$ac_objext'
2176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177  (eval $ac_try) 2>&5
2178  ac_status=$?
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); }; }; then
2181  ac_compiler_gnu=yes
2182else
2183  echo "$as_me: failed program was:" >&5
2184sed 's/^/| /' conftest.$ac_ext >&5
2185
2186ac_compiler_gnu=no
2187fi
2188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189ac_cv_c_compiler_gnu=$ac_compiler_gnu
2190
2191fi
2192echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2193echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2194GCC=`test $ac_compiler_gnu = yes && echo yes`
2195ac_test_CFLAGS=${CFLAGS+set}
2196ac_save_CFLAGS=$CFLAGS
2197CFLAGS="-g"
2198echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2199echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2200if test "${ac_cv_prog_cc_g+set}" = set; then
2201  echo $ECHO_N "(cached) $ECHO_C" >&6
2202else
2203  cat >conftest.$ac_ext <<_ACEOF
2204/* confdefs.h.  */
2205_ACEOF
2206cat confdefs.h >>conftest.$ac_ext
2207cat >>conftest.$ac_ext <<_ACEOF
2208/* end confdefs.h.  */
2209
2210int
2211main ()
2212{
2213
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218rm -f conftest.$ac_objext
2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220  (eval $ac_compile) 2>conftest.er1
2221  ac_status=$?
2222  grep -v '^ *+' conftest.er1 >conftest.err
2223  rm -f conftest.er1
2224  cat conftest.err >&5
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); } &&
2227	 { ac_try='test -z "$ac_c_werror_flag"
2228			 || test ! -s conftest.err'
2229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230  (eval $ac_try) 2>&5
2231  ac_status=$?
2232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233  (exit $ac_status); }; } &&
2234	 { ac_try='test -s conftest.$ac_objext'
2235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236  (eval $ac_try) 2>&5
2237  ac_status=$?
2238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239  (exit $ac_status); }; }; then
2240  ac_cv_prog_cc_g=yes
2241else
2242  echo "$as_me: failed program was:" >&5
2243sed 's/^/| /' conftest.$ac_ext >&5
2244
2245ac_cv_prog_cc_g=no
2246fi
2247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2248fi
2249echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2250echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2251if test "$ac_test_CFLAGS" = set; then
2252  CFLAGS=$ac_save_CFLAGS
2253elif test $ac_cv_prog_cc_g = yes; then
2254  if test "$GCC" = yes; then
2255    CFLAGS="-g -O2"
2256  else
2257    CFLAGS="-g"
2258  fi
2259else
2260  if test "$GCC" = yes; then
2261    CFLAGS="-O2"
2262  else
2263    CFLAGS=
2264  fi
2265fi
2266echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2267echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2268if test "${ac_cv_prog_cc_stdc+set}" = set; then
2269  echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271  ac_cv_prog_cc_stdc=no
2272ac_save_CC=$CC
2273cat >conftest.$ac_ext <<_ACEOF
2274/* confdefs.h.  */
2275_ACEOF
2276cat confdefs.h >>conftest.$ac_ext
2277cat >>conftest.$ac_ext <<_ACEOF
2278/* end confdefs.h.  */
2279#include <stdarg.h>
2280#include <stdio.h>
2281#include <sys/types.h>
2282#include <sys/stat.h>
2283/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2284struct buf { int x; };
2285FILE * (*rcsopen) (struct buf *, struct stat *, int);
2286static char *e (p, i)
2287     char **p;
2288     int i;
2289{
2290  return p[i];
2291}
2292static char *f (char * (*g) (char **, int), char **p, ...)
2293{
2294  char *s;
2295  va_list v;
2296  va_start (v,p);
2297  s = g (p, va_arg (v,int));
2298  va_end (v);
2299  return s;
2300}
2301
2302/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2303   function prototypes and stuff, but not '\xHH' hex character constants.
2304   These don't provoke an error unfortunately, instead are silently treated
2305   as 'x'.  The following induces an error, until -std1 is added to get
2306   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2307   array size at least.  It's necessary to write '\x00'==0 to get something
2308   that's true only with -std1.  */
2309int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2310
2311int test (int i, double x);
2312struct s1 {int (*f) (int a);};
2313struct s2 {int (*f) (double a);};
2314int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2315int argc;
2316char **argv;
2317int
2318main ()
2319{
2320return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2321  ;
2322  return 0;
2323}
2324_ACEOF
2325# Don't try gcc -ansi; that turns off useful extensions and
2326# breaks some systems' header files.
2327# AIX			-qlanglvl=ansi
2328# Ultrix and OSF/1	-std1
2329# HP-UX 10.20 and later	-Ae
2330# HP-UX older versions	-Aa -D_HPUX_SOURCE
2331# SVR4			-Xc -D__EXTENSIONS__
2332for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2333do
2334  CC="$ac_save_CC $ac_arg"
2335  rm -f conftest.$ac_objext
2336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337  (eval $ac_compile) 2>conftest.er1
2338  ac_status=$?
2339  grep -v '^ *+' conftest.er1 >conftest.err
2340  rm -f conftest.er1
2341  cat conftest.err >&5
2342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343  (exit $ac_status); } &&
2344	 { ac_try='test -z "$ac_c_werror_flag"
2345			 || test ! -s conftest.err'
2346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347  (eval $ac_try) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; } &&
2351	 { ac_try='test -s conftest.$ac_objext'
2352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353  (eval $ac_try) 2>&5
2354  ac_status=$?
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); }; }; then
2357  ac_cv_prog_cc_stdc=$ac_arg
2358break
2359else
2360  echo "$as_me: failed program was:" >&5
2361sed 's/^/| /' conftest.$ac_ext >&5
2362
2363fi
2364rm -f conftest.err conftest.$ac_objext
2365done
2366rm -f conftest.$ac_ext conftest.$ac_objext
2367CC=$ac_save_CC
2368
2369fi
2370
2371case "x$ac_cv_prog_cc_stdc" in
2372  x|xno)
2373    echo "$as_me:$LINENO: result: none needed" >&5
2374echo "${ECHO_T}none needed" >&6 ;;
2375  *)
2376    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2377echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2378    CC="$CC $ac_cv_prog_cc_stdc" ;;
2379esac
2380
2381# Some people use a C++ compiler to compile C.  Since we use `exit',
2382# in C++ we need to declare it.  In case someone uses the same compiler
2383# for both compiling C and C++ we need to have the C++ compiler decide
2384# the declaration of exit, since it's the most demanding environment.
2385cat >conftest.$ac_ext <<_ACEOF
2386@%:@ifndef __cplusplus
2387  choke me
2388@%:@endif
2389_ACEOF
2390rm -f conftest.$ac_objext
2391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392  (eval $ac_compile) 2>conftest.er1
2393  ac_status=$?
2394  grep -v '^ *+' conftest.er1 >conftest.err
2395  rm -f conftest.er1
2396  cat conftest.err >&5
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); } &&
2399	 { ac_try='test -z "$ac_c_werror_flag"
2400			 || test ! -s conftest.err'
2401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402  (eval $ac_try) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; } &&
2406	 { ac_try='test -s conftest.$ac_objext'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412  for ac_declaration in \
2413   '' \
2414   'extern "C" void std::exit (int) throw (); using std::exit;' \
2415   'extern "C" void std::exit (int); using std::exit;' \
2416   'extern "C" void exit (int) throw ();' \
2417   'extern "C" void exit (int);' \
2418   'void exit (int);'
2419do
2420  cat >conftest.$ac_ext <<_ACEOF
2421/* confdefs.h.  */
2422_ACEOF
2423cat confdefs.h >>conftest.$ac_ext
2424cat >>conftest.$ac_ext <<_ACEOF
2425/* end confdefs.h.  */
2426$ac_declaration
2427@%:@include <stdlib.h>
2428int
2429main ()
2430{
2431exit (42);
2432  ;
2433  return 0;
2434}
2435_ACEOF
2436rm -f conftest.$ac_objext
2437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438  (eval $ac_compile) 2>conftest.er1
2439  ac_status=$?
2440  grep -v '^ *+' conftest.er1 >conftest.err
2441  rm -f conftest.er1
2442  cat conftest.err >&5
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); } &&
2445	 { ac_try='test -z "$ac_c_werror_flag"
2446			 || test ! -s conftest.err'
2447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448  (eval $ac_try) 2>&5
2449  ac_status=$?
2450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451  (exit $ac_status); }; } &&
2452	 { ac_try='test -s conftest.$ac_objext'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; }; then
2458  :
2459else
2460  echo "$as_me: failed program was:" >&5
2461sed 's/^/| /' conftest.$ac_ext >&5
2462
2463continue
2464fi
2465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466  cat >conftest.$ac_ext <<_ACEOF
2467/* confdefs.h.  */
2468_ACEOF
2469cat confdefs.h >>conftest.$ac_ext
2470cat >>conftest.$ac_ext <<_ACEOF
2471/* end confdefs.h.  */
2472$ac_declaration
2473int
2474main ()
2475{
2476exit (42);
2477  ;
2478  return 0;
2479}
2480_ACEOF
2481rm -f conftest.$ac_objext
2482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483  (eval $ac_compile) 2>conftest.er1
2484  ac_status=$?
2485  grep -v '^ *+' conftest.er1 >conftest.err
2486  rm -f conftest.er1
2487  cat conftest.err >&5
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); } &&
2490	 { ac_try='test -z "$ac_c_werror_flag"
2491			 || test ! -s conftest.err'
2492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493  (eval $ac_try) 2>&5
2494  ac_status=$?
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); }; } &&
2497	 { ac_try='test -s conftest.$ac_objext'
2498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499  (eval $ac_try) 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }; }; then
2503  break
2504else
2505  echo "$as_me: failed program was:" >&5
2506sed 's/^/| /' conftest.$ac_ext >&5
2507
2508fi
2509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2510done
2511rm -f conftest*
2512if test -n "$ac_declaration"; then
2513  echo '#ifdef __cplusplus' >>confdefs.h
2514  echo $ac_declaration      >>confdefs.h
2515  echo '#endif'             >>confdefs.h
2516fi
2517
2518else
2519  echo "$as_me: failed program was:" >&5
2520sed 's/^/| /' conftest.$ac_ext >&5
2521
2522fi
2523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2524ac_ext=c
2525ac_cpp='$CPP $CPPFLAGS'
2526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
2531ac_ext=c
2532ac_cpp='$CPP $CPPFLAGS'
2533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2537echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2538# On Suns, sometimes $CPP names a directory.
2539if test -n "$CPP" && test -d "$CPP"; then
2540  CPP=
2541fi
2542if test -z "$CPP"; then
2543  if test "${ac_cv_prog_CPP+set}" = set; then
2544  echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546      # Double quotes because CPP needs to be expanded
2547    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2548    do
2549      ac_preproc_ok=false
2550for ac_c_preproc_warn_flag in '' yes
2551do
2552  # Use a header file that comes with gcc, so configuring glibc
2553  # with a fresh cross-compiler works.
2554  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2555  # <limits.h> exists even on freestanding compilers.
2556  # On the NeXT, cc -E runs the code through the compiler's parser,
2557  # not just through cpp. "Syntax error" is here to catch this case.
2558  cat >conftest.$ac_ext <<_ACEOF
2559/* confdefs.h.  */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h.  */
2564@%:@ifdef __STDC__
2565@%:@ include <limits.h>
2566@%:@else
2567@%:@ include <assert.h>
2568@%:@endif
2569		     Syntax error
2570_ACEOF
2571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2572  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2573  ac_status=$?
2574  grep -v '^ *+' conftest.er1 >conftest.err
2575  rm -f conftest.er1
2576  cat conftest.err >&5
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); } >/dev/null; then
2579  if test -s conftest.err; then
2580    ac_cpp_err=$ac_c_preproc_warn_flag
2581    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2582  else
2583    ac_cpp_err=
2584  fi
2585else
2586  ac_cpp_err=yes
2587fi
2588if test -z "$ac_cpp_err"; then
2589  :
2590else
2591  echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594  # Broken: fails on valid input.
2595continue
2596fi
2597rm -f conftest.err conftest.$ac_ext
2598
2599  # OK, works on sane cases.  Now check whether non-existent headers
2600  # can be detected and how.
2601  cat >conftest.$ac_ext <<_ACEOF
2602/* confdefs.h.  */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h.  */
2607@%:@include <ac_nonexistent.h>
2608_ACEOF
2609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2610  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2611  ac_status=$?
2612  grep -v '^ *+' conftest.er1 >conftest.err
2613  rm -f conftest.er1
2614  cat conftest.err >&5
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); } >/dev/null; then
2617  if test -s conftest.err; then
2618    ac_cpp_err=$ac_c_preproc_warn_flag
2619    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2620  else
2621    ac_cpp_err=
2622  fi
2623else
2624  ac_cpp_err=yes
2625fi
2626if test -z "$ac_cpp_err"; then
2627  # Broken: success on invalid input.
2628continue
2629else
2630  echo "$as_me: failed program was:" >&5
2631sed 's/^/| /' conftest.$ac_ext >&5
2632
2633  # Passes both tests.
2634ac_preproc_ok=:
2635break
2636fi
2637rm -f conftest.err conftest.$ac_ext
2638
2639done
2640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2641rm -f conftest.err conftest.$ac_ext
2642if $ac_preproc_ok; then
2643  break
2644fi
2645
2646    done
2647    ac_cv_prog_CPP=$CPP
2648
2649fi
2650  CPP=$ac_cv_prog_CPP
2651else
2652  ac_cv_prog_CPP=$CPP
2653fi
2654echo "$as_me:$LINENO: result: $CPP" >&5
2655echo "${ECHO_T}$CPP" >&6
2656ac_preproc_ok=false
2657for ac_c_preproc_warn_flag in '' yes
2658do
2659  # Use a header file that comes with gcc, so configuring glibc
2660  # with a fresh cross-compiler works.
2661  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2662  # <limits.h> exists even on freestanding compilers.
2663  # On the NeXT, cc -E runs the code through the compiler's parser,
2664  # not just through cpp. "Syntax error" is here to catch this case.
2665  cat >conftest.$ac_ext <<_ACEOF
2666/* confdefs.h.  */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h.  */
2671@%:@ifdef __STDC__
2672@%:@ include <limits.h>
2673@%:@else
2674@%:@ include <assert.h>
2675@%:@endif
2676		     Syntax error
2677_ACEOF
2678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2679  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } >/dev/null; then
2686  if test -s conftest.err; then
2687    ac_cpp_err=$ac_c_preproc_warn_flag
2688    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2689  else
2690    ac_cpp_err=
2691  fi
2692else
2693  ac_cpp_err=yes
2694fi
2695if test -z "$ac_cpp_err"; then
2696  :
2697else
2698  echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701  # Broken: fails on valid input.
2702continue
2703fi
2704rm -f conftest.err conftest.$ac_ext
2705
2706  # OK, works on sane cases.  Now check whether non-existent headers
2707  # can be detected and how.
2708  cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714@%:@include <ac_nonexistent.h>
2715_ACEOF
2716if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2717  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2718  ac_status=$?
2719  grep -v '^ *+' conftest.er1 >conftest.err
2720  rm -f conftest.er1
2721  cat conftest.err >&5
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); } >/dev/null; then
2724  if test -s conftest.err; then
2725    ac_cpp_err=$ac_c_preproc_warn_flag
2726    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2727  else
2728    ac_cpp_err=
2729  fi
2730else
2731  ac_cpp_err=yes
2732fi
2733if test -z "$ac_cpp_err"; then
2734  # Broken: success on invalid input.
2735continue
2736else
2737  echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740  # Passes both tests.
2741ac_preproc_ok=:
2742break
2743fi
2744rm -f conftest.err conftest.$ac_ext
2745
2746done
2747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2748rm -f conftest.err conftest.$ac_ext
2749if $ac_preproc_ok; then
2750  :
2751else
2752  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2753See \`config.log' for more details." >&5
2754echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2755See \`config.log' for more details." >&2;}
2756   { (exit 1); exit 1; }; }
2757fi
2758
2759ac_ext=c
2760ac_cpp='$CPP $CPPFLAGS'
2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764
2765
2766echo "$as_me:$LINENO: checking for egrep" >&5
2767echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2768if test "${ac_cv_prog_egrep+set}" = set; then
2769  echo $ECHO_N "(cached) $ECHO_C" >&6
2770else
2771  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2772    then ac_cv_prog_egrep='grep -E'
2773    else ac_cv_prog_egrep='egrep'
2774    fi
2775fi
2776echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2777echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2778 EGREP=$ac_cv_prog_egrep
2779
2780
2781if test $ac_cv_c_compiler_gnu = yes; then
2782    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2783echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2784if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2785  echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787    ac_pattern="Autoconf.*'x'"
2788  cat >conftest.$ac_ext <<_ACEOF
2789/* confdefs.h.  */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h.  */
2794#include <sgtty.h>
2795Autoconf TIOCGETP
2796_ACEOF
2797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2798  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2799  ac_cv_prog_gcc_traditional=yes
2800else
2801  ac_cv_prog_gcc_traditional=no
2802fi
2803rm -f conftest*
2804
2805
2806  if test $ac_cv_prog_gcc_traditional = no; then
2807    cat >conftest.$ac_ext <<_ACEOF
2808/* confdefs.h.  */
2809_ACEOF
2810cat confdefs.h >>conftest.$ac_ext
2811cat >>conftest.$ac_ext <<_ACEOF
2812/* end confdefs.h.  */
2813#include <termio.h>
2814Autoconf TCGETA
2815_ACEOF
2816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2817  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2818  ac_cv_prog_gcc_traditional=yes
2819fi
2820rm -f conftest*
2821
2822  fi
2823fi
2824echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2825echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2826  if test $ac_cv_prog_gcc_traditional = yes; then
2827    CC="$CC -traditional"
2828  fi
2829fi
2830
2831
2832
2833
2834echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2835echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2836set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2837if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2838  echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840  cat >conftest.make <<\_ACEOF
2841all:
2842	@echo 'ac_maketemp="$(MAKE)"'
2843_ACEOF
2844# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2845eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2846if test -n "$ac_maketemp"; then
2847  eval ac_cv_prog_make_${ac_make}_set=yes
2848else
2849  eval ac_cv_prog_make_${ac_make}_set=no
2850fi
2851rm -f conftest.make
2852fi
2853if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2854  echo "$as_me:$LINENO: result: yes" >&5
2855echo "${ECHO_T}yes" >&6
2856  SET_MAKE=
2857else
2858  echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6
2860  SET_MAKE="MAKE=${MAKE-make}"
2861fi
2862
2863
2864##if test "$enable_core" = "no"; then
2865##    AC_CHECK_PROG(STRIP, strip, strip, :)
2866##fi
2867
2868
2869# Extract the first word of "ranlib", so it can be a program name with args.
2870set dummy ranlib; ac_word=$2
2871echo "$as_me:$LINENO: checking for $ac_word" >&5
2872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873if test "${ac_cv_prog_RANLIB+set}" = set; then
2874  echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876  if test -n "$RANLIB"; then
2877  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884  for ac_exec_ext in '' $ac_executable_extensions; do
2885  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_RANLIB="ranlib"
2887    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891done
2892
2893  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2894fi
2895fi
2896RANLIB=$ac_cv_prog_RANLIB
2897if test -n "$RANLIB"; then
2898  echo "$as_me:$LINENO: result: $RANLIB" >&5
2899echo "${ECHO_T}$RANLIB" >&6
2900else
2901  echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903fi
2904
2905
2906
2907
2908echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2909echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2910if test "${ac_cv_header_stdc+set}" = set; then
2911  echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913  cat >conftest.$ac_ext <<_ACEOF
2914/* confdefs.h.  */
2915_ACEOF
2916cat confdefs.h >>conftest.$ac_ext
2917cat >>conftest.$ac_ext <<_ACEOF
2918/* end confdefs.h.  */
2919#include <stdlib.h>
2920#include <stdarg.h>
2921#include <string.h>
2922#include <float.h>
2923
2924int
2925main ()
2926{
2927
2928  ;
2929  return 0;
2930}
2931_ACEOF
2932rm -f conftest.$ac_objext
2933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934  (eval $ac_compile) 2>conftest.er1
2935  ac_status=$?
2936  grep -v '^ *+' conftest.er1 >conftest.err
2937  rm -f conftest.er1
2938  cat conftest.err >&5
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); } &&
2941	 { ac_try='test -z "$ac_c_werror_flag"
2942			 || test ! -s conftest.err'
2943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944  (eval $ac_try) 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; } &&
2948	 { ac_try='test -s conftest.$ac_objext'
2949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950  (eval $ac_try) 2>&5
2951  ac_status=$?
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); }; }; then
2954  ac_cv_header_stdc=yes
2955else
2956  echo "$as_me: failed program was:" >&5
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
2959ac_cv_header_stdc=no
2960fi
2961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962
2963if test $ac_cv_header_stdc = yes; then
2964  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2965  cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h.  */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h.  */
2971#include <string.h>
2972
2973_ACEOF
2974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2975  $EGREP "memchr" >/dev/null 2>&1; then
2976  :
2977else
2978  ac_cv_header_stdc=no
2979fi
2980rm -f conftest*
2981
2982fi
2983
2984if test $ac_cv_header_stdc = yes; then
2985  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2986  cat >conftest.$ac_ext <<_ACEOF
2987/* confdefs.h.  */
2988_ACEOF
2989cat confdefs.h >>conftest.$ac_ext
2990cat >>conftest.$ac_ext <<_ACEOF
2991/* end confdefs.h.  */
2992#include <stdlib.h>
2993
2994_ACEOF
2995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996  $EGREP "free" >/dev/null 2>&1; then
2997  :
2998else
2999  ac_cv_header_stdc=no
3000fi
3001rm -f conftest*
3002
3003fi
3004
3005if test $ac_cv_header_stdc = yes; then
3006  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3007  if test "$cross_compiling" = yes; then
3008  :
3009else
3010  cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h.  */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h.  */
3016#include <ctype.h>
3017#if ((' ' & 0x0FF) == 0x020)
3018# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3019# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3020#else
3021# define ISLOWER(c) \
3022		   (('a' <= (c) && (c) <= 'i') \
3023		     || ('j' <= (c) && (c) <= 'r') \
3024		     || ('s' <= (c) && (c) <= 'z'))
3025# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3026#endif
3027
3028#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3029int
3030main ()
3031{
3032  int i;
3033  for (i = 0; i < 256; i++)
3034    if (XOR (islower (i), ISLOWER (i))
3035	|| toupper (i) != TOUPPER (i))
3036      exit(2);
3037  exit (0);
3038}
3039_ACEOF
3040rm -f conftest$ac_exeext
3041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3042  (eval $ac_link) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; }; then
3051  :
3052else
3053  echo "$as_me: program exited with status $ac_status" >&5
3054echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057( exit $ac_status )
3058ac_cv_header_stdc=no
3059fi
3060rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3061fi
3062fi
3063fi
3064echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3065echo "${ECHO_T}$ac_cv_header_stdc" >&6
3066if test $ac_cv_header_stdc = yes; then
3067
3068cat >>confdefs.h <<\_ACEOF
3069@%:@define STDC_HEADERS 1
3070_ACEOF
3071
3072fi
3073
3074# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3085		  inttypes.h stdint.h unistd.h
3086do
3087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3088echo "$as_me:$LINENO: checking for $ac_header" >&5
3089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3090if eval "test \"\${$as_ac_Header+set}\" = set"; then
3091  echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
3093  cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h.  */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h.  */
3099$ac_includes_default
3100
3101@%:@include <$ac_header>
3102_ACEOF
3103rm -f conftest.$ac_objext
3104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105  (eval $ac_compile) 2>conftest.er1
3106  ac_status=$?
3107  grep -v '^ *+' conftest.er1 >conftest.err
3108  rm -f conftest.er1
3109  cat conftest.err >&5
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } &&
3112	 { ac_try='test -z "$ac_c_werror_flag"
3113			 || test ! -s conftest.err'
3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115  (eval $ac_try) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; } &&
3119	 { ac_try='test -s conftest.$ac_objext'
3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121  (eval $ac_try) 2>&5
3122  ac_status=$?
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }; }; then
3125  eval "$as_ac_Header=yes"
3126else
3127  echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130eval "$as_ac_Header=no"
3131fi
3132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133fi
3134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3136if test `eval echo '${'$as_ac_Header'}'` = yes; then
3137  cat >>confdefs.h <<_ACEOF
3138@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3139_ACEOF
3140
3141fi
3142
3143done
3144
3145
3146echo "$as_me:$LINENO: checking for short" >&5
3147echo $ECHO_N "checking for short... $ECHO_C" >&6
3148if test "${ac_cv_type_short+set}" = set; then
3149  echo $ECHO_N "(cached) $ECHO_C" >&6
3150else
3151  cat >conftest.$ac_ext <<_ACEOF
3152/* confdefs.h.  */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h.  */
3157$ac_includes_default
3158int
3159main ()
3160{
3161if ((short *) 0)
3162  return 0;
3163if (sizeof (short))
3164  return 0;
3165  ;
3166  return 0;
3167}
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171  (eval $ac_compile) 2>conftest.er1
3172  ac_status=$?
3173  grep -v '^ *+' conftest.er1 >conftest.err
3174  rm -f conftest.er1
3175  cat conftest.err >&5
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); } &&
3178	 { ac_try='test -z "$ac_c_werror_flag"
3179			 || test ! -s conftest.err'
3180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181  (eval $ac_try) 2>&5
3182  ac_status=$?
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); }; } &&
3185	 { ac_try='test -s conftest.$ac_objext'
3186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187  (eval $ac_try) 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; }; then
3191  ac_cv_type_short=yes
3192else
3193  echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196ac_cv_type_short=no
3197fi
3198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3199fi
3200echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3201echo "${ECHO_T}$ac_cv_type_short" >&6
3202
3203echo "$as_me:$LINENO: checking size of short" >&5
3204echo $ECHO_N "checking size of short... $ECHO_C" >&6
3205if test "${ac_cv_sizeof_short+set}" = set; then
3206  echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208  if test "$ac_cv_type_short" = yes; then
3209  # The cast to unsigned long works around a bug in the HP C Compiler
3210  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3211  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3212  # This bug is HP SR number 8606223364.
3213  if test "$cross_compiling" = yes; then
3214  # Depending upon the size, compute the lo and hi bounds.
3215cat >conftest.$ac_ext <<_ACEOF
3216/* confdefs.h.  */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
3220/* end confdefs.h.  */
3221$ac_includes_default
3222int
3223main ()
3224{
3225static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) >= 0)@:>@;
3226test_array @<:@0@:>@ = 0
3227
3228  ;
3229  return 0;
3230}
3231_ACEOF
3232rm -f conftest.$ac_objext
3233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234  (eval $ac_compile) 2>conftest.er1
3235  ac_status=$?
3236  grep -v '^ *+' conftest.er1 >conftest.err
3237  rm -f conftest.er1
3238  cat conftest.err >&5
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); } &&
3241	 { ac_try='test -z "$ac_c_werror_flag"
3242			 || test ! -s conftest.err'
3243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244  (eval $ac_try) 2>&5
3245  ac_status=$?
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); }; } &&
3248	 { ac_try='test -s conftest.$ac_objext'
3249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250  (eval $ac_try) 2>&5
3251  ac_status=$?
3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253  (exit $ac_status); }; }; then
3254  ac_lo=0 ac_mid=0
3255  while :; do
3256    cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h.  */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h.  */
3262$ac_includes_default
3263int
3264main ()
3265{
3266static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)@:>@;
3267test_array @<:@0@:>@ = 0
3268
3269  ;
3270  return 0;
3271}
3272_ACEOF
3273rm -f conftest.$ac_objext
3274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275  (eval $ac_compile) 2>conftest.er1
3276  ac_status=$?
3277  grep -v '^ *+' conftest.er1 >conftest.err
3278  rm -f conftest.er1
3279  cat conftest.err >&5
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); } &&
3282	 { ac_try='test -z "$ac_c_werror_flag"
3283			 || test ! -s conftest.err'
3284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285  (eval $ac_try) 2>&5
3286  ac_status=$?
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }; } &&
3289	 { ac_try='test -s conftest.$ac_objext'
3290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291  (eval $ac_try) 2>&5
3292  ac_status=$?
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); }; }; then
3295  ac_hi=$ac_mid; break
3296else
3297  echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300ac_lo=`expr $ac_mid + 1`
3301		    if test $ac_lo -le $ac_mid; then
3302		      ac_lo= ac_hi=
3303		      break
3304		    fi
3305		    ac_mid=`expr 2 '*' $ac_mid + 1`
3306fi
3307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308  done
3309else
3310  echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h.  */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h.  */
3319$ac_includes_default
3320int
3321main ()
3322{
3323static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) < 0)@:>@;
3324test_array @<:@0@:>@ = 0
3325
3326  ;
3327  return 0;
3328}
3329_ACEOF
3330rm -f conftest.$ac_objext
3331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332  (eval $ac_compile) 2>conftest.er1
3333  ac_status=$?
3334  grep -v '^ *+' conftest.er1 >conftest.err
3335  rm -f conftest.er1
3336  cat conftest.err >&5
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); } &&
3339	 { ac_try='test -z "$ac_c_werror_flag"
3340			 || test ! -s conftest.err'
3341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342  (eval $ac_try) 2>&5
3343  ac_status=$?
3344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); }; } &&
3346	 { ac_try='test -s conftest.$ac_objext'
3347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348  (eval $ac_try) 2>&5
3349  ac_status=$?
3350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351  (exit $ac_status); }; }; then
3352  ac_hi=-1 ac_mid=-1
3353  while :; do
3354    cat >conftest.$ac_ext <<_ACEOF
3355/* confdefs.h.  */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h.  */
3360$ac_includes_default
3361int
3362main ()
3363{
3364static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)@:>@;
3365test_array @<:@0@:>@ = 0
3366
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371rm -f conftest.$ac_objext
3372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373  (eval $ac_compile) 2>conftest.er1
3374  ac_status=$?
3375  grep -v '^ *+' conftest.er1 >conftest.err
3376  rm -f conftest.er1
3377  cat conftest.err >&5
3378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379  (exit $ac_status); } &&
3380	 { ac_try='test -z "$ac_c_werror_flag"
3381			 || test ! -s conftest.err'
3382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383  (eval $ac_try) 2>&5
3384  ac_status=$?
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); }; } &&
3387	 { ac_try='test -s conftest.$ac_objext'
3388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389  (eval $ac_try) 2>&5
3390  ac_status=$?
3391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); }; }; then
3393  ac_lo=$ac_mid; break
3394else
3395  echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3398ac_hi=`expr '(' $ac_mid ')' - 1`
3399		       if test $ac_mid -le $ac_hi; then
3400			 ac_lo= ac_hi=
3401			 break
3402		       fi
3403		       ac_mid=`expr 2 '*' $ac_mid`
3404fi
3405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406  done
3407else
3408  echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
3411ac_lo= ac_hi=
3412fi
3413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414fi
3415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416# Binary search between lo and hi bounds.
3417while test "x$ac_lo" != "x$ac_hi"; do
3418  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3419  cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h.  */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h.  */
3425$ac_includes_default
3426int
3427main ()
3428{
3429static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)@:>@;
3430test_array @<:@0@:>@ = 0
3431
3432  ;
3433  return 0;
3434}
3435_ACEOF
3436rm -f conftest.$ac_objext
3437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438  (eval $ac_compile) 2>conftest.er1
3439  ac_status=$?
3440  grep -v '^ *+' conftest.er1 >conftest.err
3441  rm -f conftest.er1
3442  cat conftest.err >&5
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); } &&
3445	 { ac_try='test -z "$ac_c_werror_flag"
3446			 || test ! -s conftest.err'
3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448  (eval $ac_try) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }; } &&
3452	 { ac_try='test -s conftest.$ac_objext'
3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454  (eval $ac_try) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }; }; then
3458  ac_hi=$ac_mid
3459else
3460  echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463ac_lo=`expr '(' $ac_mid ')' + 1`
3464fi
3465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3466done
3467case $ac_lo in
3468?*) ac_cv_sizeof_short=$ac_lo;;
3469'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3470See \`config.log' for more details." >&5
3471echo "$as_me: error: cannot compute sizeof (short), 77
3472See \`config.log' for more details." >&2;}
3473   { (exit 1); exit 1; }; } ;;
3474esac
3475else
3476  if test "$cross_compiling" = yes; then
3477  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3478See \`config.log' for more details." >&5
3479echo "$as_me: error: cannot run test program while cross compiling
3480See \`config.log' for more details." >&2;}
3481   { (exit 1); exit 1; }; }
3482else
3483  cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h.  */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h.  */
3489$ac_includes_default
3490long longval () { return (long) (sizeof (short)); }
3491unsigned long ulongval () { return (long) (sizeof (short)); }
3492@%:@include <stdio.h>
3493@%:@include <stdlib.h>
3494int
3495main ()
3496{
3497
3498  FILE *f = fopen ("conftest.val", "w");
3499  if (! f)
3500    exit (1);
3501  if (((long) (sizeof (short))) < 0)
3502    {
3503      long i = longval ();
3504      if (i != ((long) (sizeof (short))))
3505	exit (1);
3506      fprintf (f, "%ld\n", i);
3507    }
3508  else
3509    {
3510      unsigned long i = ulongval ();
3511      if (i != ((long) (sizeof (short))))
3512	exit (1);
3513      fprintf (f, "%lu\n", i);
3514    }
3515  exit (ferror (f) || fclose (f) != 0);
3516
3517  ;
3518  return 0;
3519}
3520_ACEOF
3521rm -f conftest$ac_exeext
3522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3523  (eval $ac_link) 2>&5
3524  ac_status=$?
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528  (eval $ac_try) 2>&5
3529  ac_status=$?
3530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531  (exit $ac_status); }; }; then
3532  ac_cv_sizeof_short=`cat conftest.val`
3533else
3534  echo "$as_me: program exited with status $ac_status" >&5
3535echo "$as_me: failed program was:" >&5
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
3538( exit $ac_status )
3539{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3540See \`config.log' for more details." >&5
3541echo "$as_me: error: cannot compute sizeof (short), 77
3542See \`config.log' for more details." >&2;}
3543   { (exit 1); exit 1; }; }
3544fi
3545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3546fi
3547fi
3548rm -f conftest.val
3549else
3550  ac_cv_sizeof_short=0
3551fi
3552fi
3553echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3554echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3555cat >>confdefs.h <<_ACEOF
3556@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
3557_ACEOF
3558
3559
3560echo "$as_me:$LINENO: checking for int" >&5
3561echo $ECHO_N "checking for int... $ECHO_C" >&6
3562if test "${ac_cv_type_int+set}" = set; then
3563  echo $ECHO_N "(cached) $ECHO_C" >&6
3564else
3565  cat >conftest.$ac_ext <<_ACEOF
3566/* confdefs.h.  */
3567_ACEOF
3568cat confdefs.h >>conftest.$ac_ext
3569cat >>conftest.$ac_ext <<_ACEOF
3570/* end confdefs.h.  */
3571$ac_includes_default
3572int
3573main ()
3574{
3575if ((int *) 0)
3576  return 0;
3577if (sizeof (int))
3578  return 0;
3579  ;
3580  return 0;
3581}
3582_ACEOF
3583rm -f conftest.$ac_objext
3584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3585  (eval $ac_compile) 2>conftest.er1
3586  ac_status=$?
3587  grep -v '^ *+' conftest.er1 >conftest.err
3588  rm -f conftest.er1
3589  cat conftest.err >&5
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); } &&
3592	 { ac_try='test -z "$ac_c_werror_flag"
3593			 || test ! -s conftest.err'
3594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595  (eval $ac_try) 2>&5
3596  ac_status=$?
3597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); }; } &&
3599	 { ac_try='test -s conftest.$ac_objext'
3600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601  (eval $ac_try) 2>&5
3602  ac_status=$?
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); }; }; then
3605  ac_cv_type_int=yes
3606else
3607  echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610ac_cv_type_int=no
3611fi
3612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613fi
3614echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3615echo "${ECHO_T}$ac_cv_type_int" >&6
3616
3617echo "$as_me:$LINENO: checking size of int" >&5
3618echo $ECHO_N "checking size of int... $ECHO_C" >&6
3619if test "${ac_cv_sizeof_int+set}" = set; then
3620  echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622  if test "$ac_cv_type_int" = yes; then
3623  # The cast to unsigned long works around a bug in the HP C Compiler
3624  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3625  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3626  # This bug is HP SR number 8606223364.
3627  if test "$cross_compiling" = yes; then
3628  # Depending upon the size, compute the lo and hi bounds.
3629cat >conftest.$ac_ext <<_ACEOF
3630/* confdefs.h.  */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h.  */
3635$ac_includes_default
3636int
3637main ()
3638{
3639static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
3640test_array @<:@0@:>@ = 0
3641
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646rm -f conftest.$ac_objext
3647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648  (eval $ac_compile) 2>conftest.er1
3649  ac_status=$?
3650  grep -v '^ *+' conftest.er1 >conftest.err
3651  rm -f conftest.er1
3652  cat conftest.err >&5
3653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654  (exit $ac_status); } &&
3655	 { ac_try='test -z "$ac_c_werror_flag"
3656			 || test ! -s conftest.err'
3657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658  (eval $ac_try) 2>&5
3659  ac_status=$?
3660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661  (exit $ac_status); }; } &&
3662	 { ac_try='test -s conftest.$ac_objext'
3663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664  (eval $ac_try) 2>&5
3665  ac_status=$?
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); }; }; then
3668  ac_lo=0 ac_mid=0
3669  while :; do
3670    cat >conftest.$ac_ext <<_ACEOF
3671/* confdefs.h.  */
3672_ACEOF
3673cat confdefs.h >>conftest.$ac_ext
3674cat >>conftest.$ac_ext <<_ACEOF
3675/* end confdefs.h.  */
3676$ac_includes_default
3677int
3678main ()
3679{
3680static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
3681test_array @<:@0@:>@ = 0
3682
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext
3688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689  (eval $ac_compile) 2>conftest.er1
3690  ac_status=$?
3691  grep -v '^ *+' conftest.er1 >conftest.err
3692  rm -f conftest.er1
3693  cat conftest.err >&5
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); } &&
3696	 { ac_try='test -z "$ac_c_werror_flag"
3697			 || test ! -s conftest.err'
3698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699  (eval $ac_try) 2>&5
3700  ac_status=$?
3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702  (exit $ac_status); }; } &&
3703	 { ac_try='test -s conftest.$ac_objext'
3704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705  (eval $ac_try) 2>&5
3706  ac_status=$?
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); }; }; then
3709  ac_hi=$ac_mid; break
3710else
3711  echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714ac_lo=`expr $ac_mid + 1`
3715		    if test $ac_lo -le $ac_mid; then
3716		      ac_lo= ac_hi=
3717		      break
3718		    fi
3719		    ac_mid=`expr 2 '*' $ac_mid + 1`
3720fi
3721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3722  done
3723else
3724  echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h.  */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h.  */
3733$ac_includes_default
3734int
3735main ()
3736{
3737static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
3738test_array @<:@0@:>@ = 0
3739
3740  ;
3741  return 0;
3742}
3743_ACEOF
3744rm -f conftest.$ac_objext
3745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746  (eval $ac_compile) 2>conftest.er1
3747  ac_status=$?
3748  grep -v '^ *+' conftest.er1 >conftest.err
3749  rm -f conftest.er1
3750  cat conftest.err >&5
3751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752  (exit $ac_status); } &&
3753	 { ac_try='test -z "$ac_c_werror_flag"
3754			 || test ! -s conftest.err'
3755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756  (eval $ac_try) 2>&5
3757  ac_status=$?
3758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759  (exit $ac_status); }; } &&
3760	 { ac_try='test -s conftest.$ac_objext'
3761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762  (eval $ac_try) 2>&5
3763  ac_status=$?
3764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765  (exit $ac_status); }; }; then
3766  ac_hi=-1 ac_mid=-1
3767  while :; do
3768    cat >conftest.$ac_ext <<_ACEOF
3769/* confdefs.h.  */
3770_ACEOF
3771cat confdefs.h >>conftest.$ac_ext
3772cat >>conftest.$ac_ext <<_ACEOF
3773/* end confdefs.h.  */
3774$ac_includes_default
3775int
3776main ()
3777{
3778static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
3779test_array @<:@0@:>@ = 0
3780
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext
3786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787  (eval $ac_compile) 2>conftest.er1
3788  ac_status=$?
3789  grep -v '^ *+' conftest.er1 >conftest.err
3790  rm -f conftest.er1
3791  cat conftest.err >&5
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); } &&
3794	 { ac_try='test -z "$ac_c_werror_flag"
3795			 || test ! -s conftest.err'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; } &&
3801	 { ac_try='test -s conftest.$ac_objext'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; }; then
3807  ac_lo=$ac_mid; break
3808else
3809  echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812ac_hi=`expr '(' $ac_mid ')' - 1`
3813		       if test $ac_mid -le $ac_hi; then
3814			 ac_lo= ac_hi=
3815			 break
3816		       fi
3817		       ac_mid=`expr 2 '*' $ac_mid`
3818fi
3819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3820  done
3821else
3822  echo "$as_me: failed program was:" >&5
3823sed 's/^/| /' conftest.$ac_ext >&5
3824
3825ac_lo= ac_hi=
3826fi
3827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3828fi
3829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830# Binary search between lo and hi bounds.
3831while test "x$ac_lo" != "x$ac_hi"; do
3832  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3833  cat >conftest.$ac_ext <<_ACEOF
3834/* confdefs.h.  */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h.  */
3839$ac_includes_default
3840int
3841main ()
3842{
3843static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
3844test_array @<:@0@:>@ = 0
3845
3846  ;
3847  return 0;
3848}
3849_ACEOF
3850rm -f conftest.$ac_objext
3851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852  (eval $ac_compile) 2>conftest.er1
3853  ac_status=$?
3854  grep -v '^ *+' conftest.er1 >conftest.err
3855  rm -f conftest.er1
3856  cat conftest.err >&5
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); } &&
3859	 { ac_try='test -z "$ac_c_werror_flag"
3860			 || test ! -s conftest.err'
3861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862  (eval $ac_try) 2>&5
3863  ac_status=$?
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); }; } &&
3866	 { ac_try='test -s conftest.$ac_objext'
3867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868  (eval $ac_try) 2>&5
3869  ac_status=$?
3870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871  (exit $ac_status); }; }; then
3872  ac_hi=$ac_mid
3873else
3874  echo "$as_me: failed program was:" >&5
3875sed 's/^/| /' conftest.$ac_ext >&5
3876
3877ac_lo=`expr '(' $ac_mid ')' + 1`
3878fi
3879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3880done
3881case $ac_lo in
3882?*) ac_cv_sizeof_int=$ac_lo;;
3883'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3884See \`config.log' for more details." >&5
3885echo "$as_me: error: cannot compute sizeof (int), 77
3886See \`config.log' for more details." >&2;}
3887   { (exit 1); exit 1; }; } ;;
3888esac
3889else
3890  if test "$cross_compiling" = yes; then
3891  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3892See \`config.log' for more details." >&5
3893echo "$as_me: error: cannot run test program while cross compiling
3894See \`config.log' for more details." >&2;}
3895   { (exit 1); exit 1; }; }
3896else
3897  cat >conftest.$ac_ext <<_ACEOF
3898/* confdefs.h.  */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h.  */
3903$ac_includes_default
3904long longval () { return (long) (sizeof (int)); }
3905unsigned long ulongval () { return (long) (sizeof (int)); }
3906@%:@include <stdio.h>
3907@%:@include <stdlib.h>
3908int
3909main ()
3910{
3911
3912  FILE *f = fopen ("conftest.val", "w");
3913  if (! f)
3914    exit (1);
3915  if (((long) (sizeof (int))) < 0)
3916    {
3917      long i = longval ();
3918      if (i != ((long) (sizeof (int))))
3919	exit (1);
3920      fprintf (f, "%ld\n", i);
3921    }
3922  else
3923    {
3924      unsigned long i = ulongval ();
3925      if (i != ((long) (sizeof (int))))
3926	exit (1);
3927      fprintf (f, "%lu\n", i);
3928    }
3929  exit (ferror (f) || fclose (f) != 0);
3930
3931  ;
3932  return 0;
3933}
3934_ACEOF
3935rm -f conftest$ac_exeext
3936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3937  (eval $ac_link) 2>&5
3938  ac_status=$?
3939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942  (eval $ac_try) 2>&5
3943  ac_status=$?
3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945  (exit $ac_status); }; }; then
3946  ac_cv_sizeof_int=`cat conftest.val`
3947else
3948  echo "$as_me: program exited with status $ac_status" >&5
3949echo "$as_me: failed program was:" >&5
3950sed 's/^/| /' conftest.$ac_ext >&5
3951
3952( exit $ac_status )
3953{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3954See \`config.log' for more details." >&5
3955echo "$as_me: error: cannot compute sizeof (int), 77
3956See \`config.log' for more details." >&2;}
3957   { (exit 1); exit 1; }; }
3958fi
3959rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3960fi
3961fi
3962rm -f conftest.val
3963else
3964  ac_cv_sizeof_int=0
3965fi
3966fi
3967echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3968echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3969cat >>confdefs.h <<_ACEOF
3970@%:@define SIZEOF_INT $ac_cv_sizeof_int
3971_ACEOF
3972
3973
3974echo "$as_me:$LINENO: checking for long" >&5
3975echo $ECHO_N "checking for long... $ECHO_C" >&6
3976if test "${ac_cv_type_long+set}" = set; then
3977  echo $ECHO_N "(cached) $ECHO_C" >&6
3978else
3979  cat >conftest.$ac_ext <<_ACEOF
3980/* confdefs.h.  */
3981_ACEOF
3982cat confdefs.h >>conftest.$ac_ext
3983cat >>conftest.$ac_ext <<_ACEOF
3984/* end confdefs.h.  */
3985$ac_includes_default
3986int
3987main ()
3988{
3989if ((long *) 0)
3990  return 0;
3991if (sizeof (long))
3992  return 0;
3993  ;
3994  return 0;
3995}
3996_ACEOF
3997rm -f conftest.$ac_objext
3998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3999  (eval $ac_compile) 2>conftest.er1
4000  ac_status=$?
4001  grep -v '^ *+' conftest.er1 >conftest.err
4002  rm -f conftest.er1
4003  cat conftest.err >&5
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); } &&
4006	 { ac_try='test -z "$ac_c_werror_flag"
4007			 || test ! -s conftest.err'
4008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009  (eval $ac_try) 2>&5
4010  ac_status=$?
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); }; } &&
4013	 { ac_try='test -s conftest.$ac_objext'
4014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015  (eval $ac_try) 2>&5
4016  ac_status=$?
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); }; }; then
4019  ac_cv_type_long=yes
4020else
4021  echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024ac_cv_type_long=no
4025fi
4026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4027fi
4028echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4029echo "${ECHO_T}$ac_cv_type_long" >&6
4030
4031echo "$as_me:$LINENO: checking size of long" >&5
4032echo $ECHO_N "checking size of long... $ECHO_C" >&6
4033if test "${ac_cv_sizeof_long+set}" = set; then
4034  echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
4036  if test "$ac_cv_type_long" = yes; then
4037  # The cast to unsigned long works around a bug in the HP C Compiler
4038  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4039  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4040  # This bug is HP SR number 8606223364.
4041  if test "$cross_compiling" = yes; then
4042  # Depending upon the size, compute the lo and hi bounds.
4043cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h.  */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h.  */
4049$ac_includes_default
4050int
4051main ()
4052{
4053static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) >= 0)@:>@;
4054test_array @<:@0@:>@ = 0
4055
4056  ;
4057  return 0;
4058}
4059_ACEOF
4060rm -f conftest.$ac_objext
4061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062  (eval $ac_compile) 2>conftest.er1
4063  ac_status=$?
4064  grep -v '^ *+' conftest.er1 >conftest.err
4065  rm -f conftest.er1
4066  cat conftest.err >&5
4067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068  (exit $ac_status); } &&
4069	 { ac_try='test -z "$ac_c_werror_flag"
4070			 || test ! -s conftest.err'
4071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072  (eval $ac_try) 2>&5
4073  ac_status=$?
4074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075  (exit $ac_status); }; } &&
4076	 { ac_try='test -s conftest.$ac_objext'
4077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078  (eval $ac_try) 2>&5
4079  ac_status=$?
4080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081  (exit $ac_status); }; }; then
4082  ac_lo=0 ac_mid=0
4083  while :; do
4084    cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h.  */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h.  */
4090$ac_includes_default
4091int
4092main ()
4093{
4094static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)@:>@;
4095test_array @<:@0@:>@ = 0
4096
4097  ;
4098  return 0;
4099}
4100_ACEOF
4101rm -f conftest.$ac_objext
4102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103  (eval $ac_compile) 2>conftest.er1
4104  ac_status=$?
4105  grep -v '^ *+' conftest.er1 >conftest.err
4106  rm -f conftest.er1
4107  cat conftest.err >&5
4108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109  (exit $ac_status); } &&
4110	 { ac_try='test -z "$ac_c_werror_flag"
4111			 || test ! -s conftest.err'
4112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113  (eval $ac_try) 2>&5
4114  ac_status=$?
4115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116  (exit $ac_status); }; } &&
4117	 { ac_try='test -s conftest.$ac_objext'
4118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119  (eval $ac_try) 2>&5
4120  ac_status=$?
4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); }; }; then
4123  ac_hi=$ac_mid; break
4124else
4125  echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
4128ac_lo=`expr $ac_mid + 1`
4129		    if test $ac_lo -le $ac_mid; then
4130		      ac_lo= ac_hi=
4131		      break
4132		    fi
4133		    ac_mid=`expr 2 '*' $ac_mid + 1`
4134fi
4135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136  done
4137else
4138  echo "$as_me: failed program was:" >&5
4139sed 's/^/| /' conftest.$ac_ext >&5
4140
4141cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h.  */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h.  */
4147$ac_includes_default
4148int
4149main ()
4150{
4151static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) < 0)@:>@;
4152test_array @<:@0@:>@ = 0
4153
4154  ;
4155  return 0;
4156}
4157_ACEOF
4158rm -f conftest.$ac_objext
4159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160  (eval $ac_compile) 2>conftest.er1
4161  ac_status=$?
4162  grep -v '^ *+' conftest.er1 >conftest.err
4163  rm -f conftest.er1
4164  cat conftest.err >&5
4165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166  (exit $ac_status); } &&
4167	 { ac_try='test -z "$ac_c_werror_flag"
4168			 || test ! -s conftest.err'
4169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170  (eval $ac_try) 2>&5
4171  ac_status=$?
4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173  (exit $ac_status); }; } &&
4174	 { ac_try='test -s conftest.$ac_objext'
4175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176  (eval $ac_try) 2>&5
4177  ac_status=$?
4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179  (exit $ac_status); }; }; then
4180  ac_hi=-1 ac_mid=-1
4181  while :; do
4182    cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h.  */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h.  */
4188$ac_includes_default
4189int
4190main ()
4191{
4192static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)@:>@;
4193test_array @<:@0@:>@ = 0
4194
4195  ;
4196  return 0;
4197}
4198_ACEOF
4199rm -f conftest.$ac_objext
4200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201  (eval $ac_compile) 2>conftest.er1
4202  ac_status=$?
4203  grep -v '^ *+' conftest.er1 >conftest.err
4204  rm -f conftest.er1
4205  cat conftest.err >&5
4206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207  (exit $ac_status); } &&
4208	 { ac_try='test -z "$ac_c_werror_flag"
4209			 || test ! -s conftest.err'
4210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211  (eval $ac_try) 2>&5
4212  ac_status=$?
4213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214  (exit $ac_status); }; } &&
4215	 { ac_try='test -s conftest.$ac_objext'
4216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217  (eval $ac_try) 2>&5
4218  ac_status=$?
4219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220  (exit $ac_status); }; }; then
4221  ac_lo=$ac_mid; break
4222else
4223  echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226ac_hi=`expr '(' $ac_mid ')' - 1`
4227		       if test $ac_mid -le $ac_hi; then
4228			 ac_lo= ac_hi=
4229			 break
4230		       fi
4231		       ac_mid=`expr 2 '*' $ac_mid`
4232fi
4233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4234  done
4235else
4236  echo "$as_me: failed program was:" >&5
4237sed 's/^/| /' conftest.$ac_ext >&5
4238
4239ac_lo= ac_hi=
4240fi
4241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4242fi
4243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244# Binary search between lo and hi bounds.
4245while test "x$ac_lo" != "x$ac_hi"; do
4246  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4247  cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h.  */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h.  */
4253$ac_includes_default
4254int
4255main ()
4256{
4257static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)@:>@;
4258test_array @<:@0@:>@ = 0
4259
4260  ;
4261  return 0;
4262}
4263_ACEOF
4264rm -f conftest.$ac_objext
4265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4266  (eval $ac_compile) 2>conftest.er1
4267  ac_status=$?
4268  grep -v '^ *+' conftest.er1 >conftest.err
4269  rm -f conftest.er1
4270  cat conftest.err >&5
4271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); } &&
4273	 { ac_try='test -z "$ac_c_werror_flag"
4274			 || test ! -s conftest.err'
4275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276  (eval $ac_try) 2>&5
4277  ac_status=$?
4278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279  (exit $ac_status); }; } &&
4280	 { ac_try='test -s conftest.$ac_objext'
4281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282  (eval $ac_try) 2>&5
4283  ac_status=$?
4284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285  (exit $ac_status); }; }; then
4286  ac_hi=$ac_mid
4287else
4288  echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291ac_lo=`expr '(' $ac_mid ')' + 1`
4292fi
4293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4294done
4295case $ac_lo in
4296?*) ac_cv_sizeof_long=$ac_lo;;
4297'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4298See \`config.log' for more details." >&5
4299echo "$as_me: error: cannot compute sizeof (long), 77
4300See \`config.log' for more details." >&2;}
4301   { (exit 1); exit 1; }; } ;;
4302esac
4303else
4304  if test "$cross_compiling" = yes; then
4305  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4306See \`config.log' for more details." >&5
4307echo "$as_me: error: cannot run test program while cross compiling
4308See \`config.log' for more details." >&2;}
4309   { (exit 1); exit 1; }; }
4310else
4311  cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h.  */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h.  */
4317$ac_includes_default
4318long longval () { return (long) (sizeof (long)); }
4319unsigned long ulongval () { return (long) (sizeof (long)); }
4320@%:@include <stdio.h>
4321@%:@include <stdlib.h>
4322int
4323main ()
4324{
4325
4326  FILE *f = fopen ("conftest.val", "w");
4327  if (! f)
4328    exit (1);
4329  if (((long) (sizeof (long))) < 0)
4330    {
4331      long i = longval ();
4332      if (i != ((long) (sizeof (long))))
4333	exit (1);
4334      fprintf (f, "%ld\n", i);
4335    }
4336  else
4337    {
4338      unsigned long i = ulongval ();
4339      if (i != ((long) (sizeof (long))))
4340	exit (1);
4341      fprintf (f, "%lu\n", i);
4342    }
4343  exit (ferror (f) || fclose (f) != 0);
4344
4345  ;
4346  return 0;
4347}
4348_ACEOF
4349rm -f conftest$ac_exeext
4350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4351  (eval $ac_link) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356  (eval $ac_try) 2>&5
4357  ac_status=$?
4358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359  (exit $ac_status); }; }; then
4360  ac_cv_sizeof_long=`cat conftest.val`
4361else
4362  echo "$as_me: program exited with status $ac_status" >&5
4363echo "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366( exit $ac_status )
4367{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4368See \`config.log' for more details." >&5
4369echo "$as_me: error: cannot compute sizeof (long), 77
4370See \`config.log' for more details." >&2;}
4371   { (exit 1); exit 1; }; }
4372fi
4373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4374fi
4375fi
4376rm -f conftest.val
4377else
4378  ac_cv_sizeof_long=0
4379fi
4380fi
4381echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4382echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4383cat >>confdefs.h <<_ACEOF
4384@%:@define SIZEOF_LONG $ac_cv_sizeof_long
4385_ACEOF
4386
4387
4388
4389if test "$GCC" = "yes"; then
4390    # gcc may generate a warning for "inline", so use "__inline__" instead.
4391    echo "$as_me:$LINENO: checking for inline" >&5
4392echo $ECHO_N "checking for inline... $ECHO_C" >&6
4393    echo "$as_me:$LINENO: result: yes" >&5
4394echo "${ECHO_T}yes" >&6
4395    cat >>confdefs.h <<\_ACEOF
4396@%:@define inline __inline__
4397_ACEOF
4398
4399else
4400    echo "$as_me:$LINENO: checking for inline" >&5
4401echo $ECHO_N "checking for inline... $ECHO_C" >&6
4402if test "${ac_cv_c_inline+set}" = set; then
4403  echo $ECHO_N "(cached) $ECHO_C" >&6
4404else
4405  ac_cv_c_inline=no
4406for ac_kw in inline __inline__ __inline; do
4407  cat >conftest.$ac_ext <<_ACEOF
4408/* confdefs.h.  */
4409_ACEOF
4410cat confdefs.h >>conftest.$ac_ext
4411cat >>conftest.$ac_ext <<_ACEOF
4412/* end confdefs.h.  */
4413#ifndef __cplusplus
4414typedef int foo_t;
4415static $ac_kw foo_t static_foo () {return 0; }
4416$ac_kw foo_t foo () {return 0; }
4417#endif
4418
4419_ACEOF
4420rm -f conftest.$ac_objext
4421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422  (eval $ac_compile) 2>conftest.er1
4423  ac_status=$?
4424  grep -v '^ *+' conftest.er1 >conftest.err
4425  rm -f conftest.er1
4426  cat conftest.err >&5
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); } &&
4429	 { ac_try='test -z "$ac_c_werror_flag"
4430			 || test ! -s conftest.err'
4431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432  (eval $ac_try) 2>&5
4433  ac_status=$?
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); }; } &&
4436	 { ac_try='test -s conftest.$ac_objext'
4437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438  (eval $ac_try) 2>&5
4439  ac_status=$?
4440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441  (exit $ac_status); }; }; then
4442  ac_cv_c_inline=$ac_kw; break
4443else
4444  echo "$as_me: failed program was:" >&5
4445sed 's/^/| /' conftest.$ac_ext >&5
4446
4447fi
4448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449done
4450
4451fi
4452echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4453echo "${ECHO_T}$ac_cv_c_inline" >&6
4454
4455
4456case $ac_cv_c_inline in
4457  inline | yes) ;;
4458  *)
4459    case $ac_cv_c_inline in
4460      no) ac_val=;;
4461      *) ac_val=$ac_cv_c_inline;;
4462    esac
4463    cat >>confdefs.h <<_ACEOF
4464#ifndef __cplusplus
4465#define inline $ac_val
4466#endif
4467_ACEOF
4468    ;;
4469esac
4470
4471fi
4472
4473
4474
4475
4476
4477
4478
4479
4480    if test "${with_incdirs}" != "no" && test "${with_incdirs}" != ""; then
4481        for dir in ${with_incdirs}; do
4482            CPPFLAGS="${CPPFLAGS} -I${dir}"
4483        done
4484    fi
4485
4486
4487    if test "${with_incdir}" != "no" && test "${with_incdir}" != ""; then
4488        for dir in ${with_incdir}; do
4489            CPPFLAGS="${CPPFLAGS} -I${dir}"
4490        done
4491    fi
4492
4493
4494    if test "${with_inclibdirs}" != "no" && test "${with_inclibdirs}" != ""; then
4495        for dir in ${with_inclibdirs}; do
4496            CPPFLAGS="${CPPFLAGS} -I${dir}"
4497        done
4498    fi
4499
4500
4501    if test "${with_inclibdir}" != "no" && test "${with_inclibdir}" != ""; then
4502        for dir in ${with_inclibdir}; do
4503            CPPFLAGS="${CPPFLAGS} -I${dir}"
4504        done
4505    fi
4506
4507
4508    if test "${with_inclibpfx}" != "no" && test "${with_inclibpfx}" != ""; then
4509        for dir in ${with_inclibpfx}; do
4510            CPPFLAGS="${CPPFLAGS} -I${dir}/include"
4511        done
4512    fi
4513
4514
4515LIBDIRS=""
4516
4517    if test "${with_libdirs}" != "no" && test "${with_libdirs}" != ""; then
4518        for dir in ${with_libdirs}; do
4519            LIBDIRS="${LIBDIRS} -L${dir}"
4520        done
4521    fi
4522
4523
4524    if test "${with_libdir}" != "no" && test "${with_libdir}" != ""; then
4525        for dir in ${with_libdir}; do
4526            LIBDIRS="${LIBDIRS} -L${dir}"
4527        done
4528    fi
4529
4530
4531    if test "${with_inclibdirs}" != "no" && test "${with_inclibdirs}" != ""; then
4532        for dir in ${with_inclibdirs}; do
4533            LIBDIRS="${LIBDIRS} -L${dir}"
4534        done
4535    fi
4536
4537
4538    if test "${with_inclibdir}" != "no" && test "${with_inclibdir}" != ""; then
4539        for dir in ${with_inclibdir}; do
4540            LIBDIRS="${LIBDIRS} -L${dir}"
4541        done
4542    fi
4543
4544
4545    if test "${with_inclibpfx}" != "no" && test "${with_inclibpfx}" != ""; then
4546        for dir in ${with_inclibpfx}; do
4547            LIBDIRS="${LIBDIRS} -L${dir}/lib"
4548        done
4549    fi
4550
4551
4552LDFLAGS="$LDFLAGS $LIBDIRS"
4553
4554
4555echo "$as_me:$LINENO: checking for library containing select" >&5
4556echo $ECHO_N "checking for library containing select... $ECHO_C" >&6
4557if test "${ac_cv_search_select+set}" = set; then
4558  echo $ECHO_N "(cached) $ECHO_C" >&6
4559else
4560  ac_func_search_save_LIBS=$LIBS
4561ac_cv_search_select=no
4562cat >conftest.$ac_ext <<_ACEOF
4563/* confdefs.h.  */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
4567/* end confdefs.h.  */
4568
4569/* Override any gcc2 internal prototype to avoid an error.  */
4570#ifdef __cplusplus
4571extern "C"
4572#endif
4573/* We use char because int might match the return type of a gcc2
4574   builtin and then its argument prototype would still apply.  */
4575char select ();
4576int
4577main ()
4578{
4579select ();
4580  ;
4581  return 0;
4582}
4583_ACEOF
4584rm -f conftest.$ac_objext conftest$ac_exeext
4585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4586  (eval $ac_link) 2>conftest.er1
4587  ac_status=$?
4588  grep -v '^ *+' conftest.er1 >conftest.err
4589  rm -f conftest.er1
4590  cat conftest.err >&5
4591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592  (exit $ac_status); } &&
4593	 { ac_try='test -z "$ac_c_werror_flag"
4594			 || test ! -s conftest.err'
4595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596  (eval $ac_try) 2>&5
4597  ac_status=$?
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); }; } &&
4600	 { ac_try='test -s conftest$ac_exeext'
4601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602  (eval $ac_try) 2>&5
4603  ac_status=$?
4604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); }; }; then
4606  ac_cv_search_select="none required"
4607else
4608  echo "$as_me: failed program was:" >&5
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
4611fi
4612rm -f conftest.err conftest.$ac_objext \
4613      conftest$ac_exeext conftest.$ac_ext
4614if test "$ac_cv_search_select" = no; then
4615  for ac_lib in bsd; do
4616    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4617    cat >conftest.$ac_ext <<_ACEOF
4618/* confdefs.h.  */
4619_ACEOF
4620cat confdefs.h >>conftest.$ac_ext
4621cat >>conftest.$ac_ext <<_ACEOF
4622/* end confdefs.h.  */
4623
4624/* Override any gcc2 internal prototype to avoid an error.  */
4625#ifdef __cplusplus
4626extern "C"
4627#endif
4628/* We use char because int might match the return type of a gcc2
4629   builtin and then its argument prototype would still apply.  */
4630char select ();
4631int
4632main ()
4633{
4634select ();
4635  ;
4636  return 0;
4637}
4638_ACEOF
4639rm -f conftest.$ac_objext conftest$ac_exeext
4640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4641  (eval $ac_link) 2>conftest.er1
4642  ac_status=$?
4643  grep -v '^ *+' conftest.er1 >conftest.err
4644  rm -f conftest.er1
4645  cat conftest.err >&5
4646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647  (exit $ac_status); } &&
4648	 { ac_try='test -z "$ac_c_werror_flag"
4649			 || test ! -s conftest.err'
4650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651  (eval $ac_try) 2>&5
4652  ac_status=$?
4653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654  (exit $ac_status); }; } &&
4655	 { ac_try='test -s conftest$ac_exeext'
4656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657  (eval $ac_try) 2>&5
4658  ac_status=$?
4659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660  (exit $ac_status); }; }; then
4661  ac_cv_search_select="-l$ac_lib"
4662break
4663else
4664  echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667fi
4668rm -f conftest.err conftest.$ac_objext \
4669      conftest$ac_exeext conftest.$ac_ext
4670  done
4671fi
4672LIBS=$ac_func_search_save_LIBS
4673fi
4674echo "$as_me:$LINENO: result: $ac_cv_search_select" >&5
4675echo "${ECHO_T}$ac_cv_search_select" >&6
4676if test "$ac_cv_search_select" != no; then
4677  test "$ac_cv_search_select" = "none required" || LIBS="$ac_cv_search_select $LIBS"
4678
4679else
4680  { { echo "$as_me:$LINENO: error: TF can not work without select()." >&5
4681echo "$as_me: error: TF can not work without select()." >&2;}
4682   { (exit 1); exit 1; }; }
4683fi
4684
4685
4686echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4687echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
4688if test "${ac_cv_search_gethostbyname+set}" = set; then
4689  echo $ECHO_N "(cached) $ECHO_C" >&6
4690else
4691  ac_func_search_save_LIBS=$LIBS
4692ac_cv_search_gethostbyname=no
4693cat >conftest.$ac_ext <<_ACEOF
4694/* confdefs.h.  */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h.  */
4699
4700/* Override any gcc2 internal prototype to avoid an error.  */
4701#ifdef __cplusplus
4702extern "C"
4703#endif
4704/* We use char because int might match the return type of a gcc2
4705   builtin and then its argument prototype would still apply.  */
4706char gethostbyname ();
4707int
4708main ()
4709{
4710gethostbyname ();
4711  ;
4712  return 0;
4713}
4714_ACEOF
4715rm -f conftest.$ac_objext conftest$ac_exeext
4716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717  (eval $ac_link) 2>conftest.er1
4718  ac_status=$?
4719  grep -v '^ *+' conftest.er1 >conftest.err
4720  rm -f conftest.er1
4721  cat conftest.err >&5
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); } &&
4724	 { ac_try='test -z "$ac_c_werror_flag"
4725			 || test ! -s conftest.err'
4726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727  (eval $ac_try) 2>&5
4728  ac_status=$?
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); }; } &&
4731	 { ac_try='test -s conftest$ac_exeext'
4732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733  (eval $ac_try) 2>&5
4734  ac_status=$?
4735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736  (exit $ac_status); }; }; then
4737  ac_cv_search_gethostbyname="none required"
4738else
4739  echo "$as_me: failed program was:" >&5
4740sed 's/^/| /' conftest.$ac_ext >&5
4741
4742fi
4743rm -f conftest.err conftest.$ac_objext \
4744      conftest$ac_exeext conftest.$ac_ext
4745if test "$ac_cv_search_gethostbyname" = no; then
4746  for ac_lib in bsd nsl_s nsl resolv socket; do
4747    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4748    cat >conftest.$ac_ext <<_ACEOF
4749/* confdefs.h.  */
4750_ACEOF
4751cat confdefs.h >>conftest.$ac_ext
4752cat >>conftest.$ac_ext <<_ACEOF
4753/* end confdefs.h.  */
4754
4755/* Override any gcc2 internal prototype to avoid an error.  */
4756#ifdef __cplusplus
4757extern "C"
4758#endif
4759/* We use char because int might match the return type of a gcc2
4760   builtin and then its argument prototype would still apply.  */
4761char gethostbyname ();
4762int
4763main ()
4764{
4765gethostbyname ();
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770rm -f conftest.$ac_objext conftest$ac_exeext
4771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4772  (eval $ac_link) 2>conftest.er1
4773  ac_status=$?
4774  grep -v '^ *+' conftest.er1 >conftest.err
4775  rm -f conftest.er1
4776  cat conftest.err >&5
4777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778  (exit $ac_status); } &&
4779	 { ac_try='test -z "$ac_c_werror_flag"
4780			 || test ! -s conftest.err'
4781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782  (eval $ac_try) 2>&5
4783  ac_status=$?
4784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785  (exit $ac_status); }; } &&
4786	 { ac_try='test -s conftest$ac_exeext'
4787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788  (eval $ac_try) 2>&5
4789  ac_status=$?
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); }; }; then
4792  ac_cv_search_gethostbyname="-l$ac_lib"
4793break
4794else
4795  echo "$as_me: failed program was:" >&5
4796sed 's/^/| /' conftest.$ac_ext >&5
4797
4798fi
4799rm -f conftest.err conftest.$ac_objext \
4800      conftest$ac_exeext conftest.$ac_ext
4801  done
4802fi
4803LIBS=$ac_func_search_save_LIBS
4804fi
4805echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4806echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
4807if test "$ac_cv_search_gethostbyname" != no; then
4808  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
4809
4810else
4811  { echo "$as_me:$LINENO: WARNING: Host name resolution will not be available." >&5
4812echo "$as_me: WARNING: Host name resolution will not be available." >&2;}
4813fi
4814
4815
4816
4817echo "$as_me:$LINENO: checking for main in -linet" >&5
4818echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
4819if test "${ac_cv_lib_inet_main+set}" = set; then
4820  echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822  ac_check_lib_save_LIBS=$LIBS
4823LIBS="-linet  $LIBS"
4824cat >conftest.$ac_ext <<_ACEOF
4825/* confdefs.h.  */
4826_ACEOF
4827cat confdefs.h >>conftest.$ac_ext
4828cat >>conftest.$ac_ext <<_ACEOF
4829/* end confdefs.h.  */
4830
4831
4832int
4833main ()
4834{
4835main ();
4836  ;
4837  return 0;
4838}
4839_ACEOF
4840rm -f conftest.$ac_objext conftest$ac_exeext
4841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4842  (eval $ac_link) 2>conftest.er1
4843  ac_status=$?
4844  grep -v '^ *+' conftest.er1 >conftest.err
4845  rm -f conftest.er1
4846  cat conftest.err >&5
4847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848  (exit $ac_status); } &&
4849	 { ac_try='test -z "$ac_c_werror_flag"
4850			 || test ! -s conftest.err'
4851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852  (eval $ac_try) 2>&5
4853  ac_status=$?
4854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855  (exit $ac_status); }; } &&
4856	 { ac_try='test -s conftest$ac_exeext'
4857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858  (eval $ac_try) 2>&5
4859  ac_status=$?
4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861  (exit $ac_status); }; }; then
4862  ac_cv_lib_inet_main=yes
4863else
4864  echo "$as_me: failed program was:" >&5
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867ac_cv_lib_inet_main=no
4868fi
4869rm -f conftest.err conftest.$ac_objext \
4870      conftest$ac_exeext conftest.$ac_ext
4871LIBS=$ac_check_lib_save_LIBS
4872fi
4873echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
4874echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
4875if test $ac_cv_lib_inet_main = yes; then
4876  cat >>confdefs.h <<_ACEOF
4877@%:@define HAVE_LIBINET 1
4878_ACEOF
4879
4880  LIBS="-linet $LIBS"
4881
4882fi
4883
4884
4885
4886echo "$as_me:$LINENO: checking for main in -lnet" >&5
4887echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
4888if test "${ac_cv_lib_net_main+set}" = set; then
4889  echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891  ac_check_lib_save_LIBS=$LIBS
4892LIBS="-lnet  $LIBS"
4893cat >conftest.$ac_ext <<_ACEOF
4894/* confdefs.h.  */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h.  */
4899
4900
4901int
4902main ()
4903{
4904main ();
4905  ;
4906  return 0;
4907}
4908_ACEOF
4909rm -f conftest.$ac_objext conftest$ac_exeext
4910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4911  (eval $ac_link) 2>conftest.er1
4912  ac_status=$?
4913  grep -v '^ *+' conftest.er1 >conftest.err
4914  rm -f conftest.er1
4915  cat conftest.err >&5
4916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917  (exit $ac_status); } &&
4918	 { ac_try='test -z "$ac_c_werror_flag"
4919			 || test ! -s conftest.err'
4920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921  (eval $ac_try) 2>&5
4922  ac_status=$?
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); }; } &&
4925	 { ac_try='test -s conftest$ac_exeext'
4926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927  (eval $ac_try) 2>&5
4928  ac_status=$?
4929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930  (exit $ac_status); }; }; then
4931  ac_cv_lib_net_main=yes
4932else
4933  echo "$as_me: failed program was:" >&5
4934sed 's/^/| /' conftest.$ac_ext >&5
4935
4936ac_cv_lib_net_main=no
4937fi
4938rm -f conftest.err conftest.$ac_objext \
4939      conftest$ac_exeext conftest.$ac_ext
4940LIBS=$ac_check_lib_save_LIBS
4941fi
4942echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
4943echo "${ECHO_T}$ac_cv_lib_net_main" >&6
4944if test $ac_cv_lib_net_main = yes; then
4945  cat >>confdefs.h <<_ACEOF
4946@%:@define HAVE_LIBNET 1
4947_ACEOF
4948
4949  LIBS="-lnet $LIBS"
4950
4951fi
4952
4953
4954echo "$as_me:$LINENO: checking for library containing connect" >&5
4955echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
4956if test "${ac_cv_search_connect+set}" = set; then
4957  echo $ECHO_N "(cached) $ECHO_C" >&6
4958else
4959  ac_func_search_save_LIBS=$LIBS
4960ac_cv_search_connect=no
4961cat >conftest.$ac_ext <<_ACEOF
4962/* confdefs.h.  */
4963_ACEOF
4964cat confdefs.h >>conftest.$ac_ext
4965cat >>conftest.$ac_ext <<_ACEOF
4966/* end confdefs.h.  */
4967
4968/* Override any gcc2 internal prototype to avoid an error.  */
4969#ifdef __cplusplus
4970extern "C"
4971#endif
4972/* We use char because int might match the return type of a gcc2
4973   builtin and then its argument prototype would still apply.  */
4974char connect ();
4975int
4976main ()
4977{
4978connect ();
4979  ;
4980  return 0;
4981}
4982_ACEOF
4983rm -f conftest.$ac_objext conftest$ac_exeext
4984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4985  (eval $ac_link) 2>conftest.er1
4986  ac_status=$?
4987  grep -v '^ *+' conftest.er1 >conftest.err
4988  rm -f conftest.er1
4989  cat conftest.err >&5
4990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991  (exit $ac_status); } &&
4992	 { ac_try='test -z "$ac_c_werror_flag"
4993			 || test ! -s conftest.err'
4994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995  (eval $ac_try) 2>&5
4996  ac_status=$?
4997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998  (exit $ac_status); }; } &&
4999	 { ac_try='test -s conftest$ac_exeext'
5000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001  (eval $ac_try) 2>&5
5002  ac_status=$?
5003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004  (exit $ac_status); }; }; then
5005  ac_cv_search_connect="none required"
5006else
5007  echo "$as_me: failed program was:" >&5
5008sed 's/^/| /' conftest.$ac_ext >&5
5009
5010fi
5011rm -f conftest.err conftest.$ac_objext \
5012      conftest$ac_exeext conftest.$ac_ext
5013if test "$ac_cv_search_connect" = no; then
5014  for ac_lib in socket; do
5015    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5016    cat >conftest.$ac_ext <<_ACEOF
5017/* confdefs.h.  */
5018_ACEOF
5019cat confdefs.h >>conftest.$ac_ext
5020cat >>conftest.$ac_ext <<_ACEOF
5021/* end confdefs.h.  */
5022
5023/* Override any gcc2 internal prototype to avoid an error.  */
5024#ifdef __cplusplus
5025extern "C"
5026#endif
5027/* We use char because int might match the return type of a gcc2
5028   builtin and then its argument prototype would still apply.  */
5029char connect ();
5030int
5031main ()
5032{
5033connect ();
5034  ;
5035  return 0;
5036}
5037_ACEOF
5038rm -f conftest.$ac_objext conftest$ac_exeext
5039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5040  (eval $ac_link) 2>conftest.er1
5041  ac_status=$?
5042  grep -v '^ *+' conftest.er1 >conftest.err
5043  rm -f conftest.er1
5044  cat conftest.err >&5
5045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046  (exit $ac_status); } &&
5047	 { ac_try='test -z "$ac_c_werror_flag"
5048			 || test ! -s conftest.err'
5049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050  (eval $ac_try) 2>&5
5051  ac_status=$?
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); }; } &&
5054	 { ac_try='test -s conftest$ac_exeext'
5055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056  (eval $ac_try) 2>&5
5057  ac_status=$?
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); }; }; then
5060  ac_cv_search_connect="-l$ac_lib"
5061break
5062else
5063  echo "$as_me: failed program was:" >&5
5064sed 's/^/| /' conftest.$ac_ext >&5
5065
5066fi
5067rm -f conftest.err conftest.$ac_objext \
5068      conftest$ac_exeext conftest.$ac_ext
5069  done
5070fi
5071LIBS=$ac_func_search_save_LIBS
5072fi
5073echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
5074echo "${ECHO_T}$ac_cv_search_connect" >&6
5075if test "$ac_cv_search_connect" != no; then
5076  test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
5077
5078fi
5079
5080
5081
5082
5083
5084echo "$as_me:$LINENO: checking for library containing setlocale" >&5
5085echo $ECHO_N "checking for library containing setlocale... $ECHO_C" >&6
5086if test "${ac_cv_search_setlocale+set}" = set; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  ac_func_search_save_LIBS=$LIBS
5090ac_cv_search_setlocale=no
5091cat >conftest.$ac_ext <<_ACEOF
5092/* confdefs.h.  */
5093_ACEOF
5094cat confdefs.h >>conftest.$ac_ext
5095cat >>conftest.$ac_ext <<_ACEOF
5096/* end confdefs.h.  */
5097
5098/* Override any gcc2 internal prototype to avoid an error.  */
5099#ifdef __cplusplus
5100extern "C"
5101#endif
5102/* We use char because int might match the return type of a gcc2
5103   builtin and then its argument prototype would still apply.  */
5104char setlocale ();
5105int
5106main ()
5107{
5108setlocale ();
5109  ;
5110  return 0;
5111}
5112_ACEOF
5113rm -f conftest.$ac_objext conftest$ac_exeext
5114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5115  (eval $ac_link) 2>conftest.er1
5116  ac_status=$?
5117  grep -v '^ *+' conftest.er1 >conftest.err
5118  rm -f conftest.er1
5119  cat conftest.err >&5
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); } &&
5122	 { ac_try='test -z "$ac_c_werror_flag"
5123			 || test ! -s conftest.err'
5124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125  (eval $ac_try) 2>&5
5126  ac_status=$?
5127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128  (exit $ac_status); }; } &&
5129	 { ac_try='test -s conftest$ac_exeext'
5130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131  (eval $ac_try) 2>&5
5132  ac_status=$?
5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134  (exit $ac_status); }; }; then
5135  ac_cv_search_setlocale="none required"
5136else
5137  echo "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140fi
5141rm -f conftest.err conftest.$ac_objext \
5142      conftest$ac_exeext conftest.$ac_ext
5143if test "$ac_cv_search_setlocale" = no; then
5144  for ac_lib in intl; do
5145    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5146    cat >conftest.$ac_ext <<_ACEOF
5147/* confdefs.h.  */
5148_ACEOF
5149cat confdefs.h >>conftest.$ac_ext
5150cat >>conftest.$ac_ext <<_ACEOF
5151/* end confdefs.h.  */
5152
5153/* Override any gcc2 internal prototype to avoid an error.  */
5154#ifdef __cplusplus
5155extern "C"
5156#endif
5157/* We use char because int might match the return type of a gcc2
5158   builtin and then its argument prototype would still apply.  */
5159char setlocale ();
5160int
5161main ()
5162{
5163setlocale ();
5164  ;
5165  return 0;
5166}
5167_ACEOF
5168rm -f conftest.$ac_objext conftest$ac_exeext
5169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5170  (eval $ac_link) 2>conftest.er1
5171  ac_status=$?
5172  grep -v '^ *+' conftest.er1 >conftest.err
5173  rm -f conftest.er1
5174  cat conftest.err >&5
5175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); } &&
5177	 { ac_try='test -z "$ac_c_werror_flag"
5178			 || test ! -s conftest.err'
5179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180  (eval $ac_try) 2>&5
5181  ac_status=$?
5182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183  (exit $ac_status); }; } &&
5184	 { ac_try='test -s conftest$ac_exeext'
5185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186  (eval $ac_try) 2>&5
5187  ac_status=$?
5188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189  (exit $ac_status); }; }; then
5190  ac_cv_search_setlocale="-l$ac_lib"
5191break
5192else
5193  echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196fi
5197rm -f conftest.err conftest.$ac_objext \
5198      conftest$ac_exeext conftest.$ac_ext
5199  done
5200fi
5201LIBS=$ac_func_search_save_LIBS
5202fi
5203echo "$as_me:$LINENO: result: $ac_cv_search_setlocale" >&5
5204echo "${ECHO_T}$ac_cv_search_setlocale" >&6
5205if test "$ac_cv_search_setlocale" != no; then
5206  test "$ac_cv_search_setlocale" = "none required" || LIBS="$ac_cv_search_setlocale $LIBS"
5207
5208else
5209  { echo "$as_me:$LINENO: WARNING: Locales will not be supported." >&5
5210echo "$as_me: WARNING: Locales will not be supported." >&2;}
5211fi
5212
5213
5214if test "$enable_ssl" = "yes"; then
5215    ok=0
5216    old_LIBS="$LIBS"
5217    old_CFLAGS="$CFLAGS"
5218    old_CPPFLAGS="$CPPFLAGS"
5219    while true; do
5220			LIBS="$LIBS -lssl -lcrypto"
5221	echo "$as_me:$LINENO: checking for libcrypto and libssl" >&5
5222echo $ECHO_N "checking for libcrypto and libssl... $ECHO_C" >&6
5223	cat >conftest.$ac_ext <<_ACEOF
5224/* confdefs.h.  */
5225_ACEOF
5226cat confdefs.h >>conftest.$ac_ext
5227cat >>conftest.$ac_ext <<_ACEOF
5228/* end confdefs.h.  */
5229
5230/* Override any gcc2 internal prototype to avoid an error.  */
5231#ifdef __cplusplus
5232extern "C"
5233#endif
5234/* We use char because int might match the return type of a gcc2
5235   builtin and then its argument prototype would still apply.  */
5236char SSL_new ();
5237int
5238main ()
5239{
5240SSL_new ();
5241  ;
5242  return 0;
5243}
5244_ACEOF
5245rm -f conftest.$ac_objext conftest$ac_exeext
5246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247  (eval $ac_link) 2>conftest.er1
5248  ac_status=$?
5249  grep -v '^ *+' conftest.er1 >conftest.err
5250  rm -f conftest.er1
5251  cat conftest.err >&5
5252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253  (exit $ac_status); } &&
5254	 { ac_try='test -z "$ac_c_werror_flag"
5255			 || test ! -s conftest.err'
5256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257  (eval $ac_try) 2>&5
5258  ac_status=$?
5259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); }; } &&
5261	 { ac_try='test -s conftest$ac_exeext'
5262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263  (eval $ac_try) 2>&5
5264  ac_status=$?
5265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266  (exit $ac_status); }; }; then
5267  echo "$as_me:$LINENO: result: yes" >&5
5268echo "${ECHO_T}yes" >&6
5269else
5270  echo "$as_me: failed program was:" >&5
5271sed 's/^/| /' conftest.$ac_ext >&5
5272
5273CFLAGS="$CFLAGS -L/usr/local/ssl/lib";
5274	    CPPFLAGS="-I/usr/local/ssl/include $CPPFLAGS";
5275	    cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h.  */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h.  */
5281
5282/* Override any gcc2 internal prototype to avoid an error.  */
5283#ifdef __cplusplus
5284extern "C"
5285#endif
5286/* We use char because int might match the return type of a gcc2
5287   builtin and then its argument prototype would still apply.  */
5288char SSL_new ();
5289int
5290main ()
5291{
5292SSL_new ();
5293  ;
5294  return 0;
5295}
5296_ACEOF
5297rm -f conftest.$ac_objext conftest$ac_exeext
5298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5299  (eval $ac_link) 2>conftest.er1
5300  ac_status=$?
5301  grep -v '^ *+' conftest.er1 >conftest.err
5302  rm -f conftest.er1
5303  cat conftest.err >&5
5304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305  (exit $ac_status); } &&
5306	 { ac_try='test -z "$ac_c_werror_flag"
5307			 || test ! -s conftest.err'
5308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309  (eval $ac_try) 2>&5
5310  ac_status=$?
5311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312  (exit $ac_status); }; } &&
5313	 { ac_try='test -s conftest$ac_exeext'
5314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315  (eval $ac_try) 2>&5
5316  ac_status=$?
5317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318  (exit $ac_status); }; }; then
5319  echo "$as_me:$LINENO: result: /usr/local/ssl" >&5
5320echo "${ECHO_T}/usr/local/ssl" >&6
5321else
5322  echo "$as_me: failed program was:" >&5
5323sed 's/^/| /' conftest.$ac_ext >&5
5324
5325echo "$as_me:$LINENO: result: no" >&5
5326echo "${ECHO_T}no" >&6; break
5327fi
5328rm -f conftest.err conftest.$ac_objext \
5329      conftest$ac_exeext conftest.$ac_ext
5330fi
5331rm -f conftest.err conftest.$ac_objext \
5332      conftest$ac_exeext conftest.$ac_ext
5333			echo "$as_me:$LINENO: checking for ssl kerberos dependency" >&5
5334echo $ECHO_N "checking for ssl kerberos dependency... $ECHO_C" >&6
5335	if test -r /usr/kerberos/include/krb5.h; then
5336	    echo "$as_me:$LINENO: result: yes" >&5
5337echo "${ECHO_T}yes" >&6
5338	    CPPFLAGS="-I/usr/kerberos/include $CPPFLAGS"
5339	else
5340	    echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6
5342	fi
5343	if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
5344  echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
5345echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
5346if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
5347  echo $ECHO_N "(cached) $ECHO_C" >&6
5348fi
5349echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
5350echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
5351else
5352  # Is the header compilable?
5353echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
5354echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
5355cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h.  */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h.  */
5361$ac_includes_default
5362@%:@include <openssl/ssl.h>
5363_ACEOF
5364rm -f conftest.$ac_objext
5365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366  (eval $ac_compile) 2>conftest.er1
5367  ac_status=$?
5368  grep -v '^ *+' conftest.er1 >conftest.err
5369  rm -f conftest.er1
5370  cat conftest.err >&5
5371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372  (exit $ac_status); } &&
5373	 { ac_try='test -z "$ac_c_werror_flag"
5374			 || test ! -s conftest.err'
5375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376  (eval $ac_try) 2>&5
5377  ac_status=$?
5378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379  (exit $ac_status); }; } &&
5380	 { ac_try='test -s conftest.$ac_objext'
5381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382  (eval $ac_try) 2>&5
5383  ac_status=$?
5384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385  (exit $ac_status); }; }; then
5386  ac_header_compiler=yes
5387else
5388  echo "$as_me: failed program was:" >&5
5389sed 's/^/| /' conftest.$ac_ext >&5
5390
5391ac_header_compiler=no
5392fi
5393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5395echo "${ECHO_T}$ac_header_compiler" >&6
5396
5397# Is the header present?
5398echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
5399echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
5400cat >conftest.$ac_ext <<_ACEOF
5401/* confdefs.h.  */
5402_ACEOF
5403cat confdefs.h >>conftest.$ac_ext
5404cat >>conftest.$ac_ext <<_ACEOF
5405/* end confdefs.h.  */
5406@%:@include <openssl/ssl.h>
5407_ACEOF
5408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5409  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5410  ac_status=$?
5411  grep -v '^ *+' conftest.er1 >conftest.err
5412  rm -f conftest.er1
5413  cat conftest.err >&5
5414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415  (exit $ac_status); } >/dev/null; then
5416  if test -s conftest.err; then
5417    ac_cpp_err=$ac_c_preproc_warn_flag
5418    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5419  else
5420    ac_cpp_err=
5421  fi
5422else
5423  ac_cpp_err=yes
5424fi
5425if test -z "$ac_cpp_err"; then
5426  ac_header_preproc=yes
5427else
5428  echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
5431  ac_header_preproc=no
5432fi
5433rm -f conftest.err conftest.$ac_ext
5434echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5435echo "${ECHO_T}$ac_header_preproc" >&6
5436
5437# So?  What about this header?
5438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5439  yes:no: )
5440    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5441echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5442    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
5443echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
5444    ac_header_preproc=yes
5445    ;;
5446  no:yes:* )
5447    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
5448echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
5449    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
5450echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
5451    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
5452echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
5453    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
5454echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5455    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
5456echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
5457    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
5458echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
5459    (
5460      cat <<\_ASBOX
5461@%:@@%:@ ------------------------------------------ @%:@@%:@
5462@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
5463@%:@@%:@ ------------------------------------------ @%:@@%:@
5464_ASBOX
5465    ) |
5466      sed "s/^/$as_me: WARNING:     /" >&2
5467    ;;
5468esac
5469echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
5470echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
5471if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
5472  echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474  ac_cv_header_openssl_ssl_h=$ac_header_preproc
5475fi
5476echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
5477echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
5478
5479fi
5480if test $ac_cv_header_openssl_ssl_h = yes; then
5481  :
5482else
5483  break
5484fi
5485
5486
5487	cat >>confdefs.h <<\_ACEOF
5488@%:@define HAVE_SSL 1
5489_ACEOF
5490
5491	ok=1
5492	break
5493    done
5494    if test "$ok" = "0"; then
5495	echo "$as_me:$LINENO: result: ssl support will not be enabled." >&5
5496echo "${ECHO_T}ssl support will not be enabled." >&6
5497	LIBS="$old_LIBS"
5498	CFLAGS="$old_CFLAGS"
5499	CPPFLAGS="$old_CPPFLAGS"
5500    fi
5501fi
5502
5503
5504terminal_hardcode="TERM_vt100";
5505
5506if test "$CYGWIN" = "yes"; then
5507    terminal_hardcode="TERM_ansi";
5508    if test "$enable_termcap" = "default"; then
5509	enable_termcap="no";
5510    fi
5511fi
5512
5513if test "$enable_termcap" = "default"; then
5514    enable_termcap="yes";
5515fi
5516
5517if test "$enable_termcap" = "no"; then
5518    cat >>confdefs.h <<_ACEOF
5519@%:@define HARDCODE $terminal_hardcode
5520_ACEOF
5521
5522else
5523    if test "$enable_termcap" = "yes"; then enable_termcap=""; fi
5524    echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5525echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5526if test "${ac_cv_search_tgetent+set}" = set; then
5527  echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529  ac_func_search_save_LIBS=$LIBS
5530ac_cv_search_tgetent=no
5531cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h.  */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h.  */
5537
5538/* Override any gcc2 internal prototype to avoid an error.  */
5539#ifdef __cplusplus
5540extern "C"
5541#endif
5542/* We use char because int might match the return type of a gcc2
5543   builtin and then its argument prototype would still apply.  */
5544char tgetent ();
5545int
5546main ()
5547{
5548tgetent ();
5549  ;
5550  return 0;
5551}
5552_ACEOF
5553rm -f conftest.$ac_objext conftest$ac_exeext
5554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5555  (eval $ac_link) 2>conftest.er1
5556  ac_status=$?
5557  grep -v '^ *+' conftest.er1 >conftest.err
5558  rm -f conftest.er1
5559  cat conftest.err >&5
5560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561  (exit $ac_status); } &&
5562	 { ac_try='test -z "$ac_c_werror_flag"
5563			 || test ! -s conftest.err'
5564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565  (eval $ac_try) 2>&5
5566  ac_status=$?
5567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568  (exit $ac_status); }; } &&
5569	 { ac_try='test -s conftest$ac_exeext'
5570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571  (eval $ac_try) 2>&5
5572  ac_status=$?
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); }; }; then
5575  ac_cv_search_tgetent="none required"
5576else
5577  echo "$as_me: failed program was:" >&5
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
5580fi
5581rm -f conftest.err conftest.$ac_objext \
5582      conftest$ac_exeext conftest.$ac_ext
5583if test "$ac_cv_search_tgetent" = no; then
5584  for ac_lib in $enable_termcap termcap ncurses curses; do
5585    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5586    cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h.  */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h.  */
5592
5593/* Override any gcc2 internal prototype to avoid an error.  */
5594#ifdef __cplusplus
5595extern "C"
5596#endif
5597/* We use char because int might match the return type of a gcc2
5598   builtin and then its argument prototype would still apply.  */
5599char tgetent ();
5600int
5601main ()
5602{
5603tgetent ();
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608rm -f conftest.$ac_objext conftest$ac_exeext
5609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610  (eval $ac_link) 2>conftest.er1
5611  ac_status=$?
5612  grep -v '^ *+' conftest.er1 >conftest.err
5613  rm -f conftest.er1
5614  cat conftest.err >&5
5615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); } &&
5617	 { ac_try='test -z "$ac_c_werror_flag"
5618			 || test ! -s conftest.err'
5619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620  (eval $ac_try) 2>&5
5621  ac_status=$?
5622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623  (exit $ac_status); }; } &&
5624	 { ac_try='test -s conftest$ac_exeext'
5625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626  (eval $ac_try) 2>&5
5627  ac_status=$?
5628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629  (exit $ac_status); }; }; then
5630  ac_cv_search_tgetent="-l$ac_lib"
5631break
5632else
5633  echo "$as_me: failed program was:" >&5
5634sed 's/^/| /' conftest.$ac_ext >&5
5635
5636fi
5637rm -f conftest.err conftest.$ac_objext \
5638      conftest$ac_exeext conftest.$ac_ext
5639  done
5640fi
5641LIBS=$ac_func_search_save_LIBS
5642fi
5643echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5644echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5645if test "$ac_cv_search_tgetent" != no; then
5646  test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5647  cat >>confdefs.h <<\_ACEOF
5648@%:@define TERMCAP 1
5649_ACEOF
5650
5651
5652else
5653  cat >>confdefs.h <<_ACEOF
5654@%:@define HARDCODE $terminal_hardcode
5655_ACEOF
5656
5657	{ echo "$as_me:$LINENO: WARNING: Hardcoding terminal codes." >&5
5658echo "$as_me: WARNING: Hardcoding terminal codes." >&2;}
5659fi
5660
5661fi
5662
5663
5664if test "$enable_256colors" = "yes"; then
5665    cat >>confdefs.h <<\_ACEOF
5666@%:@define NCOLORS 256
5667_ACEOF
5668
5669fi
5670
5671
5672if test "$enable_float" = "yes"; then
5673    echo "$as_me:$LINENO: checking for library containing sqrt" >&5
5674echo $ECHO_N "checking for library containing sqrt... $ECHO_C" >&6
5675if test "${ac_cv_search_sqrt+set}" = set; then
5676  echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678  ac_func_search_save_LIBS=$LIBS
5679ac_cv_search_sqrt=no
5680cat >conftest.$ac_ext <<_ACEOF
5681/* confdefs.h.  */
5682_ACEOF
5683cat confdefs.h >>conftest.$ac_ext
5684cat >>conftest.$ac_ext <<_ACEOF
5685/* end confdefs.h.  */
5686
5687/* Override any gcc2 internal prototype to avoid an error.  */
5688#ifdef __cplusplus
5689extern "C"
5690#endif
5691/* We use char because int might match the return type of a gcc2
5692   builtin and then its argument prototype would still apply.  */
5693char sqrt ();
5694int
5695main ()
5696{
5697sqrt ();
5698  ;
5699  return 0;
5700}
5701_ACEOF
5702rm -f conftest.$ac_objext conftest$ac_exeext
5703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704  (eval $ac_link) 2>conftest.er1
5705  ac_status=$?
5706  grep -v '^ *+' conftest.er1 >conftest.err
5707  rm -f conftest.er1
5708  cat conftest.err >&5
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); } &&
5711	 { ac_try='test -z "$ac_c_werror_flag"
5712			 || test ! -s conftest.err'
5713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714  (eval $ac_try) 2>&5
5715  ac_status=$?
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); }; } &&
5718	 { ac_try='test -s conftest$ac_exeext'
5719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720  (eval $ac_try) 2>&5
5721  ac_status=$?
5722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723  (exit $ac_status); }; }; then
5724  ac_cv_search_sqrt="none required"
5725else
5726  echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
5728
5729fi
5730rm -f conftest.err conftest.$ac_objext \
5731      conftest$ac_exeext conftest.$ac_ext
5732if test "$ac_cv_search_sqrt" = no; then
5733  for ac_lib in m; do
5734    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5735    cat >conftest.$ac_ext <<_ACEOF
5736/* confdefs.h.  */
5737_ACEOF
5738cat confdefs.h >>conftest.$ac_ext
5739cat >>conftest.$ac_ext <<_ACEOF
5740/* end confdefs.h.  */
5741
5742/* Override any gcc2 internal prototype to avoid an error.  */
5743#ifdef __cplusplus
5744extern "C"
5745#endif
5746/* We use char because int might match the return type of a gcc2
5747   builtin and then its argument prototype would still apply.  */
5748char sqrt ();
5749int
5750main ()
5751{
5752sqrt ();
5753  ;
5754  return 0;
5755}
5756_ACEOF
5757rm -f conftest.$ac_objext conftest$ac_exeext
5758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759  (eval $ac_link) 2>conftest.er1
5760  ac_status=$?
5761  grep -v '^ *+' conftest.er1 >conftest.err
5762  rm -f conftest.er1
5763  cat conftest.err >&5
5764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765  (exit $ac_status); } &&
5766	 { ac_try='test -z "$ac_c_werror_flag"
5767			 || test ! -s conftest.err'
5768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769  (eval $ac_try) 2>&5
5770  ac_status=$?
5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); }; } &&
5773	 { ac_try='test -s conftest$ac_exeext'
5774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775  (eval $ac_try) 2>&5
5776  ac_status=$?
5777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778  (exit $ac_status); }; }; then
5779  ac_cv_search_sqrt="-l$ac_lib"
5780break
5781else
5782  echo "$as_me: failed program was:" >&5
5783sed 's/^/| /' conftest.$ac_ext >&5
5784
5785fi
5786rm -f conftest.err conftest.$ac_objext \
5787      conftest$ac_exeext conftest.$ac_ext
5788  done
5789fi
5790LIBS=$ac_func_search_save_LIBS
5791fi
5792echo "$as_me:$LINENO: result: $ac_cv_search_sqrt" >&5
5793echo "${ECHO_T}$ac_cv_search_sqrt" >&6
5794if test "$ac_cv_search_sqrt" != no; then
5795  test "$ac_cv_search_sqrt" = "none required" || LIBS="$ac_cv_search_sqrt $LIBS"
5796
5797fi
5798
5799fi
5800
5801
5802echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5803echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5804if test "${ac_cv_lib_z_inflate+set}" = set; then
5805  echo $ECHO_N "(cached) $ECHO_C" >&6
5806else
5807  ac_check_lib_save_LIBS=$LIBS
5808LIBS="-lz  $LIBS"
5809cat >conftest.$ac_ext <<_ACEOF
5810/* confdefs.h.  */
5811_ACEOF
5812cat confdefs.h >>conftest.$ac_ext
5813cat >>conftest.$ac_ext <<_ACEOF
5814/* end confdefs.h.  */
5815
5816/* Override any gcc2 internal prototype to avoid an error.  */
5817#ifdef __cplusplus
5818extern "C"
5819#endif
5820/* We use char because int might match the return type of a gcc2
5821   builtin and then its argument prototype would still apply.  */
5822char inflate ();
5823int
5824main ()
5825{
5826inflate ();
5827  ;
5828  return 0;
5829}
5830_ACEOF
5831rm -f conftest.$ac_objext conftest$ac_exeext
5832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5833  (eval $ac_link) 2>conftest.er1
5834  ac_status=$?
5835  grep -v '^ *+' conftest.er1 >conftest.err
5836  rm -f conftest.er1
5837  cat conftest.err >&5
5838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839  (exit $ac_status); } &&
5840	 { ac_try='test -z "$ac_c_werror_flag"
5841			 || test ! -s conftest.err'
5842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843  (eval $ac_try) 2>&5
5844  ac_status=$?
5845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846  (exit $ac_status); }; } &&
5847	 { ac_try='test -s conftest$ac_exeext'
5848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849  (eval $ac_try) 2>&5
5850  ac_status=$?
5851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852  (exit $ac_status); }; }; then
5853  ac_cv_lib_z_inflate=yes
5854else
5855  echo "$as_me: failed program was:" >&5
5856sed 's/^/| /' conftest.$ac_ext >&5
5857
5858ac_cv_lib_z_inflate=no
5859fi
5860rm -f conftest.err conftest.$ac_objext \
5861      conftest$ac_exeext conftest.$ac_ext
5862LIBS=$ac_check_lib_save_LIBS
5863fi
5864echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5865echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5866if test $ac_cv_lib_z_inflate = yes; then
5867  cat >>confdefs.h <<_ACEOF
5868@%:@define HAVE_LIBZ 1
5869_ACEOF
5870
5871  LIBS="-lz $LIBS"
5872
5873fi
5874
5875
5876echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
5877echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
5878if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
5879  echo $ECHO_N "(cached) $ECHO_C" >&6
5880else
5881  ac_check_lib_save_LIBS=$LIBS
5882LIBS="-lpcre  $LIBS"
5883cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h.  */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h.  */
5889
5890/* Override any gcc2 internal prototype to avoid an error.  */
5891#ifdef __cplusplus
5892extern "C"
5893#endif
5894/* We use char because int might match the return type of a gcc2
5895   builtin and then its argument prototype would still apply.  */
5896char pcre_compile ();
5897int
5898main ()
5899{
5900pcre_compile ();
5901  ;
5902  return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext conftest$ac_exeext
5906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907  (eval $ac_link) 2>conftest.er1
5908  ac_status=$?
5909  grep -v '^ *+' conftest.er1 >conftest.err
5910  rm -f conftest.er1
5911  cat conftest.err >&5
5912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913  (exit $ac_status); } &&
5914	 { ac_try='test -z "$ac_c_werror_flag"
5915			 || test ! -s conftest.err'
5916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917  (eval $ac_try) 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }; } &&
5921	 { ac_try='test -s conftest$ac_exeext'
5922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923  (eval $ac_try) 2>&5
5924  ac_status=$?
5925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926  (exit $ac_status); }; }; then
5927  ac_cv_lib_pcre_pcre_compile=yes
5928else
5929  echo "$as_me: failed program was:" >&5
5930sed 's/^/| /' conftest.$ac_ext >&5
5931
5932ac_cv_lib_pcre_pcre_compile=no
5933fi
5934rm -f conftest.err conftest.$ac_objext \
5935      conftest$ac_exeext conftest.$ac_ext
5936LIBS=$ac_check_lib_save_LIBS
5937fi
5938echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
5939echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
5940if test $ac_cv_lib_pcre_pcre_compile = yes; then
5941  :
5942else
5943
5944    { echo "$as_me:$LINENO: Note: will use old copy of pcre distributed with tf" >&5
5945echo "$as_me: Note: will use old copy of pcre distributed with tf" >&6;};
5946    PCRE=pcre; LDFLAGS="${LDFLAGS} -Lpcre-2.08";
5947fi
5948
5949
5950
5951
5952
5953echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5954echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5955if test "${ac_cv_header_stdc+set}" = set; then
5956  echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958  cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h.  */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h.  */
5964#include <stdlib.h>
5965#include <stdarg.h>
5966#include <string.h>
5967#include <float.h>
5968
5969int
5970main ()
5971{
5972
5973  ;
5974  return 0;
5975}
5976_ACEOF
5977rm -f conftest.$ac_objext
5978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979  (eval $ac_compile) 2>conftest.er1
5980  ac_status=$?
5981  grep -v '^ *+' conftest.er1 >conftest.err
5982  rm -f conftest.er1
5983  cat conftest.err >&5
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); } &&
5986	 { ac_try='test -z "$ac_c_werror_flag"
5987			 || test ! -s conftest.err'
5988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989  (eval $ac_try) 2>&5
5990  ac_status=$?
5991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992  (exit $ac_status); }; } &&
5993	 { ac_try='test -s conftest.$ac_objext'
5994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995  (eval $ac_try) 2>&5
5996  ac_status=$?
5997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998  (exit $ac_status); }; }; then
5999  ac_cv_header_stdc=yes
6000else
6001  echo "$as_me: failed program was:" >&5
6002sed 's/^/| /' conftest.$ac_ext >&5
6003
6004ac_cv_header_stdc=no
6005fi
6006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6007
6008if test $ac_cv_header_stdc = yes; then
6009  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6010  cat >conftest.$ac_ext <<_ACEOF
6011/* confdefs.h.  */
6012_ACEOF
6013cat confdefs.h >>conftest.$ac_ext
6014cat >>conftest.$ac_ext <<_ACEOF
6015/* end confdefs.h.  */
6016#include <string.h>
6017
6018_ACEOF
6019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6020  $EGREP "memchr" >/dev/null 2>&1; then
6021  :
6022else
6023  ac_cv_header_stdc=no
6024fi
6025rm -f conftest*
6026
6027fi
6028
6029if test $ac_cv_header_stdc = yes; then
6030  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6031  cat >conftest.$ac_ext <<_ACEOF
6032/* confdefs.h.  */
6033_ACEOF
6034cat confdefs.h >>conftest.$ac_ext
6035cat >>conftest.$ac_ext <<_ACEOF
6036/* end confdefs.h.  */
6037#include <stdlib.h>
6038
6039_ACEOF
6040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6041  $EGREP "free" >/dev/null 2>&1; then
6042  :
6043else
6044  ac_cv_header_stdc=no
6045fi
6046rm -f conftest*
6047
6048fi
6049
6050if test $ac_cv_header_stdc = yes; then
6051  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6052  if test "$cross_compiling" = yes; then
6053  :
6054else
6055  cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h.  */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h.  */
6061#include <ctype.h>
6062#if ((' ' & 0x0FF) == 0x020)
6063# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6064# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6065#else
6066# define ISLOWER(c) \
6067		   (('a' <= (c) && (c) <= 'i') \
6068		     || ('j' <= (c) && (c) <= 'r') \
6069		     || ('s' <= (c) && (c) <= 'z'))
6070# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6071#endif
6072
6073#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6074int
6075main ()
6076{
6077  int i;
6078  for (i = 0; i < 256; i++)
6079    if (XOR (islower (i), ISLOWER (i))
6080	|| toupper (i) != TOUPPER (i))
6081      exit(2);
6082  exit (0);
6083}
6084_ACEOF
6085rm -f conftest$ac_exeext
6086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087  (eval $ac_link) 2>&5
6088  ac_status=$?
6089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092  (eval $ac_try) 2>&5
6093  ac_status=$?
6094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095  (exit $ac_status); }; }; then
6096  :
6097else
6098  echo "$as_me: program exited with status $ac_status" >&5
6099echo "$as_me: failed program was:" >&5
6100sed 's/^/| /' conftest.$ac_ext >&5
6101
6102( exit $ac_status )
6103ac_cv_header_stdc=no
6104fi
6105rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6106fi
6107fi
6108fi
6109echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6110echo "${ECHO_T}$ac_cv_header_stdc" >&6
6111if test $ac_cv_header_stdc = yes; then
6112
6113cat >>confdefs.h <<\_ACEOF
6114@%:@define STDC_HEADERS 1
6115_ACEOF
6116
6117fi
6118
6119
6120
6121
6122for ac_header in unistd.h memory.h sys/select.h
6123do
6124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6125if eval "test \"\${$as_ac_Header+set}\" = set"; then
6126  echo "$as_me:$LINENO: checking for $ac_header" >&5
6127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6128if eval "test \"\${$as_ac_Header+set}\" = set"; then
6129  echo $ECHO_N "(cached) $ECHO_C" >&6
6130fi
6131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6133else
6134  # Is the header compilable?
6135echo "$as_me:$LINENO: checking $ac_header usability" >&5
6136echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6137cat >conftest.$ac_ext <<_ACEOF
6138/* confdefs.h.  */
6139_ACEOF
6140cat confdefs.h >>conftest.$ac_ext
6141cat >>conftest.$ac_ext <<_ACEOF
6142/* end confdefs.h.  */
6143$ac_includes_default
6144@%:@include <$ac_header>
6145_ACEOF
6146rm -f conftest.$ac_objext
6147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148  (eval $ac_compile) 2>conftest.er1
6149  ac_status=$?
6150  grep -v '^ *+' conftest.er1 >conftest.err
6151  rm -f conftest.er1
6152  cat conftest.err >&5
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); } &&
6155	 { ac_try='test -z "$ac_c_werror_flag"
6156			 || test ! -s conftest.err'
6157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158  (eval $ac_try) 2>&5
6159  ac_status=$?
6160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161  (exit $ac_status); }; } &&
6162	 { ac_try='test -s conftest.$ac_objext'
6163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164  (eval $ac_try) 2>&5
6165  ac_status=$?
6166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167  (exit $ac_status); }; }; then
6168  ac_header_compiler=yes
6169else
6170  echo "$as_me: failed program was:" >&5
6171sed 's/^/| /' conftest.$ac_ext >&5
6172
6173ac_header_compiler=no
6174fi
6175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6177echo "${ECHO_T}$ac_header_compiler" >&6
6178
6179# Is the header present?
6180echo "$as_me:$LINENO: checking $ac_header presence" >&5
6181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6182cat >conftest.$ac_ext <<_ACEOF
6183/* confdefs.h.  */
6184_ACEOF
6185cat confdefs.h >>conftest.$ac_ext
6186cat >>conftest.$ac_ext <<_ACEOF
6187/* end confdefs.h.  */
6188@%:@include <$ac_header>
6189_ACEOF
6190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6191  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6192  ac_status=$?
6193  grep -v '^ *+' conftest.er1 >conftest.err
6194  rm -f conftest.er1
6195  cat conftest.err >&5
6196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); } >/dev/null; then
6198  if test -s conftest.err; then
6199    ac_cpp_err=$ac_c_preproc_warn_flag
6200    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6201  else
6202    ac_cpp_err=
6203  fi
6204else
6205  ac_cpp_err=yes
6206fi
6207if test -z "$ac_cpp_err"; then
6208  ac_header_preproc=yes
6209else
6210  echo "$as_me: failed program was:" >&5
6211sed 's/^/| /' conftest.$ac_ext >&5
6212
6213  ac_header_preproc=no
6214fi
6215rm -f conftest.err conftest.$ac_ext
6216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6217echo "${ECHO_T}$ac_header_preproc" >&6
6218
6219# So?  What about this header?
6220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6221  yes:no: )
6222    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6224    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6226    ac_header_preproc=yes
6227    ;;
6228  no:yes:* )
6229    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6231    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6232echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6233    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6235    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6236echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6237    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6239    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6241    (
6242      cat <<\_ASBOX
6243@%:@@%:@ ------------------------------------------ @%:@@%:@
6244@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
6245@%:@@%:@ ------------------------------------------ @%:@@%:@
6246_ASBOX
6247    ) |
6248      sed "s/^/$as_me: WARNING:     /" >&2
6249    ;;
6250esac
6251echo "$as_me:$LINENO: checking for $ac_header" >&5
6252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6253if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254  echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256  eval "$as_ac_Header=\$ac_header_preproc"
6257fi
6258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6260
6261fi
6262if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263  cat >>confdefs.h <<_ACEOF
6264@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265_ACEOF
6266
6267fi
6268
6269done
6270
6271echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6272echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6273if test "${ac_cv_header_sys_wait_h+set}" = set; then
6274  echo $ECHO_N "(cached) $ECHO_C" >&6
6275else
6276  cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h.  */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h.  */
6282#include <sys/types.h>
6283#include <sys/wait.h>
6284#ifndef WEXITSTATUS
6285# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6286#endif
6287#ifndef WIFEXITED
6288# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6289#endif
6290
6291int
6292main ()
6293{
6294  int s;
6295  wait (&s);
6296  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6297  ;
6298  return 0;
6299}
6300_ACEOF
6301rm -f conftest.$ac_objext
6302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303  (eval $ac_compile) 2>conftest.er1
6304  ac_status=$?
6305  grep -v '^ *+' conftest.er1 >conftest.err
6306  rm -f conftest.er1
6307  cat conftest.err >&5
6308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309  (exit $ac_status); } &&
6310	 { ac_try='test -z "$ac_c_werror_flag"
6311			 || test ! -s conftest.err'
6312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313  (eval $ac_try) 2>&5
6314  ac_status=$?
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); }; } &&
6317	 { ac_try='test -s conftest.$ac_objext'
6318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319  (eval $ac_try) 2>&5
6320  ac_status=$?
6321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322  (exit $ac_status); }; }; then
6323  ac_cv_header_sys_wait_h=yes
6324else
6325  echo "$as_me: failed program was:" >&5
6326sed 's/^/| /' conftest.$ac_ext >&5
6327
6328ac_cv_header_sys_wait_h=no
6329fi
6330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6331fi
6332echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6333echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6334if test $ac_cv_header_sys_wait_h = yes; then
6335
6336cat >>confdefs.h <<\_ACEOF
6337@%:@define HAVE_SYS_WAIT_H 1
6338_ACEOF
6339
6340fi
6341
6342
6343
6344for ac_header in locale.h
6345do
6346as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6347if eval "test \"\${$as_ac_Header+set}\" = set"; then
6348  echo "$as_me:$LINENO: checking for $ac_header" >&5
6349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6350if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351  echo $ECHO_N "(cached) $ECHO_C" >&6
6352fi
6353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6355else
6356  # Is the header compilable?
6357echo "$as_me:$LINENO: checking $ac_header usability" >&5
6358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6359cat >conftest.$ac_ext <<_ACEOF
6360/* confdefs.h.  */
6361_ACEOF
6362cat confdefs.h >>conftest.$ac_ext
6363cat >>conftest.$ac_ext <<_ACEOF
6364/* end confdefs.h.  */
6365$ac_includes_default
6366@%:@include <$ac_header>
6367_ACEOF
6368rm -f conftest.$ac_objext
6369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6370  (eval $ac_compile) 2>conftest.er1
6371  ac_status=$?
6372  grep -v '^ *+' conftest.er1 >conftest.err
6373  rm -f conftest.er1
6374  cat conftest.err >&5
6375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376  (exit $ac_status); } &&
6377	 { ac_try='test -z "$ac_c_werror_flag"
6378			 || test ! -s conftest.err'
6379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380  (eval $ac_try) 2>&5
6381  ac_status=$?
6382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383  (exit $ac_status); }; } &&
6384	 { ac_try='test -s conftest.$ac_objext'
6385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386  (eval $ac_try) 2>&5
6387  ac_status=$?
6388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389  (exit $ac_status); }; }; then
6390  ac_header_compiler=yes
6391else
6392  echo "$as_me: failed program was:" >&5
6393sed 's/^/| /' conftest.$ac_ext >&5
6394
6395ac_header_compiler=no
6396fi
6397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6398echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6399echo "${ECHO_T}$ac_header_compiler" >&6
6400
6401# Is the header present?
6402echo "$as_me:$LINENO: checking $ac_header presence" >&5
6403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6404cat >conftest.$ac_ext <<_ACEOF
6405/* confdefs.h.  */
6406_ACEOF
6407cat confdefs.h >>conftest.$ac_ext
6408cat >>conftest.$ac_ext <<_ACEOF
6409/* end confdefs.h.  */
6410@%:@include <$ac_header>
6411_ACEOF
6412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6413  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6414  ac_status=$?
6415  grep -v '^ *+' conftest.er1 >conftest.err
6416  rm -f conftest.er1
6417  cat conftest.err >&5
6418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419  (exit $ac_status); } >/dev/null; then
6420  if test -s conftest.err; then
6421    ac_cpp_err=$ac_c_preproc_warn_flag
6422    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6423  else
6424    ac_cpp_err=
6425  fi
6426else
6427  ac_cpp_err=yes
6428fi
6429if test -z "$ac_cpp_err"; then
6430  ac_header_preproc=yes
6431else
6432  echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435  ac_header_preproc=no
6436fi
6437rm -f conftest.err conftest.$ac_ext
6438echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6439echo "${ECHO_T}$ac_header_preproc" >&6
6440
6441# So?  What about this header?
6442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6443  yes:no: )
6444    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6446    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6448    ac_header_preproc=yes
6449    ;;
6450  no:yes:* )
6451    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6453    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6454echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6455    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6457    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6458echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6459    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6461    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6463    (
6464      cat <<\_ASBOX
6465@%:@@%:@ ------------------------------------------ @%:@@%:@
6466@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
6467@%:@@%:@ ------------------------------------------ @%:@@%:@
6468_ASBOX
6469    ) |
6470      sed "s/^/$as_me: WARNING:     /" >&2
6471    ;;
6472esac
6473echo "$as_me:$LINENO: checking for $ac_header" >&5
6474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6475if eval "test \"\${$as_ac_Header+set}\" = set"; then
6476  echo $ECHO_N "(cached) $ECHO_C" >&6
6477else
6478  eval "$as_ac_Header=\$ac_header_preproc"
6479fi
6480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6482
6483fi
6484if test `eval echo '${'$as_ac_Header'}'` = yes; then
6485  cat >>confdefs.h <<_ACEOF
6486@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6487_ACEOF
6488
6489else
6490  { echo "$as_me:$LINENO: WARNING: Locales will not be supported." >&5
6491echo "$as_me: WARNING: Locales will not be supported." >&2;}
6492fi
6493
6494done
6495
6496
6497
6498for ac_header in pwd.h
6499do
6500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502  echo "$as_me:$LINENO: checking for $ac_header" >&5
6503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6504if eval "test \"\${$as_ac_Header+set}\" = set"; then
6505  echo $ECHO_N "(cached) $ECHO_C" >&6
6506fi
6507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6508echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6509else
6510  # Is the header compilable?
6511echo "$as_me:$LINENO: checking $ac_header usability" >&5
6512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6513cat >conftest.$ac_ext <<_ACEOF
6514/* confdefs.h.  */
6515_ACEOF
6516cat confdefs.h >>conftest.$ac_ext
6517cat >>conftest.$ac_ext <<_ACEOF
6518/* end confdefs.h.  */
6519$ac_includes_default
6520@%:@include <$ac_header>
6521_ACEOF
6522rm -f conftest.$ac_objext
6523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524  (eval $ac_compile) 2>conftest.er1
6525  ac_status=$?
6526  grep -v '^ *+' conftest.er1 >conftest.err
6527  rm -f conftest.er1
6528  cat conftest.err >&5
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); } &&
6531	 { ac_try='test -z "$ac_c_werror_flag"
6532			 || test ! -s conftest.err'
6533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534  (eval $ac_try) 2>&5
6535  ac_status=$?
6536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537  (exit $ac_status); }; } &&
6538	 { ac_try='test -s conftest.$ac_objext'
6539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540  (eval $ac_try) 2>&5
6541  ac_status=$?
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); }; }; then
6544  ac_header_compiler=yes
6545else
6546  echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549ac_header_compiler=no
6550fi
6551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6553echo "${ECHO_T}$ac_header_compiler" >&6
6554
6555# Is the header present?
6556echo "$as_me:$LINENO: checking $ac_header presence" >&5
6557echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6558cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h.  */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h.  */
6564@%:@include <$ac_header>
6565_ACEOF
6566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6567  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6568  ac_status=$?
6569  grep -v '^ *+' conftest.er1 >conftest.err
6570  rm -f conftest.er1
6571  cat conftest.err >&5
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); } >/dev/null; then
6574  if test -s conftest.err; then
6575    ac_cpp_err=$ac_c_preproc_warn_flag
6576    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6577  else
6578    ac_cpp_err=
6579  fi
6580else
6581  ac_cpp_err=yes
6582fi
6583if test -z "$ac_cpp_err"; then
6584  ac_header_preproc=yes
6585else
6586  echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
6589  ac_header_preproc=no
6590fi
6591rm -f conftest.err conftest.$ac_ext
6592echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6593echo "${ECHO_T}$ac_header_preproc" >&6
6594
6595# So?  What about this header?
6596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6597  yes:no: )
6598    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6599echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6600    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6601echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6602    ac_header_preproc=yes
6603    ;;
6604  no:yes:* )
6605    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6606echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6607    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6608echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6609    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6610echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6611    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6612echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6613    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6614echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6615    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6616echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6617    (
6618      cat <<\_ASBOX
6619@%:@@%:@ ------------------------------------------ @%:@@%:@
6620@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
6621@%:@@%:@ ------------------------------------------ @%:@@%:@
6622_ASBOX
6623    ) |
6624      sed "s/^/$as_me: WARNING:     /" >&2
6625    ;;
6626esac
6627echo "$as_me:$LINENO: checking for $ac_header" >&5
6628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6629if eval "test \"\${$as_ac_Header+set}\" = set"; then
6630  echo $ECHO_N "(cached) $ECHO_C" >&6
6631else
6632  eval "$as_ac_Header=\$ac_header_preproc"
6633fi
6634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6636
6637fi
6638if test `eval echo '${'$as_ac_Header'}'` = yes; then
6639  cat >>confdefs.h <<_ACEOF
6640@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6641_ACEOF
6642
6643else
6644  { echo "$as_me:$LINENO: WARNING: Filename '~user' expansion will not be supported." >&5
6645echo "$as_me: WARNING: Filename '~user' expansion will not be supported." >&2;}
6646fi
6647
6648done
6649
6650
6651
6652for ac_header in zlib.h
6653do
6654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6655if eval "test \"\${$as_ac_Header+set}\" = set"; then
6656  echo "$as_me:$LINENO: checking for $ac_header" >&5
6657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6658if eval "test \"\${$as_ac_Header+set}\" = set"; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660fi
6661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6663else
6664  # Is the header compilable?
6665echo "$as_me:$LINENO: checking $ac_header usability" >&5
6666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6667cat >conftest.$ac_ext <<_ACEOF
6668/* confdefs.h.  */
6669_ACEOF
6670cat confdefs.h >>conftest.$ac_ext
6671cat >>conftest.$ac_ext <<_ACEOF
6672/* end confdefs.h.  */
6673$ac_includes_default
6674@%:@include <$ac_header>
6675_ACEOF
6676rm -f conftest.$ac_objext
6677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678  (eval $ac_compile) 2>conftest.er1
6679  ac_status=$?
6680  grep -v '^ *+' conftest.er1 >conftest.err
6681  rm -f conftest.er1
6682  cat conftest.err >&5
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); } &&
6685	 { ac_try='test -z "$ac_c_werror_flag"
6686			 || test ! -s conftest.err'
6687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688  (eval $ac_try) 2>&5
6689  ac_status=$?
6690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); }; } &&
6692	 { ac_try='test -s conftest.$ac_objext'
6693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694  (eval $ac_try) 2>&5
6695  ac_status=$?
6696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); }; }; then
6698  ac_header_compiler=yes
6699else
6700  echo "$as_me: failed program was:" >&5
6701sed 's/^/| /' conftest.$ac_ext >&5
6702
6703ac_header_compiler=no
6704fi
6705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6707echo "${ECHO_T}$ac_header_compiler" >&6
6708
6709# Is the header present?
6710echo "$as_me:$LINENO: checking $ac_header presence" >&5
6711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6712cat >conftest.$ac_ext <<_ACEOF
6713/* confdefs.h.  */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h.  */
6718@%:@include <$ac_header>
6719_ACEOF
6720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6721  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6722  ac_status=$?
6723  grep -v '^ *+' conftest.er1 >conftest.err
6724  rm -f conftest.er1
6725  cat conftest.err >&5
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); } >/dev/null; then
6728  if test -s conftest.err; then
6729    ac_cpp_err=$ac_c_preproc_warn_flag
6730    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6731  else
6732    ac_cpp_err=
6733  fi
6734else
6735  ac_cpp_err=yes
6736fi
6737if test -z "$ac_cpp_err"; then
6738  ac_header_preproc=yes
6739else
6740  echo "$as_me: failed program was:" >&5
6741sed 's/^/| /' conftest.$ac_ext >&5
6742
6743  ac_header_preproc=no
6744fi
6745rm -f conftest.err conftest.$ac_ext
6746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6747echo "${ECHO_T}$ac_header_preproc" >&6
6748
6749# So?  What about this header?
6750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6751  yes:no: )
6752    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6754    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6756    ac_header_preproc=yes
6757    ;;
6758  no:yes:* )
6759    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6761    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6762echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6763    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6765    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6766echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6767    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6769    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6771    (
6772      cat <<\_ASBOX
6773@%:@@%:@ ------------------------------------------ @%:@@%:@
6774@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
6775@%:@@%:@ ------------------------------------------ @%:@@%:@
6776_ASBOX
6777    ) |
6778      sed "s/^/$as_me: WARNING:     /" >&2
6779    ;;
6780esac
6781echo "$as_me:$LINENO: checking for $ac_header" >&5
6782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6783if eval "test \"\${$as_ac_Header+set}\" = set"; then
6784  echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786  eval "$as_ac_Header=\$ac_header_preproc"
6787fi
6788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6790
6791fi
6792if test `eval echo '${'$as_ac_Header'}'` = yes; then
6793  cat >>confdefs.h <<_ACEOF
6794@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6795_ACEOF
6796
6797fi
6798
6799done
6800
6801
6802
6803
6804
6805
6806
6807    found=0;
6808    for f in netinet/in.h sys/in.h sys/netinet/in.h; do
6809
6810for ac_header in $f
6811do
6812as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6813if eval "test \"\${$as_ac_Header+set}\" = set"; then
6814  echo "$as_me:$LINENO: checking for $ac_header" >&5
6815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6816if eval "test \"\${$as_ac_Header+set}\" = set"; then
6817  echo $ECHO_N "(cached) $ECHO_C" >&6
6818fi
6819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6821else
6822  # Is the header compilable?
6823echo "$as_me:$LINENO: checking $ac_header usability" >&5
6824echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6825cat >conftest.$ac_ext <<_ACEOF
6826/* confdefs.h.  */
6827_ACEOF
6828cat confdefs.h >>conftest.$ac_ext
6829cat >>conftest.$ac_ext <<_ACEOF
6830/* end confdefs.h.  */
6831$ac_includes_default
6832@%:@include <$ac_header>
6833_ACEOF
6834rm -f conftest.$ac_objext
6835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6836  (eval $ac_compile) 2>conftest.er1
6837  ac_status=$?
6838  grep -v '^ *+' conftest.er1 >conftest.err
6839  rm -f conftest.er1
6840  cat conftest.err >&5
6841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842  (exit $ac_status); } &&
6843	 { ac_try='test -z "$ac_c_werror_flag"
6844			 || test ! -s conftest.err'
6845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846  (eval $ac_try) 2>&5
6847  ac_status=$?
6848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849  (exit $ac_status); }; } &&
6850	 { ac_try='test -s conftest.$ac_objext'
6851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852  (eval $ac_try) 2>&5
6853  ac_status=$?
6854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855  (exit $ac_status); }; }; then
6856  ac_header_compiler=yes
6857else
6858  echo "$as_me: failed program was:" >&5
6859sed 's/^/| /' conftest.$ac_ext >&5
6860
6861ac_header_compiler=no
6862fi
6863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6865echo "${ECHO_T}$ac_header_compiler" >&6
6866
6867# Is the header present?
6868echo "$as_me:$LINENO: checking $ac_header presence" >&5
6869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6870cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h.  */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h.  */
6876@%:@include <$ac_header>
6877_ACEOF
6878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6879  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6880  ac_status=$?
6881  grep -v '^ *+' conftest.er1 >conftest.err
6882  rm -f conftest.er1
6883  cat conftest.err >&5
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); } >/dev/null; then
6886  if test -s conftest.err; then
6887    ac_cpp_err=$ac_c_preproc_warn_flag
6888    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6889  else
6890    ac_cpp_err=
6891  fi
6892else
6893  ac_cpp_err=yes
6894fi
6895if test -z "$ac_cpp_err"; then
6896  ac_header_preproc=yes
6897else
6898  echo "$as_me: failed program was:" >&5
6899sed 's/^/| /' conftest.$ac_ext >&5
6900
6901  ac_header_preproc=no
6902fi
6903rm -f conftest.err conftest.$ac_ext
6904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6905echo "${ECHO_T}$ac_header_preproc" >&6
6906
6907# So?  What about this header?
6908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6909  yes:no: )
6910    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6912    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6914    ac_header_preproc=yes
6915    ;;
6916  no:yes:* )
6917    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6919    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6920echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6921    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6923    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6924echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6925    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6927    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6929    (
6930      cat <<\_ASBOX
6931@%:@@%:@ ------------------------------------------ @%:@@%:@
6932@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
6933@%:@@%:@ ------------------------------------------ @%:@@%:@
6934_ASBOX
6935    ) |
6936      sed "s/^/$as_me: WARNING:     /" >&2
6937    ;;
6938esac
6939echo "$as_me:$LINENO: checking for $ac_header" >&5
6940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6941if eval "test \"\${$as_ac_Header+set}\" = set"; then
6942  echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944  eval "$as_ac_Header=\$ac_header_preproc"
6945fi
6946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6948
6949fi
6950if test `eval echo '${'$as_ac_Header'}'` = yes; then
6951  cat >>confdefs.h <<_ACEOF
6952@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6953_ACEOF
6954 cat >>confdefs.h <<_ACEOF
6955@%:@define NETINET_IN_H <$f>
6956_ACEOF
6957
6958	    found=1
6959	    break
6960fi
6961
6962done
6963
6964	if test $found -eq 1; then break; fi
6965    done
6966    if test $found -eq 1; then
6967	:;
6968    else
6969	:; { echo "$as_me:$LINENO: WARNING: I will use my own internet structures.  Good luck." >&5
6970echo "$as_me: WARNING: I will use my own internet structures.  Good luck." >&2;}
6971    fi
6972    unset found
6973
6974
6975
6976    found=0;
6977    for f in arpa/inet.h sys/inet.h; do
6978
6979for ac_header in $f
6980do
6981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982if eval "test \"\${$as_ac_Header+set}\" = set"; then
6983  echo "$as_me:$LINENO: checking for $ac_header" >&5
6984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986  echo $ECHO_N "(cached) $ECHO_C" >&6
6987fi
6988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6990else
6991  # Is the header compilable?
6992echo "$as_me:$LINENO: checking $ac_header usability" >&5
6993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6994cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h.  */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h.  */
7000$ac_includes_default
7001@%:@include <$ac_header>
7002_ACEOF
7003rm -f conftest.$ac_objext
7004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005  (eval $ac_compile) 2>conftest.er1
7006  ac_status=$?
7007  grep -v '^ *+' conftest.er1 >conftest.err
7008  rm -f conftest.er1
7009  cat conftest.err >&5
7010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011  (exit $ac_status); } &&
7012	 { ac_try='test -z "$ac_c_werror_flag"
7013			 || test ! -s conftest.err'
7014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015  (eval $ac_try) 2>&5
7016  ac_status=$?
7017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018  (exit $ac_status); }; } &&
7019	 { ac_try='test -s conftest.$ac_objext'
7020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021  (eval $ac_try) 2>&5
7022  ac_status=$?
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); }; }; then
7025  ac_header_compiler=yes
7026else
7027  echo "$as_me: failed program was:" >&5
7028sed 's/^/| /' conftest.$ac_ext >&5
7029
7030ac_header_compiler=no
7031fi
7032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7034echo "${ECHO_T}$ac_header_compiler" >&6
7035
7036# Is the header present?
7037echo "$as_me:$LINENO: checking $ac_header presence" >&5
7038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7039cat >conftest.$ac_ext <<_ACEOF
7040/* confdefs.h.  */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h.  */
7045@%:@include <$ac_header>
7046_ACEOF
7047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7048  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7049  ac_status=$?
7050  grep -v '^ *+' conftest.er1 >conftest.err
7051  rm -f conftest.er1
7052  cat conftest.err >&5
7053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054  (exit $ac_status); } >/dev/null; then
7055  if test -s conftest.err; then
7056    ac_cpp_err=$ac_c_preproc_warn_flag
7057    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7058  else
7059    ac_cpp_err=
7060  fi
7061else
7062  ac_cpp_err=yes
7063fi
7064if test -z "$ac_cpp_err"; then
7065  ac_header_preproc=yes
7066else
7067  echo "$as_me: failed program was:" >&5
7068sed 's/^/| /' conftest.$ac_ext >&5
7069
7070  ac_header_preproc=no
7071fi
7072rm -f conftest.err conftest.$ac_ext
7073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7074echo "${ECHO_T}$ac_header_preproc" >&6
7075
7076# So?  What about this header?
7077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7078  yes:no: )
7079    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7081    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7083    ac_header_preproc=yes
7084    ;;
7085  no:yes:* )
7086    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7088    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7089echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7090    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7092    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7093echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7094    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7096    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7098    (
7099      cat <<\_ASBOX
7100@%:@@%:@ ------------------------------------------ @%:@@%:@
7101@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
7102@%:@@%:@ ------------------------------------------ @%:@@%:@
7103_ASBOX
7104    ) |
7105      sed "s/^/$as_me: WARNING:     /" >&2
7106    ;;
7107esac
7108echo "$as_me:$LINENO: checking for $ac_header" >&5
7109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7110if eval "test \"\${$as_ac_Header+set}\" = set"; then
7111  echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113  eval "$as_ac_Header=\$ac_header_preproc"
7114fi
7115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7117
7118fi
7119if test `eval echo '${'$as_ac_Header'}'` = yes; then
7120  cat >>confdefs.h <<_ACEOF
7121@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7122_ACEOF
7123 cat >>confdefs.h <<_ACEOF
7124@%:@define ARPA_INET_H <$f>
7125_ACEOF
7126
7127	    found=1
7128	    break
7129fi
7130
7131done
7132
7133	if test $found -eq 1; then break; fi
7134    done
7135    if test $found -eq 1; then
7136	:;
7137    else
7138	:;
7139    fi
7140    unset found
7141
7142
7143
7144
7145    found=0;
7146    for f in netdb.h sys/netdb.h; do
7147
7148for ac_header in $f
7149do
7150as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7151if eval "test \"\${$as_ac_Header+set}\" = set"; then
7152  echo "$as_me:$LINENO: checking for $ac_header" >&5
7153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7154if eval "test \"\${$as_ac_Header+set}\" = set"; then
7155  echo $ECHO_N "(cached) $ECHO_C" >&6
7156fi
7157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7159else
7160  # Is the header compilable?
7161echo "$as_me:$LINENO: checking $ac_header usability" >&5
7162echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7163cat >conftest.$ac_ext <<_ACEOF
7164/* confdefs.h.  */
7165_ACEOF
7166cat confdefs.h >>conftest.$ac_ext
7167cat >>conftest.$ac_ext <<_ACEOF
7168/* end confdefs.h.  */
7169$ac_includes_default
7170@%:@include <$ac_header>
7171_ACEOF
7172rm -f conftest.$ac_objext
7173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174  (eval $ac_compile) 2>conftest.er1
7175  ac_status=$?
7176  grep -v '^ *+' conftest.er1 >conftest.err
7177  rm -f conftest.er1
7178  cat conftest.err >&5
7179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180  (exit $ac_status); } &&
7181	 { ac_try='test -z "$ac_c_werror_flag"
7182			 || test ! -s conftest.err'
7183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184  (eval $ac_try) 2>&5
7185  ac_status=$?
7186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187  (exit $ac_status); }; } &&
7188	 { ac_try='test -s conftest.$ac_objext'
7189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190  (eval $ac_try) 2>&5
7191  ac_status=$?
7192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193  (exit $ac_status); }; }; then
7194  ac_header_compiler=yes
7195else
7196  echo "$as_me: failed program was:" >&5
7197sed 's/^/| /' conftest.$ac_ext >&5
7198
7199ac_header_compiler=no
7200fi
7201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7202echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7203echo "${ECHO_T}$ac_header_compiler" >&6
7204
7205# Is the header present?
7206echo "$as_me:$LINENO: checking $ac_header presence" >&5
7207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7208cat >conftest.$ac_ext <<_ACEOF
7209/* confdefs.h.  */
7210_ACEOF
7211cat confdefs.h >>conftest.$ac_ext
7212cat >>conftest.$ac_ext <<_ACEOF
7213/* end confdefs.h.  */
7214@%:@include <$ac_header>
7215_ACEOF
7216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7217  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7218  ac_status=$?
7219  grep -v '^ *+' conftest.er1 >conftest.err
7220  rm -f conftest.er1
7221  cat conftest.err >&5
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); } >/dev/null; then
7224  if test -s conftest.err; then
7225    ac_cpp_err=$ac_c_preproc_warn_flag
7226    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7227  else
7228    ac_cpp_err=
7229  fi
7230else
7231  ac_cpp_err=yes
7232fi
7233if test -z "$ac_cpp_err"; then
7234  ac_header_preproc=yes
7235else
7236  echo "$as_me: failed program was:" >&5
7237sed 's/^/| /' conftest.$ac_ext >&5
7238
7239  ac_header_preproc=no
7240fi
7241rm -f conftest.err conftest.$ac_ext
7242echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7243echo "${ECHO_T}$ac_header_preproc" >&6
7244
7245# So?  What about this header?
7246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7247  yes:no: )
7248    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7249echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7250    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7251echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7252    ac_header_preproc=yes
7253    ;;
7254  no:yes:* )
7255    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7256echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7257    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7258echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7259    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7260echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7261    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7262echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7263    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7264echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7265    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7266echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7267    (
7268      cat <<\_ASBOX
7269@%:@@%:@ ------------------------------------------ @%:@@%:@
7270@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
7271@%:@@%:@ ------------------------------------------ @%:@@%:@
7272_ASBOX
7273    ) |
7274      sed "s/^/$as_me: WARNING:     /" >&2
7275    ;;
7276esac
7277echo "$as_me:$LINENO: checking for $ac_header" >&5
7278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7279if eval "test \"\${$as_ac_Header+set}\" = set"; then
7280  echo $ECHO_N "(cached) $ECHO_C" >&6
7281else
7282  eval "$as_ac_Header=\$ac_header_preproc"
7283fi
7284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7286
7287fi
7288if test `eval echo '${'$as_ac_Header'}'` = yes; then
7289  cat >>confdefs.h <<_ACEOF
7290@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7291_ACEOF
7292 cat >>confdefs.h <<_ACEOF
7293@%:@define NETDB_H <$f>
7294_ACEOF
7295
7296	    found=1
7297	    break
7298fi
7299
7300done
7301
7302	if test $found -eq 1; then break; fi
7303    done
7304    if test $found -eq 1; then
7305	:;
7306    else
7307	:; { { echo "$as_me:$LINENO: error: can't find netdb.h" >&5
7308echo "$as_me: error: can't find netdb.h" >&2;}
7309   { (exit 1); exit 1; }; }
7310    fi
7311    unset found
7312
7313
7314echo "$as_me:$LINENO: checking whether struct sockaddr has sa_len" >&5
7315echo $ECHO_N "checking whether struct sockaddr has sa_len... $ECHO_C" >&6
7316if test "${tf_cv_sa_len+set}" = set; then
7317  echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319  cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h.  */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h.  */
7325
7326#include<sys/types.h>
7327#include <sys/socket.h>
7328int
7329main ()
7330{
7331struct sockaddr sa; return sa.sa_len;
7332  ;
7333  return 0;
7334}
7335_ACEOF
7336rm -f conftest.$ac_objext
7337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338  (eval $ac_compile) 2>conftest.er1
7339  ac_status=$?
7340  grep -v '^ *+' conftest.er1 >conftest.err
7341  rm -f conftest.er1
7342  cat conftest.err >&5
7343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344  (exit $ac_status); } &&
7345	 { ac_try='test -z "$ac_c_werror_flag"
7346			 || test ! -s conftest.err'
7347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348  (eval $ac_try) 2>&5
7349  ac_status=$?
7350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351  (exit $ac_status); }; } &&
7352	 { ac_try='test -s conftest.$ac_objext'
7353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354  (eval $ac_try) 2>&5
7355  ac_status=$?
7356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357  (exit $ac_status); }; }; then
7358  tf_cv_sa_len=yes
7359else
7360  echo "$as_me: failed program was:" >&5
7361sed 's/^/| /' conftest.$ac_ext >&5
7362
7363tf_cv_sa_len=no
7364fi
7365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7366fi
7367echo "$as_me:$LINENO: result: $tf_cv_sa_len" >&5
7368echo "${ECHO_T}$tf_cv_sa_len" >&6
7369
7370if test "${tf_cv_sa_len}" = "yes"; then
7371    cat >>confdefs.h <<\_ACEOF
7372@%:@define HAVE_SOCKADDR_SA_LEN 1
7373_ACEOF
7374
7375fi
7376
7377
7378
7379
7380
7381
7382for ac_header in termios.h termio.h sgtty.h
7383do
7384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7385if eval "test \"\${$as_ac_Header+set}\" = set"; then
7386  echo "$as_me:$LINENO: checking for $ac_header" >&5
7387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7388if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389  echo $ECHO_N "(cached) $ECHO_C" >&6
7390fi
7391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7393else
7394  # Is the header compilable?
7395echo "$as_me:$LINENO: checking $ac_header usability" >&5
7396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7397cat >conftest.$ac_ext <<_ACEOF
7398/* confdefs.h.  */
7399_ACEOF
7400cat confdefs.h >>conftest.$ac_ext
7401cat >>conftest.$ac_ext <<_ACEOF
7402/* end confdefs.h.  */
7403$ac_includes_default
7404@%:@include <$ac_header>
7405_ACEOF
7406rm -f conftest.$ac_objext
7407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408  (eval $ac_compile) 2>conftest.er1
7409  ac_status=$?
7410  grep -v '^ *+' conftest.er1 >conftest.err
7411  rm -f conftest.er1
7412  cat conftest.err >&5
7413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414  (exit $ac_status); } &&
7415	 { ac_try='test -z "$ac_c_werror_flag"
7416			 || test ! -s conftest.err'
7417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418  (eval $ac_try) 2>&5
7419  ac_status=$?
7420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421  (exit $ac_status); }; } &&
7422	 { ac_try='test -s conftest.$ac_objext'
7423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424  (eval $ac_try) 2>&5
7425  ac_status=$?
7426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427  (exit $ac_status); }; }; then
7428  ac_header_compiler=yes
7429else
7430  echo "$as_me: failed program was:" >&5
7431sed 's/^/| /' conftest.$ac_ext >&5
7432
7433ac_header_compiler=no
7434fi
7435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7437echo "${ECHO_T}$ac_header_compiler" >&6
7438
7439# Is the header present?
7440echo "$as_me:$LINENO: checking $ac_header presence" >&5
7441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7442cat >conftest.$ac_ext <<_ACEOF
7443/* confdefs.h.  */
7444_ACEOF
7445cat confdefs.h >>conftest.$ac_ext
7446cat >>conftest.$ac_ext <<_ACEOF
7447/* end confdefs.h.  */
7448@%:@include <$ac_header>
7449_ACEOF
7450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7451  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7452  ac_status=$?
7453  grep -v '^ *+' conftest.er1 >conftest.err
7454  rm -f conftest.er1
7455  cat conftest.err >&5
7456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457  (exit $ac_status); } >/dev/null; then
7458  if test -s conftest.err; then
7459    ac_cpp_err=$ac_c_preproc_warn_flag
7460    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7461  else
7462    ac_cpp_err=
7463  fi
7464else
7465  ac_cpp_err=yes
7466fi
7467if test -z "$ac_cpp_err"; then
7468  ac_header_preproc=yes
7469else
7470  echo "$as_me: failed program was:" >&5
7471sed 's/^/| /' conftest.$ac_ext >&5
7472
7473  ac_header_preproc=no
7474fi
7475rm -f conftest.err conftest.$ac_ext
7476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7477echo "${ECHO_T}$ac_header_preproc" >&6
7478
7479# So?  What about this header?
7480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7481  yes:no: )
7482    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7484    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7486    ac_header_preproc=yes
7487    ;;
7488  no:yes:* )
7489    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7491    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7492echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7493    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7495    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7496echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7497    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7499    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7501    (
7502      cat <<\_ASBOX
7503@%:@@%:@ ------------------------------------------ @%:@@%:@
7504@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
7505@%:@@%:@ ------------------------------------------ @%:@@%:@
7506_ASBOX
7507    ) |
7508      sed "s/^/$as_me: WARNING:     /" >&2
7509    ;;
7510esac
7511echo "$as_me:$LINENO: checking for $ac_header" >&5
7512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7513if eval "test \"\${$as_ac_Header+set}\" = set"; then
7514  echo $ECHO_N "(cached) $ECHO_C" >&6
7515else
7516  eval "$as_ac_Header=\$ac_header_preproc"
7517fi
7518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7520
7521fi
7522if test `eval echo '${'$as_ac_Header'}'` = yes; then
7523  cat >>confdefs.h <<_ACEOF
7524@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7525_ACEOF
7526 break
7527fi
7528
7529done
7530
7531
7532cat >conftest.$ac_ext <<_ACEOF
7533/* confdefs.h.  */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h.  */
7538#include <sys/ptem.h>
7539
7540_ACEOF
7541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542  $EGREP "struct winsize" >/dev/null 2>&1; then
7543  cat >>confdefs.h <<\_ACEOF
7544@%:@define NEED_PTEM_H 1
7545_ACEOF
7546
7547fi
7548rm -f conftest*
7549
7550
7551
7552
7553
7554
7555
7556echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7557echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7558if test "${ac_cv_type_signal+set}" = set; then
7559  echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561  cat >conftest.$ac_ext <<_ACEOF
7562/* confdefs.h.  */
7563_ACEOF
7564cat confdefs.h >>conftest.$ac_ext
7565cat >>conftest.$ac_ext <<_ACEOF
7566/* end confdefs.h.  */
7567#include <sys/types.h>
7568#include <signal.h>
7569#ifdef signal
7570# undef signal
7571#endif
7572#ifdef __cplusplus
7573extern "C" void (*signal (int, void (*)(int)))(int);
7574#else
7575void (*signal ()) ();
7576#endif
7577
7578int
7579main ()
7580{
7581int i;
7582  ;
7583  return 0;
7584}
7585_ACEOF
7586rm -f conftest.$ac_objext
7587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588  (eval $ac_compile) 2>conftest.er1
7589  ac_status=$?
7590  grep -v '^ *+' conftest.er1 >conftest.err
7591  rm -f conftest.er1
7592  cat conftest.err >&5
7593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594  (exit $ac_status); } &&
7595	 { ac_try='test -z "$ac_c_werror_flag"
7596			 || test ! -s conftest.err'
7597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598  (eval $ac_try) 2>&5
7599  ac_status=$?
7600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601  (exit $ac_status); }; } &&
7602	 { ac_try='test -s conftest.$ac_objext'
7603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604  (eval $ac_try) 2>&5
7605  ac_status=$?
7606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607  (exit $ac_status); }; }; then
7608  ac_cv_type_signal=void
7609else
7610  echo "$as_me: failed program was:" >&5
7611sed 's/^/| /' conftest.$ac_ext >&5
7612
7613ac_cv_type_signal=int
7614fi
7615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7616fi
7617echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7618echo "${ECHO_T}$ac_cv_type_signal" >&6
7619
7620cat >>confdefs.h <<_ACEOF
7621@%:@define RETSIGTYPE $ac_cv_type_signal
7622_ACEOF
7623
7624
7625echo "$as_me:$LINENO: checking for pid_t" >&5
7626echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7627if test "${ac_cv_type_pid_t+set}" = set; then
7628  echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630  cat >conftest.$ac_ext <<_ACEOF
7631/* confdefs.h.  */
7632_ACEOF
7633cat confdefs.h >>conftest.$ac_ext
7634cat >>conftest.$ac_ext <<_ACEOF
7635/* end confdefs.h.  */
7636$ac_includes_default
7637int
7638main ()
7639{
7640if ((pid_t *) 0)
7641  return 0;
7642if (sizeof (pid_t))
7643  return 0;
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648rm -f conftest.$ac_objext
7649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650  (eval $ac_compile) 2>conftest.er1
7651  ac_status=$?
7652  grep -v '^ *+' conftest.er1 >conftest.err
7653  rm -f conftest.er1
7654  cat conftest.err >&5
7655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656  (exit $ac_status); } &&
7657	 { ac_try='test -z "$ac_c_werror_flag"
7658			 || test ! -s conftest.err'
7659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660  (eval $ac_try) 2>&5
7661  ac_status=$?
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); }; } &&
7664	 { ac_try='test -s conftest.$ac_objext'
7665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666  (eval $ac_try) 2>&5
7667  ac_status=$?
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); }; }; then
7670  ac_cv_type_pid_t=yes
7671else
7672  echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675ac_cv_type_pid_t=no
7676fi
7677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678fi
7679echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7680echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7681if test $ac_cv_type_pid_t = yes; then
7682  :
7683else
7684
7685cat >>confdefs.h <<_ACEOF
7686@%:@define pid_t int
7687_ACEOF
7688
7689fi
7690
7691echo "$as_me:$LINENO: checking for size_t" >&5
7692echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7693if test "${ac_cv_type_size_t+set}" = set; then
7694  echo $ECHO_N "(cached) $ECHO_C" >&6
7695else
7696  cat >conftest.$ac_ext <<_ACEOF
7697/* confdefs.h.  */
7698_ACEOF
7699cat confdefs.h >>conftest.$ac_ext
7700cat >>conftest.$ac_ext <<_ACEOF
7701/* end confdefs.h.  */
7702$ac_includes_default
7703int
7704main ()
7705{
7706if ((size_t *) 0)
7707  return 0;
7708if (sizeof (size_t))
7709  return 0;
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714rm -f conftest.$ac_objext
7715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716  (eval $ac_compile) 2>conftest.er1
7717  ac_status=$?
7718  grep -v '^ *+' conftest.er1 >conftest.err
7719  rm -f conftest.er1
7720  cat conftest.err >&5
7721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722  (exit $ac_status); } &&
7723	 { ac_try='test -z "$ac_c_werror_flag"
7724			 || test ! -s conftest.err'
7725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726  (eval $ac_try) 2>&5
7727  ac_status=$?
7728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729  (exit $ac_status); }; } &&
7730	 { ac_try='test -s conftest.$ac_objext'
7731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732  (eval $ac_try) 2>&5
7733  ac_status=$?
7734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735  (exit $ac_status); }; }; then
7736  ac_cv_type_size_t=yes
7737else
7738  echo "$as_me: failed program was:" >&5
7739sed 's/^/| /' conftest.$ac_ext >&5
7740
7741ac_cv_type_size_t=no
7742fi
7743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7744fi
7745echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7746echo "${ECHO_T}$ac_cv_type_size_t" >&6
7747if test $ac_cv_type_size_t = yes; then
7748  :
7749else
7750
7751cat >>confdefs.h <<_ACEOF
7752@%:@define size_t unsigned
7753_ACEOF
7754
7755fi
7756
7757echo "$as_me:$LINENO: checking for time_t" >&5
7758echo $ECHO_N "checking for time_t... $ECHO_C" >&6
7759if test "${ac_cv_type_time_t+set}" = set; then
7760  echo $ECHO_N "(cached) $ECHO_C" >&6
7761else
7762  cat >conftest.$ac_ext <<_ACEOF
7763/* confdefs.h.  */
7764_ACEOF
7765cat confdefs.h >>conftest.$ac_ext
7766cat >>conftest.$ac_ext <<_ACEOF
7767/* end confdefs.h.  */
7768$ac_includes_default
7769int
7770main ()
7771{
7772if ((time_t *) 0)
7773  return 0;
7774if (sizeof (time_t))
7775  return 0;
7776  ;
7777  return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext
7781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782  (eval $ac_compile) 2>conftest.er1
7783  ac_status=$?
7784  grep -v '^ *+' conftest.er1 >conftest.err
7785  rm -f conftest.er1
7786  cat conftest.err >&5
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); } &&
7789	 { ac_try='test -z "$ac_c_werror_flag"
7790			 || test ! -s conftest.err'
7791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792  (eval $ac_try) 2>&5
7793  ac_status=$?
7794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795  (exit $ac_status); }; } &&
7796	 { ac_try='test -s conftest.$ac_objext'
7797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798  (eval $ac_try) 2>&5
7799  ac_status=$?
7800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801  (exit $ac_status); }; }; then
7802  ac_cv_type_time_t=yes
7803else
7804  echo "$as_me: failed program was:" >&5
7805sed 's/^/| /' conftest.$ac_ext >&5
7806
7807ac_cv_type_time_t=no
7808fi
7809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7810fi
7811echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
7812echo "${ECHO_T}$ac_cv_type_time_t" >&6
7813if test $ac_cv_type_time_t = yes; then
7814  :
7815else
7816
7817cat >>confdefs.h <<_ACEOF
7818@%:@define time_t long
7819_ACEOF
7820
7821fi
7822
7823echo "$as_me:$LINENO: checking for socklen_t" >&5
7824echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
7825if test "${ac_cv_type_socklen_t+set}" = set; then
7826  echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828  cat >conftest.$ac_ext <<_ACEOF
7829/* confdefs.h.  */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
7833/* end confdefs.h.  */
7834
7835#if STDC_HEADERS
7836#include <stdlib.h>
7837#include <stddef.h>
7838#endif
7839
7840#include <sys/types.h>
7841#include <sys/socket.h>
7842
7843
7844_ACEOF
7845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7846  $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7847  ac_cv_type_socklen_t=yes
7848else
7849  ac_cv_type_socklen_t=no
7850fi
7851rm -f conftest*
7852
7853fi
7854echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7855echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
7856if test $ac_cv_type_socklen_t = no; then
7857  cat >>confdefs.h <<\_ACEOF
7858@%:@define socklen_t int
7859_ACEOF
7860
7861fi
7862
7863
7864
7865
7866
7867
7868
7869for ac_func in strftime
7870do
7871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7872echo "$as_me:$LINENO: checking for $ac_func" >&5
7873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7874if eval "test \"\${$as_ac_var+set}\" = set"; then
7875  echo $ECHO_N "(cached) $ECHO_C" >&6
7876else
7877  cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h.  */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h.  */
7883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7884   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7885#define $ac_func innocuous_$ac_func
7886
7887/* System header to define __stub macros and hopefully few prototypes,
7888    which can conflict with char $ac_func (); below.
7889    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7890    <limits.h> exists even on freestanding compilers.  */
7891
7892#ifdef __STDC__
7893# include <limits.h>
7894#else
7895# include <assert.h>
7896#endif
7897
7898#undef $ac_func
7899
7900/* Override any gcc2 internal prototype to avoid an error.  */
7901#ifdef __cplusplus
7902extern "C"
7903{
7904#endif
7905/* We use char because int might match the return type of a gcc2
7906   builtin and then its argument prototype would still apply.  */
7907char $ac_func ();
7908/* The GNU C library defines this for functions which it implements
7909    to always fail with ENOSYS.  Some functions are actually named
7910    something starting with __ and the normal name is an alias.  */
7911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7912choke me
7913#else
7914char (*f) () = $ac_func;
7915#endif
7916#ifdef __cplusplus
7917}
7918#endif
7919
7920int
7921main ()
7922{
7923return f != $ac_func;
7924  ;
7925  return 0;
7926}
7927_ACEOF
7928rm -f conftest.$ac_objext conftest$ac_exeext
7929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7930  (eval $ac_link) 2>conftest.er1
7931  ac_status=$?
7932  grep -v '^ *+' conftest.er1 >conftest.err
7933  rm -f conftest.er1
7934  cat conftest.err >&5
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); } &&
7937	 { ac_try='test -z "$ac_c_werror_flag"
7938			 || test ! -s conftest.err'
7939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940  (eval $ac_try) 2>&5
7941  ac_status=$?
7942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943  (exit $ac_status); }; } &&
7944	 { ac_try='test -s conftest$ac_exeext'
7945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946  (eval $ac_try) 2>&5
7947  ac_status=$?
7948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); }; }; then
7950  eval "$as_ac_var=yes"
7951else
7952  echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955eval "$as_ac_var=no"
7956fi
7957rm -f conftest.err conftest.$ac_objext \
7958      conftest$ac_exeext conftest.$ac_ext
7959fi
7960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7961echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7962if test `eval echo '${'$as_ac_var'}'` = yes; then
7963  cat >>confdefs.h <<_ACEOF
7964@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7965_ACEOF
7966
7967else
7968  # strftime is in -lintl on SCO UNIX.
7969echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
7970echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
7971if test "${ac_cv_lib_intl_strftime+set}" = set; then
7972  echo $ECHO_N "(cached) $ECHO_C" >&6
7973else
7974  ac_check_lib_save_LIBS=$LIBS
7975LIBS="-lintl  $LIBS"
7976cat >conftest.$ac_ext <<_ACEOF
7977/* confdefs.h.  */
7978_ACEOF
7979cat confdefs.h >>conftest.$ac_ext
7980cat >>conftest.$ac_ext <<_ACEOF
7981/* end confdefs.h.  */
7982
7983/* Override any gcc2 internal prototype to avoid an error.  */
7984#ifdef __cplusplus
7985extern "C"
7986#endif
7987/* We use char because int might match the return type of a gcc2
7988   builtin and then its argument prototype would still apply.  */
7989char strftime ();
7990int
7991main ()
7992{
7993strftime ();
7994  ;
7995  return 0;
7996}
7997_ACEOF
7998rm -f conftest.$ac_objext conftest$ac_exeext
7999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000  (eval $ac_link) 2>conftest.er1
8001  ac_status=$?
8002  grep -v '^ *+' conftest.er1 >conftest.err
8003  rm -f conftest.er1
8004  cat conftest.err >&5
8005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006  (exit $ac_status); } &&
8007	 { ac_try='test -z "$ac_c_werror_flag"
8008			 || test ! -s conftest.err'
8009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010  (eval $ac_try) 2>&5
8011  ac_status=$?
8012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013  (exit $ac_status); }; } &&
8014	 { ac_try='test -s conftest$ac_exeext'
8015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016  (eval $ac_try) 2>&5
8017  ac_status=$?
8018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019  (exit $ac_status); }; }; then
8020  ac_cv_lib_intl_strftime=yes
8021else
8022  echo "$as_me: failed program was:" >&5
8023sed 's/^/| /' conftest.$ac_ext >&5
8024
8025ac_cv_lib_intl_strftime=no
8026fi
8027rm -f conftest.err conftest.$ac_objext \
8028      conftest$ac_exeext conftest.$ac_ext
8029LIBS=$ac_check_lib_save_LIBS
8030fi
8031echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
8032echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
8033if test $ac_cv_lib_intl_strftime = yes; then
8034  cat >>confdefs.h <<\_ACEOF
8035@%:@define HAVE_STRFTIME 1
8036_ACEOF
8037
8038LIBS="-lintl $LIBS"
8039fi
8040
8041fi
8042done
8043
8044
8045
8046for ac_func in h_errno
8047do
8048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8049echo "$as_me:$LINENO: checking for $ac_func" >&5
8050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8051if eval "test \"\${$as_ac_var+set}\" = set"; then
8052  echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054  cat >conftest.$ac_ext <<_ACEOF
8055/* confdefs.h.  */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h.  */
8060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8061   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8062#define $ac_func innocuous_$ac_func
8063
8064/* System header to define __stub macros and hopefully few prototypes,
8065    which can conflict with char $ac_func (); below.
8066    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8067    <limits.h> exists even on freestanding compilers.  */
8068
8069#ifdef __STDC__
8070# include <limits.h>
8071#else
8072# include <assert.h>
8073#endif
8074
8075#undef $ac_func
8076
8077/* Override any gcc2 internal prototype to avoid an error.  */
8078#ifdef __cplusplus
8079extern "C"
8080{
8081#endif
8082/* We use char because int might match the return type of a gcc2
8083   builtin and then its argument prototype would still apply.  */
8084char $ac_func ();
8085/* The GNU C library defines this for functions which it implements
8086    to always fail with ENOSYS.  Some functions are actually named
8087    something starting with __ and the normal name is an alias.  */
8088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8089choke me
8090#else
8091char (*f) () = $ac_func;
8092#endif
8093#ifdef __cplusplus
8094}
8095#endif
8096
8097int
8098main ()
8099{
8100return f != $ac_func;
8101  ;
8102  return 0;
8103}
8104_ACEOF
8105rm -f conftest.$ac_objext conftest$ac_exeext
8106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107  (eval $ac_link) 2>conftest.er1
8108  ac_status=$?
8109  grep -v '^ *+' conftest.er1 >conftest.err
8110  rm -f conftest.er1
8111  cat conftest.err >&5
8112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113  (exit $ac_status); } &&
8114	 { ac_try='test -z "$ac_c_werror_flag"
8115			 || test ! -s conftest.err'
8116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117  (eval $ac_try) 2>&5
8118  ac_status=$?
8119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120  (exit $ac_status); }; } &&
8121	 { ac_try='test -s conftest$ac_exeext'
8122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123  (eval $ac_try) 2>&5
8124  ac_status=$?
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); }; }; then
8127  eval "$as_ac_var=yes"
8128else
8129  echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132eval "$as_ac_var=no"
8133fi
8134rm -f conftest.err conftest.$ac_objext \
8135      conftest$ac_exeext conftest.$ac_ext
8136fi
8137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8138echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8139if test `eval echo '${'$as_ac_var'}'` = yes; then
8140  cat >>confdefs.h <<_ACEOF
8141@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8142_ACEOF
8143
8144fi
8145done
8146
8147
8148
8149
8150for ac_func in strstr strtol
8151do
8152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8153echo "$as_me:$LINENO: checking for $ac_func" >&5
8154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8155if eval "test \"\${$as_ac_var+set}\" = set"; then
8156  echo $ECHO_N "(cached) $ECHO_C" >&6
8157else
8158  cat >conftest.$ac_ext <<_ACEOF
8159/* confdefs.h.  */
8160_ACEOF
8161cat confdefs.h >>conftest.$ac_ext
8162cat >>conftest.$ac_ext <<_ACEOF
8163/* end confdefs.h.  */
8164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8165   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8166#define $ac_func innocuous_$ac_func
8167
8168/* System header to define __stub macros and hopefully few prototypes,
8169    which can conflict with char $ac_func (); below.
8170    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8171    <limits.h> exists even on freestanding compilers.  */
8172
8173#ifdef __STDC__
8174# include <limits.h>
8175#else
8176# include <assert.h>
8177#endif
8178
8179#undef $ac_func
8180
8181/* Override any gcc2 internal prototype to avoid an error.  */
8182#ifdef __cplusplus
8183extern "C"
8184{
8185#endif
8186/* We use char because int might match the return type of a gcc2
8187   builtin and then its argument prototype would still apply.  */
8188char $ac_func ();
8189/* The GNU C library defines this for functions which it implements
8190    to always fail with ENOSYS.  Some functions are actually named
8191    something starting with __ and the normal name is an alias.  */
8192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8193choke me
8194#else
8195char (*f) () = $ac_func;
8196#endif
8197#ifdef __cplusplus
8198}
8199#endif
8200
8201int
8202main ()
8203{
8204return f != $ac_func;
8205  ;
8206  return 0;
8207}
8208_ACEOF
8209rm -f conftest.$ac_objext conftest$ac_exeext
8210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211  (eval $ac_link) 2>conftest.er1
8212  ac_status=$?
8213  grep -v '^ *+' conftest.er1 >conftest.err
8214  rm -f conftest.er1
8215  cat conftest.err >&5
8216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217  (exit $ac_status); } &&
8218	 { ac_try='test -z "$ac_c_werror_flag"
8219			 || test ! -s conftest.err'
8220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221  (eval $ac_try) 2>&5
8222  ac_status=$?
8223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224  (exit $ac_status); }; } &&
8225	 { ac_try='test -s conftest$ac_exeext'
8226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227  (eval $ac_try) 2>&5
8228  ac_status=$?
8229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230  (exit $ac_status); }; }; then
8231  eval "$as_ac_var=yes"
8232else
8233  echo "$as_me: failed program was:" >&5
8234sed 's/^/| /' conftest.$ac_ext >&5
8235
8236eval "$as_ac_var=no"
8237fi
8238rm -f conftest.err conftest.$ac_objext \
8239      conftest$ac_exeext conftest.$ac_ext
8240fi
8241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8243if test `eval echo '${'$as_ac_var'}'` = yes; then
8244  cat >>confdefs.h <<_ACEOF
8245@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8246_ACEOF
8247
8248else
8249  { { echo "$as_me:$LINENO: error: Missing required standard function." >&5
8250echo "$as_me: error: Missing required standard function." >&2;}
8251   { (exit 1); exit 1; }; }
8252fi
8253done
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269for ac_func in bcopy bzero connect fileno getcwd \
8270    gethostname gethostbyname getipnodebyname \
8271    getpwnam gettimeofday getwd hstrerror index inet_aton
8272do
8273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8274echo "$as_me:$LINENO: checking for $ac_func" >&5
8275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8276if eval "test \"\${$as_ac_var+set}\" = set"; then
8277  echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279  cat >conftest.$ac_ext <<_ACEOF
8280/* confdefs.h.  */
8281_ACEOF
8282cat confdefs.h >>conftest.$ac_ext
8283cat >>conftest.$ac_ext <<_ACEOF
8284/* end confdefs.h.  */
8285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8286   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8287#define $ac_func innocuous_$ac_func
8288
8289/* System header to define __stub macros and hopefully few prototypes,
8290    which can conflict with char $ac_func (); below.
8291    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8292    <limits.h> exists even on freestanding compilers.  */
8293
8294#ifdef __STDC__
8295# include <limits.h>
8296#else
8297# include <assert.h>
8298#endif
8299
8300#undef $ac_func
8301
8302/* Override any gcc2 internal prototype to avoid an error.  */
8303#ifdef __cplusplus
8304extern "C"
8305{
8306#endif
8307/* We use char because int might match the return type of a gcc2
8308   builtin and then its argument prototype would still apply.  */
8309char $ac_func ();
8310/* The GNU C library defines this for functions which it implements
8311    to always fail with ENOSYS.  Some functions are actually named
8312    something starting with __ and the normal name is an alias.  */
8313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8314choke me
8315#else
8316char (*f) () = $ac_func;
8317#endif
8318#ifdef __cplusplus
8319}
8320#endif
8321
8322int
8323main ()
8324{
8325return f != $ac_func;
8326  ;
8327  return 0;
8328}
8329_ACEOF
8330rm -f conftest.$ac_objext conftest$ac_exeext
8331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8332  (eval $ac_link) 2>conftest.er1
8333  ac_status=$?
8334  grep -v '^ *+' conftest.er1 >conftest.err
8335  rm -f conftest.er1
8336  cat conftest.err >&5
8337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338  (exit $ac_status); } &&
8339	 { ac_try='test -z "$ac_c_werror_flag"
8340			 || test ! -s conftest.err'
8341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342  (eval $ac_try) 2>&5
8343  ac_status=$?
8344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345  (exit $ac_status); }; } &&
8346	 { ac_try='test -s conftest$ac_exeext'
8347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348  (eval $ac_try) 2>&5
8349  ac_status=$?
8350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351  (exit $ac_status); }; }; then
8352  eval "$as_ac_var=yes"
8353else
8354  echo "$as_me: failed program was:" >&5
8355sed 's/^/| /' conftest.$ac_ext >&5
8356
8357eval "$as_ac_var=no"
8358fi
8359rm -f conftest.err conftest.$ac_objext \
8360      conftest$ac_exeext conftest.$ac_ext
8361fi
8362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8364if test `eval echo '${'$as_ac_var'}'` = yes; then
8365  cat >>confdefs.h <<_ACEOF
8366@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8367_ACEOF
8368
8369fi
8370done
8371
8372
8373if test "$enable_getaddrinfo" = "default"; then
8374    if test `uname -s` = 'Darwin'; then
8375	{ echo "$as_me:$LINENO: WARNING: getaddrinfo() may be broken, so IPv6 support is disabled.  Use --enable-getaddrinfo to override." >&5
8376echo "$as_me: WARNING: getaddrinfo() may be broken, so IPv6 support is disabled.  Use --enable-getaddrinfo to override." >&2;}
8377	enable_getaddrinfo=no
8378    else
8379	enable_getaddrinfo=yes
8380    fi
8381fi
8382if test "$enable_getaddrinfo" = "no"; then
8383    enable_inet6=no
8384else
8385
8386
8387for ac_func in getaddrinfo gai_strerror
8388do
8389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8390echo "$as_me:$LINENO: checking for $ac_func" >&5
8391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8392if eval "test \"\${$as_ac_var+set}\" = set"; then
8393  echo $ECHO_N "(cached) $ECHO_C" >&6
8394else
8395  cat >conftest.$ac_ext <<_ACEOF
8396/* confdefs.h.  */
8397_ACEOF
8398cat confdefs.h >>conftest.$ac_ext
8399cat >>conftest.$ac_ext <<_ACEOF
8400/* end confdefs.h.  */
8401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8402   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8403#define $ac_func innocuous_$ac_func
8404
8405/* System header to define __stub macros and hopefully few prototypes,
8406    which can conflict with char $ac_func (); below.
8407    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8408    <limits.h> exists even on freestanding compilers.  */
8409
8410#ifdef __STDC__
8411# include <limits.h>
8412#else
8413# include <assert.h>
8414#endif
8415
8416#undef $ac_func
8417
8418/* Override any gcc2 internal prototype to avoid an error.  */
8419#ifdef __cplusplus
8420extern "C"
8421{
8422#endif
8423/* We use char because int might match the return type of a gcc2
8424   builtin and then its argument prototype would still apply.  */
8425char $ac_func ();
8426/* The GNU C library defines this for functions which it implements
8427    to always fail with ENOSYS.  Some functions are actually named
8428    something starting with __ and the normal name is an alias.  */
8429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8430choke me
8431#else
8432char (*f) () = $ac_func;
8433#endif
8434#ifdef __cplusplus
8435}
8436#endif
8437
8438int
8439main ()
8440{
8441return f != $ac_func;
8442  ;
8443  return 0;
8444}
8445_ACEOF
8446rm -f conftest.$ac_objext conftest$ac_exeext
8447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448  (eval $ac_link) 2>conftest.er1
8449  ac_status=$?
8450  grep -v '^ *+' conftest.er1 >conftest.err
8451  rm -f conftest.er1
8452  cat conftest.err >&5
8453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454  (exit $ac_status); } &&
8455	 { ac_try='test -z "$ac_c_werror_flag"
8456			 || test ! -s conftest.err'
8457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458  (eval $ac_try) 2>&5
8459  ac_status=$?
8460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461  (exit $ac_status); }; } &&
8462	 { ac_try='test -s conftest$ac_exeext'
8463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464  (eval $ac_try) 2>&5
8465  ac_status=$?
8466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467  (exit $ac_status); }; }; then
8468  eval "$as_ac_var=yes"
8469else
8470  echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
8473eval "$as_ac_var=no"
8474fi
8475rm -f conftest.err conftest.$ac_objext \
8476      conftest$ac_exeext conftest.$ac_ext
8477fi
8478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8479echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8480if test `eval echo '${'$as_ac_var'}'` = yes; then
8481  cat >>confdefs.h <<_ACEOF
8482@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8483_ACEOF
8484
8485fi
8486done
8487
8488fi
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508for ac_func in kill memcpy memset raise setlocale setrlimit sigaction \
8509    srand srandom \
8510    strcasecmp strchr strcmpi strcspn strerror stricmp strtod tzset waitpid
8511do
8512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8513echo "$as_me:$LINENO: checking for $ac_func" >&5
8514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8515if eval "test \"\${$as_ac_var+set}\" = set"; then
8516  echo $ECHO_N "(cached) $ECHO_C" >&6
8517else
8518  cat >conftest.$ac_ext <<_ACEOF
8519/* confdefs.h.  */
8520_ACEOF
8521cat confdefs.h >>conftest.$ac_ext
8522cat >>conftest.$ac_ext <<_ACEOF
8523/* end confdefs.h.  */
8524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8525   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8526#define $ac_func innocuous_$ac_func
8527
8528/* System header to define __stub macros and hopefully few prototypes,
8529    which can conflict with char $ac_func (); below.
8530    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8531    <limits.h> exists even on freestanding compilers.  */
8532
8533#ifdef __STDC__
8534# include <limits.h>
8535#else
8536# include <assert.h>
8537#endif
8538
8539#undef $ac_func
8540
8541/* Override any gcc2 internal prototype to avoid an error.  */
8542#ifdef __cplusplus
8543extern "C"
8544{
8545#endif
8546/* We use char because int might match the return type of a gcc2
8547   builtin and then its argument prototype would still apply.  */
8548char $ac_func ();
8549/* The GNU C library defines this for functions which it implements
8550    to always fail with ENOSYS.  Some functions are actually named
8551    something starting with __ and the normal name is an alias.  */
8552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8553choke me
8554#else
8555char (*f) () = $ac_func;
8556#endif
8557#ifdef __cplusplus
8558}
8559#endif
8560
8561int
8562main ()
8563{
8564return f != $ac_func;
8565  ;
8566  return 0;
8567}
8568_ACEOF
8569rm -f conftest.$ac_objext conftest$ac_exeext
8570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571  (eval $ac_link) 2>conftest.er1
8572  ac_status=$?
8573  grep -v '^ *+' conftest.er1 >conftest.err
8574  rm -f conftest.er1
8575  cat conftest.err >&5
8576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577  (exit $ac_status); } &&
8578	 { ac_try='test -z "$ac_c_werror_flag"
8579			 || test ! -s conftest.err'
8580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581  (eval $ac_try) 2>&5
8582  ac_status=$?
8583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584  (exit $ac_status); }; } &&
8585	 { ac_try='test -s conftest$ac_exeext'
8586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587  (eval $ac_try) 2>&5
8588  ac_status=$?
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); }; }; then
8591  eval "$as_ac_var=yes"
8592else
8593  echo "$as_me: failed program was:" >&5
8594sed 's/^/| /' conftest.$ac_ext >&5
8595
8596eval "$as_ac_var=no"
8597fi
8598rm -f conftest.err conftest.$ac_objext \
8599      conftest$ac_exeext conftest.$ac_ext
8600fi
8601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8602echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8603if test `eval echo '${'$as_ac_var'}'` = yes; then
8604  cat >>confdefs.h <<_ACEOF
8605@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8606_ACEOF
8607
8608fi
8609done
8610
8611
8612if test "$CYGWIN" = "yes"; then
8613    cat >>confdefs.h <<\_ACEOF
8614@%:@define HAVE_H_ERRNO 0  /* h_errno is broken in cygwin32 b18. */
8615_ACEOF
8616
8617fi
8618
8619if test "$enable_inet6" = "yes"; then
8620    echo "$as_me:$LINENO: checking for IPv6 address structure" >&5
8621echo $ECHO_N "checking for IPv6 address structure... $ECHO_C" >&6
8622    for type in in6_addr in_addr6; do
8623	cat >conftest.$ac_ext <<_ACEOF
8624/* confdefs.h.  */
8625_ACEOF
8626cat confdefs.h >>conftest.$ac_ext
8627cat >>conftest.$ac_ext <<_ACEOF
8628/* end confdefs.h.  */
8629
8630#include <sys/types.h>
8631#include <sys/socket.h>
8632#include NETINET_IN_H
8633
8634int
8635main ()
8636{
8637
8638#ifndef AF_INET6
8639# error AF_INET6 not defined
8640#endif
8641	    struct ${type} foo;
8642
8643  ;
8644  return 0;
8645}
8646_ACEOF
8647rm -f conftest.$ac_objext
8648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8649  (eval $ac_compile) 2>conftest.er1
8650  ac_status=$?
8651  grep -v '^ *+' conftest.er1 >conftest.err
8652  rm -f conftest.er1
8653  cat conftest.err >&5
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); } &&
8656	 { ac_try='test -z "$ac_c_werror_flag"
8657			 || test ! -s conftest.err'
8658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659  (eval $ac_try) 2>&5
8660  ac_status=$?
8661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662  (exit $ac_status); }; } &&
8663	 { ac_try='test -s conftest.$ac_objext'
8664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665  (eval $ac_try) 2>&5
8666  ac_status=$?
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); }; }; then
8669  cat >>confdefs.h <<_ACEOF
8670@%:@define IN6_ADDR $type
8671_ACEOF
8672
8673	    echo "$as_me:$LINENO: result: $type" >&5
8674echo "${ECHO_T}$type" >&6
8675	    break
8676else
8677  echo "$as_me: failed program was:" >&5
8678sed 's/^/| /' conftest.$ac_ext >&5
8679
8680fi
8681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8682    done
8683fi
8684
8685
8686
8687
8688
8689
8690if test "$enable_mailcheck" = "no"; then
8691    MAILDIR=""
8692elif test "$enable_mailcheck" = "yes"; then
8693    echo "$as_me:$LINENO: checking location of mail directory" >&5
8694echo $ECHO_N "checking location of mail directory... $ECHO_C" >&6
8695    if test -n "$MAIL" ; then
8696        # Not every system has dirname.  sigh.
8697                MAILDIR=`echo $MAIL | sed 's;/[^/]*$;;'`
8698            elif test -d /usr/spool/mail ; then
8699        MAILDIR="/usr/spool/mail"
8700    elif test -d /var/spool/mail ; then
8701        MAILDIR="/var/spool/mail"
8702    elif test -d /usr/mail ; then
8703        MAILDIR="/usr/mail"
8704    elif test -d /var/mail ; then
8705        MAILDIR="/var/mail"
8706    else
8707	MAILDIR=""
8708    fi
8709    echo "$as_me:$LINENO: result: ${MAILDIR-(none)}" >&5
8710echo "${ECHO_T}${MAILDIR-(none)}" >&6
8711else
8712    MAILDIR="$enable_mailcheck"
8713fi
8714if test -n "$MAILDIR"; then
8715    cat >>confdefs.h <<_ACEOF
8716@%:@define MAILDIR "$MAILDIR"
8717_ACEOF
8718
8719fi
8720
8721
8722
8723if test "$enable_version" != "no" && test "$program_suffix" = "NONE"; then
8724    program_suffix="-${TFVER}"
8725fi
8726
8727EXENAME="tf"
8728test "${program_prefix}" != "NONE" && EXENAME="${program_prefix}${EXENAME}"
8729test "${program_suffix}" != "NONE" && EXENAME="${EXENAME}${program_suffix}"
8730if test "${program_transform_name}" != "NONE"; then
8731    EXENAME=`echo "${EXENAME}" | sed "${program_transform_name}"`
8732fi
8733LIBNAME="${EXENAME}-lib"
8734
8735if test "$enable_symlink" = "no"; then
8736    SYMLINK=""
8737elif test "$enable_symlink" = "yes"; then
8738    SYMLINK='${bindir}/tf'
8739else
8740    SYMLINK="$enable_symlink"
8741fi
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757MODE=755
8758
8759
8760
8761
8762
8763PATH="$PATH:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc:/usr/new:/usr/new/bin:/usr/nbin:/usr/ccs/bin"
8764
8765
8766if test "$enable_dmalloc" = "yes"; then
8767    CPPFLAGS="$CPPFLAGS -DUSE_DMALLOC"
8768    OTHER_OBJS="$OTHER_OBJS dmalloc.o"
8769fi
8770
8771
8772if test "$enable_inet6"   = "yes"; then cat >>confdefs.h <<\_ACEOF
8773@%:@define ENABLE_INET6 1
8774_ACEOF
8775  fi
8776if test "$enable_history" = "no"; then cat >>confdefs.h <<\_ACEOF
8777@%:@define NO_HISTORY 1
8778_ACEOF
8779  fi
8780if test "$enable_process" = "no"; then cat >>confdefs.h <<\_ACEOF
8781@%:@define NO_PROCESS 1
8782_ACEOF
8783  fi
8784if test "$enable_float"   = "no"; then cat >>confdefs.h <<\_ACEOF
8785@%:@define NO_FLOAT 1
8786_ACEOF
8787    fi
8788
8789CPPFLAGS="${CPPFLAGS} -DDATADIR=\${datadir}"
8790
8791
8792
8793
8794
8795                              ac_config_files="$ac_config_files Makefile unix/vars.mak src/tfdefs.h"
8796          ac_config_commands="$ac_config_commands default"
8797cat >confcache <<\_ACEOF
8798# This file is a shell script that caches the results of configure
8799# tests run on this system so they can be shared between configure
8800# scripts and configure runs, see configure's option --config-cache.
8801# It is not useful on other systems.  If it contains results you don't
8802# want to keep, you may remove or edit it.
8803#
8804# config.status only pays attention to the cache file if you give it
8805# the --recheck option to rerun configure.
8806#
8807# `ac_cv_env_foo' variables (set or unset) will be overridden when
8808# loading this file, other *unset* `ac_cv_foo' will be assigned the
8809# following values.
8810
8811_ACEOF
8812
8813# The following way of writing the cache mishandles newlines in values,
8814# but we know of no workaround that is simple, portable, and efficient.
8815# So, don't put newlines in cache variables' values.
8816# Ultrix sh set writes to stderr and can't be redirected directly,
8817# and sets the high bit in the cache file unless we assign to the vars.
8818{
8819  (set) 2>&1 |
8820    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8821    *ac_space=\ *)
8822      # `set' does not quote correctly, so add quotes (double-quote
8823      # substitution turns \\\\ into \\, and sed turns \\ into \).
8824      sed -n \
8825	"s/'/'\\\\''/g;
8826	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8827      ;;
8828    *)
8829      # `set' quotes correctly as required by POSIX, so do not add quotes.
8830      sed -n \
8831	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8832      ;;
8833    esac;
8834} |
8835  sed '
8836     t clear
8837     : clear
8838     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8839     t end
8840     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8841     : end' >>confcache
8842if diff $cache_file confcache >/dev/null 2>&1; then :; else
8843  if test -w $cache_file; then
8844    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8845    cat confcache >$cache_file
8846  else
8847    echo "not updating unwritable cache $cache_file"
8848  fi
8849fi
8850rm -f confcache
8851
8852test "x$prefix" = xNONE && prefix=$ac_default_prefix
8853# Let make expand exec_prefix.
8854test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8855
8856# VPATH may cause trouble with some makes, so we remove $(srcdir),
8857# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8858# trailing colons and then remove the whole line if VPATH becomes empty
8859# (actually we leave an empty line to preserve line numbers).
8860if test "x$srcdir" = x.; then
8861  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
8862s/:*\$(srcdir):*/:/;
8863s/:*\${srcdir}:*/:/;
8864s/:*@srcdir@:*/:/;
8865s/^\([^=]*=[	 ]*\):*/\1/;
8866s/:*$//;
8867s/^[^=]*=[	 ]*$//;
8868}'
8869fi
8870
8871DEFS=-DHAVE_CONFIG_H
8872
8873ac_libobjs=
8874ac_ltlibobjs=
8875for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
8876  # 1. Remove the extension, and $U if already installed.
8877  ac_i=`echo "$ac_i" |
8878	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8879  # 2. Add them.
8880  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8881  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8882done
8883LIB@&t@OBJS=$ac_libobjs
8884
8885LTLIBOBJS=$ac_ltlibobjs
8886
8887
8888
8889: ${CONFIG_STATUS=./config.status}
8890ac_clean_files_save=$ac_clean_files
8891ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8892{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8893echo "$as_me: creating $CONFIG_STATUS" >&6;}
8894cat >$CONFIG_STATUS <<_ACEOF
8895#! $SHELL
8896# Generated by $as_me.
8897# Run this file to recreate the current configuration.
8898# Compiler output produced by configure, useful for debugging
8899# configure, is in config.log if it exists.
8900
8901debug=false
8902ac_cs_recheck=false
8903ac_cs_silent=false
8904SHELL=\${CONFIG_SHELL-$SHELL}
8905_ACEOF
8906
8907cat >>$CONFIG_STATUS <<\_ACEOF
8908## --------------------- ##
8909## M4sh Initialization.  ##
8910## --------------------- ##
8911
8912# Be Bourne compatible
8913if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8914  emulate sh
8915  NULLCMD=:
8916  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8917  # is contrary to our usage.  Disable this feature.
8918  alias -g '${1+"$@"}'='"$@"'
8919elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8920  set -o posix
8921fi
8922DUALCASE=1; export DUALCASE # for MKS sh
8923
8924# Support unset when possible.
8925if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8926  as_unset=unset
8927else
8928  as_unset=false
8929fi
8930
8931
8932# Work around bugs in pre-3.0 UWIN ksh.
8933$as_unset ENV MAIL MAILPATH
8934PS1='$ '
8935PS2='> '
8936PS4='+ '
8937
8938# NLS nuisances.
8939for as_var in \
8940  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8941  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8942  LC_TELEPHONE LC_TIME
8943do
8944  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8945    eval $as_var=C; export $as_var
8946  else
8947    $as_unset $as_var
8948  fi
8949done
8950
8951# Required to use basename.
8952if expr a : '\(a\)' >/dev/null 2>&1; then
8953  as_expr=expr
8954else
8955  as_expr=false
8956fi
8957
8958if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8959  as_basename=basename
8960else
8961  as_basename=false
8962fi
8963
8964
8965# Name of the executable.
8966as_me=`$as_basename "$0" ||
8967$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8968	 X"$0" : 'X\(//\)$' \| \
8969	 X"$0" : 'X\(/\)$' \| \
8970	 .     : '\(.\)' 2>/dev/null ||
8971echo X/"$0" |
8972    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8973  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
8974  	  /^X\/\(\/\).*/{ s//\1/; q; }
8975  	  s/.*/./; q'`
8976
8977
8978# PATH needs CR, and LINENO needs CR and PATH.
8979# Avoid depending upon Character Ranges.
8980as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8981as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8982as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8983as_cr_digits='0123456789'
8984as_cr_alnum=$as_cr_Letters$as_cr_digits
8985
8986# The user is always right.
8987if test "${PATH_SEPARATOR+set}" != set; then
8988  echo "#! /bin/sh" >conf$$.sh
8989  echo  "exit 0"   >>conf$$.sh
8990  chmod +x conf$$.sh
8991  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8992    PATH_SEPARATOR=';'
8993  else
8994    PATH_SEPARATOR=:
8995  fi
8996  rm -f conf$$.sh
8997fi
8998
8999
9000  as_lineno_1=$LINENO
9001  as_lineno_2=$LINENO
9002  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9003  test "x$as_lineno_1" != "x$as_lineno_2" &&
9004  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9005  # Find who we are.  Look in the path if we contain no path at all
9006  # relative or not.
9007  case $0 in
9008    *[\\/]* ) as_myself=$0 ;;
9009    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010for as_dir in $PATH
9011do
9012  IFS=$as_save_IFS
9013  test -z "$as_dir" && as_dir=.
9014  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9015done
9016
9017       ;;
9018  esac
9019  # We did not find ourselves, most probably we were run as `sh COMMAND'
9020  # in which case we are not to be found in the path.
9021  if test "x$as_myself" = x; then
9022    as_myself=$0
9023  fi
9024  if test ! -f "$as_myself"; then
9025    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9026echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9027   { (exit 1); exit 1; }; }
9028  fi
9029  case $CONFIG_SHELL in
9030  '')
9031    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9033do
9034  IFS=$as_save_IFS
9035  test -z "$as_dir" && as_dir=.
9036  for as_base in sh bash ksh sh5; do
9037	 case $as_dir in
9038	 /*)
9039	   if ("$as_dir/$as_base" -c '
9040  as_lineno_1=$LINENO
9041  as_lineno_2=$LINENO
9042  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9043  test "x$as_lineno_1" != "x$as_lineno_2" &&
9044  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9045	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9046	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9047	     CONFIG_SHELL=$as_dir/$as_base
9048	     export CONFIG_SHELL
9049	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9050	   fi;;
9051	 esac
9052       done
9053done
9054;;
9055  esac
9056
9057  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9058  # uniformly replaced by the line number.  The first 'sed' inserts a
9059  # line-number line before each line; the second 'sed' does the real
9060  # work.  The second script uses 'N' to pair each line-number line
9061  # with the numbered line, and appends trailing '-' during
9062  # substitution so that $LINENO is not a special case at line end.
9063  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9064  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9065  sed '=' <$as_myself |
9066    sed '
9067      N
9068      s,$,-,
9069      : loop
9070      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9071      t loop
9072      s,-$,,
9073      s,^['$as_cr_digits']*\n,,
9074    ' >$as_me.lineno &&
9075  chmod +x $as_me.lineno ||
9076    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9077echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9078   { (exit 1); exit 1; }; }
9079
9080  # Don't try to exec as it changes $[0], causing all sort of problems
9081  # (the dirname of $[0] is not the place where we might find the
9082  # original and so on.  Autoconf is especially sensible to this).
9083  . ./$as_me.lineno
9084  # Exit status is that of the last command.
9085  exit
9086}
9087
9088
9089case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9090  *c*,-n*) ECHO_N= ECHO_C='
9091' ECHO_T='	' ;;
9092  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9093  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9094esac
9095
9096if expr a : '\(a\)' >/dev/null 2>&1; then
9097  as_expr=expr
9098else
9099  as_expr=false
9100fi
9101
9102rm -f conf$$ conf$$.exe conf$$.file
9103echo >conf$$.file
9104if ln -s conf$$.file conf$$ 2>/dev/null; then
9105  # We could just check for DJGPP; but this test a) works b) is more generic
9106  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9107  if test -f conf$$.exe; then
9108    # Don't use ln at all; we don't have any links
9109    as_ln_s='cp -p'
9110  else
9111    as_ln_s='ln -s'
9112  fi
9113elif ln conf$$.file conf$$ 2>/dev/null; then
9114  as_ln_s=ln
9115else
9116  as_ln_s='cp -p'
9117fi
9118rm -f conf$$ conf$$.exe conf$$.file
9119
9120if mkdir -p . 2>/dev/null; then
9121  as_mkdir_p=:
9122else
9123  test -d ./-p && rmdir ./-p
9124  as_mkdir_p=false
9125fi
9126
9127as_executable_p="test -f"
9128
9129# Sed expression to map a string onto a valid CPP name.
9130as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9131
9132# Sed expression to map a string onto a valid variable name.
9133as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9134
9135
9136# IFS
9137# We need space, tab and new line, in precisely that order.
9138as_nl='
9139'
9140IFS=" 	$as_nl"
9141
9142# CDPATH.
9143$as_unset CDPATH
9144
9145exec 6>&1
9146
9147# Open the log real soon, to keep \$[0] and so on meaningful, and to
9148# report actual input values of CONFIG_FILES etc. instead of their
9149# values after options handling.  Logging --version etc. is OK.
9150exec 5>>config.log
9151{
9152  echo
9153  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
9154@%:@@%:@ Running $as_me. @%:@@%:@
9155_ASBOX
9156} >&5
9157cat >&5 <<_CSEOF
9158
9159This file was extended by $as_me, which was
9160generated by GNU Autoconf 2.59.  Invocation command line was
9161
9162  CONFIG_FILES    = $CONFIG_FILES
9163  CONFIG_HEADERS  = $CONFIG_HEADERS
9164  CONFIG_LINKS    = $CONFIG_LINKS
9165  CONFIG_COMMANDS = $CONFIG_COMMANDS
9166  $ $0 $@
9167
9168_CSEOF
9169echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9170echo >&5
9171_ACEOF
9172
9173# Files that config.status was made for.
9174if test -n "$ac_config_files"; then
9175  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9176fi
9177
9178if test -n "$ac_config_headers"; then
9179  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9180fi
9181
9182if test -n "$ac_config_links"; then
9183  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9184fi
9185
9186if test -n "$ac_config_commands"; then
9187  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9188fi
9189
9190cat >>$CONFIG_STATUS <<\_ACEOF
9191
9192ac_cs_usage="\
9193\`$as_me' instantiates files from templates according to the
9194current configuration.
9195
9196Usage: $0 [OPTIONS] [FILE]...
9197
9198  -h, --help       print this help, then exit
9199  -V, --version    print version number, then exit
9200  -q, --quiet      do not print progress messages
9201  -d, --debug      don't remove temporary files
9202      --recheck    update $as_me by reconfiguring in the same conditions
9203  --file=FILE[:TEMPLATE]
9204		   instantiate the configuration file FILE
9205  --header=FILE[:TEMPLATE]
9206		   instantiate the configuration header FILE
9207
9208Configuration files:
9209$config_files
9210
9211Configuration headers:
9212$config_headers
9213
9214Configuration commands:
9215$config_commands
9216
9217Report bugs to <bug-autoconf@gnu.org>."
9218_ACEOF
9219
9220cat >>$CONFIG_STATUS <<_ACEOF
9221ac_cs_version="\\
9222config.status
9223configured by $0, generated by GNU Autoconf 2.59,
9224  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9225
9226Copyright (C) 2003 Free Software Foundation, Inc.
9227This config.status script is free software; the Free Software Foundation
9228gives unlimited permission to copy, distribute and modify it."
9229srcdir=$srcdir
9230_ACEOF
9231
9232cat >>$CONFIG_STATUS <<\_ACEOF
9233# If no file are specified by the user, then we need to provide default
9234# value.  By we need to know if files were specified by the user.
9235ac_need_defaults=:
9236while test $# != 0
9237do
9238  case $1 in
9239  --*=*)
9240    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9241    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9242    ac_shift=:
9243    ;;
9244  -*)
9245    ac_option=$1
9246    ac_optarg=$2
9247    ac_shift=shift
9248    ;;
9249  *) # This is not an option, so the user has probably given explicit
9250     # arguments.
9251     ac_option=$1
9252     ac_need_defaults=false;;
9253  esac
9254
9255  case $ac_option in
9256  # Handling of the options.
9257_ACEOF
9258cat >>$CONFIG_STATUS <<\_ACEOF
9259  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9260    ac_cs_recheck=: ;;
9261  --version | --vers* | -V )
9262    echo "$ac_cs_version"; exit 0 ;;
9263  --he | --h)
9264    # Conflict between --help and --header
9265    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9266Try \`$0 --help' for more information." >&5
9267echo "$as_me: error: ambiguous option: $1
9268Try \`$0 --help' for more information." >&2;}
9269   { (exit 1); exit 1; }; };;
9270  --help | --hel | -h )
9271    echo "$ac_cs_usage"; exit 0 ;;
9272  --debug | --d* | -d )
9273    debug=: ;;
9274  --file | --fil | --fi | --f )
9275    $ac_shift
9276    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9277    ac_need_defaults=false;;
9278  --header | --heade | --head | --hea )
9279    $ac_shift
9280    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9281    ac_need_defaults=false;;
9282  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9283  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9284    ac_cs_silent=: ;;
9285
9286  # This is an error.
9287  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9288Try \`$0 --help' for more information." >&5
9289echo "$as_me: error: unrecognized option: $1
9290Try \`$0 --help' for more information." >&2;}
9291   { (exit 1); exit 1; }; } ;;
9292
9293  *) ac_config_targets="$ac_config_targets $1" ;;
9294
9295  esac
9296  shift
9297done
9298
9299ac_configure_extra_args=
9300
9301if $ac_cs_silent; then
9302  exec 6>/dev/null
9303  ac_configure_extra_args="$ac_configure_extra_args --silent"
9304fi
9305
9306_ACEOF
9307cat >>$CONFIG_STATUS <<_ACEOF
9308if \$ac_cs_recheck; then
9309  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9310  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9311fi
9312
9313_ACEOF
9314
9315
9316
9317
9318
9319cat >>$CONFIG_STATUS <<\_ACEOF
9320for ac_config_target in $ac_config_targets
9321do
9322  case "$ac_config_target" in
9323  # Handling of arguments.
9324  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9325  "unix/vars.mak" ) CONFIG_FILES="$CONFIG_FILES unix/vars.mak" ;;
9326  "src/tfdefs.h" ) CONFIG_FILES="$CONFIG_FILES src/tfdefs.h" ;;
9327  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9328  "src/tfconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/tfconfig.h" ;;
9329  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9330echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9331   { (exit 1); exit 1; }; };;
9332  esac
9333done
9334
9335# If the user did not use the arguments to specify the items to instantiate,
9336# then the envvar interface is used.  Set only those that are not.
9337# We use the long form for the default assignment because of an extremely
9338# bizarre bug on SunOS 4.1.3.
9339if $ac_need_defaults; then
9340  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9341  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9342  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9343fi
9344
9345# Have a temporary directory for convenience.  Make it in the build tree
9346# simply because there is no reason to put it here, and in addition,
9347# creating and moving files from /tmp can sometimes cause problems.
9348# Create a temporary directory, and hook for its removal unless debugging.
9349$debug ||
9350{
9351  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9352  trap '{ (exit 1); exit 1; }' 1 2 13 15
9353}
9354
9355# Create a (secure) tmp directory for tmp files.
9356
9357{
9358  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9359  test -n "$tmp" && test -d "$tmp"
9360}  ||
9361{
9362  tmp=./confstat$$-$RANDOM
9363  (umask 077 && mkdir $tmp)
9364} ||
9365{
9366   echo "$me: cannot create a temporary directory in ." >&2
9367   { (exit 1); exit 1; }
9368}
9369
9370_ACEOF
9371
9372cat >>$CONFIG_STATUS <<_ACEOF
9373
9374#
9375# CONFIG_FILES section.
9376#
9377
9378# No need to generate the scripts if there are no CONFIG_FILES.
9379# This happens for instance when ./config.status config.h
9380if test -n "\$CONFIG_FILES"; then
9381  # Protect against being on the right side of a sed subst in config.status.
9382  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9383   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9384s,@SHELL@,$SHELL,;t t
9385s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9386s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9387s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9388s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9389s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9390s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9391s,@exec_prefix@,$exec_prefix,;t t
9392s,@prefix@,$prefix,;t t
9393s,@program_transform_name@,$program_transform_name,;t t
9394s,@bindir@,$bindir,;t t
9395s,@sbindir@,$sbindir,;t t
9396s,@libexecdir@,$libexecdir,;t t
9397s,@datadir@,$datadir,;t t
9398s,@sysconfdir@,$sysconfdir,;t t
9399s,@sharedstatedir@,$sharedstatedir,;t t
9400s,@localstatedir@,$localstatedir,;t t
9401s,@libdir@,$libdir,;t t
9402s,@includedir@,$includedir,;t t
9403s,@oldincludedir@,$oldincludedir,;t t
9404s,@infodir@,$infodir,;t t
9405s,@mandir@,$mandir,;t t
9406s,@build_alias@,$build_alias,;t t
9407s,@host_alias@,$host_alias,;t t
9408s,@target_alias@,$target_alias,;t t
9409s,@DEFS@,$DEFS,;t t
9410s,@ECHO_C@,$ECHO_C,;t t
9411s,@ECHO_N@,$ECHO_N,;t t
9412s,@ECHO_T@,$ECHO_T,;t t
9413s,@LIBS@,$LIBS,;t t
9414s,@TFVERSION@,$TFVERSION,;t t
9415s,@CC@,$CC,;t t
9416s,@UNAME@,$UNAME,;t t
9417s,@CFLAGS@,$CFLAGS,;t t
9418s,@LDFLAGS@,$LDFLAGS,;t t
9419s,@CPPFLAGS@,$CPPFLAGS,;t t
9420s,@ac_ct_CC@,$ac_ct_CC,;t t
9421s,@EXEEXT@,$EXEEXT,;t t
9422s,@OBJEXT@,$OBJEXT,;t t
9423s,@CPP@,$CPP,;t t
9424s,@EGREP@,$EGREP,;t t
9425s,@SET_MAKE@,$SET_MAKE,;t t
9426s,@STRIP@,$STRIP,;t t
9427s,@RANLIB@,$RANLIB,;t t
9428s,@PCRE@,$PCRE,;t t
9429s,@EXENAME@,$EXENAME,;t t
9430s,@LIBNAME@,$LIBNAME,;t t
9431s,@SYMLINK@,$SYMLINK,;t t
9432s,@MODE@,$MODE,;t t
9433s,@OTHER_OBJS@,$OTHER_OBJS,;t t
9434s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
9435s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9436CEOF
9437
9438_ACEOF
9439
9440  cat >>$CONFIG_STATUS <<\_ACEOF
9441  # Split the substitutions into bite-sized pieces for seds with
9442  # small command number limits, like on Digital OSF/1 and HP-UX.
9443  ac_max_sed_lines=48
9444  ac_sed_frag=1 # Number of current file.
9445  ac_beg=1 # First line for current file.
9446  ac_end=$ac_max_sed_lines # Line after last line for current file.
9447  ac_more_lines=:
9448  ac_sed_cmds=
9449  while $ac_more_lines; do
9450    if test $ac_beg -gt 1; then
9451      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9452    else
9453      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9454    fi
9455    if test ! -s $tmp/subs.frag; then
9456      ac_more_lines=false
9457    else
9458      # The purpose of the label and of the branching condition is to
9459      # speed up the sed processing (if there are no `@' at all, there
9460      # is no need to browse any of the substitutions).
9461      # These are the two extra sed commands mentioned above.
9462      (echo ':t
9463  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9464      if test -z "$ac_sed_cmds"; then
9465	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9466      else
9467	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9468      fi
9469      ac_sed_frag=`expr $ac_sed_frag + 1`
9470      ac_beg=$ac_end
9471      ac_end=`expr $ac_end + $ac_max_sed_lines`
9472    fi
9473  done
9474  if test -z "$ac_sed_cmds"; then
9475    ac_sed_cmds=cat
9476  fi
9477fi # test -n "$CONFIG_FILES"
9478
9479_ACEOF
9480cat >>$CONFIG_STATUS <<\_ACEOF
9481for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9482  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9483  case $ac_file in
9484  - | *:- | *:-:* ) # input from stdin
9485	cat >$tmp/stdin
9486	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9487	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9488  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9489	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9490  * )   ac_file_in=$ac_file.in ;;
9491  esac
9492
9493  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9494  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9495$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9496	 X"$ac_file" : 'X\(//\)[^/]' \| \
9497	 X"$ac_file" : 'X\(//\)$' \| \
9498	 X"$ac_file" : 'X\(/\)' \| \
9499	 .     : '\(.\)' 2>/dev/null ||
9500echo X"$ac_file" |
9501    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9502  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9503  	  /^X\(\/\/\)$/{ s//\1/; q; }
9504  	  /^X\(\/\).*/{ s//\1/; q; }
9505  	  s/.*/./; q'`
9506  { if $as_mkdir_p; then
9507    mkdir -p "$ac_dir"
9508  else
9509    as_dir="$ac_dir"
9510    as_dirs=
9511    while test ! -d "$as_dir"; do
9512      as_dirs="$as_dir $as_dirs"
9513      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9514$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9515	 X"$as_dir" : 'X\(//\)[^/]' \| \
9516	 X"$as_dir" : 'X\(//\)$' \| \
9517	 X"$as_dir" : 'X\(/\)' \| \
9518	 .     : '\(.\)' 2>/dev/null ||
9519echo X"$as_dir" |
9520    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9521  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9522  	  /^X\(\/\/\)$/{ s//\1/; q; }
9523  	  /^X\(\/\).*/{ s//\1/; q; }
9524  	  s/.*/./; q'`
9525    done
9526    test ! -n "$as_dirs" || mkdir $as_dirs
9527  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9528echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9529   { (exit 1); exit 1; }; }; }
9530
9531  ac_builddir=.
9532
9533if test "$ac_dir" != .; then
9534  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9535  # A "../" for each directory in $ac_dir_suffix.
9536  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9537else
9538  ac_dir_suffix= ac_top_builddir=
9539fi
9540
9541case $srcdir in
9542  .)  # No --srcdir option.  We are building in place.
9543    ac_srcdir=.
9544    if test -z "$ac_top_builddir"; then
9545       ac_top_srcdir=.
9546    else
9547       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9548    fi ;;
9549  [\\/]* | ?:[\\/]* )  # Absolute path.
9550    ac_srcdir=$srcdir$ac_dir_suffix;
9551    ac_top_srcdir=$srcdir ;;
9552  *) # Relative path.
9553    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9554    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9555esac
9556
9557# Do not use `cd foo && pwd` to compute absolute paths, because
9558# the directories may not exist.
9559case `pwd` in
9560.) ac_abs_builddir="$ac_dir";;
9561*)
9562  case "$ac_dir" in
9563  .) ac_abs_builddir=`pwd`;;
9564  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9565  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9566  esac;;
9567esac
9568case $ac_abs_builddir in
9569.) ac_abs_top_builddir=${ac_top_builddir}.;;
9570*)
9571  case ${ac_top_builddir}. in
9572  .) ac_abs_top_builddir=$ac_abs_builddir;;
9573  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9574  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9575  esac;;
9576esac
9577case $ac_abs_builddir in
9578.) ac_abs_srcdir=$ac_srcdir;;
9579*)
9580  case $ac_srcdir in
9581  .) ac_abs_srcdir=$ac_abs_builddir;;
9582  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9583  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9584  esac;;
9585esac
9586case $ac_abs_builddir in
9587.) ac_abs_top_srcdir=$ac_top_srcdir;;
9588*)
9589  case $ac_top_srcdir in
9590  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9591  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9592  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9593  esac;;
9594esac
9595
9596
9597
9598  if test x"$ac_file" != x-; then
9599    { echo "$as_me:$LINENO: creating $ac_file" >&5
9600echo "$as_me: creating $ac_file" >&6;}
9601    rm -f "$ac_file"
9602  fi
9603  # Let's still pretend it is `configure' which instantiates (i.e., don't
9604  # use $as_me), people would be surprised to read:
9605  #    /* config.h.  Generated by config.status.  */
9606  if test x"$ac_file" = x-; then
9607    configure_input=
9608  else
9609    configure_input="$ac_file.  "
9610  fi
9611  configure_input=$configure_input"Generated from `echo $ac_file_in |
9612				     sed 's,.*/,,'` by configure."
9613
9614  # First look for the input files in the build tree, otherwise in the
9615  # src tree.
9616  ac_file_inputs=`IFS=:
9617    for f in $ac_file_in; do
9618      case $f in
9619      -) echo $tmp/stdin ;;
9620      [\\/$]*)
9621	 # Absolute (can't be DOS-style, as IFS=:)
9622	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9623echo "$as_me: error: cannot find input file: $f" >&2;}
9624   { (exit 1); exit 1; }; }
9625	 echo "$f";;
9626      *) # Relative
9627	 if test -f "$f"; then
9628	   # Build tree
9629	   echo "$f"
9630	 elif test -f "$srcdir/$f"; then
9631	   # Source tree
9632	   echo "$srcdir/$f"
9633	 else
9634	   # /dev/null tree
9635	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9636echo "$as_me: error: cannot find input file: $f" >&2;}
9637   { (exit 1); exit 1; }; }
9638	 fi;;
9639      esac
9640    done` || { (exit 1); exit 1; }
9641_ACEOF
9642cat >>$CONFIG_STATUS <<_ACEOF
9643  sed "$ac_vpsub
9644$extrasub
9645_ACEOF
9646cat >>$CONFIG_STATUS <<\_ACEOF
9647:t
9648/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9649s,@configure_input@,$configure_input,;t t
9650s,@srcdir@,$ac_srcdir,;t t
9651s,@abs_srcdir@,$ac_abs_srcdir,;t t
9652s,@top_srcdir@,$ac_top_srcdir,;t t
9653s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9654s,@builddir@,$ac_builddir,;t t
9655s,@abs_builddir@,$ac_abs_builddir,;t t
9656s,@top_builddir@,$ac_top_builddir,;t t
9657s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9658" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9659  rm -f $tmp/stdin
9660  if test x"$ac_file" != x-; then
9661    mv $tmp/out $ac_file
9662  else
9663    cat $tmp/out
9664    rm -f $tmp/out
9665  fi
9666
9667done
9668_ACEOF
9669cat >>$CONFIG_STATUS <<\_ACEOF
9670
9671#
9672# CONFIG_HEADER section.
9673#
9674
9675# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9676# NAME is the cpp macro being defined and VALUE is the value it is being given.
9677#
9678# ac_d sets the value in "#define NAME VALUE" lines.
9679ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
9680ac_dB='[	 ].*$,\1#\2'
9681ac_dC=' '
9682ac_dD=',;t'
9683# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9684ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
9685ac_uB='$,\1#\2define\3'
9686ac_uC=' '
9687ac_uD=',;t'
9688
9689for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9690  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9691  case $ac_file in
9692  - | *:- | *:-:* ) # input from stdin
9693	cat >$tmp/stdin
9694	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9695	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9696  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9697	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9698  * )   ac_file_in=$ac_file.in ;;
9699  esac
9700
9701  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9702echo "$as_me: creating $ac_file" >&6;}
9703
9704  # First look for the input files in the build tree, otherwise in the
9705  # src tree.
9706  ac_file_inputs=`IFS=:
9707    for f in $ac_file_in; do
9708      case $f in
9709      -) echo $tmp/stdin ;;
9710      [\\/$]*)
9711	 # Absolute (can't be DOS-style, as IFS=:)
9712	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9713echo "$as_me: error: cannot find input file: $f" >&2;}
9714   { (exit 1); exit 1; }; }
9715	 # Do quote $f, to prevent DOS paths from being IFS'd.
9716	 echo "$f";;
9717      *) # Relative
9718	 if test -f "$f"; then
9719	   # Build tree
9720	   echo "$f"
9721	 elif test -f "$srcdir/$f"; then
9722	   # Source tree
9723	   echo "$srcdir/$f"
9724	 else
9725	   # /dev/null tree
9726	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9727echo "$as_me: error: cannot find input file: $f" >&2;}
9728   { (exit 1); exit 1; }; }
9729	 fi;;
9730      esac
9731    done` || { (exit 1); exit 1; }
9732  # Remove the trailing spaces.
9733  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
9734
9735_ACEOF
9736
9737# Transform confdefs.h into two sed scripts, `conftest.defines' and
9738# `conftest.undefs', that substitutes the proper values into
9739# config.h.in to produce config.h.  The first handles `#define'
9740# templates, and the second `#undef' templates.
9741# And first: Protect against being on the right side of a sed subst in
9742# config.status.  Protect against being in an unquoted here document
9743# in config.status.
9744rm -f conftest.defines conftest.undefs
9745# Using a here document instead of a string reduces the quoting nightmare.
9746# Putting comments in sed scripts is not portable.
9747#
9748# `end' is used to avoid that the second main sed command (meant for
9749# 0-ary CPP macros) applies to n-ary macro definitions.
9750# See the Autoconf documentation for `clear'.
9751cat >confdef2sed.sed <<\_ACEOF
9752s/[\\&,]/\\&/g
9753s,[\\$`],\\&,g
9754t clear
9755: clear
9756s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9757t end
9758s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9759: end
9760_ACEOF
9761# If some macros were called several times there might be several times
9762# the same #defines, which is useless.  Nevertheless, we may not want to
9763# sort them, since we want the *last* AC-DEFINE to be honored.
9764uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9765sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9766rm -f confdef2sed.sed
9767
9768# This sed command replaces #undef with comments.  This is necessary, for
9769# example, in the case of _POSIX_SOURCE, which is predefined and required
9770# on some systems where configure will not decide to define it.
9771cat >>conftest.undefs <<\_ACEOF
9772s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9773_ACEOF
9774
9775# Break up conftest.defines because some shells have a limit on the size
9776# of here documents, and old seds have small limits too (100 cmds).
9777echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9778echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9779echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9780echo '  :' >>$CONFIG_STATUS
9781rm -f conftest.tail
9782while grep . conftest.defines >/dev/null
9783do
9784  # Write a limited-size here document to $tmp/defines.sed.
9785  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9786  # Speed up: don't consider the non `#define' lines.
9787  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
9788  # Work around the forget-to-reset-the-flag bug.
9789  echo 't clr' >>$CONFIG_STATUS
9790  echo ': clr' >>$CONFIG_STATUS
9791  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9792  echo 'CEOF
9793  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9794  rm -f $tmp/in
9795  mv $tmp/out $tmp/in
9796' >>$CONFIG_STATUS
9797  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9798  rm -f conftest.defines
9799  mv conftest.tail conftest.defines
9800done
9801rm -f conftest.defines
9802echo '  fi # grep' >>$CONFIG_STATUS
9803echo >>$CONFIG_STATUS
9804
9805# Break up conftest.undefs because some shells have a limit on the size
9806# of here documents, and old seds have small limits too (100 cmds).
9807echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9808rm -f conftest.tail
9809while grep . conftest.undefs >/dev/null
9810do
9811  # Write a limited-size here document to $tmp/undefs.sed.
9812  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9813  # Speed up: don't consider the non `#undef'
9814  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
9815  # Work around the forget-to-reset-the-flag bug.
9816  echo 't clr' >>$CONFIG_STATUS
9817  echo ': clr' >>$CONFIG_STATUS
9818  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9819  echo 'CEOF
9820  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9821  rm -f $tmp/in
9822  mv $tmp/out $tmp/in
9823' >>$CONFIG_STATUS
9824  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9825  rm -f conftest.undefs
9826  mv conftest.tail conftest.undefs
9827done
9828rm -f conftest.undefs
9829
9830cat >>$CONFIG_STATUS <<\_ACEOF
9831  # Let's still pretend it is `configure' which instantiates (i.e., don't
9832  # use $as_me), people would be surprised to read:
9833  #    /* config.h.  Generated by config.status.  */
9834  if test x"$ac_file" = x-; then
9835    echo "/* Generated by configure.  */" >$tmp/config.h
9836  else
9837    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9838  fi
9839  cat $tmp/in >>$tmp/config.h
9840  rm -f $tmp/in
9841  if test x"$ac_file" != x-; then
9842    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9843      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9844echo "$as_me: $ac_file is unchanged" >&6;}
9845    else
9846      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9847$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9848	 X"$ac_file" : 'X\(//\)[^/]' \| \
9849	 X"$ac_file" : 'X\(//\)$' \| \
9850	 X"$ac_file" : 'X\(/\)' \| \
9851	 .     : '\(.\)' 2>/dev/null ||
9852echo X"$ac_file" |
9853    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9854  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9855  	  /^X\(\/\/\)$/{ s//\1/; q; }
9856  	  /^X\(\/\).*/{ s//\1/; q; }
9857  	  s/.*/./; q'`
9858      { if $as_mkdir_p; then
9859    mkdir -p "$ac_dir"
9860  else
9861    as_dir="$ac_dir"
9862    as_dirs=
9863    while test ! -d "$as_dir"; do
9864      as_dirs="$as_dir $as_dirs"
9865      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9866$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9867	 X"$as_dir" : 'X\(//\)[^/]' \| \
9868	 X"$as_dir" : 'X\(//\)$' \| \
9869	 X"$as_dir" : 'X\(/\)' \| \
9870	 .     : '\(.\)' 2>/dev/null ||
9871echo X"$as_dir" |
9872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9874  	  /^X\(\/\/\)$/{ s//\1/; q; }
9875  	  /^X\(\/\).*/{ s//\1/; q; }
9876  	  s/.*/./; q'`
9877    done
9878    test ! -n "$as_dirs" || mkdir $as_dirs
9879  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9880echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9881   { (exit 1); exit 1; }; }; }
9882
9883      rm -f $ac_file
9884      mv $tmp/config.h $ac_file
9885    fi
9886  else
9887    cat $tmp/config.h
9888    rm -f $tmp/config.h
9889  fi
9890done
9891_ACEOF
9892cat >>$CONFIG_STATUS <<\_ACEOF
9893
9894#
9895# CONFIG_COMMANDS section.
9896#
9897for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9898  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9899  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9900  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9901$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9902	 X"$ac_dest" : 'X\(//\)[^/]' \| \
9903	 X"$ac_dest" : 'X\(//\)$' \| \
9904	 X"$ac_dest" : 'X\(/\)' \| \
9905	 .     : '\(.\)' 2>/dev/null ||
9906echo X"$ac_dest" |
9907    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9908  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9909  	  /^X\(\/\/\)$/{ s//\1/; q; }
9910  	  /^X\(\/\).*/{ s//\1/; q; }
9911  	  s/.*/./; q'`
9912  { if $as_mkdir_p; then
9913    mkdir -p "$ac_dir"
9914  else
9915    as_dir="$ac_dir"
9916    as_dirs=
9917    while test ! -d "$as_dir"; do
9918      as_dirs="$as_dir $as_dirs"
9919      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9921	 X"$as_dir" : 'X\(//\)[^/]' \| \
9922	 X"$as_dir" : 'X\(//\)$' \| \
9923	 X"$as_dir" : 'X\(/\)' \| \
9924	 .     : '\(.\)' 2>/dev/null ||
9925echo X"$as_dir" |
9926    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9927  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9928  	  /^X\(\/\/\)$/{ s//\1/; q; }
9929  	  /^X\(\/\).*/{ s//\1/; q; }
9930  	  s/.*/./; q'`
9931    done
9932    test ! -n "$as_dirs" || mkdir $as_dirs
9933  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9934echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9935   { (exit 1); exit 1; }; }; }
9936
9937  ac_builddir=.
9938
9939if test "$ac_dir" != .; then
9940  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9941  # A "../" for each directory in $ac_dir_suffix.
9942  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9943else
9944  ac_dir_suffix= ac_top_builddir=
9945fi
9946
9947case $srcdir in
9948  .)  # No --srcdir option.  We are building in place.
9949    ac_srcdir=.
9950    if test -z "$ac_top_builddir"; then
9951       ac_top_srcdir=.
9952    else
9953       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9954    fi ;;
9955  [\\/]* | ?:[\\/]* )  # Absolute path.
9956    ac_srcdir=$srcdir$ac_dir_suffix;
9957    ac_top_srcdir=$srcdir ;;
9958  *) # Relative path.
9959    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9960    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9961esac
9962
9963# Do not use `cd foo && pwd` to compute absolute paths, because
9964# the directories may not exist.
9965case `pwd` in
9966.) ac_abs_builddir="$ac_dir";;
9967*)
9968  case "$ac_dir" in
9969  .) ac_abs_builddir=`pwd`;;
9970  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9971  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9972  esac;;
9973esac
9974case $ac_abs_builddir in
9975.) ac_abs_top_builddir=${ac_top_builddir}.;;
9976*)
9977  case ${ac_top_builddir}. in
9978  .) ac_abs_top_builddir=$ac_abs_builddir;;
9979  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9980  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9981  esac;;
9982esac
9983case $ac_abs_builddir in
9984.) ac_abs_srcdir=$ac_srcdir;;
9985*)
9986  case $ac_srcdir in
9987  .) ac_abs_srcdir=$ac_abs_builddir;;
9988  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9989  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9990  esac;;
9991esac
9992case $ac_abs_builddir in
9993.) ac_abs_top_srcdir=$ac_top_srcdir;;
9994*)
9995  case $ac_top_srcdir in
9996  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9997  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9998  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9999  esac;;
10000esac
10001
10002
10003  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10004echo "$as_me: executing $ac_dest commands" >&6;}
10005  case $ac_dest in
10006    default )
10007
10008### Create src/Makefile from pieces.
10009
10010cat >src/Makefile <<END
10011#### DO NOT EDIT THIS FILE.
10012#### This src/Makefile was automatically generated by configure.  The correct
10013#### installation precedure is to run ./configure in the top directory.  You
10014#### should not edit this file; all configuration changes should be made
10015#### via arguments to configure.
10016
10017END
10018cat unix/vars.mak src/vars.mak unix/unix.mak src/rules.mak >> src/Makefile
10019 ;;
10020  esac
10021done
10022_ACEOF
10023
10024cat >>$CONFIG_STATUS <<\_ACEOF
10025
10026{ (exit 0); exit 0; }
10027_ACEOF
10028chmod +x $CONFIG_STATUS
10029ac_clean_files=$ac_clean_files_save
10030
10031
10032# configure is writing to config.log, and then calls config.status.
10033# config.status does its own redirection, appending to config.log.
10034# Unfortunately, on DOS this fails, as config.log is still kept open
10035# by configure, so config.status won't be able to write to it; its
10036# output is simply discarded.  So we exec the FD to /dev/null,
10037# effectively closing config.log, so it can be properly (re)opened and
10038# appended to by config.status.  When coming back to configure, we
10039# need to make the FD available again.
10040if test "$no_create" != yes; then
10041  ac_cs_success=:
10042  ac_config_status_args=
10043  test "$silent" = yes &&
10044    ac_config_status_args="$ac_config_status_args --quiet"
10045  exec 5>/dev/null
10046  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10047  exec 5>>config.log
10048  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10049  # would make configure fail if this is the last instruction.
10050  $ac_cs_success || { (exit 1); exit 1; }
10051fi
10052
10053
10054{ echo "$as_me:$LINENO:
10055#####################################################
10056## prefix: $prefix
10057## exec_prefix: $exec_prefix
10058## bindir: $bindir
10059## datadir: $datadir
10060## executable: \${bindir}/$EXENAME
10061## library: \${datadir}/$LIBNAME
10062##
10063## TinyFugue configuration successful.
10064## Use \"make\" to build.
10065" >&5
10066echo "$as_me:
10067#####################################################
10068## prefix: $prefix
10069## exec_prefix: $exec_prefix
10070## bindir: $bindir
10071## datadir: $datadir
10072## executable: \${bindir}/$EXENAME
10073## library: \${datadir}/$LIBNAME
10074##
10075## TinyFugue configuration successful.
10076## Use \"make\" to build.
10077" >&6;}
10078