source: trunk/third/tcsh/configure @ 22039

Revision 22039, 232.6 KB checked in by ghudson, 19 years ago (diff)
Merge with tcsh 6.14.00.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68         X"$0" : 'X\(//\)$' \| \
69         X"$0" : 'X\(/\)$' \| \
70         .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73          /^X\/\(\/\/\)$/{ s//\1/; q; }
74          /^X\/\(\/\).*/{ s//\1/; q; }
75          s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136         case $as_dir in
137         /*)
138           if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146             CONFIG_SHELL=$as_dir/$as_base
147             export CONFIG_SHELL
148             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149           fi;;
150         esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='      ' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS="   $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="tc.vers.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP DFLAGS HESDEF HESLIB lbindir LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671              localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711         X"$0" : 'X\(//\)[^/]' \| \
712         X"$0" : 'X\(//\)$' \| \
713         X"$0" : 'X\(/\)' \| \
714         .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718          /^X\(\/\/\)$/{ s//\1/; q; }
719          /^X\(\/\).*/{ s//\1/; q; }
720          s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806                          [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                          [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834System types:
835  --build=BUILD     configure for building on BUILD [guessed]
836  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842  cat <<\_ACEOF
843
844Optional Packages:
845  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
846  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
847  --with-hesiod=PREFIX    Use Hesiod lookup for ~ expansion
848
849Some influential environment variables:
850  CC          C compiler command
851  CFLAGS      C compiler flags
852  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
853              nonstandard directory <lib dir>
854  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
855              headers in a nonstandard directory <include dir>
856  CPP         C preprocessor
857
858Use these variables to override the choices made by `configure' or to help
859it to find libraries and programs with nonstandard names/locations.
860
861_ACEOF
862fi
863
864if test "$ac_init_help" = "recursive"; then
865  # If there are subdirs, report their specific --help.
866  ac_popdir=`pwd`
867  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
868    test -d $ac_dir || continue
869    ac_builddir=.
870
871if test "$ac_dir" != .; then
872  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
873  # A "../" for each directory in $ac_dir_suffix.
874  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
875else
876  ac_dir_suffix= ac_top_builddir=
877fi
878
879case $srcdir in
880  .)  # No --srcdir option.  We are building in place.
881    ac_srcdir=.
882    if test -z "$ac_top_builddir"; then
883       ac_top_srcdir=.
884    else
885       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
886    fi ;;
887  [\\/]* | ?:[\\/]* )  # Absolute path.
888    ac_srcdir=$srcdir$ac_dir_suffix;
889    ac_top_srcdir=$srcdir ;;
890  *) # Relative path.
891    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
892    ac_top_srcdir=$ac_top_builddir$srcdir ;;
893esac
894
895# Do not use `cd foo && pwd` to compute absolute paths, because
896# the directories may not exist.
897case `pwd` in
898.) ac_abs_builddir="$ac_dir";;
899*)
900  case "$ac_dir" in
901  .) ac_abs_builddir=`pwd`;;
902  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
903  *) ac_abs_builddir=`pwd`/"$ac_dir";;
904  esac;;
905esac
906case $ac_abs_builddir in
907.) ac_abs_top_builddir=${ac_top_builddir}.;;
908*)
909  case ${ac_top_builddir}. in
910  .) ac_abs_top_builddir=$ac_abs_builddir;;
911  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
912  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
913  esac;;
914esac
915case $ac_abs_builddir in
916.) ac_abs_srcdir=$ac_srcdir;;
917*)
918  case $ac_srcdir in
919  .) ac_abs_srcdir=$ac_abs_builddir;;
920  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
921  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
922  esac;;
923esac
924case $ac_abs_builddir in
925.) ac_abs_top_srcdir=$ac_top_srcdir;;
926*)
927  case $ac_top_srcdir in
928  .) ac_abs_top_srcdir=$ac_abs_builddir;;
929  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
930  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
931  esac;;
932esac
933
934    cd $ac_dir
935    # Check for guested configure; otherwise get Cygnus style configure.
936    if test -f $ac_srcdir/configure.gnu; then
937      echo
938      $SHELL $ac_srcdir/configure.gnu  --help=recursive
939    elif test -f $ac_srcdir/configure; then
940      echo
941      $SHELL $ac_srcdir/configure  --help=recursive
942    elif test -f $ac_srcdir/configure.ac ||
943           test -f $ac_srcdir/configure.in; then
944      echo
945      $ac_configure --help
946    else
947      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948    fi
949    cd $ac_popdir
950  done
951fi
952
953test -n "$ac_init_help" && exit 0
954if $ac_init_version; then
955  cat <<\_ACEOF
956
957Copyright (C) 2003 Free Software Foundation, Inc.
958This configure script is free software; the Free Software Foundation
959gives unlimited permission to copy, distribute and modify it.
960_ACEOF
961  exit 0
962fi
963exec 5>config.log
964cat >&5 <<_ACEOF
965This file contains any messages produced by compilers while
966running configure, to aid debugging if configure makes a mistake.
967
968It was created by $as_me, which was
969generated by GNU Autoconf 2.59.  Invocation command line was
970
971  $ $0 $@
972
973_ACEOF
974{
975cat <<_ASUNAME
976## --------- ##
977## Platform. ##
978## --------- ##
979
980hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981uname -m = `(uname -m) 2>/dev/null || echo unknown`
982uname -r = `(uname -r) 2>/dev/null || echo unknown`
983uname -s = `(uname -s) 2>/dev/null || echo unknown`
984uname -v = `(uname -v) 2>/dev/null || echo unknown`
985
986/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
988
989/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
990/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
991/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
993/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
994/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
995/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
996
997_ASUNAME
998
999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000for as_dir in $PATH
1001do
1002  IFS=$as_save_IFS
1003  test -z "$as_dir" && as_dir=.
1004  echo "PATH: $as_dir"
1005done
1006
1007} >&5
1008
1009cat >&5 <<_ACEOF
1010
1011
1012## ----------- ##
1013## Core tests. ##
1014## ----------- ##
1015
1016_ACEOF
1017
1018
1019# Keep a trace of the command line.
1020# Strip out --no-create and --no-recursion so they do not pile up.
1021# Strip out --silent because we don't want to record it for future runs.
1022# Also quote any args containing shell meta-characters.
1023# Make two passes to allow for proper duplicate-argument suppression.
1024ac_configure_args=
1025ac_configure_args0=
1026ac_configure_args1=
1027ac_sep=
1028ac_must_keep_next=false
1029for ac_pass in 1 2
1030do
1031  for ac_arg
1032  do
1033    case $ac_arg in
1034    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1035    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036    | -silent | --silent | --silen | --sile | --sil)
1037      continue ;;
1038    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1039      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040    esac
1041    case $ac_pass in
1042    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1043    2)
1044      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1045      if test $ac_must_keep_next = true; then
1046        ac_must_keep_next=false # Got value, back to normal.
1047      else
1048        case $ac_arg in
1049          *=* | --config-cache | -C | -disable-* | --disable-* \
1050          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1051          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1052          | -with-* | --with-* | -without-* | --without-* | --x)
1053            case "$ac_configure_args0 " in
1054              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055            esac
1056            ;;
1057          -* ) ac_must_keep_next=true ;;
1058        esac
1059      fi
1060      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1061      # Get rid of the leading space.
1062      ac_sep=" "
1063      ;;
1064    esac
1065  done
1066done
1067$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1068$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1069
1070# When interrupted or exit'd, cleanup temporary files, and complete
1071# config.log.  We remove comments because anyway the quotes in there
1072# would cause problems or look ugly.
1073# WARNING: Be sure not to use single quotes in there, as some shells,
1074# such as our DU 5.0 friend, will then `close' the trap.
1075trap 'exit_status=$?
1076  # Save into config.log some information that might help in debugging.
1077  {
1078    echo
1079
1080    cat <<\_ASBOX
1081## ---------------- ##
1082## Cache variables. ##
1083## ---------------- ##
1084_ASBOX
1085    echo
1086    # The following way of writing the cache mishandles newlines in values,
1087{
1088  (set) 2>&1 |
1089    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090    *ac_space=\ *)
1091      sed -n \
1092        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1093          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1094      ;;
1095    *)
1096      sed -n \
1097        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1098      ;;
1099    esac;
1100}
1101    echo
1102
1103    cat <<\_ASBOX
1104## ----------------- ##
1105## Output variables. ##
1106## ----------------- ##
1107_ASBOX
1108    echo
1109    for ac_var in $ac_subst_vars
1110    do
1111      eval ac_val=$`echo $ac_var`
1112      echo "$ac_var='"'"'$ac_val'"'"'"
1113    done | sort
1114    echo
1115
1116    if test -n "$ac_subst_files"; then
1117      cat <<\_ASBOX
1118## ------------- ##
1119## Output files. ##
1120## ------------- ##
1121_ASBOX
1122      echo
1123      for ac_var in $ac_subst_files
1124      do
1125        eval ac_val=$`echo $ac_var`
1126        echo "$ac_var='"'"'$ac_val'"'"'"
1127      done | sort
1128      echo
1129    fi
1130
1131    if test -s confdefs.h; then
1132      cat <<\_ASBOX
1133## ----------- ##
1134## confdefs.h. ##
1135## ----------- ##
1136_ASBOX
1137      echo
1138      sed "/^$/d" confdefs.h | sort
1139      echo
1140    fi
1141    test "$ac_signal" != 0 &&
1142      echo "$as_me: caught signal $ac_signal"
1143    echo "$as_me: exit $exit_status"
1144  } >&5
1145  rm -f core *.core &&
1146  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1147    exit $exit_status
1148     ' 0
1149for ac_signal in 1 2 13 15; do
1150  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1151done
1152ac_signal=0
1153
1154# confdefs.h avoids OS command line length limits that DEFS can exceed.
1155rm -rf conftest* confdefs.h
1156# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157echo >confdefs.h
1158
1159# Predefined preprocessor variables.
1160
1161cat >>confdefs.h <<_ACEOF
1162#define PACKAGE_NAME "$PACKAGE_NAME"
1163_ACEOF
1164
1165
1166cat >>confdefs.h <<_ACEOF
1167#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1168_ACEOF
1169
1170
1171cat >>confdefs.h <<_ACEOF
1172#define PACKAGE_VERSION "$PACKAGE_VERSION"
1173_ACEOF
1174
1175
1176cat >>confdefs.h <<_ACEOF
1177#define PACKAGE_STRING "$PACKAGE_STRING"
1178_ACEOF
1179
1180
1181cat >>confdefs.h <<_ACEOF
1182#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1183_ACEOF
1184
1185
1186# Let the site file select an alternate cache file if it wants to.
1187# Prefer explicitly selected file to automatically selected ones.
1188if test -z "$CONFIG_SITE"; then
1189  if test "x$prefix" != xNONE; then
1190    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1191  else
1192    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1193  fi
1194fi
1195for ac_site_file in $CONFIG_SITE; do
1196  if test -r "$ac_site_file"; then
1197    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1198echo "$as_me: loading site script $ac_site_file" >&6;}
1199    sed 's/^/| /' "$ac_site_file" >&5
1200    . "$ac_site_file"
1201  fi
1202done
1203
1204if test -r "$cache_file"; then
1205  # Some versions of bash will fail to source /dev/null (special
1206  # files actually), so we avoid doing that.
1207  if test -f "$cache_file"; then
1208    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1209echo "$as_me: loading cache $cache_file" >&6;}
1210    case $cache_file in
1211      [\\/]* | ?:[\\/]* ) . $cache_file;;
1212      *)                      . ./$cache_file;;
1213    esac
1214  fi
1215else
1216  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1217echo "$as_me: creating cache $cache_file" >&6;}
1218  >$cache_file
1219fi
1220
1221# Check that the precious variables saved in the cache have kept the same
1222# value.
1223ac_cache_corrupted=false
1224for ac_var in `(set) 2>&1 |
1225               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1226  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1227  eval ac_new_set=\$ac_env_${ac_var}_set
1228  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1229  eval ac_new_val="\$ac_env_${ac_var}_value"
1230  case $ac_old_set,$ac_new_set in
1231    set,)
1232      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1233echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1234      ac_cache_corrupted=: ;;
1235    ,set)
1236      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1237echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1238      ac_cache_corrupted=: ;;
1239    ,);;
1240    *)
1241      if test "x$ac_old_val" != "x$ac_new_val"; then
1242        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1243echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1244        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1245echo "$as_me:   former value:  $ac_old_val" >&2;}
1246        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1247echo "$as_me:   current value: $ac_new_val" >&2;}
1248        ac_cache_corrupted=:
1249      fi;;
1250  esac
1251  # Pass precious variables to config.status.
1252  if test "$ac_new_set" = set; then
1253    case $ac_new_val in
1254    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1256    *) ac_arg=$ac_var=$ac_new_val ;;
1257    esac
1258    case " $ac_configure_args " in
1259      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1260      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1261    esac
1262  fi
1263done
1264if $ac_cache_corrupted; then
1265  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1266echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1267  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1268echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1269   { (exit 1); exit 1; }; }
1270fi
1271
1272ac_ext=c
1273ac_cpp='$CPP $CPPFLAGS'
1274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1276ac_compiler_gnu=$ac_cv_c_compiler_gnu
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297          ac_config_headers="$ac_config_headers config.h"
1298
1299
1300ac_aux_dir=
1301for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1302  if test -f $ac_dir/install-sh; then
1303    ac_aux_dir=$ac_dir
1304    ac_install_sh="$ac_aux_dir/install-sh -c"
1305    break
1306  elif test -f $ac_dir/install.sh; then
1307    ac_aux_dir=$ac_dir
1308    ac_install_sh="$ac_aux_dir/install.sh -c"
1309    break
1310  elif test -f $ac_dir/shtool; then
1311    ac_aux_dir=$ac_dir
1312    ac_install_sh="$ac_aux_dir/shtool install -c"
1313    break
1314  fi
1315done
1316if test -z "$ac_aux_dir"; then
1317  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1318echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1319   { (exit 1); exit 1; }; }
1320fi
1321ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1322ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1323ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1324
1325# Make sure we can run config.sub.
1326$ac_config_sub sun4 >/dev/null 2>&1 ||
1327  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1328echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1329   { (exit 1); exit 1; }; }
1330
1331echo "$as_me:$LINENO: checking build system type" >&5
1332echo $ECHO_N "checking build system type... $ECHO_C" >&6
1333if test "${ac_cv_build+set}" = set; then
1334  echo $ECHO_N "(cached) $ECHO_C" >&6
1335else
1336  ac_cv_build_alias=$build_alias
1337test -z "$ac_cv_build_alias" &&
1338  ac_cv_build_alias=`$ac_config_guess`
1339test -z "$ac_cv_build_alias" &&
1340  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1341echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1342   { (exit 1); exit 1; }; }
1343ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1344  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1345echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1346   { (exit 1); exit 1; }; }
1347
1348fi
1349echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1350echo "${ECHO_T}$ac_cv_build" >&6
1351build=$ac_cv_build
1352build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1353build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1354build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1355
1356
1357echo "$as_me:$LINENO: checking host system type" >&5
1358echo $ECHO_N "checking host system type... $ECHO_C" >&6
1359if test "${ac_cv_host+set}" = set; then
1360  echo $ECHO_N "(cached) $ECHO_C" >&6
1361else
1362  ac_cv_host_alias=$host_alias
1363test -z "$ac_cv_host_alias" &&
1364  ac_cv_host_alias=$ac_cv_build_alias
1365ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1366  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1367echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1368   { (exit 1); exit 1; }; }
1369
1370fi
1371echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1372echo "${ECHO_T}$ac_cv_host" >&6
1373host=$ac_cv_host
1374host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379
1380echo "$as_me:$LINENO: checking cached host tuple" >&5
1381echo $ECHO_N "checking cached host tuple... $ECHO_C" >&6
1382if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1383     test x"$ac_cv_host_system_type" != x"$host"; }; then
1384  echo "$as_me:$LINENO: result: different" >&5
1385echo "${ECHO_T}different" >&6
1386  { { echo "$as_me:$LINENO: error: remove config.cache and re-run configure" >&5
1387echo "$as_me: error: remove config.cache and re-run configure" >&2;}
1388   { (exit 1); exit 1; }; }
1389else
1390  echo "$as_me:$LINENO: result: ok" >&5
1391echo "${ECHO_T}ok" >&6
1392fi
1393ac_cv_host_system_type="$host"
1394
1395
1396
1397case "${host}" in
1398
1399  ## Alpha (DEC) machines.
1400  alpha*-dec-osf* )
1401    tcsh_config_file=decosf1
1402  ;;
1403
1404  ## Ultrix
1405  *-dec-ultrix* )
1406    tcsh_config_file=ultrix
1407  ;;
1408
1409  ## DGUX
1410  *-dg-dguxR4* )
1411    tcsh_config_file=dgux5.4
1412  ;;
1413  m88k-dg-dgux5.4R* )
1414    tcsh_config_file=dgux5.4
1415  ;;
1416
1417  ## HP/UX
1418  *-hp-hpux7* )
1419    tcsh_config_file=hpux7
1420  ;;
1421  *-hp-hpux[89]* )
1422    tcsh_config_file=hpux8
1423  ;;
1424  *-hp-hpux1[0-9]* )
1425    tcsh_config_file=hpux11
1426  ;;
1427
1428  ## IBM AIX systems
1429  *-ibm-aix*)
1430    tcsh_config_file=aix
1431  ;;
1432
1433  ## SX-4
1434  sx4-nec-*)
1435    CC='cc -h0,ansi,novector,float0'
1436    LDFLAGS='-Gsmall'
1437    tcsh_config_file=superux8
1438  ;;
1439
1440  ## IBM OS/390 systems
1441  *-ibm-os390*)
1442    CC='c89'
1443    tcsh_config_file=os390
1444  ;;
1445
1446  ## Linux
1447  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1448    tcsh_config_file=linux
1449  ;;
1450
1451  ## Motorola systems
1452  m68k-motorola-sysv* )
1453    tcsh_config_file=sysV68
1454  ;;
1455  m88k-motorola-sysv3* )
1456    tcsh_config_file=sysV88
1457  ;;
1458
1459  ## NetBSD systems
1460  *-*-netbsd*)
1461    tcsh_config_file=bsd4.4
1462  ;;
1463
1464  ## FreeBSD systems
1465  *-*-freebsd*)
1466    tcsh_config_file=bsd4.4
1467  ;;
1468
1469  ## OpenBSD systems
1470  *-*-openbsd*)
1471    tcsh_config_file=bsd4.4
1472  ;;
1473
1474  ## BSDI systems
1475  *-*-bsdi*)
1476    tcsh_config_file=bsd4.4
1477  ;;
1478
1479  ## Mac OS X Server
1480  *-*-rhapsody* )
1481    tcsh_config_file=bsd4.4
1482  ;;
1483
1484  ## Mac OS X Server
1485  *-*-darwin* )
1486    tcsh_config_file=bsd4.4
1487  ;;
1488
1489  ## Silicon Graphics machines
1490  *-sgi-iri* )
1491    tcsh_config_file=irix
1492    case "${host_os}" in
1493      irix[34]*) # Irix-3.x - Irix 4.x
1494        NON_GNU_DFLAGS='-D__STDC__'
1495        LIBS='-lsun -lbsd -lc_s'
1496      ;;
1497      irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
1498        LIBS='-lbsd'
1499      ;;
1500      irix6.[2-9]*) # Irix 6.2 and later
1501        tcsh_config_file=irix62
1502      ;;
1503    esac
1504  ;;
1505
1506  ## Suns
1507  *-sun-sunos3* )
1508    tcsh_config_file=sunos35
1509  ;;
1510  *-sun-sunos4.0* )
1511    tcsh_config_file=sunos40
1512  ;;
1513  *-sun-sunos4.1.[12]* )
1514    tcsh_config_file=sunos41
1515  ;;
1516  *-sun-sunos4.1.[3456]* )
1517    tcsh_config_file=sunos413
1518  ;;
1519  *-*-solaris2.[01]* ) # Should handle sparc or x86
1520    tcsh_config_file=sol2
1521  ;;
1522  *-sun-solaris2.2* ) # Sparc only release
1523    tcsh_config_file=sol22
1524  ;;
1525  *-sun-solaris2.3* ) # Sparc only release
1526    tcsh_config_file=sol23
1527  ;;
1528  *-*-solaris2.[45]* ) # Should handle sparc, x86 and powerpc
1529    tcsh_config_file=sol24
1530  ;;
1531  *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
1532    tcsh_config_file=sol26
1533  ;;
1534
1535  ## Dell SVR4
1536  *-dell-sysv4* )
1537    tcsh_config_file=sysv4
1538    DFLAGS="$DFLAGS -DDELL"
1539  ;;
1540
1541  ## SVR4 (Generic and otherwise)
1542  *-*-sysv4* )
1543    tcsh_config_file=sysv4
1544  ;;
1545
1546  ## Tektronix systems
1547  m68k-tektronix-bsd* )
1548    tcsh_config_file=bsd
1549    NON_GNU_DFLAGS='-DBSD -DUTek'
1550  ;;
1551  m88k-tektronix-sysv3* )
1552    tcsh_config_file=tekXD88
1553  ;;
1554
1555  ## SCO
1556  *-sco3.2v5*)
1557    tcsh_config_file=sco32v5
1558  ;;
1559  *-sco3.2v4*)
1560    tcsh_config_file=sco32v4
1561  ;;
1562  *-sco3.2v2*)
1563    tcsh_config_file=sco32v2
1564  ;;
1565
1566  ## Siemens BS2000 Mainframe
1567  bs2000-siemens-*)
1568    tcsh_config_file=bs2000
1569  ;;
1570
1571  ## Convex
1572  *-convex*)
1573    tcsh_config_file=convex
1574  ;;
1575
1576  ## Cray
1577  *-cray-unicos*)
1578    tcsh_config_file=cray
1579  ;;
1580
1581  ## Red Hat Cygwin
1582  *-cygwin)
1583    tcsh_config_file=cygwin32
1584  ;;
1585
1586  ## mips-compaq-nonstopux
1587  *-*-nonstopux)
1588    tcsh_config_file=sysv4
1589  ;;
1590
1591  ## Apollo Domain/OS
1592  *-apollo-*)
1593    tcsh_config_file=apollo
1594  ;;
1595
1596  * )
1597    { { echo "$as_me:$LINENO: error: Tcsh can't guess the configuration file name
1598for \`${host}' systems.
1599Check tcsh's \`Ported' file for manual configuration instructions." >&5
1600echo "$as_me: error: Tcsh can't guess the configuration file name
1601for \`${host}' systems.
1602Check tcsh's \`Ported' file for manual configuration instructions." >&2;}
1603   { (exit 1); exit 1; }; }
1604    ;;
1605
1606esac
1607
1608echo "Tcsh will use configuration file \`$tcsh_config_file'."
1609cp ${srcdir}/config/${tcsh_config_file} config_p.h
1610
1611
1612
1613ac_ext=c
1614ac_cpp='$CPP $CPPFLAGS'
1615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1617ac_compiler_gnu=$ac_cv_c_compiler_gnu
1618if test -n "$ac_tool_prefix"; then
1619  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1620set dummy ${ac_tool_prefix}gcc; ac_word=$2
1621echo "$as_me:$LINENO: checking for $ac_word" >&5
1622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623if test "${ac_cv_prog_CC+set}" = set; then
1624  echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
1626  if test -n "$CC"; then
1627  ac_cv_prog_CC="$CC" # Let the user override the test.
1628else
1629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632  IFS=$as_save_IFS
1633  test -z "$as_dir" && as_dir=.
1634  for ac_exec_ext in '' $ac_executable_extensions; do
1635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638    break 2
1639  fi
1640done
1641done
1642
1643fi
1644fi
1645CC=$ac_cv_prog_CC
1646if test -n "$CC"; then
1647  echo "$as_me:$LINENO: result: $CC" >&5
1648echo "${ECHO_T}$CC" >&6
1649else
1650  echo "$as_me:$LINENO: result: no" >&5
1651echo "${ECHO_T}no" >&6
1652fi
1653
1654fi
1655if test -z "$ac_cv_prog_CC"; then
1656  ac_ct_CC=$CC
1657  # Extract the first word of "gcc", so it can be a program name with args.
1658set dummy gcc; ac_word=$2
1659echo "$as_me:$LINENO: checking for $ac_word" >&5
1660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662  echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664  if test -n "$ac_ct_CC"; then
1665  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666else
1667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670  IFS=$as_save_IFS
1671  test -z "$as_dir" && as_dir=.
1672  for ac_exec_ext in '' $ac_executable_extensions; do
1673  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674    ac_cv_prog_ac_ct_CC="gcc"
1675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676    break 2
1677  fi
1678done
1679done
1680
1681fi
1682fi
1683ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684if test -n "$ac_ct_CC"; then
1685  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686echo "${ECHO_T}$ac_ct_CC" >&6
1687else
1688  echo "$as_me:$LINENO: result: no" >&5
1689echo "${ECHO_T}no" >&6
1690fi
1691
1692  CC=$ac_ct_CC
1693else
1694  CC="$ac_cv_prog_CC"
1695fi
1696
1697if test -z "$CC"; then
1698  if test -n "$ac_tool_prefix"; then
1699  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1700set dummy ${ac_tool_prefix}cc; ac_word=$2
1701echo "$as_me:$LINENO: checking for $ac_word" >&5
1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_CC+set}" = set; then
1704  echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706  if test -n "$CC"; then
1707  ac_cv_prog_CC="$CC" # Let the user override the test.
1708else
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712  IFS=$as_save_IFS
1713  test -z "$as_dir" && as_dir=.
1714  for ac_exec_ext in '' $ac_executable_extensions; do
1715  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716    ac_cv_prog_CC="${ac_tool_prefix}cc"
1717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718    break 2
1719  fi
1720done
1721done
1722
1723fi
1724fi
1725CC=$ac_cv_prog_CC
1726if test -n "$CC"; then
1727  echo "$as_me:$LINENO: result: $CC" >&5
1728echo "${ECHO_T}$CC" >&6
1729else
1730  echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
1732fi
1733
1734fi
1735if test -z "$ac_cv_prog_CC"; then
1736  ac_ct_CC=$CC
1737  # Extract the first word of "cc", so it can be a program name with args.
1738set dummy cc; ac_word=$2
1739echo "$as_me:$LINENO: checking for $ac_word" >&5
1740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742  echo $ECHO_N "(cached) $ECHO_C" >&6
1743else
1744  if test -n "$ac_ct_CC"; then
1745  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746else
1747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748for as_dir in $PATH
1749do
1750  IFS=$as_save_IFS
1751  test -z "$as_dir" && as_dir=.
1752  for ac_exec_ext in '' $ac_executable_extensions; do
1753  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754    ac_cv_prog_ac_ct_CC="cc"
1755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756    break 2
1757  fi
1758done
1759done
1760
1761fi
1762fi
1763ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764if test -n "$ac_ct_CC"; then
1765  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766echo "${ECHO_T}$ac_ct_CC" >&6
1767else
1768  echo "$as_me:$LINENO: result: no" >&5
1769echo "${ECHO_T}no" >&6
1770fi
1771
1772  CC=$ac_ct_CC
1773else
1774  CC="$ac_cv_prog_CC"
1775fi
1776
1777fi
1778if test -z "$CC"; then
1779  # Extract the first word of "cc", so it can be a program name with args.
1780set dummy cc; ac_word=$2
1781echo "$as_me:$LINENO: checking for $ac_word" >&5
1782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783if test "${ac_cv_prog_CC+set}" = set; then
1784  echo $ECHO_N "(cached) $ECHO_C" >&6
1785else
1786  if test -n "$CC"; then
1787  ac_cv_prog_CC="$CC" # Let the user override the test.
1788else
1789  ac_prog_rejected=no
1790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791for as_dir in $PATH
1792do
1793  IFS=$as_save_IFS
1794  test -z "$as_dir" && as_dir=.
1795  for ac_exec_ext in '' $ac_executable_extensions; do
1796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1798       ac_prog_rejected=yes
1799       continue
1800     fi
1801    ac_cv_prog_CC="cc"
1802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803    break 2
1804  fi
1805done
1806done
1807
1808if test $ac_prog_rejected = yes; then
1809  # We found a bogon in the path, so make sure we never use it.
1810  set dummy $ac_cv_prog_CC
1811  shift
1812  if test $# != 0; then
1813    # We chose a different compiler from the bogus one.
1814    # However, it has the same basename, so the bogon will be chosen
1815    # first if we set CC to just the basename; use the full file name.
1816    shift
1817    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1818  fi
1819fi
1820fi
1821fi
1822CC=$ac_cv_prog_CC
1823if test -n "$CC"; then
1824  echo "$as_me:$LINENO: result: $CC" >&5
1825echo "${ECHO_T}$CC" >&6
1826else
1827  echo "$as_me:$LINENO: result: no" >&5
1828echo "${ECHO_T}no" >&6
1829fi
1830
1831fi
1832if test -z "$CC"; then
1833  if test -n "$ac_tool_prefix"; then
1834  for ac_prog in cl
1835  do
1836    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1838echo "$as_me:$LINENO: checking for $ac_word" >&5
1839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840if test "${ac_cv_prog_CC+set}" = set; then
1841  echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843  if test -n "$CC"; then
1844  ac_cv_prog_CC="$CC" # Let the user override the test.
1845else
1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847for as_dir in $PATH
1848do
1849  IFS=$as_save_IFS
1850  test -z "$as_dir" && as_dir=.
1851  for ac_exec_ext in '' $ac_executable_extensions; do
1852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855    break 2
1856  fi
1857done
1858done
1859
1860fi
1861fi
1862CC=$ac_cv_prog_CC
1863if test -n "$CC"; then
1864  echo "$as_me:$LINENO: result: $CC" >&5
1865echo "${ECHO_T}$CC" >&6
1866else
1867  echo "$as_me:$LINENO: result: no" >&5
1868echo "${ECHO_T}no" >&6
1869fi
1870
1871    test -n "$CC" && break
1872  done
1873fi
1874if test -z "$CC"; then
1875  ac_ct_CC=$CC
1876  for ac_prog in cl
1877do
1878  # Extract the first word of "$ac_prog", so it can be a program name with args.
1879set dummy $ac_prog; ac_word=$2
1880echo "$as_me:$LINENO: checking for $ac_word" >&5
1881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1883  echo $ECHO_N "(cached) $ECHO_C" >&6
1884else
1885  if test -n "$ac_ct_CC"; then
1886  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1887else
1888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889for as_dir in $PATH
1890do
1891  IFS=$as_save_IFS
1892  test -z "$as_dir" && as_dir=.
1893  for ac_exec_ext in '' $ac_executable_extensions; do
1894  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895    ac_cv_prog_ac_ct_CC="$ac_prog"
1896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897    break 2
1898  fi
1899done
1900done
1901
1902fi
1903fi
1904ac_ct_CC=$ac_cv_prog_ac_ct_CC
1905if test -n "$ac_ct_CC"; then
1906  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907echo "${ECHO_T}$ac_ct_CC" >&6
1908else
1909  echo "$as_me:$LINENO: result: no" >&5
1910echo "${ECHO_T}no" >&6
1911fi
1912
1913  test -n "$ac_ct_CC" && break
1914done
1915
1916  CC=$ac_ct_CC
1917fi
1918
1919fi
1920
1921
1922test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1923See \`config.log' for more details." >&5
1924echo "$as_me: error: no acceptable C compiler found in \$PATH
1925See \`config.log' for more details." >&2;}
1926   { (exit 1); exit 1; }; }
1927
1928# Provide some information about the compiler.
1929echo "$as_me:$LINENO:" \
1930     "checking for C compiler version" >&5
1931ac_compiler=`set X $ac_compile; echo $2`
1932{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1933  (eval $ac_compiler --version </dev/null >&5) 2>&5
1934  ac_status=$?
1935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936  (exit $ac_status); }
1937{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1938  (eval $ac_compiler -v </dev/null >&5) 2>&5
1939  ac_status=$?
1940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941  (exit $ac_status); }
1942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1943  (eval $ac_compiler -V </dev/null >&5) 2>&5
1944  ac_status=$?
1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946  (exit $ac_status); }
1947
1948cat >conftest.$ac_ext <<_ACEOF
1949/* confdefs.h.  */
1950_ACEOF
1951cat confdefs.h >>conftest.$ac_ext
1952cat >>conftest.$ac_ext <<_ACEOF
1953/* end confdefs.h.  */
1954
1955int
1956main ()
1957{
1958
1959  ;
1960  return 0;
1961}
1962_ACEOF
1963ac_clean_files_save=$ac_clean_files
1964ac_clean_files="$ac_clean_files a.out a.exe b.out"
1965# Try to create an executable without -o first, disregard a.out.
1966# It will help us diagnose broken compilers, and finding out an intuition
1967# of exeext.
1968echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1969echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1970ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1971if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1972  (eval $ac_link_default) 2>&5
1973  ac_status=$?
1974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975  (exit $ac_status); }; then
1976  # Find the output, starting from the most likely.  This scheme is
1977# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1978# resort.
1979
1980# Be careful to initialize this variable, since it used to be cached.
1981# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1982ac_cv_exeext=
1983# b.out is created by i960 compilers.
1984for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1985do
1986  test -f "$ac_file" || continue
1987  case $ac_file in
1988    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1989        ;;
1990    conftest.$ac_ext )
1991        # This is the source file.
1992        ;;
1993    [ab].out )
1994        # We found the default executable, but exeext='' is most
1995        # certainly right.
1996        break;;
1997    *.* )
1998        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1999        # FIXME: I believe we export ac_cv_exeext for Libtool,
2000        # but it would be cool to find out if it's true.  Does anybody
2001        # maintain Libtool? --akim.
2002        export ac_cv_exeext
2003        break;;
2004    * )
2005        break;;
2006  esac
2007done
2008else
2009  echo "$as_me: failed program was:" >&5
2010sed 's/^/| /' conftest.$ac_ext >&5
2011
2012{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: C compiler cannot create executables
2015See \`config.log' for more details." >&2;}
2016   { (exit 77); exit 77; }; }
2017fi
2018
2019ac_exeext=$ac_cv_exeext
2020echo "$as_me:$LINENO: result: $ac_file" >&5
2021echo "${ECHO_T}$ac_file" >&6
2022
2023# Check the compiler produces executables we can run.  If not, either
2024# the compiler is broken, or we cross compile.
2025echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028# If not cross compiling, check that we can run a simple program.
2029if test "$cross_compiling" != yes; then
2030  if { ac_try='./$ac_file'
2031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032  (eval $ac_try) 2>&5
2033  ac_status=$?
2034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035  (exit $ac_status); }; }; then
2036    cross_compiling=no
2037  else
2038    if test "$cross_compiling" = maybe; then
2039        cross_compiling=yes
2040    else
2041        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2042If you meant to cross compile, use \`--host'.
2043See \`config.log' for more details." >&5
2044echo "$as_me: error: cannot run C compiled programs.
2045If you meant to cross compile, use \`--host'.
2046See \`config.log' for more details." >&2;}
2047   { (exit 1); exit 1; }; }
2048    fi
2049  fi
2050fi
2051echo "$as_me:$LINENO: result: yes" >&5
2052echo "${ECHO_T}yes" >&6
2053
2054rm -f a.out a.exe conftest$ac_cv_exeext b.out
2055ac_clean_files=$ac_clean_files_save
2056# Check the compiler produces executables we can run.  If not, either
2057# the compiler is broken, or we cross compile.
2058echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2059echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2060echo "$as_me:$LINENO: result: $cross_compiling" >&5
2061echo "${ECHO_T}$cross_compiling" >&6
2062
2063echo "$as_me:$LINENO: checking for suffix of executables" >&5
2064echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2066  (eval $ac_link) 2>&5
2067  ac_status=$?
2068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069  (exit $ac_status); }; then
2070  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2071# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2072# work properly (i.e., refer to `conftest.exe'), while it won't with
2073# `rm'.
2074for ac_file in conftest.exe conftest conftest.*; do
2075  test -f "$ac_file" || continue
2076  case $ac_file in
2077    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2078    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2079          export ac_cv_exeext
2080          break;;
2081    * ) break;;
2082  esac
2083done
2084else
2085  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2086See \`config.log' for more details." >&5
2087echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2088See \`config.log' for more details." >&2;}
2089   { (exit 1); exit 1; }; }
2090fi
2091
2092rm -f conftest$ac_cv_exeext
2093echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2094echo "${ECHO_T}$ac_cv_exeext" >&6
2095
2096rm -f conftest.$ac_ext
2097EXEEXT=$ac_cv_exeext
2098ac_exeext=$EXEEXT
2099echo "$as_me:$LINENO: checking for suffix of object files" >&5
2100echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2101if test "${ac_cv_objext+set}" = set; then
2102  echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104  cat >conftest.$ac_ext <<_ACEOF
2105/* confdefs.h.  */
2106_ACEOF
2107cat confdefs.h >>conftest.$ac_ext
2108cat >>conftest.$ac_ext <<_ACEOF
2109/* end confdefs.h.  */
2110
2111int
2112main ()
2113{
2114
2115  ;
2116  return 0;
2117}
2118_ACEOF
2119rm -f conftest.o conftest.obj
2120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121  (eval $ac_compile) 2>&5
2122  ac_status=$?
2123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124  (exit $ac_status); }; then
2125  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2126  case $ac_file in
2127    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2128    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2129       break;;
2130  esac
2131done
2132else
2133  echo "$as_me: failed program was:" >&5
2134sed 's/^/| /' conftest.$ac_ext >&5
2135
2136{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2137See \`config.log' for more details." >&5
2138echo "$as_me: error: cannot compute suffix of object files: cannot compile
2139See \`config.log' for more details." >&2;}
2140   { (exit 1); exit 1; }; }
2141fi
2142
2143rm -f conftest.$ac_cv_objext conftest.$ac_ext
2144fi
2145echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2146echo "${ECHO_T}$ac_cv_objext" >&6
2147OBJEXT=$ac_cv_objext
2148ac_objext=$OBJEXT
2149echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2150echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2151if test "${ac_cv_c_compiler_gnu+set}" = set; then
2152  echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
2154  cat >conftest.$ac_ext <<_ACEOF
2155/* confdefs.h.  */
2156_ACEOF
2157cat confdefs.h >>conftest.$ac_ext
2158cat >>conftest.$ac_ext <<_ACEOF
2159/* end confdefs.h.  */
2160
2161int
2162main ()
2163{
2164#ifndef __GNUC__
2165       choke me
2166#endif
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172rm -f conftest.$ac_objext
2173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2174  (eval $ac_compile) 2>conftest.er1
2175  ac_status=$?
2176  grep -v '^ *+' conftest.er1 >conftest.err
2177  rm -f conftest.er1
2178  cat conftest.err >&5
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); } &&
2181         { ac_try='test -z "$ac_c_werror_flag"
2182                         || test ! -s conftest.err'
2183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184  (eval $ac_try) 2>&5
2185  ac_status=$?
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); }; } &&
2188         { ac_try='test -s conftest.$ac_objext'
2189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190  (eval $ac_try) 2>&5
2191  ac_status=$?
2192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193  (exit $ac_status); }; }; then
2194  ac_compiler_gnu=yes
2195else
2196  echo "$as_me: failed program was:" >&5
2197sed 's/^/| /' conftest.$ac_ext >&5
2198
2199ac_compiler_gnu=no
2200fi
2201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2202ac_cv_c_compiler_gnu=$ac_compiler_gnu
2203
2204fi
2205echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2206echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2207GCC=`test $ac_compiler_gnu = yes && echo yes`
2208ac_test_CFLAGS=${CFLAGS+set}
2209ac_save_CFLAGS=$CFLAGS
2210CFLAGS="-g"
2211echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2212echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2213if test "${ac_cv_prog_cc_g+set}" = set; then
2214  echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
2216  cat >conftest.$ac_ext <<_ACEOF
2217/* confdefs.h.  */
2218_ACEOF
2219cat confdefs.h >>conftest.$ac_ext
2220cat >>conftest.$ac_ext <<_ACEOF
2221/* end confdefs.h.  */
2222
2223int
2224main ()
2225{
2226
2227  ;
2228  return 0;
2229}
2230_ACEOF
2231rm -f conftest.$ac_objext
2232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233  (eval $ac_compile) 2>conftest.er1
2234  ac_status=$?
2235  grep -v '^ *+' conftest.er1 >conftest.err
2236  rm -f conftest.er1
2237  cat conftest.err >&5
2238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239  (exit $ac_status); } &&
2240         { ac_try='test -z "$ac_c_werror_flag"
2241                         || test ! -s conftest.err'
2242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243  (eval $ac_try) 2>&5
2244  ac_status=$?
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); }; } &&
2247         { ac_try='test -s conftest.$ac_objext'
2248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249  (eval $ac_try) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; }; then
2253  ac_cv_prog_cc_g=yes
2254else
2255  echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
2258ac_cv_prog_cc_g=no
2259fi
2260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2261fi
2262echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2263echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2264if test "$ac_test_CFLAGS" = set; then
2265  CFLAGS=$ac_save_CFLAGS
2266elif test $ac_cv_prog_cc_g = yes; then
2267  if test "$GCC" = yes; then
2268    CFLAGS="-g -O2"
2269  else
2270    CFLAGS="-g"
2271  fi
2272else
2273  if test "$GCC" = yes; then
2274    CFLAGS="-O2"
2275  else
2276    CFLAGS=
2277  fi
2278fi
2279echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2280echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2281if test "${ac_cv_prog_cc_stdc+set}" = set; then
2282  echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284  ac_cv_prog_cc_stdc=no
2285ac_save_CC=$CC
2286cat >conftest.$ac_ext <<_ACEOF
2287/* confdefs.h.  */
2288_ACEOF
2289cat confdefs.h >>conftest.$ac_ext
2290cat >>conftest.$ac_ext <<_ACEOF
2291/* end confdefs.h.  */
2292#include <stdarg.h>
2293#include <stdio.h>
2294#include <sys/types.h>
2295#include <sys/stat.h>
2296/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2297struct buf { int x; };
2298FILE * (*rcsopen) (struct buf *, struct stat *, int);
2299static char *e (p, i)
2300     char **p;
2301     int i;
2302{
2303  return p[i];
2304}
2305static char *f (char * (*g) (char **, int), char **p, ...)
2306{
2307  char *s;
2308  va_list v;
2309  va_start (v,p);
2310  s = g (p, va_arg (v,int));
2311  va_end (v);
2312  return s;
2313}
2314
2315/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2316   function prototypes and stuff, but not '\xHH' hex character constants.
2317   These don't provoke an error unfortunately, instead are silently treated
2318   as 'x'.  The following induces an error, until -std1 is added to get
2319   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2320   array size at least.  It's necessary to write '\x00'==0 to get something
2321   that's true only with -std1.  */
2322int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2323
2324int test (int i, double x);
2325struct s1 {int (*f) (int a);};
2326struct s2 {int (*f) (double a);};
2327int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2328int argc;
2329char **argv;
2330int
2331main ()
2332{
2333return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2334  ;
2335  return 0;
2336}
2337_ACEOF
2338# Don't try gcc -ansi; that turns off useful extensions and
2339# breaks some systems' header files.
2340# AIX                   -qlanglvl=ansi
2341# Ultrix and OSF/1      -std1
2342# HP-UX 10.20 and later -Ae
2343# HP-UX older versions  -Aa -D_HPUX_SOURCE
2344# SVR4                  -Xc -D__EXTENSIONS__
2345for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2346do
2347  CC="$ac_save_CC $ac_arg"
2348  rm -f conftest.$ac_objext
2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350  (eval $ac_compile) 2>conftest.er1
2351  ac_status=$?
2352  grep -v '^ *+' conftest.er1 >conftest.err
2353  rm -f conftest.er1
2354  cat conftest.err >&5
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); } &&
2357         { ac_try='test -z "$ac_c_werror_flag"
2358                         || test ! -s conftest.err'
2359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360  (eval $ac_try) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; } &&
2364         { ac_try='test -s conftest.$ac_objext'
2365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366  (eval $ac_try) 2>&5
2367  ac_status=$?
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); }; }; then
2370  ac_cv_prog_cc_stdc=$ac_arg
2371break
2372else
2373  echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
2375
2376fi
2377rm -f conftest.err conftest.$ac_objext
2378done
2379rm -f conftest.$ac_ext conftest.$ac_objext
2380CC=$ac_save_CC
2381
2382fi
2383
2384case "x$ac_cv_prog_cc_stdc" in
2385  x|xno)
2386    echo "$as_me:$LINENO: result: none needed" >&5
2387echo "${ECHO_T}none needed" >&6 ;;
2388  *)
2389    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2390echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2391    CC="$CC $ac_cv_prog_cc_stdc" ;;
2392esac
2393
2394# Some people use a C++ compiler to compile C.  Since we use `exit',
2395# in C++ we need to declare it.  In case someone uses the same compiler
2396# for both compiling C and C++ we need to have the C++ compiler decide
2397# the declaration of exit, since it's the most demanding environment.
2398cat >conftest.$ac_ext <<_ACEOF
2399#ifndef __cplusplus
2400  choke me
2401#endif
2402_ACEOF
2403rm -f conftest.$ac_objext
2404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405  (eval $ac_compile) 2>conftest.er1
2406  ac_status=$?
2407  grep -v '^ *+' conftest.er1 >conftest.err
2408  rm -f conftest.er1
2409  cat conftest.err >&5
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); } &&
2412         { ac_try='test -z "$ac_c_werror_flag"
2413                         || test ! -s conftest.err'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; } &&
2419         { ac_try='test -s conftest.$ac_objext'
2420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421  (eval $ac_try) 2>&5
2422  ac_status=$?
2423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424  (exit $ac_status); }; }; then
2425  for ac_declaration in \
2426   '' \
2427   'extern "C" void std::exit (int) throw (); using std::exit;' \
2428   'extern "C" void std::exit (int); using std::exit;' \
2429   'extern "C" void exit (int) throw ();' \
2430   'extern "C" void exit (int);' \
2431   'void exit (int);'
2432do
2433  cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h.  */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h.  */
2439$ac_declaration
2440#include <stdlib.h>
2441int
2442main ()
2443{
2444exit (42);
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451  (eval $ac_compile) 2>conftest.er1
2452  ac_status=$?
2453  grep -v '^ *+' conftest.er1 >conftest.err
2454  rm -f conftest.er1
2455  cat conftest.err >&5
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); } &&
2458         { ac_try='test -z "$ac_c_werror_flag"
2459                         || test ! -s conftest.err'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; } &&
2465         { ac_try='test -s conftest.$ac_objext'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; }; then
2471  :
2472else
2473  echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476continue
2477fi
2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479  cat >conftest.$ac_ext <<_ACEOF
2480/* confdefs.h.  */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h.  */
2485$ac_declaration
2486int
2487main ()
2488{
2489exit (42);
2490  ;
2491  return 0;
2492}
2493_ACEOF
2494rm -f conftest.$ac_objext
2495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496  (eval $ac_compile) 2>conftest.er1
2497  ac_status=$?
2498  grep -v '^ *+' conftest.er1 >conftest.err
2499  rm -f conftest.er1
2500  cat conftest.err >&5
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); } &&
2503         { ac_try='test -z "$ac_c_werror_flag"
2504                         || test ! -s conftest.err'
2505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506  (eval $ac_try) 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }; } &&
2510         { ac_try='test -s conftest.$ac_objext'
2511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512  (eval $ac_try) 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; }; then
2516  break
2517else
2518  echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521fi
2522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523done
2524rm -f conftest*
2525if test -n "$ac_declaration"; then
2526  echo '#ifdef __cplusplus' >>confdefs.h
2527  echo $ac_declaration      >>confdefs.h
2528  echo '#endif'             >>confdefs.h
2529fi
2530
2531else
2532  echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535fi
2536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2537ac_ext=c
2538ac_cpp='$CPP $CPPFLAGS'
2539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
2543ac_ext=c
2544ac_cpp='$CPP $CPPFLAGS'
2545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2549echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2550# On Suns, sometimes $CPP names a directory.
2551if test -n "$CPP" && test -d "$CPP"; then
2552  CPP=
2553fi
2554if test -z "$CPP"; then
2555  if test "${ac_cv_prog_CPP+set}" = set; then
2556  echo $ECHO_N "(cached) $ECHO_C" >&6
2557else
2558      # Double quotes because CPP needs to be expanded
2559    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2560    do
2561      ac_preproc_ok=false
2562for ac_c_preproc_warn_flag in '' yes
2563do
2564  # Use a header file that comes with gcc, so configuring glibc
2565  # with a fresh cross-compiler works.
2566  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2567  # <limits.h> exists even on freestanding compilers.
2568  # On the NeXT, cc -E runs the code through the compiler's parser,
2569  # not just through cpp. "Syntax error" is here to catch this case.
2570  cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h.  */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h.  */
2576#ifdef __STDC__
2577# include <limits.h>
2578#else
2579# include <assert.h>
2580#endif
2581                     Syntax error
2582_ACEOF
2583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2584  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2585  ac_status=$?
2586  grep -v '^ *+' conftest.er1 >conftest.err
2587  rm -f conftest.er1
2588  cat conftest.err >&5
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); } >/dev/null; then
2591  if test -s conftest.err; then
2592    ac_cpp_err=$ac_c_preproc_warn_flag
2593    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2594  else
2595    ac_cpp_err=
2596  fi
2597else
2598  ac_cpp_err=yes
2599fi
2600if test -z "$ac_cpp_err"; then
2601  :
2602else
2603  echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606  # Broken: fails on valid input.
2607continue
2608fi
2609rm -f conftest.err conftest.$ac_ext
2610
2611  # OK, works on sane cases.  Now check whether non-existent headers
2612  # can be detected and how.
2613  cat >conftest.$ac_ext <<_ACEOF
2614/* confdefs.h.  */
2615_ACEOF
2616cat confdefs.h >>conftest.$ac_ext
2617cat >>conftest.$ac_ext <<_ACEOF
2618/* end confdefs.h.  */
2619#include <ac_nonexistent.h>
2620_ACEOF
2621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2622  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2623  ac_status=$?
2624  grep -v '^ *+' conftest.er1 >conftest.err
2625  rm -f conftest.er1
2626  cat conftest.err >&5
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); } >/dev/null; then
2629  if test -s conftest.err; then
2630    ac_cpp_err=$ac_c_preproc_warn_flag
2631    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2632  else
2633    ac_cpp_err=
2634  fi
2635else
2636  ac_cpp_err=yes
2637fi
2638if test -z "$ac_cpp_err"; then
2639  # Broken: success on invalid input.
2640continue
2641else
2642  echo "$as_me: failed program was:" >&5
2643sed 's/^/| /' conftest.$ac_ext >&5
2644
2645  # Passes both tests.
2646ac_preproc_ok=:
2647break
2648fi
2649rm -f conftest.err conftest.$ac_ext
2650
2651done
2652# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2653rm -f conftest.err conftest.$ac_ext
2654if $ac_preproc_ok; then
2655  break
2656fi
2657
2658    done
2659    ac_cv_prog_CPP=$CPP
2660
2661fi
2662  CPP=$ac_cv_prog_CPP
2663else
2664  ac_cv_prog_CPP=$CPP
2665fi
2666echo "$as_me:$LINENO: result: $CPP" >&5
2667echo "${ECHO_T}$CPP" >&6
2668ac_preproc_ok=false
2669for ac_c_preproc_warn_flag in '' yes
2670do
2671  # Use a header file that comes with gcc, so configuring glibc
2672  # with a fresh cross-compiler works.
2673  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2674  # <limits.h> exists even on freestanding compilers.
2675  # On the NeXT, cc -E runs the code through the compiler's parser,
2676  # not just through cpp. "Syntax error" is here to catch this case.
2677  cat >conftest.$ac_ext <<_ACEOF
2678/* confdefs.h.  */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h.  */
2683#ifdef __STDC__
2684# include <limits.h>
2685#else
2686# include <assert.h>
2687#endif
2688                     Syntax error
2689_ACEOF
2690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2691  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2692  ac_status=$?
2693  grep -v '^ *+' conftest.er1 >conftest.err
2694  rm -f conftest.er1
2695  cat conftest.err >&5
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); } >/dev/null; then
2698  if test -s conftest.err; then
2699    ac_cpp_err=$ac_c_preproc_warn_flag
2700    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2701  else
2702    ac_cpp_err=
2703  fi
2704else
2705  ac_cpp_err=yes
2706fi
2707if test -z "$ac_cpp_err"; then
2708  :
2709else
2710  echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713  # Broken: fails on valid input.
2714continue
2715fi
2716rm -f conftest.err conftest.$ac_ext
2717
2718  # OK, works on sane cases.  Now check whether non-existent headers
2719  # can be detected and how.
2720  cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726#include <ac_nonexistent.h>
2727_ACEOF
2728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2729  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2730  ac_status=$?
2731  grep -v '^ *+' conftest.er1 >conftest.err
2732  rm -f conftest.er1
2733  cat conftest.err >&5
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); } >/dev/null; then
2736  if test -s conftest.err; then
2737    ac_cpp_err=$ac_c_preproc_warn_flag
2738    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2739  else
2740    ac_cpp_err=
2741  fi
2742else
2743  ac_cpp_err=yes
2744fi
2745if test -z "$ac_cpp_err"; then
2746  # Broken: success on invalid input.
2747continue
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752  # Passes both tests.
2753ac_preproc_ok=:
2754break
2755fi
2756rm -f conftest.err conftest.$ac_ext
2757
2758done
2759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2760rm -f conftest.err conftest.$ac_ext
2761if $ac_preproc_ok; then
2762  :
2763else
2764  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2765See \`config.log' for more details." >&5
2766echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2767See \`config.log' for more details." >&2;}
2768   { (exit 1); exit 1; }; }
2769fi
2770
2771ac_ext=c
2772ac_cpp='$CPP $CPPFLAGS'
2773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
2777
2778
2779echo "$as_me:$LINENO: checking for egrep" >&5
2780echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2781if test "${ac_cv_prog_egrep+set}" = set; then
2782  echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2785    then ac_cv_prog_egrep='grep -E'
2786    else ac_cv_prog_egrep='egrep'
2787    fi
2788fi
2789echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2790echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2791 EGREP=$ac_cv_prog_egrep
2792
2793
2794if test $ac_cv_c_compiler_gnu = yes; then
2795    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2796echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2797if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2798  echo $ECHO_N "(cached) $ECHO_C" >&6
2799else
2800    ac_pattern="Autoconf.*'x'"
2801  cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h.  */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h.  */
2807#include <sgtty.h>
2808Autoconf TIOCGETP
2809_ACEOF
2810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2811  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2812  ac_cv_prog_gcc_traditional=yes
2813else
2814  ac_cv_prog_gcc_traditional=no
2815fi
2816rm -f conftest*
2817
2818
2819  if test $ac_cv_prog_gcc_traditional = no; then
2820    cat >conftest.$ac_ext <<_ACEOF
2821/* confdefs.h.  */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h.  */
2826#include <termio.h>
2827Autoconf TCGETA
2828_ACEOF
2829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2830  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2831  ac_cv_prog_gcc_traditional=yes
2832fi
2833rm -f conftest*
2834
2835  fi
2836fi
2837echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2838echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2839  if test $ac_cv_prog_gcc_traditional = yes; then
2840    CC="$CC -traditional"
2841  fi
2842fi
2843
2844
2845if test "x$GCC" != xyes ; then
2846  DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
2847  CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
2848fi
2849
2850echo "$as_me:$LINENO: checking for library containing crypt" >&5
2851echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2852if test "${ac_cv_search_crypt+set}" = set; then
2853  echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855  ac_func_search_save_LIBS=$LIBS
2856ac_cv_search_crypt=no
2857cat >conftest.$ac_ext <<_ACEOF
2858/* confdefs.h.  */
2859_ACEOF
2860cat confdefs.h >>conftest.$ac_ext
2861cat >>conftest.$ac_ext <<_ACEOF
2862/* end confdefs.h.  */
2863
2864/* Override any gcc2 internal prototype to avoid an error.  */
2865#ifdef __cplusplus
2866extern "C"
2867#endif
2868/* We use char because int might match the return type of a gcc2
2869   builtin and then its argument prototype would still apply.  */
2870char crypt ();
2871int
2872main ()
2873{
2874crypt ();
2875  ;
2876  return 0;
2877}
2878_ACEOF
2879rm -f conftest.$ac_objext conftest$ac_exeext
2880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881  (eval $ac_link) 2>conftest.er1
2882  ac_status=$?
2883  grep -v '^ *+' conftest.er1 >conftest.err
2884  rm -f conftest.er1
2885  cat conftest.err >&5
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); } &&
2888         { ac_try='test -z "$ac_c_werror_flag"
2889                         || test ! -s conftest.err'
2890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891  (eval $ac_try) 2>&5
2892  ac_status=$?
2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); }; } &&
2895         { ac_try='test -s conftest$ac_exeext'
2896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897  (eval $ac_try) 2>&5
2898  ac_status=$?
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); }; }; then
2901  ac_cv_search_crypt="none required"
2902else
2903  echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905
2906fi
2907rm -f conftest.err conftest.$ac_objext \
2908      conftest$ac_exeext conftest.$ac_ext
2909if test "$ac_cv_search_crypt" = no; then
2910  for ac_lib in crypt; do
2911    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2912    cat >conftest.$ac_ext <<_ACEOF
2913/* confdefs.h.  */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h.  */
2918
2919/* Override any gcc2 internal prototype to avoid an error.  */
2920#ifdef __cplusplus
2921extern "C"
2922#endif
2923/* We use char because int might match the return type of a gcc2
2924   builtin and then its argument prototype would still apply.  */
2925char crypt ();
2926int
2927main ()
2928{
2929crypt ();
2930  ;
2931  return 0;
2932}
2933_ACEOF
2934rm -f conftest.$ac_objext conftest$ac_exeext
2935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936  (eval $ac_link) 2>conftest.er1
2937  ac_status=$?
2938  grep -v '^ *+' conftest.er1 >conftest.err
2939  rm -f conftest.er1
2940  cat conftest.err >&5
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); } &&
2943         { ac_try='test -z "$ac_c_werror_flag"
2944                         || test ! -s conftest.err'
2945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946  (eval $ac_try) 2>&5
2947  ac_status=$?
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); }; } &&
2950         { ac_try='test -s conftest$ac_exeext'
2951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952  (eval $ac_try) 2>&5
2953  ac_status=$?
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); }; }; then
2956  ac_cv_search_crypt="-l$ac_lib"
2957break
2958else
2959  echo "$as_me: failed program was:" >&5
2960sed 's/^/| /' conftest.$ac_ext >&5
2961
2962fi
2963rm -f conftest.err conftest.$ac_objext \
2964      conftest$ac_exeext conftest.$ac_ext
2965  done
2966fi
2967LIBS=$ac_func_search_save_LIBS
2968fi
2969echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2970echo "${ECHO_T}$ac_cv_search_crypt" >&6
2971if test "$ac_cv_search_crypt" != no; then
2972  test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2973
2974fi
2975
2976echo "$as_me:$LINENO: checking for library containing getspnam" >&5
2977echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
2978if test "${ac_cv_search_getspnam+set}" = set; then
2979  echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981  ac_func_search_save_LIBS=$LIBS
2982ac_cv_search_getspnam=no
2983cat >conftest.$ac_ext <<_ACEOF
2984/* confdefs.h.  */
2985_ACEOF
2986cat confdefs.h >>conftest.$ac_ext
2987cat >>conftest.$ac_ext <<_ACEOF
2988/* end confdefs.h.  */
2989
2990/* Override any gcc2 internal prototype to avoid an error.  */
2991#ifdef __cplusplus
2992extern "C"
2993#endif
2994/* We use char because int might match the return type of a gcc2
2995   builtin and then its argument prototype would still apply.  */
2996char getspnam ();
2997int
2998main ()
2999{
3000getspnam ();
3001  ;
3002  return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext conftest$ac_exeext
3006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3007  (eval $ac_link) 2>conftest.er1
3008  ac_status=$?
3009  grep -v '^ *+' conftest.er1 >conftest.err
3010  rm -f conftest.er1
3011  cat conftest.err >&5
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); } &&
3014         { ac_try='test -z "$ac_c_werror_flag"
3015                         || test ! -s conftest.err'
3016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017  (eval $ac_try) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; } &&
3021         { ac_try='test -s conftest$ac_exeext'
3022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023  (eval $ac_try) 2>&5
3024  ac_status=$?
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); }; }; then
3027  ac_cv_search_getspnam="none required"
3028else
3029  echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032fi
3033rm -f conftest.err conftest.$ac_objext \
3034      conftest$ac_exeext conftest.$ac_ext
3035if test "$ac_cv_search_getspnam" = no; then
3036  for ac_lib in sec; do
3037    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3038    cat >conftest.$ac_ext <<_ACEOF
3039/* confdefs.h.  */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h.  */
3044
3045/* Override any gcc2 internal prototype to avoid an error.  */
3046#ifdef __cplusplus
3047extern "C"
3048#endif
3049/* We use char because int might match the return type of a gcc2
3050   builtin and then its argument prototype would still apply.  */
3051char getspnam ();
3052int
3053main ()
3054{
3055getspnam ();
3056  ;
3057  return 0;
3058}
3059_ACEOF
3060rm -f conftest.$ac_objext conftest$ac_exeext
3061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3062  (eval $ac_link) 2>conftest.er1
3063  ac_status=$?
3064  grep -v '^ *+' conftest.er1 >conftest.err
3065  rm -f conftest.er1
3066  cat conftest.err >&5
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); } &&
3069         { ac_try='test -z "$ac_c_werror_flag"
3070                         || test ! -s conftest.err'
3071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072  (eval $ac_try) 2>&5
3073  ac_status=$?
3074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075  (exit $ac_status); }; } &&
3076         { ac_try='test -s conftest$ac_exeext'
3077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078  (eval $ac_try) 2>&5
3079  ac_status=$?
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); }; }; then
3082  ac_cv_search_getspnam="-l$ac_lib"
3083break
3084else
3085  echo "$as_me: failed program was:" >&5
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088fi
3089rm -f conftest.err conftest.$ac_objext \
3090      conftest$ac_exeext conftest.$ac_ext
3091  done
3092fi
3093LIBS=$ac_func_search_save_LIBS
3094fi
3095echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
3096echo "${ECHO_T}$ac_cv_search_getspnam" >&6
3097if test "$ac_cv_search_getspnam" != no; then
3098  test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
3099
3100fi
3101
3102echo "$as_me:$LINENO: checking for library containing tgetent" >&5
3103echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
3104if test "${ac_cv_search_tgetent+set}" = set; then
3105  echo $ECHO_N "(cached) $ECHO_C" >&6
3106else
3107  ac_func_search_save_LIBS=$LIBS
3108ac_cv_search_tgetent=no
3109cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h.  */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h.  */
3115
3116/* Override any gcc2 internal prototype to avoid an error.  */
3117#ifdef __cplusplus
3118extern "C"
3119#endif
3120/* We use char because int might match the return type of a gcc2
3121   builtin and then its argument prototype would still apply.  */
3122char tgetent ();
3123int
3124main ()
3125{
3126tgetent ();
3127  ;
3128  return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext conftest$ac_exeext
3132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3133  (eval $ac_link) 2>conftest.er1
3134  ac_status=$?
3135  grep -v '^ *+' conftest.er1 >conftest.err
3136  rm -f conftest.er1
3137  cat conftest.err >&5
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); } &&
3140         { ac_try='test -z "$ac_c_werror_flag"
3141                         || test ! -s conftest.err'
3142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143  (eval $ac_try) 2>&5
3144  ac_status=$?
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); }; } &&
3147         { ac_try='test -s conftest$ac_exeext'
3148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149  (eval $ac_try) 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); }; }; then
3153  ac_cv_search_tgetent="none required"
3154else
3155  echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158fi
3159rm -f conftest.err conftest.$ac_objext \
3160      conftest$ac_exeext conftest.$ac_ext
3161if test "$ac_cv_search_tgetent" = no; then
3162  for ac_lib in termlib termcap curses ncurses; do
3163    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3164    cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h.  */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h.  */
3170
3171/* Override any gcc2 internal prototype to avoid an error.  */
3172#ifdef __cplusplus
3173extern "C"
3174#endif
3175/* We use char because int might match the return type of a gcc2
3176   builtin and then its argument prototype would still apply.  */
3177char tgetent ();
3178int
3179main ()
3180{
3181tgetent ();
3182  ;
3183  return 0;
3184}
3185_ACEOF
3186rm -f conftest.$ac_objext conftest$ac_exeext
3187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3188  (eval $ac_link) 2>conftest.er1
3189  ac_status=$?
3190  grep -v '^ *+' conftest.er1 >conftest.err
3191  rm -f conftest.er1
3192  cat conftest.err >&5
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); } &&
3195         { ac_try='test -z "$ac_c_werror_flag"
3196                         || test ! -s conftest.err'
3197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198  (eval $ac_try) 2>&5
3199  ac_status=$?
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); }; } &&
3202         { ac_try='test -s conftest$ac_exeext'
3203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204  (eval $ac_try) 2>&5
3205  ac_status=$?
3206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207  (exit $ac_status); }; }; then
3208  ac_cv_search_tgetent="-l$ac_lib"
3209break
3210else
3211  echo "$as_me: failed program was:" >&5
3212sed 's/^/| /' conftest.$ac_ext >&5
3213
3214fi
3215rm -f conftest.err conftest.$ac_objext \
3216      conftest$ac_exeext conftest.$ac_ext
3217  done
3218fi
3219LIBS=$ac_func_search_save_LIBS
3220fi
3221echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
3222echo "${ECHO_T}$ac_cv_search_tgetent" >&6
3223if test "$ac_cv_search_tgetent" != no; then
3224  test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
3225
3226fi
3227
3228echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3229echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
3230if test "${ac_cv_search_gethostbyname+set}" = set; then
3231  echo $ECHO_N "(cached) $ECHO_C" >&6
3232else
3233  ac_func_search_save_LIBS=$LIBS
3234ac_cv_search_gethostbyname=no
3235cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h.  */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h.  */
3241
3242/* Override any gcc2 internal prototype to avoid an error.  */
3243#ifdef __cplusplus
3244extern "C"
3245#endif
3246/* We use char because int might match the return type of a gcc2
3247   builtin and then its argument prototype would still apply.  */
3248char gethostbyname ();
3249int
3250main ()
3251{
3252gethostbyname ();
3253  ;
3254  return 0;
3255}
3256_ACEOF
3257rm -f conftest.$ac_objext conftest$ac_exeext
3258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259  (eval $ac_link) 2>conftest.er1
3260  ac_status=$?
3261  grep -v '^ *+' conftest.er1 >conftest.err
3262  rm -f conftest.er1
3263  cat conftest.err >&5
3264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265  (exit $ac_status); } &&
3266         { ac_try='test -z "$ac_c_werror_flag"
3267                         || test ! -s conftest.err'
3268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269  (eval $ac_try) 2>&5
3270  ac_status=$?
3271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272  (exit $ac_status); }; } &&
3273         { ac_try='test -s conftest$ac_exeext'
3274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275  (eval $ac_try) 2>&5
3276  ac_status=$?
3277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278  (exit $ac_status); }; }; then
3279  ac_cv_search_gethostbyname="none required"
3280else
3281  echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284fi
3285rm -f conftest.err conftest.$ac_objext \
3286      conftest$ac_exeext conftest.$ac_ext
3287if test "$ac_cv_search_gethostbyname" = no; then
3288  for ac_lib in nsl; do
3289    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3290    cat >conftest.$ac_ext <<_ACEOF
3291/* confdefs.h.  */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h.  */
3296
3297/* Override any gcc2 internal prototype to avoid an error.  */
3298#ifdef __cplusplus
3299extern "C"
3300#endif
3301/* We use char because int might match the return type of a gcc2
3302   builtin and then its argument prototype would still apply.  */
3303char gethostbyname ();
3304int
3305main ()
3306{
3307gethostbyname ();
3308  ;
3309  return 0;
3310}
3311_ACEOF
3312rm -f conftest.$ac_objext conftest$ac_exeext
3313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3314  (eval $ac_link) 2>conftest.er1
3315  ac_status=$?
3316  grep -v '^ *+' conftest.er1 >conftest.err
3317  rm -f conftest.er1
3318  cat conftest.err >&5
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); } &&
3321         { ac_try='test -z "$ac_c_werror_flag"
3322                         || test ! -s conftest.err'
3323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324  (eval $ac_try) 2>&5
3325  ac_status=$?
3326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); }; } &&
3328         { ac_try='test -s conftest$ac_exeext'
3329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330  (eval $ac_try) 2>&5
3331  ac_status=$?
3332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); }; }; then
3334  ac_cv_search_gethostbyname="-l$ac_lib"
3335break
3336else
3337  echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
3340fi
3341rm -f conftest.err conftest.$ac_objext \
3342      conftest$ac_exeext conftest.$ac_ext
3343  done
3344fi
3345LIBS=$ac_func_search_save_LIBS
3346fi
3347echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3348echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
3349if test "$ac_cv_search_gethostbyname" != no; then
3350  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
3351
3352fi
3353
3354echo "$as_me:$LINENO: checking for library containing connect" >&5
3355echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
3356if test "${ac_cv_search_connect+set}" = set; then
3357  echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359  ac_func_search_save_LIBS=$LIBS
3360ac_cv_search_connect=no
3361cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h.  */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h.  */
3367
3368/* Override any gcc2 internal prototype to avoid an error.  */
3369#ifdef __cplusplus
3370extern "C"
3371#endif
3372/* We use char because int might match the return type of a gcc2
3373   builtin and then its argument prototype would still apply.  */
3374char connect ();
3375int
3376main ()
3377{
3378connect ();
3379  ;
3380  return 0;
3381}
3382_ACEOF
3383rm -f conftest.$ac_objext conftest$ac_exeext
3384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385  (eval $ac_link) 2>conftest.er1
3386  ac_status=$?
3387  grep -v '^ *+' conftest.er1 >conftest.err
3388  rm -f conftest.er1
3389  cat conftest.err >&5
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); } &&
3392         { ac_try='test -z "$ac_c_werror_flag"
3393                         || test ! -s conftest.err'
3394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395  (eval $ac_try) 2>&5
3396  ac_status=$?
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); }; } &&
3399         { ac_try='test -s conftest$ac_exeext'
3400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401  (eval $ac_try) 2>&5
3402  ac_status=$?
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }; }; then
3405  ac_cv_search_connect="none required"
3406else
3407  echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410fi
3411rm -f conftest.err conftest.$ac_objext \
3412      conftest$ac_exeext conftest.$ac_ext
3413if test "$ac_cv_search_connect" = no; then
3414  for ac_lib in socket; do
3415    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3416    cat >conftest.$ac_ext <<_ACEOF
3417/* confdefs.h.  */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h.  */
3422
3423/* Override any gcc2 internal prototype to avoid an error.  */
3424#ifdef __cplusplus
3425extern "C"
3426#endif
3427/* We use char because int might match the return type of a gcc2
3428   builtin and then its argument prototype would still apply.  */
3429char connect ();
3430int
3431main ()
3432{
3433connect ();
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438rm -f conftest.$ac_objext conftest$ac_exeext
3439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3440  (eval $ac_link) 2>conftest.er1
3441  ac_status=$?
3442  grep -v '^ *+' conftest.er1 >conftest.err
3443  rm -f conftest.er1
3444  cat conftest.err >&5
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); } &&
3447         { ac_try='test -z "$ac_c_werror_flag"
3448                         || test ! -s conftest.err'
3449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450  (eval $ac_try) 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; } &&
3454         { ac_try='test -s conftest$ac_exeext'
3455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456  (eval $ac_try) 2>&5
3457  ac_status=$?
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); }; }; then
3460  ac_cv_search_connect="-l$ac_lib"
3461break
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466fi
3467rm -f conftest.err conftest.$ac_objext \
3468      conftest$ac_exeext conftest.$ac_ext
3469  done
3470fi
3471LIBS=$ac_func_search_save_LIBS
3472fi
3473echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
3474echo "${ECHO_T}$ac_cv_search_connect" >&6
3475if test "$ac_cv_search_connect" != no; then
3476  test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
3477
3478fi
3479
3480echo "$as_me:$LINENO: checking for library containing iconv" >&5
3481echo $ECHO_N "checking for library containing iconv... $ECHO_C" >&6
3482if test "${ac_cv_search_iconv+set}" = set; then
3483  echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485  ac_func_search_save_LIBS=$LIBS
3486ac_cv_search_iconv=no
3487cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h.  */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h.  */
3493
3494/* Override any gcc2 internal prototype to avoid an error.  */
3495#ifdef __cplusplus
3496extern "C"
3497#endif
3498/* We use char because int might match the return type of a gcc2
3499   builtin and then its argument prototype would still apply.  */
3500char iconv ();
3501int
3502main ()
3503{
3504iconv ();
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509rm -f conftest.$ac_objext conftest$ac_exeext
3510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3511  (eval $ac_link) 2>conftest.er1
3512  ac_status=$?
3513  grep -v '^ *+' conftest.er1 >conftest.err
3514  rm -f conftest.er1
3515  cat conftest.err >&5
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } &&
3518         { ac_try='test -z "$ac_c_werror_flag"
3519                         || test ! -s conftest.err'
3520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521  (eval $ac_try) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); }; } &&
3525         { ac_try='test -s conftest$ac_exeext'
3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527  (eval $ac_try) 2>&5
3528  ac_status=$?
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); }; }; then
3531  ac_cv_search_iconv="none required"
3532else
3533  echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536fi
3537rm -f conftest.err conftest.$ac_objext \
3538      conftest$ac_exeext conftest.$ac_ext
3539if test "$ac_cv_search_iconv" = no; then
3540  for ac_lib in iconv; do
3541    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3542    cat >conftest.$ac_ext <<_ACEOF
3543/* confdefs.h.  */
3544_ACEOF
3545cat confdefs.h >>conftest.$ac_ext
3546cat >>conftest.$ac_ext <<_ACEOF
3547/* end confdefs.h.  */
3548
3549/* Override any gcc2 internal prototype to avoid an error.  */
3550#ifdef __cplusplus
3551extern "C"
3552#endif
3553/* We use char because int might match the return type of a gcc2
3554   builtin and then its argument prototype would still apply.  */
3555char iconv ();
3556int
3557main ()
3558{
3559iconv ();
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564rm -f conftest.$ac_objext conftest$ac_exeext
3565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3566  (eval $ac_link) 2>conftest.er1
3567  ac_status=$?
3568  grep -v '^ *+' conftest.er1 >conftest.err
3569  rm -f conftest.er1
3570  cat conftest.err >&5
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); } &&
3573         { ac_try='test -z "$ac_c_werror_flag"
3574                         || test ! -s conftest.err'
3575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576  (eval $ac_try) 2>&5
3577  ac_status=$?
3578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579  (exit $ac_status); }; } &&
3580         { ac_try='test -s conftest$ac_exeext'
3581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582  (eval $ac_try) 2>&5
3583  ac_status=$?
3584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585  (exit $ac_status); }; }; then
3586  ac_cv_search_iconv="-l$ac_lib"
3587break
3588else
3589  echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592fi
3593rm -f conftest.err conftest.$ac_objext \
3594      conftest$ac_exeext conftest.$ac_ext
3595  done
3596fi
3597LIBS=$ac_func_search_save_LIBS
3598fi
3599echo "$as_me:$LINENO: result: $ac_cv_search_iconv" >&5
3600echo "${ECHO_T}$ac_cv_search_iconv" >&6
3601if test "$ac_cv_search_iconv" != no; then
3602  test "$ac_cv_search_iconv" = "none required" || LIBS="$ac_cv_search_iconv $LIBS"
3603
3604cat >>confdefs.h <<\_ACEOF
3605#define HAVE_ICONV 1
3606_ACEOF
3607
3608fi
3609
3610
3611echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3612echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3613if test "${ac_cv_header_stdc+set}" = set; then
3614  echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616  cat >conftest.$ac_ext <<_ACEOF
3617/* confdefs.h.  */
3618_ACEOF
3619cat confdefs.h >>conftest.$ac_ext
3620cat >>conftest.$ac_ext <<_ACEOF
3621/* end confdefs.h.  */
3622#include <stdlib.h>
3623#include <stdarg.h>
3624#include <string.h>
3625#include <float.h>
3626
3627int
3628main ()
3629{
3630
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635rm -f conftest.$ac_objext
3636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637  (eval $ac_compile) 2>conftest.er1
3638  ac_status=$?
3639  grep -v '^ *+' conftest.er1 >conftest.err
3640  rm -f conftest.er1
3641  cat conftest.err >&5
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); } &&
3644         { ac_try='test -z "$ac_c_werror_flag"
3645                         || test ! -s conftest.err'
3646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647  (eval $ac_try) 2>&5
3648  ac_status=$?
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); }; } &&
3651         { ac_try='test -s conftest.$ac_objext'
3652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653  (eval $ac_try) 2>&5
3654  ac_status=$?
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }; }; then
3657  ac_cv_header_stdc=yes
3658else
3659  echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662ac_cv_header_stdc=no
3663fi
3664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3665
3666if test $ac_cv_header_stdc = yes; then
3667  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3668  cat >conftest.$ac_ext <<_ACEOF
3669/* confdefs.h.  */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h.  */
3674#include <string.h>
3675
3676_ACEOF
3677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3678  $EGREP "memchr" >/dev/null 2>&1; then
3679  :
3680else
3681  ac_cv_header_stdc=no
3682fi
3683rm -f conftest*
3684
3685fi
3686
3687if test $ac_cv_header_stdc = yes; then
3688  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3689  cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#include <stdlib.h>
3696
3697_ACEOF
3698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699  $EGREP "free" >/dev/null 2>&1; then
3700  :
3701else
3702  ac_cv_header_stdc=no
3703fi
3704rm -f conftest*
3705
3706fi
3707
3708if test $ac_cv_header_stdc = yes; then
3709  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3710  if test "$cross_compiling" = yes; then
3711  :
3712else
3713  cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h.  */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h.  */
3719#include <ctype.h>
3720#if ((' ' & 0x0FF) == 0x020)
3721# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3722# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3723#else
3724# define ISLOWER(c) \
3725                   (('a' <= (c) && (c) <= 'i') \
3726                     || ('j' <= (c) && (c) <= 'r') \
3727                     || ('s' <= (c) && (c) <= 'z'))
3728# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3729#endif
3730
3731#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3732int
3733main ()
3734{
3735  int i;
3736  for (i = 0; i < 256; i++)
3737    if (XOR (islower (i), ISLOWER (i))
3738        || toupper (i) != TOUPPER (i))
3739      exit(2);
3740  exit (0);
3741}
3742_ACEOF
3743rm -f conftest$ac_exeext
3744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3745  (eval $ac_link) 2>&5
3746  ac_status=$?
3747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750  (eval $ac_try) 2>&5
3751  ac_status=$?
3752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753  (exit $ac_status); }; }; then
3754  :
3755else
3756  echo "$as_me: program exited with status $ac_status" >&5
3757echo "$as_me: failed program was:" >&5
3758sed 's/^/| /' conftest.$ac_ext >&5
3759
3760( exit $ac_status )
3761ac_cv_header_stdc=no
3762fi
3763rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3764fi
3765fi
3766fi
3767echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3768echo "${ECHO_T}$ac_cv_header_stdc" >&6
3769if test $ac_cv_header_stdc = yes; then
3770
3771cat >>confdefs.h <<\_ACEOF
3772#define STDC_HEADERS 1
3773_ACEOF
3774
3775fi
3776
3777# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3788                  inttypes.h stdint.h unistd.h
3789do
3790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3791echo "$as_me:$LINENO: checking for $ac_header" >&5
3792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3793if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794  echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796  cat >conftest.$ac_ext <<_ACEOF
3797/* confdefs.h.  */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h.  */
3802$ac_includes_default
3803
3804#include <$ac_header>
3805_ACEOF
3806rm -f conftest.$ac_objext
3807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808  (eval $ac_compile) 2>conftest.er1
3809  ac_status=$?
3810  grep -v '^ *+' conftest.er1 >conftest.err
3811  rm -f conftest.er1
3812  cat conftest.err >&5
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); } &&
3815         { ac_try='test -z "$ac_c_werror_flag"
3816                         || test ! -s conftest.err'
3817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818  (eval $ac_try) 2>&5
3819  ac_status=$?
3820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821  (exit $ac_status); }; } &&
3822         { ac_try='test -s conftest.$ac_objext'
3823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824  (eval $ac_try) 2>&5
3825  ac_status=$?
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); }; }; then
3828  eval "$as_ac_Header=yes"
3829else
3830  echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833eval "$as_ac_Header=no"
3834fi
3835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3836fi
3837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3839if test `eval echo '${'$as_ac_Header'}'` = yes; then
3840  cat >>confdefs.h <<_ACEOF
3841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3842_ACEOF
3843
3844fi
3845
3846done
3847
3848
3849
3850
3851
3852
3853for ac_header in auth.h inttypes.h shadow.h stdint.h
3854do
3855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3856if eval "test \"\${$as_ac_Header+set}\" = set"; then
3857  echo "$as_me:$LINENO: checking for $ac_header" >&5
3858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3859if eval "test \"\${$as_ac_Header+set}\" = set"; then
3860  echo $ECHO_N "(cached) $ECHO_C" >&6
3861fi
3862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3864else
3865  # Is the header compilable?
3866echo "$as_me:$LINENO: checking $ac_header usability" >&5
3867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3868cat >conftest.$ac_ext <<_ACEOF
3869/* confdefs.h.  */
3870_ACEOF
3871cat confdefs.h >>conftest.$ac_ext
3872cat >>conftest.$ac_ext <<_ACEOF
3873/* end confdefs.h.  */
3874$ac_includes_default
3875#include <$ac_header>
3876_ACEOF
3877rm -f conftest.$ac_objext
3878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879  (eval $ac_compile) 2>conftest.er1
3880  ac_status=$?
3881  grep -v '^ *+' conftest.er1 >conftest.err
3882  rm -f conftest.er1
3883  cat conftest.err >&5
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); } &&
3886         { ac_try='test -z "$ac_c_werror_flag"
3887                         || test ! -s conftest.err'
3888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889  (eval $ac_try) 2>&5
3890  ac_status=$?
3891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892  (exit $ac_status); }; } &&
3893         { ac_try='test -s conftest.$ac_objext'
3894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895  (eval $ac_try) 2>&5
3896  ac_status=$?
3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898  (exit $ac_status); }; }; then
3899  ac_header_compiler=yes
3900else
3901  echo "$as_me: failed program was:" >&5
3902sed 's/^/| /' conftest.$ac_ext >&5
3903
3904ac_header_compiler=no
3905fi
3906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3908echo "${ECHO_T}$ac_header_compiler" >&6
3909
3910# Is the header present?
3911echo "$as_me:$LINENO: checking $ac_header presence" >&5
3912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3913cat >conftest.$ac_ext <<_ACEOF
3914/* confdefs.h.  */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>conftest.$ac_ext <<_ACEOF
3918/* end confdefs.h.  */
3919#include <$ac_header>
3920_ACEOF
3921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3922  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923  ac_status=$?
3924  grep -v '^ *+' conftest.er1 >conftest.err
3925  rm -f conftest.er1
3926  cat conftest.err >&5
3927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928  (exit $ac_status); } >/dev/null; then
3929  if test -s conftest.err; then
3930    ac_cpp_err=$ac_c_preproc_warn_flag
3931    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3932  else
3933    ac_cpp_err=
3934  fi
3935else
3936  ac_cpp_err=yes
3937fi
3938if test -z "$ac_cpp_err"; then
3939  ac_header_preproc=yes
3940else
3941  echo "$as_me: failed program was:" >&5
3942sed 's/^/| /' conftest.$ac_ext >&5
3943
3944  ac_header_preproc=no
3945fi
3946rm -f conftest.err conftest.$ac_ext
3947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3948echo "${ECHO_T}$ac_header_preproc" >&6
3949
3950# So?  What about this header?
3951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3952  yes:no: )
3953    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3955    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3957    ac_header_preproc=yes
3958    ;;
3959  no:yes:* )
3960    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3962    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3963echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3964    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3966    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3967echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3968    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3970    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3972    (
3973      cat <<\_ASBOX
3974## ------------------------------------------ ##
3975## Report this to the AC_PACKAGE_NAME lists.  ##
3976## ------------------------------------------ ##
3977_ASBOX
3978    ) |
3979      sed "s/^/$as_me: WARNING:     /" >&2
3980    ;;
3981esac
3982echo "$as_me:$LINENO: checking for $ac_header" >&5
3983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3984if eval "test \"\${$as_ac_Header+set}\" = set"; then
3985  echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987  eval "$as_ac_Header=\$ac_header_preproc"
3988fi
3989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3991
3992fi
3993if test `eval echo '${'$as_ac_Header'}'` = yes; then
3994  cat >>confdefs.h <<_ACEOF
3995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3996_ACEOF
3997
3998fi
3999
4000done
4001
4002
4003
4004for ac_header in utmpx.h utmp.h
4005do
4006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007if eval "test \"\${$as_ac_Header+set}\" = set"; then
4008  echo "$as_me:$LINENO: checking for $ac_header" >&5
4009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4010if eval "test \"\${$as_ac_Header+set}\" = set"; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012fi
4013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4015else
4016  # Is the header compilable?
4017echo "$as_me:$LINENO: checking $ac_header usability" >&5
4018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4019cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h.  */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h.  */
4025$ac_includes_default
4026#include <$ac_header>
4027_ACEOF
4028rm -f conftest.$ac_objext
4029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030  (eval $ac_compile) 2>conftest.er1
4031  ac_status=$?
4032  grep -v '^ *+' conftest.er1 >conftest.err
4033  rm -f conftest.er1
4034  cat conftest.err >&5
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); } &&
4037         { ac_try='test -z "$ac_c_werror_flag"
4038                         || test ! -s conftest.err'
4039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040  (eval $ac_try) 2>&5
4041  ac_status=$?
4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043  (exit $ac_status); }; } &&
4044         { ac_try='test -s conftest.$ac_objext'
4045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046  (eval $ac_try) 2>&5
4047  ac_status=$?
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); }; }; then
4050  ac_header_compiler=yes
4051else
4052  echo "$as_me: failed program was:" >&5
4053sed 's/^/| /' conftest.$ac_ext >&5
4054
4055ac_header_compiler=no
4056fi
4057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4059echo "${ECHO_T}$ac_header_compiler" >&6
4060
4061# Is the header present?
4062echo "$as_me:$LINENO: checking $ac_header presence" >&5
4063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4064cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h.  */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h.  */
4070#include <$ac_header>
4071_ACEOF
4072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4073  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4074  ac_status=$?
4075  grep -v '^ *+' conftest.er1 >conftest.err
4076  rm -f conftest.er1
4077  cat conftest.err >&5
4078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079  (exit $ac_status); } >/dev/null; then
4080  if test -s conftest.err; then
4081    ac_cpp_err=$ac_c_preproc_warn_flag
4082    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4083  else
4084    ac_cpp_err=
4085  fi
4086else
4087  ac_cpp_err=yes
4088fi
4089if test -z "$ac_cpp_err"; then
4090  ac_header_preproc=yes
4091else
4092  echo "$as_me: failed program was:" >&5
4093sed 's/^/| /' conftest.$ac_ext >&5
4094
4095  ac_header_preproc=no
4096fi
4097rm -f conftest.err conftest.$ac_ext
4098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4099echo "${ECHO_T}$ac_header_preproc" >&6
4100
4101# So?  What about this header?
4102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4103  yes:no: )
4104    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4106    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4107echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4108    ac_header_preproc=yes
4109    ;;
4110  no:yes:* )
4111    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4113    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4114echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4115    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4116echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4117    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4118echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4119    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4121    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4122echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4123    (
4124      cat <<\_ASBOX
4125## ------------------------------------------ ##
4126## Report this to the AC_PACKAGE_NAME lists.  ##
4127## ------------------------------------------ ##
4128_ASBOX
4129    ) |
4130      sed "s/^/$as_me: WARNING:     /" >&2
4131    ;;
4132esac
4133echo "$as_me:$LINENO: checking for $ac_header" >&5
4134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4135if eval "test \"\${$as_ac_Header+set}\" = set"; then
4136  echo $ECHO_N "(cached) $ECHO_C" >&6
4137else
4138  eval "$as_ac_Header=\$ac_header_preproc"
4139fi
4140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4142
4143fi
4144if test `eval echo '${'$as_ac_Header'}'` = yes; then
4145  cat >>confdefs.h <<_ACEOF
4146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4147_ACEOF
4148
4149fi
4150
4151done
4152
4153
4154for ac_header in wchar.h
4155do
4156as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4157if eval "test \"\${$as_ac_Header+set}\" = set"; then
4158  echo "$as_me:$LINENO: checking for $ac_header" >&5
4159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4160if eval "test \"\${$as_ac_Header+set}\" = set"; then
4161  echo $ECHO_N "(cached) $ECHO_C" >&6
4162fi
4163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4164echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4165else
4166  # Is the header compilable?
4167echo "$as_me:$LINENO: checking $ac_header usability" >&5
4168echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4169cat >conftest.$ac_ext <<_ACEOF
4170/* confdefs.h.  */
4171_ACEOF
4172cat confdefs.h >>conftest.$ac_ext
4173cat >>conftest.$ac_ext <<_ACEOF
4174/* end confdefs.h.  */
4175$ac_includes_default
4176#include <$ac_header>
4177_ACEOF
4178rm -f conftest.$ac_objext
4179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180  (eval $ac_compile) 2>conftest.er1
4181  ac_status=$?
4182  grep -v '^ *+' conftest.er1 >conftest.err
4183  rm -f conftest.er1
4184  cat conftest.err >&5
4185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186  (exit $ac_status); } &&
4187         { ac_try='test -z "$ac_c_werror_flag"
4188                         || test ! -s conftest.err'
4189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190  (eval $ac_try) 2>&5
4191  ac_status=$?
4192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193  (exit $ac_status); }; } &&
4194         { ac_try='test -s conftest.$ac_objext'
4195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196  (eval $ac_try) 2>&5
4197  ac_status=$?
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); }; }; then
4200  ac_header_compiler=yes
4201else
4202  echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
4204
4205ac_header_compiler=no
4206fi
4207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4208echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4209echo "${ECHO_T}$ac_header_compiler" >&6
4210
4211# Is the header present?
4212echo "$as_me:$LINENO: checking $ac_header presence" >&5
4213echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4214cat >conftest.$ac_ext <<_ACEOF
4215/* confdefs.h.  */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h.  */
4220#include <$ac_header>
4221_ACEOF
4222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4223  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4224  ac_status=$?
4225  grep -v '^ *+' conftest.er1 >conftest.err
4226  rm -f conftest.er1
4227  cat conftest.err >&5
4228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229  (exit $ac_status); } >/dev/null; then
4230  if test -s conftest.err; then
4231    ac_cpp_err=$ac_c_preproc_warn_flag
4232    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4233  else
4234    ac_cpp_err=
4235  fi
4236else
4237  ac_cpp_err=yes
4238fi
4239if test -z "$ac_cpp_err"; then
4240  ac_header_preproc=yes
4241else
4242  echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
4245  ac_header_preproc=no
4246fi
4247rm -f conftest.err conftest.$ac_ext
4248echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4249echo "${ECHO_T}$ac_header_preproc" >&6
4250
4251# So?  What about this header?
4252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4253  yes:no: )
4254    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4255echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4256    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4257echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4258    ac_header_preproc=yes
4259    ;;
4260  no:yes:* )
4261    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4262echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4263    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4264echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4265    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4266echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4267    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4268echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4269    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4270echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4271    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4272echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4273    (
4274      cat <<\_ASBOX
4275## ------------------------------------------ ##
4276## Report this to the AC_PACKAGE_NAME lists.  ##
4277## ------------------------------------------ ##
4278_ASBOX
4279    ) |
4280      sed "s/^/$as_me: WARNING:     /" >&2
4281    ;;
4282esac
4283echo "$as_me:$LINENO: checking for $ac_header" >&5
4284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4285if eval "test \"\${$as_ac_Header+set}\" = set"; then
4286  echo $ECHO_N "(cached) $ECHO_C" >&6
4287else
4288  eval "$as_ac_Header=\$ac_header_preproc"
4289fi
4290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4291echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4292
4293fi
4294if test `eval echo '${'$as_ac_Header'}'` = yes; then
4295  cat >>confdefs.h <<_ACEOF
4296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297_ACEOF
4298 echo "$as_me:$LINENO: checking for wchar_t" >&5
4299echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4300if test "${ac_cv_type_wchar_t+set}" = set; then
4301  echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303  cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h.  */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h.  */
4309#include <stdio.h>
4310#include <wchar.h>
4311
4312int
4313main ()
4314{
4315if ((wchar_t *) 0)
4316  return 0;
4317if (sizeof (wchar_t))
4318  return 0;
4319  ;
4320  return 0;
4321}
4322_ACEOF
4323rm -f conftest.$ac_objext
4324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325  (eval $ac_compile) 2>conftest.er1
4326  ac_status=$?
4327  grep -v '^ *+' conftest.er1 >conftest.err
4328  rm -f conftest.er1
4329  cat conftest.err >&5
4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331  (exit $ac_status); } &&
4332         { ac_try='test -z "$ac_c_werror_flag"
4333                         || test ! -s conftest.err'
4334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335  (eval $ac_try) 2>&5
4336  ac_status=$?
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); }; } &&
4339         { ac_try='test -s conftest.$ac_objext'
4340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341  (eval $ac_try) 2>&5
4342  ac_status=$?
4343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); }; }; then
4345  ac_cv_type_wchar_t=yes
4346else
4347  echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350ac_cv_type_wchar_t=no
4351fi
4352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4353fi
4354echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
4355echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
4356
4357echo "$as_me:$LINENO: checking size of wchar_t" >&5
4358echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
4359if test "${ac_cv_sizeof_wchar_t+set}" = set; then
4360  echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362  if test "$ac_cv_type_wchar_t" = yes; then
4363  # The cast to unsigned long works around a bug in the HP C Compiler
4364  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4365  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4366  # This bug is HP SR number 8606223364.
4367  if test "$cross_compiling" = yes; then
4368  # Depending upon the size, compute the lo and hi bounds.
4369cat >conftest.$ac_ext <<_ACEOF
4370/* confdefs.h.  */
4371_ACEOF
4372cat confdefs.h >>conftest.$ac_ext
4373cat >>conftest.$ac_ext <<_ACEOF
4374/* end confdefs.h.  */
4375#include <stdio.h>
4376#include <wchar.h>
4377
4378int
4379main ()
4380{
4381static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
4382test_array [0] = 0
4383
4384  ;
4385  return 0;
4386}
4387_ACEOF
4388rm -f conftest.$ac_objext
4389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390  (eval $ac_compile) 2>conftest.er1
4391  ac_status=$?
4392  grep -v '^ *+' conftest.er1 >conftest.err
4393  rm -f conftest.er1
4394  cat conftest.err >&5
4395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396  (exit $ac_status); } &&
4397         { ac_try='test -z "$ac_c_werror_flag"
4398                         || test ! -s conftest.err'
4399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400  (eval $ac_try) 2>&5
4401  ac_status=$?
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); }; } &&
4404         { ac_try='test -s conftest.$ac_objext'
4405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406  (eval $ac_try) 2>&5
4407  ac_status=$?
4408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409  (exit $ac_status); }; }; then
4410  ac_lo=0 ac_mid=0
4411  while :; do
4412    cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h.  */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h.  */
4418#include <stdio.h>
4419#include <wchar.h>
4420
4421int
4422main ()
4423{
4424static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
4425test_array [0] = 0
4426
4427  ;
4428  return 0;
4429}
4430_ACEOF
4431rm -f conftest.$ac_objext
4432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433  (eval $ac_compile) 2>conftest.er1
4434  ac_status=$?
4435  grep -v '^ *+' conftest.er1 >conftest.err
4436  rm -f conftest.er1
4437  cat conftest.err >&5
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); } &&
4440         { ac_try='test -z "$ac_c_werror_flag"
4441                         || test ! -s conftest.err'
4442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443  (eval $ac_try) 2>&5
4444  ac_status=$?
4445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446  (exit $ac_status); }; } &&
4447         { ac_try='test -s conftest.$ac_objext'
4448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449  (eval $ac_try) 2>&5
4450  ac_status=$?
4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452  (exit $ac_status); }; }; then
4453  ac_hi=$ac_mid; break
4454else
4455  echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458ac_lo=`expr $ac_mid + 1`
4459                    if test $ac_lo -le $ac_mid; then
4460                      ac_lo= ac_hi=
4461                      break
4462                    fi
4463                    ac_mid=`expr 2 '*' $ac_mid + 1`
4464fi
4465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4466  done
4467else
4468  echo "$as_me: failed program was:" >&5
4469sed 's/^/| /' conftest.$ac_ext >&5
4470
4471cat >conftest.$ac_ext <<_ACEOF
4472/* confdefs.h.  */
4473_ACEOF
4474cat confdefs.h >>conftest.$ac_ext
4475cat >>conftest.$ac_ext <<_ACEOF
4476/* end confdefs.h.  */
4477#include <stdio.h>
4478#include <wchar.h>
4479
4480int
4481main ()
4482{
4483static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
4484test_array [0] = 0
4485
4486  ;
4487  return 0;
4488}
4489_ACEOF
4490rm -f conftest.$ac_objext
4491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492  (eval $ac_compile) 2>conftest.er1
4493  ac_status=$?
4494  grep -v '^ *+' conftest.er1 >conftest.err
4495  rm -f conftest.er1
4496  cat conftest.err >&5
4497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498  (exit $ac_status); } &&
4499         { ac_try='test -z "$ac_c_werror_flag"
4500                         || test ! -s conftest.err'
4501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502  (eval $ac_try) 2>&5
4503  ac_status=$?
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); }; } &&
4506         { ac_try='test -s conftest.$ac_objext'
4507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508  (eval $ac_try) 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; }; then
4512  ac_hi=-1 ac_mid=-1
4513  while :; do
4514    cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h.  */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h.  */
4520#include <stdio.h>
4521#include <wchar.h>
4522
4523int
4524main ()
4525{
4526static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
4527test_array [0] = 0
4528
4529  ;
4530  return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext
4534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535  (eval $ac_compile) 2>conftest.er1
4536  ac_status=$?
4537  grep -v '^ *+' conftest.er1 >conftest.err
4538  rm -f conftest.er1
4539  cat conftest.err >&5
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); } &&
4542         { ac_try='test -z "$ac_c_werror_flag"
4543                         || test ! -s conftest.err'
4544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545  (eval $ac_try) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; } &&
4549         { ac_try='test -s conftest.$ac_objext'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; }; then
4555  ac_lo=$ac_mid; break
4556else
4557  echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560ac_hi=`expr '(' $ac_mid ')' - 1`
4561                       if test $ac_mid -le $ac_hi; then
4562                         ac_lo= ac_hi=
4563                         break
4564                       fi
4565                       ac_mid=`expr 2 '*' $ac_mid`
4566fi
4567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568  done
4569else
4570  echo "$as_me: failed program was:" >&5
4571sed 's/^/| /' conftest.$ac_ext >&5
4572
4573ac_lo= ac_hi=
4574fi
4575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4576fi
4577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578# Binary search between lo and hi bounds.
4579while test "x$ac_lo" != "x$ac_hi"; do
4580  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4581  cat >conftest.$ac_ext <<_ACEOF
4582/* confdefs.h.  */
4583_ACEOF
4584cat confdefs.h >>conftest.$ac_ext
4585cat >>conftest.$ac_ext <<_ACEOF
4586/* end confdefs.h.  */
4587#include <stdio.h>
4588#include <wchar.h>
4589
4590int
4591main ()
4592{
4593static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
4594test_array [0] = 0
4595
4596  ;
4597  return 0;
4598}
4599_ACEOF
4600rm -f conftest.$ac_objext
4601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602  (eval $ac_compile) 2>conftest.er1
4603  ac_status=$?
4604  grep -v '^ *+' conftest.er1 >conftest.err
4605  rm -f conftest.er1
4606  cat conftest.err >&5
4607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608  (exit $ac_status); } &&
4609         { ac_try='test -z "$ac_c_werror_flag"
4610                         || test ! -s conftest.err'
4611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612  (eval $ac_try) 2>&5
4613  ac_status=$?
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); }; } &&
4616         { ac_try='test -s conftest.$ac_objext'
4617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618  (eval $ac_try) 2>&5
4619  ac_status=$?
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); }; }; then
4622  ac_hi=$ac_mid
4623else
4624  echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
4627ac_lo=`expr '(' $ac_mid ')' + 1`
4628fi
4629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4630done
4631case $ac_lo in
4632?*) ac_cv_sizeof_wchar_t=$ac_lo;;
4633'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
4634See \`config.log' for more details." >&5
4635echo "$as_me: error: cannot compute sizeof (wchar_t), 77
4636See \`config.log' for more details." >&2;}
4637   { (exit 1); exit 1; }; } ;;
4638esac
4639else
4640  if test "$cross_compiling" = yes; then
4641  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4642See \`config.log' for more details." >&5
4643echo "$as_me: error: cannot run test program while cross compiling
4644See \`config.log' for more details." >&2;}
4645   { (exit 1); exit 1; }; }
4646else
4647  cat >conftest.$ac_ext <<_ACEOF
4648/* confdefs.h.  */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h.  */
4653#include <stdio.h>
4654#include <wchar.h>
4655
4656long longval () { return (long) (sizeof (wchar_t)); }
4657unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
4658#include <stdio.h>
4659#include <stdlib.h>
4660int
4661main ()
4662{
4663
4664  FILE *f = fopen ("conftest.val", "w");
4665  if (! f)
4666    exit (1);
4667  if (((long) (sizeof (wchar_t))) < 0)
4668    {
4669      long i = longval ();
4670      if (i != ((long) (sizeof (wchar_t))))
4671        exit (1);
4672      fprintf (f, "%ld\n", i);
4673    }
4674  else
4675    {
4676      unsigned long i = ulongval ();
4677      if (i != ((long) (sizeof (wchar_t))))
4678        exit (1);
4679      fprintf (f, "%lu\n", i);
4680    }
4681  exit (ferror (f) || fclose (f) != 0);
4682
4683  ;
4684  return 0;
4685}
4686_ACEOF
4687rm -f conftest$ac_exeext
4688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689  (eval $ac_link) 2>&5
4690  ac_status=$?
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694  (eval $ac_try) 2>&5
4695  ac_status=$?
4696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); }; }; then
4698  ac_cv_sizeof_wchar_t=`cat conftest.val`
4699else
4700  echo "$as_me: program exited with status $ac_status" >&5
4701echo "$as_me: failed program was:" >&5
4702sed 's/^/| /' conftest.$ac_ext >&5
4703
4704( exit $ac_status )
4705{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
4706See \`config.log' for more details." >&5
4707echo "$as_me: error: cannot compute sizeof (wchar_t), 77
4708See \`config.log' for more details." >&2;}
4709   { (exit 1); exit 1; }; }
4710fi
4711rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4712fi
4713fi
4714rm -f conftest.val
4715else
4716  ac_cv_sizeof_wchar_t=0
4717fi
4718fi
4719echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
4720echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
4721cat >>confdefs.h <<_ACEOF
4722#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
4723_ACEOF
4724
4725
4726
4727for ac_header in wctype.h
4728do
4729as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4730if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731  echo "$as_me:$LINENO: checking for $ac_header" >&5
4732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734  echo $ECHO_N "(cached) $ECHO_C" >&6
4735fi
4736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738else
4739  # Is the header compilable?
4740echo "$as_me:$LINENO: checking $ac_header usability" >&5
4741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4742cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h.  */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h.  */
4748$ac_includes_default
4749#include <$ac_header>
4750_ACEOF
4751rm -f conftest.$ac_objext
4752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753  (eval $ac_compile) 2>conftest.er1
4754  ac_status=$?
4755  grep -v '^ *+' conftest.er1 >conftest.err
4756  rm -f conftest.er1
4757  cat conftest.err >&5
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); } &&
4760         { ac_try='test -z "$ac_c_werror_flag"
4761                         || test ! -s conftest.err'
4762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763  (eval $ac_try) 2>&5
4764  ac_status=$?
4765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766  (exit $ac_status); }; } &&
4767         { ac_try='test -s conftest.$ac_objext'
4768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769  (eval $ac_try) 2>&5
4770  ac_status=$?
4771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772  (exit $ac_status); }; }; then
4773  ac_header_compiler=yes
4774else
4775  echo "$as_me: failed program was:" >&5
4776sed 's/^/| /' conftest.$ac_ext >&5
4777
4778ac_header_compiler=no
4779fi
4780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4782echo "${ECHO_T}$ac_header_compiler" >&6
4783
4784# Is the header present?
4785echo "$as_me:$LINENO: checking $ac_header presence" >&5
4786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4787cat >conftest.$ac_ext <<_ACEOF
4788/* confdefs.h.  */
4789_ACEOF
4790cat confdefs.h >>conftest.$ac_ext
4791cat >>conftest.$ac_ext <<_ACEOF
4792/* end confdefs.h.  */
4793#include <$ac_header>
4794_ACEOF
4795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4796  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4797  ac_status=$?
4798  grep -v '^ *+' conftest.er1 >conftest.err
4799  rm -f conftest.er1
4800  cat conftest.err >&5
4801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802  (exit $ac_status); } >/dev/null; then
4803  if test -s conftest.err; then
4804    ac_cpp_err=$ac_c_preproc_warn_flag
4805    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4806  else
4807    ac_cpp_err=
4808  fi
4809else
4810  ac_cpp_err=yes
4811fi
4812if test -z "$ac_cpp_err"; then
4813  ac_header_preproc=yes
4814else
4815  echo "$as_me: failed program was:" >&5
4816sed 's/^/| /' conftest.$ac_ext >&5
4817
4818  ac_header_preproc=no
4819fi
4820rm -f conftest.err conftest.$ac_ext
4821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4822echo "${ECHO_T}$ac_header_preproc" >&6
4823
4824# So?  What about this header?
4825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4826  yes:no: )
4827    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4829    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4831    ac_header_preproc=yes
4832    ;;
4833  no:yes:* )
4834    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4836    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4837echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4838    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4840    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4841echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4842    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4844    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4846    (
4847      cat <<\_ASBOX
4848## ------------------------------------------ ##
4849## Report this to the AC_PACKAGE_NAME lists.  ##
4850## ------------------------------------------ ##
4851_ASBOX
4852    ) |
4853      sed "s/^/$as_me: WARNING:     /" >&2
4854    ;;
4855esac
4856echo "$as_me:$LINENO: checking for $ac_header" >&5
4857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4858if eval "test \"\${$as_ac_Header+set}\" = set"; then
4859  echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861  eval "$as_ac_Header=\$ac_header_preproc"
4862fi
4863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4865
4866fi
4867if test `eval echo '${'$as_ac_Header'}'` = yes; then
4868  cat >>confdefs.h <<_ACEOF
4869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4870_ACEOF
4871
4872fi
4873
4874done
4875
4876fi
4877
4878done
4879
4880
4881
4882
4883
4884
4885ac_header_dirent=no
4886for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4887  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4888echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4889echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4890if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891  echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893  cat >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#include <sys/types.h>
4900#include <$ac_hdr>
4901
4902int
4903main ()
4904{
4905if ((DIR *) 0)
4906return 0;
4907  ;
4908  return 0;
4909}
4910_ACEOF
4911rm -f conftest.$ac_objext
4912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913  (eval $ac_compile) 2>conftest.er1
4914  ac_status=$?
4915  grep -v '^ *+' conftest.er1 >conftest.err
4916  rm -f conftest.er1
4917  cat conftest.err >&5
4918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919  (exit $ac_status); } &&
4920         { ac_try='test -z "$ac_c_werror_flag"
4921                         || test ! -s conftest.err'
4922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923  (eval $ac_try) 2>&5
4924  ac_status=$?
4925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926  (exit $ac_status); }; } &&
4927         { ac_try='test -s conftest.$ac_objext'
4928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929  (eval $ac_try) 2>&5
4930  ac_status=$?
4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932  (exit $ac_status); }; }; then
4933  eval "$as_ac_Header=yes"
4934else
4935  echo "$as_me: failed program was:" >&5
4936sed 's/^/| /' conftest.$ac_ext >&5
4937
4938eval "$as_ac_Header=no"
4939fi
4940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4941fi
4942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4944if test `eval echo '${'$as_ac_Header'}'` = yes; then
4945  cat >>confdefs.h <<_ACEOF
4946#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4947_ACEOF
4948
4949ac_header_dirent=$ac_hdr; break
4950fi
4951
4952done
4953# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4954if test $ac_header_dirent = dirent.h; then
4955  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4956echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4957if test "${ac_cv_search_opendir+set}" = set; then
4958  echo $ECHO_N "(cached) $ECHO_C" >&6
4959else
4960  ac_func_search_save_LIBS=$LIBS
4961ac_cv_search_opendir=no
4962cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h.  */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h.  */
4968
4969/* Override any gcc2 internal prototype to avoid an error.  */
4970#ifdef __cplusplus
4971extern "C"
4972#endif
4973/* We use char because int might match the return type of a gcc2
4974   builtin and then its argument prototype would still apply.  */
4975char opendir ();
4976int
4977main ()
4978{
4979opendir ();
4980  ;
4981  return 0;
4982}
4983_ACEOF
4984rm -f conftest.$ac_objext conftest$ac_exeext
4985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986  (eval $ac_link) 2>conftest.er1
4987  ac_status=$?
4988  grep -v '^ *+' conftest.er1 >conftest.err
4989  rm -f conftest.er1
4990  cat conftest.err >&5
4991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992  (exit $ac_status); } &&
4993         { ac_try='test -z "$ac_c_werror_flag"
4994                         || test ! -s conftest.err'
4995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996  (eval $ac_try) 2>&5
4997  ac_status=$?
4998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999  (exit $ac_status); }; } &&
5000         { ac_try='test -s conftest$ac_exeext'
5001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002  (eval $ac_try) 2>&5
5003  ac_status=$?
5004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005  (exit $ac_status); }; }; then
5006  ac_cv_search_opendir="none required"
5007else
5008  echo "$as_me: failed program was:" >&5
5009sed 's/^/| /' conftest.$ac_ext >&5
5010
5011fi
5012rm -f conftest.err conftest.$ac_objext \
5013      conftest$ac_exeext conftest.$ac_ext
5014if test "$ac_cv_search_opendir" = no; then
5015  for ac_lib in dir; do
5016    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5017    cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h.  */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h.  */
5023
5024/* Override any gcc2 internal prototype to avoid an error.  */
5025#ifdef __cplusplus
5026extern "C"
5027#endif
5028/* We use char because int might match the return type of a gcc2
5029   builtin and then its argument prototype would still apply.  */
5030char opendir ();
5031int
5032main ()
5033{
5034opendir ();
5035  ;
5036  return 0;
5037}
5038_ACEOF
5039rm -f conftest.$ac_objext conftest$ac_exeext
5040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041  (eval $ac_link) 2>conftest.er1
5042  ac_status=$?
5043  grep -v '^ *+' conftest.er1 >conftest.err
5044  rm -f conftest.er1
5045  cat conftest.err >&5
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); } &&
5048         { ac_try='test -z "$ac_c_werror_flag"
5049                         || test ! -s conftest.err'
5050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051  (eval $ac_try) 2>&5
5052  ac_status=$?
5053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054  (exit $ac_status); }; } &&
5055         { ac_try='test -s conftest$ac_exeext'
5056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057  (eval $ac_try) 2>&5
5058  ac_status=$?
5059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060  (exit $ac_status); }; }; then
5061  ac_cv_search_opendir="-l$ac_lib"
5062break
5063else
5064  echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5
5066
5067fi
5068rm -f conftest.err conftest.$ac_objext \
5069      conftest$ac_exeext conftest.$ac_ext
5070  done
5071fi
5072LIBS=$ac_func_search_save_LIBS
5073fi
5074echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5075echo "${ECHO_T}$ac_cv_search_opendir" >&6
5076if test "$ac_cv_search_opendir" != no; then
5077  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5078
5079fi
5080
5081else
5082  echo "$as_me:$LINENO: checking for library containing opendir" >&5
5083echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5084if test "${ac_cv_search_opendir+set}" = set; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087  ac_func_search_save_LIBS=$LIBS
5088ac_cv_search_opendir=no
5089cat >conftest.$ac_ext <<_ACEOF
5090/* confdefs.h.  */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5094/* end confdefs.h.  */
5095
5096/* Override any gcc2 internal prototype to avoid an error.  */
5097#ifdef __cplusplus
5098extern "C"
5099#endif
5100/* We use char because int might match the return type of a gcc2
5101   builtin and then its argument prototype would still apply.  */
5102char opendir ();
5103int
5104main ()
5105{
5106opendir ();
5107  ;
5108  return 0;
5109}
5110_ACEOF
5111rm -f conftest.$ac_objext conftest$ac_exeext
5112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113  (eval $ac_link) 2>conftest.er1
5114  ac_status=$?
5115  grep -v '^ *+' conftest.er1 >conftest.err
5116  rm -f conftest.er1
5117  cat conftest.err >&5
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); } &&
5120         { ac_try='test -z "$ac_c_werror_flag"
5121                         || test ! -s conftest.err'
5122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123  (eval $ac_try) 2>&5
5124  ac_status=$?
5125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); }; } &&
5127         { ac_try='test -s conftest$ac_exeext'
5128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129  (eval $ac_try) 2>&5
5130  ac_status=$?
5131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132  (exit $ac_status); }; }; then
5133  ac_cv_search_opendir="none required"
5134else
5135  echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138fi
5139rm -f conftest.err conftest.$ac_objext \
5140      conftest$ac_exeext conftest.$ac_ext
5141if test "$ac_cv_search_opendir" = no; then
5142  for ac_lib in x; do
5143    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5144    cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h.  */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h.  */
5150
5151/* Override any gcc2 internal prototype to avoid an error.  */
5152#ifdef __cplusplus
5153extern "C"
5154#endif
5155/* We use char because int might match the return type of a gcc2
5156   builtin and then its argument prototype would still apply.  */
5157char opendir ();
5158int
5159main ()
5160{
5161opendir ();
5162  ;
5163  return 0;
5164}
5165_ACEOF
5166rm -f conftest.$ac_objext conftest$ac_exeext
5167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5168  (eval $ac_link) 2>conftest.er1
5169  ac_status=$?
5170  grep -v '^ *+' conftest.er1 >conftest.err
5171  rm -f conftest.er1
5172  cat conftest.err >&5
5173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174  (exit $ac_status); } &&
5175         { ac_try='test -z "$ac_c_werror_flag"
5176                         || test ! -s conftest.err'
5177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178  (eval $ac_try) 2>&5
5179  ac_status=$?
5180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181  (exit $ac_status); }; } &&
5182         { ac_try='test -s conftest$ac_exeext'
5183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184  (eval $ac_try) 2>&5
5185  ac_status=$?
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); }; }; then
5188  ac_cv_search_opendir="-l$ac_lib"
5189break
5190else
5191  echo "$as_me: failed program was:" >&5
5192sed 's/^/| /' conftest.$ac_ext >&5
5193
5194fi
5195rm -f conftest.err conftest.$ac_objext \
5196      conftest$ac_exeext conftest.$ac_ext
5197  done
5198fi
5199LIBS=$ac_func_search_save_LIBS
5200fi
5201echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5202echo "${ECHO_T}$ac_cv_search_opendir" >&6
5203if test "$ac_cv_search_opendir" != no; then
5204  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5205
5206fi
5207
5208fi
5209
5210echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5211echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5212if test "${ac_cv_header_stat_broken+set}" = set; then
5213  echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215  cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h.  */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h.  */
5221#include <sys/types.h>
5222#include <sys/stat.h>
5223
5224#if defined(S_ISBLK) && defined(S_IFDIR)
5225# if S_ISBLK (S_IFDIR)
5226You lose.
5227# endif
5228#endif
5229
5230#if defined(S_ISBLK) && defined(S_IFCHR)
5231# if S_ISBLK (S_IFCHR)
5232You lose.
5233# endif
5234#endif
5235
5236#if defined(S_ISLNK) && defined(S_IFREG)
5237# if S_ISLNK (S_IFREG)
5238You lose.
5239# endif
5240#endif
5241
5242#if defined(S_ISSOCK) && defined(S_IFREG)
5243# if S_ISSOCK (S_IFREG)
5244You lose.
5245# endif
5246#endif
5247
5248_ACEOF
5249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5250  $EGREP "You lose" >/dev/null 2>&1; then
5251  ac_cv_header_stat_broken=yes
5252else
5253  ac_cv_header_stat_broken=no
5254fi
5255rm -f conftest*
5256
5257fi
5258echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5259echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5260if test $ac_cv_header_stat_broken = yes; then
5261
5262cat >>confdefs.h <<\_ACEOF
5263#define STAT_MACROS_BROKEN 1
5264_ACEOF
5265
5266fi
5267
5268echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5269echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5270if test "${ac_cv_header_stdc+set}" = set; then
5271  echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273  cat >conftest.$ac_ext <<_ACEOF
5274/* confdefs.h.  */
5275_ACEOF
5276cat confdefs.h >>conftest.$ac_ext
5277cat >>conftest.$ac_ext <<_ACEOF
5278/* end confdefs.h.  */
5279#include <stdlib.h>
5280#include <stdarg.h>
5281#include <string.h>
5282#include <float.h>
5283
5284int
5285main ()
5286{
5287
5288  ;
5289  return 0;
5290}
5291_ACEOF
5292rm -f conftest.$ac_objext
5293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294  (eval $ac_compile) 2>conftest.er1
5295  ac_status=$?
5296  grep -v '^ *+' conftest.er1 >conftest.err
5297  rm -f conftest.er1
5298  cat conftest.err >&5
5299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300  (exit $ac_status); } &&
5301         { ac_try='test -z "$ac_c_werror_flag"
5302                         || test ! -s conftest.err'
5303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304  (eval $ac_try) 2>&5
5305  ac_status=$?
5306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307  (exit $ac_status); }; } &&
5308         { ac_try='test -s conftest.$ac_objext'
5309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310  (eval $ac_try) 2>&5
5311  ac_status=$?
5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); }; }; then
5314  ac_cv_header_stdc=yes
5315else
5316  echo "$as_me: failed program was:" >&5
5317sed 's/^/| /' conftest.$ac_ext >&5
5318
5319ac_cv_header_stdc=no
5320fi
5321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322
5323if test $ac_cv_header_stdc = yes; then
5324  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5325  cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h.  */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h.  */
5331#include <string.h>
5332
5333_ACEOF
5334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335  $EGREP "memchr" >/dev/null 2>&1; then
5336  :
5337else
5338  ac_cv_header_stdc=no
5339fi
5340rm -f conftest*
5341
5342fi
5343
5344if test $ac_cv_header_stdc = yes; then
5345  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5346  cat >conftest.$ac_ext <<_ACEOF
5347/* confdefs.h.  */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h.  */
5352#include <stdlib.h>
5353
5354_ACEOF
5355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5356  $EGREP "free" >/dev/null 2>&1; then
5357  :
5358else
5359  ac_cv_header_stdc=no
5360fi
5361rm -f conftest*
5362
5363fi
5364
5365if test $ac_cv_header_stdc = yes; then
5366  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5367  if test "$cross_compiling" = yes; then
5368  :
5369else
5370  cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h.  */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h.  */
5376#include <ctype.h>
5377#if ((' ' & 0x0FF) == 0x020)
5378# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5379# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5380#else
5381# define ISLOWER(c) \
5382                   (('a' <= (c) && (c) <= 'i') \
5383                     || ('j' <= (c) && (c) <= 'r') \
5384                     || ('s' <= (c) && (c) <= 'z'))
5385# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5386#endif
5387
5388#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5389int
5390main ()
5391{
5392  int i;
5393  for (i = 0; i < 256; i++)
5394    if (XOR (islower (i), ISLOWER (i))
5395        || toupper (i) != TOUPPER (i))
5396      exit(2);
5397  exit (0);
5398}
5399_ACEOF
5400rm -f conftest$ac_exeext
5401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402  (eval $ac_link) 2>&5
5403  ac_status=$?
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407  (eval $ac_try) 2>&5
5408  ac_status=$?
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); }; }; then
5411  :
5412else
5413  echo "$as_me: program exited with status $ac_status" >&5
5414echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417( exit $ac_status )
5418ac_cv_header_stdc=no
5419fi
5420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5421fi
5422fi
5423fi
5424echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5425echo "${ECHO_T}$ac_cv_header_stdc" >&6
5426if test $ac_cv_header_stdc = yes; then
5427
5428cat >>confdefs.h <<\_ACEOF
5429#define STDC_HEADERS 1
5430_ACEOF
5431
5432fi
5433
5434
5435echo "$as_me:$LINENO: checking for long long" >&5
5436echo $ECHO_N "checking for long long... $ECHO_C" >&6
5437if test "${ac_cv_type_long_long+set}" = set; then
5438  echo $ECHO_N "(cached) $ECHO_C" >&6
5439else
5440  cat >conftest.$ac_ext <<_ACEOF
5441/* confdefs.h.  */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h.  */
5446$ac_includes_default
5447int
5448main ()
5449{
5450if ((long long *) 0)
5451  return 0;
5452if (sizeof (long long))
5453  return 0;
5454  ;
5455  return 0;
5456}
5457_ACEOF
5458rm -f conftest.$ac_objext
5459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460  (eval $ac_compile) 2>conftest.er1
5461  ac_status=$?
5462  grep -v '^ *+' conftest.er1 >conftest.err
5463  rm -f conftest.er1
5464  cat conftest.err >&5
5465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466  (exit $ac_status); } &&
5467         { ac_try='test -z "$ac_c_werror_flag"
5468                         || test ! -s conftest.err'
5469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470  (eval $ac_try) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); }; } &&
5474         { ac_try='test -s conftest.$ac_objext'
5475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476  (eval $ac_try) 2>&5
5477  ac_status=$?
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); }; }; then
5480  ac_cv_type_long_long=yes
5481else
5482  echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485ac_cv_type_long_long=no
5486fi
5487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5488fi
5489echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5490echo "${ECHO_T}$ac_cv_type_long_long" >&6
5491if test $ac_cv_type_long_long = yes; then
5492
5493cat >>confdefs.h <<_ACEOF
5494#define HAVE_LONG_LONG 1
5495_ACEOF
5496
5497
5498fi
5499
5500echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5501echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5502if test "${ac_cv_type_uid_t+set}" = set; then
5503  echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505  cat >conftest.$ac_ext <<_ACEOF
5506/* confdefs.h.  */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h.  */
5511#include <sys/types.h>
5512
5513_ACEOF
5514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5515  $EGREP "uid_t" >/dev/null 2>&1; then
5516  ac_cv_type_uid_t=yes
5517else
5518  ac_cv_type_uid_t=no
5519fi
5520rm -f conftest*
5521
5522fi
5523echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5524echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5525if test $ac_cv_type_uid_t = no; then
5526
5527cat >>confdefs.h <<\_ACEOF
5528#define uid_t int
5529_ACEOF
5530
5531
5532cat >>confdefs.h <<\_ACEOF
5533#define gid_t int
5534_ACEOF
5535
5536fi
5537
5538echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
5539echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
5540if test "${ac_cv_type_getgroups+set}" = set; then
5541  echo $ECHO_N "(cached) $ECHO_C" >&6
5542else
5543  if test "$cross_compiling" = yes; then
5544  ac_cv_type_getgroups=cross
5545else
5546  cat >conftest.$ac_ext <<_ACEOF
5547/* confdefs.h.  */
5548_ACEOF
5549cat confdefs.h >>conftest.$ac_ext
5550cat >>conftest.$ac_ext <<_ACEOF
5551/* end confdefs.h.  */
5552/* Thanks to Mike Rendell for this test.  */
5553#include <sys/types.h>
5554#define NGID 256
5555#undef MAX
5556#define MAX(x, y) ((x) > (y) ? (x) : (y))
5557
5558int
5559main ()
5560{
5561  gid_t gidset[NGID];
5562  int i, n;
5563  union { gid_t gval; long lval; }  val;
5564
5565  val.lval = -1;
5566  for (i = 0; i < NGID; i++)
5567    gidset[i] = val.gval;
5568  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5569                 gidset);
5570  /* Exit non-zero if getgroups seems to require an array of ints.  This
5571     happens when gid_t is short but getgroups modifies an array of ints.  */
5572  exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5573}
5574_ACEOF
5575rm -f conftest$ac_exeext
5576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5577  (eval $ac_link) 2>&5
5578  ac_status=$?
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582  (eval $ac_try) 2>&5
5583  ac_status=$?
5584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585  (exit $ac_status); }; }; then
5586  ac_cv_type_getgroups=gid_t
5587else
5588  echo "$as_me: program exited with status $ac_status" >&5
5589echo "$as_me: failed program was:" >&5
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
5592( exit $ac_status )
5593ac_cv_type_getgroups=int
5594fi
5595rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5596fi
5597if test $ac_cv_type_getgroups = cross; then
5598        cat >conftest.$ac_ext <<_ACEOF
5599/* confdefs.h.  */
5600_ACEOF
5601cat confdefs.h >>conftest.$ac_ext
5602cat >>conftest.$ac_ext <<_ACEOF
5603/* end confdefs.h.  */
5604#include <unistd.h>
5605
5606_ACEOF
5607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5608  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5609  ac_cv_type_getgroups=gid_t
5610else
5611  ac_cv_type_getgroups=int
5612fi
5613rm -f conftest*
5614
5615fi
5616fi
5617echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
5618echo "${ECHO_T}$ac_cv_type_getgroups" >&6
5619
5620cat >>confdefs.h <<_ACEOF
5621#define GETGROUPS_T $ac_cv_type_getgroups
5622_ACEOF
5623
5624
5625echo "$as_me:$LINENO: checking for mode_t" >&5
5626echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5627if test "${ac_cv_type_mode_t+set}" = set; then
5628  echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
5630  cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h.  */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h.  */
5636$ac_includes_default
5637int
5638main ()
5639{
5640if ((mode_t *) 0)
5641  return 0;
5642if (sizeof (mode_t))
5643  return 0;
5644  ;
5645  return 0;
5646}
5647_ACEOF
5648rm -f conftest.$ac_objext
5649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5650  (eval $ac_compile) 2>conftest.er1
5651  ac_status=$?
5652  grep -v '^ *+' conftest.er1 >conftest.err
5653  rm -f conftest.er1
5654  cat conftest.err >&5
5655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656  (exit $ac_status); } &&
5657         { ac_try='test -z "$ac_c_werror_flag"
5658                         || test ! -s conftest.err'
5659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660  (eval $ac_try) 2>&5
5661  ac_status=$?
5662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663  (exit $ac_status); }; } &&
5664         { ac_try='test -s conftest.$ac_objext'
5665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666  (eval $ac_try) 2>&5
5667  ac_status=$?
5668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669  (exit $ac_status); }; }; then
5670  ac_cv_type_mode_t=yes
5671else
5672  echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675ac_cv_type_mode_t=no
5676fi
5677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5678fi
5679echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5680echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5681if test $ac_cv_type_mode_t = yes; then
5682  :
5683else
5684
5685cat >>confdefs.h <<_ACEOF
5686#define mode_t int
5687_ACEOF
5688
5689fi
5690
5691echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5692echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5693if test "${ac_cv_type_signal+set}" = set; then
5694  echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
5696  cat >conftest.$ac_ext <<_ACEOF
5697/* confdefs.h.  */
5698_ACEOF
5699cat confdefs.h >>conftest.$ac_ext
5700cat >>conftest.$ac_ext <<_ACEOF
5701/* end confdefs.h.  */
5702#include <sys/types.h>
5703#include <signal.h>
5704#ifdef signal
5705# undef signal
5706#endif
5707#ifdef __cplusplus
5708extern "C" void (*signal (int, void (*)(int)))(int);
5709#else
5710void (*signal ()) ();
5711#endif
5712
5713int
5714main ()
5715{
5716int i;
5717  ;
5718  return 0;
5719}
5720_ACEOF
5721rm -f conftest.$ac_objext
5722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723  (eval $ac_compile) 2>conftest.er1
5724  ac_status=$?
5725  grep -v '^ *+' conftest.er1 >conftest.err
5726  rm -f conftest.er1
5727  cat conftest.err >&5
5728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); } &&
5730         { ac_try='test -z "$ac_c_werror_flag"
5731                         || test ! -s conftest.err'
5732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733  (eval $ac_try) 2>&5
5734  ac_status=$?
5735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736  (exit $ac_status); }; } &&
5737         { ac_try='test -s conftest.$ac_objext'
5738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739  (eval $ac_try) 2>&5
5740  ac_status=$?
5741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742  (exit $ac_status); }; }; then
5743  ac_cv_type_signal=void
5744else
5745  echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748ac_cv_type_signal=int
5749fi
5750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5751fi
5752echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5753echo "${ECHO_T}$ac_cv_type_signal" >&6
5754
5755cat >>confdefs.h <<_ACEOF
5756#define RETSIGTYPE $ac_cv_type_signal
5757_ACEOF
5758
5759
5760echo "$as_me:$LINENO: checking for size_t" >&5
5761echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5762if test "${ac_cv_type_size_t+set}" = set; then
5763  echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765  cat >conftest.$ac_ext <<_ACEOF
5766/* confdefs.h.  */
5767_ACEOF
5768cat confdefs.h >>conftest.$ac_ext
5769cat >>conftest.$ac_ext <<_ACEOF
5770/* end confdefs.h.  */
5771$ac_includes_default
5772int
5773main ()
5774{
5775if ((size_t *) 0)
5776  return 0;
5777if (sizeof (size_t))
5778  return 0;
5779  ;
5780  return 0;
5781}
5782_ACEOF
5783rm -f conftest.$ac_objext
5784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785  (eval $ac_compile) 2>conftest.er1
5786  ac_status=$?
5787  grep -v '^ *+' conftest.er1 >conftest.err
5788  rm -f conftest.er1
5789  cat conftest.err >&5
5790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791  (exit $ac_status); } &&
5792         { ac_try='test -z "$ac_c_werror_flag"
5793                         || test ! -s conftest.err'
5794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795  (eval $ac_try) 2>&5
5796  ac_status=$?
5797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); }; } &&
5799         { ac_try='test -s conftest.$ac_objext'
5800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801  (eval $ac_try) 2>&5
5802  ac_status=$?
5803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804  (exit $ac_status); }; }; then
5805  ac_cv_type_size_t=yes
5806else
5807  echo "$as_me: failed program was:" >&5
5808sed 's/^/| /' conftest.$ac_ext >&5
5809
5810ac_cv_type_size_t=no
5811fi
5812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813fi
5814echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5815echo "${ECHO_T}$ac_cv_type_size_t" >&6
5816if test $ac_cv_type_size_t = yes; then
5817  :
5818else
5819
5820cat >>confdefs.h <<_ACEOF
5821#define size_t unsigned
5822_ACEOF
5823
5824fi
5825
5826echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5827echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5828if test "${ac_cv_type_uid_t+set}" = set; then
5829  echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831  cat >conftest.$ac_ext <<_ACEOF
5832/* confdefs.h.  */
5833_ACEOF
5834cat confdefs.h >>conftest.$ac_ext
5835cat >>conftest.$ac_ext <<_ACEOF
5836/* end confdefs.h.  */
5837#include <sys/types.h>
5838
5839_ACEOF
5840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5841  $EGREP "uid_t" >/dev/null 2>&1; then
5842  ac_cv_type_uid_t=yes
5843else
5844  ac_cv_type_uid_t=no
5845fi
5846rm -f conftest*
5847
5848fi
5849echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5850echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5851if test $ac_cv_type_uid_t = no; then
5852
5853cat >>confdefs.h <<\_ACEOF
5854#define uid_t int
5855_ACEOF
5856
5857
5858cat >>confdefs.h <<\_ACEOF
5859#define gid_t int
5860_ACEOF
5861
5862fi
5863
5864
5865
5866
5867echo "$as_me:$LINENO: checking for socklen_t" >&5
5868echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
5869if test "${ac_cv_type_socklen_t+set}" = set; then
5870  echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872  cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h.  */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h.  */
5878
5879#include <sys/types.h>
5880#include <sys/socket.h>
5881
5882
5883int
5884main ()
5885{
5886if ((socklen_t *) 0)
5887  return 0;
5888if (sizeof (socklen_t))
5889  return 0;
5890  ;
5891  return 0;
5892}
5893_ACEOF
5894rm -f conftest.$ac_objext
5895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896  (eval $ac_compile) 2>conftest.er1
5897  ac_status=$?
5898  grep -v '^ *+' conftest.er1 >conftest.err
5899  rm -f conftest.er1
5900  cat conftest.err >&5
5901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902  (exit $ac_status); } &&
5903         { ac_try='test -z "$ac_c_werror_flag"
5904                         || test ! -s conftest.err'
5905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906  (eval $ac_try) 2>&5
5907  ac_status=$?
5908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909  (exit $ac_status); }; } &&
5910         { ac_try='test -s conftest.$ac_objext'
5911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912  (eval $ac_try) 2>&5
5913  ac_status=$?
5914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); }; }; then
5916  ac_cv_type_socklen_t=yes
5917else
5918  echo "$as_me: failed program was:" >&5
5919sed 's/^/| /' conftest.$ac_ext >&5
5920
5921ac_cv_type_socklen_t=no
5922fi
5923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5924fi
5925echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5926echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
5927if test $ac_cv_type_socklen_t = yes; then
5928  :
5929else
5930
5931cat >>confdefs.h <<\_ACEOF
5932#define socklen_t int
5933_ACEOF
5934
5935fi
5936
5937
5938
5939
5940echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
5941echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
5942if test "${ac_cv_member_struct_dirent_d_ino+set}" = set; then
5943  echo $ECHO_N "(cached) $ECHO_C" >&6
5944else
5945  cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h.  */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h.  */
5951#ifdef HAVE_DIRENT_H
5952# include <dirent.h>
5953#else
5954# ifdef HAVE_NDIR_H
5955#  include <ndir.h>
5956# else
5957#  include <sys/dir.h>
5958# endif
5959# define dirent direct
5960#endif
5961
5962int
5963main ()
5964{
5965static struct dirent ac_aggr;
5966if (ac_aggr.d_ino)
5967return 0;
5968  ;
5969  return 0;
5970}
5971_ACEOF
5972rm -f conftest.$ac_objext
5973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974  (eval $ac_compile) 2>conftest.er1
5975  ac_status=$?
5976  grep -v '^ *+' conftest.er1 >conftest.err
5977  rm -f conftest.er1
5978  cat conftest.err >&5
5979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980  (exit $ac_status); } &&
5981         { ac_try='test -z "$ac_c_werror_flag"
5982                         || test ! -s conftest.err'
5983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984  (eval $ac_try) 2>&5
5985  ac_status=$?
5986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987  (exit $ac_status); }; } &&
5988         { ac_try='test -s conftest.$ac_objext'
5989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990  (eval $ac_try) 2>&5
5991  ac_status=$?
5992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993  (exit $ac_status); }; }; then
5994  ac_cv_member_struct_dirent_d_ino=yes
5995else
5996  echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h.  */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
6004/* end confdefs.h.  */
6005#ifdef HAVE_DIRENT_H
6006# include <dirent.h>
6007#else
6008# ifdef HAVE_NDIR_H
6009#  include <ndir.h>
6010# else
6011#  include <sys/dir.h>
6012# endif
6013# define dirent direct
6014#endif
6015
6016int
6017main ()
6018{
6019static struct dirent ac_aggr;
6020if (sizeof ac_aggr.d_ino)
6021return 0;
6022  ;
6023  return 0;
6024}
6025_ACEOF
6026rm -f conftest.$ac_objext
6027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028  (eval $ac_compile) 2>conftest.er1
6029  ac_status=$?
6030  grep -v '^ *+' conftest.er1 >conftest.err
6031  rm -f conftest.er1
6032  cat conftest.err >&5
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); } &&
6035         { ac_try='test -z "$ac_c_werror_flag"
6036                         || test ! -s conftest.err'
6037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038  (eval $ac_try) 2>&5
6039  ac_status=$?
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); }; } &&
6042         { ac_try='test -s conftest.$ac_objext'
6043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044  (eval $ac_try) 2>&5
6045  ac_status=$?
6046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047  (exit $ac_status); }; }; then
6048  ac_cv_member_struct_dirent_d_ino=yes
6049else
6050  echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053ac_cv_member_struct_dirent_d_ino=no
6054fi
6055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6056fi
6057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6058fi
6059echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_ino" >&5
6060echo "${ECHO_T}$ac_cv_member_struct_dirent_d_ino" >&6
6061if test $ac_cv_member_struct_dirent_d_ino = yes; then
6062
6063cat >>confdefs.h <<_ACEOF
6064#define HAVE_STRUCT_DIRENT_D_INO 1
6065_ACEOF
6066
6067
6068fi
6069
6070echo "$as_me:$LINENO: checking for struct utmp.ut_host" >&5
6071echo $ECHO_N "checking for struct utmp.ut_host... $ECHO_C" >&6
6072if test "${ac_cv_member_struct_utmp_ut_host+set}" = set; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075  cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h.  */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
6080/* end confdefs.h.  */
6081#ifdef HAVE_UTMPX_H
6082#include <utmpx.h>
6083#define utmp utmpx
6084#elif defined HAVE_UTMP_H
6085#include <utmp.h>
6086#endif
6087
6088int
6089main ()
6090{
6091static struct utmp ac_aggr;
6092if (ac_aggr.ut_host)
6093return 0;
6094  ;
6095  return 0;
6096}
6097_ACEOF
6098rm -f conftest.$ac_objext
6099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100  (eval $ac_compile) 2>conftest.er1
6101  ac_status=$?
6102  grep -v '^ *+' conftest.er1 >conftest.err
6103  rm -f conftest.er1
6104  cat conftest.err >&5
6105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106  (exit $ac_status); } &&
6107         { ac_try='test -z "$ac_c_werror_flag"
6108                         || test ! -s conftest.err'
6109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110  (eval $ac_try) 2>&5
6111  ac_status=$?
6112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113  (exit $ac_status); }; } &&
6114         { ac_try='test -s conftest.$ac_objext'
6115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116  (eval $ac_try) 2>&5
6117  ac_status=$?
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); }; }; then
6120  ac_cv_member_struct_utmp_ut_host=yes
6121else
6122  echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125cat >conftest.$ac_ext <<_ACEOF
6126/* confdefs.h.  */
6127_ACEOF
6128cat confdefs.h >>conftest.$ac_ext
6129cat >>conftest.$ac_ext <<_ACEOF
6130/* end confdefs.h.  */
6131#ifdef HAVE_UTMPX_H
6132#include <utmpx.h>
6133#define utmp utmpx
6134#elif defined HAVE_UTMP_H
6135#include <utmp.h>
6136#endif
6137
6138int
6139main ()
6140{
6141static struct utmp ac_aggr;
6142if (sizeof ac_aggr.ut_host)
6143return 0;
6144  ;
6145  return 0;
6146}
6147_ACEOF
6148rm -f conftest.$ac_objext
6149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150  (eval $ac_compile) 2>conftest.er1
6151  ac_status=$?
6152  grep -v '^ *+' conftest.er1 >conftest.err
6153  rm -f conftest.er1
6154  cat conftest.err >&5
6155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); } &&
6157         { ac_try='test -z "$ac_c_werror_flag"
6158                         || test ! -s conftest.err'
6159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160  (eval $ac_try) 2>&5
6161  ac_status=$?
6162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163  (exit $ac_status); }; } &&
6164         { ac_try='test -s conftest.$ac_objext'
6165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166  (eval $ac_try) 2>&5
6167  ac_status=$?
6168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169  (exit $ac_status); }; }; then
6170  ac_cv_member_struct_utmp_ut_host=yes
6171else
6172  echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
6175ac_cv_member_struct_utmp_ut_host=no
6176fi
6177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6178fi
6179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6180fi
6181echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_host" >&5
6182echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_host" >&6
6183if test $ac_cv_member_struct_utmp_ut_host = yes; then
6184
6185cat >>confdefs.h <<_ACEOF
6186#define HAVE_STRUCT_UTMP_UT_HOST 1
6187_ACEOF
6188
6189
6190fi
6191echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
6192echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
6193if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
6194  echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196  cat >conftest.$ac_ext <<_ACEOF
6197/* confdefs.h.  */
6198_ACEOF
6199cat confdefs.h >>conftest.$ac_ext
6200cat >>conftest.$ac_ext <<_ACEOF
6201/* end confdefs.h.  */
6202#ifdef HAVE_UTMPX_H
6203#include <utmpx.h>
6204#define utmp utmpx
6205#elif defined HAVE_UTMP_H
6206#include <utmp.h>
6207#endif
6208
6209int
6210main ()
6211{
6212static struct utmp ac_aggr;
6213if (ac_aggr.ut_user)
6214return 0;
6215  ;
6216  return 0;
6217}
6218_ACEOF
6219rm -f conftest.$ac_objext
6220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221  (eval $ac_compile) 2>conftest.er1
6222  ac_status=$?
6223  grep -v '^ *+' conftest.er1 >conftest.err
6224  rm -f conftest.er1
6225  cat conftest.err >&5
6226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227  (exit $ac_status); } &&
6228         { ac_try='test -z "$ac_c_werror_flag"
6229                         || test ! -s conftest.err'
6230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231  (eval $ac_try) 2>&5
6232  ac_status=$?
6233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234  (exit $ac_status); }; } &&
6235         { ac_try='test -s conftest.$ac_objext'
6236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237  (eval $ac_try) 2>&5
6238  ac_status=$?
6239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240  (exit $ac_status); }; }; then
6241  ac_cv_member_struct_utmp_ut_user=yes
6242else
6243  echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h.  */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h.  */
6252#ifdef HAVE_UTMPX_H
6253#include <utmpx.h>
6254#define utmp utmpx
6255#elif defined HAVE_UTMP_H
6256#include <utmp.h>
6257#endif
6258
6259int
6260main ()
6261{
6262static struct utmp ac_aggr;
6263if (sizeof ac_aggr.ut_user)
6264return 0;
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269rm -f conftest.$ac_objext
6270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6271  (eval $ac_compile) 2>conftest.er1
6272  ac_status=$?
6273  grep -v '^ *+' conftest.er1 >conftest.err
6274  rm -f conftest.er1
6275  cat conftest.err >&5
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); } &&
6278         { ac_try='test -z "$ac_c_werror_flag"
6279                         || test ! -s conftest.err'
6280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281  (eval $ac_try) 2>&5
6282  ac_status=$?
6283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284  (exit $ac_status); }; } &&
6285         { ac_try='test -s conftest.$ac_objext'
6286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287  (eval $ac_try) 2>&5
6288  ac_status=$?
6289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290  (exit $ac_status); }; }; then
6291  ac_cv_member_struct_utmp_ut_user=yes
6292else
6293  echo "$as_me: failed program was:" >&5
6294sed 's/^/| /' conftest.$ac_ext >&5
6295
6296ac_cv_member_struct_utmp_ut_user=no
6297fi
6298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6299fi
6300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6301fi
6302echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
6303echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
6304if test $ac_cv_member_struct_utmp_ut_user = yes; then
6305
6306cat >>confdefs.h <<_ACEOF
6307#define HAVE_STRUCT_UTMP_UT_USER 1
6308_ACEOF
6309
6310
6311fi
6312echo "$as_me:$LINENO: checking for struct utmp.ut_tv" >&5
6313echo $ECHO_N "checking for struct utmp.ut_tv... $ECHO_C" >&6
6314if test "${ac_cv_member_struct_utmp_ut_tv+set}" = set; then
6315  echo $ECHO_N "(cached) $ECHO_C" >&6
6316else
6317  cat >conftest.$ac_ext <<_ACEOF
6318/* confdefs.h.  */
6319_ACEOF
6320cat confdefs.h >>conftest.$ac_ext
6321cat >>conftest.$ac_ext <<_ACEOF
6322/* end confdefs.h.  */
6323#ifdef HAVE_UTMPX_H
6324#include <utmpx.h>
6325#define utmp utmpx
6326#elif defined HAVE_UTMP_H
6327#include <utmp.h>
6328#endif
6329
6330int
6331main ()
6332{
6333static struct utmp ac_aggr;
6334if (ac_aggr.ut_tv)
6335return 0;
6336  ;
6337  return 0;
6338}
6339_ACEOF
6340rm -f conftest.$ac_objext
6341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342  (eval $ac_compile) 2>conftest.er1
6343  ac_status=$?
6344  grep -v '^ *+' conftest.er1 >conftest.err
6345  rm -f conftest.er1
6346  cat conftest.err >&5
6347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348  (exit $ac_status); } &&
6349         { ac_try='test -z "$ac_c_werror_flag"
6350                         || test ! -s conftest.err'
6351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352  (eval $ac_try) 2>&5
6353  ac_status=$?
6354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355  (exit $ac_status); }; } &&
6356         { ac_try='test -s conftest.$ac_objext'
6357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358  (eval $ac_try) 2>&5
6359  ac_status=$?
6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361  (exit $ac_status); }; }; then
6362  ac_cv_member_struct_utmp_ut_tv=yes
6363else
6364  echo "$as_me: failed program was:" >&5
6365sed 's/^/| /' conftest.$ac_ext >&5
6366
6367cat >conftest.$ac_ext <<_ACEOF
6368/* confdefs.h.  */
6369_ACEOF
6370cat confdefs.h >>conftest.$ac_ext
6371cat >>conftest.$ac_ext <<_ACEOF
6372/* end confdefs.h.  */
6373#ifdef HAVE_UTMPX_H
6374#include <utmpx.h>
6375#define utmp utmpx
6376#elif defined HAVE_UTMP_H
6377#include <utmp.h>
6378#endif
6379
6380int
6381main ()
6382{
6383static struct utmp ac_aggr;
6384if (sizeof ac_aggr.ut_tv)
6385return 0;
6386  ;
6387  return 0;
6388}
6389_ACEOF
6390rm -f conftest.$ac_objext
6391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392  (eval $ac_compile) 2>conftest.er1
6393  ac_status=$?
6394  grep -v '^ *+' conftest.er1 >conftest.err
6395  rm -f conftest.er1
6396  cat conftest.err >&5
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); } &&
6399         { ac_try='test -z "$ac_c_werror_flag"
6400                         || test ! -s conftest.err'
6401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402  (eval $ac_try) 2>&5
6403  ac_status=$?
6404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405  (exit $ac_status); }; } &&
6406         { ac_try='test -s conftest.$ac_objext'
6407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408  (eval $ac_try) 2>&5
6409  ac_status=$?
6410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411  (exit $ac_status); }; }; then
6412  ac_cv_member_struct_utmp_ut_tv=yes
6413else
6414  echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417ac_cv_member_struct_utmp_ut_tv=no
6418fi
6419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6420fi
6421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6422fi
6423echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_tv" >&5
6424echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_tv" >&6
6425if test $ac_cv_member_struct_utmp_ut_tv = yes; then
6426
6427cat >>confdefs.h <<_ACEOF
6428#define HAVE_STRUCT_UTMP_UT_TV 1
6429_ACEOF
6430
6431
6432fi
6433echo "$as_me:$LINENO: checking for struct utmp.ut_xtime" >&5
6434echo $ECHO_N "checking for struct utmp.ut_xtime... $ECHO_C" >&6
6435if test "${ac_cv_member_struct_utmp_ut_xtime+set}" = set; then
6436  echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438  cat >conftest.$ac_ext <<_ACEOF
6439/* confdefs.h.  */
6440_ACEOF
6441cat confdefs.h >>conftest.$ac_ext
6442cat >>conftest.$ac_ext <<_ACEOF
6443/* end confdefs.h.  */
6444#ifdef HAVE_UTMPX_H
6445#include <utmpx.h>
6446#define utmp utmpx
6447#elif defined HAVE_UTMP_H
6448#include <utmp.h>
6449#endif
6450
6451int
6452main ()
6453{
6454static struct utmp ac_aggr;
6455if (ac_aggr.ut_xtime)
6456return 0;
6457  ;
6458  return 0;
6459}
6460_ACEOF
6461rm -f conftest.$ac_objext
6462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463  (eval $ac_compile) 2>conftest.er1
6464  ac_status=$?
6465  grep -v '^ *+' conftest.er1 >conftest.err
6466  rm -f conftest.er1
6467  cat conftest.err >&5
6468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469  (exit $ac_status); } &&
6470         { ac_try='test -z "$ac_c_werror_flag"
6471                         || test ! -s conftest.err'
6472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473  (eval $ac_try) 2>&5
6474  ac_status=$?
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); }; } &&
6477         { ac_try='test -s conftest.$ac_objext'
6478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479  (eval $ac_try) 2>&5
6480  ac_status=$?
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); }; }; then
6483  ac_cv_member_struct_utmp_ut_xtime=yes
6484else
6485  echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h.  */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h.  */
6494#ifdef HAVE_UTMPX_H
6495#include <utmpx.h>
6496#define utmp utmpx
6497#elif defined HAVE_UTMP_H
6498#include <utmp.h>
6499#endif
6500
6501int
6502main ()
6503{
6504static struct utmp ac_aggr;
6505if (sizeof ac_aggr.ut_xtime)
6506return 0;
6507  ;
6508  return 0;
6509}
6510_ACEOF
6511rm -f conftest.$ac_objext
6512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513  (eval $ac_compile) 2>conftest.er1
6514  ac_status=$?
6515  grep -v '^ *+' conftest.er1 >conftest.err
6516  rm -f conftest.er1
6517  cat conftest.err >&5
6518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519  (exit $ac_status); } &&
6520         { ac_try='test -z "$ac_c_werror_flag"
6521                         || test ! -s conftest.err'
6522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523  (eval $ac_try) 2>&5
6524  ac_status=$?
6525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526  (exit $ac_status); }; } &&
6527         { ac_try='test -s conftest.$ac_objext'
6528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529  (eval $ac_try) 2>&5
6530  ac_status=$?
6531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532  (exit $ac_status); }; }; then
6533  ac_cv_member_struct_utmp_ut_xtime=yes
6534else
6535  echo "$as_me: failed program was:" >&5
6536sed 's/^/| /' conftest.$ac_ext >&5
6537
6538ac_cv_member_struct_utmp_ut_xtime=no
6539fi
6540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541fi
6542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543fi
6544echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_xtime" >&5
6545echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_xtime" >&6
6546if test $ac_cv_member_struct_utmp_ut_xtime = yes; then
6547
6548cat >>confdefs.h <<_ACEOF
6549#define HAVE_STRUCT_UTMP_UT_XTIME 1
6550_ACEOF
6551
6552
6553fi
6554
6555echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
6556echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
6557if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
6558  echo $ECHO_N "(cached) $ECHO_C" >&6
6559else
6560  cat >conftest.$ac_ext <<_ACEOF
6561/* confdefs.h.  */
6562_ACEOF
6563cat confdefs.h >>conftest.$ac_ext
6564cat >>conftest.$ac_ext <<_ACEOF
6565/* end confdefs.h.  */
6566#include <sys/types.h>
6567#include <sys/socket.h>
6568
6569int
6570main ()
6571{
6572static struct sockaddr_storage ac_aggr;
6573if (ac_aggr.ss_family)
6574return 0;
6575  ;
6576  return 0;
6577}
6578_ACEOF
6579rm -f conftest.$ac_objext
6580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581  (eval $ac_compile) 2>conftest.er1
6582  ac_status=$?
6583  grep -v '^ *+' conftest.er1 >conftest.err
6584  rm -f conftest.er1
6585  cat conftest.err >&5
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); } &&
6588         { ac_try='test -z "$ac_c_werror_flag"
6589                         || test ! -s conftest.err'
6590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591  (eval $ac_try) 2>&5
6592  ac_status=$?
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); }; } &&
6595         { ac_try='test -s conftest.$ac_objext'
6596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597  (eval $ac_try) 2>&5
6598  ac_status=$?
6599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600  (exit $ac_status); }; }; then
6601  ac_cv_member_struct_sockaddr_storage_ss_family=yes
6602else
6603  echo "$as_me: failed program was:" >&5
6604sed 's/^/| /' conftest.$ac_ext >&5
6605
6606cat >conftest.$ac_ext <<_ACEOF
6607/* confdefs.h.  */
6608_ACEOF
6609cat confdefs.h >>conftest.$ac_ext
6610cat >>conftest.$ac_ext <<_ACEOF
6611/* end confdefs.h.  */
6612#include <sys/types.h>
6613#include <sys/socket.h>
6614
6615int
6616main ()
6617{
6618static struct sockaddr_storage ac_aggr;
6619if (sizeof ac_aggr.ss_family)
6620return 0;
6621  ;
6622  return 0;
6623}
6624_ACEOF
6625rm -f conftest.$ac_objext
6626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627  (eval $ac_compile) 2>conftest.er1
6628  ac_status=$?
6629  grep -v '^ *+' conftest.er1 >conftest.err
6630  rm -f conftest.er1
6631  cat conftest.err >&5
6632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633  (exit $ac_status); } &&
6634         { ac_try='test -z "$ac_c_werror_flag"
6635                         || test ! -s conftest.err'
6636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637  (eval $ac_try) 2>&5
6638  ac_status=$?
6639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640  (exit $ac_status); }; } &&
6641         { ac_try='test -s conftest.$ac_objext'
6642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643  (eval $ac_try) 2>&5
6644  ac_status=$?
6645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646  (exit $ac_status); }; }; then
6647  ac_cv_member_struct_sockaddr_storage_ss_family=yes
6648else
6649  echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652ac_cv_member_struct_sockaddr_storage_ss_family=no
6653fi
6654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6655fi
6656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6657fi
6658echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
6659echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
6660if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
6661
6662cat >>confdefs.h <<_ACEOF
6663#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
6664_ACEOF
6665
6666
6667fi
6668
6669
6670echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6671echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6672if test "${ac_cv_c_const+set}" = set; then
6673  echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675  cat >conftest.$ac_ext <<_ACEOF
6676/* confdefs.h.  */
6677_ACEOF
6678cat confdefs.h >>conftest.$ac_ext
6679cat >>conftest.$ac_ext <<_ACEOF
6680/* end confdefs.h.  */
6681
6682int
6683main ()
6684{
6685/* FIXME: Include the comments suggested by Paul. */
6686#ifndef __cplusplus
6687  /* Ultrix mips cc rejects this.  */
6688  typedef int charset[2];
6689  const charset x;
6690  /* SunOS 4.1.1 cc rejects this.  */
6691  char const *const *ccp;
6692  char **p;
6693  /* NEC SVR4.0.2 mips cc rejects this.  */
6694  struct point {int x, y;};
6695  static struct point const zero = {0,0};
6696  /* AIX XL C 1.02.0.0 rejects this.
6697     It does not let you subtract one const X* pointer from another in
6698     an arm of an if-expression whose if-part is not a constant
6699     expression */
6700  const char *g = "string";
6701  ccp = &g + (g ? g-g : 0);
6702  /* HPUX 7.0 cc rejects these. */
6703  ++ccp;
6704  p = (char**) ccp;
6705  ccp = (char const *const *) p;
6706  { /* SCO 3.2v4 cc rejects this.  */
6707    char *t;
6708    char const *s = 0 ? (char *) 0 : (char const *) 0;
6709
6710    *t++ = 0;
6711  }
6712  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6713    int x[] = {25, 17};
6714    const int *foo = &x[0];
6715    ++foo;
6716  }
6717  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6718    typedef const int *iptr;
6719    iptr p = 0;
6720    ++p;
6721  }
6722  { /* AIX XL C 1.02.0.0 rejects this saying
6723       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6724    struct s { int j; const int *ap[3]; };
6725    struct s *b; b->j = 5;
6726  }
6727  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6728    const int foo = 10;
6729  }
6730#endif
6731
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736rm -f conftest.$ac_objext
6737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738  (eval $ac_compile) 2>conftest.er1
6739  ac_status=$?
6740  grep -v '^ *+' conftest.er1 >conftest.err
6741  rm -f conftest.er1
6742  cat conftest.err >&5
6743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744  (exit $ac_status); } &&
6745         { ac_try='test -z "$ac_c_werror_flag"
6746                         || test ! -s conftest.err'
6747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748  (eval $ac_try) 2>&5
6749  ac_status=$?
6750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751  (exit $ac_status); }; } &&
6752         { ac_try='test -s conftest.$ac_objext'
6753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754  (eval $ac_try) 2>&5
6755  ac_status=$?
6756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757  (exit $ac_status); }; }; then
6758  ac_cv_c_const=yes
6759else
6760  echo "$as_me: failed program was:" >&5
6761sed 's/^/| /' conftest.$ac_ext >&5
6762
6763ac_cv_c_const=no
6764fi
6765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6766fi
6767echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6768echo "${ECHO_T}$ac_cv_c_const" >&6
6769if test $ac_cv_c_const = no; then
6770
6771cat >>confdefs.h <<\_ACEOF
6772#define const
6773_ACEOF
6774
6775fi
6776
6777echo "$as_me:$LINENO: checking for function prototypes" >&5
6778echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6779if test "$ac_cv_prog_cc_stdc" != no; then
6780  echo "$as_me:$LINENO: result: yes" >&5
6781echo "${ECHO_T}yes" >&6
6782
6783cat >>confdefs.h <<\_ACEOF
6784#define PROTOTYPES 1
6785_ACEOF
6786
6787
6788cat >>confdefs.h <<\_ACEOF
6789#define __PROTOTYPES 1
6790_ACEOF
6791
6792else
6793  echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6
6795fi
6796
6797echo "$as_me:$LINENO: checking for working volatile" >&5
6798echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6799if test "${ac_cv_c_volatile+set}" = set; then
6800  echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802  cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h.  */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h.  */
6808
6809int
6810main ()
6811{
6812
6813volatile int x;
6814int * volatile y;
6815  ;
6816  return 0;
6817}
6818_ACEOF
6819rm -f conftest.$ac_objext
6820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821  (eval $ac_compile) 2>conftest.er1
6822  ac_status=$?
6823  grep -v '^ *+' conftest.er1 >conftest.err
6824  rm -f conftest.er1
6825  cat conftest.err >&5
6826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827  (exit $ac_status); } &&
6828         { ac_try='test -z "$ac_c_werror_flag"
6829                         || test ! -s conftest.err'
6830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831  (eval $ac_try) 2>&5
6832  ac_status=$?
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); }; } &&
6835         { ac_try='test -s conftest.$ac_objext'
6836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837  (eval $ac_try) 2>&5
6838  ac_status=$?
6839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840  (exit $ac_status); }; }; then
6841  ac_cv_c_volatile=yes
6842else
6843  echo "$as_me: failed program was:" >&5
6844sed 's/^/| /' conftest.$ac_ext >&5
6845
6846ac_cv_c_volatile=no
6847fi
6848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849fi
6850echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6851echo "${ECHO_T}$ac_cv_c_volatile" >&6
6852if test $ac_cv_c_volatile = no; then
6853
6854cat >>confdefs.h <<\_ACEOF
6855#define volatile
6856_ACEOF
6857
6858fi
6859
6860
6861echo "$as_me:$LINENO: checking whether gethostname is declared" >&5
6862echo $ECHO_N "checking whether gethostname is declared... $ECHO_C" >&6
6863if test "${ac_cv_have_decl_gethostname+set}" = set; then
6864  echo $ECHO_N "(cached) $ECHO_C" >&6
6865else
6866  cat >conftest.$ac_ext <<_ACEOF
6867/* confdefs.h.  */
6868_ACEOF
6869cat confdefs.h >>conftest.$ac_ext
6870cat >>conftest.$ac_ext <<_ACEOF
6871/* end confdefs.h.  */
6872$ac_includes_default
6873int
6874main ()
6875{
6876#ifndef gethostname
6877  char *p = (char *) gethostname;
6878#endif
6879
6880  ;
6881  return 0;
6882}
6883_ACEOF
6884rm -f conftest.$ac_objext
6885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886  (eval $ac_compile) 2>conftest.er1
6887  ac_status=$?
6888  grep -v '^ *+' conftest.er1 >conftest.err
6889  rm -f conftest.er1
6890  cat conftest.err >&5
6891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892  (exit $ac_status); } &&
6893         { ac_try='test -z "$ac_c_werror_flag"
6894                         || test ! -s conftest.err'
6895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896  (eval $ac_try) 2>&5
6897  ac_status=$?
6898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); }; } &&
6900         { ac_try='test -s conftest.$ac_objext'
6901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902  (eval $ac_try) 2>&5
6903  ac_status=$?
6904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905  (exit $ac_status); }; }; then
6906  ac_cv_have_decl_gethostname=yes
6907else
6908  echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911ac_cv_have_decl_gethostname=no
6912fi
6913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6914fi
6915echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostname" >&5
6916echo "${ECHO_T}$ac_cv_have_decl_gethostname" >&6
6917if test $ac_cv_have_decl_gethostname = yes; then
6918
6919cat >>confdefs.h <<_ACEOF
6920#define HAVE_DECL_GETHOSTNAME 1
6921_ACEOF
6922
6923
6924else
6925  cat >>confdefs.h <<_ACEOF
6926#define HAVE_DECL_GETHOSTNAME 0
6927_ACEOF
6928
6929
6930fi
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949for ac_func in dup2 getcwd gethostname getpwent getutent memmove memset         nice nl_langinfo sbrk setpgid setpriority strerror strstr sysconf       wcwidth
6950do
6951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6952echo "$as_me:$LINENO: checking for $ac_func" >&5
6953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6954if eval "test \"\${$as_ac_var+set}\" = set"; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957  cat >conftest.$ac_ext <<_ACEOF
6958/* confdefs.h.  */
6959_ACEOF
6960cat confdefs.h >>conftest.$ac_ext
6961cat >>conftest.$ac_ext <<_ACEOF
6962/* end confdefs.h.  */
6963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6964   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6965#define $ac_func innocuous_$ac_func
6966
6967/* System header to define __stub macros and hopefully few prototypes,
6968    which can conflict with char $ac_func (); below.
6969    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6970    <limits.h> exists even on freestanding compilers.  */
6971
6972#ifdef __STDC__
6973# include <limits.h>
6974#else
6975# include <assert.h>
6976#endif
6977
6978#undef $ac_func
6979
6980/* Override any gcc2 internal prototype to avoid an error.  */
6981#ifdef __cplusplus
6982extern "C"
6983{
6984#endif
6985/* We use char because int might match the return type of a gcc2
6986   builtin and then its argument prototype would still apply.  */
6987char $ac_func ();
6988/* The GNU C library defines this for functions which it implements
6989    to always fail with ENOSYS.  Some functions are actually named
6990    something starting with __ and the normal name is an alias.  */
6991#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6992choke me
6993#else
6994char (*f) () = $ac_func;
6995#endif
6996#ifdef __cplusplus
6997}
6998#endif
6999
7000int
7001main ()
7002{
7003return f != $ac_func;
7004  ;
7005  return 0;
7006}
7007_ACEOF
7008rm -f conftest.$ac_objext conftest$ac_exeext
7009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010  (eval $ac_link) 2>conftest.er1
7011  ac_status=$?
7012  grep -v '^ *+' conftest.er1 >conftest.err
7013  rm -f conftest.er1
7014  cat conftest.err >&5
7015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016  (exit $ac_status); } &&
7017         { ac_try='test -z "$ac_c_werror_flag"
7018                         || test ! -s conftest.err'
7019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020  (eval $ac_try) 2>&5
7021  ac_status=$?
7022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023  (exit $ac_status); }; } &&
7024         { ac_try='test -s conftest$ac_exeext'
7025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026  (eval $ac_try) 2>&5
7027  ac_status=$?
7028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029  (exit $ac_status); }; }; then
7030  eval "$as_ac_var=yes"
7031else
7032  echo "$as_me: failed program was:" >&5
7033sed 's/^/| /' conftest.$ac_ext >&5
7034
7035eval "$as_ac_var=no"
7036fi
7037rm -f conftest.err conftest.$ac_objext \
7038      conftest$ac_exeext conftest.$ac_ext
7039fi
7040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7042if test `eval echo '${'$as_ac_var'}'` = yes; then
7043  cat >>confdefs.h <<_ACEOF
7044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7045_ACEOF
7046
7047fi
7048done
7049
7050echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7051echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7052if test "${ac_cv_func_getpgrp_void+set}" = set; then
7053  echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055  # Use it with a single arg.
7056cat >conftest.$ac_ext <<_ACEOF
7057/* confdefs.h.  */
7058_ACEOF
7059cat confdefs.h >>conftest.$ac_ext
7060cat >>conftest.$ac_ext <<_ACEOF
7061/* end confdefs.h.  */
7062$ac_includes_default
7063int
7064main ()
7065{
7066getpgrp (0);
7067  ;
7068  return 0;
7069}
7070_ACEOF
7071rm -f conftest.$ac_objext
7072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073  (eval $ac_compile) 2>conftest.er1
7074  ac_status=$?
7075  grep -v '^ *+' conftest.er1 >conftest.err
7076  rm -f conftest.er1
7077  cat conftest.err >&5
7078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079  (exit $ac_status); } &&
7080         { ac_try='test -z "$ac_c_werror_flag"
7081                         || test ! -s conftest.err'
7082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083  (eval $ac_try) 2>&5
7084  ac_status=$?
7085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086  (exit $ac_status); }; } &&
7087         { ac_try='test -s conftest.$ac_objext'
7088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089  (eval $ac_try) 2>&5
7090  ac_status=$?
7091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092  (exit $ac_status); }; }; then
7093  ac_cv_func_getpgrp_void=no
7094else
7095  echo "$as_me: failed program was:" >&5
7096sed 's/^/| /' conftest.$ac_ext >&5
7097
7098ac_cv_func_getpgrp_void=yes
7099fi
7100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101
7102fi
7103echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
7104echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
7105if test $ac_cv_func_getpgrp_void = yes; then
7106
7107cat >>confdefs.h <<\_ACEOF
7108#define GETPGRP_VOID 1
7109_ACEOF
7110
7111fi
7112
7113echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
7114echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
7115if test "${ac_cv_func_setpgrp_void+set}" = set; then
7116  echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118  if test "$cross_compiling" = yes; then
7119  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
7120echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
7121   { (exit 1); exit 1; }; }
7122else
7123  cat >conftest.$ac_ext <<_ACEOF
7124/* confdefs.h.  */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h.  */
7129#if HAVE_UNISTD_H
7130# include <unistd.h>
7131#endif
7132
7133int
7134main ()
7135{
7136/* If this system has a BSD-style setpgrp which takes arguments,
7137  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
7138  exit successfully. */
7139  exit (setpgrp (1,1) == -1 ? 0 : 1);
7140  ;
7141  return 0;
7142}
7143_ACEOF
7144rm -f conftest$ac_exeext
7145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146  (eval $ac_link) 2>&5
7147  ac_status=$?
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151  (eval $ac_try) 2>&5
7152  ac_status=$?
7153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154  (exit $ac_status); }; }; then
7155  ac_cv_func_setpgrp_void=no
7156else
7157  echo "$as_me: program exited with status $ac_status" >&5
7158echo "$as_me: failed program was:" >&5
7159sed 's/^/| /' conftest.$ac_ext >&5
7160
7161( exit $ac_status )
7162ac_cv_func_setpgrp_void=yes
7163fi
7164rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7165fi
7166fi
7167echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
7168echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
7169if test $ac_cv_func_setpgrp_void = yes; then
7170
7171cat >>confdefs.h <<\_ACEOF
7172#define SETPGRP_VOID 1
7173_ACEOF
7174
7175fi
7176
7177
7178
7179
7180
7181
7182# Check whether --with-hesiod or --without-hesiod was given.
7183if test "${with_hesiod+set}" = set; then
7184  withval="$with_hesiod"
7185  hesiod="$withval"
7186else
7187  hesiod=no
7188fi;
7189if test "$hesiod" != no; then
7190  HESLIB="-lhesiod"
7191  echo "$as_me:$LINENO: checking for res_send" >&5
7192echo $ECHO_N "checking for res_send... $ECHO_C" >&6
7193if test "${ac_cv_func_res_send+set}" = set; then
7194  echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196  cat >conftest.$ac_ext <<_ACEOF
7197/* confdefs.h.  */
7198_ACEOF
7199cat confdefs.h >>conftest.$ac_ext
7200cat >>conftest.$ac_ext <<_ACEOF
7201/* end confdefs.h.  */
7202/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
7203   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7204#define res_send innocuous_res_send
7205
7206/* System header to define __stub macros and hopefully few prototypes,
7207    which can conflict with char res_send (); below.
7208    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7209    <limits.h> exists even on freestanding compilers.  */
7210
7211#ifdef __STDC__
7212# include <limits.h>
7213#else
7214# include <assert.h>
7215#endif
7216
7217#undef res_send
7218
7219/* Override any gcc2 internal prototype to avoid an error.  */
7220#ifdef __cplusplus
7221extern "C"
7222{
7223#endif
7224/* We use char because int might match the return type of a gcc2
7225   builtin and then its argument prototype would still apply.  */
7226char res_send ();
7227/* The GNU C library defines this for functions which it implements
7228    to always fail with ENOSYS.  Some functions are actually named
7229    something starting with __ and the normal name is an alias.  */
7230#if defined (__stub_res_send) || defined (__stub___res_send)
7231choke me
7232#else
7233char (*f) () = res_send;
7234#endif
7235#ifdef __cplusplus
7236}
7237#endif
7238
7239int
7240main ()
7241{
7242return f != res_send;
7243  ;
7244  return 0;
7245}
7246_ACEOF
7247rm -f conftest.$ac_objext conftest$ac_exeext
7248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7249  (eval $ac_link) 2>conftest.er1
7250  ac_status=$?
7251  grep -v '^ *+' conftest.er1 >conftest.err
7252  rm -f conftest.er1
7253  cat conftest.err >&5
7254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255  (exit $ac_status); } &&
7256         { ac_try='test -z "$ac_c_werror_flag"
7257                         || test ! -s conftest.err'
7258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259  (eval $ac_try) 2>&5
7260  ac_status=$?
7261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262  (exit $ac_status); }; } &&
7263         { ac_try='test -s conftest$ac_exeext'
7264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265  (eval $ac_try) 2>&5
7266  ac_status=$?
7267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268  (exit $ac_status); }; }; then
7269  ac_cv_func_res_send=yes
7270else
7271  echo "$as_me: failed program was:" >&5
7272sed 's/^/| /' conftest.$ac_ext >&5
7273
7274ac_cv_func_res_send=no
7275fi
7276rm -f conftest.err conftest.$ac_objext \
7277      conftest$ac_exeext conftest.$ac_ext
7278fi
7279echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
7280echo "${ECHO_T}$ac_cv_func_res_send" >&6
7281if test $ac_cv_func_res_send = yes; then
7282  :
7283else
7284  echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
7285echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
7286if test "${ac_cv_lib_resolv_res_send+set}" = set; then
7287  echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289  ac_check_lib_save_LIBS=$LIBS
7290LIBS="-lresolv  $LIBS"
7291cat >conftest.$ac_ext <<_ACEOF
7292/* confdefs.h.  */
7293_ACEOF
7294cat confdefs.h >>conftest.$ac_ext
7295cat >>conftest.$ac_ext <<_ACEOF
7296/* end confdefs.h.  */
7297
7298/* Override any gcc2 internal prototype to avoid an error.  */
7299#ifdef __cplusplus
7300extern "C"
7301#endif
7302/* We use char because int might match the return type of a gcc2
7303   builtin and then its argument prototype would still apply.  */
7304char res_send ();
7305int
7306main ()
7307{
7308res_send ();
7309  ;
7310  return 0;
7311}
7312_ACEOF
7313rm -f conftest.$ac_objext conftest$ac_exeext
7314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7315  (eval $ac_link) 2>conftest.er1
7316  ac_status=$?
7317  grep -v '^ *+' conftest.er1 >conftest.err
7318  rm -f conftest.er1
7319  cat conftest.err >&5
7320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321  (exit $ac_status); } &&
7322         { ac_try='test -z "$ac_c_werror_flag"
7323                         || test ! -s conftest.err'
7324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325  (eval $ac_try) 2>&5
7326  ac_status=$?
7327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328  (exit $ac_status); }; } &&
7329         { ac_try='test -s conftest$ac_exeext'
7330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331  (eval $ac_try) 2>&5
7332  ac_status=$?
7333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334  (exit $ac_status); }; }; then
7335  ac_cv_lib_resolv_res_send=yes
7336else
7337  echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340ac_cv_lib_resolv_res_send=no
7341fi
7342rm -f conftest.err conftest.$ac_objext \
7343      conftest$ac_exeext conftest.$ac_ext
7344LIBS=$ac_check_lib_save_LIBS
7345fi
7346echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
7347echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
7348if test $ac_cv_lib_resolv_res_send = yes; then
7349  HESLIB="$HESLIB -lresolv"
7350fi
7351
7352fi
7353
7354  HESDEF=-DHESIOD
7355  if test "$hesiod" != yes; then
7356    HESDEF="$HESDEF -I$hesiod/include"
7357    HESLIB="-L$hesiod/lib $HESLIB"
7358  fi
7359fi
7360
7361
7362
7363
7364          ac_config_files="$ac_config_files Makefile"
7365
7366cat >confcache <<\_ACEOF
7367# This file is a shell script that caches the results of configure
7368# tests run on this system so they can be shared between configure
7369# scripts and configure runs, see configure's option --config-cache.
7370# It is not useful on other systems.  If it contains results you don't
7371# want to keep, you may remove or edit it.
7372#
7373# config.status only pays attention to the cache file if you give it
7374# the --recheck option to rerun configure.
7375#
7376# `ac_cv_env_foo' variables (set or unset) will be overridden when
7377# loading this file, other *unset* `ac_cv_foo' will be assigned the
7378# following values.
7379
7380_ACEOF
7381
7382# The following way of writing the cache mishandles newlines in values,
7383# but we know of no workaround that is simple, portable, and efficient.
7384# So, don't put newlines in cache variables' values.
7385# Ultrix sh set writes to stderr and can't be redirected directly,
7386# and sets the high bit in the cache file unless we assign to the vars.
7387{
7388  (set) 2>&1 |
7389    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7390    *ac_space=\ *)
7391      # `set' does not quote correctly, so add quotes (double-quote
7392      # substitution turns \\\\ into \\, and sed turns \\ into \).
7393      sed -n \
7394        "s/'/'\\\\''/g;
7395          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7396      ;;
7397    *)
7398      # `set' quotes correctly as required by POSIX, so do not add quotes.
7399      sed -n \
7400        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7401      ;;
7402    esac;
7403} |
7404  sed '
7405     t clear
7406     : clear
7407     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7408     t end
7409     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7410     : end' >>confcache
7411if diff $cache_file confcache >/dev/null 2>&1; then :; else
7412  if test -w $cache_file; then
7413    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7414    cat confcache >$cache_file
7415  else
7416    echo "not updating unwritable cache $cache_file"
7417  fi
7418fi
7419rm -f confcache
7420
7421test "x$prefix" = xNONE && prefix=$ac_default_prefix
7422# Let make expand exec_prefix.
7423test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7424
7425# VPATH may cause trouble with some makes, so we remove $(srcdir),
7426# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7427# trailing colons and then remove the whole line if VPATH becomes empty
7428# (actually we leave an empty line to preserve line numbers).
7429if test "x$srcdir" = x.; then
7430  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7431s/:*\$(srcdir):*/:/;
7432s/:*\${srcdir}:*/:/;
7433s/:*@srcdir@:*/:/;
7434s/^\([^=]*=[     ]*\):*/\1/;
7435s/:*$//;
7436s/^[^=]*=[       ]*$//;
7437}'
7438fi
7439
7440DEFS=-DHAVE_CONFIG_H
7441
7442ac_libobjs=
7443ac_ltlibobjs=
7444for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7445  # 1. Remove the extension, and $U if already installed.
7446  ac_i=`echo "$ac_i" |
7447         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7448  # 2. Add them.
7449  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7450  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7451done
7452LIBOBJS=$ac_libobjs
7453
7454LTLIBOBJS=$ac_ltlibobjs
7455
7456
7457
7458: ${CONFIG_STATUS=./config.status}
7459ac_clean_files_save=$ac_clean_files
7460ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7461{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7462echo "$as_me: creating $CONFIG_STATUS" >&6;}
7463cat >$CONFIG_STATUS <<_ACEOF
7464#! $SHELL
7465# Generated by $as_me.
7466# Run this file to recreate the current configuration.
7467# Compiler output produced by configure, useful for debugging
7468# configure, is in config.log if it exists.
7469
7470debug=false
7471ac_cs_recheck=false
7472ac_cs_silent=false
7473SHELL=\${CONFIG_SHELL-$SHELL}
7474_ACEOF
7475
7476cat >>$CONFIG_STATUS <<\_ACEOF
7477## --------------------- ##
7478## M4sh Initialization.  ##
7479## --------------------- ##
7480
7481# Be Bourne compatible
7482if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7483  emulate sh
7484  NULLCMD=:
7485  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7486  # is contrary to our usage.  Disable this feature.
7487  alias -g '${1+"$@"}'='"$@"'
7488elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7489  set -o posix
7490fi
7491DUALCASE=1; export DUALCASE # for MKS sh
7492
7493# Support unset when possible.
7494if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7495  as_unset=unset
7496else
7497  as_unset=false
7498fi
7499
7500
7501# Work around bugs in pre-3.0 UWIN ksh.
7502$as_unset ENV MAIL MAILPATH
7503PS1='$ '
7504PS2='> '
7505PS4='+ '
7506
7507# NLS nuisances.
7508for as_var in \
7509  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7510  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7511  LC_TELEPHONE LC_TIME
7512do
7513  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7514    eval $as_var=C; export $as_var
7515  else
7516    $as_unset $as_var
7517  fi
7518done
7519
7520# Required to use basename.
7521if expr a : '\(a\)' >/dev/null 2>&1; then
7522  as_expr=expr
7523else
7524  as_expr=false
7525fi
7526
7527if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7528  as_basename=basename
7529else
7530  as_basename=false
7531fi
7532
7533
7534# Name of the executable.
7535as_me=`$as_basename "$0" ||
7536$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7537         X"$0" : 'X\(//\)$' \| \
7538         X"$0" : 'X\(/\)$' \| \
7539         .     : '\(.\)' 2>/dev/null ||
7540echo X/"$0" |
7541    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7542          /^X\/\(\/\/\)$/{ s//\1/; q; }
7543          /^X\/\(\/\).*/{ s//\1/; q; }
7544          s/.*/./; q'`
7545
7546
7547# PATH needs CR, and LINENO needs CR and PATH.
7548# Avoid depending upon Character Ranges.
7549as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7550as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7551as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7552as_cr_digits='0123456789'
7553as_cr_alnum=$as_cr_Letters$as_cr_digits
7554
7555# The user is always right.
7556if test "${PATH_SEPARATOR+set}" != set; then
7557  echo "#! /bin/sh" >conf$$.sh
7558  echo  "exit 0"   >>conf$$.sh
7559  chmod +x conf$$.sh
7560  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7561    PATH_SEPARATOR=';'
7562  else
7563    PATH_SEPARATOR=:
7564  fi
7565  rm -f conf$$.sh
7566fi
7567
7568
7569  as_lineno_1=$LINENO
7570  as_lineno_2=$LINENO
7571  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7572  test "x$as_lineno_1" != "x$as_lineno_2" &&
7573  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7574  # Find who we are.  Look in the path if we contain no path at all
7575  # relative or not.
7576  case $0 in
7577    *[\\/]* ) as_myself=$0 ;;
7578    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579for as_dir in $PATH
7580do
7581  IFS=$as_save_IFS
7582  test -z "$as_dir" && as_dir=.
7583  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7584done
7585
7586       ;;
7587  esac
7588  # We did not find ourselves, most probably we were run as `sh COMMAND'
7589  # in which case we are not to be found in the path.
7590  if test "x$as_myself" = x; then
7591    as_myself=$0
7592  fi
7593  if test ! -f "$as_myself"; then
7594    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7595echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7596   { (exit 1); exit 1; }; }
7597  fi
7598  case $CONFIG_SHELL in
7599  '')
7600    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7602do
7603  IFS=$as_save_IFS
7604  test -z "$as_dir" && as_dir=.
7605  for as_base in sh bash ksh sh5; do
7606         case $as_dir in
7607         /*)
7608           if ("$as_dir/$as_base" -c '
7609  as_lineno_1=$LINENO
7610  as_lineno_2=$LINENO
7611  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7612  test "x$as_lineno_1" != "x$as_lineno_2" &&
7613  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7614             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7615             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7616             CONFIG_SHELL=$as_dir/$as_base
7617             export CONFIG_SHELL
7618             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7619           fi;;
7620         esac
7621       done
7622done
7623;;
7624  esac
7625
7626  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7627  # uniformly replaced by the line number.  The first 'sed' inserts a
7628  # line-number line before each line; the second 'sed' does the real
7629  # work.  The second script uses 'N' to pair each line-number line
7630  # with the numbered line, and appends trailing '-' during
7631  # substitution so that $LINENO is not a special case at line end.
7632  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7633  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7634  sed '=' <$as_myself |
7635    sed '
7636      N
7637      s,$,-,
7638      : loop
7639      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7640      t loop
7641      s,-$,,
7642      s,^['$as_cr_digits']*\n,,
7643    ' >$as_me.lineno &&
7644  chmod +x $as_me.lineno ||
7645    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7646echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7647   { (exit 1); exit 1; }; }
7648
7649  # Don't try to exec as it changes $[0], causing all sort of problems
7650  # (the dirname of $[0] is not the place where we might find the
7651  # original and so on.  Autoconf is especially sensible to this).
7652  . ./$as_me.lineno
7653  # Exit status is that of the last command.
7654  exit
7655}
7656
7657
7658case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7659  *c*,-n*) ECHO_N= ECHO_C='
7660' ECHO_T='      ' ;;
7661  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7662  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7663esac
7664
7665if expr a : '\(a\)' >/dev/null 2>&1; then
7666  as_expr=expr
7667else
7668  as_expr=false
7669fi
7670
7671rm -f conf$$ conf$$.exe conf$$.file
7672echo >conf$$.file
7673if ln -s conf$$.file conf$$ 2>/dev/null; then
7674  # We could just check for DJGPP; but this test a) works b) is more generic
7675  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7676  if test -f conf$$.exe; then
7677    # Don't use ln at all; we don't have any links
7678    as_ln_s='cp -p'
7679  else
7680    as_ln_s='ln -s'
7681  fi
7682elif ln conf$$.file conf$$ 2>/dev/null; then
7683  as_ln_s=ln
7684else
7685  as_ln_s='cp -p'
7686fi
7687rm -f conf$$ conf$$.exe conf$$.file
7688
7689if mkdir -p . 2>/dev/null; then
7690  as_mkdir_p=:
7691else
7692  test -d ./-p && rmdir ./-p
7693  as_mkdir_p=false
7694fi
7695
7696as_executable_p="test -f"
7697
7698# Sed expression to map a string onto a valid CPP name.
7699as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7700
7701# Sed expression to map a string onto a valid variable name.
7702as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7703
7704
7705# IFS
7706# We need space, tab and new line, in precisely that order.
7707as_nl='
7708'
7709IFS="   $as_nl"
7710
7711# CDPATH.
7712$as_unset CDPATH
7713
7714exec 6>&1
7715
7716# Open the log real soon, to keep \$[0] and so on meaningful, and to
7717# report actual input values of CONFIG_FILES etc. instead of their
7718# values after options handling.  Logging --version etc. is OK.
7719exec 5>>config.log
7720{
7721  echo
7722  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7723## Running $as_me. ##
7724_ASBOX
7725} >&5
7726cat >&5 <<_CSEOF
7727
7728This file was extended by $as_me, which was
7729generated by GNU Autoconf 2.59.  Invocation command line was
7730
7731  CONFIG_FILES    = $CONFIG_FILES
7732  CONFIG_HEADERS  = $CONFIG_HEADERS
7733  CONFIG_LINKS    = $CONFIG_LINKS
7734  CONFIG_COMMANDS = $CONFIG_COMMANDS
7735  $ $0 $@
7736
7737_CSEOF
7738echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7739echo >&5
7740_ACEOF
7741
7742# Files that config.status was made for.
7743if test -n "$ac_config_files"; then
7744  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7745fi
7746
7747if test -n "$ac_config_headers"; then
7748  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7749fi
7750
7751if test -n "$ac_config_links"; then
7752  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7753fi
7754
7755if test -n "$ac_config_commands"; then
7756  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7757fi
7758
7759cat >>$CONFIG_STATUS <<\_ACEOF
7760
7761ac_cs_usage="\
7762\`$as_me' instantiates files from templates according to the
7763current configuration.
7764
7765Usage: $0 [OPTIONS] [FILE]...
7766
7767  -h, --help       print this help, then exit
7768  -V, --version    print version number, then exit
7769  -q, --quiet      do not print progress messages
7770  -d, --debug      don't remove temporary files
7771      --recheck    update $as_me by reconfiguring in the same conditions
7772  --file=FILE[:TEMPLATE]
7773                   instantiate the configuration file FILE
7774  --header=FILE[:TEMPLATE]
7775                   instantiate the configuration header FILE
7776
7777Configuration files:
7778$config_files
7779
7780Configuration headers:
7781$config_headers
7782
7783Report bugs to <bug-autoconf@gnu.org>."
7784_ACEOF
7785
7786cat >>$CONFIG_STATUS <<_ACEOF
7787ac_cs_version="\\
7788config.status
7789configured by $0, generated by GNU Autoconf 2.59,
7790  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7791
7792Copyright (C) 2003 Free Software Foundation, Inc.
7793This config.status script is free software; the Free Software Foundation
7794gives unlimited permission to copy, distribute and modify it."
7795srcdir=$srcdir
7796_ACEOF
7797
7798cat >>$CONFIG_STATUS <<\_ACEOF
7799# If no file are specified by the user, then we need to provide default
7800# value.  By we need to know if files were specified by the user.
7801ac_need_defaults=:
7802while test $# != 0
7803do
7804  case $1 in
7805  --*=*)
7806    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7807    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7808    ac_shift=:
7809    ;;
7810  -*)
7811    ac_option=$1
7812    ac_optarg=$2
7813    ac_shift=shift
7814    ;;
7815  *) # This is not an option, so the user has probably given explicit
7816     # arguments.
7817     ac_option=$1
7818     ac_need_defaults=false;;
7819  esac
7820
7821  case $ac_option in
7822  # Handling of the options.
7823_ACEOF
7824cat >>$CONFIG_STATUS <<\_ACEOF
7825  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7826    ac_cs_recheck=: ;;
7827  --version | --vers* | -V )
7828    echo "$ac_cs_version"; exit 0 ;;
7829  --he | --h)
7830    # Conflict between --help and --header
7831    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7832Try \`$0 --help' for more information." >&5
7833echo "$as_me: error: ambiguous option: $1
7834Try \`$0 --help' for more information." >&2;}
7835   { (exit 1); exit 1; }; };;
7836  --help | --hel | -h )
7837    echo "$ac_cs_usage"; exit 0 ;;
7838  --debug | --d* | -d )
7839    debug=: ;;
7840  --file | --fil | --fi | --f )
7841    $ac_shift
7842    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7843    ac_need_defaults=false;;
7844  --header | --heade | --head | --hea )
7845    $ac_shift
7846    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7847    ac_need_defaults=false;;
7848  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7849  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7850    ac_cs_silent=: ;;
7851
7852  # This is an error.
7853  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7854Try \`$0 --help' for more information." >&5
7855echo "$as_me: error: unrecognized option: $1
7856Try \`$0 --help' for more information." >&2;}
7857   { (exit 1); exit 1; }; } ;;
7858
7859  *) ac_config_targets="$ac_config_targets $1" ;;
7860
7861  esac
7862  shift
7863done
7864
7865ac_configure_extra_args=
7866
7867if $ac_cs_silent; then
7868  exec 6>/dev/null
7869  ac_configure_extra_args="$ac_configure_extra_args --silent"
7870fi
7871
7872_ACEOF
7873cat >>$CONFIG_STATUS <<_ACEOF
7874if \$ac_cs_recheck; then
7875  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7876  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7877fi
7878
7879_ACEOF
7880
7881
7882
7883
7884
7885cat >>$CONFIG_STATUS <<\_ACEOF
7886for ac_config_target in $ac_config_targets
7887do
7888  case "$ac_config_target" in
7889  # Handling of arguments.
7890  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7891  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7892  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7893echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7894   { (exit 1); exit 1; }; };;
7895  esac
7896done
7897
7898# If the user did not use the arguments to specify the items to instantiate,
7899# then the envvar interface is used.  Set only those that are not.
7900# We use the long form for the default assignment because of an extremely
7901# bizarre bug on SunOS 4.1.3.
7902if $ac_need_defaults; then
7903  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7904  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7905fi
7906
7907# Have a temporary directory for convenience.  Make it in the build tree
7908# simply because there is no reason to put it here, and in addition,
7909# creating and moving files from /tmp can sometimes cause problems.
7910# Create a temporary directory, and hook for its removal unless debugging.
7911$debug ||
7912{
7913  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7914  trap '{ (exit 1); exit 1; }' 1 2 13 15
7915}
7916
7917# Create a (secure) tmp directory for tmp files.
7918
7919{
7920  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7921  test -n "$tmp" && test -d "$tmp"
7922}  ||
7923{
7924  tmp=./confstat$$-$RANDOM
7925  (umask 077 && mkdir $tmp)
7926} ||
7927{
7928   echo "$me: cannot create a temporary directory in ." >&2
7929   { (exit 1); exit 1; }
7930}
7931
7932_ACEOF
7933
7934cat >>$CONFIG_STATUS <<_ACEOF
7935
7936#
7937# CONFIG_FILES section.
7938#
7939
7940# No need to generate the scripts if there are no CONFIG_FILES.
7941# This happens for instance when ./config.status config.h
7942if test -n "\$CONFIG_FILES"; then
7943  # Protect against being on the right side of a sed subst in config.status.
7944  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7945   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7946s,@SHELL@,$SHELL,;t t
7947s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7948s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7949s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7950s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7951s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7952s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7953s,@exec_prefix@,$exec_prefix,;t t
7954s,@prefix@,$prefix,;t t
7955s,@program_transform_name@,$program_transform_name,;t t
7956s,@bindir@,$bindir,;t t
7957s,@sbindir@,$sbindir,;t t
7958s,@libexecdir@,$libexecdir,;t t
7959s,@datadir@,$datadir,;t t
7960s,@sysconfdir@,$sysconfdir,;t t
7961s,@sharedstatedir@,$sharedstatedir,;t t
7962s,@localstatedir@,$localstatedir,;t t
7963s,@libdir@,$libdir,;t t
7964s,@includedir@,$includedir,;t t
7965s,@oldincludedir@,$oldincludedir,;t t
7966s,@infodir@,$infodir,;t t
7967s,@mandir@,$mandir,;t t
7968s,@build_alias@,$build_alias,;t t
7969s,@host_alias@,$host_alias,;t t
7970s,@target_alias@,$target_alias,;t t
7971s,@DEFS@,$DEFS,;t t
7972s,@ECHO_C@,$ECHO_C,;t t
7973s,@ECHO_N@,$ECHO_N,;t t
7974s,@ECHO_T@,$ECHO_T,;t t
7975s,@LIBS@,$LIBS,;t t
7976s,@build@,$build,;t t
7977s,@build_cpu@,$build_cpu,;t t
7978s,@build_vendor@,$build_vendor,;t t
7979s,@build_os@,$build_os,;t t
7980s,@host@,$host,;t t
7981s,@host_cpu@,$host_cpu,;t t
7982s,@host_vendor@,$host_vendor,;t t
7983s,@host_os@,$host_os,;t t
7984s,@CC@,$CC,;t t
7985s,@CFLAGS@,$CFLAGS,;t t
7986s,@LDFLAGS@,$LDFLAGS,;t t
7987s,@CPPFLAGS@,$CPPFLAGS,;t t
7988s,@ac_ct_CC@,$ac_ct_CC,;t t
7989s,@EXEEXT@,$EXEEXT,;t t
7990s,@OBJEXT@,$OBJEXT,;t t
7991s,@CPP@,$CPP,;t t
7992s,@EGREP@,$EGREP,;t t
7993s,@DFLAGS@,$DFLAGS,;t t
7994s,@HESDEF@,$HESDEF,;t t
7995s,@HESLIB@,$HESLIB,;t t
7996s,@lbindir@,$lbindir,;t t
7997s,@LIBOBJS@,$LIBOBJS,;t t
7998s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7999CEOF
8000
8001_ACEOF
8002
8003  cat >>$CONFIG_STATUS <<\_ACEOF
8004  # Split the substitutions into bite-sized pieces for seds with
8005  # small command number limits, like on Digital OSF/1 and HP-UX.
8006  ac_max_sed_lines=48
8007  ac_sed_frag=1 # Number of current file.
8008  ac_beg=1 # First line for current file.
8009  ac_end=$ac_max_sed_lines # Line after last line for current file.
8010  ac_more_lines=:
8011  ac_sed_cmds=
8012  while $ac_more_lines; do
8013    if test $ac_beg -gt 1; then
8014      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8015    else
8016      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8017    fi
8018    if test ! -s $tmp/subs.frag; then
8019      ac_more_lines=false
8020    else
8021      # The purpose of the label and of the branching condition is to
8022      # speed up the sed processing (if there are no `@' at all, there
8023      # is no need to browse any of the substitutions).
8024      # These are the two extra sed commands mentioned above.
8025      (echo ':t
8026  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8027      if test -z "$ac_sed_cmds"; then
8028        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8029      else
8030        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8031      fi
8032      ac_sed_frag=`expr $ac_sed_frag + 1`
8033      ac_beg=$ac_end
8034      ac_end=`expr $ac_end + $ac_max_sed_lines`
8035    fi
8036  done
8037  if test -z "$ac_sed_cmds"; then
8038    ac_sed_cmds=cat
8039  fi
8040fi # test -n "$CONFIG_FILES"
8041
8042_ACEOF
8043cat >>$CONFIG_STATUS <<\_ACEOF
8044for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8045  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8046  case $ac_file in
8047  - | *:- | *:-:* ) # input from stdin
8048        cat >$tmp/stdin
8049        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8050        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8051  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8052        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8053  * )   ac_file_in=$ac_file.in ;;
8054  esac
8055
8056  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8057  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8058$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8059         X"$ac_file" : 'X\(//\)[^/]' \| \
8060         X"$ac_file" : 'X\(//\)$' \| \
8061         X"$ac_file" : 'X\(/\)' \| \
8062         .     : '\(.\)' 2>/dev/null ||
8063echo X"$ac_file" |
8064    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8065          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8066          /^X\(\/\/\)$/{ s//\1/; q; }
8067          /^X\(\/\).*/{ s//\1/; q; }
8068          s/.*/./; q'`
8069  { if $as_mkdir_p; then
8070    mkdir -p "$ac_dir"
8071  else
8072    as_dir="$ac_dir"
8073    as_dirs=
8074    while test ! -d "$as_dir"; do
8075      as_dirs="$as_dir $as_dirs"
8076      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8078         X"$as_dir" : 'X\(//\)[^/]' \| \
8079         X"$as_dir" : 'X\(//\)$' \| \
8080         X"$as_dir" : 'X\(/\)' \| \
8081         .     : '\(.\)' 2>/dev/null ||
8082echo X"$as_dir" |
8083    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8084          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8085          /^X\(\/\/\)$/{ s//\1/; q; }
8086          /^X\(\/\).*/{ s//\1/; q; }
8087          s/.*/./; q'`
8088    done
8089    test ! -n "$as_dirs" || mkdir $as_dirs
8090  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8091echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8092   { (exit 1); exit 1; }; }; }
8093
8094  ac_builddir=.
8095
8096if test "$ac_dir" != .; then
8097  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8098  # A "../" for each directory in $ac_dir_suffix.
8099  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8100else
8101  ac_dir_suffix= ac_top_builddir=
8102fi
8103
8104case $srcdir in
8105  .)  # No --srcdir option.  We are building in place.
8106    ac_srcdir=.
8107    if test -z "$ac_top_builddir"; then
8108       ac_top_srcdir=.
8109    else
8110       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8111    fi ;;
8112  [\\/]* | ?:[\\/]* )  # Absolute path.
8113    ac_srcdir=$srcdir$ac_dir_suffix;
8114    ac_top_srcdir=$srcdir ;;
8115  *) # Relative path.
8116    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8117    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8118esac
8119
8120# Do not use `cd foo && pwd` to compute absolute paths, because
8121# the directories may not exist.
8122case `pwd` in
8123.) ac_abs_builddir="$ac_dir";;
8124*)
8125  case "$ac_dir" in
8126  .) ac_abs_builddir=`pwd`;;
8127  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8128  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8129  esac;;
8130esac
8131case $ac_abs_builddir in
8132.) ac_abs_top_builddir=${ac_top_builddir}.;;
8133*)
8134  case ${ac_top_builddir}. in
8135  .) ac_abs_top_builddir=$ac_abs_builddir;;
8136  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8137  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8138  esac;;
8139esac
8140case $ac_abs_builddir in
8141.) ac_abs_srcdir=$ac_srcdir;;
8142*)
8143  case $ac_srcdir in
8144  .) ac_abs_srcdir=$ac_abs_builddir;;
8145  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8146  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8147  esac;;
8148esac
8149case $ac_abs_builddir in
8150.) ac_abs_top_srcdir=$ac_top_srcdir;;
8151*)
8152  case $ac_top_srcdir in
8153  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8154  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8155  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8156  esac;;
8157esac
8158
8159
8160
8161  if test x"$ac_file" != x-; then
8162    { echo "$as_me:$LINENO: creating $ac_file" >&5
8163echo "$as_me: creating $ac_file" >&6;}
8164    rm -f "$ac_file"
8165  fi
8166  # Let's still pretend it is `configure' which instantiates (i.e., don't
8167  # use $as_me), people would be surprised to read:
8168  #    /* config.h.  Generated by config.status.  */
8169  if test x"$ac_file" = x-; then
8170    configure_input=
8171  else
8172    configure_input="$ac_file.  "
8173  fi
8174  configure_input=$configure_input"Generated from `echo $ac_file_in |
8175                                     sed 's,.*/,,'` by configure."
8176
8177  # First look for the input files in the build tree, otherwise in the
8178  # src tree.
8179  ac_file_inputs=`IFS=:
8180    for f in $ac_file_in; do
8181      case $f in
8182      -) echo $tmp/stdin ;;
8183      [\\/$]*)
8184         # Absolute (can't be DOS-style, as IFS=:)
8185         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8186echo "$as_me: error: cannot find input file: $f" >&2;}
8187   { (exit 1); exit 1; }; }
8188         echo "$f";;
8189      *) # Relative
8190         if test -f "$f"; then
8191           # Build tree
8192           echo "$f"
8193         elif test -f "$srcdir/$f"; then
8194           # Source tree
8195           echo "$srcdir/$f"
8196         else
8197           # /dev/null tree
8198           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8199echo "$as_me: error: cannot find input file: $f" >&2;}
8200   { (exit 1); exit 1; }; }
8201         fi;;
8202      esac
8203    done` || { (exit 1); exit 1; }
8204_ACEOF
8205cat >>$CONFIG_STATUS <<_ACEOF
8206  sed "$ac_vpsub
8207$extrasub
8208_ACEOF
8209cat >>$CONFIG_STATUS <<\_ACEOF
8210:t
8211/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8212s,@configure_input@,$configure_input,;t t
8213s,@srcdir@,$ac_srcdir,;t t
8214s,@abs_srcdir@,$ac_abs_srcdir,;t t
8215s,@top_srcdir@,$ac_top_srcdir,;t t
8216s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8217s,@builddir@,$ac_builddir,;t t
8218s,@abs_builddir@,$ac_abs_builddir,;t t
8219s,@top_builddir@,$ac_top_builddir,;t t
8220s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8221" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8222  rm -f $tmp/stdin
8223  if test x"$ac_file" != x-; then
8224    mv $tmp/out $ac_file
8225  else
8226    cat $tmp/out
8227    rm -f $tmp/out
8228  fi
8229
8230done
8231_ACEOF
8232cat >>$CONFIG_STATUS <<\_ACEOF
8233
8234#
8235# CONFIG_HEADER section.
8236#
8237
8238# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8239# NAME is the cpp macro being defined and VALUE is the value it is being given.
8240#
8241# ac_d sets the value in "#define NAME VALUE" lines.
8242ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8243ac_dB='[         ].*$,\1#\2'
8244ac_dC=' '
8245ac_dD=',;t'
8246# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8247ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8248ac_uB='$,\1#\2define\3'
8249ac_uC=' '
8250ac_uD=',;t'
8251
8252for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8253  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8254  case $ac_file in
8255  - | *:- | *:-:* ) # input from stdin
8256        cat >$tmp/stdin
8257        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8258        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8259  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8260        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8261  * )   ac_file_in=$ac_file.in ;;
8262  esac
8263
8264  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8265echo "$as_me: creating $ac_file" >&6;}
8266
8267  # First look for the input files in the build tree, otherwise in the
8268  # src tree.
8269  ac_file_inputs=`IFS=:
8270    for f in $ac_file_in; do
8271      case $f in
8272      -) echo $tmp/stdin ;;
8273      [\\/$]*)
8274         # Absolute (can't be DOS-style, as IFS=:)
8275         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8276echo "$as_me: error: cannot find input file: $f" >&2;}
8277   { (exit 1); exit 1; }; }
8278         # Do quote $f, to prevent DOS paths from being IFS'd.
8279         echo "$f";;
8280      *) # Relative
8281         if test -f "$f"; then
8282           # Build tree
8283           echo "$f"
8284         elif test -f "$srcdir/$f"; then
8285           # Source tree
8286           echo "$srcdir/$f"
8287         else
8288           # /dev/null tree
8289           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8290echo "$as_me: error: cannot find input file: $f" >&2;}
8291   { (exit 1); exit 1; }; }
8292         fi;;
8293      esac
8294    done` || { (exit 1); exit 1; }
8295  # Remove the trailing spaces.
8296  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8297
8298_ACEOF
8299
8300# Transform confdefs.h into two sed scripts, `conftest.defines' and
8301# `conftest.undefs', that substitutes the proper values into
8302# config.h.in to produce config.h.  The first handles `#define'
8303# templates, and the second `#undef' templates.
8304# And first: Protect against being on the right side of a sed subst in
8305# config.status.  Protect against being in an unquoted here document
8306# in config.status.
8307rm -f conftest.defines conftest.undefs
8308# Using a here document instead of a string reduces the quoting nightmare.
8309# Putting comments in sed scripts is not portable.
8310#
8311# `end' is used to avoid that the second main sed command (meant for
8312# 0-ary CPP macros) applies to n-ary macro definitions.
8313# See the Autoconf documentation for `clear'.
8314cat >confdef2sed.sed <<\_ACEOF
8315s/[\\&,]/\\&/g
8316s,[\\$`],\\&,g
8317t clear
8318: clear
8319s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8320t end
8321s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8322: end
8323_ACEOF
8324# If some macros were called several times there might be several times
8325# the same #defines, which is useless.  Nevertheless, we may not want to
8326# sort them, since we want the *last* AC-DEFINE to be honored.
8327uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8328sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8329rm -f confdef2sed.sed
8330
8331# This sed command replaces #undef with comments.  This is necessary, for
8332# example, in the case of _POSIX_SOURCE, which is predefined and required
8333# on some systems where configure will not decide to define it.
8334cat >>conftest.undefs <<\_ACEOF
8335s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8336_ACEOF
8337
8338# Break up conftest.defines because some shells have a limit on the size
8339# of here documents, and old seds have small limits too (100 cmds).
8340echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8341echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8342echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8343echo '  :' >>$CONFIG_STATUS
8344rm -f conftest.tail
8345while grep . conftest.defines >/dev/null
8346do
8347  # Write a limited-size here document to $tmp/defines.sed.
8348  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8349  # Speed up: don't consider the non `#define' lines.
8350  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8351  # Work around the forget-to-reset-the-flag bug.
8352  echo 't clr' >>$CONFIG_STATUS
8353  echo ': clr' >>$CONFIG_STATUS
8354  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8355  echo 'CEOF
8356  sed -f $tmp/defines.sed $tmp/in >$tmp/out
8357  rm -f $tmp/in
8358  mv $tmp/out $tmp/in
8359' >>$CONFIG_STATUS
8360  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8361  rm -f conftest.defines
8362  mv conftest.tail conftest.defines
8363done
8364rm -f conftest.defines
8365echo '  fi # grep' >>$CONFIG_STATUS
8366echo >>$CONFIG_STATUS
8367
8368# Break up conftest.undefs because some shells have a limit on the size
8369# of here documents, and old seds have small limits too (100 cmds).
8370echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8371rm -f conftest.tail
8372while grep . conftest.undefs >/dev/null
8373do
8374  # Write a limited-size here document to $tmp/undefs.sed.
8375  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8376  # Speed up: don't consider the non `#undef'
8377  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8378  # Work around the forget-to-reset-the-flag bug.
8379  echo 't clr' >>$CONFIG_STATUS
8380  echo ': clr' >>$CONFIG_STATUS
8381  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8382  echo 'CEOF
8383  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8384  rm -f $tmp/in
8385  mv $tmp/out $tmp/in
8386' >>$CONFIG_STATUS
8387  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8388  rm -f conftest.undefs
8389  mv conftest.tail conftest.undefs
8390done
8391rm -f conftest.undefs
8392
8393cat >>$CONFIG_STATUS <<\_ACEOF
8394  # Let's still pretend it is `configure' which instantiates (i.e., don't
8395  # use $as_me), people would be surprised to read:
8396  #    /* config.h.  Generated by config.status.  */
8397  if test x"$ac_file" = x-; then
8398    echo "/* Generated by configure.  */" >$tmp/config.h
8399  else
8400    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8401  fi
8402  cat $tmp/in >>$tmp/config.h
8403  rm -f $tmp/in
8404  if test x"$ac_file" != x-; then
8405    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8406      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8407echo "$as_me: $ac_file is unchanged" >&6;}
8408    else
8409      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8410$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8411         X"$ac_file" : 'X\(//\)[^/]' \| \
8412         X"$ac_file" : 'X\(//\)$' \| \
8413         X"$ac_file" : 'X\(/\)' \| \
8414         .     : '\(.\)' 2>/dev/null ||
8415echo X"$ac_file" |
8416    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8417          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8418          /^X\(\/\/\)$/{ s//\1/; q; }
8419          /^X\(\/\).*/{ s//\1/; q; }
8420          s/.*/./; q'`
8421      { if $as_mkdir_p; then
8422    mkdir -p "$ac_dir"
8423  else
8424    as_dir="$ac_dir"
8425    as_dirs=
8426    while test ! -d "$as_dir"; do
8427      as_dirs="$as_dir $as_dirs"
8428      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8430         X"$as_dir" : 'X\(//\)[^/]' \| \
8431         X"$as_dir" : 'X\(//\)$' \| \
8432         X"$as_dir" : 'X\(/\)' \| \
8433         .     : '\(.\)' 2>/dev/null ||
8434echo X"$as_dir" |
8435    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8436          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8437          /^X\(\/\/\)$/{ s//\1/; q; }
8438          /^X\(\/\).*/{ s//\1/; q; }
8439          s/.*/./; q'`
8440    done
8441    test ! -n "$as_dirs" || mkdir $as_dirs
8442  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8443echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8444   { (exit 1); exit 1; }; }; }
8445
8446      rm -f $ac_file
8447      mv $tmp/config.h $ac_file
8448    fi
8449  else
8450    cat $tmp/config.h
8451    rm -f $tmp/config.h
8452  fi
8453done
8454_ACEOF
8455
8456cat >>$CONFIG_STATUS <<\_ACEOF
8457
8458{ (exit 0); exit 0; }
8459_ACEOF
8460chmod +x $CONFIG_STATUS
8461ac_clean_files=$ac_clean_files_save
8462
8463
8464# configure is writing to config.log, and then calls config.status.
8465# config.status does its own redirection, appending to config.log.
8466# Unfortunately, on DOS this fails, as config.log is still kept open
8467# by configure, so config.status won't be able to write to it; its
8468# output is simply discarded.  So we exec the FD to /dev/null,
8469# effectively closing config.log, so it can be properly (re)opened and
8470# appended to by config.status.  When coming back to configure, we
8471# need to make the FD available again.
8472if test "$no_create" != yes; then
8473  ac_cs_success=:
8474  ac_config_status_args=
8475  test "$silent" = yes &&
8476    ac_config_status_args="$ac_config_status_args --quiet"
8477  exec 5>/dev/null
8478  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8479  exec 5>>config.log
8480  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8481  # would make configure fail if this is the last instruction.
8482  $ac_cs_success || { (exit 1); exit 1; }
8483fi
8484
Note: See TracBrowser for help on using the repository browser.