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