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