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