Introduced -devel and -extras subpackages for gawk
[platform/upstream/gawk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GNU Awk 4.0.1.
4 #
5 # Report bugs to <bug-gawk@gnu.org>.
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 bug-gawk@gnu.org
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
245 $0: 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='GNU Awk'
562 PACKAGE_TARNAME='gawk'
563 PACKAGE_VERSION='4.0.1'
564 PACKAGE_STRING='GNU Awk 4.0.1'
565 PACKAGE_BUGREPORT='bug-gawk@gnu.org'
566 PACKAGE_URL='http://www.gnu.org/software/gawk/'
567
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 #  include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #  include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 gt_needs=
605 ac_header_list=
606 ac_func_list=
607 ac_subst_vars='am__EXEEXT_FALSE
608 am__EXEEXT_TRUE
609 LTLIBOBJS
610 LIBREADLINE
611 SOCKET_LIBS
612 LIBSIGSEGV_PREFIX
613 LTLIBSIGSEGV
614 LIBSIGSEGV
615 HAVE_LIBSIGSEGV
616 LIBOBJS
617 POSUB
618 LTLIBINTL
619 LIBINTL
620 INTLLIBS
621 LTLIBICONV
622 LIBICONV
623 INTL_MACOSX_LIBS
624 host_os
625 host_vendor
626 host_cpu
627 host
628 build_os
629 build_vendor
630 build_cpu
631 build
632 XGETTEXT_EXTRA_OPTIONS
633 MSGMERGE
634 XGETTEXT_015
635 XGETTEXT
636 GMSGFMT_015
637 MSGFMT_015
638 GMSGFMT
639 MSGFMT
640 GETTEXT_MACRO_VERSION
641 USE_NLS
642 LN_S
643 YFLAGS
644 YACC
645 EGREP
646 GREP
647 CPP
648 am__fastdepCC_FALSE
649 am__fastdepCC_TRUE
650 CCDEPMODE
651 AMDEPBACKSLASH
652 AMDEP_FALSE
653 AMDEP_TRUE
654 am__quote
655 am__include
656 DEPDIR
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
663 CC
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
669 AWK
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 with_whiny_user_strftime
729 enable_lint
730 enable_dependency_tracking
731 enable_largefile
732 enable_nls
733 with_gnu_ld
734 enable_rpath
735 with_libiconv_prefix
736 with_libintl_prefix
737 with_libsigsegv_prefix
738 with_readline
739 '
740       ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP
749 YACC
750 YFLAGS'
751
752
753 # Initialize some variables set by options.
754 ac_init_help=
755 ac_init_version=false
756 ac_unrecognized_opts=
757 ac_unrecognized_sep=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
774
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
800
801 ac_prev=
802 ac_dashdash=
803 for ac_option
804 do
805   # If the previous option needs an argument, assign it.
806   if test -n "$ac_prev"; then
807     eval $ac_prev=\$ac_option
808     ac_prev=
809     continue
810   fi
811
812   case $ac_option in
813   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814   *=)   ac_optarg= ;;
815   *)    ac_optarg=yes ;;
816   esac
817
818   # Accept the important Cygnus configure options, so we can diagnose typos.
819
820   case $ac_dashdash$ac_option in
821   --)
822     ac_dashdash=yes ;;
823
824   -bindir | --bindir | --bindi | --bind | --bin | --bi)
825     ac_prev=bindir ;;
826   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827     bindir=$ac_optarg ;;
828
829   -build | --build | --buil | --bui | --bu)
830     ac_prev=build_alias ;;
831   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832     build_alias=$ac_optarg ;;
833
834   -cache-file | --cache-file | --cache-fil | --cache-fi \
835   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836     ac_prev=cache_file ;;
837   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839     cache_file=$ac_optarg ;;
840
841   --config-cache | -C)
842     cache_file=config.cache ;;
843
844   -datadir | --datadir | --datadi | --datad)
845     ac_prev=datadir ;;
846   -datadir=* | --datadir=* | --datadi=* | --datad=*)
847     datadir=$ac_optarg ;;
848
849   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850   | --dataroo | --dataro | --datar)
851     ac_prev=datarootdir ;;
852   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854     datarootdir=$ac_optarg ;;
855
856   -disable-* | --disable-*)
857     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858     # Reject names that are not valid shell variable names.
859     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860       as_fn_error $? "invalid feature name: $ac_useropt"
861     ac_useropt_orig=$ac_useropt
862     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863     case $ac_user_opts in
864       *"
865 "enable_$ac_useropt"
866 "*) ;;
867       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868          ac_unrecognized_sep=', ';;
869     esac
870     eval enable_$ac_useropt=no ;;
871
872   -docdir | --docdir | --docdi | --doc | --do)
873     ac_prev=docdir ;;
874   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875     docdir=$ac_optarg ;;
876
877   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878     ac_prev=dvidir ;;
879   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880     dvidir=$ac_optarg ;;
881
882   -enable-* | --enable-*)
883     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884     # Reject names that are not valid shell variable names.
885     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886       as_fn_error $? "invalid feature name: $ac_useropt"
887     ac_useropt_orig=$ac_useropt
888     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889     case $ac_user_opts in
890       *"
891 "enable_$ac_useropt"
892 "*) ;;
893       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894          ac_unrecognized_sep=', ';;
895     esac
896     eval enable_$ac_useropt=\$ac_optarg ;;
897
898   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900   | --exec | --exe | --ex)
901     ac_prev=exec_prefix ;;
902   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904   | --exec=* | --exe=* | --ex=*)
905     exec_prefix=$ac_optarg ;;
906
907   -gas | --gas | --ga | --g)
908     # Obsolete; use --with-gas.
909     with_gas=yes ;;
910
911   -help | --help | --hel | --he | -h)
912     ac_init_help=long ;;
913   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914     ac_init_help=recursive ;;
915   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916     ac_init_help=short ;;
917
918   -host | --host | --hos | --ho)
919     ac_prev=host_alias ;;
920   -host=* | --host=* | --hos=* | --ho=*)
921     host_alias=$ac_optarg ;;
922
923   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924     ac_prev=htmldir ;;
925   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926   | --ht=*)
927     htmldir=$ac_optarg ;;
928
929   -includedir | --includedir | --includedi | --included | --include \
930   | --includ | --inclu | --incl | --inc)
931     ac_prev=includedir ;;
932   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933   | --includ=* | --inclu=* | --incl=* | --inc=*)
934     includedir=$ac_optarg ;;
935
936   -infodir | --infodir | --infodi | --infod | --info | --inf)
937     ac_prev=infodir ;;
938   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939     infodir=$ac_optarg ;;
940
941   -libdir | --libdir | --libdi | --libd)
942     ac_prev=libdir ;;
943   -libdir=* | --libdir=* | --libdi=* | --libd=*)
944     libdir=$ac_optarg ;;
945
946   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947   | --libexe | --libex | --libe)
948     ac_prev=libexecdir ;;
949   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950   | --libexe=* | --libex=* | --libe=*)
951     libexecdir=$ac_optarg ;;
952
953   -localedir | --localedir | --localedi | --localed | --locale)
954     ac_prev=localedir ;;
955   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956     localedir=$ac_optarg ;;
957
958   -localstatedir | --localstatedir | --localstatedi | --localstated \
959   | --localstate | --localstat | --localsta | --localst | --locals)
960     ac_prev=localstatedir ;;
961   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963     localstatedir=$ac_optarg ;;
964
965   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966     ac_prev=mandir ;;
967   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968     mandir=$ac_optarg ;;
969
970   -nfp | --nfp | --nf)
971     # Obsolete; use --without-fp.
972     with_fp=no ;;
973
974   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975   | --no-cr | --no-c | -n)
976     no_create=yes ;;
977
978   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980     no_recursion=yes ;;
981
982   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984   | --oldin | --oldi | --old | --ol | --o)
985     ac_prev=oldincludedir ;;
986   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989     oldincludedir=$ac_optarg ;;
990
991   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992     ac_prev=prefix ;;
993   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994     prefix=$ac_optarg ;;
995
996   -program-prefix | --program-prefix | --program-prefi | --program-pref \
997   | --program-pre | --program-pr | --program-p)
998     ac_prev=program_prefix ;;
999   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001     program_prefix=$ac_optarg ;;
1002
1003   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004   | --program-suf | --program-su | --program-s)
1005     ac_prev=program_suffix ;;
1006   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008     program_suffix=$ac_optarg ;;
1009
1010   -program-transform-name | --program-transform-name \
1011   | --program-transform-nam | --program-transform-na \
1012   | --program-transform-n | --program-transform- \
1013   | --program-transform | --program-transfor \
1014   | --program-transfo | --program-transf \
1015   | --program-trans | --program-tran \
1016   | --progr-tra | --program-tr | --program-t)
1017     ac_prev=program_transform_name ;;
1018   -program-transform-name=* | --program-transform-name=* \
1019   | --program-transform-nam=* | --program-transform-na=* \
1020   | --program-transform-n=* | --program-transform-=* \
1021   | --program-transform=* | --program-transfor=* \
1022   | --program-transfo=* | --program-transf=* \
1023   | --program-trans=* | --program-tran=* \
1024   | --progr-tra=* | --program-tr=* | --program-t=*)
1025     program_transform_name=$ac_optarg ;;
1026
1027   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028     ac_prev=pdfdir ;;
1029   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030     pdfdir=$ac_optarg ;;
1031
1032   -psdir | --psdir | --psdi | --psd | --ps)
1033     ac_prev=psdir ;;
1034   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035     psdir=$ac_optarg ;;
1036
1037   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038   | -silent | --silent | --silen | --sile | --sil)
1039     silent=yes ;;
1040
1041   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042     ac_prev=sbindir ;;
1043   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044   | --sbi=* | --sb=*)
1045     sbindir=$ac_optarg ;;
1046
1047   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049   | --sharedst | --shareds | --shared | --share | --shar \
1050   | --sha | --sh)
1051     ac_prev=sharedstatedir ;;
1052   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055   | --sha=* | --sh=*)
1056     sharedstatedir=$ac_optarg ;;
1057
1058   -site | --site | --sit)
1059     ac_prev=site ;;
1060   -site=* | --site=* | --sit=*)
1061     site=$ac_optarg ;;
1062
1063   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064     ac_prev=srcdir ;;
1065   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066     srcdir=$ac_optarg ;;
1067
1068   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069   | --syscon | --sysco | --sysc | --sys | --sy)
1070     ac_prev=sysconfdir ;;
1071   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073     sysconfdir=$ac_optarg ;;
1074
1075   -target | --target | --targe | --targ | --tar | --ta | --t)
1076     ac_prev=target_alias ;;
1077   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078     target_alias=$ac_optarg ;;
1079
1080   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081     verbose=yes ;;
1082
1083   -version | --version | --versio | --versi | --vers | -V)
1084     ac_init_version=: ;;
1085
1086   -with-* | --with-*)
1087     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088     # Reject names that are not valid shell variable names.
1089     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090       as_fn_error $? "invalid package name: $ac_useropt"
1091     ac_useropt_orig=$ac_useropt
1092     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093     case $ac_user_opts in
1094       *"
1095 "with_$ac_useropt"
1096 "*) ;;
1097       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098          ac_unrecognized_sep=', ';;
1099     esac
1100     eval with_$ac_useropt=\$ac_optarg ;;
1101
1102   -without-* | --without-*)
1103     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106       as_fn_error $? "invalid package name: $ac_useropt"
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "with_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval with_$ac_useropt=no ;;
1117
1118   --x)
1119     # Obsolete; use --with-x.
1120     with_x=yes ;;
1121
1122   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123   | --x-incl | --x-inc | --x-in | --x-i)
1124     ac_prev=x_includes ;;
1125   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127     x_includes=$ac_optarg ;;
1128
1129   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131     ac_prev=x_libraries ;;
1132   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134     x_libraries=$ac_optarg ;;
1135
1136   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1137 Try \`$0 --help' for more information"
1138     ;;
1139
1140   *=*)
1141     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142     # Reject names that are not valid shell variable names.
1143     case $ac_envvar in #(
1144       '' | [0-9]* | *[!_$as_cr_alnum]* )
1145       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1146     esac
1147     eval $ac_envvar=\$ac_optarg
1148     export $ac_envvar ;;
1149
1150   *)
1151     # FIXME: should be removed in autoconf 3.0.
1152     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1156     ;;
1157
1158   esac
1159 done
1160
1161 if test -n "$ac_prev"; then
1162   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163   as_fn_error $? "missing argument to $ac_option"
1164 fi
1165
1166 if test -n "$ac_unrecognized_opts"; then
1167   case $enable_option_checking in
1168     no) ;;
1169     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1170     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171   esac
1172 fi
1173
1174 # Check all directory arguments for consistency.
1175 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176                 datadir sysconfdir sharedstatedir localstatedir includedir \
1177                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178                 libdir localedir mandir
1179 do
1180   eval ac_val=\$$ac_var
1181   # Remove trailing slashes.
1182   case $ac_val in
1183     */ )
1184       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185       eval $ac_var=\$ac_val;;
1186   esac
1187   # Be sure to have absolute directory names.
1188   case $ac_val in
1189     [\\/$]* | ?:[\\/]* )  continue;;
1190     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191   esac
1192   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1193 done
1194
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1198 build=$build_alias
1199 host=$host_alias
1200 target=$target_alias
1201
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204   if test "x$build_alias" = x; then
1205     cross_compiling=maybe
1206     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1207     If a cross compiler is detected then cross compile mode will be used" >&2
1208   elif test "x$build_alias" != "x$host_alias"; then
1209     cross_compiling=yes
1210   fi
1211 fi
1212
1213 ac_tool_prefix=
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215
1216 test "$silent" = yes && exec 6>/dev/null
1217
1218
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222   as_fn_error $? "working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224   as_fn_error $? "pwd does not report name of working directory"
1225
1226
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229   ac_srcdir_defaulted=yes
1230   # Try the directory containing this script, then the parent directory.
1231   ac_confdir=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233          X"$as_myself" : 'X\(//\)[^/]' \| \
1234          X"$as_myself" : 'X\(//\)$' \| \
1235          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 $as_echo X"$as_myself" |
1237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238             s//\1/
1239             q
1240           }
1241           /^X\(\/\/\)[^/].*/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\/\)$/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\).*/{
1250             s//\1/
1251             q
1252           }
1253           s/.*/./; q'`
1254   srcdir=$ac_confdir
1255   if test ! -r "$srcdir/$ac_unique_file"; then
1256     srcdir=..
1257   fi
1258 else
1259   ac_srcdir_defaulted=no
1260 fi
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1264 fi
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 ac_abs_confdir=`(
1267         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1268         pwd)`
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271   srcdir=.
1272 fi
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1276 case $srcdir in
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 esac
1279 for ac_var in $ac_precious_vars; do
1280   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281   eval ac_env_${ac_var}_value=\$${ac_var}
1282   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 done
1285
1286 #
1287 # Report the --help message.
1288 #
1289 if test "$ac_init_help" = "long"; then
1290   # Omit some internal or obsolete options to make the list less imposing.
1291   # This message is too long to be a string in the A/UX 3.1 sh.
1292   cat <<_ACEOF
1293 \`configure' configures GNU Awk 4.0.1 to adapt to many kinds of systems.
1294
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1296
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE.  See below for descriptions of some of the useful variables.
1299
1300 Defaults for the options are specified in brackets.
1301
1302 Configuration:
1303   -h, --help              display this help and exit
1304       --help=short        display options specific to this package
1305       --help=recursive    display the short help of all the included packages
1306   -V, --version           display version information and exit
1307   -q, --quiet, --silent   do not print \`checking ...' messages
1308       --cache-file=FILE   cache test results in FILE [disabled]
1309   -C, --config-cache      alias for \`--cache-file=config.cache'
1310   -n, --no-create         do not create output files
1311       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1312
1313 Installation directories:
1314   --prefix=PREFIX         install architecture-independent files in PREFIX
1315                           [$ac_default_prefix]
1316   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1317                           [PREFIX]
1318
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1323
1324 For better control, use the options below.
1325
1326 Fine tuning of the installation directories:
1327   --bindir=DIR            user executables [EPREFIX/bin]
1328   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1329   --libexecdir=DIR        program executables [EPREFIX/libexec]
1330   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1331   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1332   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1333   --libdir=DIR            object code libraries [EPREFIX/lib]
1334   --includedir=DIR        C header files [PREFIX/include]
1335   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1336   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1337   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1338   --infodir=DIR           info documentation [DATAROOTDIR/info]
1339   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1340   --mandir=DIR            man documentation [DATAROOTDIR/man]
1341   --docdir=DIR            documentation root [DATAROOTDIR/doc/gawk]
1342   --htmldir=DIR           html documentation [DOCDIR]
1343   --dvidir=DIR            dvi documentation [DOCDIR]
1344   --pdfdir=DIR            pdf documentation [DOCDIR]
1345   --psdir=DIR             ps documentation [DOCDIR]
1346 _ACEOF
1347
1348   cat <<\_ACEOF
1349
1350 Program names:
1351   --program-prefix=PREFIX            prepend PREFIX to installed program names
1352   --program-suffix=SUFFIX            append SUFFIX to installed program names
1353   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1354
1355 System types:
1356   --build=BUILD     configure for building on BUILD [guessed]
1357   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1358 _ACEOF
1359 fi
1360
1361 if test -n "$ac_init_help"; then
1362   case $ac_init_help in
1363      short | recursive ) echo "Configuration of GNU Awk 4.0.1:";;
1364    esac
1365   cat <<\_ACEOF
1366
1367 Optional Features:
1368   --disable-option-checking  ignore unrecognized --enable/--with options
1369   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1370   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1371   --disable-lint        Disable gawk lint checking
1372   --disable-dependency-tracking  speeds up one-time build
1373   --enable-dependency-tracking   do not reject slow dependency extractors
1374   --disable-largefile     omit support for large files
1375   --disable-nls           do not use Native Language Support
1376   --disable-rpath         do not hardcode runtime library paths
1377
1378 Optional Packages:
1379   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1380   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1381   --with-whiny-user-strftime    Force use of included version of strftime for deficient systems
1382   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1383   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1384   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1385   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1386   --without-libintl-prefix     don't search for libintl in includedir and libdir
1387   --with-libsigsegv-prefix[=DIR]  search for libsigsegv in DIR/include and DIR/lib
1388   --without-libsigsegv-prefix     don't search for libsigsegv in includedir and libdir
1389   --with-readline=DIR     look for the readline library in DIR
1390
1391 Some influential environment variables:
1392   CC          C compiler command
1393   CFLAGS      C compiler flags
1394   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1395               nonstandard directory <lib dir>
1396   LIBS        libraries to pass to the linker, e.g. -l<library>
1397   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1398               you have headers in a nonstandard directory <include dir>
1399   CPP         C preprocessor
1400   YACC        The `Yet Another Compiler Compiler' implementation to use.
1401               Defaults to the first program found out of: `bison -y', `byacc',
1402               `yacc'.
1403   YFLAGS      The list of arguments that will be passed by default to $YACC.
1404               This script will default YFLAGS to the empty string to avoid a
1405               default value of `-d' given by some make applications.
1406
1407 Use these variables to override the choices made by `configure' or to help
1408 it to find libraries and programs with nonstandard names/locations.
1409
1410 Report bugs to <bug-gawk@gnu.org>.
1411 GNU Awk home page: <http://www.gnu.org/software/gawk/>.
1412 General help using GNU software: <http://www.gnu.org/gethelp/>.
1413 _ACEOF
1414 ac_status=$?
1415 fi
1416
1417 if test "$ac_init_help" = "recursive"; then
1418   # If there are subdirs, report their specific --help.
1419   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420     test -d "$ac_dir" ||
1421       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422       continue
1423     ac_builddir=.
1424
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *)
1428   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429   # A ".." for each directory in $ac_dir_suffix.
1430   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431   case $ac_top_builddir_sub in
1432   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434   esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1440
1441 case $srcdir in
1442   .)  # We are building in place.
1443     ac_srcdir=.
1444     ac_top_srcdir=$ac_top_builddir_sub
1445     ac_abs_top_srcdir=$ac_pwd ;;
1446   [\\/]* | ?:[\\/]* )  # Absolute name.
1447     ac_srcdir=$srcdir$ac_dir_suffix;
1448     ac_top_srcdir=$srcdir
1449     ac_abs_top_srcdir=$srcdir ;;
1450   *) # Relative name.
1451     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452     ac_top_srcdir=$ac_top_build_prefix$srcdir
1453     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457     cd "$ac_dir" || { ac_status=$?; continue; }
1458     # Check for guested configure.
1459     if test -f "$ac_srcdir/configure.gnu"; then
1460       echo &&
1461       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462     elif test -f "$ac_srcdir/configure"; then
1463       echo &&
1464       $SHELL "$ac_srcdir/configure" --help=recursive
1465     else
1466       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467     fi || ac_status=$?
1468     cd "$ac_pwd" || { ac_status=$?; break; }
1469   done
1470 fi
1471
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474   cat <<\_ACEOF
1475 GNU Awk configure 4.0.1
1476 generated by GNU Autoconf 2.68
1477
1478 Copyright (C) 2010 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482   exit
1483 fi
1484
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1488
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1493 {
1494   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495   rm -f conftest.$ac_objext
1496   if { { ac_try="$ac_compile"
1497 case "(($ac_try" in
1498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499   *) ac_try_echo=$ac_try;;
1500 esac
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503   (eval "$ac_compile") 2>conftest.err
1504   ac_status=$?
1505   if test -s conftest.err; then
1506     grep -v '^ *+' conftest.err >conftest.er1
1507     cat conftest.er1 >&5
1508     mv -f conftest.er1 conftest.err
1509   fi
1510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511   test $ac_status = 0; } && {
1512          test -z "$ac_c_werror_flag" ||
1513          test ! -s conftest.err
1514        } && test -s conftest.$ac_objext; then :
1515   ac_retval=0
1516 else
1517   $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1519
1520         ac_retval=1
1521 fi
1522   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523   as_fn_set_status $ac_retval
1524
1525 } # ac_fn_c_try_compile
1526
1527 # ac_fn_c_try_cpp LINENO
1528 # ----------------------
1529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_cpp ()
1531 {
1532   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533   if { { ac_try="$ac_cpp conftest.$ac_ext"
1534 case "(($ac_try" in
1535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536   *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1541   ac_status=$?
1542   if test -s conftest.err; then
1543     grep -v '^ *+' conftest.err >conftest.er1
1544     cat conftest.er1 >&5
1545     mv -f conftest.er1 conftest.err
1546   fi
1547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548   test $ac_status = 0; } > conftest.i && {
1549          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1550          test ! -s conftest.err
1551        }; then :
1552   ac_retval=0
1553 else
1554   $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557     ac_retval=1
1558 fi
1559   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560   as_fn_set_status $ac_retval
1561
1562 } # ac_fn_c_try_cpp
1563
1564 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1567 # the include files in INCLUDES and setting the cache variable VAR
1568 # accordingly.
1569 ac_fn_c_check_header_mongrel ()
1570 {
1571   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572   if eval \${$3+:} false; then :
1573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574 $as_echo_n "checking for $2... " >&6; }
1575 if eval \${$3+:} false; then :
1576   $as_echo_n "(cached) " >&6
1577 fi
1578 eval ac_res=\$$3
1579                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580 $as_echo "$ac_res" >&6; }
1581 else
1582   # Is the header compilable?
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1584 $as_echo_n "checking $2 usability... " >&6; }
1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h.  */
1587 $4
1588 #include <$2>
1589 _ACEOF
1590 if ac_fn_c_try_compile "$LINENO"; then :
1591   ac_header_compiler=yes
1592 else
1593   ac_header_compiler=no
1594 fi
1595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1597 $as_echo "$ac_header_compiler" >&6; }
1598
1599 # Is the header present?
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1601 $as_echo_n "checking $2 presence... " >&6; }
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h.  */
1604 #include <$2>
1605 _ACEOF
1606 if ac_fn_c_try_cpp "$LINENO"; then :
1607   ac_header_preproc=yes
1608 else
1609   ac_header_preproc=no
1610 fi
1611 rm -f conftest.err conftest.i conftest.$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1613 $as_echo "$ac_header_preproc" >&6; }
1614
1615 # So?  What about this header?
1616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1617   yes:no: )
1618     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1619 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1620     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1622     ;;
1623   no:yes:* )
1624     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1625 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1626     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1627 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1628     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1629 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1630     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1631 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1632     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 ( $as_echo "## ------------------------------- ##
1635 ## Report this to bug-gawk@gnu.org ##
1636 ## ------------------------------- ##"
1637      ) | sed "s/^/$as_me: WARNING:     /" >&2
1638     ;;
1639 esac
1640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 $as_echo_n "checking for $2... " >&6; }
1642 if eval \${$3+:} false; then :
1643   $as_echo_n "(cached) " >&6
1644 else
1645   eval "$3=\$ac_header_compiler"
1646 fi
1647 eval ac_res=\$$3
1648                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 fi
1651   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652
1653 } # ac_fn_c_check_header_mongrel
1654
1655 # ac_fn_c_try_run LINENO
1656 # ----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1658 # that executables *can* be run.
1659 ac_fn_c_try_run ()
1660 {
1661   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662   if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665   *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669   (eval "$ac_link") 2>&5
1670   ac_status=$?
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1673   { { case "(($ac_try" in
1674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675   *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679   (eval "$ac_try") 2>&5
1680   ac_status=$?
1681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682   test $ac_status = 0; }; }; then :
1683   ac_retval=0
1684 else
1685   $as_echo "$as_me: program exited with status $ac_status" >&5
1686        $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689        ac_retval=$ac_status
1690 fi
1691   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693   as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_run
1696
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707   $as_echo_n "(cached) " >&6
1708 else
1709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h.  */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715   eval "$3=yes"
1716 else
1717   eval "$3=no"
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 fi
1721 eval ac_res=\$$3
1722                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726 } # ac_fn_c_check_header_compile
1727
1728 # ac_fn_c_try_link LINENO
1729 # -----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_link ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   rm -f conftest.$ac_objext conftest$ac_exeext
1735   if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738   *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742   (eval "$ac_link") 2>conftest.err
1743   ac_status=$?
1744   if test -s conftest.err; then
1745     grep -v '^ *+' conftest.err >conftest.er1
1746     cat conftest.er1 >&5
1747     mv -f conftest.er1 conftest.err
1748   fi
1749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750   test $ac_status = 0; } && {
1751          test -z "$ac_c_werror_flag" ||
1752          test ! -s conftest.err
1753        } && test -s conftest$ac_exeext && {
1754          test "$cross_compiling" = yes ||
1755          $as_test_x conftest$ac_exeext
1756        }; then :
1757   ac_retval=0
1758 else
1759   $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762         ac_retval=1
1763 fi
1764   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1765   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1766   # interfere with the next link command; also delete a directory that is
1767   # left behind by Apple's compiler.  We do this before executing the actions.
1768   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770   as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_link
1773
1774 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1775 # -------------------------------------------
1776 # Tests whether TYPE exists after having included INCLUDES, setting cache
1777 # variable VAR accordingly.
1778 ac_fn_c_check_type ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784   $as_echo_n "(cached) " >&6
1785 else
1786   eval "$3=no"
1787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h.  */
1789 $4
1790 int
1791 main ()
1792 {
1793 if (sizeof ($2))
1794          return 0;
1795   ;
1796   return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h.  */
1802 $4
1803 int
1804 main ()
1805 {
1806 if (sizeof (($2)))
1807             return 0;
1808   ;
1809   return 0;
1810 }
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813
1814 else
1815   eval "$3=yes"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_type
1827
1828 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1829 # --------------------------------------------
1830 # Tries to find the compile-time value of EXPR in a program that includes
1831 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1832 # computed
1833 ac_fn_c_compute_int ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   if test "$cross_compiling" = yes; then
1837     # Depending upon the size, compute the lo and hi bounds.
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h.  */
1840 $4
1841 int
1842 main ()
1843 {
1844 static int test_array [1 - 2 * !(($2) >= 0)];
1845 test_array [0] = 0
1846
1847   ;
1848   return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852   ac_lo=0 ac_mid=0
1853   while :; do
1854     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h.  */
1856 $4
1857 int
1858 main ()
1859 {
1860 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1861 test_array [0] = 0
1862
1863   ;
1864   return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868   ac_hi=$ac_mid; break
1869 else
1870   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1871                         if test $ac_lo -le $ac_mid; then
1872                           ac_lo= ac_hi=
1873                           break
1874                         fi
1875                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878   done
1879 else
1880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 $4
1883 int
1884 main ()
1885 {
1886 static int test_array [1 - 2 * !(($2) < 0)];
1887 test_array [0] = 0
1888
1889   ;
1890   return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894   ac_hi=-1 ac_mid=-1
1895   while :; do
1896     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h.  */
1898 $4
1899 int
1900 main ()
1901 {
1902 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1903 test_array [0] = 0
1904
1905   ;
1906   return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910   ac_lo=$ac_mid; break
1911 else
1912   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1913                         if test $ac_mid -le $ac_hi; then
1914                           ac_lo= ac_hi=
1915                           break
1916                         fi
1917                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920   done
1921 else
1922   ac_lo= ac_hi=
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 # Binary search between lo and hi bounds.
1928 while test "x$ac_lo" != "x$ac_hi"; do
1929   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h.  */
1932 $4
1933 int
1934 main ()
1935 {
1936 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1937 test_array [0] = 0
1938
1939   ;
1940   return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944   ac_hi=$ac_mid
1945 else
1946   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 done
1950 case $ac_lo in #((
1951 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1952 '') ac_retval=1 ;;
1953 esac
1954   else
1955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h.  */
1957 $4
1958 static long int longval () { return $2; }
1959 static unsigned long int ulongval () { return $2; }
1960 #include <stdio.h>
1961 #include <stdlib.h>
1962 int
1963 main ()
1964 {
1965
1966   FILE *f = fopen ("conftest.val", "w");
1967   if (! f)
1968     return 1;
1969   if (($2) < 0)
1970     {
1971       long int i = longval ();
1972       if (i != ($2))
1973         return 1;
1974       fprintf (f, "%ld", i);
1975     }
1976   else
1977     {
1978       unsigned long int i = ulongval ();
1979       if (i != ($2))
1980         return 1;
1981       fprintf (f, "%lu", i);
1982     }
1983   /* Do not output a trailing newline, as this causes \r\n confusion
1984      on some platforms.  */
1985   return ferror (f) || fclose (f) != 0;
1986
1987   ;
1988   return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_run "$LINENO"; then :
1992   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1993 else
1994   ac_retval=1
1995 fi
1996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1997   conftest.$ac_objext conftest.beam conftest.$ac_ext
1998 rm -f conftest.val
1999
2000   fi
2001   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002   as_fn_set_status $ac_retval
2003
2004 } # ac_fn_c_compute_int
2005
2006 # ac_fn_c_check_func LINENO FUNC VAR
2007 # ----------------------------------
2008 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2009 ac_fn_c_check_func ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015   $as_echo_n "(cached) " >&6
2016 else
2017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2021 #define $2 innocuous_$2
2022
2023 /* System header to define __stub macros and hopefully few prototypes,
2024     which can conflict with char $2 (); below.
2025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2026     <limits.h> exists even on freestanding compilers.  */
2027
2028 #ifdef __STDC__
2029 # include <limits.h>
2030 #else
2031 # include <assert.h>
2032 #endif
2033
2034 #undef $2
2035
2036 /* Override any GCC internal prototype to avoid an error.
2037    Use char because int might match the return type of a GCC
2038    builtin and then its argument prototype would still apply.  */
2039 #ifdef __cplusplus
2040 extern "C"
2041 #endif
2042 char $2 ();
2043 /* The GNU C library defines this for functions which it implements
2044     to always fail with ENOSYS.  Some functions are actually named
2045     something starting with __ and the normal name is an alias.  */
2046 #if defined __stub_$2 || defined __stub___$2
2047 choke me
2048 #endif
2049
2050 int
2051 main ()
2052 {
2053 return $2 ();
2054   ;
2055   return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_link "$LINENO"; then :
2059   eval "$3=yes"
2060 else
2061   eval "$3=no"
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext \
2064     conftest$ac_exeext conftest.$ac_ext
2065 fi
2066 eval ac_res=\$$3
2067                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071 } # ac_fn_c_check_func
2072
2073 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2074 # ----------------------------------------------------
2075 # Tries to find if the field MEMBER exists in type AGGR, after including
2076 # INCLUDES, setting cache variable VAR accordingly.
2077 ac_fn_c_check_member ()
2078 {
2079   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2081 $as_echo_n "checking for $2.$3... " >&6; }
2082 if eval \${$4+:} false; then :
2083   $as_echo_n "(cached) " >&6
2084 else
2085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $5
2088 int
2089 main ()
2090 {
2091 static $2 ac_aggr;
2092 if (ac_aggr.$3)
2093 return 0;
2094   ;
2095   return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099   eval "$4=yes"
2100 else
2101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 $5
2104 int
2105 main ()
2106 {
2107 static $2 ac_aggr;
2108 if (sizeof ac_aggr.$3)
2109 return 0;
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115   eval "$4=yes"
2116 else
2117   eval "$4=no"
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 fi
2123 eval ac_res=\$$4
2124                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128 } # ac_fn_c_check_member
2129
2130 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2131 # ---------------------------------------------
2132 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2133 # accordingly.
2134 ac_fn_c_check_decl ()
2135 {
2136   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137   as_decl_name=`echo $2|sed 's/ *(.*//'`
2138   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2140 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2141 if eval \${$3+:} false; then :
2142   $as_echo_n "(cached) " >&6
2143 else
2144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h.  */
2146 $4
2147 int
2148 main ()
2149 {
2150 #ifndef $as_decl_name
2151 #ifdef __cplusplus
2152   (void) $as_decl_use;
2153 #else
2154   (void) $as_decl_name;
2155 #endif
2156 #endif
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163   eval "$3=yes"
2164 else
2165   eval "$3=no"
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 fi
2169 eval ac_res=\$$3
2170                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173
2174 } # ac_fn_c_check_decl
2175 cat >config.log <<_ACEOF
2176 This file contains any messages produced by compilers while
2177 running configure, to aid debugging if configure makes a mistake.
2178
2179 It was created by GNU Awk $as_me 4.0.1, which was
2180 generated by GNU Autoconf 2.68.  Invocation command line was
2181
2182   $ $0 $@
2183
2184 _ACEOF
2185 exec 5>>config.log
2186 {
2187 cat <<_ASUNAME
2188 ## --------- ##
2189 ## Platform. ##
2190 ## --------- ##
2191
2192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2197
2198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2199 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2200
2201 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2202 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2204 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2205 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2206 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2207 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2208
2209 _ASUNAME
2210
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2213 do
2214   IFS=$as_save_IFS
2215   test -z "$as_dir" && as_dir=.
2216     $as_echo "PATH: $as_dir"
2217   done
2218 IFS=$as_save_IFS
2219
2220 } >&5
2221
2222 cat >&5 <<_ACEOF
2223
2224
2225 ## ----------- ##
2226 ## Core tests. ##
2227 ## ----------- ##
2228
2229 _ACEOF
2230
2231
2232 # Keep a trace of the command line.
2233 # Strip out --no-create and --no-recursion so they do not pile up.
2234 # Strip out --silent because we don't want to record it for future runs.
2235 # Also quote any args containing shell meta-characters.
2236 # Make two passes to allow for proper duplicate-argument suppression.
2237 ac_configure_args=
2238 ac_configure_args0=
2239 ac_configure_args1=
2240 ac_must_keep_next=false
2241 for ac_pass in 1 2
2242 do
2243   for ac_arg
2244   do
2245     case $ac_arg in
2246     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2247     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2248     | -silent | --silent | --silen | --sile | --sil)
2249       continue ;;
2250     *\'*)
2251       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2252     esac
2253     case $ac_pass in
2254     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2255     2)
2256       as_fn_append ac_configure_args1 " '$ac_arg'"
2257       if test $ac_must_keep_next = true; then
2258         ac_must_keep_next=false # Got value, back to normal.
2259       else
2260         case $ac_arg in
2261           *=* | --config-cache | -C | -disable-* | --disable-* \
2262           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2263           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2264           | -with-* | --with-* | -without-* | --without-* | --x)
2265             case "$ac_configure_args0 " in
2266               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2267             esac
2268             ;;
2269           -* ) ac_must_keep_next=true ;;
2270         esac
2271       fi
2272       as_fn_append ac_configure_args " '$ac_arg'"
2273       ;;
2274     esac
2275   done
2276 done
2277 { ac_configure_args0=; unset ac_configure_args0;}
2278 { ac_configure_args1=; unset ac_configure_args1;}
2279
2280 # When interrupted or exit'd, cleanup temporary files, and complete
2281 # config.log.  We remove comments because anyway the quotes in there
2282 # would cause problems or look ugly.
2283 # WARNING: Use '\'' to represent an apostrophe within the trap.
2284 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2285 trap 'exit_status=$?
2286   # Save into config.log some information that might help in debugging.
2287   {
2288     echo
2289
2290     $as_echo "## ---------------- ##
2291 ## Cache variables. ##
2292 ## ---------------- ##"
2293     echo
2294     # The following way of writing the cache mishandles newlines in values,
2295 (
2296   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297     eval ac_val=\$$ac_var
2298     case $ac_val in #(
2299     *${as_nl}*)
2300       case $ac_var in #(
2301       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303       esac
2304       case $ac_var in #(
2305       _ | IFS | as_nl) ;; #(
2306       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307       *) { eval $ac_var=; unset $ac_var;} ;;
2308       esac ;;
2309     esac
2310   done
2311   (set) 2>&1 |
2312     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313     *${as_nl}ac_space=\ *)
2314       sed -n \
2315         "s/'\''/'\''\\\\'\'''\''/g;
2316           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317       ;; #(
2318     *)
2319       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2320       ;;
2321     esac |
2322     sort
2323 )
2324     echo
2325
2326     $as_echo "## ----------------- ##
2327 ## Output variables. ##
2328 ## ----------------- ##"
2329     echo
2330     for ac_var in $ac_subst_vars
2331     do
2332       eval ac_val=\$$ac_var
2333       case $ac_val in
2334       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335       esac
2336       $as_echo "$ac_var='\''$ac_val'\''"
2337     done | sort
2338     echo
2339
2340     if test -n "$ac_subst_files"; then
2341       $as_echo "## ------------------- ##
2342 ## File substitutions. ##
2343 ## ------------------- ##"
2344       echo
2345       for ac_var in $ac_subst_files
2346       do
2347         eval ac_val=\$$ac_var
2348         case $ac_val in
2349         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350         esac
2351         $as_echo "$ac_var='\''$ac_val'\''"
2352       done | sort
2353       echo
2354     fi
2355
2356     if test -s confdefs.h; then
2357       $as_echo "## ----------- ##
2358 ## confdefs.h. ##
2359 ## ----------- ##"
2360       echo
2361       cat confdefs.h
2362       echo
2363     fi
2364     test "$ac_signal" != 0 &&
2365       $as_echo "$as_me: caught signal $ac_signal"
2366     $as_echo "$as_me: exit $exit_status"
2367   } >&5
2368   rm -f core *.core core.conftest.* &&
2369     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370     exit $exit_status
2371 ' 0
2372 for ac_signal in 1 2 13 15; do
2373   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2374 done
2375 ac_signal=0
2376
2377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2378 rm -f -r conftest* confdefs.h
2379
2380 $as_echo "/* confdefs.h */" > confdefs.h
2381
2382 # Predefined preprocessor variables.
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_NAME "$PACKAGE_NAME"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_STRING "$PACKAGE_STRING"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402 _ACEOF
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_URL "$PACKAGE_URL"
2406 _ACEOF
2407
2408
2409 # Let the site file select an alternate cache file if it wants to.
2410 # Prefer an explicitly selected file to automatically selected ones.
2411 ac_site_file1=NONE
2412 ac_site_file2=NONE
2413 if test -n "$CONFIG_SITE"; then
2414   # We do not want a PATH search for config.site.
2415   case $CONFIG_SITE in #((
2416     -*)  ac_site_file1=./$CONFIG_SITE;;
2417     */*) ac_site_file1=$CONFIG_SITE;;
2418     *)   ac_site_file1=./$CONFIG_SITE;;
2419   esac
2420 elif test "x$prefix" != xNONE; then
2421   ac_site_file1=$prefix/share/config.site
2422   ac_site_file2=$prefix/etc/config.site
2423 else
2424   ac_site_file1=$ac_default_prefix/share/config.site
2425   ac_site_file2=$ac_default_prefix/etc/config.site
2426 fi
2427 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428 do
2429   test "x$ac_site_file" = xNONE && continue
2430   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2431     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433     sed 's/^/| /' "$ac_site_file" >&5
2434     . "$ac_site_file" \
2435       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 as_fn_error $? "failed to load site script $ac_site_file
2438 See \`config.log' for more details" "$LINENO" 5; }
2439   fi
2440 done
2441
2442 if test -r "$cache_file"; then
2443   # Some versions of bash will fail to source /dev/null (special files
2444   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2445   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2446     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2447 $as_echo "$as_me: loading cache $cache_file" >&6;}
2448     case $cache_file in
2449       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2450       *)                      . "./$cache_file";;
2451     esac
2452   fi
2453 else
2454   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2455 $as_echo "$as_me: creating cache $cache_file" >&6;}
2456   >$cache_file
2457 fi
2458
2459 gt_needs="$gt_needs "
2460 as_fn_append ac_header_list " sys/time.h"
2461 as_fn_append ac_header_list " unistd.h"
2462 as_fn_append ac_func_list " alarm"
2463 # Check that the precious variables saved in the cache have kept the same
2464 # value.
2465 ac_cache_corrupted=false
2466 for ac_var in $ac_precious_vars; do
2467   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468   eval ac_new_set=\$ac_env_${ac_var}_set
2469   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470   eval ac_new_val=\$ac_env_${ac_var}_value
2471   case $ac_old_set,$ac_new_set in
2472     set,)
2473       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475       ac_cache_corrupted=: ;;
2476     ,set)
2477       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2479       ac_cache_corrupted=: ;;
2480     ,);;
2481     *)
2482       if test "x$ac_old_val" != "x$ac_new_val"; then
2483         # differences in whitespace do not lead to failure.
2484         ac_old_val_w=`echo x $ac_old_val`
2485         ac_new_val_w=`echo x $ac_new_val`
2486         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2489           ac_cache_corrupted=:
2490         else
2491           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493           eval $ac_var=\$ac_old_val
2494         fi
2495         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2496 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2497         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2498 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2499       fi;;
2500   esac
2501   # Pass precious variables to config.status.
2502   if test "$ac_new_set" = set; then
2503     case $ac_new_val in
2504     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2505     *) ac_arg=$ac_var=$ac_new_val ;;
2506     esac
2507     case " $ac_configure_args " in
2508       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2509       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510     esac
2511   fi
2512 done
2513 if $ac_cache_corrupted; then
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2519 fi
2520 ## -------------------- ##
2521 ## Main body of script. ##
2522 ## -------------------- ##
2523
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
2531
2532 # This is a hack. Different versions of install on different systems
2533 # are just too different. Chuck it and use install-sh.
2534 #
2535 # If the user supplies $INSTALL, figure they know what they're doing.
2536 #
2537 # With Autoconf 2.5x, this needs to come very early on, but *after*
2538 # the INIT macro. Sigh.
2539
2540 if test "x$INSTALL" = "x"
2541 then
2542         INSTALL="$srcdir/install-sh -c"
2543         export INSTALL
2544 fi
2545
2546
2547 am__api_version='1.11'
2548
2549 ac_aux_dir=
2550 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2551   if test -f "$ac_dir/install-sh"; then
2552     ac_aux_dir=$ac_dir
2553     ac_install_sh="$ac_aux_dir/install-sh -c"
2554     break
2555   elif test -f "$ac_dir/install.sh"; then
2556     ac_aux_dir=$ac_dir
2557     ac_install_sh="$ac_aux_dir/install.sh -c"
2558     break
2559   elif test -f "$ac_dir/shtool"; then
2560     ac_aux_dir=$ac_dir
2561     ac_install_sh="$ac_aux_dir/shtool install -c"
2562     break
2563   fi
2564 done
2565 if test -z "$ac_aux_dir"; then
2566   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2567 fi
2568
2569 # These three variables are undocumented and unsupported,
2570 # and are intended to be withdrawn in a future Autoconf release.
2571 # They can cause serious problems if a builder's source tree is in a directory
2572 # whose full name contains unusual characters.
2573 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2574 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2575 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2576
2577
2578 # Find a good install program.  We prefer a C program (faster),
2579 # so one script is as good as another.  But avoid the broken or
2580 # incompatible versions:
2581 # SysV /etc/install, /usr/sbin/install
2582 # SunOS /usr/etc/install
2583 # IRIX /sbin/install
2584 # AIX /bin/install
2585 # AmigaOS /C/install, which installs bootblocks on floppy discs
2586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2589 # OS/2's system install, which has a completely different semantic
2590 # ./install, which can be erroneously created by make from ./install.sh.
2591 # Reject install programs that cannot install multiple files.
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2593 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2594 if test -z "$INSTALL"; then
2595 if ${ac_cv_path_install+:} false; then :
2596   $as_echo_n "(cached) " >&6
2597 else
2598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603     # Account for people who put trailing slashes in PATH elements.
2604 case $as_dir/ in #((
2605   ./ | .// | /[cC]/* | \
2606   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2607   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2608   /usr/ucb/* ) ;;
2609   *)
2610     # OSF1 and SCO ODT 3.0 have their own names for install.
2611     # Don't use installbsd from OSF since it installs stuff as root
2612     # by default.
2613     for ac_prog in ginstall scoinst install; do
2614       for ac_exec_ext in '' $ac_executable_extensions; do
2615         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2616           if test $ac_prog = install &&
2617             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2618             # AIX install.  It has an incompatible calling convention.
2619             :
2620           elif test $ac_prog = install &&
2621             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2622             # program-specific install script used by HP pwplus--don't use.
2623             :
2624           else
2625             rm -rf conftest.one conftest.two conftest.dir
2626             echo one > conftest.one
2627             echo two > conftest.two
2628             mkdir conftest.dir
2629             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2630               test -s conftest.one && test -s conftest.two &&
2631               test -s conftest.dir/conftest.one &&
2632               test -s conftest.dir/conftest.two
2633             then
2634               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2635               break 3
2636             fi
2637           fi
2638         fi
2639       done
2640     done
2641     ;;
2642 esac
2643
2644   done
2645 IFS=$as_save_IFS
2646
2647 rm -rf conftest.one conftest.two conftest.dir
2648
2649 fi
2650   if test "${ac_cv_path_install+set}" = set; then
2651     INSTALL=$ac_cv_path_install
2652   else
2653     # As a last resort, use the slow shell script.  Don't cache a
2654     # value for INSTALL within a source directory, because that will
2655     # break other packages using the cache if that directory is
2656     # removed, or if the value is a relative name.
2657     INSTALL=$ac_install_sh
2658   fi
2659 fi
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2661 $as_echo "$INSTALL" >&6; }
2662
2663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2664 # It thinks the first close brace ends the variable substitution.
2665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2666
2667 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2668
2669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2672 $as_echo_n "checking whether build environment is sane... " >&6; }
2673 # Just in case
2674 sleep 1
2675 echo timestamp > conftest.file
2676 # Reject unsafe characters in $srcdir or the absolute working directory
2677 # name.  Accept space and tab only in the latter.
2678 am_lf='
2679 '
2680 case `pwd` in
2681   *[\\\"\#\$\&\'\`$am_lf]*)
2682     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2683 esac
2684 case $srcdir in
2685   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2686     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2687 esac
2688
2689 # Do `set' in a subshell so we don't clobber the current shell's
2690 # arguments.  Must try -L first in case configure is actually a
2691 # symlink; some systems play weird games with the mod time of symlinks
2692 # (eg FreeBSD returns the mod time of the symlink's containing
2693 # directory).
2694 if (
2695    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2696    if test "$*" = "X"; then
2697       # -L didn't work.
2698       set X `ls -t "$srcdir/configure" conftest.file`
2699    fi
2700    rm -f conftest.file
2701    if test "$*" != "X $srcdir/configure conftest.file" \
2702       && test "$*" != "X conftest.file $srcdir/configure"; then
2703
2704       # If neither matched, then we have a broken ls.  This can happen
2705       # if, for instance, CONFIG_SHELL is bash and it inherits a
2706       # broken ls alias from the environment.  This has actually
2707       # happened.  Such a system could not be considered "sane".
2708       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2709 alias in your environment" "$LINENO" 5
2710    fi
2711
2712    test "$2" = conftest.file
2713    )
2714 then
2715    # Ok.
2716    :
2717 else
2718    as_fn_error $? "newly created file is older than distributed files!
2719 Check your system clock" "$LINENO" 5
2720 fi
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2723 test "$program_prefix" != NONE &&
2724   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2725 # Use a double $ so make ignores it.
2726 test "$program_suffix" != NONE &&
2727   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2728 # Double any \ or $.
2729 # By default was `s,x,x', remove it if useless.
2730 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2731 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2732
2733 # expand $ac_aux_dir to an absolute path
2734 am_aux_dir=`cd $ac_aux_dir && pwd`
2735
2736 if test x"${MISSING+set}" != xset; then
2737   case $am_aux_dir in
2738   *\ * | *\     *)
2739     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2740   *)
2741     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2742   esac
2743 fi
2744 # Use eval to expand $SHELL
2745 if eval "$MISSING --run true"; then
2746   am_missing_run="$MISSING --run "
2747 else
2748   am_missing_run=
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2750 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2751 fi
2752
2753 if test x"${install_sh}" != xset; then
2754   case $am_aux_dir in
2755   *\ * | *\     *)
2756     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757   *)
2758     install_sh="\${SHELL} $am_aux_dir/install-sh"
2759   esac
2760 fi
2761
2762 # Installed binaries are usually stripped using `strip' when the user
2763 # run `make install-strip'.  However `strip' might not be the right
2764 # tool to use in cross-compilation environments, therefore Automake
2765 # will honor the `STRIP' environment variable to overrule this program.
2766 if test "$cross_compiling" != no; then
2767   if test -n "$ac_tool_prefix"; then
2768   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2769 set dummy ${ac_tool_prefix}strip; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_STRIP+:} false; then :
2773   $as_echo_n "(cached) " >&6
2774 else
2775   if test -n "$STRIP"; then
2776   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781   IFS=$as_save_IFS
2782   test -z "$as_dir" && as_dir=.
2783     for ac_exec_ext in '' $ac_executable_extensions; do
2784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787     break 2
2788   fi
2789 done
2790   done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 STRIP=$ac_cv_prog_STRIP
2796 if test -n "$STRIP"; then
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2798 $as_echo "$STRIP" >&6; }
2799 else
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2802 fi
2803
2804
2805 fi
2806 if test -z "$ac_cv_prog_STRIP"; then
2807   ac_ct_STRIP=$STRIP
2808   # Extract the first word of "strip", so it can be a program name with args.
2809 set dummy strip; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2813   $as_echo_n "(cached) " >&6
2814 else
2815   if test -n "$ac_ct_STRIP"; then
2816   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821   IFS=$as_save_IFS
2822   test -z "$as_dir" && as_dir=.
2823     for ac_exec_ext in '' $ac_executable_extensions; do
2824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825     ac_cv_prog_ac_ct_STRIP="strip"
2826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827     break 2
2828   fi
2829 done
2830   done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2836 if test -n "$ac_ct_STRIP"; then
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2838 $as_echo "$ac_ct_STRIP" >&6; }
2839 else
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 fi
2843
2844   if test "x$ac_ct_STRIP" = x; then
2845     STRIP=":"
2846   else
2847     case $cross_compiling:$ac_tool_warned in
2848 yes:)
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851 ac_tool_warned=yes ;;
2852 esac
2853     STRIP=$ac_ct_STRIP
2854   fi
2855 else
2856   STRIP="$ac_cv_prog_STRIP"
2857 fi
2858
2859 fi
2860 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2861
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2863 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2864 if test -z "$MKDIR_P"; then
2865   if ${ac_cv_path_mkdir+:} false; then :
2866   $as_echo_n "(cached) " >&6
2867 else
2868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2870 do
2871   IFS=$as_save_IFS
2872   test -z "$as_dir" && as_dir=.
2873     for ac_prog in mkdir gmkdir; do
2874          for ac_exec_ext in '' $ac_executable_extensions; do
2875            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2876            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2877              'mkdir (GNU coreutils) '* | \
2878              'mkdir (coreutils) '* | \
2879              'mkdir (fileutils) '4.1*)
2880                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2881                break 3;;
2882            esac
2883          done
2884        done
2885   done
2886 IFS=$as_save_IFS
2887
2888 fi
2889
2890   test -d ./--version && rmdir ./--version
2891   if test "${ac_cv_path_mkdir+set}" = set; then
2892     MKDIR_P="$ac_cv_path_mkdir -p"
2893   else
2894     # As a last resort, use the slow shell script.  Don't cache a
2895     # value for MKDIR_P within a source directory, because that will
2896     # break other packages using the cache if that directory is
2897     # removed, or if the value is a relative name.
2898     MKDIR_P="$ac_install_sh -d"
2899   fi
2900 fi
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2902 $as_echo "$MKDIR_P" >&6; }
2903
2904 mkdir_p="$MKDIR_P"
2905 case $mkdir_p in
2906   [\\/$]* | ?:[\\/]*) ;;
2907   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2908 esac
2909
2910 for ac_prog in gawk mawk nawk awk
2911 do
2912   # Extract the first word of "$ac_prog", so it can be a program name with args.
2913 set dummy $ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_AWK+:} false; then :
2917   $as_echo_n "(cached) " >&6
2918 else
2919   if test -n "$AWK"; then
2920   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927     for ac_exec_ext in '' $ac_executable_extensions; do
2928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929     ac_cv_prog_AWK="$ac_prog"
2930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934   done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 AWK=$ac_cv_prog_AWK
2940 if test -n "$AWK"; then
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2942 $as_echo "$AWK" >&6; }
2943 else
2944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949   test -n "$AWK" && break
2950 done
2951
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2953 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2954 set x ${MAKE-make}
2955 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2956 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   cat >conftest.make <<\_ACEOF
2960 SHELL = /bin/sh
2961 all:
2962         @echo '@@@%%%=$(MAKE)=@@@%%%'
2963 _ACEOF
2964 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2965 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2966   *@@@%%%=?*=@@@%%%*)
2967     eval ac_cv_prog_make_${ac_make}_set=yes;;
2968   *)
2969     eval ac_cv_prog_make_${ac_make}_set=no;;
2970 esac
2971 rm -f conftest.make
2972 fi
2973 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2975 $as_echo "yes" >&6; }
2976   SET_MAKE=
2977 else
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980   SET_MAKE="MAKE=${MAKE-make}"
2981 fi
2982
2983 rm -rf .tst 2>/dev/null
2984 mkdir .tst 2>/dev/null
2985 if test -d .tst; then
2986   am__leading_dot=.
2987 else
2988   am__leading_dot=_
2989 fi
2990 rmdir .tst 2>/dev/null
2991
2992 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2993   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2994   # is not polluted with repeated "-I."
2995   am__isrc=' -I$(srcdir)'
2996   # test to see if srcdir already configured
2997   if test -f $srcdir/config.status; then
2998     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2999   fi
3000 fi
3001
3002 # test whether we have cygpath
3003 if test -z "$CYGPATH_W"; then
3004   if (cygpath --version) >/dev/null 2>/dev/null; then
3005     CYGPATH_W='cygpath -w'
3006   else
3007     CYGPATH_W=echo
3008   fi
3009 fi
3010
3011
3012 # Define the identity of the package.
3013  PACKAGE='gawk'
3014  VERSION='4.0.1'
3015
3016
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE "$PACKAGE"
3019 _ACEOF
3020
3021
3022 cat >>confdefs.h <<_ACEOF
3023 #define VERSION "$VERSION"
3024 _ACEOF
3025
3026 # Some tools Automake needs.
3027
3028 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3029
3030
3031 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3032
3033
3034 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3035
3036
3037 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3038
3039
3040 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3041
3042 # We need awk for the "check" target.  The system "awk" is bad on
3043 # some platforms.
3044 # Always define AMTAR for backward compatibility.
3045
3046 AMTAR=${AMTAR-"${am_missing_run}tar"}
3047
3048 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058 # Check whether --with-whiny-user-strftime was given.
3059 if test "${with_whiny_user_strftime+set}" = set; then :
3060   withval=$with_whiny_user_strftime; if test "$withval" = yes
3061         then
3062
3063 $as_echo "#define USE_INCLUDED_STRFTIME 1" >>confdefs.h
3064
3065         fi
3066
3067 fi
3068
3069 # Check whether --enable-lint was given.
3070 if test "${enable_lint+set}" = set; then :
3071   enableval=$enable_lint; if test "$enableval" = no
3072         then
3073
3074 $as_echo "#define NO_LINT 1" >>confdefs.h
3075
3076         fi
3077
3078 fi
3079
3080
3081 DEPDIR="${am__leading_dot}deps"
3082
3083 ac_config_commands="$ac_config_commands depfiles"
3084
3085
3086 am_make=${MAKE-make}
3087 cat > confinc << 'END'
3088 am__doit:
3089         @echo this is the am__doit target
3090 .PHONY: am__doit
3091 END
3092 # If we don't find an include directive, just comment out the code.
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3094 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3095 am__include="#"
3096 am__quote=
3097 _am_result=none
3098 # First try GNU make style include.
3099 echo "include confinc" > confmf
3100 # Ignore all kinds of additional output from `make'.
3101 case `$am_make -s -f confmf 2> /dev/null` in #(
3102 *the\ am__doit\ target*)
3103   am__include=include
3104   am__quote=
3105   _am_result=GNU
3106   ;;
3107 esac
3108 # Now try BSD make style include.
3109 if test "$am__include" = "#"; then
3110    echo '.include "confinc"' > confmf
3111    case `$am_make -s -f confmf 2> /dev/null` in #(
3112    *the\ am__doit\ target*)
3113      am__include=.include
3114      am__quote="\""
3115      _am_result=BSD
3116      ;;
3117    esac
3118 fi
3119
3120
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3122 $as_echo "$_am_result" >&6; }
3123 rm -f confinc confmf
3124
3125 # Check whether --enable-dependency-tracking was given.
3126 if test "${enable_dependency_tracking+set}" = set; then :
3127   enableval=$enable_dependency_tracking;
3128 fi
3129
3130 if test "x$enable_dependency_tracking" != xno; then
3131   am_depcomp="$ac_aux_dir/depcomp"
3132   AMDEPBACKSLASH='\'
3133 fi
3134  if test "x$enable_dependency_tracking" != xno; then
3135   AMDEP_TRUE=
3136   AMDEP_FALSE='#'
3137 else
3138   AMDEP_TRUE='#'
3139   AMDEP_FALSE=
3140 fi
3141
3142
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 if test -n "$ac_tool_prefix"; then
3149   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_CC+:} false; then :
3154   $as_echo_n "(cached) " >&6
3155 else
3156   if test -n "$CC"; then
3157   ac_cv_prog_CC="$CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164     for ac_exec_ext in '' $ac_executable_extensions; do
3165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168     break 2
3169   fi
3170 done
3171   done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3180 else
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186 fi
3187 if test -z "$ac_cv_prog_CC"; then
3188   ac_ct_CC=$CC
3189   # Extract the first word of "gcc", so it can be a program name with args.
3190 set dummy gcc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   if test -n "$ac_ct_CC"; then
3197   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_ac_ct_CC="gcc"
3207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225   if test "x$ac_ct_CC" = x; then
3226     CC=""
3227   else
3228     case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234     CC=$ac_ct_CC
3235   fi
3236 else
3237   CC="$ac_cv_prog_CC"
3238 fi
3239
3240 if test -z "$CC"; then
3241           if test -n "$ac_tool_prefix"; then
3242     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}cc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247   $as_echo_n "(cached) " >&6
3248 else
3249   if test -n "$CC"; then
3250   ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255   IFS=$as_save_IFS
3256   test -z "$as_dir" && as_dir=.
3257     for ac_exec_ext in '' $ac_executable_extensions; do
3258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259     ac_cv_prog_CC="${ac_tool_prefix}cc"
3260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261     break 2
3262   fi
3263 done
3264   done
3265 IFS=$as_save_IFS
3266
3267 fi
3268 fi
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278
3279   fi
3280 fi
3281 if test -z "$CC"; then
3282   # Extract the first word of "cc", so it can be a program name with args.
3283 set dummy cc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_CC+:} false; then :
3287   $as_echo_n "(cached) " >&6
3288 else
3289   if test -n "$CC"; then
3290   ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292   ac_prog_rejected=no
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298     for ac_exec_ext in '' $ac_executable_extensions; do
3299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3301        ac_prog_rejected=yes
3302        continue
3303      fi
3304     ac_cv_prog_CC="cc"
3305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306     break 2
3307   fi
3308 done
3309   done
3310 IFS=$as_save_IFS
3311
3312 if test $ac_prog_rejected = yes; then
3313   # We found a bogon in the path, so make sure we never use it.
3314   set dummy $ac_cv_prog_CC
3315   shift
3316   if test $# != 0; then
3317     # We chose a different compiler from the bogus one.
3318     # However, it has the same basename, so the bogon will be chosen
3319     # first if we set CC to just the basename; use the full file name.
3320     shift
3321     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3322   fi
3323 fi
3324 fi
3325 fi
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 fi
3337 if test -z "$CC"; then
3338   if test -n "$ac_tool_prefix"; then
3339   for ac_prog in cl.exe
3340   do
3341     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_CC+:} false; then :
3346   $as_echo_n "(cached) " >&6
3347 else
3348   if test -n "$CC"; then
3349   ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354   IFS=$as_save_IFS
3355   test -z "$as_dir" && as_dir=.
3356     for ac_exec_ext in '' $ac_executable_extensions; do
3357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360     break 2
3361   fi
3362 done
3363   done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3372 else
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 fi
3376
3377
3378     test -n "$CC" && break
3379   done
3380 fi
3381 if test -z "$CC"; then
3382   ac_ct_CC=$CC
3383   for ac_prog in cl.exe
3384 do
3385   # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$ac_ct_CC"; then
3393   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400     for ac_exec_ext in '' $ac_executable_extensions; do
3401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402     ac_cv_prog_ac_ct_CC="$ac_prog"
3403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407   done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3416 else
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422   test -n "$ac_ct_CC" && break
3423 done
3424
3425   if test "x$ac_ct_CC" = x; then
3426     CC=""
3427   else
3428     case $cross_compiling:$ac_tool_warned in
3429 yes:)
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432 ac_tool_warned=yes ;;
3433 esac
3434     CC=$ac_ct_CC
3435   fi
3436 fi
3437
3438 fi
3439
3440
3441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "no acceptable C compiler found in \$PATH
3444 See \`config.log' for more details" "$LINENO" 5; }
3445
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3448 set X $ac_compile
3449 ac_compiler=$2
3450 for ac_option in --version -v -V -qversion; do
3451   { { ac_try="$ac_compiler $ac_option >&5"
3452 case "(($ac_try" in
3453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454   *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3459   ac_status=$?
3460   if test -s conftest.err; then
3461     sed '10a\
3462 ... rest of stderr output deleted ...
3463          10q' conftest.err >conftest.er1
3464     cat conftest.er1 >&5
3465   fi
3466   rm -f conftest.er1 conftest.err
3467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468   test $ac_status = 0; }
3469 done
3470
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h.  */
3473
3474 int
3475 main ()
3476 {
3477
3478   ;
3479   return 0;
3480 }
3481 _ACEOF
3482 ac_clean_files_save=$ac_clean_files
3483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3484 # Try to create an executable without -o first, disregard a.out.
3485 # It will help us diagnose broken compilers, and finding out an intuition
3486 # of exeext.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3488 $as_echo_n "checking whether the C compiler works... " >&6; }
3489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3490
3491 # The possible output files:
3492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3493
3494 ac_rmfiles=
3495 for ac_file in $ac_files
3496 do
3497   case $ac_file in
3498     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3500   esac
3501 done
3502 rm -f $ac_rmfiles
3503
3504 if { { ac_try="$ac_link_default"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511   (eval "$ac_link_default") 2>&5
3512   ac_status=$?
3513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514   test $ac_status = 0; }; then :
3515   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3518 # so that the user can short-circuit this test for compilers unknown to
3519 # Autoconf.
3520 for ac_file in $ac_files ''
3521 do
3522   test -f "$ac_file" || continue
3523   case $ac_file in
3524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3525         ;;
3526     [ab].out )
3527         # We found the default executable, but exeext='' is most
3528         # certainly right.
3529         break;;
3530     *.* )
3531         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3532         then :; else
3533            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534         fi
3535         # We set ac_cv_exeext here because the later test for it is not
3536         # safe: cross compilers may not add the suffix if given an `-o'
3537         # argument, so we may need to know it at that point already.
3538         # Even if this section looks crufty: it has the advantage of
3539         # actually working.
3540         break;;
3541     * )
3542         break;;
3543   esac
3544 done
3545 test "$ac_cv_exeext" = no && ac_cv_exeext=
3546
3547 else
3548   ac_file=''
3549 fi
3550 if test -z "$ac_file"; then :
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error 77 "C compiler cannot create executables
3559 See \`config.log' for more details" "$LINENO" 5; }
3560 else
3561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3562 $as_echo "yes" >&6; }
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565 $as_echo_n "checking for C compiler default output file name... " >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3568 ac_exeext=$ac_cv_exeext
3569
3570 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3571 ac_clean_files=$ac_clean_files_save
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3573 $as_echo_n "checking for suffix of executables... " >&6; }
3574 if { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581   (eval "$ac_link") 2>&5
3582   ac_status=$?
3583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584   test $ac_status = 0; }; then :
3585   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3586 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3587 # work properly (i.e., refer to `conftest.exe'), while it won't with
3588 # `rm'.
3589 for ac_file in conftest.exe conftest conftest.*; do
3590   test -f "$ac_file" || continue
3591   case $ac_file in
3592     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3593     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3594           break;;
3595     * ) break;;
3596   esac
3597 done
3598 else
3599   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3602 See \`config.log' for more details" "$LINENO" 5; }
3603 fi
3604 rm -f conftest conftest$ac_cv_exeext
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3606 $as_echo "$ac_cv_exeext" >&6; }
3607
3608 rm -f conftest.$ac_ext
3609 EXEEXT=$ac_cv_exeext
3610 ac_exeext=$EXEEXT
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h.  */
3613 #include <stdio.h>
3614 int
3615 main ()
3616 {
3617 FILE *f = fopen ("conftest.out", "w");
3618  return ferror (f) || fclose (f) != 0;
3619
3620   ;
3621   return 0;
3622 }
3623 _ACEOF
3624 ac_clean_files="$ac_clean_files conftest.out"
3625 # Check that the compiler produces executables we can run.  If not, either
3626 # the compiler is broken, or we cross compile.
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3628 $as_echo_n "checking whether we are cross compiling... " >&6; }
3629 if test "$cross_compiling" != yes; then
3630   { { ac_try="$ac_link"
3631 case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637   (eval "$ac_link") 2>&5
3638   ac_status=$?
3639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640   test $ac_status = 0; }
3641   if { ac_try='./conftest$ac_cv_exeext'
3642   { { case "(($ac_try" in
3643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644   *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648   (eval "$ac_try") 2>&5
3649   ac_status=$?
3650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651   test $ac_status = 0; }; }; then
3652     cross_compiling=no
3653   else
3654     if test "$cross_compiling" = maybe; then
3655         cross_compiling=yes
3656     else
3657         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error $? "cannot run C compiled programs.
3660 If you meant to cross compile, use \`--host'.
3661 See \`config.log' for more details" "$LINENO" 5; }
3662     fi
3663   fi
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3666 $as_echo "$cross_compiling" >&6; }
3667
3668 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3669 ac_clean_files=$ac_clean_files_save
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3671 $as_echo_n "checking for suffix of object files... " >&6; }
3672 if ${ac_cv_objext+:} false; then :
3673   $as_echo_n "(cached) " >&6
3674 else
3675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h.  */
3677
3678 int
3679 main ()
3680 {
3681
3682   ;
3683   return 0;
3684 }
3685 _ACEOF
3686 rm -f conftest.o conftest.obj
3687 if { { ac_try="$ac_compile"
3688 case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694   (eval "$ac_compile") 2>&5
3695   ac_status=$?
3696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697   test $ac_status = 0; }; then :
3698   for ac_file in conftest.o conftest.obj conftest.*; do
3699   test -f "$ac_file" || continue;
3700   case $ac_file in
3701     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3702     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3703        break;;
3704   esac
3705 done
3706 else
3707   $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "cannot compute suffix of object files: cannot compile
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 fi
3715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3718 $as_echo "$ac_cv_objext" >&6; }
3719 OBJEXT=$ac_cv_objext
3720 ac_objext=$OBJEXT
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3723 if ${ac_cv_c_compiler_gnu+:} false; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h.  */
3728
3729 int
3730 main ()
3731 {
3732 #ifndef __GNUC__
3733        choke me
3734 #endif
3735
3736   ;
3737   return 0;
3738 }
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741   ac_compiler_gnu=yes
3742 else
3743   ac_compiler_gnu=no
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3747
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3751 if test $ac_compiler_gnu = yes; then
3752   GCC=yes
3753 else
3754   GCC=
3755 fi
3756 ac_test_CFLAGS=${CFLAGS+set}
3757 ac_save_CFLAGS=$CFLAGS
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3760 if ${ac_cv_prog_cc_g+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   ac_save_c_werror_flag=$ac_c_werror_flag
3764    ac_c_werror_flag=yes
3765    ac_cv_prog_cc_g=no
3766    CFLAGS="-g"
3767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h.  */
3769
3770 int
3771 main ()
3772 {
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779   ac_cv_prog_cc_g=yes
3780 else
3781   CFLAGS=""
3782       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h.  */
3784
3785 int
3786 main ()
3787 {
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794
3795 else
3796   ac_c_werror_flag=$ac_save_c_werror_flag
3797          CFLAGS="-g"
3798          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h.  */
3800
3801 int
3802 main ()
3803 {
3804
3805   ;
3806   return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810   ac_cv_prog_cc_g=yes
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817    ac_c_werror_flag=$ac_save_c_werror_flag
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3820 $as_echo "$ac_cv_prog_cc_g" >&6; }
3821 if test "$ac_test_CFLAGS" = set; then
3822   CFLAGS=$ac_save_CFLAGS
3823 elif test $ac_cv_prog_cc_g = yes; then
3824   if test "$GCC" = yes; then
3825     CFLAGS="-g -O2"
3826   else
3827     CFLAGS="-g"
3828   fi
3829 else
3830   if test "$GCC" = yes; then
3831     CFLAGS="-O2"
3832   else
3833     CFLAGS=
3834   fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3838 if ${ac_cv_prog_cc_c89+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   ac_cv_prog_cc_c89=no
3842 ac_save_CC=$CC
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h.  */
3845 #include <stdarg.h>
3846 #include <stdio.h>
3847 #include <sys/types.h>
3848 #include <sys/stat.h>
3849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3850 struct buf { int x; };
3851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3852 static char *e (p, i)
3853      char **p;
3854      int i;
3855 {
3856   return p[i];
3857 }
3858 static char *f (char * (*g) (char **, int), char **p, ...)
3859 {
3860   char *s;
3861   va_list v;
3862   va_start (v,p);
3863   s = g (p, va_arg (v,int));
3864   va_end (v);
3865   return s;
3866 }
3867
3868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3869    function prototypes and stuff, but not '\xHH' hex character constants.
3870    These don't provoke an error unfortunately, instead are silently treated
3871    as 'x'.  The following induces an error, until -std is added to get
3872    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3873    array size at least.  It's necessary to write '\x00'==0 to get something
3874    that's true only with -std.  */
3875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3876
3877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3878    inside strings and character constants.  */
3879 #define FOO(x) 'x'
3880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3881
3882 int test (int i, double x);
3883 struct s1 {int (*f) (int a);};
3884 struct s2 {int (*f) (double a);};
3885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3886 int argc;
3887 char **argv;
3888 int
3889 main ()
3890 {
3891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3892   ;
3893   return 0;
3894 }
3895 _ACEOF
3896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3897         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3898 do
3899   CC="$ac_save_CC $ac_arg"
3900   if ac_fn_c_try_compile "$LINENO"; then :
3901   ac_cv_prog_cc_c89=$ac_arg
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext
3904   test "x$ac_cv_prog_cc_c89" != "xno" && break
3905 done
3906 rm -f conftest.$ac_ext
3907 CC=$ac_save_CC
3908
3909 fi
3910 # AC_CACHE_VAL
3911 case "x$ac_cv_prog_cc_c89" in
3912   x)
3913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3914 $as_echo "none needed" >&6; } ;;
3915   xno)
3916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3917 $as_echo "unsupported" >&6; } ;;
3918   *)
3919     CC="$CC $ac_cv_prog_cc_c89"
3920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3922 esac
3923 if test "x$ac_cv_prog_cc_c89" != xno; then :
3924
3925 fi
3926
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932
3933 depcc="$CC"   am_compiler_list=
3934
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3936 $as_echo_n "checking dependency style of $depcc... " >&6; }
3937 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3938   $as_echo_n "(cached) " >&6
3939 else
3940   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3941   # We make a subdir and do the tests there.  Otherwise we can end up
3942   # making bogus files that we don't know about and never remove.  For
3943   # instance it was reported that on HP-UX the gcc test will end up
3944   # making a dummy file named `D' -- because `-MD' means `put the output
3945   # in D'.
3946   mkdir conftest.dir
3947   # Copy depcomp to subdir because otherwise we won't find it if we're
3948   # using a relative directory.
3949   cp "$am_depcomp" conftest.dir
3950   cd conftest.dir
3951   # We will build objects and dependencies in a subdirectory because
3952   # it helps to detect inapplicable dependency modes.  For instance
3953   # both Tru64's cc and ICC support -MD to output dependencies as a
3954   # side effect of compilation, but ICC will put the dependencies in
3955   # the current directory while Tru64 will put them in the object
3956   # directory.
3957   mkdir sub
3958
3959   am_cv_CC_dependencies_compiler_type=none
3960   if test "$am_compiler_list" = ""; then
3961      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3962   fi
3963   am__universal=false
3964   case " $depcc " in #(
3965      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3966      esac
3967
3968   for depmode in $am_compiler_list; do
3969     # Setup a source with many dependencies, because some compilers
3970     # like to wrap large dependency lists on column 80 (with \), and
3971     # we should not choose a depcomp mode which is confused by this.
3972     #
3973     # We need to recreate these files for each test, as the compiler may
3974     # overwrite some of them when testing with obscure command lines.
3975     # This happens at least with the AIX C compiler.
3976     : > sub/conftest.c
3977     for i in 1 2 3 4 5 6; do
3978       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3979       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3980       # Solaris 8's {/usr,}/bin/sh.
3981       touch sub/conftst$i.h
3982     done
3983     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3984
3985     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3986     # mode.  It turns out that the SunPro C++ compiler does not properly
3987     # handle `-M -o', and we need to detect this.  Also, some Intel
3988     # versions had trouble with output in subdirs
3989     am__obj=sub/conftest.${OBJEXT-o}
3990     am__minus_obj="-o $am__obj"
3991     case $depmode in
3992     gcc)
3993       # This depmode causes a compiler race in universal mode.
3994       test "$am__universal" = false || continue
3995       ;;
3996     nosideeffect)
3997       # after this tag, mechanisms are not by side-effect, so they'll
3998       # only be used when explicitly requested
3999       if test "x$enable_dependency_tracking" = xyes; then
4000         continue
4001       else
4002         break
4003       fi
4004       ;;
4005     msvisualcpp | msvcmsys)
4006       # This compiler won't grok `-c -o', but also, the minuso test has
4007       # not run yet.  These depmodes are late enough in the game, and
4008       # so weak that their functioning should not be impacted.
4009       am__obj=conftest.${OBJEXT-o}
4010       am__minus_obj=
4011       ;;
4012     none) break ;;
4013     esac
4014     if depmode=$depmode \
4015        source=sub/conftest.c object=$am__obj \
4016        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4017        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4018          >/dev/null 2>conftest.err &&
4019        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4020        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4021        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4022        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4023       # icc doesn't choke on unknown options, it will just issue warnings
4024       # or remarks (even with -Werror).  So we grep stderr for any message
4025       # that says an option was ignored or not supported.
4026       # When given -MP, icc 7.0 and 7.1 complain thusly:
4027       #   icc: Command line warning: ignoring option '-M'; no argument required
4028       # The diagnosis changed in icc 8.0:
4029       #   icc: Command line remark: option '-MP' not supported
4030       if (grep 'ignoring option' conftest.err ||
4031           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4032         am_cv_CC_dependencies_compiler_type=$depmode
4033         break
4034       fi
4035     fi
4036   done
4037
4038   cd ..
4039   rm -rf conftest.dir
4040 else
4041   am_cv_CC_dependencies_compiler_type=none
4042 fi
4043
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4046 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4047 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4048
4049  if
4050   test "x$enable_dependency_tracking" != xno \
4051   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4052   am__fastdepCC_TRUE=
4053   am__fastdepCC_FALSE='#'
4054 else
4055   am__fastdepCC_TRUE='#'
4056   am__fastdepCC_FALSE=
4057 fi
4058
4059
4060
4061 ac_ext=c
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4067 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4068 # On Suns, sometimes $CPP names a directory.
4069 if test -n "$CPP" && test -d "$CPP"; then
4070   CPP=
4071 fi
4072 if test -z "$CPP"; then
4073   if ${ac_cv_prog_CPP+:} false; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076       # Double quotes because CPP needs to be expanded
4077     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4078     do
4079       ac_preproc_ok=false
4080 for ac_c_preproc_warn_flag in '' yes
4081 do
4082   # Use a header file that comes with gcc, so configuring glibc
4083   # with a fresh cross-compiler works.
4084   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085   # <limits.h> exists even on freestanding compilers.
4086   # On the NeXT, cc -E runs the code through the compiler's parser,
4087   # not just through cpp. "Syntax error" is here to catch this case.
4088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090 #ifdef __STDC__
4091 # include <limits.h>
4092 #else
4093 # include <assert.h>
4094 #endif
4095                      Syntax error
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098
4099 else
4100   # Broken: fails on valid input.
4101 continue
4102 fi
4103 rm -f conftest.err conftest.i conftest.$ac_ext
4104
4105   # OK, works on sane cases.  Now check whether nonexistent headers
4106   # can be detected and how.
4107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h.  */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if ac_fn_c_try_cpp "$LINENO"; then :
4112   # Broken: success on invalid input.
4113 continue
4114 else
4115   # Passes both tests.
4116 ac_preproc_ok=:
4117 break
4118 fi
4119 rm -f conftest.err conftest.i conftest.$ac_ext
4120
4121 done
4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123 rm -f conftest.i conftest.err conftest.$ac_ext
4124 if $ac_preproc_ok; then :
4125   break
4126 fi
4127
4128     done
4129     ac_cv_prog_CPP=$CPP
4130
4131 fi
4132   CPP=$ac_cv_prog_CPP
4133 else
4134   ac_cv_prog_CPP=$CPP
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4137 $as_echo "$CPP" >&6; }
4138 ac_preproc_ok=false
4139 for ac_c_preproc_warn_flag in '' yes
4140 do
4141   # Use a header file that comes with gcc, so configuring glibc
4142   # with a fresh cross-compiler works.
4143   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144   # <limits.h> exists even on freestanding compilers.
4145   # On the NeXT, cc -E runs the code through the compiler's parser,
4146   # not just through cpp. "Syntax error" is here to catch this case.
4147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h.  */
4149 #ifdef __STDC__
4150 # include <limits.h>
4151 #else
4152 # include <assert.h>
4153 #endif
4154                      Syntax error
4155 _ACEOF
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4157
4158 else
4159   # Broken: fails on valid input.
4160 continue
4161 fi
4162 rm -f conftest.err conftest.i conftest.$ac_ext
4163
4164   # OK, works on sane cases.  Now check whether nonexistent headers
4165   # can be detected and how.
4166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h.  */
4168 #include <ac_nonexistent.h>
4169 _ACEOF
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171   # Broken: success on invalid input.
4172 continue
4173 else
4174   # Passes both tests.
4175 ac_preproc_ok=:
4176 break
4177 fi
4178 rm -f conftest.err conftest.i conftest.$ac_ext
4179
4180 done
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.i conftest.err conftest.$ac_ext
4183 if $ac_preproc_ok; then :
4184
4185 else
4186   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4188 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4189 See \`config.log' for more details" "$LINENO" 5; }
4190 fi
4191
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4200 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4201 if ${ac_cv_path_GREP+:} false; then :
4202   $as_echo_n "(cached) " >&6
4203 else
4204   if test -z "$GREP"; then
4205   ac_path_GREP_found=false
4206   # Loop through the user's path and test for each of PROGNAME-LIST
4207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212     for ac_prog in grep ggrep; do
4213     for ac_exec_ext in '' $ac_executable_extensions; do
4214       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4215       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4216 # Check for GNU ac_path_GREP and select it if it is found.
4217   # Check for GNU $ac_path_GREP
4218 case `"$ac_path_GREP" --version 2>&1` in
4219 *GNU*)
4220   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4221 *)
4222   ac_count=0
4223   $as_echo_n 0123456789 >"conftest.in"
4224   while :
4225   do
4226     cat "conftest.in" "conftest.in" >"conftest.tmp"
4227     mv "conftest.tmp" "conftest.in"
4228     cp "conftest.in" "conftest.nl"
4229     $as_echo 'GREP' >> "conftest.nl"
4230     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232     as_fn_arith $ac_count + 1 && ac_count=$as_val
4233     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4234       # Best one so far, save it but keep looking for a better one
4235       ac_cv_path_GREP="$ac_path_GREP"
4236       ac_path_GREP_max=$ac_count
4237     fi
4238     # 10*(2^10) chars as input seems more than enough
4239     test $ac_count -gt 10 && break
4240   done
4241   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 esac
4243
4244       $ac_path_GREP_found && break 3
4245     done
4246   done
4247   done
4248 IFS=$as_save_IFS
4249   if test -z "$ac_cv_path_GREP"; then
4250     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251   fi
4252 else
4253   ac_cv_path_GREP=$GREP
4254 fi
4255
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4258 $as_echo "$ac_cv_path_GREP" >&6; }
4259  GREP="$ac_cv_path_GREP"
4260
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4263 $as_echo_n "checking for egrep... " >&6; }
4264 if ${ac_cv_path_EGREP+:} false; then :
4265   $as_echo_n "(cached) " >&6
4266 else
4267   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4268    then ac_cv_path_EGREP="$GREP -E"
4269    else
4270      if test -z "$EGREP"; then
4271   ac_path_EGREP_found=false
4272   # Loop through the user's path and test for each of PROGNAME-LIST
4273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278     for ac_prog in egrep; do
4279     for ac_exec_ext in '' $ac_executable_extensions; do
4280       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4281       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4282 # Check for GNU ac_path_EGREP and select it if it is found.
4283   # Check for GNU $ac_path_EGREP
4284 case `"$ac_path_EGREP" --version 2>&1` in
4285 *GNU*)
4286   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4287 *)
4288   ac_count=0
4289   $as_echo_n 0123456789 >"conftest.in"
4290   while :
4291   do
4292     cat "conftest.in" "conftest.in" >"conftest.tmp"
4293     mv "conftest.tmp" "conftest.in"
4294     cp "conftest.in" "conftest.nl"
4295     $as_echo 'EGREP' >> "conftest.nl"
4296     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298     as_fn_arith $ac_count + 1 && ac_count=$as_val
4299     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4300       # Best one so far, save it but keep looking for a better one
4301       ac_cv_path_EGREP="$ac_path_EGREP"
4302       ac_path_EGREP_max=$ac_count
4303     fi
4304     # 10*(2^10) chars as input seems more than enough
4305     test $ac_count -gt 10 && break
4306   done
4307   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308 esac
4309
4310       $ac_path_EGREP_found && break 3
4311     done
4312   done
4313   done
4314 IFS=$as_save_IFS
4315   if test -z "$ac_cv_path_EGREP"; then
4316     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317   fi
4318 else
4319   ac_cv_path_EGREP=$EGREP
4320 fi
4321
4322    fi
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4325 $as_echo "$ac_cv_path_EGREP" >&6; }
4326  EGREP="$ac_cv_path_EGREP"
4327
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4330 $as_echo_n "checking for ANSI C header files... " >&6; }
4331 if ${ac_cv_header_stdc+:} false; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h.  */
4336 #include <stdlib.h>
4337 #include <stdarg.h>
4338 #include <string.h>
4339 #include <float.h>
4340
4341 int
4342 main ()
4343 {
4344
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350   ac_cv_header_stdc=yes
4351 else
4352   ac_cv_header_stdc=no
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355
4356 if test $ac_cv_header_stdc = yes; then
4357   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h.  */
4360 #include <string.h>
4361
4362 _ACEOF
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364   $EGREP "memchr" >/dev/null 2>&1; then :
4365
4366 else
4367   ac_cv_header_stdc=no
4368 fi
4369 rm -f conftest*
4370
4371 fi
4372
4373 if test $ac_cv_header_stdc = yes; then
4374   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377 #include <stdlib.h>
4378
4379 _ACEOF
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381   $EGREP "free" >/dev/null 2>&1; then :
4382
4383 else
4384   ac_cv_header_stdc=no
4385 fi
4386 rm -f conftest*
4387
4388 fi
4389
4390 if test $ac_cv_header_stdc = yes; then
4391   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4392   if test "$cross_compiling" = yes; then :
4393   :
4394 else
4395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h.  */
4397 #include <ctype.h>
4398 #include <stdlib.h>
4399 #if ((' ' & 0x0FF) == 0x020)
4400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4402 #else
4403 # define ISLOWER(c) \
4404                    (('a' <= (c) && (c) <= 'i') \
4405                      || ('j' <= (c) && (c) <= 'r') \
4406                      || ('s' <= (c) && (c) <= 'z'))
4407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4408 #endif
4409
4410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4411 int
4412 main ()
4413 {
4414   int i;
4415   for (i = 0; i < 256; i++)
4416     if (XOR (islower (i), ISLOWER (i))
4417         || toupper (i) != TOUPPER (i))
4418       return 2;
4419   return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_c_try_run "$LINENO"; then :
4423
4424 else
4425   ac_cv_header_stdc=no
4426 fi
4427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4428   conftest.$ac_objext conftest.beam conftest.$ac_ext
4429 fi
4430
4431 fi
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4434 $as_echo "$ac_cv_header_stdc" >&6; }
4435 if test $ac_cv_header_stdc = yes; then
4436
4437 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4438
4439 fi
4440
4441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4443                   inttypes.h stdint.h unistd.h
4444 do :
4445   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4447 "
4448 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4449   cat >>confdefs.h <<_ACEOF
4450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4451 _ACEOF
4452
4453 fi
4454
4455 done
4456
4457
4458
4459   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4460 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4461   MINIX=yes
4462 else
4463   MINIX=
4464 fi
4465
4466
4467   if test "$MINIX" = yes; then
4468
4469 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4470
4471
4472 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4473
4474
4475 $as_echo "#define _MINIX 1" >>confdefs.h
4476
4477   fi
4478
4479
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4481 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4482 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4483   $as_echo_n "(cached) " >&6
4484 else
4485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h.  */
4487
4488 #         define __EXTENSIONS__ 1
4489           $ac_includes_default
4490 int
4491 main ()
4492 {
4493
4494   ;
4495   return 0;
4496 }
4497 _ACEOF
4498 if ac_fn_c_try_compile "$LINENO"; then :
4499   ac_cv_safe_to_define___extensions__=yes
4500 else
4501   ac_cv_safe_to_define___extensions__=no
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4506 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4507   test $ac_cv_safe_to_define___extensions__ = yes &&
4508     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4509
4510   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4511
4512   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4513
4514   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4515
4516   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4517
4518
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4521 $as_echo_n "checking for egrep... " >&6; }
4522 if ${ac_cv_path_EGREP+:} false; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4526    then ac_cv_path_EGREP="$GREP -E"
4527    else
4528      if test -z "$EGREP"; then
4529   ac_path_EGREP_found=false
4530   # Loop through the user's path and test for each of PROGNAME-LIST
4531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533 do
4534   IFS=$as_save_IFS
4535   test -z "$as_dir" && as_dir=.
4536     for ac_prog in egrep; do
4537     for ac_exec_ext in '' $ac_executable_extensions; do
4538       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4539       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4540 # Check for GNU ac_path_EGREP and select it if it is found.
4541   # Check for GNU $ac_path_EGREP
4542 case `"$ac_path_EGREP" --version 2>&1` in
4543 *GNU*)
4544   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4545 *)
4546   ac_count=0
4547   $as_echo_n 0123456789 >"conftest.in"
4548   while :
4549   do
4550     cat "conftest.in" "conftest.in" >"conftest.tmp"
4551     mv "conftest.tmp" "conftest.in"
4552     cp "conftest.in" "conftest.nl"
4553     $as_echo 'EGREP' >> "conftest.nl"
4554     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556     as_fn_arith $ac_count + 1 && ac_count=$as_val
4557     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4558       # Best one so far, save it but keep looking for a better one
4559       ac_cv_path_EGREP="$ac_path_EGREP"
4560       ac_path_EGREP_max=$ac_count
4561     fi
4562     # 10*(2^10) chars as input seems more than enough
4563     test $ac_count -gt 10 && break
4564   done
4565   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566 esac
4567
4568       $ac_path_EGREP_found && break 3
4569     done
4570   done
4571   done
4572 IFS=$as_save_IFS
4573   if test -z "$ac_cv_path_EGREP"; then
4574     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4575   fi
4576 else
4577   ac_cv_path_EGREP=$EGREP
4578 fi
4579
4580    fi
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4583 $as_echo "$ac_cv_path_EGREP" >&6; }
4584  EGREP="$ac_cv_path_EGREP"
4585
4586
4587 for ac_prog in 'bison -y' byacc
4588 do
4589   # Extract the first word of "$ac_prog", so it can be a program name with args.
4590 set dummy $ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_YACC+:} false; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   if test -n "$YACC"; then
4597   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604     for ac_exec_ext in '' $ac_executable_extensions; do
4605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606     ac_cv_prog_YACC="$ac_prog"
4607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608     break 2
4609   fi
4610 done
4611   done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 YACC=$ac_cv_prog_YACC
4617 if test -n "$YACC"; then
4618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4619 $as_echo "$YACC" >&6; }
4620 else
4621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624
4625
4626   test -n "$YACC" && break
4627 done
4628 test -n "$YACC" || YACC="yacc"
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4631 $as_echo_n "checking whether ln -s works... " >&6; }
4632 LN_S=$as_ln_s
4633 if test "$LN_S" = "ln -s"; then
4634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635 $as_echo "yes" >&6; }
4636 else
4637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4638 $as_echo "no, using $LN_S" >&6; }
4639 fi
4640
4641 ac_ext=c
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CC+:} false; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if test -n "$CC"; then
4655   ac_cv_prog_CC="$CC" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669   done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 CC=$ac_cv_prog_CC
4675 if test -n "$CC"; then
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4677 $as_echo "$CC" >&6; }
4678 else
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683
4684 fi
4685 if test -z "$ac_cv_prog_CC"; then
4686   ac_ct_CC=$CC
4687   # Extract the first word of "gcc", so it can be a program name with args.
4688 set dummy gcc; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   if test -n "$ac_ct_CC"; then
4695   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702     for ac_exec_ext in '' $ac_executable_extensions; do
4703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704     ac_cv_prog_ac_ct_CC="gcc"
4705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707   fi
4708 done
4709   done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717 $as_echo "$ac_ct_CC" >&6; }
4718 else
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723   if test "x$ac_ct_CC" = x; then
4724     CC=""
4725   else
4726     case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732     CC=$ac_ct_CC
4733   fi
4734 else
4735   CC="$ac_cv_prog_CC"
4736 fi
4737
4738 if test -z "$CC"; then
4739           if test -n "$ac_tool_prefix"; then
4740     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}cc; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_CC+:} false; then :
4745   $as_echo_n "(cached) " >&6
4746 else
4747   if test -n "$CC"; then
4748   ac_cv_prog_CC="$CC" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755     for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_prog_CC="${ac_tool_prefix}cc"
4758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762   done
4763 IFS=$as_save_IFS
4764
4765 fi
4766 fi
4767 CC=$ac_cv_prog_CC
4768 if test -n "$CC"; then
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4770 $as_echo "$CC" >&6; }
4771 else
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775
4776
4777   fi
4778 fi
4779 if test -z "$CC"; then
4780   # Extract the first word of "cc", so it can be a program name with args.
4781 set dummy cc; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_CC+:} false; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   if test -n "$CC"; then
4788   ac_cv_prog_CC="$CC" # Let the user override the test.
4789 else
4790   ac_prog_rejected=no
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796     for ac_exec_ext in '' $ac_executable_extensions; do
4797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4799        ac_prog_rejected=yes
4800        continue
4801      fi
4802     ac_cv_prog_CC="cc"
4803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807   done
4808 IFS=$as_save_IFS
4809
4810 if test $ac_prog_rejected = yes; then
4811   # We found a bogon in the path, so make sure we never use it.
4812   set dummy $ac_cv_prog_CC
4813   shift
4814   if test $# != 0; then
4815     # We chose a different compiler from the bogus one.
4816     # However, it has the same basename, so the bogon will be chosen
4817     # first if we set CC to just the basename; use the full file name.
4818     shift
4819     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4820   fi
4821 fi
4822 fi
4823 fi
4824 CC=$ac_cv_prog_CC
4825 if test -n "$CC"; then
4826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 $as_echo "$CC" >&6; }
4828 else
4829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 fi
4832
4833
4834 fi
4835 if test -z "$CC"; then
4836   if test -n "$ac_tool_prefix"; then
4837   for ac_prog in cl.exe
4838   do
4839     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if ${ac_cv_prog_CC+:} false; then :
4844   $as_echo_n "(cached) " >&6
4845 else
4846   if test -n "$CC"; then
4847   ac_cv_prog_CC="$CC" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861   done
4862 IFS=$as_save_IFS
4863
4864 fi
4865 fi
4866 CC=$ac_cv_prog_CC
4867 if test -n "$CC"; then
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4869 $as_echo "$CC" >&6; }
4870 else
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 fi
4874
4875
4876     test -n "$CC" && break
4877   done
4878 fi
4879 if test -z "$CC"; then
4880   ac_ct_CC=$CC
4881   for ac_prog in cl.exe
4882 do
4883   # Extract the first word of "$ac_prog", so it can be a program name with args.
4884 set dummy $ac_prog; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   if test -n "$ac_ct_CC"; then
4891   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896   IFS=$as_save_IFS
4897   test -z "$as_dir" && as_dir=.
4898     for ac_exec_ext in '' $ac_executable_extensions; do
4899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900     ac_cv_prog_ac_ct_CC="$ac_prog"
4901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902     break 2
4903   fi
4904 done
4905   done
4906 IFS=$as_save_IFS
4907
4908 fi
4909 fi
4910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4911 if test -n "$ac_ct_CC"; then
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4913 $as_echo "$ac_ct_CC" >&6; }
4914 else
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4917 fi
4918
4919
4920   test -n "$ac_ct_CC" && break
4921 done
4922
4923   if test "x$ac_ct_CC" = x; then
4924     CC=""
4925   else
4926     case $cross_compiling:$ac_tool_warned in
4927 yes:)
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4930 ac_tool_warned=yes ;;
4931 esac
4932     CC=$ac_ct_CC
4933   fi
4934 fi
4935
4936 fi
4937
4938
4939 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4941 as_fn_error $? "no acceptable C compiler found in \$PATH
4942 See \`config.log' for more details" "$LINENO" 5; }
4943
4944 # Provide some information about the compiler.
4945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4946 set X $ac_compile
4947 ac_compiler=$2
4948 for ac_option in --version -v -V -qversion; do
4949   { { ac_try="$ac_compiler $ac_option >&5"
4950 case "(($ac_try" in
4951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952   *) ac_try_echo=$ac_try;;
4953 esac
4954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4955 $as_echo "$ac_try_echo"; } >&5
4956   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4957   ac_status=$?
4958   if test -s conftest.err; then
4959     sed '10a\
4960 ... rest of stderr output deleted ...
4961          10q' conftest.err >conftest.er1
4962     cat conftest.er1 >&5
4963   fi
4964   rm -f conftest.er1 conftest.err
4965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966   test $ac_status = 0; }
4967 done
4968
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4970 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4971 if ${ac_cv_c_compiler_gnu+:} false; then :
4972   $as_echo_n "(cached) " >&6
4973 else
4974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h.  */
4976
4977 int
4978 main ()
4979 {
4980 #ifndef __GNUC__
4981        choke me
4982 #endif
4983
4984   ;
4985   return 0;
4986 }
4987 _ACEOF
4988 if ac_fn_c_try_compile "$LINENO"; then :
4989   ac_compiler_gnu=yes
4990 else
4991   ac_compiler_gnu=no
4992 fi
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4995
4996 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4998 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4999 if test $ac_compiler_gnu = yes; then
5000   GCC=yes
5001 else
5002   GCC=
5003 fi
5004 ac_test_CFLAGS=${CFLAGS+set}
5005 ac_save_CFLAGS=$CFLAGS
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5007 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5008 if ${ac_cv_prog_cc_g+:} false; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   ac_save_c_werror_flag=$ac_c_werror_flag
5012    ac_c_werror_flag=yes
5013    ac_cv_prog_cc_g=no
5014    CFLAGS="-g"
5015    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h.  */
5017
5018 int
5019 main ()
5020 {
5021
5022   ;
5023   return 0;
5024 }
5025 _ACEOF
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027   ac_cv_prog_cc_g=yes
5028 else
5029   CFLAGS=""
5030       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h.  */
5032
5033 int
5034 main ()
5035 {
5036
5037   ;
5038   return 0;
5039 }
5040 _ACEOF
5041 if ac_fn_c_try_compile "$LINENO"; then :
5042
5043 else
5044   ac_c_werror_flag=$ac_save_c_werror_flag
5045          CFLAGS="-g"
5046          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h.  */
5048
5049 int
5050 main ()
5051 {
5052
5053   ;
5054   return 0;
5055 }
5056 _ACEOF
5057 if ac_fn_c_try_compile "$LINENO"; then :
5058   ac_cv_prog_cc_g=yes
5059 fi
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063 fi
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065    ac_c_werror_flag=$ac_save_c_werror_flag
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5068 $as_echo "$ac_cv_prog_cc_g" >&6; }
5069 if test "$ac_test_CFLAGS" = set; then
5070   CFLAGS=$ac_save_CFLAGS
5071 elif test $ac_cv_prog_cc_g = yes; then
5072   if test "$GCC" = yes; then
5073     CFLAGS="-g -O2"
5074   else
5075     CFLAGS="-g"
5076   fi
5077 else
5078   if test "$GCC" = yes; then
5079     CFLAGS="-O2"
5080   else
5081     CFLAGS=
5082   fi
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5085 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5086 if ${ac_cv_prog_cc_c89+:} false; then :
5087   $as_echo_n "(cached) " >&6
5088 else
5089   ac_cv_prog_cc_c89=no
5090 ac_save_CC=$CC
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h.  */
5093 #include <stdarg.h>
5094 #include <stdio.h>
5095 #include <sys/types.h>
5096 #include <sys/stat.h>
5097 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5098 struct buf { int x; };
5099 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5100 static char *e (p, i)
5101      char **p;
5102      int i;
5103 {
5104   return p[i];
5105 }
5106 static char *f (char * (*g) (char **, int), char **p, ...)
5107 {
5108   char *s;
5109   va_list v;
5110   va_start (v,p);
5111   s = g (p, va_arg (v,int));
5112   va_end (v);
5113   return s;
5114 }
5115
5116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5117    function prototypes and stuff, but not '\xHH' hex character constants.
5118    These don't provoke an error unfortunately, instead are silently treated
5119    as 'x'.  The following induces an error, until -std is added to get
5120    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5121    array size at least.  It's necessary to write '\x00'==0 to get something
5122    that's true only with -std.  */
5123 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5124
5125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5126    inside strings and character constants.  */
5127 #define FOO(x) 'x'
5128 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5129
5130 int test (int i, double x);
5131 struct s1 {int (*f) (int a);};
5132 struct s2 {int (*f) (double a);};
5133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5134 int argc;
5135 char **argv;
5136 int
5137 main ()
5138 {
5139 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5140   ;
5141   return 0;
5142 }
5143 _ACEOF
5144 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5145         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5146 do
5147   CC="$ac_save_CC $ac_arg"
5148   if ac_fn_c_try_compile "$LINENO"; then :
5149   ac_cv_prog_cc_c89=$ac_arg
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext
5152   test "x$ac_cv_prog_cc_c89" != "xno" && break
5153 done
5154 rm -f conftest.$ac_ext
5155 CC=$ac_save_CC
5156
5157 fi
5158 # AC_CACHE_VAL
5159 case "x$ac_cv_prog_cc_c89" in
5160   x)
5161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5162 $as_echo "none needed" >&6; } ;;
5163   xno)
5164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5165 $as_echo "unsupported" >&6; } ;;
5166   *)
5167     CC="$CC $ac_cv_prog_cc_c89"
5168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5169 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5170 esac
5171 if test "x$ac_cv_prog_cc_c89" != xno; then :
5172
5173 fi
5174
5175 ac_ext=c
5176 ac_cpp='$CPP $CPPFLAGS'
5177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180
5181 depcc="$CC"   am_compiler_list=
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5184 $as_echo_n "checking dependency style of $depcc... " >&6; }
5185 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5189   # We make a subdir and do the tests there.  Otherwise we can end up
5190   # making bogus files that we don't know about and never remove.  For
5191   # instance it was reported that on HP-UX the gcc test will end up
5192   # making a dummy file named `D' -- because `-MD' means `put the output
5193   # in D'.
5194   mkdir conftest.dir
5195   # Copy depcomp to subdir because otherwise we won't find it if we're
5196   # using a relative directory.
5197   cp "$am_depcomp" conftest.dir
5198   cd conftest.dir
5199   # We will build objects and dependencies in a subdirectory because
5200   # it helps to detect inapplicable dependency modes.  For instance
5201   # both Tru64's cc and ICC support -MD to output dependencies as a
5202   # side effect of compilation, but ICC will put the dependencies in
5203   # the current directory while Tru64 will put them in the object
5204   # directory.
5205   mkdir sub
5206
5207   am_cv_CC_dependencies_compiler_type=none
5208   if test "$am_compiler_list" = ""; then
5209      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5210   fi
5211   am__universal=false
5212   case " $depcc " in #(
5213      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5214      esac
5215
5216   for depmode in $am_compiler_list; do
5217     # Setup a source with many dependencies, because some compilers
5218     # like to wrap large dependency lists on column 80 (with \), and
5219     # we should not choose a depcomp mode which is confused by this.
5220     #
5221     # We need to recreate these files for each test, as the compiler may
5222     # overwrite some of them when testing with obscure command lines.
5223     # This happens at least with the AIX C compiler.
5224     : > sub/conftest.c
5225     for i in 1 2 3 4 5 6; do
5226       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5227       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5228       # Solaris 8's {/usr,}/bin/sh.
5229       touch sub/conftst$i.h
5230     done
5231     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5232
5233     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5234     # mode.  It turns out that the SunPro C++ compiler does not properly
5235     # handle `-M -o', and we need to detect this.  Also, some Intel
5236     # versions had trouble with output in subdirs
5237     am__obj=sub/conftest.${OBJEXT-o}
5238     am__minus_obj="-o $am__obj"
5239     case $depmode in
5240     gcc)
5241       # This depmode causes a compiler race in universal mode.
5242       test "$am__universal" = false || continue
5243       ;;
5244     nosideeffect)
5245       # after this tag, mechanisms are not by side-effect, so they'll
5246       # only be used when explicitly requested
5247       if test "x$enable_dependency_tracking" = xyes; then
5248         continue
5249       else
5250         break
5251       fi
5252       ;;
5253     msvisualcpp | msvcmsys)
5254       # This compiler won't grok `-c -o', but also, the minuso test has
5255       # not run yet.  These depmodes are late enough in the game, and
5256       # so weak that their functioning should not be impacted.
5257       am__obj=conftest.${OBJEXT-o}
5258       am__minus_obj=
5259       ;;
5260     none) break ;;
5261     esac
5262     if depmode=$depmode \
5263        source=sub/conftest.c object=$am__obj \
5264        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5265        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5266          >/dev/null 2>conftest.err &&
5267        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5268        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5269        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5270        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5271       # icc doesn't choke on unknown options, it will just issue warnings
5272       # or remarks (even with -Werror).  So we grep stderr for any message
5273       # that says an option was ignored or not supported.
5274       # When given -MP, icc 7.0 and 7.1 complain thusly:
5275       #   icc: Command line warning: ignoring option '-M'; no argument required
5276       # The diagnosis changed in icc 8.0:
5277       #   icc: Command line remark: option '-MP' not supported
5278       if (grep 'ignoring option' conftest.err ||
5279           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5280         am_cv_CC_dependencies_compiler_type=$depmode
5281         break
5282       fi
5283     fi
5284   done
5285
5286   cd ..
5287   rm -rf conftest.dir
5288 else
5289   am_cv_CC_dependencies_compiler_type=none
5290 fi
5291
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5294 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5296
5297  if
5298   test "x$enable_dependency_tracking" != xno \
5299   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5300   am__fastdepCC_TRUE=
5301   am__fastdepCC_FALSE='#'
5302 else
5303   am__fastdepCC_TRUE='#'
5304   am__fastdepCC_FALSE=
5305 fi
5306
5307
5308 ac_ext=c
5309 ac_cpp='$CPP $CPPFLAGS'
5310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5314 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5315 # On Suns, sometimes $CPP names a directory.
5316 if test -n "$CPP" && test -d "$CPP"; then
5317   CPP=
5318 fi
5319 if test -z "$CPP"; then
5320   if ${ac_cv_prog_CPP+:} false; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323       # Double quotes because CPP needs to be expanded
5324     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5325     do
5326       ac_preproc_ok=false
5327 for ac_c_preproc_warn_flag in '' yes
5328 do
5329   # Use a header file that comes with gcc, so configuring glibc
5330   # with a fresh cross-compiler works.
5331   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5332   # <limits.h> exists even on freestanding compilers.
5333   # On the NeXT, cc -E runs the code through the compiler's parser,
5334   # not just through cpp. "Syntax error" is here to catch this case.
5335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h.  */
5337 #ifdef __STDC__
5338 # include <limits.h>
5339 #else
5340 # include <assert.h>
5341 #endif
5342                      Syntax error
5343 _ACEOF
5344 if ac_fn_c_try_cpp "$LINENO"; then :
5345
5346 else
5347   # Broken: fails on valid input.
5348 continue
5349 fi
5350 rm -f conftest.err conftest.i conftest.$ac_ext
5351
5352   # OK, works on sane cases.  Now check whether nonexistent headers
5353   # can be detected and how.
5354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h.  */
5356 #include <ac_nonexistent.h>
5357 _ACEOF
5358 if ac_fn_c_try_cpp "$LINENO"; then :
5359   # Broken: success on invalid input.
5360 continue
5361 else
5362   # Passes both tests.
5363 ac_preproc_ok=:
5364 break
5365 fi
5366 rm -f conftest.err conftest.i conftest.$ac_ext
5367
5368 done
5369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5370 rm -f conftest.i conftest.err conftest.$ac_ext
5371 if $ac_preproc_ok; then :
5372   break
5373 fi
5374
5375     done
5376     ac_cv_prog_CPP=$CPP
5377
5378 fi
5379   CPP=$ac_cv_prog_CPP
5380 else
5381   ac_cv_prog_CPP=$CPP
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5384 $as_echo "$CPP" >&6; }
5385 ac_preproc_ok=false
5386 for ac_c_preproc_warn_flag in '' yes
5387 do
5388   # Use a header file that comes with gcc, so configuring glibc
5389   # with a fresh cross-compiler works.
5390   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5391   # <limits.h> exists even on freestanding compilers.
5392   # On the NeXT, cc -E runs the code through the compiler's parser,
5393   # not just through cpp. "Syntax error" is here to catch this case.
5394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h.  */
5396 #ifdef __STDC__
5397 # include <limits.h>
5398 #else
5399 # include <assert.h>
5400 #endif
5401                      Syntax error
5402 _ACEOF
5403 if ac_fn_c_try_cpp "$LINENO"; then :
5404
5405 else
5406   # Broken: fails on valid input.
5407 continue
5408 fi
5409 rm -f conftest.err conftest.i conftest.$ac_ext
5410
5411   # OK, works on sane cases.  Now check whether nonexistent headers
5412   # can be detected and how.
5413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h.  */
5415 #include <ac_nonexistent.h>
5416 _ACEOF
5417 if ac_fn_c_try_cpp "$LINENO"; then :
5418   # Broken: success on invalid input.
5419 continue
5420 else
5421   # Passes both tests.
5422 ac_preproc_ok=:
5423 break
5424 fi
5425 rm -f conftest.err conftest.i conftest.$ac_ext
5426
5427 done
5428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5429 rm -f conftest.i conftest.err conftest.$ac_ext
5430 if $ac_preproc_ok; then :
5431
5432 else
5433   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5435 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5436 See \`config.log' for more details" "$LINENO" 5; }
5437 fi
5438
5439 ac_ext=c
5440 ac_cpp='$CPP $CPPFLAGS'
5441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5444
5445
5446
5447
5448
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5451 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5452 set x ${MAKE-make}
5453 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5454 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   cat >conftest.make <<\_ACEOF
5458 SHELL = /bin/sh
5459 all:
5460         @echo '@@@%%%=$(MAKE)=@@@%%%'
5461 _ACEOF
5462 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5463 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5464   *@@@%%%=?*=@@@%%%*)
5465     eval ac_cv_prog_make_${ac_make}_set=yes;;
5466   *)
5467     eval ac_cv_prog_make_${ac_make}_set=no;;
5468 esac
5469 rm -f conftest.make
5470 fi
5471 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5473 $as_echo "yes" >&6; }
5474   SET_MAKE=
5475 else
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478   SET_MAKE="MAKE=${MAKE-make}"
5479 fi
5480
5481
5482 # This is mainly for my use during testing and development.
5483 # Yes, it's a bit of a hack.
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special development options" >&5
5485 $as_echo_n "checking for special development options... " >&6; }
5486 if test -f $srcdir/.developing
5487 then
5488         # add other debug flags as appropriate, save GAWKDEBUG for emergencies
5489         CFLAGS="$CFLAGS -DARRAYDEBUG -DYYDEBUG"
5490         if grep dbug $srcdir/.developing
5491         then
5492                 CFLAGS="$CFLAGS -DDBUG"
5493                 LIBS="$LIBS dbug/libdbug.a"
5494         fi
5495         # turn on compiler warnings if we're doing development
5496         # enable debugging using macros also
5497         if test "$GCC" = yes
5498         then
5499                 CFLAGS="$CFLAGS -Wall -fno-builtin -g3 -gdwarf-2"
5500         fi
5501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5502 $as_echo "yes" >&6; }
5503 else
5504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5506 fi
5507
5508
5509
5510
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS USS compilation" >&5
5512 $as_echo_n "checking for z/OS USS compilation... " >&6; }
5513 if test "OS/390" = "`uname`"
5514 then
5515   CFLAGS="$CFLAGS -D_ALL_SOURCE -DZOS_USS -DUSE_EBCDIC"
5516   # Must rebuild awkgram.c and command.c from Bison for EBCDIC
5517   rm -f awkgram.c command.c
5518   ac_cv_zos_uss=yes
5519 else
5520   ac_cv_zos_uss=no
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_zos_uss}" >&5
5523 $as_echo "${ac_cv_zos_uss}" >&6; }
5524
5525
5526         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
5527 $as_echo_n "checking for strerror in -lcposix... " >&6; }
5528 if ${ac_cv_lib_cposix_strerror+:} false; then :
5529   $as_echo_n "(cached) " >&6
5530 else
5531   ac_check_lib_save_LIBS=$LIBS
5532 LIBS="-lcposix  $LIBS"
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h.  */
5535
5536 /* Override any GCC internal prototype to avoid an error.
5537    Use char because int might match the return type of a GCC
5538    builtin and then its argument prototype would still apply.  */
5539 #ifdef __cplusplus
5540 extern "C"
5541 #endif
5542 char strerror ();
5543 int
5544 main ()
5545 {
5546 return strerror ();
5547   ;
5548   return 0;
5549 }
5550 _ACEOF
5551 if ac_fn_c_try_link "$LINENO"; then :
5552   ac_cv_lib_cposix_strerror=yes
5553 else
5554   ac_cv_lib_cposix_strerror=no
5555 fi
5556 rm -f core conftest.err conftest.$ac_objext \
5557     conftest$ac_exeext conftest.$ac_ext
5558 LIBS=$ac_check_lib_save_LIBS
5559 fi
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
5561 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5562 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
5563   LIBS="$LIBS -lcposix"
5564 fi
5565
5566
5567
5568 # Check whether --enable-largefile was given.
5569 if test "${enable_largefile+set}" = set; then :
5570   enableval=$enable_largefile;
5571 fi
5572
5573 if test "$enable_largefile" != no; then
5574
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5576 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5577 if ${ac_cv_sys_largefile_CC+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   ac_cv_sys_largefile_CC=no
5581      if test "$GCC" != yes; then
5582        ac_save_CC=$CC
5583        while :; do
5584          # IRIX 6.2 and later do not support large files by default,
5585          # so use the C compiler's -n32 option if that helps.
5586          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h.  */
5588 #include <sys/types.h>
5589  /* Check that off_t can represent 2**63 - 1 correctly.
5590     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5591     since some C++ compilers masquerading as C compilers
5592     incorrectly reject 9223372036854775807.  */
5593 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5594   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5595                        && LARGE_OFF_T % 2147483647 == 1)
5596                       ? 1 : -1];
5597 int
5598 main ()
5599 {
5600
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605          if ac_fn_c_try_compile "$LINENO"; then :
5606   break
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext
5609          CC="$CC -n32"
5610          if ac_fn_c_try_compile "$LINENO"; then :
5611   ac_cv_sys_largefile_CC=' -n32'; break
5612 fi
5613 rm -f core conftest.err conftest.$ac_objext
5614          break
5615        done
5616        CC=$ac_save_CC
5617        rm -f conftest.$ac_ext
5618     fi
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5621 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5622   if test "$ac_cv_sys_largefile_CC" != no; then
5623     CC=$CC$ac_cv_sys_largefile_CC
5624   fi
5625
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5627 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5628 if ${ac_cv_sys_file_offset_bits+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   while :; do
5632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h.  */
5634 #include <sys/types.h>
5635  /* Check that off_t can represent 2**63 - 1 correctly.
5636     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5637     since some C++ compilers masquerading as C compilers
5638     incorrectly reject 9223372036854775807.  */
5639 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5640   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5641                        && LARGE_OFF_T % 2147483647 == 1)
5642                       ? 1 : -1];
5643 int
5644 main ()
5645 {
5646
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 if ac_fn_c_try_compile "$LINENO"; then :
5652   ac_cv_sys_file_offset_bits=no; break
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h.  */
5657 #define _FILE_OFFSET_BITS 64
5658 #include <sys/types.h>
5659  /* Check that off_t can represent 2**63 - 1 correctly.
5660     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5661     since some C++ compilers masquerading as C compilers
5662     incorrectly reject 9223372036854775807.  */
5663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5664   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5665                        && LARGE_OFF_T % 2147483647 == 1)
5666                       ? 1 : -1];
5667 int
5668 main ()
5669 {
5670
5671   ;
5672   return 0;
5673 }
5674 _ACEOF
5675 if ac_fn_c_try_compile "$LINENO"; then :
5676   ac_cv_sys_file_offset_bits=64; break
5677 fi
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679   ac_cv_sys_file_offset_bits=unknown
5680   break
5681 done
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5684 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5685 case $ac_cv_sys_file_offset_bits in #(
5686   no | unknown) ;;
5687   *)
5688 cat >>confdefs.h <<_ACEOF
5689 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5690 _ACEOF
5691 ;;
5692 esac
5693 rm -rf conftest*
5694   if test $ac_cv_sys_file_offset_bits = unknown; then
5695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5696 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5697 if ${ac_cv_sys_large_files+:} false; then :
5698   $as_echo_n "(cached) " >&6
5699 else
5700   while :; do
5701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h.  */
5703 #include <sys/types.h>
5704  /* Check that off_t can represent 2**63 - 1 correctly.
5705     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706     since some C++ compilers masquerading as C compilers
5707     incorrectly reject 9223372036854775807.  */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710                        && LARGE_OFF_T % 2147483647 == 1)
5711                       ? 1 : -1];
5712 int
5713 main ()
5714 {
5715
5716   ;
5717   return 0;
5718 }
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"; then :
5721   ac_cv_sys_large_files=no; break
5722 fi
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h.  */
5726 #define _LARGE_FILES 1
5727 #include <sys/types.h>
5728  /* Check that off_t can represent 2**63 - 1 correctly.
5729     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730     since some C++ compilers masquerading as C compilers
5731     incorrectly reject 9223372036854775807.  */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734                        && LARGE_OFF_T % 2147483647 == 1)
5735                       ? 1 : -1];
5736 int
5737 main ()
5738 {
5739
5740   ;
5741   return 0;
5742 }
5743 _ACEOF
5744 if ac_fn_c_try_compile "$LINENO"; then :
5745   ac_cv_sys_large_files=1; break
5746 fi
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748   ac_cv_sys_large_files=unknown
5749   break
5750 done
5751 fi
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5753 $as_echo "$ac_cv_sys_large_files" >&6; }
5754 case $ac_cv_sys_large_files in #(
5755   no | unknown) ;;
5756   *)
5757 cat >>confdefs.h <<_ACEOF
5758 #define _LARGE_FILES $ac_cv_sys_large_files
5759 _ACEOF
5760 ;;
5761 esac
5762 rm -rf conftest*
5763   fi
5764 fi
5765
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX compilation hacks" >&5
5768 $as_echo_n "checking for AIX compilation hacks... " >&6; }
5769 if ${gawk_cv_aix_hack+:} false; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772
5773 if test -d /lpp
5774 then
5775         CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED=1 -DGAWK_AIX=1"
5776         gawk_cv_aix_hack=yes
5777 else
5778         gawk_cv_aix_hack=no
5779 fi
5780
5781 fi
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_cv_aix_hack}" >&5
5783 $as_echo "${gawk_cv_aix_hack}" >&6; }
5784
5785
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux/Alpha compilation hacks" >&5
5787 $as_echo_n "checking for Linux/Alpha compilation hacks... " >&6; }
5788 if ${gawk_cv_linux_alpha_hack+:} false; then :
5789   $as_echo_n "(cached) " >&6
5790 else
5791
5792 if test "Linux" = "`uname`" && test "alpha" = "`uname -m`"
5793 then
5794         # this isn't necessarily always true,
5795         # the vendor's compiler is also often found
5796         if test "$GCC" = yes
5797         then
5798                 CFLAGS="$CFLAGS -mieee"
5799                 gawk_cv_linux_alpha_hack=yes
5800         else
5801                 gawk_cv_linux_alpha_hack=no
5802         fi
5803 else
5804         gawk_cv_linux_alpha_hack=no
5805 fi
5806
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_cv_linux_alpha_hack}" >&5
5809 $as_echo "${gawk_cv_linux_alpha_hack}" >&6; }
5810
5811
5812 if test "$ISC" = 1      # will be set by test for ISC
5813 then
5814         CFLAGS="$CFLAGS -D_SYSV3"
5815 fi
5816
5817 ac_ext=c
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822
5823
5824 case `(uname) 2> /dev/null` in
5825 *CYGWIN*)
5826         with_libiconv_prefix=no
5827         with_libintl_prefix=no
5828         ;;
5829 *)
5830         ;;
5831 esac
5832
5833
5834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5835 $as_echo_n "checking whether NLS is requested... " >&6; }
5836     # Check whether --enable-nls was given.
5837 if test "${enable_nls+set}" = set; then :
5838   enableval=$enable_nls; USE_NLS=$enableval
5839 else
5840   USE_NLS=yes
5841 fi
5842
5843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5844 $as_echo "$USE_NLS" >&6; }
5845
5846
5847
5848
5849       GETTEXT_MACRO_VERSION=0.18
5850
5851
5852
5853
5854 # Prepare PATH_SEPARATOR.
5855 # The user is always right.
5856 if test "${PATH_SEPARATOR+set}" != set; then
5857   echo "#! /bin/sh" >conf$$.sh
5858   echo  "exit 0"   >>conf$$.sh
5859   chmod +x conf$$.sh
5860   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5861     PATH_SEPARATOR=';'
5862   else
5863     PATH_SEPARATOR=:
5864   fi
5865   rm -f conf$$.sh
5866 fi
5867
5868 # Find out how to test for executable files. Don't use a zero-byte file,
5869 # as systems may use methods other than mode bits to determine executability.
5870 cat >conf$$.file <<_ASEOF
5871 #! /bin/sh
5872 exit 0
5873 _ASEOF
5874 chmod +x conf$$.file
5875 if test -x conf$$.file >/dev/null 2>&1; then
5876   ac_executable_p="test -x"
5877 else
5878   ac_executable_p="test -f"
5879 fi
5880 rm -f conf$$.file
5881
5882 # Extract the first word of "msgfmt", so it can be a program name with args.
5883 set dummy msgfmt; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if ${ac_cv_path_MSGFMT+:} false; then :
5887   $as_echo_n "(cached) " >&6
5888 else
5889   case "$MSGFMT" in
5890   [\\/]* | ?:[\\/]*)
5891     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5892     ;;
5893   *)
5894     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5895     for ac_dir in $PATH; do
5896       IFS="$ac_save_IFS"
5897       test -z "$ac_dir" && ac_dir=.
5898       for ac_exec_ext in '' $ac_executable_extensions; do
5899         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5900           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5901           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5902      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5903             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5904             break 2
5905           fi
5906         fi
5907       done
5908     done
5909     IFS="$ac_save_IFS"
5910   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5911     ;;
5912 esac
5913 fi
5914 MSGFMT="$ac_cv_path_MSGFMT"
5915 if test "$MSGFMT" != ":"; then
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5917 $as_echo "$MSGFMT" >&6; }
5918 else
5919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5924 set dummy gmsgfmt; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_path_GMSGFMT+:} false; then :
5928   $as_echo_n "(cached) " >&6
5929 else
5930   case $GMSGFMT in
5931   [\\/]* | ?:[\\/]*)
5932   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5933   ;;
5934   *)
5935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5951   ;;
5952 esac
5953 fi
5954 GMSGFMT=$ac_cv_path_GMSGFMT
5955 if test -n "$GMSGFMT"; then
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5957 $as_echo "$GMSGFMT" >&6; }
5958 else
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963
5964
5965     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5966     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5967     *) MSGFMT_015=$MSGFMT ;;
5968   esac
5969
5970   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5971     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5972     *) GMSGFMT_015=$GMSGFMT ;;
5973   esac
5974
5975
5976
5977 # Prepare PATH_SEPARATOR.
5978 # The user is always right.
5979 if test "${PATH_SEPARATOR+set}" != set; then
5980   echo "#! /bin/sh" >conf$$.sh
5981   echo  "exit 0"   >>conf$$.sh
5982   chmod +x conf$$.sh
5983   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5984     PATH_SEPARATOR=';'
5985   else
5986     PATH_SEPARATOR=:
5987   fi
5988   rm -f conf$$.sh
5989 fi
5990
5991 # Find out how to test for executable files. Don't use a zero-byte file,
5992 # as systems may use methods other than mode bits to determine executability.
5993 cat >conf$$.file <<_ASEOF
5994 #! /bin/sh
5995 exit 0
5996 _ASEOF
5997 chmod +x conf$$.file
5998 if test -x conf$$.file >/dev/null 2>&1; then
5999   ac_executable_p="test -x"
6000 else
6001   ac_executable_p="test -f"
6002 fi
6003 rm -f conf$$.file
6004
6005 # Extract the first word of "xgettext", so it can be a program name with args.
6006 set dummy xgettext; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_path_XGETTEXT+:} false; then :
6010   $as_echo_n "(cached) " >&6
6011 else
6012   case "$XGETTEXT" in
6013   [\\/]* | ?:[\\/]*)
6014     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6015     ;;
6016   *)
6017     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6018     for ac_dir in $PATH; do
6019       IFS="$ac_save_IFS"
6020       test -z "$ac_dir" && ac_dir=.
6021       for ac_exec_ext in '' $ac_executable_extensions; do
6022         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6023           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6024           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6025      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6026             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6027             break 2
6028           fi
6029         fi
6030       done
6031     done
6032     IFS="$ac_save_IFS"
6033   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6034     ;;
6035 esac
6036 fi
6037 XGETTEXT="$ac_cv_path_XGETTEXT"
6038 if test "$XGETTEXT" != ":"; then
6039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6040 $as_echo "$XGETTEXT" >&6; }
6041 else
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6044 fi
6045
6046     rm -f messages.po
6047
6048     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6049     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6050     *) XGETTEXT_015=$XGETTEXT ;;
6051   esac
6052
6053
6054
6055 # Prepare PATH_SEPARATOR.
6056 # The user is always right.
6057 if test "${PATH_SEPARATOR+set}" != set; then
6058   echo "#! /bin/sh" >conf$$.sh
6059   echo  "exit 0"   >>conf$$.sh
6060   chmod +x conf$$.sh
6061   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6062     PATH_SEPARATOR=';'
6063   else
6064     PATH_SEPARATOR=:
6065   fi
6066   rm -f conf$$.sh
6067 fi
6068
6069 # Find out how to test for executable files. Don't use a zero-byte file,
6070 # as systems may use methods other than mode bits to determine executability.
6071 cat >conf$$.file <<_ASEOF
6072 #! /bin/sh
6073 exit 0
6074 _ASEOF
6075 chmod +x conf$$.file
6076 if test -x conf$$.file >/dev/null 2>&1; then
6077   ac_executable_p="test -x"
6078 else
6079   ac_executable_p="test -f"
6080 fi
6081 rm -f conf$$.file
6082
6083 # Extract the first word of "msgmerge", so it can be a program name with args.
6084 set dummy msgmerge; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if ${ac_cv_path_MSGMERGE+:} false; then :
6088   $as_echo_n "(cached) " >&6
6089 else
6090   case "$MSGMERGE" in
6091   [\\/]* | ?:[\\/]*)
6092     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6093     ;;
6094   *)
6095     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6096     for ac_dir in $PATH; do
6097       IFS="$ac_save_IFS"
6098       test -z "$ac_dir" && ac_dir=.
6099       for ac_exec_ext in '' $ac_executable_extensions; do
6100         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6101           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6102           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6103             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6104             break 2
6105           fi
6106         fi
6107       done
6108     done
6109     IFS="$ac_save_IFS"
6110   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6111     ;;
6112 esac
6113 fi
6114 MSGMERGE="$ac_cv_path_MSGMERGE"
6115 if test "$MSGMERGE" != ":"; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6117 $as_echo "$MSGMERGE" >&6; }
6118 else
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123
6124         test -n "$localedir" || localedir='${datadir}/locale'
6125
6126
6127     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6128
6129
6130   ac_config_commands="$ac_config_commands po-directories"
6131
6132
6133
6134       if test "X$prefix" = "XNONE"; then
6135     acl_final_prefix="$ac_default_prefix"
6136   else
6137     acl_final_prefix="$prefix"
6138   fi
6139   if test "X$exec_prefix" = "XNONE"; then
6140     acl_final_exec_prefix='${prefix}'
6141   else
6142     acl_final_exec_prefix="$exec_prefix"
6143   fi
6144   acl_save_prefix="$prefix"
6145   prefix="$acl_final_prefix"
6146   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6147   prefix="$acl_save_prefix"
6148
6149 # Make sure we can run config.sub.
6150 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6151   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6152
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6154 $as_echo_n "checking build system type... " >&6; }
6155 if ${ac_cv_build+:} false; then :
6156   $as_echo_n "(cached) " >&6
6157 else
6158   ac_build_alias=$build_alias
6159 test "x$ac_build_alias" = x &&
6160   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6161 test "x$ac_build_alias" = x &&
6162   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6163 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6164   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6165
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6168 $as_echo "$ac_cv_build" >&6; }
6169 case $ac_cv_build in
6170 *-*-*) ;;
6171 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6172 esac
6173 build=$ac_cv_build
6174 ac_save_IFS=$IFS; IFS='-'
6175 set x $ac_cv_build
6176 shift
6177 build_cpu=$1
6178 build_vendor=$2
6179 shift; shift
6180 # Remember, the first character of IFS is used to create $*,
6181 # except with old shells:
6182 build_os=$*
6183 IFS=$ac_save_IFS
6184 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6185
6186
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6188 $as_echo_n "checking host system type... " >&6; }
6189 if ${ac_cv_host+:} false; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   if test "x$host_alias" = x; then
6193   ac_cv_host=$ac_cv_build
6194 else
6195   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6196     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6197 fi
6198
6199 fi
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6201 $as_echo "$ac_cv_host" >&6; }
6202 case $ac_cv_host in
6203 *-*-*) ;;
6204 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6205 esac
6206 host=$ac_cv_host
6207 ac_save_IFS=$IFS; IFS='-'
6208 set x $ac_cv_host
6209 shift
6210 host_cpu=$1
6211 host_vendor=$2
6212 shift; shift
6213 # Remember, the first character of IFS is used to create $*,
6214 # except with old shells:
6215 host_os=$*
6216 IFS=$ac_save_IFS
6217 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6218
6219
6220
6221 # Check whether --with-gnu-ld was given.
6222 if test "${with_gnu_ld+set}" = set; then :
6223   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6224 else
6225   with_gnu_ld=no
6226 fi
6227
6228 # Prepare PATH_SEPARATOR.
6229 # The user is always right.
6230 if test "${PATH_SEPARATOR+set}" != set; then
6231   echo "#! /bin/sh" >conf$$.sh
6232   echo  "exit 0"   >>conf$$.sh
6233   chmod +x conf$$.sh
6234   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6235     PATH_SEPARATOR=';'
6236   else
6237     PATH_SEPARATOR=:
6238   fi
6239   rm -f conf$$.sh
6240 fi
6241 ac_prog=ld
6242 if test "$GCC" = yes; then
6243   # Check if gcc -print-prog-name=ld gives a path.
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6245 $as_echo_n "checking for ld used by GCC... " >&6; }
6246   case $host in
6247   *-*-mingw*)
6248     # gcc leaves a trailing carriage return which upsets mingw
6249     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6250   *)
6251     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6252   esac
6253   case $ac_prog in
6254     # Accept absolute paths.
6255     [\\/]* | [A-Za-z]:[\\/]*)
6256       re_direlt='/[^/][^/]*/\.\./'
6257       # Canonicalize the path of ld
6258       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6259       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6260         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6261       done
6262       test -z "$LD" && LD="$ac_prog"
6263       ;;
6264   "")
6265     # If it fails, then pretend we aren't using GCC.
6266     ac_prog=ld
6267     ;;
6268   *)
6269     # If it is relative, then search for the first ld in PATH.
6270     with_gnu_ld=unknown
6271     ;;
6272   esac
6273 elif test "$with_gnu_ld" = yes; then
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6275 $as_echo_n "checking for GNU ld... " >&6; }
6276 else
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6278 $as_echo_n "checking for non-GNU ld... " >&6; }
6279 fi
6280 if ${acl_cv_path_LD+:} false; then :
6281   $as_echo_n "(cached) " >&6
6282 else
6283   if test -z "$LD"; then
6284   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6285   for ac_dir in $PATH; do
6286     test -z "$ac_dir" && ac_dir=.
6287     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6288       acl_cv_path_LD="$ac_dir/$ac_prog"
6289       # Check to see if the program is GNU ld.  I'd rather use --version,
6290       # but apparently some GNU ld's only accept -v.
6291       # Break only if it was the GNU/non-GNU ld that we prefer.
6292       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6293       *GNU* | *'with BFD'*)
6294         test "$with_gnu_ld" != no && break ;;
6295       *)
6296         test "$with_gnu_ld" != yes && break ;;
6297       esac
6298     fi
6299   done
6300   IFS="$ac_save_ifs"
6301 else
6302   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6303 fi
6304 fi
6305
6306 LD="$acl_cv_path_LD"
6307 if test -n "$LD"; then
6308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6309 $as_echo "$LD" >&6; }
6310 else
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6313 fi
6314 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6316 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6317 if ${acl_cv_prog_gnu_ld+:} false; then :
6318   $as_echo_n "(cached) " >&6
6319 else
6320   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6321 case `$LD -v 2>&1 </dev/null` in
6322 *GNU* | *'with BFD'*)
6323   acl_cv_prog_gnu_ld=yes ;;
6324 *)
6325   acl_cv_prog_gnu_ld=no ;;
6326 esac
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6329 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6330 with_gnu_ld=$acl_cv_prog_gnu_ld
6331
6332
6333
6334
6335                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6336 $as_echo_n "checking for shared library run path origin... " >&6; }
6337 if ${acl_cv_rpath+:} false; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340
6341     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6342     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6343     . ./conftest.sh
6344     rm -f ./conftest.sh
6345     acl_cv_rpath=done
6346
6347 fi
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6349 $as_echo "$acl_cv_rpath" >&6; }
6350   wl="$acl_cv_wl"
6351   acl_libext="$acl_cv_libext"
6352   acl_shlibext="$acl_cv_shlibext"
6353   acl_libname_spec="$acl_cv_libname_spec"
6354   acl_library_names_spec="$acl_cv_library_names_spec"
6355   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6356   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6357   acl_hardcode_direct="$acl_cv_hardcode_direct"
6358   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6359     # Check whether --enable-rpath was given.
6360 if test "${enable_rpath+set}" = set; then :
6361   enableval=$enable_rpath; :
6362 else
6363   enable_rpath=yes
6364 fi
6365
6366
6367
6368
6369   acl_libdirstem=lib
6370   acl_libdirstem2=
6371   case "$host_os" in
6372     solaris*)
6373                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6374 $as_echo_n "checking for 64-bit host... " >&6; }
6375 if ${gl_cv_solaris_64bit+:} false; then :
6376   $as_echo_n "(cached) " >&6
6377 else
6378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h.  */
6380
6381 #ifdef _LP64
6382 sixtyfour bits
6383 #endif
6384
6385 _ACEOF
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6388   gl_cv_solaris_64bit=yes
6389 else
6390   gl_cv_solaris_64bit=no
6391 fi
6392 rm -f conftest*
6393
6394
6395 fi
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6397 $as_echo "$gl_cv_solaris_64bit" >&6; }
6398       if test $gl_cv_solaris_64bit = yes; then
6399         acl_libdirstem=lib/64
6400         case "$host_cpu" in
6401           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6402           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6403         esac
6404       fi
6405       ;;
6406     *)
6407       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6408       if test -n "$searchpath"; then
6409         acl_save_IFS="${IFS=    }"; IFS=":"
6410         for searchdir in $searchpath; do
6411           if test -d "$searchdir"; then
6412             case "$searchdir" in
6413               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6414               */../ | */.. )
6415                 # Better ignore directories of this form. They are misleading.
6416                 ;;
6417               *) searchdir=`cd "$searchdir" && pwd`
6418                  case "$searchdir" in
6419                    */lib64 ) acl_libdirstem=lib64 ;;
6420                  esac ;;
6421             esac
6422           fi
6423         done
6424         IFS="$acl_save_IFS"
6425       fi
6426       ;;
6427   esac
6428   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441     use_additional=yes
6442
6443   acl_save_prefix="$prefix"
6444   prefix="$acl_final_prefix"
6445   acl_save_exec_prefix="$exec_prefix"
6446   exec_prefix="$acl_final_exec_prefix"
6447
6448     eval additional_includedir=\"$includedir\"
6449     eval additional_libdir=\"$libdir\"
6450
6451   exec_prefix="$acl_save_exec_prefix"
6452   prefix="$acl_save_prefix"
6453
6454
6455 # Check whether --with-libiconv-prefix was given.
6456 if test "${with_libiconv_prefix+set}" = set; then :
6457   withval=$with_libiconv_prefix;
6458     if test "X$withval" = "Xno"; then
6459       use_additional=no
6460     else
6461       if test "X$withval" = "X"; then
6462
6463   acl_save_prefix="$prefix"
6464   prefix="$acl_final_prefix"
6465   acl_save_exec_prefix="$exec_prefix"
6466   exec_prefix="$acl_final_exec_prefix"
6467
6468           eval additional_includedir=\"$includedir\"
6469           eval additional_libdir=\"$libdir\"
6470
6471   exec_prefix="$acl_save_exec_prefix"
6472   prefix="$acl_save_prefix"
6473
6474       else
6475         additional_includedir="$withval/include"
6476         additional_libdir="$withval/$acl_libdirstem"
6477         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6478            && ! test -d "$withval/$acl_libdirstem"; then
6479           additional_libdir="$withval/$acl_libdirstem2"
6480         fi
6481       fi
6482     fi
6483
6484 fi
6485
6486       LIBICONV=
6487   LTLIBICONV=
6488   INCICONV=
6489   LIBICONV_PREFIX=
6490       HAVE_LIBICONV=
6491   rpathdirs=
6492   ltrpathdirs=
6493   names_already_handled=
6494   names_next_round='iconv '
6495   while test -n "$names_next_round"; do
6496     names_this_round="$names_next_round"
6497     names_next_round=
6498     for name in $names_this_round; do
6499       already_handled=
6500       for n in $names_already_handled; do
6501         if test "$n" = "$name"; then
6502           already_handled=yes
6503           break
6504         fi
6505       done
6506       if test -z "$already_handled"; then
6507         names_already_handled="$names_already_handled $name"
6508                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6509         eval value=\"\$HAVE_LIB$uppername\"
6510         if test -n "$value"; then
6511           if test "$value" = yes; then
6512             eval value=\"\$LIB$uppername\"
6513             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6514             eval value=\"\$LTLIB$uppername\"
6515             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6516           else
6517                                     :
6518           fi
6519         else
6520                               found_dir=
6521           found_la=
6522           found_so=
6523           found_a=
6524           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6525           if test -n "$acl_shlibext"; then
6526             shrext=".$acl_shlibext"             # typically: shrext=.so
6527           else
6528             shrext=
6529           fi
6530           if test $use_additional = yes; then
6531             dir="$additional_libdir"
6532                                     if test -n "$acl_shlibext"; then
6533               if test -f "$dir/$libname$shrext"; then
6534                 found_dir="$dir"
6535                 found_so="$dir/$libname$shrext"
6536               else
6537                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6538                   ver=`(cd "$dir" && \
6539                         for f in "$libname$shrext".*; do echo "$f"; done \
6540                         | sed -e "s,^$libname$shrext\\\\.,," \
6541                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6542                         | sed 1q ) 2>/dev/null`
6543                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6544                     found_dir="$dir"
6545                     found_so="$dir/$libname$shrext.$ver"
6546                   fi
6547                 else
6548                   eval library_names=\"$acl_library_names_spec\"
6549                   for f in $library_names; do
6550                     if test -f "$dir/$f"; then
6551                       found_dir="$dir"
6552                       found_so="$dir/$f"
6553                       break
6554                     fi
6555                   done
6556                 fi
6557               fi
6558             fi
6559                         if test "X$found_dir" = "X"; then
6560               if test -f "$dir/$libname.$acl_libext"; then
6561                 found_dir="$dir"
6562                 found_a="$dir/$libname.$acl_libext"
6563               fi
6564             fi
6565             if test "X$found_dir" != "X"; then
6566               if test -f "$dir/$libname.la"; then
6567                 found_la="$dir/$libname.la"
6568               fi
6569             fi
6570           fi
6571           if test "X$found_dir" = "X"; then
6572             for x in $LDFLAGS $LTLIBICONV; do
6573
6574   acl_save_prefix="$prefix"
6575   prefix="$acl_final_prefix"
6576   acl_save_exec_prefix="$exec_prefix"
6577   exec_prefix="$acl_final_exec_prefix"
6578   eval x=\"$x\"
6579   exec_prefix="$acl_save_exec_prefix"
6580   prefix="$acl_save_prefix"
6581
6582               case "$x" in
6583                 -L*)
6584                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6585                                     if test -n "$acl_shlibext"; then
6586                     if test -f "$dir/$libname$shrext"; then
6587                       found_dir="$dir"
6588                       found_so="$dir/$libname$shrext"
6589                     else
6590                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6591                         ver=`(cd "$dir" && \
6592                               for f in "$libname$shrext".*; do echo "$f"; done \
6593                               | sed -e "s,^$libname$shrext\\\\.,," \
6594                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6595                               | sed 1q ) 2>/dev/null`
6596                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6597                           found_dir="$dir"
6598                           found_so="$dir/$libname$shrext.$ver"
6599                         fi
6600                       else
6601                         eval library_names=\"$acl_library_names_spec\"
6602                         for f in $library_names; do
6603                           if test -f "$dir/$f"; then
6604                             found_dir="$dir"
6605                             found_so="$dir/$f"
6606                             break
6607                           fi
6608                         done
6609                       fi
6610                     fi
6611                   fi
6612                                     if test "X$found_dir" = "X"; then
6613                     if test -f "$dir/$libname.$acl_libext"; then
6614                       found_dir="$dir"
6615                       found_a="$dir/$libname.$acl_libext"
6616                     fi
6617                   fi
6618                   if test "X$found_dir" != "X"; then
6619                     if test -f "$dir/$libname.la"; then
6620                       found_la="$dir/$libname.la"
6621                     fi
6622                   fi
6623                   ;;
6624               esac
6625               if test "X$found_dir" != "X"; then
6626                 break
6627               fi
6628             done
6629           fi
6630           if test "X$found_dir" != "X"; then
6631                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6632             if test "X$found_so" != "X"; then
6633                                                         if test "$enable_rpath" = no \
6634                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6635                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6636                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6637               else
6638                                                                                 haveit=
6639                 for x in $ltrpathdirs; do
6640                   if test "X$x" = "X$found_dir"; then
6641                     haveit=yes
6642                     break
6643                   fi
6644                 done
6645                 if test -z "$haveit"; then
6646                   ltrpathdirs="$ltrpathdirs $found_dir"
6647                 fi
6648                                 if test "$acl_hardcode_direct" = yes; then
6649                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6650                 else
6651                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6652                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6653                                                             haveit=
6654                     for x in $rpathdirs; do
6655                       if test "X$x" = "X$found_dir"; then
6656                         haveit=yes
6657                         break
6658                       fi
6659                     done
6660                     if test -z "$haveit"; then
6661                       rpathdirs="$rpathdirs $found_dir"
6662                     fi
6663                   else
6664                                                                                 haveit=
6665                     for x in $LDFLAGS $LIBICONV; do
6666
6667   acl_save_prefix="$prefix"
6668   prefix="$acl_final_prefix"
6669   acl_save_exec_prefix="$exec_prefix"
6670   exec_prefix="$acl_final_exec_prefix"
6671   eval x=\"$x\"
6672   exec_prefix="$acl_save_exec_prefix"
6673   prefix="$acl_save_prefix"
6674
6675                       if test "X$x" = "X-L$found_dir"; then
6676                         haveit=yes
6677                         break
6678                       fi
6679                     done
6680                     if test -z "$haveit"; then
6681                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6682                     fi
6683                     if test "$acl_hardcode_minus_L" != no; then
6684                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6685                     else
6686                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6687                     fi
6688                   fi
6689                 fi
6690               fi
6691             else
6692               if test "X$found_a" != "X"; then
6693                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6694               else
6695                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6696               fi
6697             fi
6698                         additional_includedir=
6699             case "$found_dir" in
6700               */$acl_libdirstem | */$acl_libdirstem/)
6701                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6702                 if test "$name" = 'iconv'; then
6703                   LIBICONV_PREFIX="$basedir"
6704                 fi
6705                 additional_includedir="$basedir/include"
6706                 ;;
6707               */$acl_libdirstem2 | */$acl_libdirstem2/)
6708                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6709                 if test "$name" = 'iconv'; then
6710                   LIBICONV_PREFIX="$basedir"
6711                 fi
6712                 additional_includedir="$basedir/include"
6713                 ;;
6714             esac
6715             if test "X$additional_includedir" != "X"; then
6716                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6717                 haveit=
6718                 if test "X$additional_includedir" = "X/usr/local/include"; then
6719                   if test -n "$GCC"; then
6720                     case $host_os in
6721                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6722                     esac
6723                   fi
6724                 fi
6725                 if test -z "$haveit"; then
6726                   for x in $CPPFLAGS $INCICONV; do
6727
6728   acl_save_prefix="$prefix"
6729   prefix="$acl_final_prefix"
6730   acl_save_exec_prefix="$exec_prefix"
6731   exec_prefix="$acl_final_exec_prefix"
6732   eval x=\"$x\"
6733   exec_prefix="$acl_save_exec_prefix"
6734   prefix="$acl_save_prefix"
6735
6736                     if test "X$x" = "X-I$additional_includedir"; then
6737                       haveit=yes
6738                       break
6739                     fi
6740                   done
6741                   if test -z "$haveit"; then
6742                     if test -d "$additional_includedir"; then
6743                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6744                     fi
6745                   fi
6746                 fi
6747               fi
6748             fi
6749                         if test -n "$found_la"; then
6750                                                         save_libdir="$libdir"
6751               case "$found_la" in
6752                 */* | *\\*) . "$found_la" ;;
6753                 *) . "./$found_la" ;;
6754               esac
6755               libdir="$save_libdir"
6756                             for dep in $dependency_libs; do
6757                 case "$dep" in
6758                   -L*)
6759                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6760                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6761                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6762                       haveit=
6763                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6764                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6765                         if test -n "$GCC"; then
6766                           case $host_os in
6767                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6768                           esac
6769                         fi
6770                       fi
6771                       if test -z "$haveit"; then
6772                         haveit=
6773                         for x in $LDFLAGS $LIBICONV; do
6774
6775   acl_save_prefix="$prefix"
6776   prefix="$acl_final_prefix"
6777   acl_save_exec_prefix="$exec_prefix"
6778   exec_prefix="$acl_final_exec_prefix"
6779   eval x=\"$x\"
6780   exec_prefix="$acl_save_exec_prefix"
6781   prefix="$acl_save_prefix"
6782
6783                           if test "X$x" = "X-L$additional_libdir"; then
6784                             haveit=yes
6785                             break
6786                           fi
6787                         done
6788                         if test -z "$haveit"; then
6789                           if test -d "$additional_libdir"; then
6790                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6791                           fi
6792                         fi
6793                         haveit=
6794                         for x in $LDFLAGS $LTLIBICONV; do
6795
6796   acl_save_prefix="$prefix"
6797   prefix="$acl_final_prefix"
6798   acl_save_exec_prefix="$exec_prefix"
6799   exec_prefix="$acl_final_exec_prefix"
6800   eval x=\"$x\"
6801   exec_prefix="$acl_save_exec_prefix"
6802   prefix="$acl_save_prefix"
6803
6804                           if test "X$x" = "X-L$additional_libdir"; then
6805                             haveit=yes
6806                             break
6807                           fi
6808                         done
6809                         if test -z "$haveit"; then
6810                           if test -d "$additional_libdir"; then
6811                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6812                           fi
6813                         fi
6814                       fi
6815                     fi
6816                     ;;
6817                   -R*)
6818                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6819                     if test "$enable_rpath" != no; then
6820                                                                   haveit=
6821                       for x in $rpathdirs; do
6822                         if test "X$x" = "X$dir"; then
6823                           haveit=yes
6824                           break
6825                         fi
6826                       done
6827                       if test -z "$haveit"; then
6828                         rpathdirs="$rpathdirs $dir"
6829                       fi
6830                                                                   haveit=
6831                       for x in $ltrpathdirs; do
6832                         if test "X$x" = "X$dir"; then
6833                           haveit=yes
6834                           break
6835                         fi
6836                       done
6837                       if test -z "$haveit"; then
6838                         ltrpathdirs="$ltrpathdirs $dir"
6839                       fi
6840                     fi
6841                     ;;
6842                   -l*)
6843                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6844                     ;;
6845                   *.la)
6846                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6847                     ;;
6848                   *)
6849                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6850                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6851                     ;;
6852                 esac
6853               done
6854             fi
6855           else
6856                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6857             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6858           fi
6859         fi
6860       fi
6861     done
6862   done
6863   if test "X$rpathdirs" != "X"; then
6864     if test -n "$acl_hardcode_libdir_separator"; then
6865                         alldirs=
6866       for found_dir in $rpathdirs; do
6867         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6868       done
6869             acl_save_libdir="$libdir"
6870       libdir="$alldirs"
6871       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6872       libdir="$acl_save_libdir"
6873       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6874     else
6875             for found_dir in $rpathdirs; do
6876         acl_save_libdir="$libdir"
6877         libdir="$found_dir"
6878         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6879         libdir="$acl_save_libdir"
6880         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6881       done
6882     fi
6883   fi
6884   if test "X$ltrpathdirs" != "X"; then
6885             for found_dir in $ltrpathdirs; do
6886       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6887     done
6888   fi
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6921 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6922 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   gt_save_LIBS="$LIBS"
6926      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6927      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h.  */
6929 #include <CoreFoundation/CFPreferences.h>
6930 int
6931 main ()
6932 {
6933 CFPreferencesCopyAppValue(NULL, NULL)
6934   ;
6935   return 0;
6936 }
6937 _ACEOF
6938 if ac_fn_c_try_link "$LINENO"; then :
6939   gt_cv_func_CFPreferencesCopyAppValue=yes
6940 else
6941   gt_cv_func_CFPreferencesCopyAppValue=no
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext \
6944     conftest$ac_exeext conftest.$ac_ext
6945      LIBS="$gt_save_LIBS"
6946 fi
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6948 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6949   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6950
6951 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6952
6953   fi
6954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6955 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6956 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959   gt_save_LIBS="$LIBS"
6960      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6961      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h.  */
6963 #include <CoreFoundation/CFLocale.h>
6964 int
6965 main ()
6966 {
6967 CFLocaleCopyCurrent();
6968   ;
6969   return 0;
6970 }
6971 _ACEOF
6972 if ac_fn_c_try_link "$LINENO"; then :
6973   gt_cv_func_CFLocaleCopyCurrent=yes
6974 else
6975   gt_cv_func_CFLocaleCopyCurrent=no
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext \
6978     conftest$ac_exeext conftest.$ac_ext
6979      LIBS="$gt_save_LIBS"
6980 fi
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6982 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6983   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6984
6985 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6986
6987   fi
6988   INTL_MACOSX_LIBS=
6989   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6990     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6991   fi
6992
6993
6994
6995
6996
6997
6998   LIBINTL=
6999   LTLIBINTL=
7000   POSUB=
7001
7002     case " $gt_needs " in
7003     *" need-formatstring-macros "*) gt_api_version=3 ;;
7004     *" need-ngettext "*) gt_api_version=2 ;;
7005     *) gt_api_version=1 ;;
7006   esac
7007   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7008   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7009
7010     if test "$USE_NLS" = "yes"; then
7011     gt_use_preinstalled_gnugettext=no
7012
7013
7014         if test $gt_api_version -ge 3; then
7015           gt_revision_test_code='
7016 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7017 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7018 #endif
7019 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7020 '
7021         else
7022           gt_revision_test_code=
7023         fi
7024         if test $gt_api_version -ge 2; then
7025           gt_expression_test_code=' + * ngettext ("", "", 0)'
7026         else
7027           gt_expression_test_code=
7028         fi
7029
7030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7031 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7032 if eval \${$gt_func_gnugettext_libc+:} false; then :
7033   $as_echo_n "(cached) " >&6
7034 else
7035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h.  */
7037 #include <libintl.h>
7038 $gt_revision_test_code
7039 extern int _nl_msg_cat_cntr;
7040 extern int *_nl_domain_bindings;
7041 int
7042 main ()
7043 {
7044 bindtextdomain ("", "");
7045 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7046   ;
7047   return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"; then :
7051   eval "$gt_func_gnugettext_libc=yes"
7052 else
7053   eval "$gt_func_gnugettext_libc=no"
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext \
7056     conftest$ac_exeext conftest.$ac_ext
7057 fi
7058 eval ac_res=\$$gt_func_gnugettext_libc
7059                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7060 $as_echo "$ac_res" >&6; }
7061
7062         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7063
7064
7065
7066
7067
7068           am_save_CPPFLAGS="$CPPFLAGS"
7069
7070   for element in $INCICONV; do
7071     haveit=
7072     for x in $CPPFLAGS; do
7073
7074   acl_save_prefix="$prefix"
7075   prefix="$acl_final_prefix"
7076   acl_save_exec_prefix="$exec_prefix"
7077   exec_prefix="$acl_final_exec_prefix"
7078   eval x=\"$x\"
7079   exec_prefix="$acl_save_exec_prefix"
7080   prefix="$acl_save_prefix"
7081
7082       if test "X$x" = "X$element"; then
7083         haveit=yes
7084         break
7085       fi
7086     done
7087     if test -z "$haveit"; then
7088       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7089     fi
7090   done
7091
7092
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7094 $as_echo_n "checking for iconv... " >&6; }
7095 if ${am_cv_func_iconv+:} false; then :
7096   $as_echo_n "(cached) " >&6
7097 else
7098
7099     am_cv_func_iconv="no, consider installing GNU libiconv"
7100     am_cv_lib_iconv=no
7101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h.  */
7103 #include <stdlib.h>
7104 #include <iconv.h>
7105 int
7106 main ()
7107 {
7108 iconv_t cd = iconv_open("","");
7109        iconv(cd,NULL,NULL,NULL,NULL);
7110        iconv_close(cd);
7111   ;
7112   return 0;
7113 }
7114 _ACEOF
7115 if ac_fn_c_try_link "$LINENO"; then :
7116   am_cv_func_iconv=yes
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext \
7119     conftest$ac_exeext conftest.$ac_ext
7120     if test "$am_cv_func_iconv" != yes; then
7121       am_save_LIBS="$LIBS"
7122       LIBS="$LIBS $LIBICONV"
7123       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h.  */
7125 #include <stdlib.h>
7126 #include <iconv.h>
7127 int
7128 main ()
7129 {
7130 iconv_t cd = iconv_open("","");
7131          iconv(cd,NULL,NULL,NULL,NULL);
7132          iconv_close(cd);
7133   ;
7134   return 0;
7135 }
7136 _ACEOF
7137 if ac_fn_c_try_link "$LINENO"; then :
7138   am_cv_lib_iconv=yes
7139         am_cv_func_iconv=yes
7140 fi
7141 rm -f core conftest.err conftest.$ac_objext \
7142     conftest$ac_exeext conftest.$ac_ext
7143       LIBS="$am_save_LIBS"
7144     fi
7145
7146 fi
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7148 $as_echo "$am_cv_func_iconv" >&6; }
7149   if test "$am_cv_func_iconv" = yes; then
7150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7151 $as_echo_n "checking for working iconv... " >&6; }
7152 if ${am_cv_func_iconv_works+:} false; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155
7156             am_save_LIBS="$LIBS"
7157       if test $am_cv_lib_iconv = yes; then
7158         LIBS="$LIBS $LIBICONV"
7159       fi
7160       if test "$cross_compiling" = yes; then :
7161   case "$host_os" in
7162            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7163            *)            am_cv_func_iconv_works="guessing yes" ;;
7164          esac
7165 else
7166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h.  */
7168
7169 #include <iconv.h>
7170 #include <string.h>
7171 int main ()
7172 {
7173   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7174      returns.  */
7175   {
7176     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7177     if (cd_utf8_to_88591 != (iconv_t)(-1))
7178       {
7179         static const char input[] = "\342\202\254"; /* EURO SIGN */
7180         char buf[10];
7181         const char *inptr = input;
7182         size_t inbytesleft = strlen (input);
7183         char *outptr = buf;
7184         size_t outbytesleft = sizeof (buf);
7185         size_t res = iconv (cd_utf8_to_88591,
7186                             (char **) &inptr, &inbytesleft,
7187                             &outptr, &outbytesleft);
7188         if (res == 0)
7189           return 1;
7190       }
7191   }
7192   /* Test against Solaris 10 bug: Failures are not distinguishable from
7193      successful returns.  */
7194   {
7195     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7196     if (cd_ascii_to_88591 != (iconv_t)(-1))
7197       {
7198         static const char input[] = "\263";
7199         char buf[10];
7200         const char *inptr = input;
7201         size_t inbytesleft = strlen (input);
7202         char *outptr = buf;
7203         size_t outbytesleft = sizeof (buf);
7204         size_t res = iconv (cd_ascii_to_88591,
7205                             (char **) &inptr, &inbytesleft,
7206                             &outptr, &outbytesleft);
7207         if (res == 0)
7208           return 1;
7209       }
7210   }
7211 #if 0 /* This bug could be worked around by the caller.  */
7212   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7213   {
7214     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7215     if (cd_88591_to_utf8 != (iconv_t)(-1))
7216       {
7217         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7218         char buf[50];
7219         const char *inptr = input;
7220         size_t inbytesleft = strlen (input);
7221         char *outptr = buf;
7222         size_t outbytesleft = sizeof (buf);
7223         size_t res = iconv (cd_88591_to_utf8,
7224                             (char **) &inptr, &inbytesleft,
7225                             &outptr, &outbytesleft);
7226         if ((int)res > 0)
7227           return 1;
7228       }
7229   }
7230 #endif
7231   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7232      provided.  */
7233   if (/* Try standardized names.  */
7234       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7235       /* Try IRIX, OSF/1 names.  */
7236       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7237       /* Try AIX names.  */
7238       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7239       /* Try HP-UX names.  */
7240       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7241     return 1;
7242   return 0;
7243 }
7244 _ACEOF
7245 if ac_fn_c_try_run "$LINENO"; then :
7246   am_cv_func_iconv_works=yes
7247 else
7248   am_cv_func_iconv_works=no
7249 fi
7250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7251   conftest.$ac_objext conftest.beam conftest.$ac_ext
7252 fi
7253
7254       LIBS="$am_save_LIBS"
7255
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7258 $as_echo "$am_cv_func_iconv_works" >&6; }
7259     case "$am_cv_func_iconv_works" in
7260       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7261       *)   am_func_iconv=yes ;;
7262     esac
7263   else
7264     am_func_iconv=no am_cv_lib_iconv=no
7265   fi
7266   if test "$am_func_iconv" = yes; then
7267
7268 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7269
7270   fi
7271   if test "$am_cv_lib_iconv" = yes; then
7272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7273 $as_echo_n "checking how to link with libiconv... " >&6; }
7274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7275 $as_echo "$LIBICONV" >&6; }
7276   else
7277             CPPFLAGS="$am_save_CPPFLAGS"
7278     LIBICONV=
7279     LTLIBICONV=
7280   fi
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292     use_additional=yes
7293
7294   acl_save_prefix="$prefix"
7295   prefix="$acl_final_prefix"
7296   acl_save_exec_prefix="$exec_prefix"
7297   exec_prefix="$acl_final_exec_prefix"
7298
7299     eval additional_includedir=\"$includedir\"
7300     eval additional_libdir=\"$libdir\"
7301
7302   exec_prefix="$acl_save_exec_prefix"
7303   prefix="$acl_save_prefix"
7304
7305
7306 # Check whether --with-libintl-prefix was given.
7307 if test "${with_libintl_prefix+set}" = set; then :
7308   withval=$with_libintl_prefix;
7309     if test "X$withval" = "Xno"; then
7310       use_additional=no
7311     else
7312       if test "X$withval" = "X"; then
7313
7314   acl_save_prefix="$prefix"
7315   prefix="$acl_final_prefix"
7316   acl_save_exec_prefix="$exec_prefix"
7317   exec_prefix="$acl_final_exec_prefix"
7318
7319           eval additional_includedir=\"$includedir\"
7320           eval additional_libdir=\"$libdir\"
7321
7322   exec_prefix="$acl_save_exec_prefix"
7323   prefix="$acl_save_prefix"
7324
7325       else
7326         additional_includedir="$withval/include"
7327         additional_libdir="$withval/$acl_libdirstem"
7328         if test "$acl_libdirstem2" != "$acl_libdirstem" \
7329            && ! test -d "$withval/$acl_libdirstem"; then
7330           additional_libdir="$withval/$acl_libdirstem2"
7331         fi
7332       fi
7333     fi
7334
7335 fi
7336
7337       LIBINTL=
7338   LTLIBINTL=
7339   INCINTL=
7340   LIBINTL_PREFIX=
7341       HAVE_LIBINTL=
7342   rpathdirs=
7343   ltrpathdirs=
7344   names_already_handled=
7345   names_next_round='intl '
7346   while test -n "$names_next_round"; do
7347     names_this_round="$names_next_round"
7348     names_next_round=
7349     for name in $names_this_round; do
7350       already_handled=
7351       for n in $names_already_handled; do
7352         if test "$n" = "$name"; then
7353           already_handled=yes
7354           break
7355         fi
7356       done
7357       if test -z "$already_handled"; then
7358         names_already_handled="$names_already_handled $name"
7359                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7360         eval value=\"\$HAVE_LIB$uppername\"
7361         if test -n "$value"; then
7362           if test "$value" = yes; then
7363             eval value=\"\$LIB$uppername\"
7364             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7365             eval value=\"\$LTLIB$uppername\"
7366             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7367           else
7368                                     :
7369           fi
7370         else
7371                               found_dir=
7372           found_la=
7373           found_so=
7374           found_a=
7375           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7376           if test -n "$acl_shlibext"; then
7377             shrext=".$acl_shlibext"             # typically: shrext=.so
7378           else
7379             shrext=
7380           fi
7381           if test $use_additional = yes; then
7382             dir="$additional_libdir"
7383                                     if test -n "$acl_shlibext"; then
7384               if test -f "$dir/$libname$shrext"; then
7385                 found_dir="$dir"
7386                 found_so="$dir/$libname$shrext"
7387               else
7388                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7389                   ver=`(cd "$dir" && \
7390                         for f in "$libname$shrext".*; do echo "$f"; done \
7391                         | sed -e "s,^$libname$shrext\\\\.,," \
7392                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7393                         | sed 1q ) 2>/dev/null`
7394                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7395                     found_dir="$dir"
7396                     found_so="$dir/$libname$shrext.$ver"
7397                   fi
7398                 else
7399                   eval library_names=\"$acl_library_names_spec\"
7400                   for f in $library_names; do
7401                     if test -f "$dir/$f"; then
7402                       found_dir="$dir"
7403                       found_so="$dir/$f"
7404                       break
7405                     fi
7406                   done
7407                 fi
7408               fi
7409             fi
7410                         if test "X$found_dir" = "X"; then
7411               if test -f "$dir/$libname.$acl_libext"; then
7412                 found_dir="$dir"
7413                 found_a="$dir/$libname.$acl_libext"
7414               fi
7415             fi
7416             if test "X$found_dir" != "X"; then
7417               if test -f "$dir/$libname.la"; then
7418                 found_la="$dir/$libname.la"
7419               fi
7420             fi
7421           fi
7422           if test "X$found_dir" = "X"; then
7423             for x in $LDFLAGS $LTLIBINTL; do
7424
7425   acl_save_prefix="$prefix"
7426   prefix="$acl_final_prefix"
7427   acl_save_exec_prefix="$exec_prefix"
7428   exec_prefix="$acl_final_exec_prefix"
7429   eval x=\"$x\"
7430   exec_prefix="$acl_save_exec_prefix"
7431   prefix="$acl_save_prefix"
7432
7433               case "$x" in
7434                 -L*)
7435                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7436                                     if test -n "$acl_shlibext"; then
7437                     if test -f "$dir/$libname$shrext"; then
7438                       found_dir="$dir"
7439                       found_so="$dir/$libname$shrext"
7440                     else
7441                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7442                         ver=`(cd "$dir" && \
7443                               for f in "$libname$shrext".*; do echo "$f"; done \
7444                               | sed -e "s,^$libname$shrext\\\\.,," \
7445                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7446                               | sed 1q ) 2>/dev/null`
7447                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7448                           found_dir="$dir"
7449                           found_so="$dir/$libname$shrext.$ver"
7450                         fi
7451                       else
7452                         eval library_names=\"$acl_library_names_spec\"
7453                         for f in $library_names; do
7454                           if test -f "$dir/$f"; then
7455                             found_dir="$dir"
7456                             found_so="$dir/$f"
7457                             break
7458                           fi
7459                         done
7460                       fi
7461                     fi
7462                   fi
7463                                     if test "X$found_dir" = "X"; then
7464                     if test -f "$dir/$libname.$acl_libext"; then
7465                       found_dir="$dir"
7466                       found_a="$dir/$libname.$acl_libext"
7467                     fi
7468                   fi
7469                   if test "X$found_dir" != "X"; then
7470                     if test -f "$dir/$libname.la"; then
7471                       found_la="$dir/$libname.la"
7472                     fi
7473                   fi
7474                   ;;
7475               esac
7476               if test "X$found_dir" != "X"; then
7477                 break
7478               fi
7479             done
7480           fi
7481           if test "X$found_dir" != "X"; then
7482                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7483             if test "X$found_so" != "X"; then
7484                                                         if test "$enable_rpath" = no \
7485                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7486                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7487                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7488               else
7489                                                                                 haveit=
7490                 for x in $ltrpathdirs; do
7491                   if test "X$x" = "X$found_dir"; then
7492                     haveit=yes
7493                     break
7494                   fi
7495                 done
7496                 if test -z "$haveit"; then
7497                   ltrpathdirs="$ltrpathdirs $found_dir"
7498                 fi
7499                                 if test "$acl_hardcode_direct" = yes; then
7500                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7501                 else
7502                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7503                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7504                                                             haveit=
7505                     for x in $rpathdirs; do
7506                       if test "X$x" = "X$found_dir"; then
7507                         haveit=yes
7508                         break
7509                       fi
7510                     done
7511                     if test -z "$haveit"; then
7512                       rpathdirs="$rpathdirs $found_dir"
7513                     fi
7514                   else
7515                                                                                 haveit=
7516                     for x in $LDFLAGS $LIBINTL; do
7517
7518   acl_save_prefix="$prefix"
7519   prefix="$acl_final_prefix"
7520   acl_save_exec_prefix="$exec_prefix"
7521   exec_prefix="$acl_final_exec_prefix"
7522   eval x=\"$x\"
7523   exec_prefix="$acl_save_exec_prefix"
7524   prefix="$acl_save_prefix"
7525
7526                       if test "X$x" = "X-L$found_dir"; then
7527                         haveit=yes
7528                         break
7529                       fi
7530                     done
7531                     if test -z "$haveit"; then
7532                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7533                     fi
7534                     if test "$acl_hardcode_minus_L" != no; then
7535                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7536                     else
7537                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7538                     fi
7539                   fi
7540                 fi
7541               fi
7542             else
7543               if test "X$found_a" != "X"; then
7544                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7545               else
7546                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7547               fi
7548             fi
7549                         additional_includedir=
7550             case "$found_dir" in
7551               */$acl_libdirstem | */$acl_libdirstem/)
7552                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7553                 if test "$name" = 'intl'; then
7554                   LIBINTL_PREFIX="$basedir"
7555                 fi
7556                 additional_includedir="$basedir/include"
7557                 ;;
7558               */$acl_libdirstem2 | */$acl_libdirstem2/)
7559                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7560                 if test "$name" = 'intl'; then
7561                   LIBINTL_PREFIX="$basedir"
7562                 fi
7563                 additional_includedir="$basedir/include"
7564                 ;;
7565             esac
7566             if test "X$additional_includedir" != "X"; then
7567                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7568                 haveit=
7569                 if test "X$additional_includedir" = "X/usr/local/include"; then
7570                   if test -n "$GCC"; then
7571                     case $host_os in
7572                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7573                     esac
7574                   fi
7575                 fi
7576                 if test -z "$haveit"; then
7577                   for x in $CPPFLAGS $INCINTL; do
7578
7579   acl_save_prefix="$prefix"
7580   prefix="$acl_final_prefix"
7581   acl_save_exec_prefix="$exec_prefix"
7582   exec_prefix="$acl_final_exec_prefix"
7583   eval x=\"$x\"
7584   exec_prefix="$acl_save_exec_prefix"
7585   prefix="$acl_save_prefix"
7586
7587                     if test "X$x" = "X-I$additional_includedir"; then
7588                       haveit=yes
7589                       break
7590                     fi
7591                   done
7592                   if test -z "$haveit"; then
7593                     if test -d "$additional_includedir"; then
7594                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7595                     fi
7596                   fi
7597                 fi
7598               fi
7599             fi
7600                         if test -n "$found_la"; then
7601                                                         save_libdir="$libdir"
7602               case "$found_la" in
7603                 */* | *\\*) . "$found_la" ;;
7604                 *) . "./$found_la" ;;
7605               esac
7606               libdir="$save_libdir"
7607                             for dep in $dependency_libs; do
7608                 case "$dep" in
7609                   -L*)
7610                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7611                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7612                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7613                       haveit=
7614                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7615                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7616                         if test -n "$GCC"; then
7617                           case $host_os in
7618                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7619                           esac
7620                         fi
7621                       fi
7622                       if test -z "$haveit"; then
7623                         haveit=
7624                         for x in $LDFLAGS $LIBINTL; do
7625
7626   acl_save_prefix="$prefix"
7627   prefix="$acl_final_prefix"
7628   acl_save_exec_prefix="$exec_prefix"
7629   exec_prefix="$acl_final_exec_prefix"
7630   eval x=\"$x\"
7631   exec_prefix="$acl_save_exec_prefix"
7632   prefix="$acl_save_prefix"
7633
7634                           if test "X$x" = "X-L$additional_libdir"; then
7635                             haveit=yes
7636                             break
7637                           fi
7638                         done
7639                         if test -z "$haveit"; then
7640                           if test -d "$additional_libdir"; then
7641                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7642                           fi
7643                         fi
7644                         haveit=
7645                         for x in $LDFLAGS $LTLIBINTL; do
7646
7647   acl_save_prefix="$prefix"
7648   prefix="$acl_final_prefix"
7649   acl_save_exec_prefix="$exec_prefix"
7650   exec_prefix="$acl_final_exec_prefix"
7651   eval x=\"$x\"
7652   exec_prefix="$acl_save_exec_prefix"
7653   prefix="$acl_save_prefix"
7654
7655                           if test "X$x" = "X-L$additional_libdir"; then
7656                             haveit=yes
7657                             break
7658                           fi
7659                         done
7660                         if test -z "$haveit"; then
7661                           if test -d "$additional_libdir"; then
7662                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7663                           fi
7664                         fi
7665                       fi
7666                     fi
7667                     ;;
7668                   -R*)
7669                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7670                     if test "$enable_rpath" != no; then
7671                                                                   haveit=
7672                       for x in $rpathdirs; do
7673                         if test "X$x" = "X$dir"; then
7674                           haveit=yes
7675                           break
7676                         fi
7677                       done
7678                       if test -z "$haveit"; then
7679                         rpathdirs="$rpathdirs $dir"
7680                       fi
7681                                                                   haveit=
7682                       for x in $ltrpathdirs; do
7683                         if test "X$x" = "X$dir"; then
7684                           haveit=yes
7685                           break
7686                         fi
7687                       done
7688                       if test -z "$haveit"; then
7689                         ltrpathdirs="$ltrpathdirs $dir"
7690                       fi
7691                     fi
7692                     ;;
7693                   -l*)
7694                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7695                     ;;
7696                   *.la)
7697                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7698                     ;;
7699                   *)
7700                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7701                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7702                     ;;
7703                 esac
7704               done
7705             fi
7706           else
7707                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7708             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7709           fi
7710         fi
7711       fi
7712     done
7713   done
7714   if test "X$rpathdirs" != "X"; then
7715     if test -n "$acl_hardcode_libdir_separator"; then
7716                         alldirs=
7717       for found_dir in $rpathdirs; do
7718         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7719       done
7720             acl_save_libdir="$libdir"
7721       libdir="$alldirs"
7722       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7723       libdir="$acl_save_libdir"
7724       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7725     else
7726             for found_dir in $rpathdirs; do
7727         acl_save_libdir="$libdir"
7728         libdir="$found_dir"
7729         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7730         libdir="$acl_save_libdir"
7731         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7732       done
7733     fi
7734   fi
7735   if test "X$ltrpathdirs" != "X"; then
7736             for found_dir in $ltrpathdirs; do
7737       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7738     done
7739   fi
7740
7741
7742
7743
7744
7745
7746           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7747 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7748 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   gt_save_CPPFLAGS="$CPPFLAGS"
7752             CPPFLAGS="$CPPFLAGS $INCINTL"
7753             gt_save_LIBS="$LIBS"
7754             LIBS="$LIBS $LIBINTL"
7755                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h.  */
7757 #include <libintl.h>
7758 $gt_revision_test_code
7759 extern int _nl_msg_cat_cntr;
7760 extern
7761 #ifdef __cplusplus
7762 "C"
7763 #endif
7764 const char *_nl_expand_alias (const char *);
7765 int
7766 main ()
7767 {
7768 bindtextdomain ("", "");
7769 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7770   ;
7771   return 0;
7772 }
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"; then :
7775   eval "$gt_func_gnugettext_libintl=yes"
7776 else
7777   eval "$gt_func_gnugettext_libintl=no"
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext \
7780     conftest$ac_exeext conftest.$ac_ext
7781                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7782               LIBS="$LIBS $LIBICONV"
7783               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h.  */
7785 #include <libintl.h>
7786 $gt_revision_test_code
7787 extern int _nl_msg_cat_cntr;
7788 extern
7789 #ifdef __cplusplus
7790 "C"
7791 #endif
7792 const char *_nl_expand_alias (const char *);
7793 int
7794 main ()
7795 {
7796 bindtextdomain ("", "");
7797 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 if ac_fn_c_try_link "$LINENO"; then :
7803   LIBINTL="$LIBINTL $LIBICONV"
7804                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7805                 eval "$gt_func_gnugettext_libintl=yes"
7806
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext \
7809     conftest$ac_exeext conftest.$ac_ext
7810             fi
7811             CPPFLAGS="$gt_save_CPPFLAGS"
7812             LIBS="$gt_save_LIBS"
7813 fi
7814 eval ac_res=\$$gt_func_gnugettext_libintl
7815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7816 $as_echo "$ac_res" >&6; }
7817         fi
7818
7819                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7820            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7821                 && test "$PACKAGE" != gettext-runtime \
7822                 && test "$PACKAGE" != gettext-tools; }; then
7823           gt_use_preinstalled_gnugettext=yes
7824         else
7825                     LIBINTL=
7826           LTLIBINTL=
7827           INCINTL=
7828         fi
7829
7830
7831
7832     if test -n "$INTL_MACOSX_LIBS"; then
7833       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7834          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7835                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7836         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7837       fi
7838     fi
7839
7840     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7841        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7842
7843 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7844
7845     else
7846       USE_NLS=no
7847     fi
7848   fi
7849
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7851 $as_echo_n "checking whether to use NLS... " >&6; }
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7853 $as_echo "$USE_NLS" >&6; }
7854   if test "$USE_NLS" = "yes"; then
7855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7856 $as_echo_n "checking where the gettext function comes from... " >&6; }
7857     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7858       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7859         gt_source="external libintl"
7860       else
7861         gt_source="libc"
7862       fi
7863     else
7864       gt_source="included intl directory"
7865     fi
7866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7867 $as_echo "$gt_source" >&6; }
7868   fi
7869
7870   if test "$USE_NLS" = "yes"; then
7871
7872     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7873       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7875 $as_echo_n "checking how to link with libintl... " >&6; }
7876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7877 $as_echo "$LIBINTL" >&6; }
7878
7879   for element in $INCINTL; do
7880     haveit=
7881     for x in $CPPFLAGS; do
7882
7883   acl_save_prefix="$prefix"
7884   prefix="$acl_final_prefix"
7885   acl_save_exec_prefix="$exec_prefix"
7886   exec_prefix="$acl_final_exec_prefix"
7887   eval x=\"$x\"
7888   exec_prefix="$acl_save_exec_prefix"
7889   prefix="$acl_save_prefix"
7890
7891       if test "X$x" = "X$element"; then
7892         haveit=yes
7893         break
7894       fi
7895     done
7896     if test -z "$haveit"; then
7897       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7898     fi
7899   done
7900
7901       fi
7902
7903
7904 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7905
7906
7907 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7908
7909     fi
7910
7911         POSUB=po
7912   fi
7913
7914
7915
7916     INTLLIBS="$LIBINTL"
7917
7918
7919
7920
7921
7922
7923
7924
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7926 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7927 if ${am_cv_langinfo_codeset+:} false; then :
7928   $as_echo_n "(cached) " >&6
7929 else
7930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h.  */
7932 #include <langinfo.h>
7933 int
7934 main ()
7935 {
7936 char* cs = nl_langinfo(CODESET); return !cs;
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_link "$LINENO"; then :
7942   am_cv_langinfo_codeset=yes
7943 else
7944   am_cv_langinfo_codeset=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext \
7947     conftest$ac_exeext conftest.$ac_ext
7948
7949 fi
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7951 $as_echo "$am_cv_langinfo_codeset" >&6; }
7952   if test $am_cv_langinfo_codeset = yes; then
7953
7954 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7955
7956   fi
7957
7958
7959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7960 $as_echo_n "checking for LC_MESSAGES... " >&6; }
7961 if ${gt_cv_val_LC_MESSAGES+:} false; then :
7962   $as_echo_n "(cached) " >&6
7963 else
7964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h.  */
7966 #include <locale.h>
7967 int
7968 main ()
7969 {
7970 return LC_MESSAGES
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 if ac_fn_c_try_link "$LINENO"; then :
7976   gt_cv_val_LC_MESSAGES=yes
7977 else
7978   gt_cv_val_LC_MESSAGES=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext \
7981     conftest$ac_exeext conftest.$ac_ext
7982 fi
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
7984 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
7985   if test $gt_cv_val_LC_MESSAGES = yes; then
7986
7987 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7988
7989   fi
7990
7991
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7993 $as_echo_n "checking for ANSI C header files... " >&6; }
7994 if ${ac_cv_header_stdc+:} false; then :
7995   $as_echo_n "(cached) " >&6
7996 else
7997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h.  */
7999 #include <stdlib.h>
8000 #include <stdarg.h>
8001 #include <string.h>
8002 #include <float.h>
8003
8004 int
8005 main ()
8006 {
8007
8008   ;
8009   return 0;
8010 }
8011 _ACEOF
8012 if ac_fn_c_try_compile "$LINENO"; then :
8013   ac_cv_header_stdc=yes
8014 else
8015   ac_cv_header_stdc=no
8016 fi
8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018
8019 if test $ac_cv_header_stdc = yes; then
8020   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h.  */
8023 #include <string.h>
8024
8025 _ACEOF
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027   $EGREP "memchr" >/dev/null 2>&1; then :
8028
8029 else
8030   ac_cv_header_stdc=no
8031 fi
8032 rm -f conftest*
8033
8034 fi
8035
8036 if test $ac_cv_header_stdc = yes; then
8037   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h.  */
8040 #include <stdlib.h>
8041
8042 _ACEOF
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044   $EGREP "free" >/dev/null 2>&1; then :
8045
8046 else
8047   ac_cv_header_stdc=no
8048 fi
8049 rm -f conftest*
8050
8051 fi
8052
8053 if test $ac_cv_header_stdc = yes; then
8054   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8055   if test "$cross_compiling" = yes; then :
8056   :
8057 else
8058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h.  */
8060 #include <ctype.h>
8061 #include <stdlib.h>
8062 #if ((' ' & 0x0FF) == 0x020)
8063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8065 #else
8066 # define ISLOWER(c) \
8067                    (('a' <= (c) && (c) <= 'i') \
8068                      || ('j' <= (c) && (c) <= 'r') \
8069                      || ('s' <= (c) && (c) <= 'z'))
8070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8071 #endif
8072
8073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8074 int
8075 main ()
8076 {
8077   int i;
8078   for (i = 0; i < 256; i++)
8079     if (XOR (islower (i), ISLOWER (i))
8080         || toupper (i) != TOUPPER (i))
8081       return 2;
8082   return 0;
8083 }
8084 _ACEOF
8085 if ac_fn_c_try_run "$LINENO"; then :
8086
8087 else
8088   ac_cv_header_stdc=no
8089 fi
8090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8091   conftest.$ac_objext conftest.beam conftest.$ac_ext
8092 fi
8093
8094 fi
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8097 $as_echo "$ac_cv_header_stdc" >&6; }
8098 if test $ac_cv_header_stdc = yes; then
8099
8100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8101
8102 fi
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8105 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8106 if ${ac_cv_header_sys_wait_h+:} false; then :
8107   $as_echo_n "(cached) " >&6
8108 else
8109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h.  */
8111 #include <sys/types.h>
8112 #include <sys/wait.h>
8113 #ifndef WEXITSTATUS
8114 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8115 #endif
8116 #ifndef WIFEXITED
8117 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8118 #endif
8119
8120 int
8121 main ()
8122 {
8123   int s;
8124   wait (&s);
8125   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8126   ;
8127   return 0;
8128 }
8129 _ACEOF
8130 if ac_fn_c_try_compile "$LINENO"; then :
8131   ac_cv_header_sys_wait_h=yes
8132 else
8133   ac_cv_header_sys_wait_h=no
8134 fi
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 fi
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8138 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8139 if test $ac_cv_header_sys_wait_h = yes; then
8140
8141 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8142
8143 fi
8144
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8146 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8147 if ${ac_cv_header_time+:} false; then :
8148   $as_echo_n "(cached) " >&6
8149 else
8150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h.  */
8152 #include <sys/types.h>
8153 #include <sys/time.h>
8154 #include <time.h>
8155
8156 int
8157 main ()
8158 {
8159 if ((struct tm *) 0)
8160 return 0;
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166   ac_cv_header_time=yes
8167 else
8168   ac_cv_header_time=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 fi
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8173 $as_echo "$ac_cv_header_time" >&6; }
8174 if test $ac_cv_header_time = yes; then
8175
8176 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8177
8178 fi
8179
8180 for ac_header in arpa/inet.h fcntl.h limits.h locale.h libintl.h mcheck.h \
8181         netdb.h netinet/in.h stdarg.h stddef.h string.h \
8182         sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h \
8183         termios.h stropts.h wchar.h wctype.h
8184 do :
8185   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8186 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8187 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8188   cat >>confdefs.h <<_ACEOF
8189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8190 _ACEOF
8191
8192 fi
8193
8194 done
8195
8196
8197 if test "$ac_cv_header_string_h" = yes
8198 then
8199         for ac_header in memory.h
8200 do :
8201   ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
8202 if test "x$ac_cv_header_memory_h" = xyes; then :
8203   cat >>confdefs.h <<_ACEOF
8204 #define HAVE_MEMORY_H 1
8205 _ACEOF
8206
8207 fi
8208
8209 done
8210
8211 else
8212         for ac_header in strings.h
8213 do :
8214   ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
8215 if test "x$ac_cv_header_strings_h" = xyes; then :
8216   cat >>confdefs.h <<_ACEOF
8217 #define HAVE_STRINGS_H 1
8218 _ACEOF
8219
8220 fi
8221
8222 done
8223
8224 fi
8225
8226 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8227 if test "x$ac_cv_type_pid_t" = xyes; then :
8228
8229 else
8230
8231 cat >>confdefs.h <<_ACEOF
8232 #define pid_t int
8233 _ACEOF
8234
8235 fi
8236
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8238 $as_echo_n "checking return type of signal handlers... " >&6; }
8239 if ${ac_cv_type_signal+:} false; then :
8240   $as_echo_n "(cached) " >&6
8241 else
8242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h.  */
8244 #include <sys/types.h>
8245 #include <signal.h>
8246
8247 int
8248 main ()
8249 {
8250 return *(signal (0, 0)) (0) == 1;
8251   ;
8252   return 0;
8253 }
8254 _ACEOF
8255 if ac_fn_c_try_compile "$LINENO"; then :
8256   ac_cv_type_signal=int
8257 else
8258   ac_cv_type_signal=void
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8263 $as_echo "$ac_cv_type_signal" >&6; }
8264
8265 cat >>confdefs.h <<_ACEOF
8266 #define RETSIGTYPE $ac_cv_type_signal
8267 _ACEOF
8268
8269
8270 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8271 if test "x$ac_cv_type_size_t" = xyes; then :
8272
8273 else
8274
8275 cat >>confdefs.h <<_ACEOF
8276 #define size_t unsigned int
8277 _ACEOF
8278
8279 fi
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8282 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8283 if ${ac_cv_type_uid_t+:} false; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h.  */
8288 #include <sys/types.h>
8289
8290 _ACEOF
8291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8292   $EGREP "uid_t" >/dev/null 2>&1; then :
8293   ac_cv_type_uid_t=yes
8294 else
8295   ac_cv_type_uid_t=no
8296 fi
8297 rm -f conftest*
8298
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8301 $as_echo "$ac_cv_type_uid_t" >&6; }
8302 if test $ac_cv_type_uid_t = no; then
8303
8304 $as_echo "#define uid_t int" >>confdefs.h
8305
8306
8307 $as_echo "#define gid_t int" >>confdefs.h
8308
8309 fi
8310
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8312 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8313 if ${ac_cv_type_getgroups+:} false; then :
8314   $as_echo_n "(cached) " >&6
8315 else
8316   if test "$cross_compiling" = yes; then :
8317   ac_cv_type_getgroups=cross
8318 else
8319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h.  */
8321 /* Thanks to Mike Rendell for this test.  */
8322 $ac_includes_default
8323 #define NGID 256
8324 #undef MAX
8325 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8326
8327 int
8328 main ()
8329 {
8330   gid_t gidset[NGID];
8331   int i, n;
8332   union { gid_t gval; long int lval; }  val;
8333
8334   val.lval = -1;
8335   for (i = 0; i < NGID; i++)
8336     gidset[i] = val.gval;
8337   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8338                  gidset);
8339   /* Exit non-zero if getgroups seems to require an array of ints.  This
8340      happens when gid_t is short int but getgroups modifies an array
8341      of ints.  */
8342   return n > 0 && gidset[n] != val.gval;
8343 }
8344 _ACEOF
8345 if ac_fn_c_try_run "$LINENO"; then :
8346   ac_cv_type_getgroups=gid_t
8347 else
8348   ac_cv_type_getgroups=int
8349 fi
8350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8351   conftest.$ac_objext conftest.beam conftest.$ac_ext
8352 fi
8353
8354 if test $ac_cv_type_getgroups = cross; then
8355         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h.  */
8357 #include <unistd.h>
8358
8359 _ACEOF
8360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8361   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8362   ac_cv_type_getgroups=gid_t
8363 else
8364   ac_cv_type_getgroups=int
8365 fi
8366 rm -f conftest*
8367
8368 fi
8369 fi
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8371 $as_echo "$ac_cv_type_getgroups" >&6; }
8372
8373 cat >>confdefs.h <<_ACEOF
8374 #define GETGROUPS_T $ac_cv_type_getgroups
8375 _ACEOF
8376
8377
8378
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8380 $as_echo_n "checking for long long int... " >&6; }
8381 if ${ac_cv_type_long_long_int+:} false; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h.  */
8386 long long int ll = 9223372036854775807ll;
8387             long long int nll = -9223372036854775807LL;
8388             typedef int a[((-9223372036854775807LL < 0
8389                             && 0 < 9223372036854775807ll)
8390                            ? 1 : -1)];
8391             int i = 63;
8392 int
8393 main ()
8394 {
8395 long long int llmax = 9223372036854775807ll;
8396             return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8397                     | (llmax / ll) | (llmax % ll));
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 if ac_fn_c_try_link "$LINENO"; then :
8403   ac_cv_type_long_long_int=yes
8404 else
8405   ac_cv_type_long_long_int=no
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext \
8408     conftest$ac_exeext conftest.$ac_ext
8409 fi
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8411 $as_echo "$ac_cv_type_long_long_int" >&6; }
8412   if test $ac_cv_type_long_long_int = yes; then
8413
8414 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8415
8416   fi
8417
8418
8419
8420   ac_cv_type_long_long=$ac_cv_type_long_long_int
8421   if test $ac_cv_type_long_long = yes; then
8422
8423 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8424
8425   fi
8426
8427
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8429 $as_echo_n "checking for unsigned long long int... " >&6; }
8430 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h.  */
8435 unsigned long long int ull = 18446744073709551615ULL;
8436             typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
8437                            ? 1 : -1)];
8438            int i = 63;
8439 int
8440 main ()
8441 {
8442 unsigned long long int ullmax = 18446744073709551615ull;
8443             return (ull << 63 | ull >> 63 | ull << i | ull >> i
8444                     | ullmax / ull | ullmax % ull);
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 if ac_fn_c_try_link "$LINENO"; then :
8450   ac_cv_type_unsigned_long_long_int=yes
8451 else
8452   ac_cv_type_unsigned_long_long_int=no
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext \
8455     conftest$ac_exeext conftest.$ac_ext
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8458 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8459   if test $ac_cv_type_unsigned_long_long_int = yes; then
8460
8461 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8462
8463   fi
8464
8465
8466
8467   ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
8468   if test $ac_cv_type_unsigned_long_long = yes; then
8469
8470 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
8471
8472   fi
8473
8474
8475   if test "OS/390" = "`uname`"
8476   then
8477       gl_cv_header_inttypes_h=no
8478   else
8479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8480 $as_echo_n "checking for inttypes.h... " >&6; }
8481 if ${gl_cv_header_inttypes_h+:} false; then :
8482   $as_echo_n "(cached) " >&6
8483 else
8484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h.  */
8486 #include <sys/types.h>
8487 #include <inttypes.h>
8488 int
8489 main ()
8490 {
8491 uintmax_t i = (uintmax_t) -1; return !i;
8492   ;
8493   return 0;
8494 }
8495 _ACEOF
8496 if ac_fn_c_try_compile "$LINENO"; then :
8497   gl_cv_header_inttypes_h=yes
8498 else
8499   gl_cv_header_inttypes_h=no
8500 fi
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 fi
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
8504 $as_echo "$gl_cv_header_inttypes_h" >&6; }
8505     if test $gl_cv_header_inttypes_h = yes; then
8506
8507 cat >>confdefs.h <<_ACEOF
8508 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8509 _ACEOF
8510
8511     fi
8512   fi
8513
8514
8515   if test "OS/390" = "`uname`"
8516   then
8517     gl_cv_header_stdint_h=no
8518   else
8519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
8520 $as_echo_n "checking for stdint.h... " >&6; }
8521 if ${gl_cv_header_stdint_h+:} false; then :
8522   $as_echo_n "(cached) " >&6
8523 else
8524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h.  */
8526 #include <sys/types.h>
8527 #include <stdint.h>
8528 int
8529 main ()
8530 {
8531 uintmax_t i = (uintmax_t) -1; return !i;
8532   ;
8533   return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_compile "$LINENO"; then :
8537   gl_cv_header_stdint_h=yes
8538 else
8539   gl_cv_header_stdint_h=no
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 fi
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
8544 $as_echo "$gl_cv_header_stdint_h" >&6; }
8545     if test $gl_cv_header_stdint_h = yes; then
8546
8547 cat >>confdefs.h <<_ACEOF
8548 #define HAVE_STDINT_H_WITH_UINTMAX 1
8549 _ACEOF
8550
8551     fi
8552   fi
8553
8554
8555
8556
8557   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8558
8559     test $ac_cv_type_long_long = yes \
8560       && ac_type='long long' \
8561       || ac_type='long'
8562
8563 cat >>confdefs.h <<_ACEOF
8564 #define intmax_t $ac_type
8565 _ACEOF
8566
8567   else
8568
8569 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8570
8571   fi
8572
8573
8574
8575
8576   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8577
8578     test $ac_cv_type_unsigned_long_long = yes \
8579       && ac_type='unsigned long long' \
8580       || ac_type='unsigned long'
8581
8582 cat >>confdefs.h <<_ACEOF
8583 #define uintmax_t $ac_type
8584 _ACEOF
8585
8586   else
8587
8588 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8589
8590   fi
8591
8592 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8593 if test "x$ac_cv_type_ssize_t" = xyes; then :
8594
8595 else
8596
8597 cat >>confdefs.h <<_ACEOF
8598 #define ssize_t int
8599 _ACEOF
8600
8601 fi
8602
8603 # The cast to long int works around a bug in the HP C Compiler
8604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8606 # This bug is HP SR number 8606223364.
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
8608 $as_echo_n "checking size of unsigned int... " >&6; }
8609 if ${ac_cv_sizeof_unsigned_int+:} false; then :
8610   $as_echo_n "(cached) " >&6
8611 else
8612   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
8613
8614 else
8615   if test "$ac_cv_type_unsigned_int" = yes; then
8616      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8618 as_fn_error 77 "cannot compute sizeof (unsigned int)
8619 See \`config.log' for more details" "$LINENO" 5; }
8620    else
8621      ac_cv_sizeof_unsigned_int=0
8622    fi
8623 fi
8624
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
8627 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
8628
8629
8630
8631 cat >>confdefs.h <<_ACEOF
8632 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
8633 _ACEOF
8634
8635
8636 # The cast to long int works around a bug in the HP C Compiler
8637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8639 # This bug is HP SR number 8606223364.
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8641 $as_echo_n "checking size of unsigned long... " >&6; }
8642 if ${ac_cv_sizeof_unsigned_long+:} false; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
8646
8647 else
8648   if test "$ac_cv_type_unsigned_long" = yes; then
8649      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8651 as_fn_error 77 "cannot compute sizeof (unsigned long)
8652 See \`config.log' for more details" "$LINENO" 5; }
8653    else
8654      ac_cv_sizeof_unsigned_long=0
8655    fi
8656 fi
8657
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8660 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8661
8662
8663
8664 cat >>confdefs.h <<_ACEOF
8665 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8666 _ACEOF
8667
8668
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h.  */
8671 #include <sys/types.h>
8672 int
8673 main ()
8674 {
8675
8676         time_t foo;
8677         foo = 0;
8678
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 if ac_fn_c_try_compile "$LINENO"; then :
8684
8685 $as_echo "#define TIME_T_IN_SYS_TYPES_H 1" >>confdefs.h
8686
8687 fi
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h.  */
8691 #include <wctype.h>
8692 int
8693 main ()
8694 {
8695
8696         wctype_t foo;
8697         foo = 0;
8698
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 if ac_fn_c_try_compile "$LINENO"; then :
8704
8705 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
8706
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h.  */
8711 #include <wctype.h>
8712 int
8713 main ()
8714 {
8715
8716         wint_t foo;
8717         foo = 0;
8718
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_compile "$LINENO"; then :
8724
8725 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8726
8727 fi
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h.  */
8731 #include <sys/types.h>
8732 #include <sys/socket.h>
8733 int
8734 main ()
8735 {
8736
8737         struct sockaddr_storage foo;
8738
8739   ;
8740   return 0;
8741 }
8742 _ACEOF
8743 if ac_fn_c_try_compile "$LINENO"; then :
8744
8745 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8746
8747 fi
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749
8750
8751
8752
8753
8754
8755    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8756 #include <sys/socket.h>
8757 "
8758 if test "x$ac_cv_type_socklen_t" = xyes; then :
8759
8760 else
8761
8762       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
8763 $as_echo_n "checking for socklen_t equivalent... " >&6; }
8764       if ${rsync_cv_socklen_t_equiv+:} false; then :
8765   $as_echo_n "(cached) " >&6
8766 else
8767
8768          # Systems have either "struct sockaddr *" or
8769          # "void *" as the second argument to getpeername
8770          rsync_cv_socklen_t_equiv=
8771          for arg2 in "struct sockaddr" void; do
8772             for t in int size_t unsigned long "unsigned long"; do
8773                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h.  */
8775
8776 #include <sys/types.h>
8777 #include <sys/socket.h>
8778
8779                   int getpeername (int, $arg2 *, $t *);
8780
8781 int
8782 main ()
8783 {
8784
8785                   $t len;
8786                   getpeername(0,0,&len);
8787
8788   ;
8789   return 0;
8790 }
8791 _ACEOF
8792 if ac_fn_c_try_compile "$LINENO"; then :
8793
8794                   rsync_cv_socklen_t_equiv="$t"
8795                   break
8796
8797 fi
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799             done
8800          done
8801
8802          if test "x$rsync_cv_socklen_t_equiv" = x; then
8803                 rsync_cv_socklen_t_equiv=int
8804          fi
8805
8806 fi
8807
8808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_socklen_t_equiv" >&5
8809 $as_echo "$rsync_cv_socklen_t_equiv" >&6; }
8810
8811 cat >>confdefs.h <<_ACEOF
8812 #define socklen_t $rsync_cv_socklen_t_equiv
8813 _ACEOF
8814
8815 fi
8816
8817
8818
8819 for ac_func in vprintf
8820 do :
8821   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
8822 if test "x$ac_cv_func_vprintf" = xyes; then :
8823   cat >>confdefs.h <<_ACEOF
8824 #define HAVE_VPRINTF 1
8825 _ACEOF
8826
8827 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8828 if test "x$ac_cv_func__doprnt" = xyes; then :
8829
8830 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
8831
8832 fi
8833
8834 fi
8835 done
8836
8837
8838
8839
8840
8841   for ac_header in $ac_header_list
8842 do :
8843   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8844 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8845 "
8846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8847   cat >>confdefs.h <<_ACEOF
8848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8849 _ACEOF
8850
8851 fi
8852
8853 done
8854
8855
8856
8857
8858
8859
8860
8861
8862   for ac_func in $ac_func_list
8863 do :
8864   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8865 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8866 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8867   cat >>confdefs.h <<_ACEOF
8868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8869 _ACEOF
8870
8871 fi
8872 done
8873
8874
8875
8876
8877
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
8879 $as_echo_n "checking for working mktime... " >&6; }
8880 if ${ac_cv_func_working_mktime+:} false; then :
8881   $as_echo_n "(cached) " >&6
8882 else
8883   if test "$cross_compiling" = yes; then :
8884   ac_cv_func_working_mktime=no
8885 else
8886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h.  */
8888 /* Test program from Paul Eggert and Tony Leneis.  */
8889 #ifdef TIME_WITH_SYS_TIME
8890 # include <sys/time.h>
8891 # include <time.h>
8892 #else
8893 # ifdef HAVE_SYS_TIME_H
8894 #  include <sys/time.h>
8895 # else
8896 #  include <time.h>
8897 # endif
8898 #endif
8899
8900 #include <limits.h>
8901 #include <stdlib.h>
8902
8903 #ifdef HAVE_UNISTD_H
8904 # include <unistd.h>
8905 #endif
8906
8907 #ifndef HAVE_ALARM
8908 # define alarm(X) /* empty */
8909 #endif
8910
8911 /* Work around redefinition to rpl_putenv by other config tests.  */
8912 #undef putenv
8913
8914 static time_t time_t_max;
8915 static time_t time_t_min;
8916
8917 /* Values we'll use to set the TZ environment variable.  */
8918 static const char *tz_strings[] = {
8919   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8920   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8921 };
8922 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8923
8924 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
8925    Based on a problem report from Andreas Jaeger.  */
8926 static int
8927 spring_forward_gap ()
8928 {
8929   /* glibc (up to about 1998-10-07) failed this test. */
8930   struct tm tm;
8931
8932   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8933      instead of "TZ=America/Vancouver" in order to detect the bug even
8934      on systems that don't support the Olson extension, or don't have the
8935      full zoneinfo tables installed.  */
8936   putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
8937
8938   tm.tm_year = 98;
8939   tm.tm_mon = 3;
8940   tm.tm_mday = 5;
8941   tm.tm_hour = 2;
8942   tm.tm_min = 0;
8943   tm.tm_sec = 0;
8944   tm.tm_isdst = -1;
8945   return mktime (&tm) != (time_t) -1;
8946 }
8947
8948 static int
8949 mktime_test1 (time_t now)
8950 {
8951   struct tm *lt;
8952   return ! (lt = localtime (&now)) || mktime (lt) == now;
8953 }
8954
8955 static int
8956 mktime_test (time_t now)
8957 {
8958   return (mktime_test1 (now)
8959           && mktime_test1 ((time_t) (time_t_max - now))
8960           && mktime_test1 ((time_t) (time_t_min + now)));
8961 }
8962
8963 static int
8964 irix_6_4_bug ()
8965 {
8966   /* Based on code from Ariel Faigon.  */
8967   struct tm tm;
8968   tm.tm_year = 96;
8969   tm.tm_mon = 3;
8970   tm.tm_mday = 0;
8971   tm.tm_hour = 0;
8972   tm.tm_min = 0;
8973   tm.tm_sec = 0;
8974   tm.tm_isdst = -1;
8975   mktime (&tm);
8976   return tm.tm_mon == 2 && tm.tm_mday == 31;
8977 }
8978
8979 static int
8980 bigtime_test (int j)
8981 {
8982   struct tm tm;
8983   time_t now;
8984   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8985   now = mktime (&tm);
8986   if (now != (time_t) -1)
8987     {
8988       struct tm *lt = localtime (&now);
8989       if (! (lt
8990              && lt->tm_year == tm.tm_year
8991              && lt->tm_mon == tm.tm_mon
8992              && lt->tm_mday == tm.tm_mday
8993              && lt->tm_hour == tm.tm_hour
8994              && lt->tm_min == tm.tm_min
8995              && lt->tm_sec == tm.tm_sec
8996              && lt->tm_yday == tm.tm_yday
8997              && lt->tm_wday == tm.tm_wday
8998              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8999                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
9000         return 0;
9001     }
9002   return 1;
9003 }
9004
9005 static int
9006 year_2050_test ()
9007 {
9008   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
9009      ignoring leap seconds.  */
9010   unsigned long int answer = 2527315200UL;
9011
9012   struct tm tm;
9013   time_t t;
9014   tm.tm_year = 2050 - 1900;
9015   tm.tm_mon = 2 - 1;
9016   tm.tm_mday = 1;
9017   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
9018   tm.tm_isdst = -1;
9019
9020   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
9021      instead of "TZ=America/Vancouver" in order to detect the bug even
9022      on systems that don't support the Olson extension, or don't have the
9023      full zoneinfo tables installed.  */
9024   putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
9025
9026   t = mktime (&tm);
9027
9028   /* Check that the result is either a failure, or close enough
9029      to the correct answer that we can assume the discrepancy is
9030      due to leap seconds.  */
9031   return (t == (time_t) -1
9032           || (0 < t && answer - 120 <= t && t <= answer + 120));
9033 }
9034
9035 int
9036 main ()
9037 {
9038   time_t t, delta;
9039   int i, j;
9040
9041   /* This test makes some buggy mktime implementations loop.
9042      Give up after 60 seconds; a mktime slower than that
9043      isn't worth using anyway.  */
9044   alarm (60);
9045
9046   for (;;)
9047     {
9048       t = (time_t_max << 1) + 1;
9049       if (t <= time_t_max)
9050         break;
9051       time_t_max = t;
9052     }
9053   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
9054
9055   delta = time_t_max / 997; /* a suitable prime number */
9056   for (i = 0; i < N_STRINGS; i++)
9057     {
9058       if (tz_strings[i])
9059         putenv ((char*) tz_strings[i]);
9060
9061       for (t = 0; t <= time_t_max - delta; t += delta)
9062         if (! mktime_test (t))
9063           return 1;
9064       if (! (mktime_test ((time_t) 1)
9065              && mktime_test ((time_t) (60 * 60))
9066              && mktime_test ((time_t) (60 * 60 * 24))))
9067         return 1;
9068
9069       for (j = 1; ; j <<= 1)
9070         if (! bigtime_test (j))
9071           return 1;
9072         else if (INT_MAX / 2 < j)
9073           break;
9074       if (! bigtime_test (INT_MAX))
9075         return 1;
9076     }
9077   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
9078 }
9079 _ACEOF
9080 if ac_fn_c_try_run "$LINENO"; then :
9081   ac_cv_func_working_mktime=yes
9082 else
9083   ac_cv_func_working_mktime=no
9084 fi
9085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9086   conftest.$ac_objext conftest.beam conftest.$ac_ext
9087 fi
9088
9089 fi
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
9091 $as_echo "$ac_cv_func_working_mktime" >&6; }
9092 if test $ac_cv_func_working_mktime = no; then
9093   case " $LIBOBJS " in
9094   *" mktime.$ac_objext "* ) ;;
9095   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
9096  ;;
9097 esac
9098
9099 fi
9100
9101 case "$ac_cv_func_working_mktime" in
9102 yes)
9103 $as_echo "#define HAVE_MKTIME 1" >>confdefs.h
9104
9105         ;;
9106 esac
9107
9108 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
9109 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
9110
9111 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
9112
9113 else
9114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
9115 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
9116 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
9117   $as_echo_n "(cached) " >&6
9118 else
9119   ac_check_lib_save_LIBS=$LIBS
9120 LIBS="-lsocket  $LIBS"
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h.  */
9123
9124 /* Override any GCC internal prototype to avoid an error.
9125    Use char because int might match the return type of a GCC
9126    builtin and then its argument prototype would still apply.  */
9127 #ifdef __cplusplus
9128 extern "C"
9129 #endif
9130 char getaddrinfo ();
9131 int
9132 main ()
9133 {
9134 return getaddrinfo ();
9135   ;
9136   return 0;
9137 }
9138 _ACEOF
9139 if ac_fn_c_try_link "$LINENO"; then :
9140   ac_cv_lib_socket_getaddrinfo=yes
9141 else
9142   ac_cv_lib_socket_getaddrinfo=no
9143 fi
9144 rm -f core conftest.err conftest.$ac_objext \
9145     conftest$ac_exeext conftest.$ac_ext
9146 LIBS=$ac_check_lib_save_LIBS
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
9149 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
9150 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
9151
9152 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
9153
9154 fi
9155
9156 fi
9157
9158
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
9160 $as_echo_n "checking for fmod in -lm... " >&6; }
9161 if ${ac_cv_lib_m_fmod+:} false; then :
9162   $as_echo_n "(cached) " >&6
9163 else
9164   ac_check_lib_save_LIBS=$LIBS
9165 LIBS="-lm  $LIBS"
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h.  */
9168
9169 /* Override any GCC internal prototype to avoid an error.
9170    Use char because int might match the return type of a GCC
9171    builtin and then its argument prototype would still apply.  */
9172 #ifdef __cplusplus
9173 extern "C"
9174 #endif
9175 char fmod ();
9176 int
9177 main ()
9178 {
9179 return fmod ();
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_c_try_link "$LINENO"; then :
9185   ac_cv_lib_m_fmod=yes
9186 else
9187   ac_cv_lib_m_fmod=no
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext \
9190     conftest$ac_exeext conftest.$ac_ext
9191 LIBS=$ac_check_lib_save_LIBS
9192 fi
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
9194 $as_echo "$ac_cv_lib_m_fmod" >&6; }
9195 if test "x$ac_cv_lib_m_fmod" = xyes; then :
9196   cat >>confdefs.h <<_ACEOF
9197 #define HAVE_LIBM 1
9198 _ACEOF
9199
9200   LIBS="-lm $LIBS"
9201
9202 fi
9203
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
9205 $as_echo_n "checking for isinf in -lm... " >&6; }
9206 if ${ac_cv_lib_m_isinf+:} false; then :
9207   $as_echo_n "(cached) " >&6
9208 else
9209   ac_check_lib_save_LIBS=$LIBS
9210 LIBS="-lm  $LIBS"
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h.  */
9213
9214 /* Override any GCC internal prototype to avoid an error.
9215    Use char because int might match the return type of a GCC
9216    builtin and then its argument prototype would still apply.  */
9217 #ifdef __cplusplus
9218 extern "C"
9219 #endif
9220 char isinf ();
9221 int
9222 main ()
9223 {
9224 return isinf ();
9225   ;
9226   return 0;
9227 }
9228 _ACEOF
9229 if ac_fn_c_try_link "$LINENO"; then :
9230   ac_cv_lib_m_isinf=yes
9231 else
9232   ac_cv_lib_m_isinf=no
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext \
9235     conftest$ac_exeext conftest.$ac_ext
9236 LIBS=$ac_check_lib_save_LIBS
9237 fi
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
9239 $as_echo "$ac_cv_lib_m_isinf" >&6; }
9240 if test "x$ac_cv_lib_m_isinf" = xyes; then :
9241   cat >>confdefs.h <<_ACEOF
9242 #define HAVE_LIBM 1
9243 _ACEOF
9244
9245   LIBS="-lm $LIBS"
9246
9247 fi
9248
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ismod in -lm" >&5
9250 $as_echo_n "checking for ismod in -lm... " >&6; }
9251 if ${ac_cv_lib_m_ismod+:} false; then :
9252   $as_echo_n "(cached) " >&6
9253 else
9254   ac_check_lib_save_LIBS=$LIBS
9255 LIBS="-lm  $LIBS"
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h.  */
9258
9259 /* Override any GCC internal prototype to avoid an error.
9260    Use char because int might match the return type of a GCC
9261    builtin and then its argument prototype would still apply.  */
9262 #ifdef __cplusplus
9263 extern "C"
9264 #endif
9265 char ismod ();
9266 int
9267 main ()
9268 {
9269 return ismod ();
9270   ;
9271   return 0;
9272 }
9273 _ACEOF
9274 if ac_fn_c_try_link "$LINENO"; then :
9275   ac_cv_lib_m_ismod=yes
9276 else
9277   ac_cv_lib_m_ismod=no
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext \
9280     conftest$ac_exeext conftest.$ac_ext
9281 LIBS=$ac_check_lib_save_LIBS
9282 fi
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ismod" >&5
9284 $as_echo "$ac_cv_lib_m_ismod" >&6; }
9285 if test "x$ac_cv_lib_m_ismod" = xyes; then :
9286   cat >>confdefs.h <<_ACEOF
9287 #define HAVE_LIBM 1
9288 _ACEOF
9289
9290   LIBS="-lm $LIBS"
9291
9292 fi
9293
9294 case `uname` in
9295 OSF1)   : ;;
9296 *)
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311     use_additional=yes
9312
9313   acl_save_prefix="$prefix"
9314   prefix="$acl_final_prefix"
9315   acl_save_exec_prefix="$exec_prefix"
9316   exec_prefix="$acl_final_exec_prefix"
9317
9318     eval additional_includedir=\"$includedir\"
9319     eval additional_libdir=\"$libdir\"
9320
9321   exec_prefix="$acl_save_exec_prefix"
9322   prefix="$acl_save_prefix"
9323
9324
9325 # Check whether --with-libsigsegv-prefix was given.
9326 if test "${with_libsigsegv_prefix+set}" = set; then :
9327   withval=$with_libsigsegv_prefix;
9328     if test "X$withval" = "Xno"; then
9329       use_additional=no
9330     else
9331       if test "X$withval" = "X"; then
9332
9333   acl_save_prefix="$prefix"
9334   prefix="$acl_final_prefix"
9335   acl_save_exec_prefix="$exec_prefix"
9336   exec_prefix="$acl_final_exec_prefix"
9337
9338           eval additional_includedir=\"$includedir\"
9339           eval additional_libdir=\"$libdir\"
9340
9341   exec_prefix="$acl_save_exec_prefix"
9342   prefix="$acl_save_prefix"
9343
9344       else
9345         additional_includedir="$withval/include"
9346         additional_libdir="$withval/$acl_libdirstem"
9347         if test "$acl_libdirstem2" != "$acl_libdirstem" \
9348            && ! test -d "$withval/$acl_libdirstem"; then
9349           additional_libdir="$withval/$acl_libdirstem2"
9350         fi
9351       fi
9352     fi
9353
9354 fi
9355
9356       LIBSIGSEGV=
9357   LTLIBSIGSEGV=
9358   INCSIGSEGV=
9359   LIBSIGSEGV_PREFIX=
9360       HAVE_LIBSIGSEGV=
9361   rpathdirs=
9362   ltrpathdirs=
9363   names_already_handled=
9364   names_next_round='sigsegv '
9365   while test -n "$names_next_round"; do
9366     names_this_round="$names_next_round"
9367     names_next_round=
9368     for name in $names_this_round; do
9369       already_handled=
9370       for n in $names_already_handled; do
9371         if test "$n" = "$name"; then
9372           already_handled=yes
9373           break
9374         fi
9375       done
9376       if test -z "$already_handled"; then
9377         names_already_handled="$names_already_handled $name"
9378                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9379         eval value=\"\$HAVE_LIB$uppername\"
9380         if test -n "$value"; then
9381           if test "$value" = yes; then
9382             eval value=\"\$LIB$uppername\"
9383             test -z "$value" || LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$value"
9384             eval value=\"\$LTLIB$uppername\"
9385             test -z "$value" || LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$value"
9386           else
9387                                     :
9388           fi
9389         else
9390                               found_dir=
9391           found_la=
9392           found_so=
9393           found_a=
9394           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9395           if test -n "$acl_shlibext"; then
9396             shrext=".$acl_shlibext"             # typically: shrext=.so
9397           else
9398             shrext=
9399           fi
9400           if test $use_additional = yes; then
9401             dir="$additional_libdir"
9402                                     if test -n "$acl_shlibext"; then
9403               if test -f "$dir/$libname$shrext"; then
9404                 found_dir="$dir"
9405                 found_so="$dir/$libname$shrext"
9406               else
9407                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9408                   ver=`(cd "$dir" && \
9409                         for f in "$libname$shrext".*; do echo "$f"; done \
9410                         | sed -e "s,^$libname$shrext\\\\.,," \
9411                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9412                         | sed 1q ) 2>/dev/null`
9413                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9414                     found_dir="$dir"
9415                     found_so="$dir/$libname$shrext.$ver"
9416                   fi
9417                 else
9418                   eval library_names=\"$acl_library_names_spec\"
9419                   for f in $library_names; do
9420                     if test -f "$dir/$f"; then
9421                       found_dir="$dir"
9422                       found_so="$dir/$f"
9423                       break
9424                     fi
9425                   done
9426                 fi
9427               fi
9428             fi
9429                         if test "X$found_dir" = "X"; then
9430               if test -f "$dir/$libname.$acl_libext"; then
9431                 found_dir="$dir"
9432                 found_a="$dir/$libname.$acl_libext"
9433               fi
9434             fi
9435             if test "X$found_dir" != "X"; then
9436               if test -f "$dir/$libname.la"; then
9437                 found_la="$dir/$libname.la"
9438               fi
9439             fi
9440           fi
9441           if test "X$found_dir" = "X"; then
9442             for x in $LDFLAGS $LTLIBSIGSEGV; do
9443
9444   acl_save_prefix="$prefix"
9445   prefix="$acl_final_prefix"
9446   acl_save_exec_prefix="$exec_prefix"
9447   exec_prefix="$acl_final_exec_prefix"
9448   eval x=\"$x\"
9449   exec_prefix="$acl_save_exec_prefix"
9450   prefix="$acl_save_prefix"
9451
9452               case "$x" in
9453                 -L*)
9454                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9455                                     if test -n "$acl_shlibext"; then
9456                     if test -f "$dir/$libname$shrext"; then
9457                       found_dir="$dir"
9458                       found_so="$dir/$libname$shrext"
9459                     else
9460                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9461                         ver=`(cd "$dir" && \
9462                               for f in "$libname$shrext".*; do echo "$f"; done \
9463                               | sed -e "s,^$libname$shrext\\\\.,," \
9464                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9465                               | sed 1q ) 2>/dev/null`
9466                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9467                           found_dir="$dir"
9468                           found_so="$dir/$libname$shrext.$ver"
9469                         fi
9470                       else
9471                         eval library_names=\"$acl_library_names_spec\"
9472                         for f in $library_names; do
9473                           if test -f "$dir/$f"; then
9474                             found_dir="$dir"
9475                             found_so="$dir/$f"
9476                             break
9477                           fi
9478                         done
9479                       fi
9480                     fi
9481                   fi
9482                                     if test "X$found_dir" = "X"; then
9483                     if test -f "$dir/$libname.$acl_libext"; then
9484                       found_dir="$dir"
9485                       found_a="$dir/$libname.$acl_libext"
9486                     fi
9487                   fi
9488                   if test "X$found_dir" != "X"; then
9489                     if test -f "$dir/$libname.la"; then
9490                       found_la="$dir/$libname.la"
9491                     fi
9492                   fi
9493                   ;;
9494               esac
9495               if test "X$found_dir" != "X"; then
9496                 break
9497               fi
9498             done
9499           fi
9500           if test "X$found_dir" != "X"; then
9501                         LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$found_dir -l$name"
9502             if test "X$found_so" != "X"; then
9503                                                         if test "$enable_rpath" = no \
9504                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9505                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9506                                 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9507               else
9508                                                                                 haveit=
9509                 for x in $ltrpathdirs; do
9510                   if test "X$x" = "X$found_dir"; then
9511                     haveit=yes
9512                     break
9513                   fi
9514                 done
9515                 if test -z "$haveit"; then
9516                   ltrpathdirs="$ltrpathdirs $found_dir"
9517                 fi
9518                                 if test "$acl_hardcode_direct" = yes; then
9519                                                       LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9520                 else
9521                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9522                                                             LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9523                                                             haveit=
9524                     for x in $rpathdirs; do
9525                       if test "X$x" = "X$found_dir"; then
9526                         haveit=yes
9527                         break
9528                       fi
9529                     done
9530                     if test -z "$haveit"; then
9531                       rpathdirs="$rpathdirs $found_dir"
9532                     fi
9533                   else
9534                                                                                 haveit=
9535                     for x in $LDFLAGS $LIBSIGSEGV; do
9536
9537   acl_save_prefix="$prefix"
9538   prefix="$acl_final_prefix"
9539   acl_save_exec_prefix="$exec_prefix"
9540   exec_prefix="$acl_final_exec_prefix"
9541   eval x=\"$x\"
9542   exec_prefix="$acl_save_exec_prefix"
9543   prefix="$acl_save_prefix"
9544
9545                       if test "X$x" = "X-L$found_dir"; then
9546                         haveit=yes
9547                         break
9548                       fi
9549                     done
9550                     if test -z "$haveit"; then
9551                       LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir"
9552                     fi
9553                     if test "$acl_hardcode_minus_L" != no; then
9554                                                                                         LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9555                     else
9556                                                                                                                                                                                 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
9557                     fi
9558                   fi
9559                 fi
9560               fi
9561             else
9562               if test "X$found_a" != "X"; then
9563                                 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_a"
9564               else
9565                                                 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir -l$name"
9566               fi
9567             fi
9568                         additional_includedir=
9569             case "$found_dir" in
9570               */$acl_libdirstem | */$acl_libdirstem/)
9571                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9572                 if test "$name" = 'sigsegv'; then
9573                   LIBSIGSEGV_PREFIX="$basedir"
9574                 fi
9575                 additional_includedir="$basedir/include"
9576                 ;;
9577               */$acl_libdirstem2 | */$acl_libdirstem2/)
9578                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9579                 if test "$name" = 'sigsegv'; then
9580                   LIBSIGSEGV_PREFIX="$basedir"
9581                 fi
9582                 additional_includedir="$basedir/include"
9583                 ;;
9584             esac
9585             if test "X$additional_includedir" != "X"; then
9586                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9587                 haveit=
9588                 if test "X$additional_includedir" = "X/usr/local/include"; then
9589                   if test -n "$GCC"; then
9590                     case $host_os in
9591                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9592                     esac
9593                   fi
9594                 fi
9595                 if test -z "$haveit"; then
9596                   for x in $CPPFLAGS $INCSIGSEGV; do
9597
9598   acl_save_prefix="$prefix"
9599   prefix="$acl_final_prefix"
9600   acl_save_exec_prefix="$exec_prefix"
9601   exec_prefix="$acl_final_exec_prefix"
9602   eval x=\"$x\"
9603   exec_prefix="$acl_save_exec_prefix"
9604   prefix="$acl_save_prefix"
9605
9606                     if test "X$x" = "X-I$additional_includedir"; then
9607                       haveit=yes
9608                       break
9609                     fi
9610                   done
9611                   if test -z "$haveit"; then
9612                     if test -d "$additional_includedir"; then
9613                                             INCSIGSEGV="${INCSIGSEGV}${INCSIGSEGV:+ }-I$additional_includedir"
9614                     fi
9615                   fi
9616                 fi
9617               fi
9618             fi
9619                         if test -n "$found_la"; then
9620                                                         save_libdir="$libdir"
9621               case "$found_la" in
9622                 */* | *\\*) . "$found_la" ;;
9623                 *) . "./$found_la" ;;
9624               esac
9625               libdir="$save_libdir"
9626                             for dep in $dependency_libs; do
9627                 case "$dep" in
9628                   -L*)
9629                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9630                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9631                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9632                       haveit=
9633                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9634                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9635                         if test -n "$GCC"; then
9636                           case $host_os in
9637                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9638                           esac
9639                         fi
9640                       fi
9641                       if test -z "$haveit"; then
9642                         haveit=
9643                         for x in $LDFLAGS $LIBSIGSEGV; do
9644
9645   acl_save_prefix="$prefix"
9646   prefix="$acl_final_prefix"
9647   acl_save_exec_prefix="$exec_prefix"
9648   exec_prefix="$acl_final_exec_prefix"
9649   eval x=\"$x\"
9650   exec_prefix="$acl_save_exec_prefix"
9651   prefix="$acl_save_prefix"
9652
9653                           if test "X$x" = "X-L$additional_libdir"; then
9654                             haveit=yes
9655                             break
9656                           fi
9657                         done
9658                         if test -z "$haveit"; then
9659                           if test -d "$additional_libdir"; then
9660                                                         LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$additional_libdir"
9661                           fi
9662                         fi
9663                         haveit=
9664                         for x in $LDFLAGS $LTLIBSIGSEGV; do
9665
9666   acl_save_prefix="$prefix"
9667   prefix="$acl_final_prefix"
9668   acl_save_exec_prefix="$exec_prefix"
9669   exec_prefix="$acl_final_exec_prefix"
9670   eval x=\"$x\"
9671   exec_prefix="$acl_save_exec_prefix"
9672   prefix="$acl_save_prefix"
9673
9674                           if test "X$x" = "X-L$additional_libdir"; then
9675                             haveit=yes
9676                             break
9677                           fi
9678                         done
9679                         if test -z "$haveit"; then
9680                           if test -d "$additional_libdir"; then
9681                                                         LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$additional_libdir"
9682                           fi
9683                         fi
9684                       fi
9685                     fi
9686                     ;;
9687                   -R*)
9688                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9689                     if test "$enable_rpath" != no; then
9690                                                                   haveit=
9691                       for x in $rpathdirs; do
9692                         if test "X$x" = "X$dir"; then
9693                           haveit=yes
9694                           break
9695                         fi
9696                       done
9697                       if test -z "$haveit"; then
9698                         rpathdirs="$rpathdirs $dir"
9699                       fi
9700                                                                   haveit=
9701                       for x in $ltrpathdirs; do
9702                         if test "X$x" = "X$dir"; then
9703                           haveit=yes
9704                           break
9705                         fi
9706                       done
9707                       if test -z "$haveit"; then
9708                         ltrpathdirs="$ltrpathdirs $dir"
9709                       fi
9710                     fi
9711                     ;;
9712                   -l*)
9713                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9714                     ;;
9715                   *.la)
9716                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9717                     ;;
9718                   *)
9719                                         LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$dep"
9720                     LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$dep"
9721                     ;;
9722                 esac
9723               done
9724             fi
9725           else
9726                                                             LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
9727             LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-l$name"
9728           fi
9729         fi
9730       fi
9731     done
9732   done
9733   if test "X$rpathdirs" != "X"; then
9734     if test -n "$acl_hardcode_libdir_separator"; then
9735                         alldirs=
9736       for found_dir in $rpathdirs; do
9737         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9738       done
9739             acl_save_libdir="$libdir"
9740       libdir="$alldirs"
9741       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9742       libdir="$acl_save_libdir"
9743       LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
9744     else
9745             for found_dir in $rpathdirs; do
9746         acl_save_libdir="$libdir"
9747         libdir="$found_dir"
9748         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9749         libdir="$acl_save_libdir"
9750         LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
9751       done
9752     fi
9753   fi
9754   if test "X$ltrpathdirs" != "X"; then
9755             for found_dir in $ltrpathdirs; do
9756       LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-R$found_dir"
9757     done
9758   fi
9759
9760
9761
9762
9763
9764
9765
9766         ac_save_CPPFLAGS="$CPPFLAGS"
9767
9768   for element in $INCSIGSEGV; do
9769     haveit=
9770     for x in $CPPFLAGS; do
9771
9772   acl_save_prefix="$prefix"
9773   prefix="$acl_final_prefix"
9774   acl_save_exec_prefix="$exec_prefix"
9775   exec_prefix="$acl_final_exec_prefix"
9776   eval x=\"$x\"
9777   exec_prefix="$acl_save_exec_prefix"
9778   prefix="$acl_save_prefix"
9779
9780       if test "X$x" = "X$element"; then
9781         haveit=yes
9782         break
9783       fi
9784     done
9785     if test -z "$haveit"; then
9786       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9787     fi
9788   done
9789
9790
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsigsegv" >&5
9792 $as_echo_n "checking for libsigsegv... " >&6; }
9793 if ${ac_cv_libsigsegv+:} false; then :
9794   $as_echo_n "(cached) " >&6
9795 else
9796
9797     ac_save_LIBS="$LIBS"
9798                                 case " $LIBSIGSEGV" in
9799       *" -l"*) LIBS="$LIBS $LIBSIGSEGV" ;;
9800       *)       LIBS="$LIBSIGSEGV $LIBS" ;;
9801     esac
9802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h.  */
9804 #include <sigsegv.h>
9805 int
9806 main ()
9807 {
9808 sigsegv_deinstall_handler();
9809   ;
9810   return 0;
9811 }
9812 _ACEOF
9813 if ac_fn_c_try_link "$LINENO"; then :
9814   ac_cv_libsigsegv=yes
9815 else
9816   ac_cv_libsigsegv='no, consider installing GNU libsigsegv'
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext \
9819     conftest$ac_exeext conftest.$ac_ext
9820     LIBS="$ac_save_LIBS"
9821
9822 fi
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libsigsegv" >&5
9824 $as_echo "$ac_cv_libsigsegv" >&6; }
9825   if test "$ac_cv_libsigsegv" = yes; then
9826     HAVE_LIBSIGSEGV=yes
9827
9828 $as_echo "#define HAVE_LIBSIGSEGV 1" >>confdefs.h
9829
9830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libsigsegv" >&5
9831 $as_echo_n "checking how to link with libsigsegv... " >&6; }
9832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSIGSEGV" >&5
9833 $as_echo "$LIBSIGSEGV" >&6; }
9834   else
9835     HAVE_LIBSIGSEGV=no
9836             CPPFLAGS="$ac_save_CPPFLAGS"
9837     LIBSIGSEGV=
9838     LTLIBSIGSEGV=
9839     LIBSIGSEGV_PREFIX=
9840   fi
9841
9842
9843
9844
9845
9846
9847
9848     gl_cv_lib_sigsegv="$ac_cv_libsigsegv"
9849
9850         ;;
9851 esac
9852
9853 # Need the check for mkstemp and tmpfile for missing_d/snprintf.c.
9854 for ac_func in atexit btowc fmod getgrent getgroups grantpt \
9855         isascii iswctype iswlower iswupper mbrlen \
9856         memcmp memcpy memcpy_ulong memmove memset \
9857         memset_ulong mkstemp setenv setlocale setsid snprintf strchr \
9858         strerror strftime strncasecmp strcoll strtod strtoul \
9859         system tmpfile towlower towupper tzset usleep wcrtomb \
9860         wcscoll wctype
9861 do :
9862   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9865   cat >>confdefs.h <<_ACEOF
9866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9867 _ACEOF
9868
9869 fi
9870 done
9871
9872
9873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
9874 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
9875 if ${ac_cv_func_mbrtowc+:} false; then :
9876   $as_echo_n "(cached) " >&6
9877 else
9878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h.  */
9880 #include <wchar.h>
9881 int
9882 main ()
9883 {
9884 wchar_t wc;
9885               char const s[] = "";
9886               size_t n = 1;
9887               mbstate_t state;
9888               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
9889   ;
9890   return 0;
9891 }
9892 _ACEOF
9893 if ac_fn_c_try_link "$LINENO"; then :
9894   ac_cv_func_mbrtowc=yes
9895 else
9896   ac_cv_func_mbrtowc=no
9897 fi
9898 rm -f core conftest.err conftest.$ac_objext \
9899     conftest$ac_exeext conftest.$ac_ext
9900 fi
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
9902 $as_echo "$ac_cv_func_mbrtowc" >&6; }
9903   if test $ac_cv_func_mbrtowc = yes; then
9904
9905 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
9906
9907   fi
9908
9909
9910 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9911 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9912
9913 $as_echo "#define DYNAMIC 1" >>confdefs.h
9914
9915         if test "$GCC" = yes
9916         then
9917                 # Add others here as appropriate,
9918                 # one day use GNU libtool.
9919                 # 3/2010: Used to have cygwin here but removed since
9920                 # we get complaints that -export-dynamic doesn't work.
9921                 if uname | $EGREP -i 'linux|freebsd' > /dev/null
9922                 then
9923                         LDFLAGS="$LDFLAGS -export-dynamic"
9924                 fi
9925         fi
9926
9927         # Check this separately. Some systems have dlopen
9928         # in libc. Notably freebsd and cygwin.
9929         # HP-NSK has it in zrldsrl
9930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9931 $as_echo_n "checking for library containing dlopen... " >&6; }
9932 if ${ac_cv_search_dlopen+:} false; then :
9933   $as_echo_n "(cached) " >&6
9934 else
9935   ac_func_search_save_LIBS=$LIBS
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h.  */
9938
9939 /* Override any GCC internal prototype to avoid an error.
9940    Use char because int might match the return type of a GCC
9941    builtin and then its argument prototype would still apply.  */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 char dlopen ();
9946 int
9947 main ()
9948 {
9949 return dlopen ();
9950   ;
9951   return 0;
9952 }
9953 _ACEOF
9954 for ac_lib in '' dl zrldsrl; do
9955   if test -z "$ac_lib"; then
9956     ac_res="none required"
9957   else
9958     ac_res=-l$ac_lib
9959     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9960   fi
9961   if ac_fn_c_try_link "$LINENO"; then :
9962   ac_cv_search_dlopen=$ac_res
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext \
9965     conftest$ac_exeext
9966   if ${ac_cv_search_dlopen+:} false; then :
9967   break
9968 fi
9969 done
9970 if ${ac_cv_search_dlopen+:} false; then :
9971
9972 else
9973   ac_cv_search_dlopen=no
9974 fi
9975 rm conftest.$ac_ext
9976 LIBS=$ac_func_search_save_LIBS
9977 fi
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9979 $as_echo "$ac_cv_search_dlopen" >&6; }
9980 ac_res=$ac_cv_search_dlopen
9981 if test "$ac_res" != no; then :
9982   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9983
9984 fi
9985
9986
9987 fi
9988
9989
9990
9991 case `(uname) 2> /dev/null` in
9992 *VMS*|*BeOS*|*OS/2*|*MS-DOS*)
9993
9994 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
9995
9996         ;;
9997 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9998 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9999 if ${ac_cv_func_getpgrp_void+:} false; then :
10000   $as_echo_n "(cached) " >&6
10001 else
10002   # Use it with a single arg.
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h.  */
10005 $ac_includes_default
10006 int
10007 main ()
10008 {
10009 getpgrp (0);
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 if ac_fn_c_try_compile "$LINENO"; then :
10015   ac_cv_func_getpgrp_void=no
10016 else
10017   ac_cv_func_getpgrp_void=yes
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020
10021 fi
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10023 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10024 if test $ac_cv_func_getpgrp_void = yes; then
10025
10026 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10027
10028 fi
10029
10030         ;;
10031 esac
10032
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf %F format" >&5
10034 $as_echo_n "checking for printf %F format... " >&6; }
10035 if test "$cross_compiling" = yes; then :
10036   has_f_format=no
10037 else
10038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h.  */
10040
10041
10042 #include <stdio.h>
10043
10044 int main()
10045 {
10046         char buf[100];
10047
10048         sprintf(buf, "%F", 123.45);
10049
10050         if (strcmp(buf, "123.450000") == 0)
10051                 return 0;
10052         else
10053                 return 1;
10054 }
10055
10056 _ACEOF
10057 if ac_fn_c_try_run "$LINENO"; then :
10058   has_f_format=yes
10059 else
10060   has_f_format=no
10061 fi
10062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10063   conftest.$ac_objext conftest.beam conftest.$ac_ext
10064 fi
10065
10066 if test "$has_f_format" = yes; then
10067
10068 $as_echo "#define PRINTF_HAS_F_FORMAT 1" >>confdefs.h
10069
10070 fi
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_f_format" >&5
10072 $as_echo "$has_f_format" >&6; }
10073
10074
10075 gawk_have_sockets=no
10076 # Check for system-dependent location of socket libraries
10077
10078 SOCKET_LIBS=
10079 if test "$ISC" = yes; then
10080   SOCKET_LIBS="-lnsl_s -linet"
10081 else
10082   # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10083   # libraries were built with DECnet support.  And karl@cs.umb.edu says
10084   # the Alpha needs dnet_stub (dnet does not exist).
10085   #
10086   # ADR: Is this needed just for sockets???
10087 #  AC_CHECK_LIB(dnet, dnet_ntoa, [SOCKET_LIBS="$SOCKET_LIBS -ldnet"])
10088 #  if test $ac_cv_lib_dnet_ntoa = no; then
10089 #    AC_CHECK_LIB(dnet_stub, dnet_ntoa,
10090 #       [SOCKET_LIBS="$SOCKET_LIBS -ldnet_stub"])
10091 #  fi
10092
10093   # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10094   # to get the SysV transport functions.
10095   # chad@anasazi.com says the Pyramid MIS-ES running DC/OSx (SVR4)
10096   # needs -lnsl.
10097   # The nsl library prevents programs from opening the X display
10098   # on Irix 5.2, according to dickey@clark.net.
10099   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10100 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10101
10102 fi
10103
10104   if test $ac_cv_func_gethostbyname = no; then
10105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10106 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10107 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10108   $as_echo_n "(cached) " >&6
10109 else
10110   ac_check_lib_save_LIBS=$LIBS
10111 LIBS="-lnsl  $LIBS"
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h.  */
10114
10115 /* Override any GCC internal prototype to avoid an error.
10116    Use char because int might match the return type of a GCC
10117    builtin and then its argument prototype would still apply.  */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 char gethostbyname ();
10122 int
10123 main ()
10124 {
10125 return gethostbyname ();
10126   ;
10127   return 0;
10128 }
10129 _ACEOF
10130 if ac_fn_c_try_link "$LINENO"; then :
10131   ac_cv_lib_nsl_gethostbyname=yes
10132 else
10133   ac_cv_lib_nsl_gethostbyname=no
10134 fi
10135 rm -f core conftest.err conftest.$ac_objext \
10136     conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_lib_save_LIBS
10138 fi
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10140 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10141 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10142   SOCKET_LIBS="$SOCKET_LIBS -lnsl"
10143 fi
10144
10145   fi
10146
10147   # lieder@skyler.mavd.honeywell.com says without -lsocket,
10148   # socket/setsockopt and other routines are undefined under SCO ODT
10149   # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10150   # on later versions), says simon@lia.di.epfl.ch: it contains
10151   # gethostby* variants that don't use the nameserver (or something).
10152   # -lsocket must be given before -lnsl if both are needed.
10153   # We assume that if connect needs -lnsl, so does gethostbyname.
10154   ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
10155 if test "x$ac_cv_func_connect" = xyes; then :
10156
10157 fi
10158
10159   if test $ac_cv_func_connect = no; then
10160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
10161 $as_echo_n "checking for connect in -lsocket... " >&6; }
10162 if ${ac_cv_lib_socket_connect+:} false; then :
10163   $as_echo_n "(cached) " >&6
10164 else
10165   ac_check_lib_save_LIBS=$LIBS
10166 LIBS="-lsocket $SOCKET_LIBS $LIBS"
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h.  */
10169
10170 /* Override any GCC internal prototype to avoid an error.
10171    Use char because int might match the return type of a GCC
10172    builtin and then its argument prototype would still apply.  */
10173 #ifdef __cplusplus
10174 extern "C"
10175 #endif
10176 char connect ();
10177 int
10178 main ()
10179 {
10180 return connect ();
10181   ;
10182   return 0;
10183 }
10184 _ACEOF
10185 if ac_fn_c_try_link "$LINENO"; then :
10186   ac_cv_lib_socket_connect=yes
10187 else
10188   ac_cv_lib_socket_connect=no
10189 fi
10190 rm -f core conftest.err conftest.$ac_objext \
10191     conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10193 fi
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
10195 $as_echo "$ac_cv_lib_socket_connect" >&6; }
10196 if test "x$ac_cv_lib_socket_connect" = xyes; then :
10197   SOCKET_LIBS="-lsocket $SOCKET_LIBS"
10198                                   gawk_have_sockets=yes
10199 fi
10200
10201   else
10202     gawk_have_sockets=yes
10203   fi
10204 fi
10205
10206 if test "${gawk_have_sockets}" = "yes"
10207 then
10208         { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the socket library calls" >&5
10209 $as_echo_n "checking where to find the socket library calls... " >&6; }
10210         case "${SOCKET_LIBS}" in
10211         ?*)     gawk_lib_loc="${SOCKET_LIBS}" ;;
10212         *)      gawk_lib_loc="the standard library" ;;
10213         esac
10214         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_lib_loc}" >&5
10215 $as_echo "${gawk_lib_loc}" >&6; }
10216
10217
10218 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
10219
10220 fi
10221
10222
10223
10224
10225 # Check whether --with-readline was given.
10226 if test "${with_readline+set}" = set; then :
10227   withval=$with_readline; _do_readline=$withval
10228 else
10229   _do_readline=yes
10230 fi
10231
10232
10233   if test "$_do_readline" != "no" ; then
10234      if test -d "$withval" ; then
10235         CPPFLAGS="${CPPFLAGS} -I$withval/include"
10236         LDFLAGS="${LDFLAGS} -L$withval/lib"
10237      fi
10238
10239      for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
10240         _readline_save_libs=$LIBS
10241         _combo="-lreadline${_termcap:+ $_termcap}"
10242         LIBS="$LIBS $_combo"
10243
10244         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
10245 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
10246
10247         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h.  */
10249
10250
10251 #include <stdio.h>
10252 #include <readline/readline.h>
10253 #include <readline/history.h>
10254
10255 int
10256 main ()
10257 {
10258
10259 rl_completion_func_t *completer;
10260 add_history("foobar");
10261 rl_catch_signals=0;
10262 rl_inhibit_completion=0;
10263 rl_attempted_completion_function=NULL;
10264 rl_completion_matches(NULL,NULL);
10265
10266   ;
10267   return 0;
10268 }
10269 _ACEOF
10270 if ac_fn_c_try_link "$LINENO"; then :
10271   _found_readline=yes
10272 else
10273   _found_readline=no
10274 fi
10275 rm -f core conftest.err conftest.$ac_objext \
10276     conftest$ac_exeext conftest.$ac_ext
10277
10278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
10279 $as_echo "$_found_readline" >&6; }
10280
10281         LIBS=$_readline_save_libs
10282
10283         if test $_found_readline = yes ; then
10284
10285 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
10286
10287            LIBREADLINE=$_combo
10288
10289            break
10290         fi
10291      done
10292
10293      unset _termcap
10294      unset _readline_save_libs
10295      unset _combo
10296      unset _found_readline
10297   fi
10298
10299
10300 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10301 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
10302
10303 cat >>confdefs.h <<_ACEOF
10304 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10305 _ACEOF
10306
10307
10308 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
10309
10310 fi
10311
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10314 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10315 if ${ac_cv_header_time+:} false; then :
10316   $as_echo_n "(cached) " >&6
10317 else
10318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h.  */
10320 #include <sys/types.h>
10321 #include <sys/time.h>
10322 #include <time.h>
10323
10324 int
10325 main ()
10326 {
10327 if ((struct tm *) 0)
10328 return 0;
10329   ;
10330   return 0;
10331 }
10332 _ACEOF
10333 if ac_fn_c_try_compile "$LINENO"; then :
10334   ac_cv_header_time=yes
10335 else
10336   ac_cv_header_time=no
10337 fi
10338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339 fi
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10341 $as_echo "$ac_cv_header_time" >&6; }
10342 if test $ac_cv_header_time = yes; then
10343
10344 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10345
10346 fi
10347
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10349 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10350 if ${ac_cv_struct_tm+:} false; then :
10351   $as_echo_n "(cached) " >&6
10352 else
10353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h.  */
10355 #include <sys/types.h>
10356 #include <time.h>
10357
10358 int
10359 main ()
10360 {
10361 struct tm tm;
10362                                      int *p = &tm.tm_sec;
10363                                      return !p;
10364   ;
10365   return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"; then :
10369   ac_cv_struct_tm=time.h
10370 else
10371   ac_cv_struct_tm=sys/time.h
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10376 $as_echo "$ac_cv_struct_tm" >&6; }
10377 if test $ac_cv_struct_tm = sys/time.h; then
10378
10379 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10380
10381 fi
10382
10383 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10384 #include <$ac_cv_struct_tm>
10385
10386 "
10387 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
10388
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_STRUCT_TM_TM_ZONE 1
10391 _ACEOF
10392
10393
10394 fi
10395
10396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10397
10398 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10399
10400 else
10401   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
10402 "
10403 if test "x$ac_cv_have_decl_tzname" = xyes; then :
10404   ac_have_decl=1
10405 else
10406   ac_have_decl=0
10407 fi
10408
10409 cat >>confdefs.h <<_ACEOF
10410 #define HAVE_DECL_TZNAME $ac_have_decl
10411 _ACEOF
10412
10413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10414 $as_echo_n "checking for tzname... " >&6; }
10415 if ${ac_cv_var_tzname+:} false; then :
10416   $as_echo_n "(cached) " >&6
10417 else
10418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h.  */
10420 #include <time.h>
10421 #if !HAVE_DECL_TZNAME
10422 extern char *tzname[];
10423 #endif
10424
10425 int
10426 main ()
10427 {
10428 return tzname[0][0];
10429   ;
10430   return 0;
10431 }
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434   ac_cv_var_tzname=yes
10435 else
10436   ac_cv_var_tzname=no
10437 fi
10438 rm -f core conftest.err conftest.$ac_objext \
10439     conftest$ac_exeext conftest.$ac_ext
10440 fi
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10442 $as_echo "$ac_cv_var_tzname" >&6; }
10443   if test $ac_cv_var_tzname = yes; then
10444
10445 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10446
10447   fi
10448 fi
10449
10450
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10452 $as_echo_n "checking whether char is unsigned... " >&6; }
10453 if ${ac_cv_c_char_unsigned+:} false; then :
10454   $as_echo_n "(cached) " >&6
10455 else
10456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h.  */
10458 $ac_includes_default
10459 int
10460 main ()
10461 {
10462 static int test_array [1 - 2 * !(((char) -1) < 0)];
10463 test_array [0] = 0
10464
10465   ;
10466   return 0;
10467 }
10468 _ACEOF
10469 if ac_fn_c_try_compile "$LINENO"; then :
10470   ac_cv_c_char_unsigned=no
10471 else
10472   ac_cv_c_char_unsigned=yes
10473 fi
10474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10477 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10478 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10479   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10480
10481 fi
10482
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10484 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10485 if ${ac_cv_c_const+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h.  */
10490
10491 int
10492 main ()
10493 {
10494 /* FIXME: Include the comments suggested by Paul. */
10495 #ifndef __cplusplus
10496   /* Ultrix mips cc rejects this.  */
10497   typedef int charset[2];
10498   const charset cs;
10499   /* SunOS 4.1.1 cc rejects this.  */
10500   char const *const *pcpcc;
10501   char **ppc;
10502   /* NEC SVR4.0.2 mips cc rejects this.  */
10503   struct point {int x, y;};
10504   static struct point const zero = {0,0};
10505   /* AIX XL C 1.02.0.0 rejects this.
10506      It does not let you subtract one const X* pointer from another in
10507      an arm of an if-expression whose if-part is not a constant
10508      expression */
10509   const char *g = "string";
10510   pcpcc = &g + (g ? g-g : 0);
10511   /* HPUX 7.0 cc rejects these. */
10512   ++pcpcc;
10513   ppc = (char**) pcpcc;
10514   pcpcc = (char const *const *) ppc;
10515   { /* SCO 3.2v4 cc rejects this.  */
10516     char *t;
10517     char const *s = 0 ? (char *) 0 : (char const *) 0;
10518
10519     *t++ = 0;
10520     if (s) return 0;
10521   }
10522   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10523     int x[] = {25, 17};
10524     const int *foo = &x[0];
10525     ++foo;
10526   }
10527   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10528     typedef const int *iptr;
10529     iptr p = 0;
10530     ++p;
10531   }
10532   { /* AIX XL C 1.02.0.0 rejects this saying
10533        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10534     struct s { int j; const int *ap[3]; };
10535     struct s *b; b->j = 5;
10536   }
10537   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10538     const int foo = 10;
10539     if (!foo) return 0;
10540   }
10541   return !cs[0] && !zero.x;
10542 #endif
10543
10544   ;
10545   return 0;
10546 }
10547 _ACEOF
10548 if ac_fn_c_try_compile "$LINENO"; then :
10549   ac_cv_c_const=yes
10550 else
10551   ac_cv_c_const=no
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554 fi
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10556 $as_echo "$ac_cv_c_const" >&6; }
10557 if test $ac_cv_c_const = no; then
10558
10559 $as_echo "#define const /**/" >>confdefs.h
10560
10561 fi
10562
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10564 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10565 if ${ac_cv_c_restrict+:} false; then :
10566   $as_echo_n "(cached) " >&6
10567 else
10568   ac_cv_c_restrict=no
10569    # The order here caters to the fact that C++ does not require restrict.
10570    for ac_kw in __restrict __restrict__ _Restrict restrict; do
10571      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h.  */
10573 typedef int * int_ptr;
10574         int foo (int_ptr $ac_kw ip) {
10575         return ip[0];
10576        }
10577 int
10578 main ()
10579 {
10580 int s[1];
10581         int * $ac_kw t = s;
10582         t[0] = 0;
10583         return foo(t)
10584   ;
10585   return 0;
10586 }
10587 _ACEOF
10588 if ac_fn_c_try_compile "$LINENO"; then :
10589   ac_cv_c_restrict=$ac_kw
10590 fi
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592      test "$ac_cv_c_restrict" != no && break
10593    done
10594
10595 fi
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10597 $as_echo "$ac_cv_c_restrict" >&6; }
10598
10599  case $ac_cv_c_restrict in
10600    restrict) ;;
10601    no) $as_echo "#define restrict /**/" >>confdefs.h
10602  ;;
10603    *)  cat >>confdefs.h <<_ACEOF
10604 #define restrict $ac_cv_c_restrict
10605 _ACEOF
10606  ;;
10607  esac
10608
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10610 $as_echo_n "checking for inline... " >&6; }
10611 if ${ac_cv_c_inline+:} false; then :
10612   $as_echo_n "(cached) " >&6
10613 else
10614   ac_cv_c_inline=no
10615 for ac_kw in inline __inline__ __inline; do
10616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h.  */
10618 #ifndef __cplusplus
10619 typedef int foo_t;
10620 static $ac_kw foo_t static_foo () {return 0; }
10621 $ac_kw foo_t foo () {return 0; }
10622 #endif
10623
10624 _ACEOF
10625 if ac_fn_c_try_compile "$LINENO"; then :
10626   ac_cv_c_inline=$ac_kw
10627 fi
10628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10629   test "$ac_cv_c_inline" != no && break
10630 done
10631
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10634 $as_echo "$ac_cv_c_inline" >&6; }
10635
10636 case $ac_cv_c_inline in
10637   inline | yes) ;;
10638   *)
10639     case $ac_cv_c_inline in
10640       no) ac_val=;;
10641       *) ac_val=$ac_cv_c_inline;;
10642     esac
10643     cat >>confdefs.h <<_ACEOF
10644 #ifndef __cplusplus
10645 #define inline $ac_val
10646 #endif
10647 _ACEOF
10648     ;;
10649 esac
10650
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
10652 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
10653 if ${ac_cv_c_stringize+:} false; then :
10654   $as_echo_n "(cached) " >&6
10655 else
10656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h.  */
10658 #define x(y) #y
10659
10660 char *s = x(teststring);
10661 _ACEOF
10662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10663   $EGREP "#teststring" >/dev/null 2>&1; then :
10664   ac_cv_c_stringize=no
10665 else
10666   ac_cv_c_stringize=yes
10667 fi
10668 rm -f conftest*
10669
10670 fi
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
10672 $as_echo "$ac_cv_c_stringize" >&6; }
10673 if test $ac_cv_c_stringize = yes; then
10674
10675 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
10676
10677 fi
10678
10679
10680 ac_config_headers="$ac_config_headers config.h:configh.in"
10681
10682
10683
10684 ac_config_files="$ac_config_files Makefile awklib/Makefile doc/Makefile po/Makefile.in test/Makefile"
10685
10686 cat >confcache <<\_ACEOF
10687 # This file is a shell script that caches the results of configure
10688 # tests run on this system so they can be shared between configure
10689 # scripts and configure runs, see configure's option --config-cache.
10690 # It is not useful on other systems.  If it contains results you don't
10691 # want to keep, you may remove or edit it.
10692 #
10693 # config.status only pays attention to the cache file if you give it
10694 # the --recheck option to rerun configure.
10695 #
10696 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10697 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10698 # following values.
10699
10700 _ACEOF
10701
10702 # The following way of writing the cache mishandles newlines in values,
10703 # but we know of no workaround that is simple, portable, and efficient.
10704 # So, we kill variables containing newlines.
10705 # Ultrix sh set writes to stderr and can't be redirected directly,
10706 # and sets the high bit in the cache file unless we assign to the vars.
10707 (
10708   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10709     eval ac_val=\$$ac_var
10710     case $ac_val in #(
10711     *${as_nl}*)
10712       case $ac_var in #(
10713       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10714 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10715       esac
10716       case $ac_var in #(
10717       _ | IFS | as_nl) ;; #(
10718       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10719       *) { eval $ac_var=; unset $ac_var;} ;;
10720       esac ;;
10721     esac
10722   done
10723
10724   (set) 2>&1 |
10725     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10726     *${as_nl}ac_space=\ *)
10727       # `set' does not quote correctly, so add quotes: double-quote
10728       # substitution turns \\\\ into \\, and sed turns \\ into \.
10729       sed -n \
10730         "s/'/'\\\\''/g;
10731           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10732       ;; #(
10733     *)
10734       # `set' quotes correctly as required by POSIX, so do not add quotes.
10735       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10736       ;;
10737     esac |
10738     sort
10739 ) |
10740   sed '
10741      /^ac_cv_env_/b end
10742      t clear
10743      :clear
10744      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10745      t end
10746      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10747      :end' >>confcache
10748 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10749   if test -w "$cache_file"; then
10750     if test "x$cache_file" != "x/dev/null"; then
10751       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10752 $as_echo "$as_me: updating cache $cache_file" >&6;}
10753       if test ! -f "$cache_file" || test -h "$cache_file"; then
10754         cat confcache >"$cache_file"
10755       else
10756         case $cache_file in #(
10757         */* | ?:*)
10758           mv -f confcache "$cache_file"$$ &&
10759           mv -f "$cache_file"$$ "$cache_file" ;; #(
10760         *)
10761           mv -f confcache "$cache_file" ;;
10762         esac
10763       fi
10764     fi
10765   else
10766     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10767 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10768   fi
10769 fi
10770 rm -f confcache
10771
10772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10773 # Let make expand exec_prefix.
10774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10775
10776 DEFS=-DHAVE_CONFIG_H
10777
10778 ac_libobjs=
10779 ac_ltlibobjs=
10780 U=
10781 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10782   # 1. Remove the extension, and $U if already installed.
10783   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10784   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10785   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10786   #    will be set to the directory where LIBOBJS objects are built.
10787   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10788   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10789 done
10790 LIBOBJS=$ac_libobjs
10791
10792 LTLIBOBJS=$ac_ltlibobjs
10793
10794
10795  if test -n "$EXEEXT"; then
10796   am__EXEEXT_TRUE=
10797   am__EXEEXT_FALSE='#'
10798 else
10799   am__EXEEXT_TRUE='#'
10800   am__EXEEXT_FALSE=
10801 fi
10802
10803 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10804   as_fn_error $? "conditional \"AMDEP\" was never defined.
10805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10806 fi
10807 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10808   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10810 fi
10811 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10812   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10814 fi
10815
10816 : "${CONFIG_STATUS=./config.status}"
10817 ac_write_fail=0
10818 ac_clean_files_save=$ac_clean_files
10819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10821 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10822 as_write_fail=0
10823 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10824 #! $SHELL
10825 # Generated by $as_me.
10826 # Run this file to recreate the current configuration.
10827 # Compiler output produced by configure, useful for debugging
10828 # configure, is in config.log if it exists.
10829
10830 debug=false
10831 ac_cs_recheck=false
10832 ac_cs_silent=false
10833
10834 SHELL=\${CONFIG_SHELL-$SHELL}
10835 export SHELL
10836 _ASEOF
10837 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10838 ## -------------------- ##
10839 ## M4sh Initialization. ##
10840 ## -------------------- ##
10841
10842 # Be more Bourne compatible
10843 DUALCASE=1; export DUALCASE # for MKS sh
10844 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10845   emulate sh
10846   NULLCMD=:
10847   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10848   # is contrary to our usage.  Disable this feature.
10849   alias -g '${1+"$@"}'='"$@"'
10850   setopt NO_GLOB_SUBST
10851 else
10852   case `(set -o) 2>/dev/null` in #(
10853   *posix*) :
10854     set -o posix ;; #(
10855   *) :
10856      ;;
10857 esac
10858 fi
10859
10860
10861 as_nl='
10862 '
10863 export as_nl
10864 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10865 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10867 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10868 # Prefer a ksh shell builtin over an external printf program on Solaris,
10869 # but without wasting forks for bash or zsh.
10870 if test -z "$BASH_VERSION$ZSH_VERSION" \
10871     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10872   as_echo='print -r --'
10873   as_echo_n='print -rn --'
10874 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10875   as_echo='printf %s\n'
10876   as_echo_n='printf %s'
10877 else
10878   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10879     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10880     as_echo_n='/usr/ucb/echo -n'
10881   else
10882     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10883     as_echo_n_body='eval
10884       arg=$1;
10885       case $arg in #(
10886       *"$as_nl"*)
10887         expr "X$arg" : "X\\(.*\\)$as_nl";
10888         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10889       esac;
10890       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10891     '
10892     export as_echo_n_body
10893     as_echo_n='sh -c $as_echo_n_body as_echo'
10894   fi
10895   export as_echo_body
10896   as_echo='sh -c $as_echo_body as_echo'
10897 fi
10898
10899 # The user is always right.
10900 if test "${PATH_SEPARATOR+set}" != set; then
10901   PATH_SEPARATOR=:
10902   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10903     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10904       PATH_SEPARATOR=';'
10905   }
10906 fi
10907
10908
10909 # IFS
10910 # We need space, tab and new line, in precisely that order.  Quoting is
10911 # there to prevent editors from complaining about space-tab.
10912 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10913 # splitting by setting IFS to empty value.)
10914 IFS=" ""        $as_nl"
10915
10916 # Find who we are.  Look in the path if we contain no directory separator.
10917 as_myself=
10918 case $0 in #((
10919   *[\\/]* ) as_myself=$0 ;;
10920   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $PATH
10922 do
10923   IFS=$as_save_IFS
10924   test -z "$as_dir" && as_dir=.
10925     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10926   done
10927 IFS=$as_save_IFS
10928
10929      ;;
10930 esac
10931 # We did not find ourselves, most probably we were run as `sh COMMAND'
10932 # in which case we are not to be found in the path.
10933 if test "x$as_myself" = x; then
10934   as_myself=$0
10935 fi
10936 if test ! -f "$as_myself"; then
10937   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10938   exit 1
10939 fi
10940
10941 # Unset variables that we do not need and which cause bugs (e.g. in
10942 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10943 # suppresses any "Segmentation fault" message there.  '((' could
10944 # trigger a bug in pdksh 5.2.14.
10945 for as_var in BASH_ENV ENV MAIL MAILPATH
10946 do eval test x\${$as_var+set} = xset \
10947   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10948 done
10949 PS1='$ '
10950 PS2='> '
10951 PS4='+ '
10952
10953 # NLS nuisances.
10954 LC_ALL=C
10955 export LC_ALL
10956 LANGUAGE=C
10957 export LANGUAGE
10958
10959 # CDPATH.
10960 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10961
10962
10963 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10964 # ----------------------------------------
10965 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10966 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10967 # script with STATUS, using 1 if that was 0.
10968 as_fn_error ()
10969 {
10970   as_status=$1; test $as_status -eq 0 && as_status=1
10971   if test "$4"; then
10972     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10973     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10974   fi
10975   $as_echo "$as_me: error: $2" >&2
10976   as_fn_exit $as_status
10977 } # as_fn_error
10978
10979
10980 # as_fn_set_status STATUS
10981 # -----------------------
10982 # Set $? to STATUS, without forking.
10983 as_fn_set_status ()
10984 {
10985   return $1
10986 } # as_fn_set_status
10987
10988 # as_fn_exit STATUS
10989 # -----------------
10990 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10991 as_fn_exit ()
10992 {
10993   set +e
10994   as_fn_set_status $1
10995   exit $1
10996 } # as_fn_exit
10997
10998 # as_fn_unset VAR
10999 # ---------------
11000 # Portably unset VAR.
11001 as_fn_unset ()
11002 {
11003   { eval $1=; unset $1;}
11004 }
11005 as_unset=as_fn_unset
11006 # as_fn_append VAR VALUE
11007 # ----------------------
11008 # Append the text in VALUE to the end of the definition contained in VAR. Take
11009 # advantage of any shell optimizations that allow amortized linear growth over
11010 # repeated appends, instead of the typical quadratic growth present in naive
11011 # implementations.
11012 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11013   eval 'as_fn_append ()
11014   {
11015     eval $1+=\$2
11016   }'
11017 else
11018   as_fn_append ()
11019   {
11020     eval $1=\$$1\$2
11021   }
11022 fi # as_fn_append
11023
11024 # as_fn_arith ARG...
11025 # ------------------
11026 # Perform arithmetic evaluation on the ARGs, and store the result in the
11027 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11028 # must be portable across $(()) and expr.
11029 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11030   eval 'as_fn_arith ()
11031   {
11032     as_val=$(( $* ))
11033   }'
11034 else
11035   as_fn_arith ()
11036   {
11037     as_val=`expr "$@" || test $? -eq 1`
11038   }
11039 fi # as_fn_arith
11040
11041
11042 if expr a : '\(a\)' >/dev/null 2>&1 &&
11043    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11044   as_expr=expr
11045 else
11046   as_expr=false
11047 fi
11048
11049 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11050   as_basename=basename
11051 else
11052   as_basename=false
11053 fi
11054
11055 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11056   as_dirname=dirname
11057 else
11058   as_dirname=false
11059 fi
11060
11061 as_me=`$as_basename -- "$0" ||
11062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11063          X"$0" : 'X\(//\)$' \| \
11064          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11065 $as_echo X/"$0" |
11066     sed '/^.*\/\([^/][^/]*\)\/*$/{
11067             s//\1/
11068             q
11069           }
11070           /^X\/\(\/\/\)$/{
11071             s//\1/
11072             q
11073           }
11074           /^X\/\(\/\).*/{
11075             s//\1/
11076             q
11077           }
11078           s/.*/./; q'`
11079
11080 # Avoid depending upon Character Ranges.
11081 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11082 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11083 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11084 as_cr_digits='0123456789'
11085 as_cr_alnum=$as_cr_Letters$as_cr_digits
11086
11087 ECHO_C= ECHO_N= ECHO_T=
11088 case `echo -n x` in #(((((
11089 -n*)
11090   case `echo 'xy\c'` in
11091   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11092   xy)  ECHO_C='\c';;
11093   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11094        ECHO_T=' ';;
11095   esac;;
11096 *)
11097   ECHO_N='-n';;
11098 esac
11099
11100 rm -f conf$$ conf$$.exe conf$$.file
11101 if test -d conf$$.dir; then
11102   rm -f conf$$.dir/conf$$.file
11103 else
11104   rm -f conf$$.dir
11105   mkdir conf$$.dir 2>/dev/null
11106 fi
11107 if (echo >conf$$.file) 2>/dev/null; then
11108   if ln -s conf$$.file conf$$ 2>/dev/null; then
11109     as_ln_s='ln -s'
11110     # ... but there are two gotchas:
11111     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11112     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11113     # In both cases, we have to default to `cp -p'.
11114     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11115       as_ln_s='cp -p'
11116   elif ln conf$$.file conf$$ 2>/dev/null; then
11117     as_ln_s=ln
11118   else
11119     as_ln_s='cp -p'
11120   fi
11121 else
11122   as_ln_s='cp -p'
11123 fi
11124 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11125 rmdir conf$$.dir 2>/dev/null
11126
11127
11128 # as_fn_mkdir_p
11129 # -------------
11130 # Create "$as_dir" as a directory, including parents if necessary.
11131 as_fn_mkdir_p ()
11132 {
11133
11134   case $as_dir in #(
11135   -*) as_dir=./$as_dir;;
11136   esac
11137   test -d "$as_dir" || eval $as_mkdir_p || {
11138     as_dirs=
11139     while :; do
11140       case $as_dir in #(
11141       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11142       *) as_qdir=$as_dir;;
11143       esac
11144       as_dirs="'$as_qdir' $as_dirs"
11145       as_dir=`$as_dirname -- "$as_dir" ||
11146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11147          X"$as_dir" : 'X\(//\)[^/]' \| \
11148          X"$as_dir" : 'X\(//\)$' \| \
11149          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11150 $as_echo X"$as_dir" |
11151     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11152             s//\1/
11153             q
11154           }
11155           /^X\(\/\/\)[^/].*/{
11156             s//\1/
11157             q
11158           }
11159           /^X\(\/\/\)$/{
11160             s//\1/
11161             q
11162           }
11163           /^X\(\/\).*/{
11164             s//\1/
11165             q
11166           }
11167           s/.*/./; q'`
11168       test -d "$as_dir" && break
11169     done
11170     test -z "$as_dirs" || eval "mkdir $as_dirs"
11171   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11172
11173
11174 } # as_fn_mkdir_p
11175 if mkdir -p . 2>/dev/null; then
11176   as_mkdir_p='mkdir -p "$as_dir"'
11177 else
11178   test -d ./-p && rmdir ./-p
11179   as_mkdir_p=false
11180 fi
11181
11182 if test -x / >/dev/null 2>&1; then
11183   as_test_x='test -x'
11184 else
11185   if ls -dL / >/dev/null 2>&1; then
11186     as_ls_L_option=L
11187   else
11188     as_ls_L_option=
11189   fi
11190   as_test_x='
11191     eval sh -c '\''
11192       if test -d "$1"; then
11193         test -d "$1/.";
11194       else
11195         case $1 in #(
11196         -*)set "./$1";;
11197         esac;
11198         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11199         ???[sx]*):;;*)false;;esac;fi
11200     '\'' sh
11201   '
11202 fi
11203 as_executable_p=$as_test_x
11204
11205 # Sed expression to map a string onto a valid CPP name.
11206 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11207
11208 # Sed expression to map a string onto a valid variable name.
11209 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11210
11211
11212 exec 6>&1
11213 ## ----------------------------------- ##
11214 ## Main body of $CONFIG_STATUS script. ##
11215 ## ----------------------------------- ##
11216 _ASEOF
11217 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11218
11219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11220 # Save the log message, to keep $0 and so on meaningful, and to
11221 # report actual input values of CONFIG_FILES etc. instead of their
11222 # values after options handling.
11223 ac_log="
11224 This file was extended by GNU Awk $as_me 4.0.1, which was
11225 generated by GNU Autoconf 2.68.  Invocation command line was
11226
11227   CONFIG_FILES    = $CONFIG_FILES
11228   CONFIG_HEADERS  = $CONFIG_HEADERS
11229   CONFIG_LINKS    = $CONFIG_LINKS
11230   CONFIG_COMMANDS = $CONFIG_COMMANDS
11231   $ $0 $@
11232
11233 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11234 "
11235
11236 _ACEOF
11237
11238 case $ac_config_files in *"
11239 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11240 esac
11241
11242 case $ac_config_headers in *"
11243 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11244 esac
11245
11246
11247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11248 # Files that config.status was made for.
11249 config_files="$ac_config_files"
11250 config_headers="$ac_config_headers"
11251 config_commands="$ac_config_commands"
11252
11253 _ACEOF
11254
11255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11256 ac_cs_usage="\
11257 \`$as_me' instantiates files and other configuration actions
11258 from templates according to the current configuration.  Unless the files
11259 and actions are specified as TAGs, all are instantiated by default.
11260
11261 Usage: $0 [OPTION]... [TAG]...
11262
11263   -h, --help       print this help, then exit
11264   -V, --version    print version number and configuration settings, then exit
11265       --config     print configuration, then exit
11266   -q, --quiet, --silent
11267                    do not print progress messages
11268   -d, --debug      don't remove temporary files
11269       --recheck    update $as_me by reconfiguring in the same conditions
11270       --file=FILE[:TEMPLATE]
11271                    instantiate the configuration file FILE
11272       --header=FILE[:TEMPLATE]
11273                    instantiate the configuration header FILE
11274
11275 Configuration files:
11276 $config_files
11277
11278 Configuration headers:
11279 $config_headers
11280
11281 Configuration commands:
11282 $config_commands
11283
11284 Report bugs to <bug-gawk@gnu.org>.
11285 GNU Awk home page: <http://www.gnu.org/software/gawk/>.
11286 General help using GNU software: <http://www.gnu.org/gethelp/>."
11287
11288 _ACEOF
11289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11290 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11291 ac_cs_version="\\
11292 GNU Awk config.status 4.0.1
11293 configured by $0, generated by GNU Autoconf 2.68,
11294   with options \\"\$ac_cs_config\\"
11295
11296 Copyright (C) 2010 Free Software Foundation, Inc.
11297 This config.status script is free software; the Free Software Foundation
11298 gives unlimited permission to copy, distribute and modify it."
11299
11300 ac_pwd='$ac_pwd'
11301 srcdir='$srcdir'
11302 INSTALL='$INSTALL'
11303 MKDIR_P='$MKDIR_P'
11304 AWK='$AWK'
11305 test -n "\$AWK" || AWK=awk
11306 _ACEOF
11307
11308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11309 # The default lists apply if the user does not specify any file.
11310 ac_need_defaults=:
11311 while test $# != 0
11312 do
11313   case $1 in
11314   --*=?*)
11315     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11316     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11317     ac_shift=:
11318     ;;
11319   --*=)
11320     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11321     ac_optarg=
11322     ac_shift=:
11323     ;;
11324   *)
11325     ac_option=$1
11326     ac_optarg=$2
11327     ac_shift=shift
11328     ;;
11329   esac
11330
11331   case $ac_option in
11332   # Handling of the options.
11333   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11334     ac_cs_recheck=: ;;
11335   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11336     $as_echo "$ac_cs_version"; exit ;;
11337   --config | --confi | --conf | --con | --co | --c )
11338     $as_echo "$ac_cs_config"; exit ;;
11339   --debug | --debu | --deb | --de | --d | -d )
11340     debug=: ;;
11341   --file | --fil | --fi | --f )
11342     $ac_shift
11343     case $ac_optarg in
11344     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11345     '') as_fn_error $? "missing file argument" ;;
11346     esac
11347     as_fn_append CONFIG_FILES " '$ac_optarg'"
11348     ac_need_defaults=false;;
11349   --header | --heade | --head | --hea )
11350     $ac_shift
11351     case $ac_optarg in
11352     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11353     esac
11354     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11355     ac_need_defaults=false;;
11356   --he | --h)
11357     # Conflict between --help and --header
11358     as_fn_error $? "ambiguous option: \`$1'
11359 Try \`$0 --help' for more information.";;
11360   --help | --hel | -h )
11361     $as_echo "$ac_cs_usage"; exit ;;
11362   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11363   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11364     ac_cs_silent=: ;;
11365
11366   # This is an error.
11367   -*) as_fn_error $? "unrecognized option: \`$1'
11368 Try \`$0 --help' for more information." ;;
11369
11370   *) as_fn_append ac_config_targets " $1"
11371      ac_need_defaults=false ;;
11372
11373   esac
11374   shift
11375 done
11376
11377 ac_configure_extra_args=
11378
11379 if $ac_cs_silent; then
11380   exec 6>/dev/null
11381   ac_configure_extra_args="$ac_configure_extra_args --silent"
11382 fi
11383
11384 _ACEOF
11385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11386 if \$ac_cs_recheck; then
11387   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11388   shift
11389   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11390   CONFIG_SHELL='$SHELL'
11391   export CONFIG_SHELL
11392   exec "\$@"
11393 fi
11394
11395 _ACEOF
11396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11397 exec 5>>config.log
11398 {
11399   echo
11400   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11401 ## Running $as_me. ##
11402 _ASBOX
11403   $as_echo "$ac_log"
11404 } >&5
11405
11406 _ACEOF
11407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11408 #
11409 # INIT-COMMANDS
11410 #
11411 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11412 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11413     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11414     # from automake < 1.5.
11415     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11416     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11417     LINGUAS="${LINGUAS-%UNSET%}"
11418
11419
11420 _ACEOF
11421
11422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11423
11424 # Handling of arguments.
11425 for ac_config_target in $ac_config_targets
11426 do
11427   case $ac_config_target in
11428     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11429     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
11430     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
11431     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11432     "awklib/Makefile") CONFIG_FILES="$CONFIG_FILES awklib/Makefile" ;;
11433     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11434     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11435     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11436
11437   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11438   esac
11439 done
11440
11441
11442 # If the user did not use the arguments to specify the items to instantiate,
11443 # then the envvar interface is used.  Set only those that are not.
11444 # We use the long form for the default assignment because of an extremely
11445 # bizarre bug on SunOS 4.1.3.
11446 if $ac_need_defaults; then
11447   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11448   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11449   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11450 fi
11451
11452 # Have a temporary directory for convenience.  Make it in the build tree
11453 # simply because there is no reason against having it here, and in addition,
11454 # creating and moving files from /tmp can sometimes cause problems.
11455 # Hook for its removal unless debugging.
11456 # Note that there is a small window in which the directory will not be cleaned:
11457 # after its creation but before its name has been assigned to `$tmp'.
11458 $debug ||
11459 {
11460   tmp= ac_tmp=
11461   trap 'exit_status=$?
11462   : "${ac_tmp:=$tmp}"
11463   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11464 ' 0
11465   trap 'as_fn_exit 1' 1 2 13 15
11466 }
11467 # Create a (secure) tmp directory for tmp files.
11468
11469 {
11470   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11471   test -d "$tmp"
11472 }  ||
11473 {
11474   tmp=./conf$$-$RANDOM
11475   (umask 077 && mkdir "$tmp")
11476 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11477 ac_tmp=$tmp
11478
11479 # Set up the scripts for CONFIG_FILES section.
11480 # No need to generate them if there are no CONFIG_FILES.
11481 # This happens for instance with `./config.status config.h'.
11482 if test -n "$CONFIG_FILES"; then
11483
11484
11485 ac_cr=`echo X | tr X '\015'`
11486 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11487 # But we know of no other shell where ac_cr would be empty at this
11488 # point, so we can use a bashism as a fallback.
11489 if test "x$ac_cr" = x; then
11490   eval ac_cr=\$\'\\r\'
11491 fi
11492 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11493 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11494   ac_cs_awk_cr='\\r'
11495 else
11496   ac_cs_awk_cr=$ac_cr
11497 fi
11498
11499 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11500 _ACEOF
11501
11502
11503 {
11504   echo "cat >conf$$subs.awk <<_ACEOF" &&
11505   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11506   echo "_ACEOF"
11507 } >conf$$subs.sh ||
11508   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11509 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11510 ac_delim='%!_!# '
11511 for ac_last_try in false false false false false :; do
11512   . ./conf$$subs.sh ||
11513     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11514
11515   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11516   if test $ac_delim_n = $ac_delim_num; then
11517     break
11518   elif $ac_last_try; then
11519     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11520   else
11521     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11522   fi
11523 done
11524 rm -f conf$$subs.sh
11525
11526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11527 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11528 _ACEOF
11529 sed -n '
11530 h
11531 s/^/S["/; s/!.*/"]=/
11532 p
11533 g
11534 s/^[^!]*!//
11535 :repl
11536 t repl
11537 s/'"$ac_delim"'$//
11538 t delim
11539 :nl
11540 h
11541 s/\(.\{148\}\)..*/\1/
11542 t more1
11543 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11544 p
11545 n
11546 b repl
11547 :more1
11548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11549 p
11550 g
11551 s/.\{148\}//
11552 t nl
11553 :delim
11554 h
11555 s/\(.\{148\}\)..*/\1/
11556 t more2
11557 s/["\\]/\\&/g; s/^/"/; s/$/"/
11558 p
11559 b
11560 :more2
11561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11562 p
11563 g
11564 s/.\{148\}//
11565 t delim
11566 ' <conf$$subs.awk | sed '
11567 /^[^""]/{
11568   N
11569   s/\n//
11570 }
11571 ' >>$CONFIG_STATUS || ac_write_fail=1
11572 rm -f conf$$subs.awk
11573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11574 _ACAWK
11575 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11576   for (key in S) S_is_set[key] = 1
11577   FS = "\a"
11578
11579 }
11580 {
11581   line = $ 0
11582   nfields = split(line, field, "@")
11583   substed = 0
11584   len = length(field[1])
11585   for (i = 2; i < nfields; i++) {
11586     key = field[i]
11587     keylen = length(key)
11588     if (S_is_set[key]) {
11589       value = S[key]
11590       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11591       len += length(value) + length(field[++i])
11592       substed = 1
11593     } else
11594       len += 1 + keylen
11595   }
11596
11597   print line
11598 }
11599
11600 _ACAWK
11601 _ACEOF
11602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11603 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11604   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11605 else
11606   cat
11607 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11608   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11609 _ACEOF
11610
11611 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11612 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11613 # trailing colons and then remove the whole line if VPATH becomes empty
11614 # (actually we leave an empty line to preserve line numbers).
11615 if test "x$srcdir" = x.; then
11616   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
11617 h
11618 s///
11619 s/^/:/
11620 s/[      ]*$/:/
11621 s/:\$(srcdir):/:/g
11622 s/:\${srcdir}:/:/g
11623 s/:@srcdir@:/:/g
11624 s/^:*//
11625 s/:*$//
11626 x
11627 s/\(=[   ]*\).*/\1/
11628 G
11629 s/\n//
11630 s/^[^=]*=[       ]*$//
11631 }'
11632 fi
11633
11634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11635 fi # test -n "$CONFIG_FILES"
11636
11637 # Set up the scripts for CONFIG_HEADERS section.
11638 # No need to generate them if there are no CONFIG_HEADERS.
11639 # This happens for instance with `./config.status Makefile'.
11640 if test -n "$CONFIG_HEADERS"; then
11641 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11642 BEGIN {
11643 _ACEOF
11644
11645 # Transform confdefs.h into an awk script `defines.awk', embedded as
11646 # here-document in config.status, that substitutes the proper values into
11647 # config.h.in to produce config.h.
11648
11649 # Create a delimiter string that does not exist in confdefs.h, to ease
11650 # handling of long lines.
11651 ac_delim='%!_!# '
11652 for ac_last_try in false false :; do
11653   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11654   if test -z "$ac_tt"; then
11655     break
11656   elif $ac_last_try; then
11657     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11658   else
11659     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11660   fi
11661 done
11662
11663 # For the awk script, D is an array of macro values keyed by name,
11664 # likewise P contains macro parameters if any.  Preserve backslash
11665 # newline sequences.
11666
11667 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11668 sed -n '
11669 s/.\{148\}/&'"$ac_delim"'/g
11670 t rset
11671 :rset
11672 s/^[     ]*#[    ]*define[       ][      ]*/ /
11673 t def
11674 d
11675 :def
11676 s/\\$//
11677 t bsnl
11678 s/["\\]/\\&/g
11679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11680 D["\1"]=" \3"/p
11681 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11682 d
11683 :bsnl
11684 s/["\\]/\\&/g
11685 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11686 D["\1"]=" \3\\\\\\n"\\/p
11687 t cont
11688 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11689 t cont
11690 d
11691 :cont
11692 n
11693 s/.\{148\}/&'"$ac_delim"'/g
11694 t clear
11695 :clear
11696 s/\\$//
11697 t bsnlc
11698 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11699 d
11700 :bsnlc
11701 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11702 b cont
11703 ' <confdefs.h | sed '
11704 s/'"$ac_delim"'/"\\\
11705 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11706
11707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11708   for (key in D) D_is_set[key] = 1
11709   FS = "\a"
11710 }
11711 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11712   line = \$ 0
11713   split(line, arg, " ")
11714   if (arg[1] == "#") {
11715     defundef = arg[2]
11716     mac1 = arg[3]
11717   } else {
11718     defundef = substr(arg[1], 2)
11719     mac1 = arg[2]
11720   }
11721   split(mac1, mac2, "(") #)
11722   macro = mac2[1]
11723   prefix = substr(line, 1, index(line, defundef) - 1)
11724   if (D_is_set[macro]) {
11725     # Preserve the white space surrounding the "#".
11726     print prefix "define", macro P[macro] D[macro]
11727     next
11728   } else {
11729     # Replace #undef with comments.  This is necessary, for example,
11730     # in the case of _POSIX_SOURCE, which is predefined and required
11731     # on some systems where configure will not decide to define it.
11732     if (defundef == "undef") {
11733       print "/*", prefix defundef, macro, "*/"
11734       next
11735     }
11736   }
11737 }
11738 { print }
11739 _ACAWK
11740 _ACEOF
11741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11742   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11743 fi # test -n "$CONFIG_HEADERS"
11744
11745
11746 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11747 shift
11748 for ac_tag
11749 do
11750   case $ac_tag in
11751   :[FHLC]) ac_mode=$ac_tag; continue;;
11752   esac
11753   case $ac_mode$ac_tag in
11754   :[FHL]*:*);;
11755   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11756   :[FH]-) ac_tag=-:-;;
11757   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11758   esac
11759   ac_save_IFS=$IFS
11760   IFS=:
11761   set x $ac_tag
11762   IFS=$ac_save_IFS
11763   shift
11764   ac_file=$1
11765   shift
11766
11767   case $ac_mode in
11768   :L) ac_source=$1;;
11769   :[FH])
11770     ac_file_inputs=
11771     for ac_f
11772     do
11773       case $ac_f in
11774       -) ac_f="$ac_tmp/stdin";;
11775       *) # Look for the file first in the build tree, then in the source tree
11776          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11777          # because $ac_f cannot contain `:'.
11778          test -f "$ac_f" ||
11779            case $ac_f in
11780            [\\/$]*) false;;
11781            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11782            esac ||
11783            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11784       esac
11785       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11786       as_fn_append ac_file_inputs " '$ac_f'"
11787     done
11788
11789     # Let's still pretend it is `configure' which instantiates (i.e., don't
11790     # use $as_me), people would be surprised to read:
11791     #    /* config.h.  Generated by config.status.  */
11792     configure_input='Generated from '`
11793           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11794         `' by configure.'
11795     if test x"$ac_file" != x-; then
11796       configure_input="$ac_file.  $configure_input"
11797       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11798 $as_echo "$as_me: creating $ac_file" >&6;}
11799     fi
11800     # Neutralize special characters interpreted by sed in replacement strings.
11801     case $configure_input in #(
11802     *\&* | *\|* | *\\* )
11803        ac_sed_conf_input=`$as_echo "$configure_input" |
11804        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11805     *) ac_sed_conf_input=$configure_input;;
11806     esac
11807
11808     case $ac_tag in
11809     *:-:* | *:-) cat >"$ac_tmp/stdin" \
11810       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11811     esac
11812     ;;
11813   esac
11814
11815   ac_dir=`$as_dirname -- "$ac_file" ||
11816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11817          X"$ac_file" : 'X\(//\)[^/]' \| \
11818          X"$ac_file" : 'X\(//\)$' \| \
11819          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11820 $as_echo X"$ac_file" |
11821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11822             s//\1/
11823             q
11824           }
11825           /^X\(\/\/\)[^/].*/{
11826             s//\1/
11827             q
11828           }
11829           /^X\(\/\/\)$/{
11830             s//\1/
11831             q
11832           }
11833           /^X\(\/\).*/{
11834             s//\1/
11835             q
11836           }
11837           s/.*/./; q'`
11838   as_dir="$ac_dir"; as_fn_mkdir_p
11839   ac_builddir=.
11840
11841 case "$ac_dir" in
11842 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11843 *)
11844   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11845   # A ".." for each directory in $ac_dir_suffix.
11846   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11847   case $ac_top_builddir_sub in
11848   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11849   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11850   esac ;;
11851 esac
11852 ac_abs_top_builddir=$ac_pwd
11853 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11854 # for backward compatibility:
11855 ac_top_builddir=$ac_top_build_prefix
11856
11857 case $srcdir in
11858   .)  # We are building in place.
11859     ac_srcdir=.
11860     ac_top_srcdir=$ac_top_builddir_sub
11861     ac_abs_top_srcdir=$ac_pwd ;;
11862   [\\/]* | ?:[\\/]* )  # Absolute name.
11863     ac_srcdir=$srcdir$ac_dir_suffix;
11864     ac_top_srcdir=$srcdir
11865     ac_abs_top_srcdir=$srcdir ;;
11866   *) # Relative name.
11867     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11868     ac_top_srcdir=$ac_top_build_prefix$srcdir
11869     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11870 esac
11871 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11872
11873
11874   case $ac_mode in
11875   :F)
11876   #
11877   # CONFIG_FILE
11878   #
11879
11880   case $INSTALL in
11881   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11882   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11883   esac
11884   ac_MKDIR_P=$MKDIR_P
11885   case $MKDIR_P in
11886   [\\/$]* | ?:[\\/]* ) ;;
11887   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11888   esac
11889 _ACEOF
11890
11891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11892 # If the template does not know about datarootdir, expand it.
11893 # FIXME: This hack should be removed a few years after 2.60.
11894 ac_datarootdir_hack=; ac_datarootdir_seen=
11895 ac_sed_dataroot='
11896 /datarootdir/ {
11897   p
11898   q
11899 }
11900 /@datadir@/p
11901 /@docdir@/p
11902 /@infodir@/p
11903 /@localedir@/p
11904 /@mandir@/p'
11905 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11906 *datarootdir*) ac_datarootdir_seen=yes;;
11907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11908   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11909 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11910 _ACEOF
11911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11912   ac_datarootdir_hack='
11913   s&@datadir@&$datadir&g
11914   s&@docdir@&$docdir&g
11915   s&@infodir@&$infodir&g
11916   s&@localedir@&$localedir&g
11917   s&@mandir@&$mandir&g
11918   s&\\\${datarootdir}&$datarootdir&g' ;;
11919 esac
11920 _ACEOF
11921
11922 # Neutralize VPATH when `$srcdir' = `.'.
11923 # Shell code in configure.ac might set extrasub.
11924 # FIXME: do we really want to maintain this feature?
11925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11926 ac_sed_extra="$ac_vpsub
11927 $extrasub
11928 _ACEOF
11929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11930 :t
11931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11932 s|@configure_input@|$ac_sed_conf_input|;t t
11933 s&@top_builddir@&$ac_top_builddir_sub&;t t
11934 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11935 s&@srcdir@&$ac_srcdir&;t t
11936 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11937 s&@top_srcdir@&$ac_top_srcdir&;t t
11938 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11939 s&@builddir@&$ac_builddir&;t t
11940 s&@abs_builddir@&$ac_abs_builddir&;t t
11941 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11942 s&@INSTALL@&$ac_INSTALL&;t t
11943 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11944 $ac_datarootdir_hack
11945 "
11946 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11947   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11948
11949 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11950   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11951   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
11952       "$ac_tmp/out"`; test -z "$ac_out"; } &&
11953   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11954 which seems to be undefined.  Please make sure it is defined" >&5
11955 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11956 which seems to be undefined.  Please make sure it is defined" >&2;}
11957
11958   rm -f "$ac_tmp/stdin"
11959   case $ac_file in
11960   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11961   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11962   esac \
11963   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11964  ;;
11965   :H)
11966   #
11967   # CONFIG_HEADER
11968   #
11969   if test x"$ac_file" != x-; then
11970     {
11971       $as_echo "/* $configure_input  */" \
11972       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11973     } >"$ac_tmp/config.h" \
11974       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11975     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11976       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11977 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11978     else
11979       rm -f "$ac_file"
11980       mv "$ac_tmp/config.h" "$ac_file" \
11981         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11982     fi
11983   else
11984     $as_echo "/* $configure_input  */" \
11985       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11986       || as_fn_error $? "could not create -" "$LINENO" 5
11987   fi
11988 # Compute "$ac_file"'s index in $config_headers.
11989 _am_arg="$ac_file"
11990 _am_stamp_count=1
11991 for _am_header in $config_headers :; do
11992   case $_am_header in
11993     $_am_arg | $_am_arg:* )
11994       break ;;
11995     * )
11996       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11997   esac
11998 done
11999 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12000 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12001          X"$_am_arg" : 'X\(//\)[^/]' \| \
12002          X"$_am_arg" : 'X\(//\)$' \| \
12003          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12004 $as_echo X"$_am_arg" |
12005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12006             s//\1/
12007             q
12008           }
12009           /^X\(\/\/\)[^/].*/{
12010             s//\1/
12011             q
12012           }
12013           /^X\(\/\/\)$/{
12014             s//\1/
12015             q
12016           }
12017           /^X\(\/\).*/{
12018             s//\1/
12019             q
12020           }
12021           s/.*/./; q'`/stamp-h$_am_stamp_count
12022  ;;
12023
12024   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12025 $as_echo "$as_me: executing $ac_file commands" >&6;}
12026  ;;
12027   esac
12028
12029
12030   case $ac_file$ac_mode in
12031     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12032   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12033   # are listed without --file.  Let's play safe and only enable the eval
12034   # if we detect the quoting.
12035   case $CONFIG_FILES in
12036   *\'*) eval set x "$CONFIG_FILES" ;;
12037   *)   set x $CONFIG_FILES ;;
12038   esac
12039   shift
12040   for mf
12041   do
12042     # Strip MF so we end up with the name of the file.
12043     mf=`echo "$mf" | sed -e 's/:.*$//'`
12044     # Check whether this is an Automake generated Makefile or not.
12045     # We used to match only the files named `Makefile.in', but
12046     # some people rename them; so instead we look at the file content.
12047     # Grep'ing the first line is not enough: some people post-process
12048     # each Makefile.in and add a new line on top of each file to say so.
12049     # Grep'ing the whole file is not good either: AIX grep has a line
12050     # limit of 2048, but all sed's we know have understand at least 4000.
12051     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12052       dirpart=`$as_dirname -- "$mf" ||
12053 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12054          X"$mf" : 'X\(//\)[^/]' \| \
12055          X"$mf" : 'X\(//\)$' \| \
12056          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12057 $as_echo X"$mf" |
12058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12059             s//\1/
12060             q
12061           }
12062           /^X\(\/\/\)[^/].*/{
12063             s//\1/
12064             q
12065           }
12066           /^X\(\/\/\)$/{
12067             s//\1/
12068             q
12069           }
12070           /^X\(\/\).*/{
12071             s//\1/
12072             q
12073           }
12074           s/.*/./; q'`
12075     else
12076       continue
12077     fi
12078     # Extract the definition of DEPDIR, am__include, and am__quote
12079     # from the Makefile without running `make'.
12080     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12081     test -z "$DEPDIR" && continue
12082     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12083     test -z "am__include" && continue
12084     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12085     # When using ansi2knr, U may be empty or an underscore; expand it
12086     U=`sed -n 's/^U = //p' < "$mf"`
12087     # Find all dependency output files, they are included files with
12088     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12089     # simplest approach to changing $(DEPDIR) to its actual value in the
12090     # expansion.
12091     for file in `sed -n "
12092       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12093          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12094       # Make sure the directory exists.
12095       test -f "$dirpart/$file" && continue
12096       fdir=`$as_dirname -- "$file" ||
12097 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12098          X"$file" : 'X\(//\)[^/]' \| \
12099          X"$file" : 'X\(//\)$' \| \
12100          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12101 $as_echo X"$file" |
12102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12103             s//\1/
12104             q
12105           }
12106           /^X\(\/\/\)[^/].*/{
12107             s//\1/
12108             q
12109           }
12110           /^X\(\/\/\)$/{
12111             s//\1/
12112             q
12113           }
12114           /^X\(\/\).*/{
12115             s//\1/
12116             q
12117           }
12118           s/.*/./; q'`
12119       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12120       # echo "creating $dirpart/$file"
12121       echo '# dummy' > "$dirpart/$file"
12122     done
12123   done
12124 }
12125  ;;
12126     "po-directories":C)
12127     for ac_file in $CONFIG_FILES; do
12128       # Support "outfile[:infile[:infile...]]"
12129       case "$ac_file" in
12130         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12131       esac
12132       # PO directories have a Makefile.in generated from Makefile.in.in.
12133       case "$ac_file" in */Makefile.in)
12134         # Adjust a relative srcdir.
12135         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12136         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12137         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12138         # In autoconf-2.13 it is called $ac_given_srcdir.
12139         # In autoconf-2.50 it is called $srcdir.
12140         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12141         case "$ac_given_srcdir" in
12142           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12143           /*) top_srcdir="$ac_given_srcdir" ;;
12144           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12145         esac
12146         # Treat a directory as a PO directory if and only if it has a
12147         # POTFILES.in file. This allows packages to have multiple PO
12148         # directories under different names or in different locations.
12149         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12150           rm -f "$ac_dir/POTFILES"
12151           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12152           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12153           POMAKEFILEDEPS="POTFILES.in"
12154           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12155           # on $ac_dir but don't depend on user-specified configuration
12156           # parameters.
12157           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12158             # The LINGUAS file contains the set of available languages.
12159             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12160               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12161             fi
12162             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12163             # Hide the ALL_LINGUAS assigment from automake < 1.5.
12164             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12165             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12166           else
12167             # The set of available languages was given in configure.in.
12168             # Hide the ALL_LINGUAS assigment from automake < 1.5.
12169             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12170           fi
12171           # Compute POFILES
12172           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12173           # Compute UPDATEPOFILES
12174           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12175           # Compute DUMMYPOFILES
12176           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12177           # Compute GMOFILES
12178           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12179           case "$ac_given_srcdir" in
12180             .) srcdirpre= ;;
12181             *) srcdirpre='$(srcdir)/' ;;
12182           esac
12183           POFILES=
12184           UPDATEPOFILES=
12185           DUMMYPOFILES=
12186           GMOFILES=
12187           for lang in $ALL_LINGUAS; do
12188             POFILES="$POFILES $srcdirpre$lang.po"
12189             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12190             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12191             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12192           done
12193           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12194           # environment variable.
12195           INST_LINGUAS=
12196           if test -n "$ALL_LINGUAS"; then
12197             for presentlang in $ALL_LINGUAS; do
12198               useit=no
12199               if test "%UNSET%" != "$LINGUAS"; then
12200                 desiredlanguages="$LINGUAS"
12201               else
12202                 desiredlanguages="$ALL_LINGUAS"
12203               fi
12204               for desiredlang in $desiredlanguages; do
12205                 # Use the presentlang catalog if desiredlang is
12206                 #   a. equal to presentlang, or
12207                 #   b. a variant of presentlang (because in this case,
12208                 #      presentlang can be used as a fallback for messages
12209                 #      which are not translated in the desiredlang catalog).
12210                 case "$desiredlang" in
12211                   "$presentlang"*) useit=yes;;
12212                 esac
12213               done
12214               if test $useit = yes; then
12215                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12216               fi
12217             done
12218           fi
12219           CATALOGS=
12220           if test -n "$INST_LINGUAS"; then
12221             for lang in $INST_LINGUAS; do
12222               CATALOGS="$CATALOGS $lang.gmo"
12223             done
12224           fi
12225           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12226           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12227           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12228             if test -f "$f"; then
12229               case "$f" in
12230                 *.orig | *.bak | *~) ;;
12231                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12232               esac
12233             fi
12234           done
12235         fi
12236         ;;
12237       esac
12238     done ;;
12239
12240   esac
12241 done # for ac_tag
12242
12243
12244 as_fn_exit 0
12245 _ACEOF
12246 ac_clean_files=$ac_clean_files_save
12247
12248 test $ac_write_fail = 0 ||
12249   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12250
12251
12252 # configure is writing to config.log, and then calls config.status.
12253 # config.status does its own redirection, appending to config.log.
12254 # Unfortunately, on DOS this fails, as config.log is still kept open
12255 # by configure, so config.status won't be able to write to it; its
12256 # output is simply discarded.  So we exec the FD to /dev/null,
12257 # effectively closing config.log, so it can be properly (re)opened and
12258 # appended to by config.status.  When coming back to configure, we
12259 # need to make the FD available again.
12260 if test "$no_create" != yes; then
12261   ac_cs_success=:
12262   ac_config_status_args=
12263   test "$silent" = yes &&
12264     ac_config_status_args="$ac_config_status_args --quiet"
12265   exec 5>/dev/null
12266   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12267   exec 5>>config.log
12268   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12269   # would make configure fail if this is the last instruction.
12270   $ac_cs_success || as_fn_exit 1
12271 fi
12272 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12274 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12275 fi
12276