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