Update spec to require automake >= 1.13
[platform/upstream/gawk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Awk 4.1.1.
4 #
5 # Report bugs to <bug-gawk@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gawk@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='GNU Awk'
582 PACKAGE_TARNAME='gawk'
583 PACKAGE_VERSION='4.1.1'
584 PACKAGE_STRING='GNU Awk 4.1.1'
585 PACKAGE_BUGREPORT='bug-gawk@gnu.org'
586 PACKAGE_URL='http://www.gnu.org/software/gawk/'
587
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 #  include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #  include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 gt_needs=
625 ac_header_list=
626 ac_func_list=
627 enable_option_checking=no
628 ac_subst_vars='am__EXEEXT_FALSE
629 am__EXEEXT_TRUE
630 LTLIBOBJS
631 subdirs
632 GAWKLIBEXT
633 LIBMPFR
634 LIBREADLINE
635 SOCKET_LIBS
636 LIBSIGSEGV_PREFIX
637 LTLIBSIGSEGV
638 LIBSIGSEGV
639 HAVE_LIBSIGSEGV
640 LIBOBJS
641 TEST_CROSS_COMPILE_FALSE
642 TEST_CROSS_COMPILE_TRUE
643 POSUB
644 LTLIBINTL
645 LIBINTL
646 INTLLIBS
647 LTLIBICONV
648 LIBICONV
649 INTL_MACOSX_LIBS
650 XGETTEXT_EXTRA_OPTIONS
651 MSGMERGE
652 XGETTEXT_015
653 XGETTEXT
654 GMSGFMT_015
655 MSGFMT_015
656 GMSGFMT
657 MSGFMT
658 GETTEXT_MACRO_VERSION
659 USE_NLS
660 pkgextensiondir
661 acl_shlibext
662 LN_S
663 YFLAGS
664 YACC
665 EGREP
666 GREP
667 CPP
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 am__nodep
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 AM_BACKSLASH
694 AM_DEFAULT_VERBOSITY
695 AM_DEFAULT_V
696 AM_V
697 am__untar
698 am__tar
699 AMTAR
700 am__leading_dot
701 SET_MAKE
702 AWK
703 mkdir_p
704 MKDIR_P
705 INSTALL_STRIP_PROGRAM
706 STRIP
707 install_sh
708 MAKEINFO
709 AUTOHEADER
710 AUTOMAKE
711 AUTOCONF
712 ACLOCAL
713 VERSION
714 PACKAGE
715 CYGPATH_W
716 am__isrc
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_silent_rules
762 with_whiny_user_strftime
763 enable_lint
764 enable_dependency_tracking
765 enable_largefile
766 enable_nls
767 with_gnu_ld
768 enable_rpath
769 with_libiconv_prefix
770 with_libintl_prefix
771 with_libsigsegv_prefix
772 enable_extensions
773 with_readline
774 with_mpfr
775 '
776       ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 YACC
786 YFLAGS'
787 ac_subdirs_all='extension'
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841   # If the previous option needs an argument, assign it.
842   if test -n "$ac_prev"; then
843     eval $ac_prev=\$ac_option
844     ac_prev=
845     continue
846   fi
847
848   case $ac_option in
849   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850   *=)   ac_optarg= ;;
851   *)    ac_optarg=yes ;;
852   esac
853
854   # Accept the important Cygnus configure options, so we can diagnose typos.
855
856   case $ac_dashdash$ac_option in
857   --)
858     ac_dashdash=yes ;;
859
860   -bindir | --bindir | --bindi | --bind | --bin | --bi)
861     ac_prev=bindir ;;
862   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863     bindir=$ac_optarg ;;
864
865   -build | --build | --buil | --bui | --bu)
866     ac_prev=build_alias ;;
867   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868     build_alias=$ac_optarg ;;
869
870   -cache-file | --cache-file | --cache-fil | --cache-fi \
871   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872     ac_prev=cache_file ;;
873   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875     cache_file=$ac_optarg ;;
876
877   --config-cache | -C)
878     cache_file=config.cache ;;
879
880   -datadir | --datadir | --datadi | --datad)
881     ac_prev=datadir ;;
882   -datadir=* | --datadir=* | --datadi=* | --datad=*)
883     datadir=$ac_optarg ;;
884
885   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886   | --dataroo | --dataro | --datar)
887     ac_prev=datarootdir ;;
888   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890     datarootdir=$ac_optarg ;;
891
892   -disable-* | --disable-*)
893     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894     # Reject names that are not valid shell variable names.
895     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896       as_fn_error $? "invalid feature name: $ac_useropt"
897     ac_useropt_orig=$ac_useropt
898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899     case $ac_user_opts in
900       *"
901 "enable_$ac_useropt"
902 "*) ;;
903       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904          ac_unrecognized_sep=', ';;
905     esac
906     eval enable_$ac_useropt=no ;;
907
908   -docdir | --docdir | --docdi | --doc | --do)
909     ac_prev=docdir ;;
910   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911     docdir=$ac_optarg ;;
912
913   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914     ac_prev=dvidir ;;
915   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916     dvidir=$ac_optarg ;;
917
918   -enable-* | --enable-*)
919     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922       as_fn_error $? "invalid feature name: $ac_useropt"
923     ac_useropt_orig=$ac_useropt
924     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925     case $ac_user_opts in
926       *"
927 "enable_$ac_useropt"
928 "*) ;;
929       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930          ac_unrecognized_sep=', ';;
931     esac
932     eval enable_$ac_useropt=\$ac_optarg ;;
933
934   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936   | --exec | --exe | --ex)
937     ac_prev=exec_prefix ;;
938   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940   | --exec=* | --exe=* | --ex=*)
941     exec_prefix=$ac_optarg ;;
942
943   -gas | --gas | --ga | --g)
944     # Obsolete; use --with-gas.
945     with_gas=yes ;;
946
947   -help | --help | --hel | --he | -h)
948     ac_init_help=long ;;
949   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950     ac_init_help=recursive ;;
951   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952     ac_init_help=short ;;
953
954   -host | --host | --hos | --ho)
955     ac_prev=host_alias ;;
956   -host=* | --host=* | --hos=* | --ho=*)
957     host_alias=$ac_optarg ;;
958
959   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960     ac_prev=htmldir ;;
961   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962   | --ht=*)
963     htmldir=$ac_optarg ;;
964
965   -includedir | --includedir | --includedi | --included | --include \
966   | --includ | --inclu | --incl | --inc)
967     ac_prev=includedir ;;
968   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969   | --includ=* | --inclu=* | --incl=* | --inc=*)
970     includedir=$ac_optarg ;;
971
972   -infodir | --infodir | --infodi | --infod | --info | --inf)
973     ac_prev=infodir ;;
974   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975     infodir=$ac_optarg ;;
976
977   -libdir | --libdir | --libdi | --libd)
978     ac_prev=libdir ;;
979   -libdir=* | --libdir=* | --libdi=* | --libd=*)
980     libdir=$ac_optarg ;;
981
982   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983   | --libexe | --libex | --libe)
984     ac_prev=libexecdir ;;
985   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986   | --libexe=* | --libex=* | --libe=*)
987     libexecdir=$ac_optarg ;;
988
989   -localedir | --localedir | --localedi | --localed | --locale)
990     ac_prev=localedir ;;
991   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992     localedir=$ac_optarg ;;
993
994   -localstatedir | --localstatedir | --localstatedi | --localstated \
995   | --localstate | --localstat | --localsta | --localst | --locals)
996     ac_prev=localstatedir ;;
997   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999     localstatedir=$ac_optarg ;;
1000
1001   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002     ac_prev=mandir ;;
1003   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004     mandir=$ac_optarg ;;
1005
1006   -nfp | --nfp | --nf)
1007     # Obsolete; use --without-fp.
1008     with_fp=no ;;
1009
1010   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011   | --no-cr | --no-c | -n)
1012     no_create=yes ;;
1013
1014   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016     no_recursion=yes ;;
1017
1018   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020   | --oldin | --oldi | --old | --ol | --o)
1021     ac_prev=oldincludedir ;;
1022   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025     oldincludedir=$ac_optarg ;;
1026
1027   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028     ac_prev=prefix ;;
1029   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030     prefix=$ac_optarg ;;
1031
1032   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033   | --program-pre | --program-pr | --program-p)
1034     ac_prev=program_prefix ;;
1035   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037     program_prefix=$ac_optarg ;;
1038
1039   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040   | --program-suf | --program-su | --program-s)
1041     ac_prev=program_suffix ;;
1042   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044     program_suffix=$ac_optarg ;;
1045
1046   -program-transform-name | --program-transform-name \
1047   | --program-transform-nam | --program-transform-na \
1048   | --program-transform-n | --program-transform- \
1049   | --program-transform | --program-transfor \
1050   | --program-transfo | --program-transf \
1051   | --program-trans | --program-tran \
1052   | --progr-tra | --program-tr | --program-t)
1053     ac_prev=program_transform_name ;;
1054   -program-transform-name=* | --program-transform-name=* \
1055   | --program-transform-nam=* | --program-transform-na=* \
1056   | --program-transform-n=* | --program-transform-=* \
1057   | --program-transform=* | --program-transfor=* \
1058   | --program-transfo=* | --program-transf=* \
1059   | --program-trans=* | --program-tran=* \
1060   | --progr-tra=* | --program-tr=* | --program-t=*)
1061     program_transform_name=$ac_optarg ;;
1062
1063   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064     ac_prev=pdfdir ;;
1065   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066     pdfdir=$ac_optarg ;;
1067
1068   -psdir | --psdir | --psdi | --psd | --ps)
1069     ac_prev=psdir ;;
1070   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071     psdir=$ac_optarg ;;
1072
1073   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074   | -silent | --silent | --silen | --sile | --sil)
1075     silent=yes ;;
1076
1077   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078     ac_prev=sbindir ;;
1079   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080   | --sbi=* | --sb=*)
1081     sbindir=$ac_optarg ;;
1082
1083   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085   | --sharedst | --shareds | --shared | --share | --shar \
1086   | --sha | --sh)
1087     ac_prev=sharedstatedir ;;
1088   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091   | --sha=* | --sh=*)
1092     sharedstatedir=$ac_optarg ;;
1093
1094   -site | --site | --sit)
1095     ac_prev=site ;;
1096   -site=* | --site=* | --sit=*)
1097     site=$ac_optarg ;;
1098
1099   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100     ac_prev=srcdir ;;
1101   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102     srcdir=$ac_optarg ;;
1103
1104   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105   | --syscon | --sysco | --sysc | --sys | --sy)
1106     ac_prev=sysconfdir ;;
1107   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109     sysconfdir=$ac_optarg ;;
1110
1111   -target | --target | --targe | --targ | --tar | --ta | --t)
1112     ac_prev=target_alias ;;
1113   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114     target_alias=$ac_optarg ;;
1115
1116   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117     verbose=yes ;;
1118
1119   -version | --version | --versio | --versi | --vers | -V)
1120     ac_init_version=: ;;
1121
1122   -with-* | --with-*)
1123     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124     # Reject names that are not valid shell variable names.
1125     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126       as_fn_error $? "invalid package name: $ac_useropt"
1127     ac_useropt_orig=$ac_useropt
1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129     case $ac_user_opts in
1130       *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134          ac_unrecognized_sep=', ';;
1135     esac
1136     eval with_$ac_useropt=\$ac_optarg ;;
1137
1138   -without-* | --without-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       as_fn_error $? "invalid package name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval with_$ac_useropt=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     case $ac_envvar in #(
1180       '' | [0-9]* | *[!_$as_cr_alnum]* )
1181       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182     esac
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203   case $enable_option_checking in
1204     no) ;;
1205     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207   esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212                 datadir sysconfdir sharedstatedir localstatedir includedir \
1213                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214                 libdir localedir mandir
1215 do
1216   eval ac_val=\$$ac_var
1217   # Remove trailing slashes.
1218   case $ac_val in
1219     */ )
1220       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221       eval $ac_var=\$ac_val;;
1222   esac
1223   # Be sure to have absolute directory names.
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240   if test "x$build_alias" = x; then
1241     cross_compiling=maybe
1242   elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244   fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256   as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$as_myself" : 'X\(//\)[^/]' \| \
1268          X"$as_myself" : 'X\(//\)$' \| \
1269          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302         pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305   srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_env_${ac_var}_value=\$${ac_var}
1316   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324   # Omit some internal or obsolete options to make the list less imposing.
1325   # This message is too long to be a string in the A/UX 3.1 sh.
1326   cat <<_ACEOF
1327 \`configure' configures GNU Awk 4.1.1 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337   -h, --help              display this help and exit
1338       --help=short        display options specific to this package
1339       --help=recursive    display the short help of all the included packages
1340   -V, --version           display version information and exit
1341   -q, --quiet, --silent   do not print \`checking ...' messages
1342       --cache-file=FILE   cache test results in FILE [disabled]
1343   -C, --config-cache      alias for \`--cache-file=config.cache'
1344   -n, --no-create         do not create output files
1345       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348   --prefix=PREFIX         install architecture-independent files in PREFIX
1349                           [$ac_default_prefix]
1350   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                           [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361   --bindir=DIR            user executables [EPREFIX/bin]
1362   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363   --libexecdir=DIR        program executables [EPREFIX/libexec]
1364   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367   --libdir=DIR            object code libraries [EPREFIX/lib]
1368   --includedir=DIR        C header files [PREFIX/include]
1369   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372   --infodir=DIR           info documentation [DATAROOTDIR/info]
1373   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374   --mandir=DIR            man documentation [DATAROOTDIR/man]
1375   --docdir=DIR            documentation root [DATAROOTDIR/doc/gawk]
1376   --htmldir=DIR           html documentation [DOCDIR]
1377   --dvidir=DIR            dvi documentation [DOCDIR]
1378   --pdfdir=DIR            pdf documentation [DOCDIR]
1379   --psdir=DIR             ps documentation [DOCDIR]
1380 _ACEOF
1381
1382   cat <<\_ACEOF
1383
1384 Program names:
1385   --program-prefix=PREFIX            prepend PREFIX to installed program names
1386   --program-suffix=SUFFIX            append SUFFIX to installed program names
1387   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1388
1389 System types:
1390   --build=BUILD     configure for building on BUILD [guessed]
1391   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396   case $ac_init_help in
1397      short | recursive ) echo "Configuration of GNU Awk 4.1.1:";;
1398    esac
1399   cat <<\_ACEOF
1400
1401 Optional Features:
1402   --disable-option-checking  ignore unrecognized --enable/--with options
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-silent-rules   less verbose build output (undo: "make V=1")
1406   --disable-silent-rules  verbose build output (undo: "make V=0")
1407   --disable-lint        Disable gawk lint checking
1408   --enable-dependency-tracking
1409                           do not reject slow dependency extractors
1410   --disable-dependency-tracking
1411                           speeds up one-time build
1412   --disable-largefile     omit support for large files
1413   --disable-nls           do not use Native Language Support
1414   --disable-rpath         do not hardcode runtime library paths
1415   --disable-extensions    disable dynamic extensions (default is detect)
1416
1417 Optional Packages:
1418   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1419   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1420   --with-whiny-user-strftime    Force use of included version of strftime for deficient systems
1421   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1422   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1423   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1424   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1425   --without-libintl-prefix     don't search for libintl in includedir and libdir
1426   --with-libsigsegv-prefix[=DIR]  search for libsigsegv in DIR/include and DIR/lib
1427   --without-libsigsegv-prefix     don't search for libsigsegv in includedir and libdir
1428   --with-readline=DIR     look for the readline library in DIR
1429   --with-mpfr=DIR         look for the mpfr and gmp libraries in DIR
1430
1431 Some influential environment variables:
1432   CC          C compiler command
1433   CFLAGS      C compiler flags
1434   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1435               nonstandard directory <lib dir>
1436   LIBS        libraries to pass to the linker, e.g. -l<library>
1437   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438               you have headers in a nonstandard directory <include dir>
1439   CPP         C preprocessor
1440   YACC        The `Yet Another Compiler Compiler' implementation to use.
1441               Defaults to the first program found out of: `bison -y', `byacc',
1442               `yacc'.
1443   YFLAGS      The list of arguments that will be passed by default to $YACC.
1444               This script will default YFLAGS to the empty string to avoid a
1445               default value of `-d' given by some make applications.
1446
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1449
1450 Report bugs to <bug-gawk@gnu.org>.
1451 GNU Awk home page: <http://www.gnu.org/software/gawk/>.
1452 General help using GNU software: <http://www.gnu.org/gethelp/>.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458   # If there are subdirs, report their specific --help.
1459   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460     test -d "$ac_dir" ||
1461       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462       continue
1463     ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469   # A ".." for each directory in $ac_dir_suffix.
1470   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471   case $ac_top_builddir_sub in
1472   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474   esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482   .)  # We are building in place.
1483     ac_srcdir=.
1484     ac_top_srcdir=$ac_top_builddir_sub
1485     ac_abs_top_srcdir=$ac_pwd ;;
1486   [\\/]* | ?:[\\/]* )  # Absolute name.
1487     ac_srcdir=$srcdir$ac_dir_suffix;
1488     ac_top_srcdir=$srcdir
1489     ac_abs_top_srcdir=$srcdir ;;
1490   *) # Relative name.
1491     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492     ac_top_srcdir=$ac_top_build_prefix$srcdir
1493     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497     cd "$ac_dir" || { ac_status=$?; continue; }
1498     # Check for guested configure.
1499     if test -f "$ac_srcdir/configure.gnu"; then
1500       echo &&
1501       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502     elif test -f "$ac_srcdir/configure"; then
1503       echo &&
1504       $SHELL "$ac_srcdir/configure" --help=recursive
1505     else
1506       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507     fi || ac_status=$?
1508     cd "$ac_pwd" || { ac_status=$?; break; }
1509   done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514   cat <<\_ACEOF
1515 GNU Awk configure 4.1.1
1516 generated by GNU Autoconf 2.69
1517
1518 Copyright (C) 2012 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522   exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535   rm -f conftest.$ac_objext
1536   if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539   *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543   (eval "$ac_compile") 2>conftest.err
1544   ac_status=$?
1545   if test -s conftest.err; then
1546     grep -v '^ *+' conftest.err >conftest.er1
1547     cat conftest.er1 >&5
1548     mv -f conftest.er1 conftest.err
1549   fi
1550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551   test $ac_status = 0; } && {
1552          test -z "$ac_c_werror_flag" ||
1553          test ! -s conftest.err
1554        } && test -s conftest.$ac_objext; then :
1555   ac_retval=0
1556 else
1557   $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560         ac_retval=1
1561 fi
1562   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563   as_fn_set_status $ac_retval
1564
1565 } # ac_fn_c_try_compile
1566
1567 # ac_fn_c_try_cpp LINENO
1568 # ----------------------
1569 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_cpp ()
1571 {
1572   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573   if { { ac_try="$ac_cpp conftest.$ac_ext"
1574 case "(($ac_try" in
1575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576   *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581   ac_status=$?
1582   if test -s conftest.err; then
1583     grep -v '^ *+' conftest.err >conftest.er1
1584     cat conftest.er1 >&5
1585     mv -f conftest.er1 conftest.err
1586   fi
1587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588   test $ac_status = 0; } > conftest.i && {
1589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590          test ! -s conftest.err
1591        }; then :
1592   ac_retval=0
1593 else
1594   $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597     ac_retval=1
1598 fi
1599   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600   as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_cpp
1603
1604 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605 # -------------------------------------------------------
1606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607 # the include files in INCLUDES and setting the cache variable VAR
1608 # accordingly.
1609 ac_fn_c_check_header_mongrel ()
1610 {
1611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612   if eval \${$3+:} false; then :
1613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if eval \${$3+:} false; then :
1616   $as_echo_n "(cached) " >&6
1617 fi
1618 eval ac_res=\$$3
1619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 else
1622   # Is the header compilable?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624 $as_echo_n "checking $2 usability... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h.  */
1627 $4
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631   ac_header_compiler=yes
1632 else
1633   ac_header_compiler=no
1634 fi
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637 $as_echo "$ac_header_compiler" >&6; }
1638
1639 # Is the header present?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641 $as_echo_n "checking $2 presence... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h.  */
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_cpp "$LINENO"; then :
1647   ac_header_preproc=yes
1648 else
1649   ac_header_preproc=no
1650 fi
1651 rm -f conftest.err conftest.i conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653 $as_echo "$ac_header_preproc" >&6; }
1654
1655 # So?  What about this header?
1656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657   yes:no: )
1658     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662     ;;
1663   no:yes:* )
1664     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1667 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1671 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ( $as_echo "## ------------------------------- ##
1675 ## Report this to bug-gawk@gnu.org ##
1676 ## ------------------------------- ##"
1677      ) | sed "s/^/$as_me: WARNING:     /" >&2
1678     ;;
1679 esac
1680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683   $as_echo_n "(cached) " >&6
1684 else
1685   eval "$3=\$ac_header_compiler"
1686 fi
1687 eval ac_res=\$$3
1688                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 fi
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693 } # ac_fn_c_check_header_mongrel
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_link") 2>&5
1710   ac_status=$?
1711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713   { { case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_try") 2>&5
1720   ac_status=$?
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; }; }; then :
1723   ac_retval=0
1724 else
1725   $as_echo "$as_me: program exited with status $ac_status" >&5
1726        $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729        ac_retval=$ac_status
1730 fi
1731   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733   as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747   $as_echo_n "(cached) " >&6
1748 else
1749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h.  */
1751 $4
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755   eval "$3=yes"
1756 else
1757   eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_link ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   rm -f conftest.$ac_objext conftest$ac_exeext
1775   if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_link") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && {
1791          test -z "$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        } && test -s conftest$ac_exeext && {
1794          test "$cross_compiling" = yes ||
1795          test -x conftest$ac_exeext
1796        }; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802         ac_retval=1
1803 fi
1804   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806   # interfere with the next link command; also delete a directory that is
1807   # left behind by Apple's compiler.  We do this before executing the actions.
1808   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810   as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_link
1813
1814 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1815 # -------------------------------------------
1816 # Tests whether TYPE exists after having included INCLUDES, setting cache
1817 # variable VAR accordingly.
1818 ac_fn_c_check_type ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824   $as_echo_n "(cached) " >&6
1825 else
1826   eval "$3=no"
1827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 $4
1830 int
1831 main ()
1832 {
1833 if (sizeof ($2))
1834          return 0;
1835   ;
1836   return 0;
1837 }
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h.  */
1842 $4
1843 int
1844 main ()
1845 {
1846 if (sizeof (($2)))
1847             return 0;
1848   ;
1849   return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853
1854 else
1855   eval "$3=yes"
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 fi
1861 eval ac_res=\$$3
1862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_type
1867
1868 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1869 # --------------------------------------------
1870 # Tries to find the compile-time value of EXPR in a program that includes
1871 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1872 # computed
1873 ac_fn_c_compute_int ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   if test "$cross_compiling" = yes; then
1877     # Depending upon the size, compute the lo and hi bounds.
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h.  */
1880 $4
1881 int
1882 main ()
1883 {
1884 static int test_array [1 - 2 * !(($2) >= 0)];
1885 test_array [0] = 0;
1886 return test_array [0];
1887
1888   ;
1889   return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893   ac_lo=0 ac_mid=0
1894   while :; do
1895     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h.  */
1897 $4
1898 int
1899 main ()
1900 {
1901 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1902 test_array [0] = 0;
1903 return test_array [0];
1904
1905   ;
1906   return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910   ac_hi=$ac_mid; break
1911 else
1912   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1913                         if test $ac_lo -le $ac_mid; then
1914                           ac_lo= ac_hi=
1915                           break
1916                         fi
1917                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920   done
1921 else
1922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 $4
1925 int
1926 main ()
1927 {
1928 static int test_array [1 - 2 * !(($2) < 0)];
1929 test_array [0] = 0;
1930 return test_array [0];
1931
1932   ;
1933   return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937   ac_hi=-1 ac_mid=-1
1938   while :; do
1939     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 $4
1942 int
1943 main ()
1944 {
1945 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1946 test_array [0] = 0;
1947 return test_array [0];
1948
1949   ;
1950   return 0;
1951 }
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954   ac_lo=$ac_mid; break
1955 else
1956   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1957                         if test $ac_mid -le $ac_hi; then
1958                           ac_lo= ac_hi=
1959                           break
1960                         fi
1961                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964   done
1965 else
1966   ac_lo= ac_hi=
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 # Binary search between lo and hi bounds.
1972 while test "x$ac_lo" != "x$ac_hi"; do
1973   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $4
1977 int
1978 main ()
1979 {
1980 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1981 test_array [0] = 0;
1982 return test_array [0];
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989   ac_hi=$ac_mid
1990 else
1991   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 done
1995 case $ac_lo in #((
1996 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1997 '') ac_retval=1 ;;
1998 esac
1999   else
2000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 static long int longval () { return $2; }
2004 static unsigned long int ulongval () { return $2; }
2005 #include <stdio.h>
2006 #include <stdlib.h>
2007 int
2008 main ()
2009 {
2010
2011   FILE *f = fopen ("conftest.val", "w");
2012   if (! f)
2013     return 1;
2014   if (($2) < 0)
2015     {
2016       long int i = longval ();
2017       if (i != ($2))
2018         return 1;
2019       fprintf (f, "%ld", i);
2020     }
2021   else
2022     {
2023       unsigned long int i = ulongval ();
2024       if (i != ($2))
2025         return 1;
2026       fprintf (f, "%lu", i);
2027     }
2028   /* Do not output a trailing newline, as this causes \r\n confusion
2029      on some platforms.  */
2030   return ferror (f) || fclose (f) != 0;
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_run "$LINENO"; then :
2037   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2038 else
2039   ac_retval=1
2040 fi
2041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2042   conftest.$ac_objext conftest.beam conftest.$ac_ext
2043 rm -f conftest.val
2044
2045   fi
2046   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047   as_fn_set_status $ac_retval
2048
2049 } # ac_fn_c_compute_int
2050
2051 # ac_fn_c_check_func LINENO FUNC VAR
2052 # ----------------------------------
2053 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2054 ac_fn_c_check_func ()
2055 {
2056   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060   $as_echo_n "(cached) " >&6
2061 else
2062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2066 #define $2 innocuous_$2
2067
2068 /* System header to define __stub macros and hopefully few prototypes,
2069     which can conflict with char $2 (); below.
2070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2071     <limits.h> exists even on freestanding compilers.  */
2072
2073 #ifdef __STDC__
2074 # include <limits.h>
2075 #else
2076 # include <assert.h>
2077 #endif
2078
2079 #undef $2
2080
2081 /* Override any GCC internal prototype to avoid an error.
2082    Use char because int might match the return type of a GCC
2083    builtin and then its argument prototype would still apply.  */
2084 #ifdef __cplusplus
2085 extern "C"
2086 #endif
2087 char $2 ();
2088 /* The GNU C library defines this for functions which it implements
2089     to always fail with ENOSYS.  Some functions are actually named
2090     something starting with __ and the normal name is an alias.  */
2091 #if defined __stub_$2 || defined __stub___$2
2092 choke me
2093 #endif
2094
2095 int
2096 main ()
2097 {
2098 return $2 ();
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_link "$LINENO"; then :
2104   eval "$3=yes"
2105 else
2106   eval "$3=no"
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext \
2109     conftest$ac_exeext conftest.$ac_ext
2110 fi
2111 eval ac_res=\$$3
2112                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116 } # ac_fn_c_check_func
2117
2118 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2119 # ----------------------------------------------------
2120 # Tries to find if the field MEMBER exists in type AGGR, after including
2121 # INCLUDES, setting cache variable VAR accordingly.
2122 ac_fn_c_check_member ()
2123 {
2124   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2126 $as_echo_n "checking for $2.$3... " >&6; }
2127 if eval \${$4+:} false; then :
2128   $as_echo_n "(cached) " >&6
2129 else
2130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h.  */
2132 $5
2133 int
2134 main ()
2135 {
2136 static $2 ac_aggr;
2137 if (ac_aggr.$3)
2138 return 0;
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144   eval "$4=yes"
2145 else
2146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h.  */
2148 $5
2149 int
2150 main ()
2151 {
2152 static $2 ac_aggr;
2153 if (sizeof ac_aggr.$3)
2154 return 0;
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160   eval "$4=yes"
2161 else
2162   eval "$4=no"
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 eval ac_res=\$$4
2169                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172
2173 } # ac_fn_c_check_member
2174
2175 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2176 # ---------------------------------------------
2177 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2178 # accordingly.
2179 ac_fn_c_check_decl ()
2180 {
2181   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182   as_decl_name=`echo $2|sed 's/ *(.*//'`
2183   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2185 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2186 if eval \${$3+:} false; then :
2187   $as_echo_n "(cached) " >&6
2188 else
2189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h.  */
2191 $4
2192 int
2193 main ()
2194 {
2195 #ifndef $as_decl_name
2196 #ifdef __cplusplus
2197   (void) $as_decl_use;
2198 #else
2199   (void) $as_decl_name;
2200 #endif
2201 #endif
2202
2203   ;
2204   return 0;
2205 }
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208   eval "$3=yes"
2209 else
2210   eval "$3=no"
2211 fi
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 fi
2214 eval ac_res=\$$3
2215                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218
2219 } # ac_fn_c_check_decl
2220 cat >config.log <<_ACEOF
2221 This file contains any messages produced by compilers while
2222 running configure, to aid debugging if configure makes a mistake.
2223
2224 It was created by GNU Awk $as_me 4.1.1, which was
2225 generated by GNU Autoconf 2.69.  Invocation command line was
2226
2227   $ $0 $@
2228
2229 _ACEOF
2230 exec 5>>config.log
2231 {
2232 cat <<_ASUNAME
2233 ## --------- ##
2234 ## Platform. ##
2235 ## --------- ##
2236
2237 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2238 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2239 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2240 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2241 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2242
2243 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2244 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2245
2246 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2247 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2248 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2249 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2250 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2251 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2252 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2253
2254 _ASUNAME
2255
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261     $as_echo "PATH: $as_dir"
2262   done
2263 IFS=$as_save_IFS
2264
2265 } >&5
2266
2267 cat >&5 <<_ACEOF
2268
2269
2270 ## ----------- ##
2271 ## Core tests. ##
2272 ## ----------- ##
2273
2274 _ACEOF
2275
2276
2277 # Keep a trace of the command line.
2278 # Strip out --no-create and --no-recursion so they do not pile up.
2279 # Strip out --silent because we don't want to record it for future runs.
2280 # Also quote any args containing shell meta-characters.
2281 # Make two passes to allow for proper duplicate-argument suppression.
2282 ac_configure_args=
2283 ac_configure_args0=
2284 ac_configure_args1=
2285 ac_must_keep_next=false
2286 for ac_pass in 1 2
2287 do
2288   for ac_arg
2289   do
2290     case $ac_arg in
2291     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2292     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2293     | -silent | --silent | --silen | --sile | --sil)
2294       continue ;;
2295     *\'*)
2296       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2297     esac
2298     case $ac_pass in
2299     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2300     2)
2301       as_fn_append ac_configure_args1 " '$ac_arg'"
2302       if test $ac_must_keep_next = true; then
2303         ac_must_keep_next=false # Got value, back to normal.
2304       else
2305         case $ac_arg in
2306           *=* | --config-cache | -C | -disable-* | --disable-* \
2307           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2308           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2309           | -with-* | --with-* | -without-* | --without-* | --x)
2310             case "$ac_configure_args0 " in
2311               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2312             esac
2313             ;;
2314           -* ) ac_must_keep_next=true ;;
2315         esac
2316       fi
2317       as_fn_append ac_configure_args " '$ac_arg'"
2318       ;;
2319     esac
2320   done
2321 done
2322 { ac_configure_args0=; unset ac_configure_args0;}
2323 { ac_configure_args1=; unset ac_configure_args1;}
2324
2325 # When interrupted or exit'd, cleanup temporary files, and complete
2326 # config.log.  We remove comments because anyway the quotes in there
2327 # would cause problems or look ugly.
2328 # WARNING: Use '\'' to represent an apostrophe within the trap.
2329 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2330 trap 'exit_status=$?
2331   # Save into config.log some information that might help in debugging.
2332   {
2333     echo
2334
2335     $as_echo "## ---------------- ##
2336 ## Cache variables. ##
2337 ## ---------------- ##"
2338     echo
2339     # The following way of writing the cache mishandles newlines in values,
2340 (
2341   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2342     eval ac_val=\$$ac_var
2343     case $ac_val in #(
2344     *${as_nl}*)
2345       case $ac_var in #(
2346       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2348       esac
2349       case $ac_var in #(
2350       _ | IFS | as_nl) ;; #(
2351       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2352       *) { eval $ac_var=; unset $ac_var;} ;;
2353       esac ;;
2354     esac
2355   done
2356   (set) 2>&1 |
2357     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2358     *${as_nl}ac_space=\ *)
2359       sed -n \
2360         "s/'\''/'\''\\\\'\'''\''/g;
2361           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2362       ;; #(
2363     *)
2364       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2365       ;;
2366     esac |
2367     sort
2368 )
2369     echo
2370
2371     $as_echo "## ----------------- ##
2372 ## Output variables. ##
2373 ## ----------------- ##"
2374     echo
2375     for ac_var in $ac_subst_vars
2376     do
2377       eval ac_val=\$$ac_var
2378       case $ac_val in
2379       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380       esac
2381       $as_echo "$ac_var='\''$ac_val'\''"
2382     done | sort
2383     echo
2384
2385     if test -n "$ac_subst_files"; then
2386       $as_echo "## ------------------- ##
2387 ## File substitutions. ##
2388 ## ------------------- ##"
2389       echo
2390       for ac_var in $ac_subst_files
2391       do
2392         eval ac_val=\$$ac_var
2393         case $ac_val in
2394         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395         esac
2396         $as_echo "$ac_var='\''$ac_val'\''"
2397       done | sort
2398       echo
2399     fi
2400
2401     if test -s confdefs.h; then
2402       $as_echo "## ----------- ##
2403 ## confdefs.h. ##
2404 ## ----------- ##"
2405       echo
2406       cat confdefs.h
2407       echo
2408     fi
2409     test "$ac_signal" != 0 &&
2410       $as_echo "$as_me: caught signal $ac_signal"
2411     $as_echo "$as_me: exit $exit_status"
2412   } >&5
2413   rm -f core *.core core.conftest.* &&
2414     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2415     exit $exit_status
2416 ' 0
2417 for ac_signal in 1 2 13 15; do
2418   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2419 done
2420 ac_signal=0
2421
2422 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2423 rm -f -r conftest* confdefs.h
2424
2425 $as_echo "/* confdefs.h */" > confdefs.h
2426
2427 # Predefined preprocessor variables.
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_NAME "$PACKAGE_NAME"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2439 _ACEOF
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_STRING "$PACKAGE_STRING"
2443 _ACEOF
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2447 _ACEOF
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_URL "$PACKAGE_URL"
2451 _ACEOF
2452
2453
2454 # Let the site file select an alternate cache file if it wants to.
2455 # Prefer an explicitly selected file to automatically selected ones.
2456 ac_site_file1=NONE
2457 ac_site_file2=NONE
2458 if test -n "$CONFIG_SITE"; then
2459   # We do not want a PATH search for config.site.
2460   case $CONFIG_SITE in #((
2461     -*)  ac_site_file1=./$CONFIG_SITE;;
2462     */*) ac_site_file1=$CONFIG_SITE;;
2463     *)   ac_site_file1=./$CONFIG_SITE;;
2464   esac
2465 elif test "x$prefix" != xNONE; then
2466   ac_site_file1=$prefix/share/config.site
2467   ac_site_file2=$prefix/etc/config.site
2468 else
2469   ac_site_file1=$ac_default_prefix/share/config.site
2470   ac_site_file2=$ac_default_prefix/etc/config.site
2471 fi
2472 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2473 do
2474   test "x$ac_site_file" = xNONE && continue
2475   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2477 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2478     sed 's/^/| /' "$ac_site_file" >&5
2479     . "$ac_site_file" \
2480       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 as_fn_error $? "failed to load site script $ac_site_file
2483 See \`config.log' for more details" "$LINENO" 5; }
2484   fi
2485 done
2486
2487 if test -r "$cache_file"; then
2488   # Some versions of bash will fail to source /dev/null (special files
2489   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2490   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2491     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2492 $as_echo "$as_me: loading cache $cache_file" >&6;}
2493     case $cache_file in
2494       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2495       *)                      . "./$cache_file";;
2496     esac
2497   fi
2498 else
2499   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2500 $as_echo "$as_me: creating cache $cache_file" >&6;}
2501   >$cache_file
2502 fi
2503
2504 gt_needs="$gt_needs "
2505 as_fn_append ac_header_list " sys/time.h"
2506 as_fn_append ac_header_list " unistd.h"
2507 as_fn_append ac_func_list " alarm"
2508 # Check that the precious variables saved in the cache have kept the same
2509 # value.
2510 ac_cache_corrupted=false
2511 for ac_var in $ac_precious_vars; do
2512   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2513   eval ac_new_set=\$ac_env_${ac_var}_set
2514   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2515   eval ac_new_val=\$ac_env_${ac_var}_value
2516   case $ac_old_set,$ac_new_set in
2517     set,)
2518       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2519 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2520       ac_cache_corrupted=: ;;
2521     ,set)
2522       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2523 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2524       ac_cache_corrupted=: ;;
2525     ,);;
2526     *)
2527       if test "x$ac_old_val" != "x$ac_new_val"; then
2528         # differences in whitespace do not lead to failure.
2529         ac_old_val_w=`echo x $ac_old_val`
2530         ac_new_val_w=`echo x $ac_new_val`
2531         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2532           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2533 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2534           ac_cache_corrupted=:
2535         else
2536           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2537 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2538           eval $ac_var=\$ac_old_val
2539         fi
2540         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2541 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2542         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2543 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2544       fi;;
2545   esac
2546   # Pass precious variables to config.status.
2547   if test "$ac_new_set" = set; then
2548     case $ac_new_val in
2549     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2550     *) ac_arg=$ac_var=$ac_new_val ;;
2551     esac
2552     case " $ac_configure_args " in
2553       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2554       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2555     esac
2556   fi
2557 done
2558 if $ac_cache_corrupted; then
2559   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2562 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2563   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2564 fi
2565 ## -------------------- ##
2566 ## Main body of script. ##
2567 ## -------------------- ##
2568
2569 ac_ext=c
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574
2575
2576
2577 # This is a hack. Different versions of install on different systems
2578 # are just too different. Chuck it and use install-sh.
2579 #
2580 # If the user supplies $INSTALL, figure they know what they're doing.
2581 #
2582 # With Autoconf 2.5x, this needs to come very early on, but *after*
2583 # the INIT macro. Sigh.
2584
2585 if test "x$INSTALL" = "x"
2586 then
2587         INSTALL="$srcdir/install-sh -c"
2588         export INSTALL
2589 fi
2590
2591
2592 am__api_version='1.13'
2593
2594 ac_aux_dir=
2595 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2596   if test -f "$ac_dir/install-sh"; then
2597     ac_aux_dir=$ac_dir
2598     ac_install_sh="$ac_aux_dir/install-sh -c"
2599     break
2600   elif test -f "$ac_dir/install.sh"; then
2601     ac_aux_dir=$ac_dir
2602     ac_install_sh="$ac_aux_dir/install.sh -c"
2603     break
2604   elif test -f "$ac_dir/shtool"; then
2605     ac_aux_dir=$ac_dir
2606     ac_install_sh="$ac_aux_dir/shtool install -c"
2607     break
2608   fi
2609 done
2610 if test -z "$ac_aux_dir"; then
2611   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2612 fi
2613
2614 # These three variables are undocumented and unsupported,
2615 # and are intended to be withdrawn in a future Autoconf release.
2616 # They can cause serious problems if a builder's source tree is in a directory
2617 # whose full name contains unusual characters.
2618 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2619 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2620 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2621
2622
2623 # Find a good install program.  We prefer a C program (faster),
2624 # so one script is as good as another.  But avoid the broken or
2625 # incompatible versions:
2626 # SysV /etc/install, /usr/sbin/install
2627 # SunOS /usr/etc/install
2628 # IRIX /sbin/install
2629 # AIX /bin/install
2630 # AmigaOS /C/install, which installs bootblocks on floppy discs
2631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2634 # OS/2's system install, which has a completely different semantic
2635 # ./install, which can be erroneously created by make from ./install.sh.
2636 # Reject install programs that cannot install multiple files.
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2638 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2639 if test -z "$INSTALL"; then
2640 if ${ac_cv_path_install+:} false; then :
2641   $as_echo_n "(cached) " >&6
2642 else
2643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648     # Account for people who put trailing slashes in PATH elements.
2649 case $as_dir/ in #((
2650   ./ | .// | /[cC]/* | \
2651   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2652   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2653   /usr/ucb/* ) ;;
2654   *)
2655     # OSF1 and SCO ODT 3.0 have their own names for install.
2656     # Don't use installbsd from OSF since it installs stuff as root
2657     # by default.
2658     for ac_prog in ginstall scoinst install; do
2659       for ac_exec_ext in '' $ac_executable_extensions; do
2660         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2661           if test $ac_prog = install &&
2662             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663             # AIX install.  It has an incompatible calling convention.
2664             :
2665           elif test $ac_prog = install &&
2666             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667             # program-specific install script used by HP pwplus--don't use.
2668             :
2669           else
2670             rm -rf conftest.one conftest.two conftest.dir
2671             echo one > conftest.one
2672             echo two > conftest.two
2673             mkdir conftest.dir
2674             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2675               test -s conftest.one && test -s conftest.two &&
2676               test -s conftest.dir/conftest.one &&
2677               test -s conftest.dir/conftest.two
2678             then
2679               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2680               break 3
2681             fi
2682           fi
2683         fi
2684       done
2685     done
2686     ;;
2687 esac
2688
2689   done
2690 IFS=$as_save_IFS
2691
2692 rm -rf conftest.one conftest.two conftest.dir
2693
2694 fi
2695   if test "${ac_cv_path_install+set}" = set; then
2696     INSTALL=$ac_cv_path_install
2697   else
2698     # As a last resort, use the slow shell script.  Don't cache a
2699     # value for INSTALL within a source directory, because that will
2700     # break other packages using the cache if that directory is
2701     # removed, or if the value is a relative name.
2702     INSTALL=$ac_install_sh
2703   fi
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2706 $as_echo "$INSTALL" >&6; }
2707
2708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2709 # It thinks the first close brace ends the variable substitution.
2710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2711
2712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2713
2714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2717 $as_echo_n "checking whether build environment is sane... " >&6; }
2718 # Reject unsafe characters in $srcdir or the absolute working directory
2719 # name.  Accept space and tab only in the latter.
2720 am_lf='
2721 '
2722 case `pwd` in
2723   *[\\\"\#\$\&\'\`$am_lf]*)
2724     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2725 esac
2726 case $srcdir in
2727   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2728     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2729 esac
2730
2731 # Do 'set' in a subshell so we don't clobber the current shell's
2732 # arguments.  Must try -L first in case configure is actually a
2733 # symlink; some systems play weird games with the mod time of symlinks
2734 # (eg FreeBSD returns the mod time of the symlink's containing
2735 # directory).
2736 if (
2737    am_has_slept=no
2738    for am_try in 1 2; do
2739      echo "timestamp, slept: $am_has_slept" > conftest.file
2740      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2741      if test "$*" = "X"; then
2742         # -L didn't work.
2743         set X `ls -t "$srcdir/configure" conftest.file`
2744      fi
2745      if test "$*" != "X $srcdir/configure conftest.file" \
2746         && test "$*" != "X conftest.file $srcdir/configure"; then
2747
2748         # If neither matched, then we have a broken ls.  This can happen
2749         # if, for instance, CONFIG_SHELL is bash and it inherits a
2750         # broken ls alias from the environment.  This has actually
2751         # happened.  Such a system could not be considered "sane".
2752         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2753   alias in your environment" "$LINENO" 5
2754      fi
2755      if test "$2" = conftest.file || test $am_try -eq 2; then
2756        break
2757      fi
2758      # Just in case.
2759      sleep 1
2760      am_has_slept=yes
2761    done
2762    test "$2" = conftest.file
2763    )
2764 then
2765    # Ok.
2766    :
2767 else
2768    as_fn_error $? "newly created file is older than distributed files!
2769 Check your system clock" "$LINENO" 5
2770 fi
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2773 # If we didn't sleep, we still need to ensure time stamps of config.status and
2774 # generated files are strictly newer.
2775 am_sleep_pid=
2776 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2777   ( sleep 1 ) &
2778   am_sleep_pid=$!
2779 fi
2780
2781 rm -f conftest.file
2782
2783 test "$program_prefix" != NONE &&
2784   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2785 # Use a double $ so make ignores it.
2786 test "$program_suffix" != NONE &&
2787   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2788 # Double any \ or $.
2789 # By default was `s,x,x', remove it if useless.
2790 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2791 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2792
2793 # expand $ac_aux_dir to an absolute path
2794 am_aux_dir=`cd $ac_aux_dir && pwd`
2795
2796 if test x"${MISSING+set}" != xset; then
2797   case $am_aux_dir in
2798   *\ * | *\     *)
2799     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2800   *)
2801     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2802   esac
2803 fi
2804 # Use eval to expand $SHELL
2805 if eval "$MISSING --is-lightweight"; then
2806   am_missing_run="$MISSING "
2807 else
2808   am_missing_run=
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2810 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2811 fi
2812
2813 if test x"${install_sh}" != xset; then
2814   case $am_aux_dir in
2815   *\ * | *\     *)
2816     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2817   *)
2818     install_sh="\${SHELL} $am_aux_dir/install-sh"
2819   esac
2820 fi
2821
2822 # Installed binaries are usually stripped using 'strip' when the user
2823 # run "make install-strip".  However 'strip' might not be the right
2824 # tool to use in cross-compilation environments, therefore Automake
2825 # will honor the 'STRIP' environment variable to overrule this program.
2826 if test "$cross_compiling" != no; then
2827   if test -n "$ac_tool_prefix"; then
2828   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}strip; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_STRIP+:} false; then :
2833   $as_echo_n "(cached) " >&6
2834 else
2835   if test -n "$STRIP"; then
2836   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841   IFS=$as_save_IFS
2842   test -z "$as_dir" && as_dir=.
2843     for ac_exec_ext in '' $ac_executable_extensions; do
2844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847     break 2
2848   fi
2849 done
2850   done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 STRIP=$ac_cv_prog_STRIP
2856 if test -n "$STRIP"; then
2857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2858 $as_echo "$STRIP" >&6; }
2859 else
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 fi
2866 if test -z "$ac_cv_prog_STRIP"; then
2867   ac_ct_STRIP=$STRIP
2868   # Extract the first word of "strip", so it can be a program name with args.
2869 set dummy strip; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if test -n "$ac_ct_STRIP"; then
2876   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_exec_ext in '' $ac_executable_extensions; do
2884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885     ac_cv_prog_ac_ct_STRIP="strip"
2886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887     break 2
2888   fi
2889 done
2890   done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2896 if test -n "$ac_ct_STRIP"; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2898 $as_echo "$ac_ct_STRIP" >&6; }
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904   if test "x$ac_ct_STRIP" = x; then
2905     STRIP=":"
2906   else
2907     case $cross_compiling:$ac_tool_warned in
2908 yes:)
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911 ac_tool_warned=yes ;;
2912 esac
2913     STRIP=$ac_ct_STRIP
2914   fi
2915 else
2916   STRIP="$ac_cv_prog_STRIP"
2917 fi
2918
2919 fi
2920 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2921
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2923 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2924 if test -z "$MKDIR_P"; then
2925   if ${ac_cv_path_mkdir+:} false; then :
2926   $as_echo_n "(cached) " >&6
2927 else
2928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2930 do
2931   IFS=$as_save_IFS
2932   test -z "$as_dir" && as_dir=.
2933     for ac_prog in mkdir gmkdir; do
2934          for ac_exec_ext in '' $ac_executable_extensions; do
2935            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2936            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2937              'mkdir (GNU coreutils) '* | \
2938              'mkdir (coreutils) '* | \
2939              'mkdir (fileutils) '4.1*)
2940                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2941                break 3;;
2942            esac
2943          done
2944        done
2945   done
2946 IFS=$as_save_IFS
2947
2948 fi
2949
2950   test -d ./--version && rmdir ./--version
2951   if test "${ac_cv_path_mkdir+set}" = set; then
2952     MKDIR_P="$ac_cv_path_mkdir -p"
2953   else
2954     # As a last resort, use the slow shell script.  Don't cache a
2955     # value for MKDIR_P within a source directory, because that will
2956     # break other packages using the cache if that directory is
2957     # removed, or if the value is a relative name.
2958     MKDIR_P="$ac_install_sh -d"
2959   fi
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2962 $as_echo "$MKDIR_P" >&6; }
2963
2964 for ac_prog in gawk mawk nawk awk
2965 do
2966   # Extract the first word of "$ac_prog", so it can be a program name with args.
2967 set dummy $ac_prog; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_AWK+:} false; then :
2971   $as_echo_n "(cached) " >&6
2972 else
2973   if test -n "$AWK"; then
2974   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981     for ac_exec_ext in '' $ac_executable_extensions; do
2982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983     ac_cv_prog_AWK="$ac_prog"
2984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985     break 2
2986   fi
2987 done
2988   done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 AWK=$ac_cv_prog_AWK
2994 if test -n "$AWK"; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2996 $as_echo "$AWK" >&6; }
2997 else
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003   test -n "$AWK" && break
3004 done
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3007 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3008 set x ${MAKE-make}
3009 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3010 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   cat >conftest.make <<\_ACEOF
3014 SHELL = /bin/sh
3015 all:
3016         @echo '@@@%%%=$(MAKE)=@@@%%%'
3017 _ACEOF
3018 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3019 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3020   *@@@%%%=?*=@@@%%%*)
3021     eval ac_cv_prog_make_${ac_make}_set=yes;;
3022   *)
3023     eval ac_cv_prog_make_${ac_make}_set=no;;
3024 esac
3025 rm -f conftest.make
3026 fi
3027 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029 $as_echo "yes" >&6; }
3030   SET_MAKE=
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034   SET_MAKE="MAKE=${MAKE-make}"
3035 fi
3036
3037 rm -rf .tst 2>/dev/null
3038 mkdir .tst 2>/dev/null
3039 if test -d .tst; then
3040   am__leading_dot=.
3041 else
3042   am__leading_dot=_
3043 fi
3044 rmdir .tst 2>/dev/null
3045
3046 # Check whether --enable-silent-rules was given.
3047 if test "${enable_silent_rules+set}" = set; then :
3048   enableval=$enable_silent_rules;
3049 fi
3050
3051 case $enable_silent_rules in # (((
3052   yes) AM_DEFAULT_VERBOSITY=0;;
3053    no) AM_DEFAULT_VERBOSITY=1;;
3054     *) AM_DEFAULT_VERBOSITY=1;;
3055 esac
3056 am_make=${MAKE-make}
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3058 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3059 if ${am_cv_make_support_nested_variables+:} false; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   if $as_echo 'TRUE=$(BAR$(V))
3063 BAR0=false
3064 BAR1=true
3065 V=1
3066 am__doit:
3067         @$(TRUE)
3068 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3069   am_cv_make_support_nested_variables=yes
3070 else
3071   am_cv_make_support_nested_variables=no
3072 fi
3073 fi
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3075 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3076 if test $am_cv_make_support_nested_variables = yes; then
3077     AM_V='$(V)'
3078   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3079 else
3080   AM_V=$AM_DEFAULT_VERBOSITY
3081   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3082 fi
3083 AM_BACKSLASH='\'
3084
3085 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3086   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3087   # is not polluted with repeated "-I."
3088   am__isrc=' -I$(srcdir)'
3089   # test to see if srcdir already configured
3090   if test -f $srcdir/config.status; then
3091     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3092   fi
3093 fi
3094
3095 # test whether we have cygpath
3096 if test -z "$CYGPATH_W"; then
3097   if (cygpath --version) >/dev/null 2>/dev/null; then
3098     CYGPATH_W='cygpath -w'
3099   else
3100     CYGPATH_W=echo
3101   fi
3102 fi
3103
3104
3105 # Define the identity of the package.
3106  PACKAGE='gawk'
3107  VERSION='4.1.1'
3108
3109
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE "$PACKAGE"
3112 _ACEOF
3113
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define VERSION "$VERSION"
3117 _ACEOF
3118
3119 # Some tools Automake needs.
3120
3121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3122
3123
3124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3125
3126
3127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3128
3129
3130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3131
3132
3133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3134
3135 # For better backward compatibility.  To be removed once Automake 1.9.x
3136 # dies out for good.  For more background, see:
3137 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3138 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3139 mkdir_p='$(MKDIR_P)'
3140
3141 # We need awk for the "check" target.  The system "awk" is bad on
3142 # some platforms.
3143 # Always define AMTAR for backward compatibility.  Yes, it's still used
3144 # in the wild :-(  We should find a proper way to deprecate it ...
3145 AMTAR='$${TAR-tar}'
3146
3147
3148 # We'll loop over all known methods to create a tar archive until one works.
3149 _am_tools='gnutar  pax cpio none'
3150
3151 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162 # Check whether --with-whiny-user-strftime was given.
3163 if test "${with_whiny_user_strftime+set}" = set; then :
3164   withval=$with_whiny_user_strftime; if test "$withval" = yes
3165         then
3166
3167 $as_echo "#define USE_INCLUDED_STRFTIME 1" >>confdefs.h
3168
3169         fi
3170
3171 fi
3172
3173 # Check whether --enable-lint was given.
3174 if test "${enable_lint+set}" = set; then :
3175   enableval=$enable_lint; if test "$enableval" = no
3176         then
3177
3178 $as_echo "#define NO_LINT 1" >>confdefs.h
3179
3180         fi
3181
3182 fi
3183
3184
3185 # Make sure we can run config.sub.
3186 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3187   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3188
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3190 $as_echo_n "checking build system type... " >&6; }
3191 if ${ac_cv_build+:} false; then :
3192   $as_echo_n "(cached) " >&6
3193 else
3194   ac_build_alias=$build_alias
3195 test "x$ac_build_alias" = x &&
3196   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3197 test "x$ac_build_alias" = x &&
3198   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3199 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3200   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3201
3202 fi
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3204 $as_echo "$ac_cv_build" >&6; }
3205 case $ac_cv_build in
3206 *-*-*) ;;
3207 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3208 esac
3209 build=$ac_cv_build
3210 ac_save_IFS=$IFS; IFS='-'
3211 set x $ac_cv_build
3212 shift
3213 build_cpu=$1
3214 build_vendor=$2
3215 shift; shift
3216 # Remember, the first character of IFS is used to create $*,
3217 # except with old shells:
3218 build_os=$*
3219 IFS=$ac_save_IFS
3220 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3221
3222
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3224 $as_echo_n "checking host system type... " >&6; }
3225 if ${ac_cv_host+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if test "x$host_alias" = x; then
3229   ac_cv_host=$ac_cv_build
3230 else
3231   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3232     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3233 fi
3234
3235 fi
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3237 $as_echo "$ac_cv_host" >&6; }
3238 case $ac_cv_host in
3239 *-*-*) ;;
3240 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3241 esac
3242 host=$ac_cv_host
3243 ac_save_IFS=$IFS; IFS='-'
3244 set x $ac_cv_host
3245 shift
3246 host_cpu=$1
3247 host_vendor=$2
3248 shift; shift
3249 # Remember, the first character of IFS is used to create $*,
3250 # except with old shells:
3251 host_os=$*
3252 IFS=$ac_save_IFS
3253 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3254
3255
3256 DEPDIR="${am__leading_dot}deps"
3257
3258 ac_config_commands="$ac_config_commands depfiles"
3259
3260
3261 am_make=${MAKE-make}
3262 cat > confinc << 'END'
3263 am__doit:
3264         @echo this is the am__doit target
3265 .PHONY: am__doit
3266 END
3267 # If we don't find an include directive, just comment out the code.
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3269 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3270 am__include="#"
3271 am__quote=
3272 _am_result=none
3273 # First try GNU make style include.
3274 echo "include confinc" > confmf
3275 # Ignore all kinds of additional output from 'make'.
3276 case `$am_make -s -f confmf 2> /dev/null` in #(
3277 *the\ am__doit\ target*)
3278   am__include=include
3279   am__quote=
3280   _am_result=GNU
3281   ;;
3282 esac
3283 # Now try BSD make style include.
3284 if test "$am__include" = "#"; then
3285    echo '.include "confinc"' > confmf
3286    case `$am_make -s -f confmf 2> /dev/null` in #(
3287    *the\ am__doit\ target*)
3288      am__include=.include
3289      am__quote="\""
3290      _am_result=BSD
3291      ;;
3292    esac
3293 fi
3294
3295
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3297 $as_echo "$_am_result" >&6; }
3298 rm -f confinc confmf
3299
3300 # Check whether --enable-dependency-tracking was given.
3301 if test "${enable_dependency_tracking+set}" = set; then :
3302   enableval=$enable_dependency_tracking;
3303 fi
3304
3305 if test "x$enable_dependency_tracking" != xno; then
3306   am_depcomp="$ac_aux_dir/depcomp"
3307   AMDEPBACKSLASH='\'
3308   am__nodep='_no'
3309 fi
3310  if test "x$enable_dependency_tracking" != xno; then
3311   AMDEP_TRUE=
3312   AMDEP_FALSE='#'
3313 else
3314   AMDEP_TRUE='#'
3315   AMDEP_FALSE=
3316 fi
3317
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 if test -n "$ac_tool_prefix"; then
3325   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_CC+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   if test -n "$CC"; then
3333   ac_cv_prog_CC="$CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340     for ac_exec_ext in '' $ac_executable_extensions; do
3341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347   done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 CC=$ac_cv_prog_CC
3353 if test -n "$CC"; then
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3356 else
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361
3362 fi
3363 if test -z "$ac_cv_prog_CC"; then
3364   ac_ct_CC=$CC
3365   # Extract the first word of "gcc", so it can be a program name with args.
3366 set dummy gcc; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3370   $as_echo_n "(cached) " >&6
3371 else
3372   if test -n "$ac_ct_CC"; then
3373   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380     for ac_exec_ext in '' $ac_executable_extensions; do
3381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382     ac_cv_prog_ac_ct_CC="gcc"
3383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387   done
3388 IFS=$as_save_IFS
3389
3390 fi
3391 fi
3392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3393 if test -n "$ac_ct_CC"; then
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3395 $as_echo "$ac_ct_CC" >&6; }
3396 else
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 fi
3400
3401   if test "x$ac_ct_CC" = x; then
3402     CC=""
3403   else
3404     case $cross_compiling:$ac_tool_warned in
3405 yes:)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3409 esac
3410     CC=$ac_ct_CC
3411   fi
3412 else
3413   CC="$ac_cv_prog_CC"
3414 fi
3415
3416 if test -z "$CC"; then
3417           if test -n "$ac_tool_prefix"; then
3418     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3419 set dummy ${ac_tool_prefix}cc; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   if test -n "$CC"; then
3426   ac_cv_prog_CC="$CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431   IFS=$as_save_IFS
3432   test -z "$as_dir" && as_dir=.
3433     for ac_exec_ext in '' $ac_executable_extensions; do
3434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435     ac_cv_prog_CC="${ac_tool_prefix}cc"
3436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437     break 2
3438   fi
3439 done
3440   done
3441 IFS=$as_save_IFS
3442
3443 fi
3444 fi
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3449 else
3450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 fi
3453
3454
3455   fi
3456 fi
3457 if test -z "$CC"; then
3458   # Extract the first word of "cc", so it can be a program name with args.
3459 set dummy cc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_CC+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -n "$CC"; then
3466   ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468   ac_prog_rejected=no
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474     for ac_exec_ext in '' $ac_executable_extensions; do
3475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3477        ac_prog_rejected=yes
3478        continue
3479      fi
3480     ac_cv_prog_CC="cc"
3481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485   done
3486 IFS=$as_save_IFS
3487
3488 if test $ac_prog_rejected = yes; then
3489   # We found a bogon in the path, so make sure we never use it.
3490   set dummy $ac_cv_prog_CC
3491   shift
3492   if test $# != 0; then
3493     # We chose a different compiler from the bogus one.
3494     # However, it has the same basename, so the bogon will be chosen
3495     # first if we set CC to just the basename; use the full file name.
3496     shift
3497     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3498   fi
3499 fi
3500 fi
3501 fi
3502 CC=$ac_cv_prog_CC
3503 if test -n "$CC"; then
3504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 $as_echo "$CC" >&6; }
3506 else
3507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3509 fi
3510
3511
3512 fi
3513 if test -z "$CC"; then
3514   if test -n "$ac_tool_prefix"; then
3515   for ac_prog in cl.exe
3516   do
3517     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_CC+:} false; then :
3522   $as_echo_n "(cached) " >&6
3523 else
3524   if test -n "$CC"; then
3525   ac_cv_prog_CC="$CC" # Let the user override the test.
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3529 do
3530   IFS=$as_save_IFS
3531   test -z "$as_dir" && as_dir=.
3532     for ac_exec_ext in '' $ac_executable_extensions; do
3533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536     break 2
3537   fi
3538 done
3539   done
3540 IFS=$as_save_IFS
3541
3542 fi
3543 fi
3544 CC=$ac_cv_prog_CC
3545 if test -n "$CC"; then
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3547 $as_echo "$CC" >&6; }
3548 else
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3551 fi
3552
3553
3554     test -n "$CC" && break
3555   done
3556 fi
3557 if test -z "$CC"; then
3558   ac_ct_CC=$CC
3559   for ac_prog in cl.exe
3560 do
3561   # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy $ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3566   $as_echo_n "(cached) " >&6
3567 else
3568   if test -n "$ac_ct_CC"; then
3569   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574   IFS=$as_save_IFS
3575   test -z "$as_dir" && as_dir=.
3576     for ac_exec_ext in '' $ac_executable_extensions; do
3577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578     ac_cv_prog_ac_ct_CC="$ac_prog"
3579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580     break 2
3581   fi
3582 done
3583   done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3589 if test -n "$ac_ct_CC"; then
3590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3591 $as_echo "$ac_ct_CC" >&6; }
3592 else
3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597
3598   test -n "$ac_ct_CC" && break
3599 done
3600
3601   if test "x$ac_ct_CC" = x; then
3602     CC=""
3603   else
3604     case $cross_compiling:$ac_tool_warned in
3605 yes:)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3608 ac_tool_warned=yes ;;
3609 esac
3610     CC=$ac_ct_CC
3611   fi
3612 fi
3613
3614 fi
3615
3616
3617 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error $? "no acceptable C compiler found in \$PATH
3620 See \`config.log' for more details" "$LINENO" 5; }
3621
3622 # Provide some information about the compiler.
3623 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3624 set X $ac_compile
3625 ac_compiler=$2
3626 for ac_option in --version -v -V -qversion; do
3627   { { ac_try="$ac_compiler $ac_option >&5"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3635   ac_status=$?
3636   if test -s conftest.err; then
3637     sed '10a\
3638 ... rest of stderr output deleted ...
3639          10q' conftest.err >conftest.er1
3640     cat conftest.er1 >&5
3641   fi
3642   rm -f conftest.er1 conftest.err
3643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644   test $ac_status = 0; }
3645 done
3646
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h.  */
3649
3650 int
3651 main ()
3652 {
3653
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 ac_clean_files_save=$ac_clean_files
3659 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3660 # Try to create an executable without -o first, disregard a.out.
3661 # It will help us diagnose broken compilers, and finding out an intuition
3662 # of exeext.
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3664 $as_echo_n "checking whether the C compiler works... " >&6; }
3665 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3666
3667 # The possible output files:
3668 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3669
3670 ac_rmfiles=
3671 for ac_file in $ac_files
3672 do
3673   case $ac_file in
3674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3675     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3676   esac
3677 done
3678 rm -f $ac_rmfiles
3679
3680 if { { ac_try="$ac_link_default"
3681 case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687   (eval "$ac_link_default") 2>&5
3688   ac_status=$?
3689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690   test $ac_status = 0; }; then :
3691   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3692 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3693 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3694 # so that the user can short-circuit this test for compilers unknown to
3695 # Autoconf.
3696 for ac_file in $ac_files ''
3697 do
3698   test -f "$ac_file" || continue
3699   case $ac_file in
3700     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3701         ;;
3702     [ab].out )
3703         # We found the default executable, but exeext='' is most
3704         # certainly right.
3705         break;;
3706     *.* )
3707         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3708         then :; else
3709            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3710         fi
3711         # We set ac_cv_exeext here because the later test for it is not
3712         # safe: cross compilers may not add the suffix if given an `-o'
3713         # argument, so we may need to know it at that point already.
3714         # Even if this section looks crufty: it has the advantage of
3715         # actually working.
3716         break;;
3717     * )
3718         break;;
3719   esac
3720 done
3721 test "$ac_cv_exeext" = no && ac_cv_exeext=
3722
3723 else
3724   ac_file=''
3725 fi
3726 if test -z "$ac_file"; then :
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 $as_echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error 77 "C compiler cannot create executables
3735 See \`config.log' for more details" "$LINENO" 5; }
3736 else
3737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3738 $as_echo "yes" >&6; }
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3741 $as_echo_n "checking for C compiler default output file name... " >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3743 $as_echo "$ac_file" >&6; }
3744 ac_exeext=$ac_cv_exeext
3745
3746 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3747 ac_clean_files=$ac_clean_files_save
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3749 $as_echo_n "checking for suffix of executables... " >&6; }
3750 if { { ac_try="$ac_link"
3751 case "(($ac_try" in
3752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753   *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757   (eval "$ac_link") 2>&5
3758   ac_status=$?
3759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760   test $ac_status = 0; }; then :
3761   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3762 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3763 # work properly (i.e., refer to `conftest.exe'), while it won't with
3764 # `rm'.
3765 for ac_file in conftest.exe conftest conftest.*; do
3766   test -f "$ac_file" || continue
3767   case $ac_file in
3768     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3770           break;;
3771     * ) break;;
3772   esac
3773 done
3774 else
3775   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3778 See \`config.log' for more details" "$LINENO" 5; }
3779 fi
3780 rm -f conftest conftest$ac_cv_exeext
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3782 $as_echo "$ac_cv_exeext" >&6; }
3783
3784 rm -f conftest.$ac_ext
3785 EXEEXT=$ac_cv_exeext
3786 ac_exeext=$EXEEXT
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3789 #include <stdio.h>
3790 int
3791 main ()
3792 {
3793 FILE *f = fopen ("conftest.out", "w");
3794  return ferror (f) || fclose (f) != 0;
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 ac_clean_files="$ac_clean_files conftest.out"
3801 # Check that the compiler produces executables we can run.  If not, either
3802 # the compiler is broken, or we cross compile.
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3804 $as_echo_n "checking whether we are cross compiling... " >&6; }
3805 if test "$cross_compiling" != yes; then
3806   { { ac_try="$ac_link"
3807 case "(($ac_try" in
3808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809   *) ac_try_echo=$ac_try;;
3810 esac
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 $as_echo "$ac_try_echo"; } >&5
3813   (eval "$ac_link") 2>&5
3814   ac_status=$?
3815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816   test $ac_status = 0; }
3817   if { ac_try='./conftest$ac_cv_exeext'
3818   { { case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824   (eval "$ac_try") 2>&5
3825   ac_status=$?
3826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827   test $ac_status = 0; }; }; then
3828     cross_compiling=no
3829   else
3830     if test "$cross_compiling" = maybe; then
3831         cross_compiling=yes
3832     else
3833         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $? "cannot run C compiled programs.
3836 If you meant to cross compile, use \`--host'.
3837 See \`config.log' for more details" "$LINENO" 5; }
3838     fi
3839   fi
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3842 $as_echo "$cross_compiling" >&6; }
3843
3844 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3845 ac_clean_files=$ac_clean_files_save
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3847 $as_echo_n "checking for suffix of object files... " >&6; }
3848 if ${ac_cv_objext+:} false; then :
3849   $as_echo_n "(cached) " >&6
3850 else
3851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853
3854 int
3855 main ()
3856 {
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 rm -f conftest.o conftest.obj
3863 if { { ac_try="$ac_compile"
3864 case "(($ac_try" in
3865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866   *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870   (eval "$ac_compile") 2>&5
3871   ac_status=$?
3872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873   test $ac_status = 0; }; then :
3874   for ac_file in conftest.o conftest.obj conftest.*; do
3875   test -f "$ac_file" || continue;
3876   case $ac_file in
3877     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3878     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3879        break;;
3880   esac
3881 done
3882 else
3883   $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $? "cannot compute suffix of object files: cannot compile
3889 See \`config.log' for more details" "$LINENO" 5; }
3890 fi
3891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3894 $as_echo "$ac_cv_objext" >&6; }
3895 OBJEXT=$ac_cv_objext
3896 ac_objext=$OBJEXT
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3898 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3899 if ${ac_cv_c_compiler_gnu+:} false; then :
3900   $as_echo_n "(cached) " >&6
3901 else
3902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h.  */
3904
3905 int
3906 main ()
3907 {
3908 #ifndef __GNUC__
3909        choke me
3910 #endif
3911
3912   ;
3913   return 0;
3914 }
3915 _ACEOF
3916 if ac_fn_c_try_compile "$LINENO"; then :
3917   ac_compiler_gnu=yes
3918 else
3919   ac_compiler_gnu=no
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3923
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3926 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3927 if test $ac_compiler_gnu = yes; then
3928   GCC=yes
3929 else
3930   GCC=
3931 fi
3932 ac_test_CFLAGS=${CFLAGS+set}
3933 ac_save_CFLAGS=$CFLAGS
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3935 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3936 if ${ac_cv_prog_cc_g+:} false; then :
3937   $as_echo_n "(cached) " >&6
3938 else
3939   ac_save_c_werror_flag=$ac_c_werror_flag
3940    ac_c_werror_flag=yes
3941    ac_cv_prog_cc_g=no
3942    CFLAGS="-g"
3943    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h.  */
3945
3946 int
3947 main ()
3948 {
3949
3950   ;
3951   return 0;
3952 }
3953 _ACEOF
3954 if ac_fn_c_try_compile "$LINENO"; then :
3955   ac_cv_prog_cc_g=yes
3956 else
3957   CFLAGS=""
3958       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960
3961 int
3962 main ()
3963 {
3964
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970
3971 else
3972   ac_c_werror_flag=$ac_save_c_werror_flag
3973          CFLAGS="-g"
3974          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h.  */
3976
3977 int
3978 main ()
3979 {
3980
3981   ;
3982   return 0;
3983 }
3984 _ACEOF
3985 if ac_fn_c_try_compile "$LINENO"; then :
3986   ac_cv_prog_cc_g=yes
3987 fi
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 fi
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993    ac_c_werror_flag=$ac_save_c_werror_flag
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3996 $as_echo "$ac_cv_prog_cc_g" >&6; }
3997 if test "$ac_test_CFLAGS" = set; then
3998   CFLAGS=$ac_save_CFLAGS
3999 elif test $ac_cv_prog_cc_g = yes; then
4000   if test "$GCC" = yes; then
4001     CFLAGS="-g -O2"
4002   else
4003     CFLAGS="-g"
4004   fi
4005 else
4006   if test "$GCC" = yes; then
4007     CFLAGS="-O2"
4008   else
4009     CFLAGS=
4010   fi
4011 fi
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4013 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4014 if ${ac_cv_prog_cc_c89+:} false; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017   ac_cv_prog_cc_c89=no
4018 ac_save_CC=$CC
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h.  */
4021 #include <stdarg.h>
4022 #include <stdio.h>
4023 struct stat;
4024 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4025 struct buf { int x; };
4026 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4027 static char *e (p, i)
4028      char **p;
4029      int i;
4030 {
4031   return p[i];
4032 }
4033 static char *f (char * (*g) (char **, int), char **p, ...)
4034 {
4035   char *s;
4036   va_list v;
4037   va_start (v,p);
4038   s = g (p, va_arg (v,int));
4039   va_end (v);
4040   return s;
4041 }
4042
4043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4044    function prototypes and stuff, but not '\xHH' hex character constants.
4045    These don't provoke an error unfortunately, instead are silently treated
4046    as 'x'.  The following induces an error, until -std is added to get
4047    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4048    array size at least.  It's necessary to write '\x00'==0 to get something
4049    that's true only with -std.  */
4050 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4051
4052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4053    inside strings and character constants.  */
4054 #define FOO(x) 'x'
4055 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4056
4057 int test (int i, double x);
4058 struct s1 {int (*f) (int a);};
4059 struct s2 {int (*f) (double a);};
4060 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4061 int argc;
4062 char **argv;
4063 int
4064 main ()
4065 {
4066 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4072         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4073 do
4074   CC="$ac_save_CC $ac_arg"
4075   if ac_fn_c_try_compile "$LINENO"; then :
4076   ac_cv_prog_cc_c89=$ac_arg
4077 fi
4078 rm -f core conftest.err conftest.$ac_objext
4079   test "x$ac_cv_prog_cc_c89" != "xno" && break
4080 done
4081 rm -f conftest.$ac_ext
4082 CC=$ac_save_CC
4083
4084 fi
4085 # AC_CACHE_VAL
4086 case "x$ac_cv_prog_cc_c89" in
4087   x)
4088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4089 $as_echo "none needed" >&6; } ;;
4090   xno)
4091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4092 $as_echo "unsupported" >&6; } ;;
4093   *)
4094     CC="$CC $ac_cv_prog_cc_c89"
4095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4096 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4097 esac
4098 if test "x$ac_cv_prog_cc_c89" != xno; then :
4099
4100 fi
4101
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108 depcc="$CC"   am_compiler_list=
4109
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4111 $as_echo_n "checking dependency style of $depcc... " >&6; }
4112 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4113   $as_echo_n "(cached) " >&6
4114 else
4115   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4116   # We make a subdir and do the tests there.  Otherwise we can end up
4117   # making bogus files that we don't know about and never remove.  For
4118   # instance it was reported that on HP-UX the gcc test will end up
4119   # making a dummy file named 'D' -- because '-MD' means "put the output
4120   # in D".
4121   rm -rf conftest.dir
4122   mkdir conftest.dir
4123   # Copy depcomp to subdir because otherwise we won't find it if we're
4124   # using a relative directory.
4125   cp "$am_depcomp" conftest.dir
4126   cd conftest.dir
4127   # We will build objects and dependencies in a subdirectory because
4128   # it helps to detect inapplicable dependency modes.  For instance
4129   # both Tru64's cc and ICC support -MD to output dependencies as a
4130   # side effect of compilation, but ICC will put the dependencies in
4131   # the current directory while Tru64 will put them in the object
4132   # directory.
4133   mkdir sub
4134
4135   am_cv_CC_dependencies_compiler_type=none
4136   if test "$am_compiler_list" = ""; then
4137      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4138   fi
4139   am__universal=false
4140   case " $depcc " in #(
4141      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4142      esac
4143
4144   for depmode in $am_compiler_list; do
4145     # Setup a source with many dependencies, because some compilers
4146     # like to wrap large dependency lists on column 80 (with \), and
4147     # we should not choose a depcomp mode which is confused by this.
4148     #
4149     # We need to recreate these files for each test, as the compiler may
4150     # overwrite some of them when testing with obscure command lines.
4151     # This happens at least with the AIX C compiler.
4152     : > sub/conftest.c
4153     for i in 1 2 3 4 5 6; do
4154       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4155       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4156       # Solaris 10 /bin/sh.
4157       echo '/* dummy */' > sub/conftst$i.h
4158     done
4159     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4160
4161     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4162     # mode.  It turns out that the SunPro C++ compiler does not properly
4163     # handle '-M -o', and we need to detect this.  Also, some Intel
4164     # versions had trouble with output in subdirs.
4165     am__obj=sub/conftest.${OBJEXT-o}
4166     am__minus_obj="-o $am__obj"
4167     case $depmode in
4168     gcc)
4169       # This depmode causes a compiler race in universal mode.
4170       test "$am__universal" = false || continue
4171       ;;
4172     nosideeffect)
4173       # After this tag, mechanisms are not by side-effect, so they'll
4174       # only be used when explicitly requested.
4175       if test "x$enable_dependency_tracking" = xyes; then
4176         continue
4177       else
4178         break
4179       fi
4180       ;;
4181     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4182       # This compiler won't grok '-c -o', but also, the minuso test has
4183       # not run yet.  These depmodes are late enough in the game, and
4184       # so weak that their functioning should not be impacted.
4185       am__obj=conftest.${OBJEXT-o}
4186       am__minus_obj=
4187       ;;
4188     none) break ;;
4189     esac
4190     if depmode=$depmode \
4191        source=sub/conftest.c object=$am__obj \
4192        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4193        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4194          >/dev/null 2>conftest.err &&
4195        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4196        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4197        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4198        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4199       # icc doesn't choke on unknown options, it will just issue warnings
4200       # or remarks (even with -Werror).  So we grep stderr for any message
4201       # that says an option was ignored or not supported.
4202       # When given -MP, icc 7.0 and 7.1 complain thusly:
4203       #   icc: Command line warning: ignoring option '-M'; no argument required
4204       # The diagnosis changed in icc 8.0:
4205       #   icc: Command line remark: option '-MP' not supported
4206       if (grep 'ignoring option' conftest.err ||
4207           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4208         am_cv_CC_dependencies_compiler_type=$depmode
4209         break
4210       fi
4211     fi
4212   done
4213
4214   cd ..
4215   rm -rf conftest.dir
4216 else
4217   am_cv_CC_dependencies_compiler_type=none
4218 fi
4219
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4222 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4223 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4224
4225  if
4226   test "x$enable_dependency_tracking" != xno \
4227   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4228   am__fastdepCC_TRUE=
4229   am__fastdepCC_FALSE='#'
4230 else
4231   am__fastdepCC_TRUE='#'
4232   am__fastdepCC_FALSE=
4233 fi
4234
4235
4236
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4246   CPP=
4247 fi
4248 if test -z "$CPP"; then
4249   if ${ac_cv_prog_CPP+:} false; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252       # Double quotes because CPP needs to be expanded
4253     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4254     do
4255       ac_preproc_ok=false
4256 for ac_c_preproc_warn_flag in '' yes
4257 do
4258   # Use a header file that comes with gcc, so configuring glibc
4259   # with a fresh cross-compiler works.
4260   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261   # <limits.h> exists even on freestanding compilers.
4262   # On the NeXT, cc -E runs the code through the compiler's parser,
4263   # not just through cpp. "Syntax error" is here to catch this case.
4264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h.  */
4266 #ifdef __STDC__
4267 # include <limits.h>
4268 #else
4269 # include <assert.h>
4270 #endif
4271                      Syntax error
4272 _ACEOF
4273 if ac_fn_c_try_cpp "$LINENO"; then :
4274
4275 else
4276   # Broken: fails on valid input.
4277 continue
4278 fi
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4280
4281   # OK, works on sane cases.  Now check whether nonexistent headers
4282   # can be detected and how.
4283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h.  */
4285 #include <ac_nonexistent.h>
4286 _ACEOF
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288   # Broken: success on invalid input.
4289 continue
4290 else
4291   # Passes both tests.
4292 ac_preproc_ok=:
4293 break
4294 fi
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4296
4297 done
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.i conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then :
4301   break
4302 fi
4303
4304     done
4305     ac_cv_prog_CPP=$CPP
4306
4307 fi
4308   CPP=$ac_cv_prog_CPP
4309 else
4310   ac_cv_prog_CPP=$CPP
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4313 $as_echo "$CPP" >&6; }
4314 ac_preproc_ok=false
4315 for ac_c_preproc_warn_flag in '' yes
4316 do
4317   # Use a header file that comes with gcc, so configuring glibc
4318   # with a fresh cross-compiler works.
4319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320   # <limits.h> exists even on freestanding compilers.
4321   # On the NeXT, cc -E runs the code through the compiler's parser,
4322   # not just through cpp. "Syntax error" is here to catch this case.
4323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h.  */
4325 #ifdef __STDC__
4326 # include <limits.h>
4327 #else
4328 # include <assert.h>
4329 #endif
4330                      Syntax error
4331 _ACEOF
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4333
4334 else
4335   # Broken: fails on valid input.
4336 continue
4337 fi
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4339
4340   # OK, works on sane cases.  Now check whether nonexistent headers
4341   # can be detected and how.
4342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h.  */
4344 #include <ac_nonexistent.h>
4345 _ACEOF
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347   # Broken: success on invalid input.
4348 continue
4349 else
4350   # Passes both tests.
4351 ac_preproc_ok=:
4352 break
4353 fi
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4355
4356 done
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.i conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4360
4361 else
4362   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4365 See \`config.log' for more details" "$LINENO" 5; }
4366 fi
4367
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4376 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4377 if ${ac_cv_path_GREP+:} false; then :
4378   $as_echo_n "(cached) " >&6
4379 else
4380   if test -z "$GREP"; then
4381   ac_path_GREP_found=false
4382   # Loop through the user's path and test for each of PROGNAME-LIST
4383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388     for ac_prog in grep ggrep; do
4389     for ac_exec_ext in '' $ac_executable_extensions; do
4390       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4391       as_fn_executable_p "$ac_path_GREP" || continue
4392 # Check for GNU ac_path_GREP and select it if it is found.
4393   # Check for GNU $ac_path_GREP
4394 case `"$ac_path_GREP" --version 2>&1` in
4395 *GNU*)
4396   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4397 *)
4398   ac_count=0
4399   $as_echo_n 0123456789 >"conftest.in"
4400   while :
4401   do
4402     cat "conftest.in" "conftest.in" >"conftest.tmp"
4403     mv "conftest.tmp" "conftest.in"
4404     cp "conftest.in" "conftest.nl"
4405     $as_echo 'GREP' >> "conftest.nl"
4406     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408     as_fn_arith $ac_count + 1 && ac_count=$as_val
4409     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4410       # Best one so far, save it but keep looking for a better one
4411       ac_cv_path_GREP="$ac_path_GREP"
4412       ac_path_GREP_max=$ac_count
4413     fi
4414     # 10*(2^10) chars as input seems more than enough
4415     test $ac_count -gt 10 && break
4416   done
4417   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4419
4420       $ac_path_GREP_found && break 3
4421     done
4422   done
4423   done
4424 IFS=$as_save_IFS
4425   if test -z "$ac_cv_path_GREP"; then
4426     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427   fi
4428 else
4429   ac_cv_path_GREP=$GREP
4430 fi
4431
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4434 $as_echo "$ac_cv_path_GREP" >&6; }
4435  GREP="$ac_cv_path_GREP"
4436
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4439 $as_echo_n "checking for egrep... " >&6; }
4440 if ${ac_cv_path_EGREP+:} false; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4444    then ac_cv_path_EGREP="$GREP -E"
4445    else
4446      if test -z "$EGREP"; then
4447   ac_path_EGREP_found=false
4448   # Loop through the user's path and test for each of PROGNAME-LIST
4449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454     for ac_prog in egrep; do
4455     for ac_exec_ext in '' $ac_executable_extensions; do
4456       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4457       as_fn_executable_p "$ac_path_EGREP" || continue
4458 # Check for GNU ac_path_EGREP and select it if it is found.
4459   # Check for GNU $ac_path_EGREP
4460 case `"$ac_path_EGREP" --version 2>&1` in
4461 *GNU*)
4462   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4463 *)
4464   ac_count=0
4465   $as_echo_n 0123456789 >"conftest.in"
4466   while :
4467   do
4468     cat "conftest.in" "conftest.in" >"conftest.tmp"
4469     mv "conftest.tmp" "conftest.in"
4470     cp "conftest.in" "conftest.nl"
4471     $as_echo 'EGREP' >> "conftest.nl"
4472     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474     as_fn_arith $ac_count + 1 && ac_count=$as_val
4475     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4476       # Best one so far, save it but keep looking for a better one
4477       ac_cv_path_EGREP="$ac_path_EGREP"
4478       ac_path_EGREP_max=$ac_count
4479     fi
4480     # 10*(2^10) chars as input seems more than enough
4481     test $ac_count -gt 10 && break
4482   done
4483   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484 esac
4485
4486       $ac_path_EGREP_found && break 3
4487     done
4488   done
4489   done
4490 IFS=$as_save_IFS
4491   if test -z "$ac_cv_path_EGREP"; then
4492     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4493   fi
4494 else
4495   ac_cv_path_EGREP=$EGREP
4496 fi
4497
4498    fi
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4501 $as_echo "$ac_cv_path_EGREP" >&6; }
4502  EGREP="$ac_cv_path_EGREP"
4503
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4506 $as_echo_n "checking for ANSI C header files... " >&6; }
4507 if ${ac_cv_header_stdc+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512 #include <stdlib.h>
4513 #include <stdarg.h>
4514 #include <string.h>
4515 #include <float.h>
4516
4517 int
4518 main ()
4519 {
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526   ac_cv_header_stdc=yes
4527 else
4528   ac_cv_header_stdc=no
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531
4532 if test $ac_cv_header_stdc = yes; then
4533   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536 #include <string.h>
4537
4538 _ACEOF
4539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4540   $EGREP "memchr" >/dev/null 2>&1; then :
4541
4542 else
4543   ac_cv_header_stdc=no
4544 fi
4545 rm -f conftest*
4546
4547 fi
4548
4549 if test $ac_cv_header_stdc = yes; then
4550   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h.  */
4553 #include <stdlib.h>
4554
4555 _ACEOF
4556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4557   $EGREP "free" >/dev/null 2>&1; then :
4558
4559 else
4560   ac_cv_header_stdc=no
4561 fi
4562 rm -f conftest*
4563
4564 fi
4565
4566 if test $ac_cv_header_stdc = yes; then
4567   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4568   if test "$cross_compiling" = yes; then :
4569   :
4570 else
4571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h.  */
4573 #include <ctype.h>
4574 #include <stdlib.h>
4575 #if ((' ' & 0x0FF) == 0x020)
4576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4578 #else
4579 # define ISLOWER(c) \
4580                    (('a' <= (c) && (c) <= 'i') \
4581                      || ('j' <= (c) && (c) <= 'r') \
4582                      || ('s' <= (c) && (c) <= 'z'))
4583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4584 #endif
4585
4586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4587 int
4588 main ()
4589 {
4590   int i;
4591   for (i = 0; i < 256; i++)
4592     if (XOR (islower (i), ISLOWER (i))
4593         || toupper (i) != TOUPPER (i))
4594       return 2;
4595   return 0;
4596 }
4597 _ACEOF
4598 if ac_fn_c_try_run "$LINENO"; then :
4599
4600 else
4601   ac_cv_header_stdc=no
4602 fi
4603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4604   conftest.$ac_objext conftest.beam conftest.$ac_ext
4605 fi
4606
4607 fi
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4610 $as_echo "$ac_cv_header_stdc" >&6; }
4611 if test $ac_cv_header_stdc = yes; then
4612
4613 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4614
4615 fi
4616
4617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4618 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4619                   inttypes.h stdint.h unistd.h
4620 do :
4621   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4622 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4623 "
4624 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4625   cat >>confdefs.h <<_ACEOF
4626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4627 _ACEOF
4628
4629 fi
4630
4631 done
4632
4633
4634
4635   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4636 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4637   MINIX=yes
4638 else
4639   MINIX=
4640 fi
4641
4642
4643   if test "$MINIX" = yes; then
4644
4645 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4646
4647
4648 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4649
4650
4651 $as_echo "#define _MINIX 1" >>confdefs.h
4652
4653   fi
4654
4655
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4657 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4658 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4659   $as_echo_n "(cached) " >&6
4660 else
4661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h.  */
4663
4664 #         define __EXTENSIONS__ 1
4665           $ac_includes_default
4666 int
4667 main ()
4668 {
4669
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 if ac_fn_c_try_compile "$LINENO"; then :
4675   ac_cv_safe_to_define___extensions__=yes
4676 else
4677   ac_cv_safe_to_define___extensions__=no
4678 fi
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4682 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4683   test $ac_cv_safe_to_define___extensions__ = yes &&
4684     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4685
4686   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4687
4688   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4689
4690   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4691
4692   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4693
4694
4695
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4697 $as_echo_n "checking for egrep... " >&6; }
4698 if ${ac_cv_path_EGREP+:} false; then :
4699   $as_echo_n "(cached) " >&6
4700 else
4701   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4702    then ac_cv_path_EGREP="$GREP -E"
4703    else
4704      if test -z "$EGREP"; then
4705   ac_path_EGREP_found=false
4706   # Loop through the user's path and test for each of PROGNAME-LIST
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712     for ac_prog in egrep; do
4713     for ac_exec_ext in '' $ac_executable_extensions; do
4714       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4715       as_fn_executable_p "$ac_path_EGREP" || continue
4716 # Check for GNU ac_path_EGREP and select it if it is found.
4717   # Check for GNU $ac_path_EGREP
4718 case `"$ac_path_EGREP" --version 2>&1` in
4719 *GNU*)
4720   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4721 *)
4722   ac_count=0
4723   $as_echo_n 0123456789 >"conftest.in"
4724   while :
4725   do
4726     cat "conftest.in" "conftest.in" >"conftest.tmp"
4727     mv "conftest.tmp" "conftest.in"
4728     cp "conftest.in" "conftest.nl"
4729     $as_echo 'EGREP' >> "conftest.nl"
4730     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732     as_fn_arith $ac_count + 1 && ac_count=$as_val
4733     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4734       # Best one so far, save it but keep looking for a better one
4735       ac_cv_path_EGREP="$ac_path_EGREP"
4736       ac_path_EGREP_max=$ac_count
4737     fi
4738     # 10*(2^10) chars as input seems more than enough
4739     test $ac_count -gt 10 && break
4740   done
4741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4742 esac
4743
4744       $ac_path_EGREP_found && break 3
4745     done
4746   done
4747   done
4748 IFS=$as_save_IFS
4749   if test -z "$ac_cv_path_EGREP"; then
4750     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4751   fi
4752 else
4753   ac_cv_path_EGREP=$EGREP
4754 fi
4755
4756    fi
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4759 $as_echo "$ac_cv_path_EGREP" >&6; }
4760  EGREP="$ac_cv_path_EGREP"
4761
4762
4763 for ac_prog in 'bison -y' byacc
4764 do
4765   # Extract the first word of "$ac_prog", so it can be a program name with args.
4766 set dummy $ac_prog; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if ${ac_cv_prog_YACC+:} false; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772   if test -n "$YACC"; then
4773   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778   IFS=$as_save_IFS
4779   test -z "$as_dir" && as_dir=.
4780     for ac_exec_ext in '' $ac_executable_extensions; do
4781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4782     ac_cv_prog_YACC="$ac_prog"
4783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784     break 2
4785   fi
4786 done
4787   done
4788 IFS=$as_save_IFS
4789
4790 fi
4791 fi
4792 YACC=$ac_cv_prog_YACC
4793 if test -n "$YACC"; then
4794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4795 $as_echo "$YACC" >&6; }
4796 else
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4799 fi
4800
4801
4802   test -n "$YACC" && break
4803 done
4804 test -n "$YACC" || YACC="yacc"
4805
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4807 $as_echo_n "checking whether ln -s works... " >&6; }
4808 LN_S=$as_ln_s
4809 if test "$LN_S" = "ln -s"; then
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4811 $as_echo "yes" >&6; }
4812 else
4813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4814 $as_echo "no, using $LN_S" >&6; }
4815 fi
4816
4817 ac_ext=c
4818 ac_cpp='$CPP $CPPFLAGS'
4819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822 if test -n "$ac_tool_prefix"; then
4823   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_prog_CC+:} false; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   if test -n "$CC"; then
4831   ac_cv_prog_CC="$CC" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838     for ac_exec_ext in '' $ac_executable_extensions; do
4839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845   done
4846 IFS=$as_save_IFS
4847
4848 fi
4849 fi
4850 CC=$ac_cv_prog_CC
4851 if test -n "$CC"; then
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4853 $as_echo "$CC" >&6; }
4854 else
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4857 fi
4858
4859
4860 fi
4861 if test -z "$ac_cv_prog_CC"; then
4862   ac_ct_CC=$CC
4863   # Extract the first word of "gcc", so it can be a program name with args.
4864 set dummy gcc; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4868   $as_echo_n "(cached) " >&6
4869 else
4870   if test -n "$ac_ct_CC"; then
4871   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878     for ac_exec_ext in '' $ac_executable_extensions; do
4879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880     ac_cv_prog_ac_ct_CC="gcc"
4881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885   done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4891 if test -n "$ac_ct_CC"; then
4892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4893 $as_echo "$ac_ct_CC" >&6; }
4894 else
4895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898
4899   if test "x$ac_ct_CC" = x; then
4900     CC=""
4901   else
4902     case $cross_compiling:$ac_tool_warned in
4903 yes:)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4907 esac
4908     CC=$ac_ct_CC
4909   fi
4910 else
4911   CC="$ac_cv_prog_CC"
4912 fi
4913
4914 if test -z "$CC"; then
4915           if test -n "$ac_tool_prefix"; then
4916     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4917 set dummy ${ac_tool_prefix}cc; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if ${ac_cv_prog_CC+:} false; then :
4921   $as_echo_n "(cached) " >&6
4922 else
4923   if test -n "$CC"; then
4924   ac_cv_prog_CC="$CC" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931     for ac_exec_ext in '' $ac_executable_extensions; do
4932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933     ac_cv_prog_CC="${ac_tool_prefix}cc"
4934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938   done
4939 IFS=$as_save_IFS
4940
4941 fi
4942 fi
4943 CC=$ac_cv_prog_CC
4944 if test -n "$CC"; then
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4946 $as_echo "$CC" >&6; }
4947 else
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4950 fi
4951
4952
4953   fi
4954 fi
4955 if test -z "$CC"; then
4956   # Extract the first word of "cc", so it can be a program name with args.
4957 set dummy cc; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_CC+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -n "$CC"; then
4964   ac_cv_prog_CC="$CC" # Let the user override the test.
4965 else
4966   ac_prog_rejected=no
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970   IFS=$as_save_IFS
4971   test -z "$as_dir" && as_dir=.
4972     for ac_exec_ext in '' $ac_executable_extensions; do
4973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4975        ac_prog_rejected=yes
4976        continue
4977      fi
4978     ac_cv_prog_CC="cc"
4979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980     break 2
4981   fi
4982 done
4983   done
4984 IFS=$as_save_IFS
4985
4986 if test $ac_prog_rejected = yes; then
4987   # We found a bogon in the path, so make sure we never use it.
4988   set dummy $ac_cv_prog_CC
4989   shift
4990   if test $# != 0; then
4991     # We chose a different compiler from the bogus one.
4992     # However, it has the same basename, so the bogon will be chosen
4993     # first if we set CC to just the basename; use the full file name.
4994     shift
4995     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4996   fi
4997 fi
4998 fi
4999 fi
5000 CC=$ac_cv_prog_CC
5001 if test -n "$CC"; then
5002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5003 $as_echo "$CC" >&6; }
5004 else
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5007 fi
5008
5009
5010 fi
5011 if test -z "$CC"; then
5012   if test -n "$ac_tool_prefix"; then
5013   for ac_prog in cl.exe
5014   do
5015     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_CC+:} false; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   if test -n "$CC"; then
5023   ac_cv_prog_CC="$CC" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030     for ac_exec_ext in '' $ac_executable_extensions; do
5031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034     break 2
5035   fi
5036 done
5037   done
5038 IFS=$as_save_IFS
5039
5040 fi
5041 fi
5042 CC=$ac_cv_prog_CC
5043 if test -n "$CC"; then
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5045 $as_echo "$CC" >&6; }
5046 else
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5049 fi
5050
5051
5052     test -n "$CC" && break
5053   done
5054 fi
5055 if test -z "$CC"; then
5056   ac_ct_CC=$CC
5057   for ac_prog in cl.exe
5058 do
5059   # Extract the first word of "$ac_prog", so it can be a program name with args.
5060 set dummy $ac_prog; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5064   $as_echo_n "(cached) " >&6
5065 else
5066   if test -n "$ac_ct_CC"; then
5067   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074     for ac_exec_ext in '' $ac_executable_extensions; do
5075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076     ac_cv_prog_ac_ct_CC="$ac_prog"
5077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081   done
5082 IFS=$as_save_IFS
5083
5084 fi
5085 fi
5086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5087 if test -n "$ac_ct_CC"; then
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5089 $as_echo "$ac_ct_CC" >&6; }
5090 else
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094
5095
5096   test -n "$ac_ct_CC" && break
5097 done
5098
5099   if test "x$ac_ct_CC" = x; then
5100     CC=""
5101   else
5102     case $cross_compiling:$ac_tool_warned in
5103 yes:)
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106 ac_tool_warned=yes ;;
5107 esac
5108     CC=$ac_ct_CC
5109   fi
5110 fi
5111
5112 fi
5113
5114
5115 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5117 as_fn_error $? "no acceptable C compiler found in \$PATH
5118 See \`config.log' for more details" "$LINENO" 5; }
5119
5120 # Provide some information about the compiler.
5121 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5122 set X $ac_compile
5123 ac_compiler=$2
5124 for ac_option in --version -v -V -qversion; do
5125   { { ac_try="$ac_compiler $ac_option >&5"
5126 case "(($ac_try" in
5127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128   *) ac_try_echo=$ac_try;;
5129 esac
5130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5131 $as_echo "$ac_try_echo"; } >&5
5132   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5133   ac_status=$?
5134   if test -s conftest.err; then
5135     sed '10a\
5136 ... rest of stderr output deleted ...
5137          10q' conftest.err >conftest.er1
5138     cat conftest.er1 >&5
5139   fi
5140   rm -f conftest.er1 conftest.err
5141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5142   test $ac_status = 0; }
5143 done
5144
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5146 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5147 if ${ac_cv_c_compiler_gnu+:} false; then :
5148   $as_echo_n "(cached) " >&6
5149 else
5150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h.  */
5152
5153 int
5154 main ()
5155 {
5156 #ifndef __GNUC__
5157        choke me
5158 #endif
5159
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165   ac_compiler_gnu=yes
5166 else
5167   ac_compiler_gnu=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5171
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5174 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5175 if test $ac_compiler_gnu = yes; then
5176   GCC=yes
5177 else
5178   GCC=
5179 fi
5180 ac_test_CFLAGS=${CFLAGS+set}
5181 ac_save_CFLAGS=$CFLAGS
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5183 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5184 if ${ac_cv_prog_cc_g+:} false; then :
5185   $as_echo_n "(cached) " >&6
5186 else
5187   ac_save_c_werror_flag=$ac_c_werror_flag
5188    ac_c_werror_flag=yes
5189    ac_cv_prog_cc_g=no
5190    CFLAGS="-g"
5191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h.  */
5193
5194 int
5195 main ()
5196 {
5197
5198   ;
5199   return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203   ac_cv_prog_cc_g=yes
5204 else
5205   CFLAGS=""
5206       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h.  */
5208
5209 int
5210 main ()
5211 {
5212
5213   ;
5214   return 0;
5215 }
5216 _ACEOF
5217 if ac_fn_c_try_compile "$LINENO"; then :
5218
5219 else
5220   ac_c_werror_flag=$ac_save_c_werror_flag
5221          CFLAGS="-g"
5222          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h.  */
5224
5225 int
5226 main ()
5227 {
5228
5229   ;
5230   return 0;
5231 }
5232 _ACEOF
5233 if ac_fn_c_try_compile "$LINENO"; then :
5234   ac_cv_prog_cc_g=yes
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237 fi
5238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5239 fi
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241    ac_c_werror_flag=$ac_save_c_werror_flag
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5244 $as_echo "$ac_cv_prog_cc_g" >&6; }
5245 if test "$ac_test_CFLAGS" = set; then
5246   CFLAGS=$ac_save_CFLAGS
5247 elif test $ac_cv_prog_cc_g = yes; then
5248   if test "$GCC" = yes; then
5249     CFLAGS="-g -O2"
5250   else
5251     CFLAGS="-g"
5252   fi
5253 else
5254   if test "$GCC" = yes; then
5255     CFLAGS="-O2"
5256   else
5257     CFLAGS=
5258   fi
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5261 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5262 if ${ac_cv_prog_cc_c89+:} false; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   ac_cv_prog_cc_c89=no
5266 ac_save_CC=$CC
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h.  */
5269 #include <stdarg.h>
5270 #include <stdio.h>
5271 struct stat;
5272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5273 struct buf { int x; };
5274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5275 static char *e (p, i)
5276      char **p;
5277      int i;
5278 {
5279   return p[i];
5280 }
5281 static char *f (char * (*g) (char **, int), char **p, ...)
5282 {
5283   char *s;
5284   va_list v;
5285   va_start (v,p);
5286   s = g (p, va_arg (v,int));
5287   va_end (v);
5288   return s;
5289 }
5290
5291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5292    function prototypes and stuff, but not '\xHH' hex character constants.
5293    These don't provoke an error unfortunately, instead are silently treated
5294    as 'x'.  The following induces an error, until -std is added to get
5295    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5296    array size at least.  It's necessary to write '\x00'==0 to get something
5297    that's true only with -std.  */
5298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5299
5300 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5301    inside strings and character constants.  */
5302 #define FOO(x) 'x'
5303 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5304
5305 int test (int i, double x);
5306 struct s1 {int (*f) (int a);};
5307 struct s2 {int (*f) (double a);};
5308 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5309 int argc;
5310 char **argv;
5311 int
5312 main ()
5313 {
5314 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5315   ;
5316   return 0;
5317 }
5318 _ACEOF
5319 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5320         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5321 do
5322   CC="$ac_save_CC $ac_arg"
5323   if ac_fn_c_try_compile "$LINENO"; then :
5324   ac_cv_prog_cc_c89=$ac_arg
5325 fi
5326 rm -f core conftest.err conftest.$ac_objext
5327   test "x$ac_cv_prog_cc_c89" != "xno" && break
5328 done
5329 rm -f conftest.$ac_ext
5330 CC=$ac_save_CC
5331
5332 fi
5333 # AC_CACHE_VAL
5334 case "x$ac_cv_prog_cc_c89" in
5335   x)
5336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5337 $as_echo "none needed" >&6; } ;;
5338   xno)
5339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5340 $as_echo "unsupported" >&6; } ;;
5341   *)
5342     CC="$CC $ac_cv_prog_cc_c89"
5343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5344 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5345 esac
5346 if test "x$ac_cv_prog_cc_c89" != xno; then :
5347
5348 fi
5349
5350 ac_ext=c
5351 ac_cpp='$CPP $CPPFLAGS'
5352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356 depcc="$CC"   am_compiler_list=
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5359 $as_echo_n "checking dependency style of $depcc... " >&6; }
5360 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364   # We make a subdir and do the tests there.  Otherwise we can end up
5365   # making bogus files that we don't know about and never remove.  For
5366   # instance it was reported that on HP-UX the gcc test will end up
5367   # making a dummy file named 'D' -- because '-MD' means "put the output
5368   # in D".
5369   rm -rf conftest.dir
5370   mkdir conftest.dir
5371   # Copy depcomp to subdir because otherwise we won't find it if we're
5372   # using a relative directory.
5373   cp "$am_depcomp" conftest.dir
5374   cd conftest.dir
5375   # We will build objects and dependencies in a subdirectory because
5376   # it helps to detect inapplicable dependency modes.  For instance
5377   # both Tru64's cc and ICC support -MD to output dependencies as a
5378   # side effect of compilation, but ICC will put the dependencies in
5379   # the current directory while Tru64 will put them in the object
5380   # directory.
5381   mkdir sub
5382
5383   am_cv_CC_dependencies_compiler_type=none
5384   if test "$am_compiler_list" = ""; then
5385      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5386   fi
5387   am__universal=false
5388   case " $depcc " in #(
5389      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5390      esac
5391
5392   for depmode in $am_compiler_list; do
5393     # Setup a source with many dependencies, because some compilers
5394     # like to wrap large dependency lists on column 80 (with \), and
5395     # we should not choose a depcomp mode which is confused by this.
5396     #
5397     # We need to recreate these files for each test, as the compiler may
5398     # overwrite some of them when testing with obscure command lines.
5399     # This happens at least with the AIX C compiler.
5400     : > sub/conftest.c
5401     for i in 1 2 3 4 5 6; do
5402       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5404       # Solaris 10 /bin/sh.
5405       echo '/* dummy */' > sub/conftst$i.h
5406     done
5407     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5408
5409     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5410     # mode.  It turns out that the SunPro C++ compiler does not properly
5411     # handle '-M -o', and we need to detect this.  Also, some Intel
5412     # versions had trouble with output in subdirs.
5413     am__obj=sub/conftest.${OBJEXT-o}
5414     am__minus_obj="-o $am__obj"
5415     case $depmode in
5416     gcc)
5417       # This depmode causes a compiler race in universal mode.
5418       test "$am__universal" = false || continue
5419       ;;
5420     nosideeffect)
5421       # After this tag, mechanisms are not by side-effect, so they'll
5422       # only be used when explicitly requested.
5423       if test "x$enable_dependency_tracking" = xyes; then
5424         continue
5425       else
5426         break
5427       fi
5428       ;;
5429     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5430       # This compiler won't grok '-c -o', but also, the minuso test has
5431       # not run yet.  These depmodes are late enough in the game, and
5432       # so weak that their functioning should not be impacted.
5433       am__obj=conftest.${OBJEXT-o}
5434       am__minus_obj=
5435       ;;
5436     none) break ;;
5437     esac
5438     if depmode=$depmode \
5439        source=sub/conftest.c object=$am__obj \
5440        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5441        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5442          >/dev/null 2>conftest.err &&
5443        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5444        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5445        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5446        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5447       # icc doesn't choke on unknown options, it will just issue warnings
5448       # or remarks (even with -Werror).  So we grep stderr for any message
5449       # that says an option was ignored or not supported.
5450       # When given -MP, icc 7.0 and 7.1 complain thusly:
5451       #   icc: Command line warning: ignoring option '-M'; no argument required
5452       # The diagnosis changed in icc 8.0:
5453       #   icc: Command line remark: option '-MP' not supported
5454       if (grep 'ignoring option' conftest.err ||
5455           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5456         am_cv_CC_dependencies_compiler_type=$depmode
5457         break
5458       fi
5459     fi
5460   done
5461
5462   cd ..
5463   rm -rf conftest.dir
5464 else
5465   am_cv_CC_dependencies_compiler_type=none
5466 fi
5467
5468 fi
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5470 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5471 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5472
5473  if
5474   test "x$enable_dependency_tracking" != xno \
5475   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5476   am__fastdepCC_TRUE=
5477   am__fastdepCC_FALSE='#'
5478 else
5479   am__fastdepCC_TRUE='#'
5480   am__fastdepCC_FALSE=
5481 fi
5482
5483
5484 ac_ext=c
5485 ac_cpp='$CPP $CPPFLAGS'
5486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5490 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5491 # On Suns, sometimes $CPP names a directory.
5492 if test -n "$CPP" && test -d "$CPP"; then
5493   CPP=
5494 fi
5495 if test -z "$CPP"; then
5496   if ${ac_cv_prog_CPP+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499       # Double quotes because CPP needs to be expanded
5500     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5501     do
5502       ac_preproc_ok=false
5503 for ac_c_preproc_warn_flag in '' yes
5504 do
5505   # Use a header file that comes with gcc, so configuring glibc
5506   # with a fresh cross-compiler works.
5507   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5508   # <limits.h> exists even on freestanding compilers.
5509   # On the NeXT, cc -E runs the code through the compiler's parser,
5510   # not just through cpp. "Syntax error" is here to catch this case.
5511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h.  */
5513 #ifdef __STDC__
5514 # include <limits.h>
5515 #else
5516 # include <assert.h>
5517 #endif
5518                      Syntax error
5519 _ACEOF
5520 if ac_fn_c_try_cpp "$LINENO"; then :
5521
5522 else
5523   # Broken: fails on valid input.
5524 continue
5525 fi
5526 rm -f conftest.err conftest.i conftest.$ac_ext
5527
5528   # OK, works on sane cases.  Now check whether nonexistent headers
5529   # can be detected and how.
5530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h.  */
5532 #include <ac_nonexistent.h>
5533 _ACEOF
5534 if ac_fn_c_try_cpp "$LINENO"; then :
5535   # Broken: success on invalid input.
5536 continue
5537 else
5538   # Passes both tests.
5539 ac_preproc_ok=:
5540 break
5541 fi
5542 rm -f conftest.err conftest.i conftest.$ac_ext
5543
5544 done
5545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5546 rm -f conftest.i conftest.err conftest.$ac_ext
5547 if $ac_preproc_ok; then :
5548   break
5549 fi
5550
5551     done
5552     ac_cv_prog_CPP=$CPP
5553
5554 fi
5555   CPP=$ac_cv_prog_CPP
5556 else
5557   ac_cv_prog_CPP=$CPP
5558 fi
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5560 $as_echo "$CPP" >&6; }
5561 ac_preproc_ok=false
5562 for ac_c_preproc_warn_flag in '' yes
5563 do
5564   # Use a header file that comes with gcc, so configuring glibc
5565   # with a fresh cross-compiler works.
5566   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5567   # <limits.h> exists even on freestanding compilers.
5568   # On the NeXT, cc -E runs the code through the compiler's parser,
5569   # not just through cpp. "Syntax error" is here to catch this case.
5570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h.  */
5572 #ifdef __STDC__
5573 # include <limits.h>
5574 #else
5575 # include <assert.h>
5576 #endif
5577                      Syntax error
5578 _ACEOF
5579 if ac_fn_c_try_cpp "$LINENO"; then :
5580
5581 else
5582   # Broken: fails on valid input.
5583 continue
5584 fi
5585 rm -f conftest.err conftest.i conftest.$ac_ext
5586
5587   # OK, works on sane cases.  Now check whether nonexistent headers
5588   # can be detected and how.
5589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h.  */
5591 #include <ac_nonexistent.h>
5592 _ACEOF
5593 if ac_fn_c_try_cpp "$LINENO"; then :
5594   # Broken: success on invalid input.
5595 continue
5596 else
5597   # Passes both tests.
5598 ac_preproc_ok=:
5599 break
5600 fi
5601 rm -f conftest.err conftest.i conftest.$ac_ext
5602
5603 done
5604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5605 rm -f conftest.i conftest.err conftest.$ac_ext
5606 if $ac_preproc_ok; then :
5607
5608 else
5609   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5611 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5612 See \`config.log' for more details" "$LINENO" 5; }
5613 fi
5614
5615 ac_ext=c
5616 ac_cpp='$CPP $CPPFLAGS'
5617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620
5621
5622
5623
5624
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5627 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5628 set x ${MAKE-make}
5629 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5630 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   cat >conftest.make <<\_ACEOF
5634 SHELL = /bin/sh
5635 all:
5636         @echo '@@@%%%=$(MAKE)=@@@%%%'
5637 _ACEOF
5638 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5640   *@@@%%%=?*=@@@%%%*)
5641     eval ac_cv_prog_make_${ac_make}_set=yes;;
5642   *)
5643     eval ac_cv_prog_make_${ac_make}_set=no;;
5644 esac
5645 rm -f conftest.make
5646 fi
5647 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 $as_echo "yes" >&6; }
5650   SET_MAKE=
5651 else
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654   SET_MAKE="MAKE=${MAKE-make}"
5655 fi
5656
5657
5658 # This is mainly for my use during testing and development.
5659 # Yes, it's a bit of a hack.
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special development options" >&5
5661 $as_echo_n "checking for special development options... " >&6; }
5662 if test -f $srcdir/.developing
5663 then
5664         # add other debug flags as appropriate, save GAWKDEBUG for emergencies
5665         CFLAGS="$CFLAGS -DARRAYDEBUG -DYYDEBUG"
5666         if grep dbug $srcdir/.developing
5667         then
5668                 CFLAGS="$CFLAGS -DDBUG"
5669                 LIBS="$LIBS dbug/libdbug.a"
5670         fi
5671         # turn on compiler warnings if we're doing development
5672         # enable debugging using macros also
5673         if test "$GCC" = yes
5674         then
5675                 CFLAGS="$CFLAGS -Wall -fno-builtin -g3 -gdwarf-2"
5676         fi
5677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5679 else
5680         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682         CFLAGS="$CFLAGS -DNDEBUG"       # turn off assertions
5683 fi
5684
5685
5686
5687 # shared library suffix for dynamic loading:
5688
5689 # default shared library location
5690 pkgextensiondir='${pkglibdir}'
5691
5692
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS USS compilation" >&5
5695 $as_echo_n "checking for z/OS USS compilation... " >&6; }
5696 if test "OS/390" = "`uname`"
5697 then
5698   CFLAGS="$CFLAGS -D_ALL_SOURCE -DZOS_USS -DUSE_EBCDIC"
5699   # Must rebuild awkgram.c and command.c from Bison for EBCDIC
5700   rm -f awkgram.c command.c
5701   ac_cv_zos_uss=yes
5702 else
5703   ac_cv_zos_uss=no
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_zos_uss}" >&5
5706 $as_echo "${ac_cv_zos_uss}" >&6; }
5707
5708
5709         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
5710 $as_echo_n "checking for strerror in -lcposix... " >&6; }
5711 if ${ac_cv_lib_cposix_strerror+:} false; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   ac_check_lib_save_LIBS=$LIBS
5715 LIBS="-lcposix  $LIBS"
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h.  */
5718
5719 /* Override any GCC internal prototype to avoid an error.
5720    Use char because int might match the return type of a GCC
5721    builtin and then its argument prototype would still apply.  */
5722 #ifdef __cplusplus
5723 extern "C"
5724 #endif
5725 char strerror ();
5726 int
5727 main ()
5728 {
5729 return strerror ();
5730   ;
5731   return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_link "$LINENO"; then :
5735   ac_cv_lib_cposix_strerror=yes
5736 else
5737   ac_cv_lib_cposix_strerror=no
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext \
5740     conftest$ac_exeext conftest.$ac_ext
5741 LIBS=$ac_check_lib_save_LIBS
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
5744 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5745 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
5746   LIBS="$LIBS -lcposix"
5747 fi
5748
5749
5750
5751 # Check whether --enable-largefile was given.
5752 if test "${enable_largefile+set}" = set; then :
5753   enableval=$enable_largefile;
5754 fi
5755
5756 if test "$enable_largefile" != no; then
5757
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5759 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5760 if ${ac_cv_sys_largefile_CC+:} false; then :
5761   $as_echo_n "(cached) " >&6
5762 else
5763   ac_cv_sys_largefile_CC=no
5764      if test "$GCC" != yes; then
5765        ac_save_CC=$CC
5766        while :; do
5767          # IRIX 6.2 and later do not support large files by default,
5768          # so use the C compiler's -n32 option if that helps.
5769          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h.  */
5771 #include <sys/types.h>
5772  /* Check that off_t can represent 2**63 - 1 correctly.
5773     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774     since some C++ compilers masquerading as C compilers
5775     incorrectly reject 9223372036854775807.  */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778                        && LARGE_OFF_T % 2147483647 == 1)
5779                       ? 1 : -1];
5780 int
5781 main ()
5782 {
5783
5784   ;
5785   return 0;
5786 }
5787 _ACEOF
5788          if ac_fn_c_try_compile "$LINENO"; then :
5789   break
5790 fi
5791 rm -f core conftest.err conftest.$ac_objext
5792          CC="$CC -n32"
5793          if ac_fn_c_try_compile "$LINENO"; then :
5794   ac_cv_sys_largefile_CC=' -n32'; break
5795 fi
5796 rm -f core conftest.err conftest.$ac_objext
5797          break
5798        done
5799        CC=$ac_save_CC
5800        rm -f conftest.$ac_ext
5801     fi
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5804 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5805   if test "$ac_cv_sys_largefile_CC" != no; then
5806     CC=$CC$ac_cv_sys_largefile_CC
5807   fi
5808
5809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5810 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5811 if ${ac_cv_sys_file_offset_bits+:} false; then :
5812   $as_echo_n "(cached) " >&6
5813 else
5814   while :; do
5815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h.  */
5817 #include <sys/types.h>
5818  /* Check that off_t can represent 2**63 - 1 correctly.
5819     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5820     since some C++ compilers masquerading as C compilers
5821     incorrectly reject 9223372036854775807.  */
5822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5823   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5824                        && LARGE_OFF_T % 2147483647 == 1)
5825                       ? 1 : -1];
5826 int
5827 main ()
5828 {
5829
5830   ;
5831   return 0;
5832 }
5833 _ACEOF
5834 if ac_fn_c_try_compile "$LINENO"; then :
5835   ac_cv_sys_file_offset_bits=no; break
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h.  */
5840 #define _FILE_OFFSET_BITS 64
5841 #include <sys/types.h>
5842  /* Check that off_t can represent 2**63 - 1 correctly.
5843     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5844     since some C++ compilers masquerading as C compilers
5845     incorrectly reject 9223372036854775807.  */
5846 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5847   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5848                        && LARGE_OFF_T % 2147483647 == 1)
5849                       ? 1 : -1];
5850 int
5851 main ()
5852 {
5853
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 if ac_fn_c_try_compile "$LINENO"; then :
5859   ac_cv_sys_file_offset_bits=64; break
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862   ac_cv_sys_file_offset_bits=unknown
5863   break
5864 done
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5867 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5868 case $ac_cv_sys_file_offset_bits in #(
5869   no | unknown) ;;
5870   *)
5871 cat >>confdefs.h <<_ACEOF
5872 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5873 _ACEOF
5874 ;;
5875 esac
5876 rm -rf conftest*
5877   if test $ac_cv_sys_file_offset_bits = unknown; then
5878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5879 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5880 if ${ac_cv_sys_large_files+:} false; then :
5881   $as_echo_n "(cached) " >&6
5882 else
5883   while :; do
5884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h.  */
5886 #include <sys/types.h>
5887  /* Check that off_t can represent 2**63 - 1 correctly.
5888     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5889     since some C++ compilers masquerading as C compilers
5890     incorrectly reject 9223372036854775807.  */
5891 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5892   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5893                        && LARGE_OFF_T % 2147483647 == 1)
5894                       ? 1 : -1];
5895 int
5896 main ()
5897 {
5898
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 if ac_fn_c_try_compile "$LINENO"; then :
5904   ac_cv_sys_large_files=no; break
5905 fi
5906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h.  */
5909 #define _LARGE_FILES 1
5910 #include <sys/types.h>
5911  /* Check that off_t can represent 2**63 - 1 correctly.
5912     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5913     since some C++ compilers masquerading as C compilers
5914     incorrectly reject 9223372036854775807.  */
5915 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5916   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5917                        && LARGE_OFF_T % 2147483647 == 1)
5918                       ? 1 : -1];
5919 int
5920 main ()
5921 {
5922
5923   ;
5924   return 0;
5925 }
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928   ac_cv_sys_large_files=1; break
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931   ac_cv_sys_large_files=unknown
5932   break
5933 done
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5936 $as_echo "$ac_cv_sys_large_files" >&6; }
5937 case $ac_cv_sys_large_files in #(
5938   no | unknown) ;;
5939   *)
5940 cat >>confdefs.h <<_ACEOF
5941 #define _LARGE_FILES $ac_cv_sys_large_files
5942 _ACEOF
5943 ;;
5944 esac
5945 rm -rf conftest*
5946   fi
5947
5948
5949 fi
5950
5951
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX compilation hacks" >&5
5953 $as_echo_n "checking for AIX compilation hacks... " >&6; }
5954 if ${gawk_cv_aix_hack+:} false; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957
5958 if test -d /lpp
5959 then
5960         CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED=1 -DGAWK_AIX=1"
5961         gawk_cv_aix_hack=yes
5962 else
5963         gawk_cv_aix_hack=no
5964 fi
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_cv_aix_hack}" >&5
5968 $as_echo "${gawk_cv_aix_hack}" >&6; }
5969
5970
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux/Alpha compilation hacks" >&5
5972 $as_echo_n "checking for Linux/Alpha compilation hacks... " >&6; }
5973 if ${gawk_cv_linux_alpha_hack+:} false; then :
5974   $as_echo_n "(cached) " >&6
5975 else
5976
5977 if test "Linux" = "`uname`" && test "alpha" = "`uname -m`"
5978 then
5979         # this isn't necessarily always true,
5980         # the vendor's compiler is also often found
5981         if test "$GCC" = yes
5982         then
5983                 CFLAGS="$CFLAGS -mieee"
5984                 gawk_cv_linux_alpha_hack=yes
5985         else
5986                 gawk_cv_linux_alpha_hack=no
5987         fi
5988 else
5989         gawk_cv_linux_alpha_hack=no
5990 fi
5991
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_cv_linux_alpha_hack}" >&5
5994 $as_echo "${gawk_cv_linux_alpha_hack}" >&6; }
5995
5996
5997 if test "$ISC" = 1      # will be set by test for ISC
5998 then
5999         CFLAGS="$CFLAGS -D_SYSV3"
6000 fi
6001
6002 case $host_os in
6003 mirbsd*)
6004
6005 $as_echo "#define LIBC_IS_BORKED 1" >>confdefs.h
6006
6007         ;;
6008 esac
6009
6010 ac_ext=c
6011 ac_cpp='$CPP $CPPFLAGS'
6012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015
6016
6017
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6019 $as_echo_n "checking whether NLS is requested... " >&6; }
6020     # Check whether --enable-nls was given.
6021 if test "${enable_nls+set}" = set; then :
6022   enableval=$enable_nls; USE_NLS=$enableval
6023 else
6024   USE_NLS=yes
6025 fi
6026
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6028 $as_echo "$USE_NLS" >&6; }
6029
6030
6031
6032
6033       GETTEXT_MACRO_VERSION=0.18
6034
6035
6036
6037
6038 # Prepare PATH_SEPARATOR.
6039 # The user is always right.
6040 if test "${PATH_SEPARATOR+set}" != set; then
6041   echo "#! /bin/sh" >conf$$.sh
6042   echo  "exit 0"   >>conf$$.sh
6043   chmod +x conf$$.sh
6044   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6045     PATH_SEPARATOR=';'
6046   else
6047     PATH_SEPARATOR=:
6048   fi
6049   rm -f conf$$.sh
6050 fi
6051
6052 # Find out how to test for executable files. Don't use a zero-byte file,
6053 # as systems may use methods other than mode bits to determine executability.
6054 cat >conf$$.file <<_ASEOF
6055 #! /bin/sh
6056 exit 0
6057 _ASEOF
6058 chmod +x conf$$.file
6059 if test -x conf$$.file >/dev/null 2>&1; then
6060   ac_executable_p="test -x"
6061 else
6062   ac_executable_p="test -f"
6063 fi
6064 rm -f conf$$.file
6065
6066 # Extract the first word of "msgfmt", so it can be a program name with args.
6067 set dummy msgfmt; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if ${ac_cv_path_MSGFMT+:} false; then :
6071   $as_echo_n "(cached) " >&6
6072 else
6073   case "$MSGFMT" in
6074   [\\/]* | ?:[\\/]*)
6075     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6076     ;;
6077   *)
6078     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6079     for ac_dir in $PATH; do
6080       IFS="$ac_save_IFS"
6081       test -z "$ac_dir" && ac_dir=.
6082       for ac_exec_ext in '' $ac_executable_extensions; do
6083         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6084           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6085           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6086      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6087             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6088             break 2
6089           fi
6090         fi
6091       done
6092     done
6093     IFS="$ac_save_IFS"
6094   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6095     ;;
6096 esac
6097 fi
6098 MSGFMT="$ac_cv_path_MSGFMT"
6099 if test "$MSGFMT" != ":"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6101 $as_echo "$MSGFMT" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6108 set dummy gmsgfmt; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_path_GMSGFMT+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   case $GMSGFMT in
6115   [\\/]* | ?:[\\/]*)
6116   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6117   ;;
6118   *)
6119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124     for ac_exec_ext in '' $ac_executable_extensions; do
6125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131   done
6132 IFS=$as_save_IFS
6133
6134   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6135   ;;
6136 esac
6137 fi
6138 GMSGFMT=$ac_cv_path_GMSGFMT
6139 if test -n "$GMSGFMT"; then
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6141 $as_echo "$GMSGFMT" >&6; }
6142 else
6143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6145 fi
6146
6147
6148
6149     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6150     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6151     *) MSGFMT_015=$MSGFMT ;;
6152   esac
6153
6154   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6155     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6156     *) GMSGFMT_015=$GMSGFMT ;;
6157   esac
6158
6159
6160
6161 # Prepare PATH_SEPARATOR.
6162 # The user is always right.
6163 if test "${PATH_SEPARATOR+set}" != set; then
6164   echo "#! /bin/sh" >conf$$.sh
6165   echo  "exit 0"   >>conf$$.sh
6166   chmod +x conf$$.sh
6167   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6168     PATH_SEPARATOR=';'
6169   else
6170     PATH_SEPARATOR=:
6171   fi
6172   rm -f conf$$.sh
6173 fi
6174
6175 # Find out how to test for executable files. Don't use a zero-byte file,
6176 # as systems may use methods other than mode bits to determine executability.
6177 cat >conf$$.file <<_ASEOF
6178 #! /bin/sh
6179 exit 0
6180 _ASEOF
6181 chmod +x conf$$.file
6182 if test -x conf$$.file >/dev/null 2>&1; then
6183   ac_executable_p="test -x"
6184 else
6185   ac_executable_p="test -f"
6186 fi
6187 rm -f conf$$.file
6188
6189 # Extract the first word of "xgettext", so it can be a program name with args.
6190 set dummy xgettext; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_path_XGETTEXT+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196   case "$XGETTEXT" in
6197   [\\/]* | ?:[\\/]*)
6198     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6199     ;;
6200   *)
6201     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6202     for ac_dir in $PATH; do
6203       IFS="$ac_save_IFS"
6204       test -z "$ac_dir" && ac_dir=.
6205       for ac_exec_ext in '' $ac_executable_extensions; do
6206         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6207           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6208           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6209      (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
6210             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6211             break 2
6212           fi
6213         fi
6214       done
6215     done
6216     IFS="$ac_save_IFS"
6217   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6218     ;;
6219 esac
6220 fi
6221 XGETTEXT="$ac_cv_path_XGETTEXT"
6222 if test "$XGETTEXT" != ":"; then
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6224 $as_echo "$XGETTEXT" >&6; }
6225 else
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6228 fi
6229
6230     rm -f messages.po
6231
6232     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6233     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6234     *) XGETTEXT_015=$XGETTEXT ;;
6235   esac
6236
6237
6238
6239 # Prepare PATH_SEPARATOR.
6240 # The user is always right.
6241 if test "${PATH_SEPARATOR+set}" != set; then
6242   echo "#! /bin/sh" >conf$$.sh
6243   echo  "exit 0"   >>conf$$.sh
6244   chmod +x conf$$.sh
6245   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6246     PATH_SEPARATOR=';'
6247   else
6248     PATH_SEPARATOR=:
6249   fi
6250   rm -f conf$$.sh
6251 fi
6252
6253 # Find out how to test for executable files. Don't use a zero-byte file,
6254 # as systems may use methods other than mode bits to determine executability.
6255 cat >conf$$.file <<_ASEOF
6256 #! /bin/sh
6257 exit 0
6258 _ASEOF
6259 chmod +x conf$$.file
6260 if test -x conf$$.file >/dev/null 2>&1; then
6261   ac_executable_p="test -x"
6262 else
6263   ac_executable_p="test -f"
6264 fi
6265 rm -f conf$$.file
6266
6267 # Extract the first word of "msgmerge", so it can be a program name with args.
6268 set dummy msgmerge; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_path_MSGMERGE+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   case "$MSGMERGE" in
6275   [\\/]* | ?:[\\/]*)
6276     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6277     ;;
6278   *)
6279     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6280     for ac_dir in $PATH; do
6281       IFS="$ac_save_IFS"
6282       test -z "$ac_dir" && ac_dir=.
6283       for ac_exec_ext in '' $ac_executable_extensions; do
6284         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6285           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6286           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6287             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6288             break 2
6289           fi
6290         fi
6291       done
6292     done
6293     IFS="$ac_save_IFS"
6294   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6295     ;;
6296 esac
6297 fi
6298 MSGMERGE="$ac_cv_path_MSGMERGE"
6299 if test "$MSGMERGE" != ":"; then
6300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6301 $as_echo "$MSGMERGE" >&6; }
6302 else
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6305 fi
6306
6307
6308         test -n "$localedir" || localedir='${datadir}/locale'
6309
6310
6311     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6312
6313
6314   ac_config_commands="$ac_config_commands po-directories"
6315
6316
6317
6318       if test "X$prefix" = "XNONE"; then
6319     acl_final_prefix="$ac_default_prefix"
6320   else
6321     acl_final_prefix="$prefix"
6322   fi
6323   if test "X$exec_prefix" = "XNONE"; then
6324     acl_final_exec_prefix='${prefix}'
6325   else
6326     acl_final_exec_prefix="$exec_prefix"
6327   fi
6328   acl_save_prefix="$prefix"
6329   prefix="$acl_final_prefix"
6330   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6331   prefix="$acl_save_prefix"
6332
6333
6334 # Check whether --with-gnu-ld was given.
6335 if test "${with_gnu_ld+set}" = set; then :
6336   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6337 else
6338   with_gnu_ld=no
6339 fi
6340
6341 # Prepare PATH_SEPARATOR.
6342 # The user is always right.
6343 if test "${PATH_SEPARATOR+set}" != set; then
6344   echo "#! /bin/sh" >conf$$.sh
6345   echo  "exit 0"   >>conf$$.sh
6346   chmod +x conf$$.sh
6347   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6348     PATH_SEPARATOR=';'
6349   else
6350     PATH_SEPARATOR=:
6351   fi
6352   rm -f conf$$.sh
6353 fi
6354 ac_prog=ld
6355 if test "$GCC" = yes; then
6356   # Check if gcc -print-prog-name=ld gives a path.
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6358 $as_echo_n "checking for ld used by GCC... " >&6; }
6359   case $host in
6360   *-*-mingw*)
6361     # gcc leaves a trailing carriage return which upsets mingw
6362     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6363   *)
6364     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6365   esac
6366   case $ac_prog in
6367     # Accept absolute paths.
6368     [\\/]* | [A-Za-z]:[\\/]*)
6369       re_direlt='/[^/][^/]*/\.\./'
6370       # Canonicalize the path of ld
6371       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6372       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6373         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6374       done
6375       test -z "$LD" && LD="$ac_prog"
6376       ;;
6377   "")
6378     # If it fails, then pretend we aren't using GCC.
6379     ac_prog=ld
6380     ;;
6381   *)
6382     # If it is relative, then search for the first ld in PATH.
6383     with_gnu_ld=unknown
6384     ;;
6385   esac
6386 elif test "$with_gnu_ld" = yes; then
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6388 $as_echo_n "checking for GNU ld... " >&6; }
6389 else
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6391 $as_echo_n "checking for non-GNU ld... " >&6; }
6392 fi
6393 if ${acl_cv_path_LD+:} false; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   if test -z "$LD"; then
6397   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6398   for ac_dir in $PATH; do
6399     test -z "$ac_dir" && ac_dir=.
6400     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6401       acl_cv_path_LD="$ac_dir/$ac_prog"
6402       # Check to see if the program is GNU ld.  I'd rather use --version,
6403       # but apparently some GNU ld's only accept -v.
6404       # Break only if it was the GNU/non-GNU ld that we prefer.
6405       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6406       *GNU* | *'with BFD'*)
6407         test "$with_gnu_ld" != no && break ;;
6408       *)
6409         test "$with_gnu_ld" != yes && break ;;
6410       esac
6411     fi
6412   done
6413   IFS="$ac_save_ifs"
6414 else
6415   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6416 fi
6417 fi
6418
6419 LD="$acl_cv_path_LD"
6420 if test -n "$LD"; then
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6422 $as_echo "$LD" >&6; }
6423 else
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6429 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6430 if ${acl_cv_prog_gnu_ld+:} false; then :
6431   $as_echo_n "(cached) " >&6
6432 else
6433   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6434 case `$LD -v 2>&1 </dev/null` in
6435 *GNU* | *'with BFD'*)
6436   acl_cv_prog_gnu_ld=yes ;;
6437 *)
6438   acl_cv_prog_gnu_ld=no ;;
6439 esac
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6442 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6443 with_gnu_ld=$acl_cv_prog_gnu_ld
6444
6445
6446
6447
6448                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6449 $as_echo_n "checking for shared library run path origin... " >&6; }
6450 if ${acl_cv_rpath+:} false; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453
6454     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6455     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6456     . ./conftest.sh
6457     rm -f ./conftest.sh
6458     acl_cv_rpath=done
6459
6460 fi
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6462 $as_echo "$acl_cv_rpath" >&6; }
6463   wl="$acl_cv_wl"
6464   acl_libext="$acl_cv_libext"
6465   acl_shlibext="$acl_cv_shlibext"
6466   acl_libname_spec="$acl_cv_libname_spec"
6467   acl_library_names_spec="$acl_cv_library_names_spec"
6468   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6469   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6470   acl_hardcode_direct="$acl_cv_hardcode_direct"
6471   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6472     # Check whether --enable-rpath was given.
6473 if test "${enable_rpath+set}" = set; then :
6474   enableval=$enable_rpath; :
6475 else
6476   enable_rpath=yes
6477 fi
6478
6479
6480
6481
6482   acl_libdirstem=lib
6483   acl_libdirstem2=
6484   case "$host_os" in
6485     solaris*)
6486                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6487 $as_echo_n "checking for 64-bit host... " >&6; }
6488 if ${gl_cv_solaris_64bit+:} false; then :
6489   $as_echo_n "(cached) " >&6
6490 else
6491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h.  */
6493
6494 #ifdef _LP64
6495 sixtyfour bits
6496 #endif
6497
6498 _ACEOF
6499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6500   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6501   gl_cv_solaris_64bit=yes
6502 else
6503   gl_cv_solaris_64bit=no
6504 fi
6505 rm -f conftest*
6506
6507
6508 fi
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6510 $as_echo "$gl_cv_solaris_64bit" >&6; }
6511       if test $gl_cv_solaris_64bit = yes; then
6512         acl_libdirstem=lib/64
6513         case "$host_cpu" in
6514           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6515           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6516         esac
6517       fi
6518       ;;
6519     *)
6520       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6521       if test -n "$searchpath"; then
6522         acl_save_IFS="${IFS=    }"; IFS=":"
6523         for searchdir in $searchpath; do
6524           if test -d "$searchdir"; then
6525             case "$searchdir" in
6526               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6527               */../ | */.. )
6528                 # Better ignore directories of this form. They are misleading.
6529                 ;;
6530               *) searchdir=`cd "$searchdir" && pwd`
6531                  case "$searchdir" in
6532                    */lib64 ) acl_libdirstem=lib64 ;;
6533                  esac ;;
6534             esac
6535           fi
6536         done
6537         IFS="$acl_save_IFS"
6538       fi
6539       ;;
6540   esac
6541   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554     use_additional=yes
6555
6556   acl_save_prefix="$prefix"
6557   prefix="$acl_final_prefix"
6558   acl_save_exec_prefix="$exec_prefix"
6559   exec_prefix="$acl_final_exec_prefix"
6560
6561     eval additional_includedir=\"$includedir\"
6562     eval additional_libdir=\"$libdir\"
6563
6564   exec_prefix="$acl_save_exec_prefix"
6565   prefix="$acl_save_prefix"
6566
6567
6568 # Check whether --with-libiconv-prefix was given.
6569 if test "${with_libiconv_prefix+set}" = set; then :
6570   withval=$with_libiconv_prefix;
6571     if test "X$withval" = "Xno"; then
6572       use_additional=no
6573     else
6574       if test "X$withval" = "X"; then
6575
6576   acl_save_prefix="$prefix"
6577   prefix="$acl_final_prefix"
6578   acl_save_exec_prefix="$exec_prefix"
6579   exec_prefix="$acl_final_exec_prefix"
6580
6581           eval additional_includedir=\"$includedir\"
6582           eval additional_libdir=\"$libdir\"
6583
6584   exec_prefix="$acl_save_exec_prefix"
6585   prefix="$acl_save_prefix"
6586
6587       else
6588         additional_includedir="$withval/include"
6589         additional_libdir="$withval/$acl_libdirstem"
6590         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6591            && ! test -d "$withval/$acl_libdirstem"; then
6592           additional_libdir="$withval/$acl_libdirstem2"
6593         fi
6594       fi
6595     fi
6596
6597 fi
6598
6599       LIBICONV=
6600   LTLIBICONV=
6601   INCICONV=
6602   LIBICONV_PREFIX=
6603       HAVE_LIBICONV=
6604   rpathdirs=
6605   ltrpathdirs=
6606   names_already_handled=
6607   names_next_round='iconv '
6608   while test -n "$names_next_round"; do
6609     names_this_round="$names_next_round"
6610     names_next_round=
6611     for name in $names_this_round; do
6612       already_handled=
6613       for n in $names_already_handled; do
6614         if test "$n" = "$name"; then
6615           already_handled=yes
6616           break
6617         fi
6618       done
6619       if test -z "$already_handled"; then
6620         names_already_handled="$names_already_handled $name"
6621                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6622         eval value=\"\$HAVE_LIB$uppername\"
6623         if test -n "$value"; then
6624           if test "$value" = yes; then
6625             eval value=\"\$LIB$uppername\"
6626             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6627             eval value=\"\$LTLIB$uppername\"
6628             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6629           else
6630                                     :
6631           fi
6632         else
6633                               found_dir=
6634           found_la=
6635           found_so=
6636           found_a=
6637           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6638           if test -n "$acl_shlibext"; then
6639             shrext=".$acl_shlibext"             # typically: shrext=.so
6640           else
6641             shrext=
6642           fi
6643           if test $use_additional = yes; then
6644             dir="$additional_libdir"
6645                                     if test -n "$acl_shlibext"; then
6646               if test -f "$dir/$libname$shrext"; then
6647                 found_dir="$dir"
6648                 found_so="$dir/$libname$shrext"
6649               else
6650                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6651                   ver=`(cd "$dir" && \
6652                         for f in "$libname$shrext".*; do echo "$f"; done \
6653                         | sed -e "s,^$libname$shrext\\\\.,," \
6654                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6655                         | sed 1q ) 2>/dev/null`
6656                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6657                     found_dir="$dir"
6658                     found_so="$dir/$libname$shrext.$ver"
6659                   fi
6660                 else
6661                   eval library_names=\"$acl_library_names_spec\"
6662                   for f in $library_names; do
6663                     if test -f "$dir/$f"; then
6664                       found_dir="$dir"
6665                       found_so="$dir/$f"
6666                       break
6667                     fi
6668                   done
6669                 fi
6670               fi
6671             fi
6672                         if test "X$found_dir" = "X"; then
6673               if test -f "$dir/$libname.$acl_libext"; then
6674                 found_dir="$dir"
6675                 found_a="$dir/$libname.$acl_libext"
6676               fi
6677             fi
6678             if test "X$found_dir" != "X"; then
6679               if test -f "$dir/$libname.la"; then
6680                 found_la="$dir/$libname.la"
6681               fi
6682             fi
6683           fi
6684           if test "X$found_dir" = "X"; then
6685             for x in $LDFLAGS $LTLIBICONV; do
6686
6687   acl_save_prefix="$prefix"
6688   prefix="$acl_final_prefix"
6689   acl_save_exec_prefix="$exec_prefix"
6690   exec_prefix="$acl_final_exec_prefix"
6691   eval x=\"$x\"
6692   exec_prefix="$acl_save_exec_prefix"
6693   prefix="$acl_save_prefix"
6694
6695               case "$x" in
6696                 -L*)
6697                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6698                                     if test -n "$acl_shlibext"; then
6699                     if test -f "$dir/$libname$shrext"; then
6700                       found_dir="$dir"
6701                       found_so="$dir/$libname$shrext"
6702                     else
6703                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6704                         ver=`(cd "$dir" && \
6705                               for f in "$libname$shrext".*; do echo "$f"; done \
6706                               | sed -e "s,^$libname$shrext\\\\.,," \
6707                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6708                               | sed 1q ) 2>/dev/null`
6709                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6710                           found_dir="$dir"
6711                           found_so="$dir/$libname$shrext.$ver"
6712                         fi
6713                       else
6714                         eval library_names=\"$acl_library_names_spec\"
6715                         for f in $library_names; do
6716                           if test -f "$dir/$f"; then
6717                             found_dir="$dir"
6718                             found_so="$dir/$f"
6719                             break
6720                           fi
6721                         done
6722                       fi
6723                     fi
6724                   fi
6725                                     if test "X$found_dir" = "X"; then
6726                     if test -f "$dir/$libname.$acl_libext"; then
6727                       found_dir="$dir"
6728                       found_a="$dir/$libname.$acl_libext"
6729                     fi
6730                   fi
6731                   if test "X$found_dir" != "X"; then
6732                     if test -f "$dir/$libname.la"; then
6733                       found_la="$dir/$libname.la"
6734                     fi
6735                   fi
6736                   ;;
6737               esac
6738               if test "X$found_dir" != "X"; then
6739                 break
6740               fi
6741             done
6742           fi
6743           if test "X$found_dir" != "X"; then
6744                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6745             if test "X$found_so" != "X"; then
6746                                                         if test "$enable_rpath" = no \
6747                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6748                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6749                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6750               else
6751                                                                                 haveit=
6752                 for x in $ltrpathdirs; do
6753                   if test "X$x" = "X$found_dir"; then
6754                     haveit=yes
6755                     break
6756                   fi
6757                 done
6758                 if test -z "$haveit"; then
6759                   ltrpathdirs="$ltrpathdirs $found_dir"
6760                 fi
6761                                 if test "$acl_hardcode_direct" = yes; then
6762                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6763                 else
6764                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6765                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6766                                                             haveit=
6767                     for x in $rpathdirs; do
6768                       if test "X$x" = "X$found_dir"; then
6769                         haveit=yes
6770                         break
6771                       fi
6772                     done
6773                     if test -z "$haveit"; then
6774                       rpathdirs="$rpathdirs $found_dir"
6775                     fi
6776                   else
6777                                                                                 haveit=
6778                     for x in $LDFLAGS $LIBICONV; do
6779
6780   acl_save_prefix="$prefix"
6781   prefix="$acl_final_prefix"
6782   acl_save_exec_prefix="$exec_prefix"
6783   exec_prefix="$acl_final_exec_prefix"
6784   eval x=\"$x\"
6785   exec_prefix="$acl_save_exec_prefix"
6786   prefix="$acl_save_prefix"
6787
6788                       if test "X$x" = "X-L$found_dir"; then
6789                         haveit=yes
6790                         break
6791                       fi
6792                     done
6793                     if test -z "$haveit"; then
6794                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6795                     fi
6796                     if test "$acl_hardcode_minus_L" != no; then
6797                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6798                     else
6799                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6800                     fi
6801                   fi
6802                 fi
6803               fi
6804             else
6805               if test "X$found_a" != "X"; then
6806                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6807               else
6808                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6809               fi
6810             fi
6811                         additional_includedir=
6812             case "$found_dir" in
6813               */$acl_libdirstem | */$acl_libdirstem/)
6814                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6815                 if test "$name" = 'iconv'; then
6816                   LIBICONV_PREFIX="$basedir"
6817                 fi
6818                 additional_includedir="$basedir/include"
6819                 ;;
6820               */$acl_libdirstem2 | */$acl_libdirstem2/)
6821                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6822                 if test "$name" = 'iconv'; then
6823                   LIBICONV_PREFIX="$basedir"
6824                 fi
6825                 additional_includedir="$basedir/include"
6826                 ;;
6827             esac
6828             if test "X$additional_includedir" != "X"; then
6829                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6830                 haveit=
6831                 if test "X$additional_includedir" = "X/usr/local/include"; then
6832                   if test -n "$GCC"; then
6833                     case $host_os in
6834                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6835                     esac
6836                   fi
6837                 fi
6838                 if test -z "$haveit"; then
6839                   for x in $CPPFLAGS $INCICONV; do
6840
6841   acl_save_prefix="$prefix"
6842   prefix="$acl_final_prefix"
6843   acl_save_exec_prefix="$exec_prefix"
6844   exec_prefix="$acl_final_exec_prefix"
6845   eval x=\"$x\"
6846   exec_prefix="$acl_save_exec_prefix"
6847   prefix="$acl_save_prefix"
6848
6849                     if test "X$x" = "X-I$additional_includedir"; then
6850                       haveit=yes
6851                       break
6852                     fi
6853                   done
6854                   if test -z "$haveit"; then
6855                     if test -d "$additional_includedir"; then
6856                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6857                     fi
6858                   fi
6859                 fi
6860               fi
6861             fi
6862                         if test -n "$found_la"; then
6863                                                         save_libdir="$libdir"
6864               case "$found_la" in
6865                 */* | *\\*) . "$found_la" ;;
6866                 *) . "./$found_la" ;;
6867               esac
6868               libdir="$save_libdir"
6869                             for dep in $dependency_libs; do
6870                 case "$dep" in
6871                   -L*)
6872                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6873                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6874                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6875                       haveit=
6876                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6877                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6878                         if test -n "$GCC"; then
6879                           case $host_os in
6880                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6881                           esac
6882                         fi
6883                       fi
6884                       if test -z "$haveit"; then
6885                         haveit=
6886                         for x in $LDFLAGS $LIBICONV; do
6887
6888   acl_save_prefix="$prefix"
6889   prefix="$acl_final_prefix"
6890   acl_save_exec_prefix="$exec_prefix"
6891   exec_prefix="$acl_final_exec_prefix"
6892   eval x=\"$x\"
6893   exec_prefix="$acl_save_exec_prefix"
6894   prefix="$acl_save_prefix"
6895
6896                           if test "X$x" = "X-L$additional_libdir"; then
6897                             haveit=yes
6898                             break
6899                           fi
6900                         done
6901                         if test -z "$haveit"; then
6902                           if test -d "$additional_libdir"; then
6903                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6904                           fi
6905                         fi
6906                         haveit=
6907                         for x in $LDFLAGS $LTLIBICONV; do
6908
6909   acl_save_prefix="$prefix"
6910   prefix="$acl_final_prefix"
6911   acl_save_exec_prefix="$exec_prefix"
6912   exec_prefix="$acl_final_exec_prefix"
6913   eval x=\"$x\"
6914   exec_prefix="$acl_save_exec_prefix"
6915   prefix="$acl_save_prefix"
6916
6917                           if test "X$x" = "X-L$additional_libdir"; then
6918                             haveit=yes
6919                             break
6920                           fi
6921                         done
6922                         if test -z "$haveit"; then
6923                           if test -d "$additional_libdir"; then
6924                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6925                           fi
6926                         fi
6927                       fi
6928                     fi
6929                     ;;
6930                   -R*)
6931                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6932                     if test "$enable_rpath" != no; then
6933                                                                   haveit=
6934                       for x in $rpathdirs; do
6935                         if test "X$x" = "X$dir"; then
6936                           haveit=yes
6937                           break
6938                         fi
6939                       done
6940                       if test -z "$haveit"; then
6941                         rpathdirs="$rpathdirs $dir"
6942                       fi
6943                                                                   haveit=
6944                       for x in $ltrpathdirs; do
6945                         if test "X$x" = "X$dir"; then
6946                           haveit=yes
6947                           break
6948                         fi
6949                       done
6950                       if test -z "$haveit"; then
6951                         ltrpathdirs="$ltrpathdirs $dir"
6952                       fi
6953                     fi
6954                     ;;
6955                   -l*)
6956                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6957                     ;;
6958                   *.la)
6959                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6960                     ;;
6961                   *)
6962                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6963                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6964                     ;;
6965                 esac
6966               done
6967             fi
6968           else
6969                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6970             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6971           fi
6972         fi
6973       fi
6974     done
6975   done
6976   if test "X$rpathdirs" != "X"; then
6977     if test -n "$acl_hardcode_libdir_separator"; then
6978                         alldirs=
6979       for found_dir in $rpathdirs; do
6980         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6981       done
6982             acl_save_libdir="$libdir"
6983       libdir="$alldirs"
6984       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6985       libdir="$acl_save_libdir"
6986       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6987     else
6988             for found_dir in $rpathdirs; do
6989         acl_save_libdir="$libdir"
6990         libdir="$found_dir"
6991         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6992         libdir="$acl_save_libdir"
6993         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6994       done
6995     fi
6996   fi
6997   if test "X$ltrpathdirs" != "X"; then
6998             for found_dir in $ltrpathdirs; do
6999       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7000     done
7001   fi
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7034 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7035 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7036   $as_echo_n "(cached) " >&6
7037 else
7038   gt_save_LIBS="$LIBS"
7039      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7040      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h.  */
7042 #include <CoreFoundation/CFPreferences.h>
7043 int
7044 main ()
7045 {
7046 CFPreferencesCopyAppValue(NULL, NULL)
7047   ;
7048   return 0;
7049 }
7050 _ACEOF
7051 if ac_fn_c_try_link "$LINENO"; then :
7052   gt_cv_func_CFPreferencesCopyAppValue=yes
7053 else
7054   gt_cv_func_CFPreferencesCopyAppValue=no
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext \
7057     conftest$ac_exeext conftest.$ac_ext
7058      LIBS="$gt_save_LIBS"
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7061 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7062   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7063
7064 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7065
7066   fi
7067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7068 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7069 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   gt_save_LIBS="$LIBS"
7073      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7074      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h.  */
7076 #include <CoreFoundation/CFLocale.h>
7077 int
7078 main ()
7079 {
7080 CFLocaleCopyCurrent();
7081   ;
7082   return 0;
7083 }
7084 _ACEOF
7085 if ac_fn_c_try_link "$LINENO"; then :
7086   gt_cv_func_CFLocaleCopyCurrent=yes
7087 else
7088   gt_cv_func_CFLocaleCopyCurrent=no
7089 fi
7090 rm -f core conftest.err conftest.$ac_objext \
7091     conftest$ac_exeext conftest.$ac_ext
7092      LIBS="$gt_save_LIBS"
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7095 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7096   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7097
7098 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7099
7100   fi
7101   INTL_MACOSX_LIBS=
7102   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7103     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7104   fi
7105
7106
7107
7108
7109
7110
7111   LIBINTL=
7112   LTLIBINTL=
7113   POSUB=
7114
7115     case " $gt_needs " in
7116     *" need-formatstring-macros "*) gt_api_version=3 ;;
7117     *" need-ngettext "*) gt_api_version=2 ;;
7118     *) gt_api_version=1 ;;
7119   esac
7120   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7121   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7122
7123     if test "$USE_NLS" = "yes"; then
7124     gt_use_preinstalled_gnugettext=no
7125
7126
7127         if test $gt_api_version -ge 3; then
7128           gt_revision_test_code='
7129 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7130 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7131 #endif
7132 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7133 '
7134         else
7135           gt_revision_test_code=
7136         fi
7137         if test $gt_api_version -ge 2; then
7138           gt_expression_test_code=' + * ngettext ("", "", 0)'
7139         else
7140           gt_expression_test_code=
7141         fi
7142
7143         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7144 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7145 if eval \${$gt_func_gnugettext_libc+:} false; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h.  */
7150 #include <libintl.h>
7151 $gt_revision_test_code
7152 extern int _nl_msg_cat_cntr;
7153 extern int *_nl_domain_bindings;
7154 int
7155 main ()
7156 {
7157 bindtextdomain ("", "");
7158 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7159   ;
7160   return 0;
7161 }
7162 _ACEOF
7163 if ac_fn_c_try_link "$LINENO"; then :
7164   eval "$gt_func_gnugettext_libc=yes"
7165 else
7166   eval "$gt_func_gnugettext_libc=no"
7167 fi
7168 rm -f core conftest.err conftest.$ac_objext \
7169     conftest$ac_exeext conftest.$ac_ext
7170 fi
7171 eval ac_res=\$$gt_func_gnugettext_libc
7172                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7173 $as_echo "$ac_res" >&6; }
7174
7175         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7176
7177
7178
7179
7180
7181           am_save_CPPFLAGS="$CPPFLAGS"
7182
7183   for element in $INCICONV; do
7184     haveit=
7185     for x in $CPPFLAGS; do
7186
7187   acl_save_prefix="$prefix"
7188   prefix="$acl_final_prefix"
7189   acl_save_exec_prefix="$exec_prefix"
7190   exec_prefix="$acl_final_exec_prefix"
7191   eval x=\"$x\"
7192   exec_prefix="$acl_save_exec_prefix"
7193   prefix="$acl_save_prefix"
7194
7195       if test "X$x" = "X$element"; then
7196         haveit=yes
7197         break
7198       fi
7199     done
7200     if test -z "$haveit"; then
7201       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7202     fi
7203   done
7204
7205
7206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7207 $as_echo_n "checking for iconv... " >&6; }
7208 if ${am_cv_func_iconv+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211
7212     am_cv_func_iconv="no, consider installing GNU libiconv"
7213     am_cv_lib_iconv=no
7214     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h.  */
7216 #include <stdlib.h>
7217 #include <iconv.h>
7218 int
7219 main ()
7220 {
7221 iconv_t cd = iconv_open("","");
7222        iconv(cd,NULL,NULL,NULL,NULL);
7223        iconv_close(cd);
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 if ac_fn_c_try_link "$LINENO"; then :
7229   am_cv_func_iconv=yes
7230 fi
7231 rm -f core conftest.err conftest.$ac_objext \
7232     conftest$ac_exeext conftest.$ac_ext
7233     if test "$am_cv_func_iconv" != yes; then
7234       am_save_LIBS="$LIBS"
7235       LIBS="$LIBS $LIBICONV"
7236       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h.  */
7238 #include <stdlib.h>
7239 #include <iconv.h>
7240 int
7241 main ()
7242 {
7243 iconv_t cd = iconv_open("","");
7244          iconv(cd,NULL,NULL,NULL,NULL);
7245          iconv_close(cd);
7246   ;
7247   return 0;
7248 }
7249 _ACEOF
7250 if ac_fn_c_try_link "$LINENO"; then :
7251   am_cv_lib_iconv=yes
7252         am_cv_func_iconv=yes
7253 fi
7254 rm -f core conftest.err conftest.$ac_objext \
7255     conftest$ac_exeext conftest.$ac_ext
7256       LIBS="$am_save_LIBS"
7257     fi
7258
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7261 $as_echo "$am_cv_func_iconv" >&6; }
7262   if test "$am_cv_func_iconv" = yes; then
7263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7264 $as_echo_n "checking for working iconv... " >&6; }
7265 if ${am_cv_func_iconv_works+:} false; then :
7266   $as_echo_n "(cached) " >&6
7267 else
7268
7269             am_save_LIBS="$LIBS"
7270       if test $am_cv_lib_iconv = yes; then
7271         LIBS="$LIBS $LIBICONV"
7272       fi
7273       if test "$cross_compiling" = yes; then :
7274   case "$host_os" in
7275            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7276            *)            am_cv_func_iconv_works="guessing yes" ;;
7277          esac
7278 else
7279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h.  */
7281
7282 #include <iconv.h>
7283 #include <string.h>
7284 int main ()
7285 {
7286   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7287      returns.  */
7288   {
7289     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7290     if (cd_utf8_to_88591 != (iconv_t)(-1))
7291       {
7292         static const char input[] = "\342\202\254"; /* EURO SIGN */
7293         char buf[10];
7294         const char *inptr = input;
7295         size_t inbytesleft = strlen (input);
7296         char *outptr = buf;
7297         size_t outbytesleft = sizeof (buf);
7298         size_t res = iconv (cd_utf8_to_88591,
7299                             (char **) &inptr, &inbytesleft,
7300                             &outptr, &outbytesleft);
7301         if (res == 0)
7302           return 1;
7303       }
7304   }
7305   /* Test against Solaris 10 bug: Failures are not distinguishable from
7306      successful returns.  */
7307   {
7308     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7309     if (cd_ascii_to_88591 != (iconv_t)(-1))
7310       {
7311         static const char input[] = "\263";
7312         char buf[10];
7313         const char *inptr = input;
7314         size_t inbytesleft = strlen (input);
7315         char *outptr = buf;
7316         size_t outbytesleft = sizeof (buf);
7317         size_t res = iconv (cd_ascii_to_88591,
7318                             (char **) &inptr, &inbytesleft,
7319                             &outptr, &outbytesleft);
7320         if (res == 0)
7321           return 1;
7322       }
7323   }
7324 #if 0 /* This bug could be worked around by the caller.  */
7325   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7326   {
7327     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7328     if (cd_88591_to_utf8 != (iconv_t)(-1))
7329       {
7330         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7331         char buf[50];
7332         const char *inptr = input;
7333         size_t inbytesleft = strlen (input);
7334         char *outptr = buf;
7335         size_t outbytesleft = sizeof (buf);
7336         size_t res = iconv (cd_88591_to_utf8,
7337                             (char **) &inptr, &inbytesleft,
7338                             &outptr, &outbytesleft);
7339         if ((int)res > 0)
7340           return 1;
7341       }
7342   }
7343 #endif
7344   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7345      provided.  */
7346   if (/* Try standardized names.  */
7347       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7348       /* Try IRIX, OSF/1 names.  */
7349       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7350       /* Try AIX names.  */
7351       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7352       /* Try HP-UX names.  */
7353       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7354     return 1;
7355   return 0;
7356 }
7357 _ACEOF
7358 if ac_fn_c_try_run "$LINENO"; then :
7359   am_cv_func_iconv_works=yes
7360 else
7361   am_cv_func_iconv_works=no
7362 fi
7363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7364   conftest.$ac_objext conftest.beam conftest.$ac_ext
7365 fi
7366
7367       LIBS="$am_save_LIBS"
7368
7369 fi
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7371 $as_echo "$am_cv_func_iconv_works" >&6; }
7372     case "$am_cv_func_iconv_works" in
7373       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7374       *)   am_func_iconv=yes ;;
7375     esac
7376   else
7377     am_func_iconv=no am_cv_lib_iconv=no
7378   fi
7379   if test "$am_func_iconv" = yes; then
7380
7381 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7382
7383   fi
7384   if test "$am_cv_lib_iconv" = yes; then
7385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7386 $as_echo_n "checking how to link with libiconv... " >&6; }
7387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7388 $as_echo "$LIBICONV" >&6; }
7389   else
7390             CPPFLAGS="$am_save_CPPFLAGS"
7391     LIBICONV=
7392     LTLIBICONV=
7393   fi
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405     use_additional=yes
7406
7407   acl_save_prefix="$prefix"
7408   prefix="$acl_final_prefix"
7409   acl_save_exec_prefix="$exec_prefix"
7410   exec_prefix="$acl_final_exec_prefix"
7411
7412     eval additional_includedir=\"$includedir\"
7413     eval additional_libdir=\"$libdir\"
7414
7415   exec_prefix="$acl_save_exec_prefix"
7416   prefix="$acl_save_prefix"
7417
7418
7419 # Check whether --with-libintl-prefix was given.
7420 if test "${with_libintl_prefix+set}" = set; then :
7421   withval=$with_libintl_prefix;
7422     if test "X$withval" = "Xno"; then
7423       use_additional=no
7424     else
7425       if test "X$withval" = "X"; then
7426
7427   acl_save_prefix="$prefix"
7428   prefix="$acl_final_prefix"
7429   acl_save_exec_prefix="$exec_prefix"
7430   exec_prefix="$acl_final_exec_prefix"
7431
7432           eval additional_includedir=\"$includedir\"
7433           eval additional_libdir=\"$libdir\"
7434
7435   exec_prefix="$acl_save_exec_prefix"
7436   prefix="$acl_save_prefix"
7437
7438       else
7439         additional_includedir="$withval/include"
7440         additional_libdir="$withval/$acl_libdirstem"
7441         if test "$acl_libdirstem2" != "$acl_libdirstem" \
7442            && ! test -d "$withval/$acl_libdirstem"; then
7443           additional_libdir="$withval/$acl_libdirstem2"
7444         fi
7445       fi
7446     fi
7447
7448 fi
7449
7450       LIBINTL=
7451   LTLIBINTL=
7452   INCINTL=
7453   LIBINTL_PREFIX=
7454       HAVE_LIBINTL=
7455   rpathdirs=
7456   ltrpathdirs=
7457   names_already_handled=
7458   names_next_round='intl '
7459   while test -n "$names_next_round"; do
7460     names_this_round="$names_next_round"
7461     names_next_round=
7462     for name in $names_this_round; do
7463       already_handled=
7464       for n in $names_already_handled; do
7465         if test "$n" = "$name"; then
7466           already_handled=yes
7467           break
7468         fi
7469       done
7470       if test -z "$already_handled"; then
7471         names_already_handled="$names_already_handled $name"
7472                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7473         eval value=\"\$HAVE_LIB$uppername\"
7474         if test -n "$value"; then
7475           if test "$value" = yes; then
7476             eval value=\"\$LIB$uppername\"
7477             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7478             eval value=\"\$LTLIB$uppername\"
7479             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7480           else
7481                                     :
7482           fi
7483         else
7484                               found_dir=
7485           found_la=
7486           found_so=
7487           found_a=
7488           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7489           if test -n "$acl_shlibext"; then
7490             shrext=".$acl_shlibext"             # typically: shrext=.so
7491           else
7492             shrext=
7493           fi
7494           if test $use_additional = yes; then
7495             dir="$additional_libdir"
7496                                     if test -n "$acl_shlibext"; then
7497               if test -f "$dir/$libname$shrext"; then
7498                 found_dir="$dir"
7499                 found_so="$dir/$libname$shrext"
7500               else
7501                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7502                   ver=`(cd "$dir" && \
7503                         for f in "$libname$shrext".*; do echo "$f"; done \
7504                         | sed -e "s,^$libname$shrext\\\\.,," \
7505                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7506                         | sed 1q ) 2>/dev/null`
7507                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7508                     found_dir="$dir"
7509                     found_so="$dir/$libname$shrext.$ver"
7510                   fi
7511                 else
7512                   eval library_names=\"$acl_library_names_spec\"
7513                   for f in $library_names; do
7514                     if test -f "$dir/$f"; then
7515                       found_dir="$dir"
7516                       found_so="$dir/$f"
7517                       break
7518                     fi
7519                   done
7520                 fi
7521               fi
7522             fi
7523                         if test "X$found_dir" = "X"; then
7524               if test -f "$dir/$libname.$acl_libext"; then
7525                 found_dir="$dir"
7526                 found_a="$dir/$libname.$acl_libext"
7527               fi
7528             fi
7529             if test "X$found_dir" != "X"; then
7530               if test -f "$dir/$libname.la"; then
7531                 found_la="$dir/$libname.la"
7532               fi
7533             fi
7534           fi
7535           if test "X$found_dir" = "X"; then
7536             for x in $LDFLAGS $LTLIBINTL; do
7537
7538   acl_save_prefix="$prefix"
7539   prefix="$acl_final_prefix"
7540   acl_save_exec_prefix="$exec_prefix"
7541   exec_prefix="$acl_final_exec_prefix"
7542   eval x=\"$x\"
7543   exec_prefix="$acl_save_exec_prefix"
7544   prefix="$acl_save_prefix"
7545
7546               case "$x" in
7547                 -L*)
7548                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7549                                     if test -n "$acl_shlibext"; then
7550                     if test -f "$dir/$libname$shrext"; then
7551                       found_dir="$dir"
7552                       found_so="$dir/$libname$shrext"
7553                     else
7554                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7555                         ver=`(cd "$dir" && \
7556                               for f in "$libname$shrext".*; do echo "$f"; done \
7557                               | sed -e "s,^$libname$shrext\\\\.,," \
7558                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7559                               | sed 1q ) 2>/dev/null`
7560                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7561                           found_dir="$dir"
7562                           found_so="$dir/$libname$shrext.$ver"
7563                         fi
7564                       else
7565                         eval library_names=\"$acl_library_names_spec\"
7566                         for f in $library_names; do
7567                           if test -f "$dir/$f"; then
7568                             found_dir="$dir"
7569                             found_so="$dir/$f"
7570                             break
7571                           fi
7572                         done
7573                       fi
7574                     fi
7575                   fi
7576                                     if test "X$found_dir" = "X"; then
7577                     if test -f "$dir/$libname.$acl_libext"; then
7578                       found_dir="$dir"
7579                       found_a="$dir/$libname.$acl_libext"
7580                     fi
7581                   fi
7582                   if test "X$found_dir" != "X"; then
7583                     if test -f "$dir/$libname.la"; then
7584                       found_la="$dir/$libname.la"
7585                     fi
7586                   fi
7587                   ;;
7588               esac
7589               if test "X$found_dir" != "X"; then
7590                 break
7591               fi
7592             done
7593           fi
7594           if test "X$found_dir" != "X"; then
7595                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7596             if test "X$found_so" != "X"; then
7597                                                         if test "$enable_rpath" = no \
7598                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7599                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7600                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7601               else
7602                                                                                 haveit=
7603                 for x in $ltrpathdirs; do
7604                   if test "X$x" = "X$found_dir"; then
7605                     haveit=yes
7606                     break
7607                   fi
7608                 done
7609                 if test -z "$haveit"; then
7610                   ltrpathdirs="$ltrpathdirs $found_dir"
7611                 fi
7612                                 if test "$acl_hardcode_direct" = yes; then
7613                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7614                 else
7615                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7616                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7617                                                             haveit=
7618                     for x in $rpathdirs; do
7619                       if test "X$x" = "X$found_dir"; then
7620                         haveit=yes
7621                         break
7622                       fi
7623                     done
7624                     if test -z "$haveit"; then
7625                       rpathdirs="$rpathdirs $found_dir"
7626                     fi
7627                   else
7628                                                                                 haveit=
7629                     for x in $LDFLAGS $LIBINTL; do
7630
7631   acl_save_prefix="$prefix"
7632   prefix="$acl_final_prefix"
7633   acl_save_exec_prefix="$exec_prefix"
7634   exec_prefix="$acl_final_exec_prefix"
7635   eval x=\"$x\"
7636   exec_prefix="$acl_save_exec_prefix"
7637   prefix="$acl_save_prefix"
7638
7639                       if test "X$x" = "X-L$found_dir"; then
7640                         haveit=yes
7641                         break
7642                       fi
7643                     done
7644                     if test -z "$haveit"; then
7645                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7646                     fi
7647                     if test "$acl_hardcode_minus_L" != no; then
7648                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7649                     else
7650                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7651                     fi
7652                   fi
7653                 fi
7654               fi
7655             else
7656               if test "X$found_a" != "X"; then
7657                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7658               else
7659                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7660               fi
7661             fi
7662                         additional_includedir=
7663             case "$found_dir" in
7664               */$acl_libdirstem | */$acl_libdirstem/)
7665                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7666                 if test "$name" = 'intl'; then
7667                   LIBINTL_PREFIX="$basedir"
7668                 fi
7669                 additional_includedir="$basedir/include"
7670                 ;;
7671               */$acl_libdirstem2 | */$acl_libdirstem2/)
7672                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7673                 if test "$name" = 'intl'; then
7674                   LIBINTL_PREFIX="$basedir"
7675                 fi
7676                 additional_includedir="$basedir/include"
7677                 ;;
7678             esac
7679             if test "X$additional_includedir" != "X"; then
7680                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7681                 haveit=
7682                 if test "X$additional_includedir" = "X/usr/local/include"; then
7683                   if test -n "$GCC"; then
7684                     case $host_os in
7685                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7686                     esac
7687                   fi
7688                 fi
7689                 if test -z "$haveit"; then
7690                   for x in $CPPFLAGS $INCINTL; do
7691
7692   acl_save_prefix="$prefix"
7693   prefix="$acl_final_prefix"
7694   acl_save_exec_prefix="$exec_prefix"
7695   exec_prefix="$acl_final_exec_prefix"
7696   eval x=\"$x\"
7697   exec_prefix="$acl_save_exec_prefix"
7698   prefix="$acl_save_prefix"
7699
7700                     if test "X$x" = "X-I$additional_includedir"; then
7701                       haveit=yes
7702                       break
7703                     fi
7704                   done
7705                   if test -z "$haveit"; then
7706                     if test -d "$additional_includedir"; then
7707                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7708                     fi
7709                   fi
7710                 fi
7711               fi
7712             fi
7713                         if test -n "$found_la"; then
7714                                                         save_libdir="$libdir"
7715               case "$found_la" in
7716                 */* | *\\*) . "$found_la" ;;
7717                 *) . "./$found_la" ;;
7718               esac
7719               libdir="$save_libdir"
7720                             for dep in $dependency_libs; do
7721                 case "$dep" in
7722                   -L*)
7723                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7724                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7725                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7726                       haveit=
7727                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7728                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7729                         if test -n "$GCC"; then
7730                           case $host_os in
7731                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7732                           esac
7733                         fi
7734                       fi
7735                       if test -z "$haveit"; then
7736                         haveit=
7737                         for x in $LDFLAGS $LIBINTL; do
7738
7739   acl_save_prefix="$prefix"
7740   prefix="$acl_final_prefix"
7741   acl_save_exec_prefix="$exec_prefix"
7742   exec_prefix="$acl_final_exec_prefix"
7743   eval x=\"$x\"
7744   exec_prefix="$acl_save_exec_prefix"
7745   prefix="$acl_save_prefix"
7746
7747                           if test "X$x" = "X-L$additional_libdir"; then
7748                             haveit=yes
7749                             break
7750                           fi
7751                         done
7752                         if test -z "$haveit"; then
7753                           if test -d "$additional_libdir"; then
7754                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7755                           fi
7756                         fi
7757                         haveit=
7758                         for x in $LDFLAGS $LTLIBINTL; do
7759
7760   acl_save_prefix="$prefix"
7761   prefix="$acl_final_prefix"
7762   acl_save_exec_prefix="$exec_prefix"
7763   exec_prefix="$acl_final_exec_prefix"
7764   eval x=\"$x\"
7765   exec_prefix="$acl_save_exec_prefix"
7766   prefix="$acl_save_prefix"
7767
7768                           if test "X$x" = "X-L$additional_libdir"; then
7769                             haveit=yes
7770                             break
7771                           fi
7772                         done
7773                         if test -z "$haveit"; then
7774                           if test -d "$additional_libdir"; then
7775                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7776                           fi
7777                         fi
7778                       fi
7779                     fi
7780                     ;;
7781                   -R*)
7782                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7783                     if test "$enable_rpath" != no; then
7784                                                                   haveit=
7785                       for x in $rpathdirs; do
7786                         if test "X$x" = "X$dir"; then
7787                           haveit=yes
7788                           break
7789                         fi
7790                       done
7791                       if test -z "$haveit"; then
7792                         rpathdirs="$rpathdirs $dir"
7793                       fi
7794                                                                   haveit=
7795                       for x in $ltrpathdirs; do
7796                         if test "X$x" = "X$dir"; then
7797                           haveit=yes
7798                           break
7799                         fi
7800                       done
7801                       if test -z "$haveit"; then
7802                         ltrpathdirs="$ltrpathdirs $dir"
7803                       fi
7804                     fi
7805                     ;;
7806                   -l*)
7807                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7808                     ;;
7809                   *.la)
7810                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7811                     ;;
7812                   *)
7813                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7814                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7815                     ;;
7816                 esac
7817               done
7818             fi
7819           else
7820                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7821             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7822           fi
7823         fi
7824       fi
7825     done
7826   done
7827   if test "X$rpathdirs" != "X"; then
7828     if test -n "$acl_hardcode_libdir_separator"; then
7829                         alldirs=
7830       for found_dir in $rpathdirs; do
7831         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7832       done
7833             acl_save_libdir="$libdir"
7834       libdir="$alldirs"
7835       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7836       libdir="$acl_save_libdir"
7837       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7838     else
7839             for found_dir in $rpathdirs; do
7840         acl_save_libdir="$libdir"
7841         libdir="$found_dir"
7842         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7843         libdir="$acl_save_libdir"
7844         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7845       done
7846     fi
7847   fi
7848   if test "X$ltrpathdirs" != "X"; then
7849             for found_dir in $ltrpathdirs; do
7850       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7851     done
7852   fi
7853
7854
7855
7856
7857
7858
7859           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7860 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7861 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   gt_save_CPPFLAGS="$CPPFLAGS"
7865             CPPFLAGS="$CPPFLAGS $INCINTL"
7866             gt_save_LIBS="$LIBS"
7867             LIBS="$LIBS $LIBINTL"
7868                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h.  */
7870 #include <libintl.h>
7871 $gt_revision_test_code
7872 extern int _nl_msg_cat_cntr;
7873 extern
7874 #ifdef __cplusplus
7875 "C"
7876 #endif
7877 const char *_nl_expand_alias (const char *);
7878 int
7879 main ()
7880 {
7881 bindtextdomain ("", "");
7882 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7883   ;
7884   return 0;
7885 }
7886 _ACEOF
7887 if ac_fn_c_try_link "$LINENO"; then :
7888   eval "$gt_func_gnugettext_libintl=yes"
7889 else
7890   eval "$gt_func_gnugettext_libintl=no"
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext \
7893     conftest$ac_exeext conftest.$ac_ext
7894                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7895               LIBS="$LIBS $LIBICONV"
7896               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h.  */
7898 #include <libintl.h>
7899 $gt_revision_test_code
7900 extern int _nl_msg_cat_cntr;
7901 extern
7902 #ifdef __cplusplus
7903 "C"
7904 #endif
7905 const char *_nl_expand_alias (const char *);
7906 int
7907 main ()
7908 {
7909 bindtextdomain ("", "");
7910 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7911   ;
7912   return 0;
7913 }
7914 _ACEOF
7915 if ac_fn_c_try_link "$LINENO"; then :
7916   LIBINTL="$LIBINTL $LIBICONV"
7917                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7918                 eval "$gt_func_gnugettext_libintl=yes"
7919
7920 fi
7921 rm -f core conftest.err conftest.$ac_objext \
7922     conftest$ac_exeext conftest.$ac_ext
7923             fi
7924             CPPFLAGS="$gt_save_CPPFLAGS"
7925             LIBS="$gt_save_LIBS"
7926 fi
7927 eval ac_res=\$$gt_func_gnugettext_libintl
7928                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7929 $as_echo "$ac_res" >&6; }
7930         fi
7931
7932                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7933            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7934                 && test "$PACKAGE" != gettext-runtime \
7935                 && test "$PACKAGE" != gettext-tools; }; then
7936           gt_use_preinstalled_gnugettext=yes
7937         else
7938                     LIBINTL=
7939           LTLIBINTL=
7940           INCINTL=
7941         fi
7942
7943
7944
7945     if test -n "$INTL_MACOSX_LIBS"; then
7946       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7947          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7948                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7949         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7950       fi
7951     fi
7952
7953     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7954        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7955
7956 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7957
7958     else
7959       USE_NLS=no
7960     fi
7961   fi
7962
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7964 $as_echo_n "checking whether to use NLS... " >&6; }
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7966 $as_echo "$USE_NLS" >&6; }
7967   if test "$USE_NLS" = "yes"; then
7968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7969 $as_echo_n "checking where the gettext function comes from... " >&6; }
7970     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7971       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7972         gt_source="external libintl"
7973       else
7974         gt_source="libc"
7975       fi
7976     else
7977       gt_source="included intl directory"
7978     fi
7979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7980 $as_echo "$gt_source" >&6; }
7981   fi
7982
7983   if test "$USE_NLS" = "yes"; then
7984
7985     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7986       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7988 $as_echo_n "checking how to link with libintl... " >&6; }
7989         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7990 $as_echo "$LIBINTL" >&6; }
7991
7992   for element in $INCINTL; do
7993     haveit=
7994     for x in $CPPFLAGS; do
7995
7996   acl_save_prefix="$prefix"
7997   prefix="$acl_final_prefix"
7998   acl_save_exec_prefix="$exec_prefix"
7999   exec_prefix="$acl_final_exec_prefix"
8000   eval x=\"$x\"
8001   exec_prefix="$acl_save_exec_prefix"
8002   prefix="$acl_save_prefix"
8003
8004       if test "X$x" = "X$element"; then
8005         haveit=yes
8006         break
8007       fi
8008     done
8009     if test -z "$haveit"; then
8010       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8011     fi
8012   done
8013
8014       fi
8015
8016
8017 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8018
8019
8020 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8021
8022     fi
8023
8024         POSUB=po
8025   fi
8026
8027
8028
8029     INTLLIBS="$LIBINTL"
8030
8031
8032
8033
8034
8035
8036
8037
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8039 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8040 if ${am_cv_langinfo_codeset+:} false; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h.  */
8045 #include <langinfo.h>
8046 int
8047 main ()
8048 {
8049 char* cs = nl_langinfo(CODESET); return !cs;
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 if ac_fn_c_try_link "$LINENO"; then :
8055   am_cv_langinfo_codeset=yes
8056 else
8057   am_cv_langinfo_codeset=no
8058 fi
8059 rm -f core conftest.err conftest.$ac_objext \
8060     conftest$ac_exeext conftest.$ac_ext
8061
8062 fi
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8064 $as_echo "$am_cv_langinfo_codeset" >&6; }
8065   if test $am_cv_langinfo_codeset = yes; then
8066
8067 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8068
8069   fi
8070
8071
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8073 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8074 if ${gt_cv_val_LC_MESSAGES+:} false; then :
8075   $as_echo_n "(cached) " >&6
8076 else
8077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h.  */
8079 #include <locale.h>
8080 int
8081 main ()
8082 {
8083 return LC_MESSAGES
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 if ac_fn_c_try_link "$LINENO"; then :
8089   gt_cv_val_LC_MESSAGES=yes
8090 else
8091   gt_cv_val_LC_MESSAGES=no
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext \
8094     conftest$ac_exeext conftest.$ac_ext
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8097 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8098   if test $gt_cv_val_LC_MESSAGES = yes; then
8099
8100 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8101
8102   fi
8103
8104
8105 for ac_header in arpa/inet.h fcntl.h limits.h locale.h libintl.h mcheck.h \
8106         netdb.h netinet/in.h stdarg.h stddef.h string.h \
8107         sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h \
8108         termios.h stropts.h wchar.h wctype.h
8109 do :
8110   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8111 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8113   cat >>confdefs.h <<_ACEOF
8114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8115 _ACEOF
8116
8117 fi
8118
8119 done
8120
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8122 $as_echo_n "checking for ANSI C header files... " >&6; }
8123 if ${ac_cv_header_stdc+:} false; then :
8124   $as_echo_n "(cached) " >&6
8125 else
8126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h.  */
8128 #include <stdlib.h>
8129 #include <stdarg.h>
8130 #include <string.h>
8131 #include <float.h>
8132
8133 int
8134 main ()
8135 {
8136
8137   ;
8138   return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_compile "$LINENO"; then :
8142   ac_cv_header_stdc=yes
8143 else
8144   ac_cv_header_stdc=no
8145 fi
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147
8148 if test $ac_cv_header_stdc = yes; then
8149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h.  */
8152 #include <string.h>
8153
8154 _ACEOF
8155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8156   $EGREP "memchr" >/dev/null 2>&1; then :
8157
8158 else
8159   ac_cv_header_stdc=no
8160 fi
8161 rm -f conftest*
8162
8163 fi
8164
8165 if test $ac_cv_header_stdc = yes; then
8166   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h.  */
8169 #include <stdlib.h>
8170
8171 _ACEOF
8172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8173   $EGREP "free" >/dev/null 2>&1; then :
8174
8175 else
8176   ac_cv_header_stdc=no
8177 fi
8178 rm -f conftest*
8179
8180 fi
8181
8182 if test $ac_cv_header_stdc = yes; then
8183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8184   if test "$cross_compiling" = yes; then :
8185   :
8186 else
8187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h.  */
8189 #include <ctype.h>
8190 #include <stdlib.h>
8191 #if ((' ' & 0x0FF) == 0x020)
8192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8194 #else
8195 # define ISLOWER(c) \
8196                    (('a' <= (c) && (c) <= 'i') \
8197                      || ('j' <= (c) && (c) <= 'r') \
8198                      || ('s' <= (c) && (c) <= 'z'))
8199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8200 #endif
8201
8202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8203 int
8204 main ()
8205 {
8206   int i;
8207   for (i = 0; i < 256; i++)
8208     if (XOR (islower (i), ISLOWER (i))
8209         || toupper (i) != TOUPPER (i))
8210       return 2;
8211   return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_run "$LINENO"; then :
8215
8216 else
8217   ac_cv_header_stdc=no
8218 fi
8219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8220   conftest.$ac_objext conftest.beam conftest.$ac_ext
8221 fi
8222
8223 fi
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8226 $as_echo "$ac_cv_header_stdc" >&6; }
8227 if test $ac_cv_header_stdc = yes; then
8228
8229 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8230
8231 fi
8232
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8234 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8235 if ${ac_cv_header_stdbool_h+:} false; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h.  */
8240
8241              #include <stdbool.h>
8242              #ifndef bool
8243               "error: bool is not defined"
8244              #endif
8245              #ifndef false
8246               "error: false is not defined"
8247              #endif
8248              #if false
8249               "error: false is not 0"
8250              #endif
8251              #ifndef true
8252               "error: true is not defined"
8253              #endif
8254              #if true != 1
8255               "error: true is not 1"
8256              #endif
8257              #ifndef __bool_true_false_are_defined
8258               "error: __bool_true_false_are_defined is not defined"
8259              #endif
8260
8261              struct s { _Bool s: 1; _Bool t; } s;
8262
8263              char a[true == 1 ? 1 : -1];
8264              char b[false == 0 ? 1 : -1];
8265              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8266              char d[(bool) 0.5 == true ? 1 : -1];
8267              /* See body of main program for 'e'.  */
8268              char f[(_Bool) 0.0 == false ? 1 : -1];
8269              char g[true];
8270              char h[sizeof (_Bool)];
8271              char i[sizeof s.t];
8272              enum { j = false, k = true, l = false * true, m = true * 256 };
8273              /* The following fails for
8274                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8275              _Bool n[m];
8276              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8277              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8278              /* Catch a bug in an HP-UX C compiler.  See
8279                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8280                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8281               */
8282              _Bool q = true;
8283              _Bool *pq = &q;
8284
8285 int
8286 main ()
8287 {
8288
8289              bool e = &s;
8290              *pq |= q;
8291              *pq |= ! q;
8292              /* Refer to every declared value, to avoid compiler optimizations.  */
8293              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8294                      + !m + !n + !o + !p + !q + !pq);
8295
8296   ;
8297   return 0;
8298 }
8299 _ACEOF
8300 if ac_fn_c_try_compile "$LINENO"; then :
8301   ac_cv_header_stdbool_h=yes
8302 else
8303   ac_cv_header_stdbool_h=no
8304 fi
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 fi
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8308 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8309    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8310 if test "x$ac_cv_type__Bool" = xyes; then :
8311
8312 cat >>confdefs.h <<_ACEOF
8313 #define HAVE__BOOL 1
8314 _ACEOF
8315
8316
8317 fi
8318
8319
8320 if test $ac_cv_header_stdbool_h = yes; then
8321
8322 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
8323
8324 fi
8325
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8327 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8328 if ${ac_cv_header_sys_wait_h+:} false; then :
8329   $as_echo_n "(cached) " >&6
8330 else
8331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h.  */
8333 #include <sys/types.h>
8334 #include <sys/wait.h>
8335 #ifndef WEXITSTATUS
8336 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8337 #endif
8338 #ifndef WIFEXITED
8339 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8340 #endif
8341
8342 int
8343 main ()
8344 {
8345   int s;
8346   wait (&s);
8347   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 if ac_fn_c_try_compile "$LINENO"; then :
8353   ac_cv_header_sys_wait_h=yes
8354 else
8355   ac_cv_header_sys_wait_h=no
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8360 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8361 if test $ac_cv_header_sys_wait_h = yes; then
8362
8363 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8364
8365 fi
8366
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8368 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8369 if ${ac_cv_header_time+:} false; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h.  */
8374 #include <sys/types.h>
8375 #include <sys/time.h>
8376 #include <time.h>
8377
8378 int
8379 main ()
8380 {
8381 if ((struct tm *) 0)
8382 return 0;
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_compile "$LINENO"; then :
8388   ac_cv_header_time=yes
8389 else
8390   ac_cv_header_time=no
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8395 $as_echo "$ac_cv_header_time" >&6; }
8396 if test $ac_cv_header_time = yes; then
8397
8398 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8399
8400 fi
8401
8402
8403 if test "$ac_cv_header_string_h" = yes
8404 then
8405         for ac_header in memory.h
8406 do :
8407   ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
8408 if test "x$ac_cv_header_memory_h" = xyes; then :
8409   cat >>confdefs.h <<_ACEOF
8410 #define HAVE_MEMORY_H 1
8411 _ACEOF
8412
8413 fi
8414
8415 done
8416
8417 else
8418         for ac_header in strings.h
8419 do :
8420   ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
8421 if test "x$ac_cv_header_strings_h" = xyes; then :
8422   cat >>confdefs.h <<_ACEOF
8423 #define HAVE_STRINGS_H 1
8424 _ACEOF
8425
8426 fi
8427
8428 done
8429
8430 fi
8431
8432  if test "x$build_alias" != "x$host_alias"; then
8433   TEST_CROSS_COMPILE_TRUE=
8434   TEST_CROSS_COMPILE_FALSE='#'
8435 else
8436   TEST_CROSS_COMPILE_TRUE='#'
8437   TEST_CROSS_COMPILE_FALSE=
8438 fi
8439
8440
8441 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8442 if test "x$ac_cv_type_pid_t" = xyes; then :
8443
8444 else
8445
8446 cat >>confdefs.h <<_ACEOF
8447 #define pid_t int
8448 _ACEOF
8449
8450 fi
8451
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8453 $as_echo_n "checking return type of signal handlers... " >&6; }
8454 if ${ac_cv_type_signal+:} false; then :
8455   $as_echo_n "(cached) " >&6
8456 else
8457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h.  */
8459 #include <sys/types.h>
8460 #include <signal.h>
8461
8462 int
8463 main ()
8464 {
8465 return *(signal (0, 0)) (0) == 1;
8466   ;
8467   return 0;
8468 }
8469 _ACEOF
8470 if ac_fn_c_try_compile "$LINENO"; then :
8471   ac_cv_type_signal=int
8472 else
8473   ac_cv_type_signal=void
8474 fi
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 fi
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8478 $as_echo "$ac_cv_type_signal" >&6; }
8479
8480 cat >>confdefs.h <<_ACEOF
8481 #define RETSIGTYPE $ac_cv_type_signal
8482 _ACEOF
8483
8484
8485 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8486 if test "x$ac_cv_type_size_t" = xyes; then :
8487
8488 else
8489
8490 cat >>confdefs.h <<_ACEOF
8491 #define size_t unsigned int
8492 _ACEOF
8493
8494 fi
8495
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8497 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8498 if ${ac_cv_type_uid_t+:} false; then :
8499   $as_echo_n "(cached) " >&6
8500 else
8501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h.  */
8503 #include <sys/types.h>
8504
8505 _ACEOF
8506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8507   $EGREP "uid_t" >/dev/null 2>&1; then :
8508   ac_cv_type_uid_t=yes
8509 else
8510   ac_cv_type_uid_t=no
8511 fi
8512 rm -f conftest*
8513
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8516 $as_echo "$ac_cv_type_uid_t" >&6; }
8517 if test $ac_cv_type_uid_t = no; then
8518
8519 $as_echo "#define uid_t int" >>confdefs.h
8520
8521
8522 $as_echo "#define gid_t int" >>confdefs.h
8523
8524 fi
8525
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8527 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8528 if ${ac_cv_type_getgroups+:} false; then :
8529   $as_echo_n "(cached) " >&6
8530 else
8531   if test "$cross_compiling" = yes; then :
8532   ac_cv_type_getgroups=cross
8533 else
8534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h.  */
8536 /* Thanks to Mike Rendell for this test.  */
8537 $ac_includes_default
8538 #define NGID 256
8539 #undef MAX
8540 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8541
8542 int
8543 main ()
8544 {
8545   gid_t gidset[NGID];
8546   int i, n;
8547   union { gid_t gval; long int lval; }  val;
8548
8549   val.lval = -1;
8550   for (i = 0; i < NGID; i++)
8551     gidset[i] = val.gval;
8552   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8553                  gidset);
8554   /* Exit non-zero if getgroups seems to require an array of ints.  This
8555      happens when gid_t is short int but getgroups modifies an array
8556      of ints.  */
8557   return n > 0 && gidset[n] != val.gval;
8558 }
8559 _ACEOF
8560 if ac_fn_c_try_run "$LINENO"; then :
8561   ac_cv_type_getgroups=gid_t
8562 else
8563   ac_cv_type_getgroups=int
8564 fi
8565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8566   conftest.$ac_objext conftest.beam conftest.$ac_ext
8567 fi
8568
8569 if test $ac_cv_type_getgroups = cross; then
8570         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h.  */
8572 #include <unistd.h>
8573
8574 _ACEOF
8575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8576   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8577   ac_cv_type_getgroups=gid_t
8578 else
8579   ac_cv_type_getgroups=int
8580 fi
8581 rm -f conftest*
8582
8583 fi
8584 fi
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8586 $as_echo "$ac_cv_type_getgroups" >&6; }
8587
8588 cat >>confdefs.h <<_ACEOF
8589 #define GETGROUPS_T $ac_cv_type_getgroups
8590 _ACEOF
8591
8592
8593
8594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8595 $as_echo_n "checking for long long int... " >&6; }
8596 if ${ac_cv_type_long_long_int+:} false; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h.  */
8601
8602   /* For now, do not test the preprocessor; as of 2007 there are too many
8603          implementations with broken preprocessors.  Perhaps this can
8604          be revisited in 2012.  In the meantime, code should not expect
8605          #if to work with literals wider than 32 bits.  */
8606       /* Test literals.  */
8607       long long int ll = 9223372036854775807ll;
8608       long long int nll = -9223372036854775807LL;
8609       unsigned long long int ull = 18446744073709551615ULL;
8610       /* Test constant expressions.   */
8611       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8612                      ? 1 : -1)];
8613       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8614                      ? 1 : -1)];
8615       int i = 63;
8616 int
8617 main ()
8618 {
8619 /* Test availability of runtime routines for shift and division.  */
8620       long long int llmax = 9223372036854775807ll;
8621       unsigned long long int ullmax = 18446744073709551615ull;
8622       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8623               | (llmax / ll) | (llmax % ll)
8624               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8625               | (ullmax / ull) | (ullmax % ull));
8626   ;
8627   return 0;
8628 }
8629
8630 _ACEOF
8631 if ac_fn_c_try_link "$LINENO"; then :
8632                           if test "$cross_compiling" = yes; then :
8633   ac_cv_type_long_long_int=yes
8634 else
8635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h.  */
8637 #include <limits.h>
8638                #ifndef LLONG_MAX
8639                # define HALF \
8640                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8641                # define LLONG_MAX (HALF - 1 + HALF)
8642                #endif
8643 int
8644 main ()
8645 {
8646 long long int n = 1;
8647                int i;
8648                for (i = 0; ; i++)
8649                  {
8650                    long long int m = n << i;
8651                    if (m >> i != n)
8652                      return 1;
8653                    if (LLONG_MAX / 2 < m)
8654                      break;
8655                  }
8656                return 0;
8657   ;
8658   return 0;
8659 }
8660 _ACEOF
8661 if ac_fn_c_try_run "$LINENO"; then :
8662   ac_cv_type_long_long_int=yes
8663 else
8664   ac_cv_type_long_long_int=no
8665 fi
8666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8667   conftest.$ac_objext conftest.beam conftest.$ac_ext
8668 fi
8669
8670 else
8671   ac_cv_type_long_long_int=no
8672 fi
8673 rm -f core conftest.err conftest.$ac_objext \
8674     conftest$ac_exeext conftest.$ac_ext
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8677 $as_echo "$ac_cv_type_long_long_int" >&6; }
8678   if test $ac_cv_type_long_long_int = yes; then
8679
8680 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8681
8682   fi
8683
8684
8685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8686 $as_echo_n "checking for unsigned long long int... " >&6; }
8687 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h.  */
8692 unsigned long long int ull = 18446744073709551615ULL;
8693             typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
8694                            ? 1 : -1)];
8695            int i = 63;
8696 int
8697 main ()
8698 {
8699 unsigned long long int ullmax = 18446744073709551615ull;
8700             return (ull << 63 | ull >> 63 | ull << i | ull >> i
8701                     | ullmax / ull | ullmax % ull);
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_link "$LINENO"; then :
8707   ac_cv_type_unsigned_long_long_int=yes
8708 else
8709   ac_cv_type_unsigned_long_long_int=no
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext \
8712     conftest$ac_exeext conftest.$ac_ext
8713 fi
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8715 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8716   if test $ac_cv_type_unsigned_long_long_int = yes; then
8717
8718 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8719
8720   fi
8721
8722
8723
8724   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
8725 if test "x$ac_cv_type_intmax_t" = xyes; then :
8726
8727 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8728
8729 else
8730   test $ac_cv_type_long_long_int = yes \
8731        && ac_type='long long int' \
8732        || ac_type='long int'
8733
8734 cat >>confdefs.h <<_ACEOF
8735 #define intmax_t $ac_type
8736 _ACEOF
8737
8738 fi
8739
8740
8741
8742
8743   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8744 if test "x$ac_cv_type_uintmax_t" = xyes; then :
8745
8746 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8747
8748 else
8749   test $ac_cv_type_unsigned_long_long_int = yes \
8750        && ac_type='unsigned long long int' \
8751        || ac_type='unsigned long int'
8752
8753 cat >>confdefs.h <<_ACEOF
8754 #define uintmax_t $ac_type
8755 _ACEOF
8756
8757 fi
8758
8759
8760 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8761 if test "x$ac_cv_type_ssize_t" = xyes; then :
8762
8763 else
8764
8765 cat >>confdefs.h <<_ACEOF
8766 #define ssize_t int
8767 _ACEOF
8768
8769 fi
8770
8771 # The cast to long int works around a bug in the HP C Compiler
8772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8774 # This bug is HP SR number 8606223364.
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
8776 $as_echo_n "checking size of unsigned int... " >&6; }
8777 if ${ac_cv_sizeof_unsigned_int+:} false; then :
8778   $as_echo_n "(cached) " >&6
8779 else
8780   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
8781
8782 else
8783   if test "$ac_cv_type_unsigned_int" = yes; then
8784      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8786 as_fn_error 77 "cannot compute sizeof (unsigned int)
8787 See \`config.log' for more details" "$LINENO" 5; }
8788    else
8789      ac_cv_sizeof_unsigned_int=0
8790    fi
8791 fi
8792
8793 fi
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
8795 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
8796
8797
8798
8799 cat >>confdefs.h <<_ACEOF
8800 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
8801 _ACEOF
8802
8803
8804 # The cast to long int works around a bug in the HP C Compiler
8805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8807 # This bug is HP SR number 8606223364.
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8809 $as_echo_n "checking size of unsigned long... " >&6; }
8810 if ${ac_cv_sizeof_unsigned_long+:} false; then :
8811   $as_echo_n "(cached) " >&6
8812 else
8813   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
8814
8815 else
8816   if test "$ac_cv_type_unsigned_long" = yes; then
8817      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8819 as_fn_error 77 "cannot compute sizeof (unsigned long)
8820 See \`config.log' for more details" "$LINENO" 5; }
8821    else
8822      ac_cv_sizeof_unsigned_long=0
8823    fi
8824 fi
8825
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8828 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8829
8830
8831
8832 cat >>confdefs.h <<_ACEOF
8833 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8834 _ACEOF
8835
8836
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h.  */
8839 #include <sys/types.h>
8840 int
8841 main ()
8842 {
8843
8844         time_t foo;
8845         foo = 0;
8846
8847   ;
8848   return 0;
8849 }
8850 _ACEOF
8851 if ac_fn_c_try_compile "$LINENO"; then :
8852
8853 $as_echo "#define TIME_T_IN_SYS_TYPES_H 1" >>confdefs.h
8854
8855 fi
8856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h.  */
8859 #include <wctype.h>
8860 int
8861 main ()
8862 {
8863
8864         wctype_t foo;
8865         foo = 0;
8866
8867   ;
8868   return 0;
8869 }
8870 _ACEOF
8871 if ac_fn_c_try_compile "$LINENO"; then :
8872
8873 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
8874
8875 fi
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h.  */
8879 #include <wctype.h>
8880 int
8881 main ()
8882 {
8883
8884         wint_t foo;
8885         foo = 0;
8886
8887   ;
8888   return 0;
8889 }
8890 _ACEOF
8891 if ac_fn_c_try_compile "$LINENO"; then :
8892
8893 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8894
8895 fi
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h.  */
8899 #include <sys/types.h>
8900 #include <sys/socket.h>
8901 int
8902 main ()
8903 {
8904
8905         struct sockaddr_storage foo;
8906
8907   ;
8908   return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_c_try_compile "$LINENO"; then :
8912
8913 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8914
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917
8918
8919
8920
8921
8922
8923    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8924 #include <sys/socket.h>
8925 "
8926 if test "x$ac_cv_type_socklen_t" = xyes; then :
8927
8928 else
8929
8930       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
8931 $as_echo_n "checking for socklen_t equivalent... " >&6; }
8932       if ${rsync_cv_socklen_t_equiv+:} false; then :
8933   $as_echo_n "(cached) " >&6
8934 else
8935
8936          # Systems have either "struct sockaddr *" or
8937          # "void *" as the second argument to getpeername
8938          rsync_cv_socklen_t_equiv=
8939          for arg2 in "struct sockaddr" void; do
8940             for t in int size_t unsigned long "unsigned long"; do
8941                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h.  */
8943
8944 #include <sys/types.h>
8945 #include <sys/socket.h>
8946
8947                   int getpeername (int, $arg2 *, $t *);
8948
8949 int
8950 main ()
8951 {
8952
8953                   $t len;
8954                   getpeername(0,0,&len);
8955
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 if ac_fn_c_try_compile "$LINENO"; then :
8961
8962                   rsync_cv_socklen_t_equiv="$t"
8963                   break
8964
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967             done
8968          done
8969
8970          if test "x$rsync_cv_socklen_t_equiv" = x; then
8971                 rsync_cv_socklen_t_equiv=int
8972          fi
8973
8974 fi
8975
8976       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_socklen_t_equiv" >&5
8977 $as_echo "$rsync_cv_socklen_t_equiv" >&6; }
8978
8979 cat >>confdefs.h <<_ACEOF
8980 #define socklen_t $rsync_cv_socklen_t_equiv
8981 _ACEOF
8982
8983 fi
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993   for ac_header in $ac_header_list
8994 do :
8995   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8996 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8997 "
8998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8999   cat >>confdefs.h <<_ACEOF
9000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9001 _ACEOF
9002
9003 fi
9004
9005 done
9006
9007
9008
9009
9010
9011
9012
9013
9014   for ac_func in $ac_func_list
9015 do :
9016   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9017 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9018 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9019   cat >>confdefs.h <<_ACEOF
9020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9021 _ACEOF
9022
9023 fi
9024 done
9025
9026
9027
9028
9029
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
9031 $as_echo_n "checking for working mktime... " >&6; }
9032 if ${ac_cv_func_working_mktime+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   if test "$cross_compiling" = yes; then :
9036   ac_cv_func_working_mktime=no
9037 else
9038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h.  */
9040 /* Test program from Paul Eggert and Tony Leneis.  */
9041 #ifdef TIME_WITH_SYS_TIME
9042 # include <sys/time.h>
9043 # include <time.h>
9044 #else
9045 # ifdef HAVE_SYS_TIME_H
9046 #  include <sys/time.h>
9047 # else
9048 #  include <time.h>
9049 # endif
9050 #endif
9051
9052 #include <limits.h>
9053 #include <stdlib.h>
9054
9055 #ifdef HAVE_UNISTD_H
9056 # include <unistd.h>
9057 #endif
9058
9059 #ifndef HAVE_ALARM
9060 # define alarm(X) /* empty */
9061 #endif
9062
9063 /* Work around redefinition to rpl_putenv by other config tests.  */
9064 #undef putenv
9065
9066 static time_t time_t_max;
9067 static time_t time_t_min;
9068
9069 /* Values we'll use to set the TZ environment variable.  */
9070 static const char *tz_strings[] = {
9071   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
9072   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
9073 };
9074 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
9075
9076 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
9077    Based on a problem report from Andreas Jaeger.  */
9078 static int
9079 spring_forward_gap ()
9080 {
9081   /* glibc (up to about 1998-10-07) failed this test. */
9082   struct tm tm;
9083
9084   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
9085      instead of "TZ=America/Vancouver" in order to detect the bug even
9086      on systems that don't support the Olson extension, or don't have the
9087      full zoneinfo tables installed.  */
9088   putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
9089
9090   tm.tm_year = 98;
9091   tm.tm_mon = 3;
9092   tm.tm_mday = 5;
9093   tm.tm_hour = 2;
9094   tm.tm_min = 0;
9095   tm.tm_sec = 0;
9096   tm.tm_isdst = -1;
9097   return mktime (&tm) != (time_t) -1;
9098 }
9099
9100 static int
9101 mktime_test1 (time_t now)
9102 {
9103   struct tm *lt;
9104   return ! (lt = localtime (&now)) || mktime (lt) == now;
9105 }
9106
9107 static int
9108 mktime_test (time_t now)
9109 {
9110   return (mktime_test1 (now)
9111           && mktime_test1 ((time_t) (time_t_max - now))
9112           && mktime_test1 ((time_t) (time_t_min + now)));
9113 }
9114
9115 static int
9116 irix_6_4_bug ()
9117 {
9118   /* Based on code from Ariel Faigon.  */
9119   struct tm tm;
9120   tm.tm_year = 96;
9121   tm.tm_mon = 3;
9122   tm.tm_mday = 0;
9123   tm.tm_hour = 0;
9124   tm.tm_min = 0;
9125   tm.tm_sec = 0;
9126   tm.tm_isdst = -1;
9127   mktime (&tm);
9128   return tm.tm_mon == 2 && tm.tm_mday == 31;
9129 }
9130
9131 static int
9132 bigtime_test (int j)
9133 {
9134   struct tm tm;
9135   time_t now;
9136   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
9137   now = mktime (&tm);
9138   if (now != (time_t) -1)
9139     {
9140       struct tm *lt = localtime (&now);
9141       if (! (lt
9142              && lt->tm_year == tm.tm_year
9143              && lt->tm_mon == tm.tm_mon
9144              && lt->tm_mday == tm.tm_mday
9145              && lt->tm_hour == tm.tm_hour
9146              && lt->tm_min == tm.tm_min
9147              && lt->tm_sec == tm.tm_sec
9148              && lt->tm_yday == tm.tm_yday
9149              && lt->tm_wday == tm.tm_wday
9150              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
9151                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
9152         return 0;
9153     }
9154   return 1;
9155 }
9156
9157 static int
9158 year_2050_test ()
9159 {
9160   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
9161      ignoring leap seconds.  */
9162   unsigned long int answer = 2527315200UL;
9163
9164   struct tm tm;
9165   time_t t;
9166   tm.tm_year = 2050 - 1900;
9167   tm.tm_mon = 2 - 1;
9168   tm.tm_mday = 1;
9169   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
9170   tm.tm_isdst = -1;
9171
9172   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
9173      instead of "TZ=America/Vancouver" in order to detect the bug even
9174      on systems that don't support the Olson extension, or don't have the
9175      full zoneinfo tables installed.  */
9176   putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
9177
9178   t = mktime (&tm);
9179
9180   /* Check that the result is either a failure, or close enough
9181      to the correct answer that we can assume the discrepancy is
9182      due to leap seconds.  */
9183   return (t == (time_t) -1
9184           || (0 < t && answer - 120 <= t && t <= answer + 120));
9185 }
9186
9187 int
9188 main ()
9189 {
9190   time_t t, delta;
9191   int i, j;
9192
9193   /* This test makes some buggy mktime implementations loop.
9194      Give up after 60 seconds; a mktime slower than that
9195      isn't worth using anyway.  */
9196   alarm (60);
9197
9198   for (;;)
9199     {
9200       t = (time_t_max << 1) + 1;
9201       if (t <= time_t_max)
9202         break;
9203       time_t_max = t;
9204     }
9205   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
9206
9207   delta = time_t_max / 997; /* a suitable prime number */
9208   for (i = 0; i < N_STRINGS; i++)
9209     {
9210       if (tz_strings[i])
9211         putenv ((char*) tz_strings[i]);
9212
9213       for (t = 0; t <= time_t_max - delta; t += delta)
9214         if (! mktime_test (t))
9215           return 1;
9216       if (! (mktime_test ((time_t) 1)
9217              && mktime_test ((time_t) (60 * 60))
9218              && mktime_test ((time_t) (60 * 60 * 24))))
9219         return 1;
9220
9221       for (j = 1; ; j <<= 1)
9222         if (! bigtime_test (j))
9223           return 1;
9224         else if (INT_MAX / 2 < j)
9225           break;
9226       if (! bigtime_test (INT_MAX))
9227         return 1;
9228     }
9229   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
9230 }
9231 _ACEOF
9232 if ac_fn_c_try_run "$LINENO"; then :
9233   ac_cv_func_working_mktime=yes
9234 else
9235   ac_cv_func_working_mktime=no
9236 fi
9237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9238   conftest.$ac_objext conftest.beam conftest.$ac_ext
9239 fi
9240
9241 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
9243 $as_echo "$ac_cv_func_working_mktime" >&6; }
9244 if test $ac_cv_func_working_mktime = no; then
9245   case " $LIBOBJS " in
9246   *" mktime.$ac_objext "* ) ;;
9247   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
9248  ;;
9249 esac
9250
9251 fi
9252
9253 case "$ac_cv_func_working_mktime" in
9254 yes)
9255 $as_echo "#define HAVE_MKTIME 1" >>confdefs.h
9256
9257         ;;
9258 esac
9259
9260 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
9261 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
9262
9263 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
9264
9265 else
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
9267 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
9268 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
9269   $as_echo_n "(cached) " >&6
9270 else
9271   ac_check_lib_save_LIBS=$LIBS
9272 LIBS="-lsocket  $LIBS"
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h.  */
9275
9276 /* Override any GCC internal prototype to avoid an error.
9277    Use char because int might match the return type of a GCC
9278    builtin and then its argument prototype would still apply.  */
9279 #ifdef __cplusplus
9280 extern "C"
9281 #endif
9282 char getaddrinfo ();
9283 int
9284 main ()
9285 {
9286 return getaddrinfo ();
9287   ;
9288   return 0;
9289 }
9290 _ACEOF
9291 if ac_fn_c_try_link "$LINENO"; then :
9292   ac_cv_lib_socket_getaddrinfo=yes
9293 else
9294   ac_cv_lib_socket_getaddrinfo=no
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext \
9297     conftest$ac_exeext conftest.$ac_ext
9298 LIBS=$ac_check_lib_save_LIBS
9299 fi
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
9301 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
9302 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
9303
9304 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
9305
9306 fi
9307
9308 fi
9309
9310
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
9312 $as_echo_n "checking for fmod in -lm... " >&6; }
9313 if ${ac_cv_lib_m_fmod+:} false; then :
9314   $as_echo_n "(cached) " >&6
9315 else
9316   ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-lm  $LIBS"
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h.  */
9320
9321 /* Override any GCC internal prototype to avoid an error.
9322    Use char because int might match the return type of a GCC
9323    builtin and then its argument prototype would still apply.  */
9324 #ifdef __cplusplus
9325 extern "C"
9326 #endif
9327 char fmod ();
9328 int
9329 main ()
9330 {
9331 return fmod ();
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 if ac_fn_c_try_link "$LINENO"; then :
9337   ac_cv_lib_m_fmod=yes
9338 else
9339   ac_cv_lib_m_fmod=no
9340 fi
9341 rm -f core conftest.err conftest.$ac_objext \
9342     conftest$ac_exeext conftest.$ac_ext
9343 LIBS=$ac_check_lib_save_LIBS
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
9346 $as_echo "$ac_cv_lib_m_fmod" >&6; }
9347 if test "x$ac_cv_lib_m_fmod" = xyes; then :
9348   cat >>confdefs.h <<_ACEOF
9349 #define HAVE_LIBM 1
9350 _ACEOF
9351
9352   LIBS="-lm $LIBS"
9353
9354 fi
9355
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
9357 $as_echo_n "checking for isinf in -lm... " >&6; }
9358 if ${ac_cv_lib_m_isinf+:} false; then :
9359   $as_echo_n "(cached) " >&6
9360 else
9361   ac_check_lib_save_LIBS=$LIBS
9362 LIBS="-lm  $LIBS"
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h.  */
9365
9366 /* Override any GCC internal prototype to avoid an error.
9367    Use char because int might match the return type of a GCC
9368    builtin and then its argument prototype would still apply.  */
9369 #ifdef __cplusplus
9370 extern "C"
9371 #endif
9372 char isinf ();
9373 int
9374 main ()
9375 {
9376 return isinf ();
9377   ;
9378   return 0;
9379 }
9380 _ACEOF
9381 if ac_fn_c_try_link "$LINENO"; then :
9382   ac_cv_lib_m_isinf=yes
9383 else
9384   ac_cv_lib_m_isinf=no
9385 fi
9386 rm -f core conftest.err conftest.$ac_objext \
9387     conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
9391 $as_echo "$ac_cv_lib_m_isinf" >&6; }
9392 if test "x$ac_cv_lib_m_isinf" = xyes; then :
9393   cat >>confdefs.h <<_ACEOF
9394 #define HAVE_LIBM 1
9395 _ACEOF
9396
9397   LIBS="-lm $LIBS"
9398
9399 fi
9400
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ismod in -lm" >&5
9402 $as_echo_n "checking for ismod in -lm... " >&6; }
9403 if ${ac_cv_lib_m_ismod+:} false; then :
9404   $as_echo_n "(cached) " >&6
9405 else
9406   ac_check_lib_save_LIBS=$LIBS
9407 LIBS="-lm  $LIBS"
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h.  */
9410
9411 /* Override any GCC internal prototype to avoid an error.
9412    Use char because int might match the return type of a GCC
9413    builtin and then its argument prototype would still apply.  */
9414 #ifdef __cplusplus
9415 extern "C"
9416 #endif
9417 char ismod ();
9418 int
9419 main ()
9420 {
9421 return ismod ();
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 if ac_fn_c_try_link "$LINENO"; then :
9427   ac_cv_lib_m_ismod=yes
9428 else
9429   ac_cv_lib_m_ismod=no
9430 fi
9431 rm -f core conftest.err conftest.$ac_objext \
9432     conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ismod" >&5
9436 $as_echo "$ac_cv_lib_m_ismod" >&6; }
9437 if test "x$ac_cv_lib_m_ismod" = xyes; then :
9438   cat >>confdefs.h <<_ACEOF
9439 #define HAVE_LIBM 1
9440 _ACEOF
9441
9442   LIBS="-lm $LIBS"
9443
9444 fi
9445
9446 case $host_os in
9447 osf1)   : ;;
9448 *)
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463     use_additional=yes
9464
9465   acl_save_prefix="$prefix"
9466   prefix="$acl_final_prefix"
9467   acl_save_exec_prefix="$exec_prefix"
9468   exec_prefix="$acl_final_exec_prefix"
9469
9470     eval additional_includedir=\"$includedir\"
9471     eval additional_libdir=\"$libdir\"
9472
9473   exec_prefix="$acl_save_exec_prefix"
9474   prefix="$acl_save_prefix"
9475
9476
9477 # Check whether --with-libsigsegv-prefix was given.
9478 if test "${with_libsigsegv_prefix+set}" = set; then :
9479   withval=$with_libsigsegv_prefix;
9480     if test "X$withval" = "Xno"; then
9481       use_additional=no
9482     else
9483       if test "X$withval" = "X"; then
9484
9485   acl_save_prefix="$prefix"
9486   prefix="$acl_final_prefix"
9487   acl_save_exec_prefix="$exec_prefix"
9488   exec_prefix="$acl_final_exec_prefix"
9489
9490           eval additional_includedir=\"$includedir\"
9491           eval additional_libdir=\"$libdir\"
9492
9493   exec_prefix="$acl_save_exec_prefix"
9494   prefix="$acl_save_prefix"
9495
9496       else
9497         additional_includedir="$withval/include"
9498         additional_libdir="$withval/$acl_libdirstem"
9499         if test "$acl_libdirstem2" != "$acl_libdirstem" \
9500            && ! test -d "$withval/$acl_libdirstem"; then
9501           additional_libdir="$withval/$acl_libdirstem2"
9502         fi
9503       fi
9504     fi
9505
9506 fi
9507
9508       LIBSIGSEGV=
9509   LTLIBSIGSEGV=
9510   INCSIGSEGV=
9511   LIBSIGSEGV_PREFIX=
9512       HAVE_LIBSIGSEGV=
9513   rpathdirs=
9514   ltrpathdirs=
9515   names_already_handled=
9516   names_next_round='sigsegv '
9517   while test -n "$names_next_round"; do
9518     names_this_round="$names_next_round"
9519     names_next_round=
9520     for name in $names_this_round; do
9521       already_handled=
9522       for n in $names_already_handled; do
9523         if test "$n" = "$name"; then
9524           already_handled=yes
9525           break
9526         fi
9527       done
9528       if test -z "$already_handled"; then
9529         names_already_handled="$names_already_handled $name"
9530                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9531         eval value=\"\$HAVE_LIB$uppername\"
9532         if test -n "$value"; then
9533           if test "$value" = yes; then
9534             eval value=\"\$LIB$uppername\"
9535             test -z "$value" || LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$value"
9536             eval value=\"\$LTLIB$uppername\"
9537             test -z "$value" || LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$value"
9538           else
9539                                     :
9540           fi
9541         else
9542                               found_dir=
9543           found_la=
9544           found_so=
9545           found_a=
9546           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9547           if test -n "$acl_shlibext"; then
9548             shrext=".$acl_shlibext"             # typically: shrext=.so
9549           else
9550             shrext=
9551           fi
9552           if test $use_additional = yes; then
9553             dir="$additional_libdir"
9554                                     if test -n "$acl_shlibext"; then
9555               if test -f "$dir/$libname$shrext"; then
9556                 found_dir="$dir"
9557                 found_so="$dir/$libname$shrext"
9558               else
9559                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9560                   ver=`(cd "$dir" && \
9561                         for f in "$libname$shrext".*; do echo "$f"; done \
9562                         | sed -e "s,^$libname$shrext\\\\.,," \
9563                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9564                         | sed 1q ) 2>/dev/null`
9565                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9566                     found_dir="$dir"
9567                     found_so="$dir/$libname$shrext.$ver"
9568                   fi
9569                 else
9570                   eval library_names=\"$acl_library_names_spec\"
9571                   for f in $library_names; do
9572                     if test -f "$dir/$f"; then
9573                       found_dir="$dir"
9574                       found_so="$dir/$f"
9575                       break
9576                     fi
9577                   done
9578                 fi
9579               fi
9580             fi
9581                         if test "X$found_dir" = "X"; then
9582               if test -f "$dir/$libname.$acl_libext"; then
9583                 found_dir="$dir"
9584                 found_a="$dir/$libname.$acl_libext"
9585               fi
9586             fi
9587             if test "X$found_dir" != "X"; then
9588               if test -f "$dir/$libname.la"; then
9589                 found_la="$dir/$libname.la"
9590               fi
9591             fi
9592           fi
9593           if test "X$found_dir" = "X"; then
9594             for x in $LDFLAGS $LTLIBSIGSEGV; do
9595
9596   acl_save_prefix="$prefix"
9597   prefix="$acl_final_prefix"
9598   acl_save_exec_prefix="$exec_prefix"
9599   exec_prefix="$acl_final_exec_prefix"
9600   eval x=\"$x\"
9601   exec_prefix="$acl_save_exec_prefix"
9602   prefix="$acl_save_prefix"
9603
9604               case "$x" in
9605                 -L*)
9606                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9607                                     if test -n "$acl_shlibext"; then
9608                     if test -f "$dir/$libname$shrext"; then
9609                       found_dir="$dir"
9610                       found_so="$dir/$libname$shrext"
9611                     else
9612                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9613                         ver=`(cd "$dir" && \
9614                               for f in "$libname$shrext".*; do echo "$f"; done \
9615                               | sed -e "s,^$libname$shrext\\\\.,," \
9616                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9617                               | sed 1q ) 2>/dev/null`
9618                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9619                           found_dir="$dir"
9620                           found_so="$dir/$libname$shrext.$ver"
9621                         fi
9622                       else
9623                         eval library_names=\"$acl_library_names_spec\"
9624                         for f in $library_names; do
9625                           if test -f "$dir/$f"; then
9626                             found_dir="$dir"
9627                             found_so="$dir/$f"
9628                             break
9629                           fi
9630                         done
9631                       fi
9632                     fi
9633                   fi
9634                                     if test "X$found_dir" = "X"; then
9635                     if test -f "$dir/$libname.$acl_libext"; then
9636                       found_dir="$dir"
9637                       found_a="$dir/$libname.$acl_libext"
9638                     fi
9639                   fi
9640                   if test "X$found_dir" != "X"; then
9641                     if test -f "$dir/$libname.la"; then
9642                       found_la="$dir/$libname.la"
9643                     fi
9644                   fi
9645                   ;;
9646               esac
9647               if test "X$found_dir" != "X"; then
9648                 break
9649               fi
9650             done
9651           fi
9652           if test "X$found_dir" != "X"; then
9653                         LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$found_dir -l$name"
9654             if test "X$found_so" != "X"; then
9655                                                         if test "$enable_rpath" = no \
9656                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9657                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9658                                 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9659               else
9660                                                                                 haveit=
9661                 for x in $ltrpathdirs; do
9662                   if test "X$x" = "X$found_dir"; then
9663                     haveit=yes
9664                     break
9665                   fi
9666                 done
9667                 if test -z "$haveit"; then
9668                   ltrpathdirs="$ltrpathdirs $found_dir"
9669                 fi
9670                                 if test "$acl_hardcode_direct" = yes; then
9671                                                       LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9672                 else
9673                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9674                                                             LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9675                                                             haveit=
9676                     for x in $rpathdirs; do
9677                       if test "X$x" = "X$found_dir"; then
9678                         haveit=yes
9679                         break
9680                       fi
9681                     done
9682                     if test -z "$haveit"; then
9683                       rpathdirs="$rpathdirs $found_dir"
9684                     fi
9685                   else
9686                                                                                 haveit=
9687                     for x in $LDFLAGS $LIBSIGSEGV; do
9688
9689   acl_save_prefix="$prefix"
9690   prefix="$acl_final_prefix"
9691   acl_save_exec_prefix="$exec_prefix"
9692   exec_prefix="$acl_final_exec_prefix"
9693   eval x=\"$x\"
9694   exec_prefix="$acl_save_exec_prefix"
9695   prefix="$acl_save_prefix"
9696
9697                       if test "X$x" = "X-L$found_dir"; then
9698                         haveit=yes
9699                         break
9700                       fi
9701                     done
9702                     if test -z "$haveit"; then
9703                       LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir"
9704                     fi
9705                     if test "$acl_hardcode_minus_L" != no; then
9706                                                                                         LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9707                     else
9708                                                                                                                                                                                 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
9709                     fi
9710                   fi
9711                 fi
9712               fi
9713             else
9714               if test "X$found_a" != "X"; then
9715                                 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_a"
9716               else
9717                                                 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir -l$name"
9718               fi
9719             fi
9720                         additional_includedir=
9721             case "$found_dir" in
9722               */$acl_libdirstem | */$acl_libdirstem/)
9723                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9724                 if test "$name" = 'sigsegv'; then
9725                   LIBSIGSEGV_PREFIX="$basedir"
9726                 fi
9727                 additional_includedir="$basedir/include"
9728                 ;;
9729               */$acl_libdirstem2 | */$acl_libdirstem2/)
9730                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9731                 if test "$name" = 'sigsegv'; then
9732                   LIBSIGSEGV_PREFIX="$basedir"
9733                 fi
9734                 additional_includedir="$basedir/include"
9735                 ;;
9736             esac
9737             if test "X$additional_includedir" != "X"; then
9738                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9739                 haveit=
9740                 if test "X$additional_includedir" = "X/usr/local/include"; then
9741                   if test -n "$GCC"; then
9742                     case $host_os in
9743                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9744                     esac
9745                   fi
9746                 fi
9747                 if test -z "$haveit"; then
9748                   for x in $CPPFLAGS $INCSIGSEGV; do
9749
9750   acl_save_prefix="$prefix"
9751   prefix="$acl_final_prefix"
9752   acl_save_exec_prefix="$exec_prefix"
9753   exec_prefix="$acl_final_exec_prefix"
9754   eval x=\"$x\"
9755   exec_prefix="$acl_save_exec_prefix"
9756   prefix="$acl_save_prefix"
9757
9758                     if test "X$x" = "X-I$additional_includedir"; then
9759                       haveit=yes
9760                       break
9761                     fi
9762                   done
9763                   if test -z "$haveit"; then
9764                     if test -d "$additional_includedir"; then
9765                                             INCSIGSEGV="${INCSIGSEGV}${INCSIGSEGV:+ }-I$additional_includedir"
9766                     fi
9767                   fi
9768                 fi
9769               fi
9770             fi
9771                         if test -n "$found_la"; then
9772                                                         save_libdir="$libdir"
9773               case "$found_la" in
9774                 */* | *\\*) . "$found_la" ;;
9775                 *) . "./$found_la" ;;
9776               esac
9777               libdir="$save_libdir"
9778                             for dep in $dependency_libs; do
9779                 case "$dep" in
9780                   -L*)
9781                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9782                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9783                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9784                       haveit=
9785                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9786                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9787                         if test -n "$GCC"; then
9788                           case $host_os in
9789                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9790                           esac
9791                         fi
9792                       fi
9793                       if test -z "$haveit"; then
9794                         haveit=
9795                         for x in $LDFLAGS $LIBSIGSEGV; do
9796
9797   acl_save_prefix="$prefix"
9798   prefix="$acl_final_prefix"
9799   acl_save_exec_prefix="$exec_prefix"
9800   exec_prefix="$acl_final_exec_prefix"
9801   eval x=\"$x\"
9802   exec_prefix="$acl_save_exec_prefix"
9803   prefix="$acl_save_prefix"
9804
9805                           if test "X$x" = "X-L$additional_libdir"; then
9806                             haveit=yes
9807                             break
9808                           fi
9809                         done
9810                         if test -z "$haveit"; then
9811                           if test -d "$additional_libdir"; then
9812                                                         LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$additional_libdir"
9813                           fi
9814                         fi
9815                         haveit=
9816                         for x in $LDFLAGS $LTLIBSIGSEGV; do
9817
9818   acl_save_prefix="$prefix"
9819   prefix="$acl_final_prefix"
9820   acl_save_exec_prefix="$exec_prefix"
9821   exec_prefix="$acl_final_exec_prefix"
9822   eval x=\"$x\"
9823   exec_prefix="$acl_save_exec_prefix"
9824   prefix="$acl_save_prefix"
9825
9826                           if test "X$x" = "X-L$additional_libdir"; then
9827                             haveit=yes
9828                             break
9829                           fi
9830                         done
9831                         if test -z "$haveit"; then
9832                           if test -d "$additional_libdir"; then
9833                                                         LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$additional_libdir"
9834                           fi
9835                         fi
9836                       fi
9837                     fi
9838                     ;;
9839                   -R*)
9840                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9841                     if test "$enable_rpath" != no; then
9842                                                                   haveit=
9843                       for x in $rpathdirs; do
9844                         if test "X$x" = "X$dir"; then
9845                           haveit=yes
9846                           break
9847                         fi
9848                       done
9849                       if test -z "$haveit"; then
9850                         rpathdirs="$rpathdirs $dir"
9851                       fi
9852                                                                   haveit=
9853                       for x in $ltrpathdirs; do
9854                         if test "X$x" = "X$dir"; then
9855                           haveit=yes
9856                           break
9857                         fi
9858                       done
9859                       if test -z "$haveit"; then
9860                         ltrpathdirs="$ltrpathdirs $dir"
9861                       fi
9862                     fi
9863                     ;;
9864                   -l*)
9865                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9866                     ;;
9867                   *.la)
9868                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9869                     ;;
9870                   *)
9871                                         LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$dep"
9872                     LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$dep"
9873                     ;;
9874                 esac
9875               done
9876             fi
9877           else
9878                                                             LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
9879             LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-l$name"
9880           fi
9881         fi
9882       fi
9883     done
9884   done
9885   if test "X$rpathdirs" != "X"; then
9886     if test -n "$acl_hardcode_libdir_separator"; then
9887                         alldirs=
9888       for found_dir in $rpathdirs; do
9889         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9890       done
9891             acl_save_libdir="$libdir"
9892       libdir="$alldirs"
9893       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9894       libdir="$acl_save_libdir"
9895       LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
9896     else
9897             for found_dir in $rpathdirs; do
9898         acl_save_libdir="$libdir"
9899         libdir="$found_dir"
9900         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9901         libdir="$acl_save_libdir"
9902         LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
9903       done
9904     fi
9905   fi
9906   if test "X$ltrpathdirs" != "X"; then
9907             for found_dir in $ltrpathdirs; do
9908       LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-R$found_dir"
9909     done
9910   fi
9911
9912
9913
9914
9915
9916
9917
9918         ac_save_CPPFLAGS="$CPPFLAGS"
9919
9920   for element in $INCSIGSEGV; do
9921     haveit=
9922     for x in $CPPFLAGS; do
9923
9924   acl_save_prefix="$prefix"
9925   prefix="$acl_final_prefix"
9926   acl_save_exec_prefix="$exec_prefix"
9927   exec_prefix="$acl_final_exec_prefix"
9928   eval x=\"$x\"
9929   exec_prefix="$acl_save_exec_prefix"
9930   prefix="$acl_save_prefix"
9931
9932       if test "X$x" = "X$element"; then
9933         haveit=yes
9934         break
9935       fi
9936     done
9937     if test -z "$haveit"; then
9938       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9939     fi
9940   done
9941
9942
9943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsigsegv" >&5
9944 $as_echo_n "checking for libsigsegv... " >&6; }
9945 if ${ac_cv_libsigsegv+:} false; then :
9946   $as_echo_n "(cached) " >&6
9947 else
9948
9949     ac_save_LIBS="$LIBS"
9950                                 case " $LIBSIGSEGV" in
9951       *" -l"*) LIBS="$LIBS $LIBSIGSEGV" ;;
9952       *)       LIBS="$LIBSIGSEGV $LIBS" ;;
9953     esac
9954     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h.  */
9956 #include <sigsegv.h>
9957 int
9958 main ()
9959 {
9960 sigsegv_deinstall_handler();
9961   ;
9962   return 0;
9963 }
9964 _ACEOF
9965 if ac_fn_c_try_link "$LINENO"; then :
9966   ac_cv_libsigsegv=yes
9967 else
9968   ac_cv_libsigsegv='no, consider installing GNU libsigsegv'
9969 fi
9970 rm -f core conftest.err conftest.$ac_objext \
9971     conftest$ac_exeext conftest.$ac_ext
9972     LIBS="$ac_save_LIBS"
9973
9974 fi
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libsigsegv" >&5
9976 $as_echo "$ac_cv_libsigsegv" >&6; }
9977   if test "$ac_cv_libsigsegv" = yes; then
9978     HAVE_LIBSIGSEGV=yes
9979
9980 $as_echo "#define HAVE_LIBSIGSEGV 1" >>confdefs.h
9981
9982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libsigsegv" >&5
9983 $as_echo_n "checking how to link with libsigsegv... " >&6; }
9984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSIGSEGV" >&5
9985 $as_echo "$LIBSIGSEGV" >&6; }
9986   else
9987     HAVE_LIBSIGSEGV=no
9988             CPPFLAGS="$ac_save_CPPFLAGS"
9989     LIBSIGSEGV=
9990     LTLIBSIGSEGV=
9991     LIBSIGSEGV_PREFIX=
9992   fi
9993
9994
9995
9996
9997
9998
9999
10000     gl_cv_lib_sigsegv="$ac_cv_libsigsegv"
10001
10002         ;;
10003 esac
10004
10005 # Need the check for mkstemp and tmpfile for missing_d/snprintf.c.
10006 for ac_func in atexit btowc fmod getgrent getgroups grantpt \
10007         isascii iswctype iswlower iswupper mbrlen \
10008         memcmp memcpy memcpy_ulong memmove memset \
10009         memset_ulong mkstemp posix_openpt setenv setlocale setsid snprintf strchr \
10010         strerror strftime strncasecmp strcoll strtod strtoul \
10011         system tmpfile towlower towupper tzset usleep wcrtomb \
10012         wcscoll wctype
10013 do :
10014   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10015 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10016 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10017   cat >>confdefs.h <<_ACEOF
10018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10019 _ACEOF
10020
10021 fi
10022 done
10023
10024
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
10026 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
10027 if ${ac_cv_func_mbrtowc+:} false; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h.  */
10032 #include <wchar.h>
10033 int
10034 main ()
10035 {
10036 wchar_t wc;
10037               char const s[] = "";
10038               size_t n = 1;
10039               mbstate_t state;
10040               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 if ac_fn_c_try_link "$LINENO"; then :
10046   ac_cv_func_mbrtowc=yes
10047 else
10048   ac_cv_func_mbrtowc=no
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext \
10051     conftest$ac_exeext conftest.$ac_ext
10052 fi
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
10054 $as_echo "$ac_cv_func_mbrtowc" >&6; }
10055   if test $ac_cv_func_mbrtowc = yes; then
10056
10057 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
10058
10059   fi
10060
10061
10062 # Check whether --enable-extensions was given.
10063 if test "${enable_extensions+set}" = set; then :
10064   enableval=$enable_extensions;
10065 fi
10066
10067 if test "x$enable_extensions" != "xno"; then
10068         extensions_supported=no
10069
10070                 case $host_os in
10071         mirbsd* | openedition*) # OS/390 z/OS POSIX layer
10072                 cat << \EOF > extension/Makefile
10073 all dist check clean distclean install uninstall distcheck:
10074         @exit 0
10075 EOF
10076                 ;;
10077         *)
10078         ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10079 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10080
10081                 # Check this separately. Some systems have dlopen
10082                 # in libc. Notably freebsd and cygwin.
10083                 # HP-NSK has it in zrldsrl
10084                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10085 $as_echo_n "checking for library containing dlopen... " >&6; }
10086 if ${ac_cv_search_dlopen+:} false; then :
10087   $as_echo_n "(cached) " >&6
10088 else
10089   ac_func_search_save_LIBS=$LIBS
10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h.  */
10092
10093 /* Override any GCC internal prototype to avoid an error.
10094    Use char because int might match the return type of a GCC
10095    builtin and then its argument prototype would still apply.  */
10096 #ifdef __cplusplus
10097 extern "C"
10098 #endif
10099 char dlopen ();
10100 int
10101 main ()
10102 {
10103 return dlopen ();
10104   ;
10105   return 0;
10106 }
10107 _ACEOF
10108 for ac_lib in '' dl zrldsrl; do
10109   if test -z "$ac_lib"; then
10110     ac_res="none required"
10111   else
10112     ac_res=-l$ac_lib
10113     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10114   fi
10115   if ac_fn_c_try_link "$LINENO"; then :
10116   ac_cv_search_dlopen=$ac_res
10117 fi
10118 rm -f core conftest.err conftest.$ac_objext \
10119     conftest$ac_exeext
10120   if ${ac_cv_search_dlopen+:} false; then :
10121   break
10122 fi
10123 done
10124 if ${ac_cv_search_dlopen+:} false; then :
10125
10126 else
10127   ac_cv_search_dlopen=no
10128 fi
10129 rm conftest.$ac_ext
10130 LIBS=$ac_func_search_save_LIBS
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10133 $as_echo "$ac_cv_search_dlopen" >&6; }
10134 ac_res=$ac_cv_search_dlopen
10135 if test "$ac_res" != no; then :
10136   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10137   gawk_have_dlopen=yes
10138 else
10139   gawk_have_dlopen=no
10140 fi
10141
10142                 # Only do DYNAMIC if we have the lib. z/OS (some versions) have
10143                 # the header but not the lib, apparently
10144                 if test "$gawk_have_dlopen" = yes
10145                 then
10146                         extensions_supported=yes
10147
10148 $as_echo "#define DYNAMIC 1" >>confdefs.h
10149
10150                         # Add -export-dynamic for old extensions. Only works for GCC
10151                         if test "$GCC" = yes; then
10152                                 case $host_os in
10153                                 linux*|freebsd*)
10154                                         LDFLAGS="$LDFLAGS -export-dynamic"
10155                                         ;;
10156                                 esac
10157                         fi
10158                 fi
10159
10160 fi
10161
10162
10163                 ;;
10164         esac
10165
10166         if test "x$enable_extensions$extensions_supported" = "xyesno"; then
10167                 as_fn_error $? "extension support requested, but unavailable" "$LINENO" 5
10168         fi
10169         enable_extensions=$extensions_supported
10170 fi
10171
10172 case $host_os in
10173 vms*|beos*|os2*|msdos)
10174
10175 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10176
10177         ;;
10178 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10179 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10180 if ${ac_cv_func_getpgrp_void+:} false; then :
10181   $as_echo_n "(cached) " >&6
10182 else
10183   # Use it with a single arg.
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h.  */
10186 $ac_includes_default
10187 int
10188 main ()
10189 {
10190 getpgrp (0);
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 if ac_fn_c_try_compile "$LINENO"; then :
10196   ac_cv_func_getpgrp_void=no
10197 else
10198   ac_cv_func_getpgrp_void=yes
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201
10202 fi
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10204 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10205 if test $ac_cv_func_getpgrp_void = yes; then
10206
10207 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10208
10209 fi
10210
10211         ;;
10212 esac
10213
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf %F format" >&5
10215 $as_echo_n "checking for printf %F format... " >&6; }
10216 if test "$cross_compiling" = yes; then :
10217   has_f_format=no
10218 else
10219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h.  */
10221
10222
10223 #include <stdio.h>
10224
10225 int main()
10226 {
10227         char buf[100];
10228
10229         sprintf(buf, "%F", 123.45);
10230
10231         if (strcmp(buf, "123.450000") == 0)
10232                 return 0;
10233         else
10234                 return 1;
10235 }
10236
10237 _ACEOF
10238 if ac_fn_c_try_run "$LINENO"; then :
10239   has_f_format=yes
10240 else
10241   has_f_format=no
10242 fi
10243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10244   conftest.$ac_objext conftest.beam conftest.$ac_ext
10245 fi
10246
10247 if test "$has_f_format" = yes; then
10248
10249 $as_echo "#define PRINTF_HAS_F_FORMAT 1" >>confdefs.h
10250
10251 fi
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_f_format" >&5
10253 $as_echo "$has_f_format" >&6; }
10254
10255
10256 gawk_have_sockets=no
10257 # Check for system-dependent location of socket libraries
10258
10259 SOCKET_LIBS=
10260 if test "$ISC" = yes; then
10261   SOCKET_LIBS="-lnsl_s -linet"
10262 else
10263   # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10264   # libraries were built with DECnet support.  And karl@cs.umb.edu says
10265   # the Alpha needs dnet_stub (dnet does not exist).
10266   #
10267   # ADR: Is this needed just for sockets???
10268 #  AC_CHECK_LIB(dnet, dnet_ntoa, [SOCKET_LIBS="$SOCKET_LIBS -ldnet"])
10269 #  if test $ac_cv_lib_dnet_ntoa = no; then
10270 #    AC_CHECK_LIB(dnet_stub, dnet_ntoa,
10271 #       [SOCKET_LIBS="$SOCKET_LIBS -ldnet_stub"])
10272 #  fi
10273
10274   # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10275   # to get the SysV transport functions.
10276   # chad@anasazi.com says the Pyramid MIS-ES running DC/OSx (SVR4)
10277   # needs -lnsl.
10278   # The nsl library prevents programs from opening the X display
10279   # on Irix 5.2, according to dickey@clark.net.
10280   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10281 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10282
10283 fi
10284
10285   if test $ac_cv_func_gethostbyname = no; then
10286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10287 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10288 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10289   $as_echo_n "(cached) " >&6
10290 else
10291   ac_check_lib_save_LIBS=$LIBS
10292 LIBS="-lnsl  $LIBS"
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h.  */
10295
10296 /* Override any GCC internal prototype to avoid an error.
10297    Use char because int might match the return type of a GCC
10298    builtin and then its argument prototype would still apply.  */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char gethostbyname ();
10303 int
10304 main ()
10305 {
10306 return gethostbyname ();
10307   ;
10308   return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_c_try_link "$LINENO"; then :
10312   ac_cv_lib_nsl_gethostbyname=yes
10313 else
10314   ac_cv_lib_nsl_gethostbyname=no
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext \
10317     conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10321 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10322 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10323   SOCKET_LIBS="$SOCKET_LIBS -lnsl"
10324 fi
10325
10326   fi
10327
10328   # lieder@skyler.mavd.honeywell.com says without -lsocket,
10329   # socket/setsockopt and other routines are undefined under SCO ODT
10330   # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10331   # on later versions), says simon@lia.di.epfl.ch: it contains
10332   # gethostby* variants that don't use the nameserver (or something).
10333   # -lsocket must be given before -lnsl if both are needed.
10334   # We assume that if connect needs -lnsl, so does gethostbyname.
10335   ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
10336 if test "x$ac_cv_func_connect" = xyes; then :
10337
10338 fi
10339
10340   if test $ac_cv_func_connect = no; then
10341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
10342 $as_echo_n "checking for connect in -lsocket... " >&6; }
10343 if ${ac_cv_lib_socket_connect+:} false; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-lsocket $SOCKET_LIBS $LIBS"
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h.  */
10350
10351 /* Override any GCC internal prototype to avoid an error.
10352    Use char because int might match the return type of a GCC
10353    builtin and then its argument prototype would still apply.  */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 char connect ();
10358 int
10359 main ()
10360 {
10361 return connect ();
10362   ;
10363   return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367   ac_cv_lib_socket_connect=yes
10368 else
10369   ac_cv_lib_socket_connect=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372     conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
10376 $as_echo "$ac_cv_lib_socket_connect" >&6; }
10377 if test "x$ac_cv_lib_socket_connect" = xyes; then :
10378   SOCKET_LIBS="-lsocket $SOCKET_LIBS"
10379                                   gawk_have_sockets=yes
10380 fi
10381
10382   else
10383     gawk_have_sockets=yes
10384   fi
10385 fi
10386
10387 if test "${gawk_have_sockets}" = "yes"
10388 then
10389         { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the socket library calls" >&5
10390 $as_echo_n "checking where to find the socket library calls... " >&6; }
10391         case "${SOCKET_LIBS}" in
10392         ?*)     gawk_lib_loc="${SOCKET_LIBS}" ;;
10393         *)      gawk_lib_loc="the standard library" ;;
10394         esac
10395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_lib_loc}" >&5
10396 $as_echo "${gawk_lib_loc}" >&6; }
10397
10398
10399 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
10400
10401 fi
10402
10403
10404
10405
10406 # Check whether --with-readline was given.
10407 if test "${with_readline+set}" = set; then :
10408   withval=$with_readline; _do_readline=$withval
10409 else
10410   _do_readline=yes
10411 fi
10412
10413
10414   if test "$_do_readline" != "no" ; then
10415      if test -d "$withval" ; then
10416         CPPFLAGS="${CPPFLAGS} -I$withval/include"
10417         LDFLAGS="${LDFLAGS} -L$withval/lib"
10418      fi
10419
10420      for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
10421         _readline_save_libs=$LIBS
10422         _combo="-lreadline${_termcap:+ $_termcap}"
10423         LIBS="$LIBS $_combo"
10424
10425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
10426 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
10427
10428         if test "$cross_compiling" = yes; then :
10429               _found_readline=no
10430
10431 else
10432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h.  */
10434 #include <stdio.h>
10435 #include <readline/readline.h>
10436 #include <readline/history.h>
10437
10438 int main(int argc, char **argv)
10439 {
10440         int fd;
10441         char *line;
10442
10443         close(0);
10444         close(1);
10445         fd = open("/dev/null", 2);      /* should get fd 0 */
10446         dup(fd);
10447         line = readline("giveittome> ");
10448
10449         /* some printfs don't handle NULL for %s */
10450         printf("got <%s>\n", line ? line : "(NULL)");
10451         return 0;
10452 }
10453 _ACEOF
10454 if ac_fn_c_try_run "$LINENO"; then :
10455               _found_readline=yes
10456 else
10457               _found_readline=no
10458 fi
10459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10460   conftest.$ac_objext conftest.beam conftest.$ac_ext
10461 fi
10462
10463
10464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
10465 $as_echo "$_found_readline" >&6; }
10466
10467         LIBS=$_readline_save_libs
10468
10469         if test $_found_readline = yes ; then
10470            case $host_os in
10471            *bsd* )      _combo="$_combo -ltermcap"
10472                  ;;
10473            esac
10474
10475 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
10476
10477            LIBREADLINE=$_combo
10478
10479
10480            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for history_list in -lreadline" >&5
10481 $as_echo_n "checking for history_list in -lreadline... " >&6; }
10482 if ${ac_cv_lib_readline_history_list+:} false; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   ac_check_lib_save_LIBS=$LIBS
10486 LIBS="-lreadline $_combo $LIBS"
10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h.  */
10489
10490 /* Override any GCC internal prototype to avoid an error.
10491    Use char because int might match the return type of a GCC
10492    builtin and then its argument prototype would still apply.  */
10493 #ifdef __cplusplus
10494 extern "C"
10495 #endif
10496 char history_list ();
10497 int
10498 main ()
10499 {
10500 return history_list ();
10501   ;
10502   return 0;
10503 }
10504 _ACEOF
10505 if ac_fn_c_try_link "$LINENO"; then :
10506   ac_cv_lib_readline_history_list=yes
10507 else
10508   ac_cv_lib_readline_history_list=no
10509 fi
10510 rm -f core conftest.err conftest.$ac_objext \
10511     conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10513 fi
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history_list" >&5
10515 $as_echo "$ac_cv_lib_readline_history_list" >&6; }
10516 if test "x$ac_cv_lib_readline_history_list" = xyes; then :
10517
10518 $as_echo "#define HAVE_HISTORY_LIST 1" >>confdefs.h
10519
10520 fi
10521
10522
10523            break
10524         fi
10525      done
10526
10527      unset _termcap
10528      unset _readline_save_libs
10529      unset _combo
10530      unset _found_readline
10531   fi
10532
10533
10534
10535
10536 # Check whether --with-mpfr was given.
10537 if test "${with_mpfr+set}" = set; then :
10538   withval=$with_mpfr; _do_mpfr=$withval
10539 else
10540   _do_mpfr=yes
10541 fi
10542
10543
10544   if test "$_do_mpfr" != "no" ; then
10545      if test -d "$withval" ; then
10546         CPPFLAGS="${CPPFLAGS} -I$withval/include"
10547         LDFLAGS="${LDFLAGS} -L$withval/lib"
10548      fi
10549
10550         _mpfr_save_libs=$LIBS
10551         _combo="-lmpfr -lgmp"
10552         LIBS="$LIBS $_combo"
10553
10554         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mpfr via \"$_combo\" is present and usable" >&5
10555 $as_echo_n "checking whether mpfr via \"$_combo\" is present and usable... " >&6; }
10556
10557         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h.  */
10559
10560
10561 #include <stdio.h>
10562 #include <mpfr.h>
10563 #include <gmp.h>
10564
10565 int
10566 main ()
10567 {
10568
10569 mpfr_t p;
10570 mpz_t z;
10571 mpfr_init(p);
10572 mpz_init(z);
10573 mpfr_printf("%Rf%Zd", p, z);
10574 mpfr_clear(p);
10575 mpz_clear(z);
10576
10577   ;
10578   return 0;
10579 }
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"; then :
10582   _found_mpfr=yes
10583 else
10584   _found_mpfr=no
10585 fi
10586 rm -f core conftest.err conftest.$ac_objext \
10587     conftest$ac_exeext conftest.$ac_ext
10588
10589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_mpfr" >&5
10590 $as_echo "$_found_mpfr" >&6; }
10591
10592         LIBS=$_mpfr_save_libs
10593
10594         if test $_found_mpfr = yes ; then
10595
10596 $as_echo "#define HAVE_MPFR 1" >>confdefs.h
10597
10598            LIBMPFR=$_combo
10599
10600            break
10601         fi
10602
10603      unset _mpfr_save_libs
10604      unset _combo
10605      unset _found_mpfr
10606   fi
10607
10608
10609 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10610 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
10611
10612 cat >>confdefs.h <<_ACEOF
10613 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10614 _ACEOF
10615
10616
10617 fi
10618
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10620 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10621 if ${ac_cv_struct_tm+:} false; then :
10622   $as_echo_n "(cached) " >&6
10623 else
10624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h.  */
10626 #include <sys/types.h>
10627 #include <time.h>
10628
10629 int
10630 main ()
10631 {
10632 struct tm tm;
10633                                      int *p = &tm.tm_sec;
10634                                      return !p;
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640   ac_cv_struct_tm=time.h
10641 else
10642   ac_cv_struct_tm=sys/time.h
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645 fi
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10647 $as_echo "$ac_cv_struct_tm" >&6; }
10648 if test $ac_cv_struct_tm = sys/time.h; then
10649
10650 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10651
10652 fi
10653
10654 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10655 #include <$ac_cv_struct_tm>
10656
10657 "
10658 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
10659
10660 cat >>confdefs.h <<_ACEOF
10661 #define HAVE_STRUCT_TM_TM_ZONE 1
10662 _ACEOF
10663
10664
10665 fi
10666
10667 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10668
10669 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10670
10671 else
10672   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
10673 "
10674 if test "x$ac_cv_have_decl_tzname" = xyes; then :
10675   ac_have_decl=1
10676 else
10677   ac_have_decl=0
10678 fi
10679
10680 cat >>confdefs.h <<_ACEOF
10681 #define HAVE_DECL_TZNAME $ac_have_decl
10682 _ACEOF
10683
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10685 $as_echo_n "checking for tzname... " >&6; }
10686 if ${ac_cv_var_tzname+:} false; then :
10687   $as_echo_n "(cached) " >&6
10688 else
10689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h.  */
10691 #include <time.h>
10692 #if !HAVE_DECL_TZNAME
10693 extern char *tzname[];
10694 #endif
10695
10696 int
10697 main ()
10698 {
10699 return tzname[0][0];
10700   ;
10701   return 0;
10702 }
10703 _ACEOF
10704 if ac_fn_c_try_link "$LINENO"; then :
10705   ac_cv_var_tzname=yes
10706 else
10707   ac_cv_var_tzname=no
10708 fi
10709 rm -f core conftest.err conftest.$ac_objext \
10710     conftest$ac_exeext conftest.$ac_ext
10711 fi
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10713 $as_echo "$ac_cv_var_tzname" >&6; }
10714   if test $ac_cv_var_tzname = yes; then
10715
10716 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10717
10718   fi
10719 fi
10720
10721
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10723 $as_echo_n "checking whether char is unsigned... " >&6; }
10724 if ${ac_cv_c_char_unsigned+:} false; then :
10725   $as_echo_n "(cached) " >&6
10726 else
10727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h.  */
10729 $ac_includes_default
10730 int
10731 main ()
10732 {
10733 static int test_array [1 - 2 * !(((char) -1) < 0)];
10734 test_array [0] = 0;
10735 return test_array [0];
10736
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_compile "$LINENO"; then :
10742   ac_cv_c_char_unsigned=no
10743 else
10744   ac_cv_c_char_unsigned=yes
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10749 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10750 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10751   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10752
10753 fi
10754
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10756 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10757 if ${ac_cv_c_const+:} false; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h.  */
10762
10763 int
10764 main ()
10765 {
10766
10767 #ifndef __cplusplus
10768   /* Ultrix mips cc rejects this sort of thing.  */
10769   typedef int charset[2];
10770   const charset cs = { 0, 0 };
10771   /* SunOS 4.1.1 cc rejects this.  */
10772   char const *const *pcpcc;
10773   char **ppc;
10774   /* NEC SVR4.0.2 mips cc rejects this.  */
10775   struct point {int x, y;};
10776   static struct point const zero = {0,0};
10777   /* AIX XL C 1.02.0.0 rejects this.
10778      It does not let you subtract one const X* pointer from another in
10779      an arm of an if-expression whose if-part is not a constant
10780      expression */
10781   const char *g = "string";
10782   pcpcc = &g + (g ? g-g : 0);
10783   /* HPUX 7.0 cc rejects these. */
10784   ++pcpcc;
10785   ppc = (char**) pcpcc;
10786   pcpcc = (char const *const *) ppc;
10787   { /* SCO 3.2v4 cc rejects this sort of thing.  */
10788     char tx;
10789     char *t = &tx;
10790     char const *s = 0 ? (char *) 0 : (char const *) 0;
10791
10792     *t++ = 0;
10793     if (s) return 0;
10794   }
10795   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10796     int x[] = {25, 17};
10797     const int *foo = &x[0];
10798     ++foo;
10799   }
10800   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10801     typedef const int *iptr;
10802     iptr p = 0;
10803     ++p;
10804   }
10805   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10806        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10807     struct s { int j; const int *ap[3]; } bx;
10808     struct s *b = &bx; b->j = 5;
10809   }
10810   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10811     const int foo = 10;
10812     if (!foo) return 0;
10813   }
10814   return !cs[0] && !zero.x;
10815 #endif
10816
10817   ;
10818   return 0;
10819 }
10820 _ACEOF
10821 if ac_fn_c_try_compile "$LINENO"; then :
10822   ac_cv_c_const=yes
10823 else
10824   ac_cv_c_const=no
10825 fi
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 fi
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10829 $as_echo "$ac_cv_c_const" >&6; }
10830 if test $ac_cv_c_const = no; then
10831
10832 $as_echo "#define const /**/" >>confdefs.h
10833
10834 fi
10835
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10837 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10838 if ${ac_cv_c_restrict+:} false; then :
10839   $as_echo_n "(cached) " >&6
10840 else
10841   ac_cv_c_restrict=no
10842    # The order here caters to the fact that C++ does not require restrict.
10843    for ac_kw in __restrict __restrict__ _Restrict restrict; do
10844      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h.  */
10846 typedef int * int_ptr;
10847         int foo (int_ptr $ac_kw ip) {
10848         return ip[0];
10849        }
10850 int
10851 main ()
10852 {
10853 int s[1];
10854         int * $ac_kw t = s;
10855         t[0] = 0;
10856         return foo(t)
10857   ;
10858   return 0;
10859 }
10860 _ACEOF
10861 if ac_fn_c_try_compile "$LINENO"; then :
10862   ac_cv_c_restrict=$ac_kw
10863 fi
10864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865      test "$ac_cv_c_restrict" != no && break
10866    done
10867
10868 fi
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10870 $as_echo "$ac_cv_c_restrict" >&6; }
10871
10872  case $ac_cv_c_restrict in
10873    restrict) ;;
10874    no) $as_echo "#define restrict /**/" >>confdefs.h
10875  ;;
10876    *)  cat >>confdefs.h <<_ACEOF
10877 #define restrict $ac_cv_c_restrict
10878 _ACEOF
10879  ;;
10880  esac
10881
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10883 $as_echo_n "checking for inline... " >&6; }
10884 if ${ac_cv_c_inline+:} false; then :
10885   $as_echo_n "(cached) " >&6
10886 else
10887   ac_cv_c_inline=no
10888 for ac_kw in inline __inline__ __inline; do
10889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h.  */
10891 #ifndef __cplusplus
10892 typedef int foo_t;
10893 static $ac_kw foo_t static_foo () {return 0; }
10894 $ac_kw foo_t foo () {return 0; }
10895 #endif
10896
10897 _ACEOF
10898 if ac_fn_c_try_compile "$LINENO"; then :
10899   ac_cv_c_inline=$ac_kw
10900 fi
10901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10902   test "$ac_cv_c_inline" != no && break
10903 done
10904
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10907 $as_echo "$ac_cv_c_inline" >&6; }
10908
10909 case $ac_cv_c_inline in
10910   inline | yes) ;;
10911   *)
10912     case $ac_cv_c_inline in
10913       no) ac_val=;;
10914       *) ac_val=$ac_cv_c_inline;;
10915     esac
10916     cat >>confdefs.h <<_ACEOF
10917 #ifndef __cplusplus
10918 #define inline $ac_val
10919 #endif
10920 _ACEOF
10921     ;;
10922 esac
10923
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
10925 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
10926 if ${ac_cv_c_stringize+:} false; then :
10927   $as_echo_n "(cached) " >&6
10928 else
10929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h.  */
10931 #define x(y) #y
10932
10933 char *s = x(teststring);
10934 _ACEOF
10935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10936   $EGREP "#teststring" >/dev/null 2>&1; then :
10937   ac_cv_c_stringize=no
10938 else
10939   ac_cv_c_stringize=yes
10940 fi
10941 rm -f conftest*
10942
10943 fi
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
10945 $as_echo "$ac_cv_c_stringize" >&6; }
10946 if test $ac_cv_c_stringize = yes; then
10947
10948 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
10949
10950 fi
10951
10952
10953 ac_config_headers="$ac_config_headers config.h:configh.in"
10954
10955
10956
10957 case $acl_shlibext in
10958 dylib)  GAWKLIBEXT=so ;;        # MacOS uses .dylib for shared libraries, but libtool uses .so for modules
10959 *) GAWKLIBEXT=$acl_shlibext ;;
10960 esac
10961
10962
10963 ac_config_files="$ac_config_files Makefile awklib/Makefile doc/Makefile po/Makefile.in test/Makefile"
10964
10965 if test "x$enable_extensions" = "xyes"; then
10966
10967
10968 subdirs="$subdirs extension"
10969
10970 fi
10971 cat >confcache <<\_ACEOF
10972 # This file is a shell script that caches the results of configure
10973 # tests run on this system so they can be shared between configure
10974 # scripts and configure runs, see configure's option --config-cache.
10975 # It is not useful on other systems.  If it contains results you don't
10976 # want to keep, you may remove or edit it.
10977 #
10978 # config.status only pays attention to the cache file if you give it
10979 # the --recheck option to rerun configure.
10980 #
10981 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10982 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10983 # following values.
10984
10985 _ACEOF
10986
10987 # The following way of writing the cache mishandles newlines in values,
10988 # but we know of no workaround that is simple, portable, and efficient.
10989 # So, we kill variables containing newlines.
10990 # Ultrix sh set writes to stderr and can't be redirected directly,
10991 # and sets the high bit in the cache file unless we assign to the vars.
10992 (
10993   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10994     eval ac_val=\$$ac_var
10995     case $ac_val in #(
10996     *${as_nl}*)
10997       case $ac_var in #(
10998       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10999 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11000       esac
11001       case $ac_var in #(
11002       _ | IFS | as_nl) ;; #(
11003       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11004       *) { eval $ac_var=; unset $ac_var;} ;;
11005       esac ;;
11006     esac
11007   done
11008
11009   (set) 2>&1 |
11010     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11011     *${as_nl}ac_space=\ *)
11012       # `set' does not quote correctly, so add quotes: double-quote
11013       # substitution turns \\\\ into \\, and sed turns \\ into \.
11014       sed -n \
11015         "s/'/'\\\\''/g;
11016           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11017       ;; #(
11018     *)
11019       # `set' quotes correctly as required by POSIX, so do not add quotes.
11020       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11021       ;;
11022     esac |
11023     sort
11024 ) |
11025   sed '
11026      /^ac_cv_env_/b end
11027      t clear
11028      :clear
11029      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11030      t end
11031      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11032      :end' >>confcache
11033 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11034   if test -w "$cache_file"; then
11035     if test "x$cache_file" != "x/dev/null"; then
11036       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11037 $as_echo "$as_me: updating cache $cache_file" >&6;}
11038       if test ! -f "$cache_file" || test -h "$cache_file"; then
11039         cat confcache >"$cache_file"
11040       else
11041         case $cache_file in #(
11042         */* | ?:*)
11043           mv -f confcache "$cache_file"$$ &&
11044           mv -f "$cache_file"$$ "$cache_file" ;; #(
11045         *)
11046           mv -f confcache "$cache_file" ;;
11047         esac
11048       fi
11049     fi
11050   else
11051     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11052 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11053   fi
11054 fi
11055 rm -f confcache
11056
11057 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11058 # Let make expand exec_prefix.
11059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11060
11061 DEFS=-DHAVE_CONFIG_H
11062
11063 ac_libobjs=
11064 ac_ltlibobjs=
11065 U=
11066 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11067   # 1. Remove the extension, and $U if already installed.
11068   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11069   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11070   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11071   #    will be set to the directory where LIBOBJS objects are built.
11072   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11073   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11074 done
11075 LIBOBJS=$ac_libobjs
11076
11077 LTLIBOBJS=$ac_ltlibobjs
11078
11079
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11081 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11082    if test -n "$am_sleep_pid"; then
11083      # Hide warnings about reused PIDs.
11084      wait $am_sleep_pid 2>/dev/null
11085    fi
11086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11087 $as_echo "done" >&6; }
11088  if test -n "$EXEEXT"; then
11089   am__EXEEXT_TRUE=
11090   am__EXEEXT_FALSE='#'
11091 else
11092   am__EXEEXT_TRUE='#'
11093   am__EXEEXT_FALSE=
11094 fi
11095
11096 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11097   as_fn_error $? "conditional \"AMDEP\" was never defined.
11098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11099 fi
11100 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11101   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11103 fi
11104 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11105   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11107 fi
11108 if test -z "${TEST_CROSS_COMPILE_TRUE}" && test -z "${TEST_CROSS_COMPILE_FALSE}"; then
11109   as_fn_error $? "conditional \"TEST_CROSS_COMPILE\" was never defined.
11110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11111 fi
11112
11113 : "${CONFIG_STATUS=./config.status}"
11114 ac_write_fail=0
11115 ac_clean_files_save=$ac_clean_files
11116 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11118 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11119 as_write_fail=0
11120 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11121 #! $SHELL
11122 # Generated by $as_me.
11123 # Run this file to recreate the current configuration.
11124 # Compiler output produced by configure, useful for debugging
11125 # configure, is in config.log if it exists.
11126
11127 debug=false
11128 ac_cs_recheck=false
11129 ac_cs_silent=false
11130
11131 SHELL=\${CONFIG_SHELL-$SHELL}
11132 export SHELL
11133 _ASEOF
11134 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11135 ## -------------------- ##
11136 ## M4sh Initialization. ##
11137 ## -------------------- ##
11138
11139 # Be more Bourne compatible
11140 DUALCASE=1; export DUALCASE # for MKS sh
11141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11142   emulate sh
11143   NULLCMD=:
11144   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11145   # is contrary to our usage.  Disable this feature.
11146   alias -g '${1+"$@"}'='"$@"'
11147   setopt NO_GLOB_SUBST
11148 else
11149   case `(set -o) 2>/dev/null` in #(
11150   *posix*) :
11151     set -o posix ;; #(
11152   *) :
11153      ;;
11154 esac
11155 fi
11156
11157
11158 as_nl='
11159 '
11160 export as_nl
11161 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11162 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11163 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11164 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11165 # Prefer a ksh shell builtin over an external printf program on Solaris,
11166 # but without wasting forks for bash or zsh.
11167 if test -z "$BASH_VERSION$ZSH_VERSION" \
11168     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11169   as_echo='print -r --'
11170   as_echo_n='print -rn --'
11171 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11172   as_echo='printf %s\n'
11173   as_echo_n='printf %s'
11174 else
11175   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11176     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11177     as_echo_n='/usr/ucb/echo -n'
11178   else
11179     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11180     as_echo_n_body='eval
11181       arg=$1;
11182       case $arg in #(
11183       *"$as_nl"*)
11184         expr "X$arg" : "X\\(.*\\)$as_nl";
11185         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11186       esac;
11187       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11188     '
11189     export as_echo_n_body
11190     as_echo_n='sh -c $as_echo_n_body as_echo'
11191   fi
11192   export as_echo_body
11193   as_echo='sh -c $as_echo_body as_echo'
11194 fi
11195
11196 # The user is always right.
11197 if test "${PATH_SEPARATOR+set}" != set; then
11198   PATH_SEPARATOR=:
11199   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11200     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11201       PATH_SEPARATOR=';'
11202   }
11203 fi
11204
11205
11206 # IFS
11207 # We need space, tab and new line, in precisely that order.  Quoting is
11208 # there to prevent editors from complaining about space-tab.
11209 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11210 # splitting by setting IFS to empty value.)
11211 IFS=" ""        $as_nl"
11212
11213 # Find who we are.  Look in the path if we contain no directory separator.
11214 as_myself=
11215 case $0 in #((
11216   *[\\/]* ) as_myself=$0 ;;
11217   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11219 do
11220   IFS=$as_save_IFS
11221   test -z "$as_dir" && as_dir=.
11222     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11223   done
11224 IFS=$as_save_IFS
11225
11226      ;;
11227 esac
11228 # We did not find ourselves, most probably we were run as `sh COMMAND'
11229 # in which case we are not to be found in the path.
11230 if test "x$as_myself" = x; then
11231   as_myself=$0
11232 fi
11233 if test ! -f "$as_myself"; then
11234   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11235   exit 1
11236 fi
11237
11238 # Unset variables that we do not need and which cause bugs (e.g. in
11239 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11240 # suppresses any "Segmentation fault" message there.  '((' could
11241 # trigger a bug in pdksh 5.2.14.
11242 for as_var in BASH_ENV ENV MAIL MAILPATH
11243 do eval test x\${$as_var+set} = xset \
11244   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11245 done
11246 PS1='$ '
11247 PS2='> '
11248 PS4='+ '
11249
11250 # NLS nuisances.
11251 LC_ALL=C
11252 export LC_ALL
11253 LANGUAGE=C
11254 export LANGUAGE
11255
11256 # CDPATH.
11257 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11258
11259
11260 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11261 # ----------------------------------------
11262 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11263 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11264 # script with STATUS, using 1 if that was 0.
11265 as_fn_error ()
11266 {
11267   as_status=$1; test $as_status -eq 0 && as_status=1
11268   if test "$4"; then
11269     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11270     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11271   fi
11272   $as_echo "$as_me: error: $2" >&2
11273   as_fn_exit $as_status
11274 } # as_fn_error
11275
11276
11277 # as_fn_set_status STATUS
11278 # -----------------------
11279 # Set $? to STATUS, without forking.
11280 as_fn_set_status ()
11281 {
11282   return $1
11283 } # as_fn_set_status
11284
11285 # as_fn_exit STATUS
11286 # -----------------
11287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11288 as_fn_exit ()
11289 {
11290   set +e
11291   as_fn_set_status $1
11292   exit $1
11293 } # as_fn_exit
11294
11295 # as_fn_unset VAR
11296 # ---------------
11297 # Portably unset VAR.
11298 as_fn_unset ()
11299 {
11300   { eval $1=; unset $1;}
11301 }
11302 as_unset=as_fn_unset
11303 # as_fn_append VAR VALUE
11304 # ----------------------
11305 # Append the text in VALUE to the end of the definition contained in VAR. Take
11306 # advantage of any shell optimizations that allow amortized linear growth over
11307 # repeated appends, instead of the typical quadratic growth present in naive
11308 # implementations.
11309 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11310   eval 'as_fn_append ()
11311   {
11312     eval $1+=\$2
11313   }'
11314 else
11315   as_fn_append ()
11316   {
11317     eval $1=\$$1\$2
11318   }
11319 fi # as_fn_append
11320
11321 # as_fn_arith ARG...
11322 # ------------------
11323 # Perform arithmetic evaluation on the ARGs, and store the result in the
11324 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11325 # must be portable across $(()) and expr.
11326 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11327   eval 'as_fn_arith ()
11328   {
11329     as_val=$(( $* ))
11330   }'
11331 else
11332   as_fn_arith ()
11333   {
11334     as_val=`expr "$@" || test $? -eq 1`
11335   }
11336 fi # as_fn_arith
11337
11338
11339 if expr a : '\(a\)' >/dev/null 2>&1 &&
11340    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11341   as_expr=expr
11342 else
11343   as_expr=false
11344 fi
11345
11346 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11347   as_basename=basename
11348 else
11349   as_basename=false
11350 fi
11351
11352 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11353   as_dirname=dirname
11354 else
11355   as_dirname=false
11356 fi
11357
11358 as_me=`$as_basename -- "$0" ||
11359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11360          X"$0" : 'X\(//\)$' \| \
11361          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11362 $as_echo X/"$0" |
11363     sed '/^.*\/\([^/][^/]*\)\/*$/{
11364             s//\1/
11365             q
11366           }
11367           /^X\/\(\/\/\)$/{
11368             s//\1/
11369             q
11370           }
11371           /^X\/\(\/\).*/{
11372             s//\1/
11373             q
11374           }
11375           s/.*/./; q'`
11376
11377 # Avoid depending upon Character Ranges.
11378 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11379 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11380 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11381 as_cr_digits='0123456789'
11382 as_cr_alnum=$as_cr_Letters$as_cr_digits
11383
11384 ECHO_C= ECHO_N= ECHO_T=
11385 case `echo -n x` in #(((((
11386 -n*)
11387   case `echo 'xy\c'` in
11388   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11389   xy)  ECHO_C='\c';;
11390   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11391        ECHO_T=' ';;
11392   esac;;
11393 *)
11394   ECHO_N='-n';;
11395 esac
11396
11397 rm -f conf$$ conf$$.exe conf$$.file
11398 if test -d conf$$.dir; then
11399   rm -f conf$$.dir/conf$$.file
11400 else
11401   rm -f conf$$.dir
11402   mkdir conf$$.dir 2>/dev/null
11403 fi
11404 if (echo >conf$$.file) 2>/dev/null; then
11405   if ln -s conf$$.file conf$$ 2>/dev/null; then
11406     as_ln_s='ln -s'
11407     # ... but there are two gotchas:
11408     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11409     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11410     # In both cases, we have to default to `cp -pR'.
11411     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11412       as_ln_s='cp -pR'
11413   elif ln conf$$.file conf$$ 2>/dev/null; then
11414     as_ln_s=ln
11415   else
11416     as_ln_s='cp -pR'
11417   fi
11418 else
11419   as_ln_s='cp -pR'
11420 fi
11421 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11422 rmdir conf$$.dir 2>/dev/null
11423
11424
11425 # as_fn_mkdir_p
11426 # -------------
11427 # Create "$as_dir" as a directory, including parents if necessary.
11428 as_fn_mkdir_p ()
11429 {
11430
11431   case $as_dir in #(
11432   -*) as_dir=./$as_dir;;
11433   esac
11434   test -d "$as_dir" || eval $as_mkdir_p || {
11435     as_dirs=
11436     while :; do
11437       case $as_dir in #(
11438       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11439       *) as_qdir=$as_dir;;
11440       esac
11441       as_dirs="'$as_qdir' $as_dirs"
11442       as_dir=`$as_dirname -- "$as_dir" ||
11443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11444          X"$as_dir" : 'X\(//\)[^/]' \| \
11445          X"$as_dir" : 'X\(//\)$' \| \
11446          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11447 $as_echo X"$as_dir" |
11448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11449             s//\1/
11450             q
11451           }
11452           /^X\(\/\/\)[^/].*/{
11453             s//\1/
11454             q
11455           }
11456           /^X\(\/\/\)$/{
11457             s//\1/
11458             q
11459           }
11460           /^X\(\/\).*/{
11461             s//\1/
11462             q
11463           }
11464           s/.*/./; q'`
11465       test -d "$as_dir" && break
11466     done
11467     test -z "$as_dirs" || eval "mkdir $as_dirs"
11468   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11469
11470
11471 } # as_fn_mkdir_p
11472 if mkdir -p . 2>/dev/null; then
11473   as_mkdir_p='mkdir -p "$as_dir"'
11474 else
11475   test -d ./-p && rmdir ./-p
11476   as_mkdir_p=false
11477 fi
11478
11479
11480 # as_fn_executable_p FILE
11481 # -----------------------
11482 # Test if FILE is an executable regular file.
11483 as_fn_executable_p ()
11484 {
11485   test -f "$1" && test -x "$1"
11486 } # as_fn_executable_p
11487 as_test_x='test -x'
11488 as_executable_p=as_fn_executable_p
11489
11490 # Sed expression to map a string onto a valid CPP name.
11491 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11492
11493 # Sed expression to map a string onto a valid variable name.
11494 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11495
11496
11497 exec 6>&1
11498 ## ----------------------------------- ##
11499 ## Main body of $CONFIG_STATUS script. ##
11500 ## ----------------------------------- ##
11501 _ASEOF
11502 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11503
11504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11505 # Save the log message, to keep $0 and so on meaningful, and to
11506 # report actual input values of CONFIG_FILES etc. instead of their
11507 # values after options handling.
11508 ac_log="
11509 This file was extended by GNU Awk $as_me 4.1.1, which was
11510 generated by GNU Autoconf 2.69.  Invocation command line was
11511
11512   CONFIG_FILES    = $CONFIG_FILES
11513   CONFIG_HEADERS  = $CONFIG_HEADERS
11514   CONFIG_LINKS    = $CONFIG_LINKS
11515   CONFIG_COMMANDS = $CONFIG_COMMANDS
11516   $ $0 $@
11517
11518 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11519 "
11520
11521 _ACEOF
11522
11523 case $ac_config_files in *"
11524 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11525 esac
11526
11527 case $ac_config_headers in *"
11528 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11529 esac
11530
11531
11532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11533 # Files that config.status was made for.
11534 config_files="$ac_config_files"
11535 config_headers="$ac_config_headers"
11536 config_commands="$ac_config_commands"
11537
11538 _ACEOF
11539
11540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11541 ac_cs_usage="\
11542 \`$as_me' instantiates files and other configuration actions
11543 from templates according to the current configuration.  Unless the files
11544 and actions are specified as TAGs, all are instantiated by default.
11545
11546 Usage: $0 [OPTION]... [TAG]...
11547
11548   -h, --help       print this help, then exit
11549   -V, --version    print version number and configuration settings, then exit
11550       --config     print configuration, then exit
11551   -q, --quiet, --silent
11552                    do not print progress messages
11553   -d, --debug      don't remove temporary files
11554       --recheck    update $as_me by reconfiguring in the same conditions
11555       --file=FILE[:TEMPLATE]
11556                    instantiate the configuration file FILE
11557       --header=FILE[:TEMPLATE]
11558                    instantiate the configuration header FILE
11559
11560 Configuration files:
11561 $config_files
11562
11563 Configuration headers:
11564 $config_headers
11565
11566 Configuration commands:
11567 $config_commands
11568
11569 Report bugs to <bug-gawk@gnu.org>.
11570 GNU Awk home page: <http://www.gnu.org/software/gawk/>.
11571 General help using GNU software: <http://www.gnu.org/gethelp/>."
11572
11573 _ACEOF
11574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11575 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11576 ac_cs_version="\\
11577 GNU Awk config.status 4.1.1
11578 configured by $0, generated by GNU Autoconf 2.69,
11579   with options \\"\$ac_cs_config\\"
11580
11581 Copyright (C) 2012 Free Software Foundation, Inc.
11582 This config.status script is free software; the Free Software Foundation
11583 gives unlimited permission to copy, distribute and modify it."
11584
11585 ac_pwd='$ac_pwd'
11586 srcdir='$srcdir'
11587 INSTALL='$INSTALL'
11588 MKDIR_P='$MKDIR_P'
11589 AWK='$AWK'
11590 test -n "\$AWK" || AWK=awk
11591 _ACEOF
11592
11593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11594 # The default lists apply if the user does not specify any file.
11595 ac_need_defaults=:
11596 while test $# != 0
11597 do
11598   case $1 in
11599   --*=?*)
11600     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11601     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11602     ac_shift=:
11603     ;;
11604   --*=)
11605     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11606     ac_optarg=
11607     ac_shift=:
11608     ;;
11609   *)
11610     ac_option=$1
11611     ac_optarg=$2
11612     ac_shift=shift
11613     ;;
11614   esac
11615
11616   case $ac_option in
11617   # Handling of the options.
11618   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11619     ac_cs_recheck=: ;;
11620   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11621     $as_echo "$ac_cs_version"; exit ;;
11622   --config | --confi | --conf | --con | --co | --c )
11623     $as_echo "$ac_cs_config"; exit ;;
11624   --debug | --debu | --deb | --de | --d | -d )
11625     debug=: ;;
11626   --file | --fil | --fi | --f )
11627     $ac_shift
11628     case $ac_optarg in
11629     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11630     '') as_fn_error $? "missing file argument" ;;
11631     esac
11632     as_fn_append CONFIG_FILES " '$ac_optarg'"
11633     ac_need_defaults=false;;
11634   --header | --heade | --head | --hea )
11635     $ac_shift
11636     case $ac_optarg in
11637     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11638     esac
11639     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11640     ac_need_defaults=false;;
11641   --he | --h)
11642     # Conflict between --help and --header
11643     as_fn_error $? "ambiguous option: \`$1'
11644 Try \`$0 --help' for more information.";;
11645   --help | --hel | -h )
11646     $as_echo "$ac_cs_usage"; exit ;;
11647   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11648   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11649     ac_cs_silent=: ;;
11650
11651   # This is an error.
11652   -*) as_fn_error $? "unrecognized option: \`$1'
11653 Try \`$0 --help' for more information." ;;
11654
11655   *) as_fn_append ac_config_targets " $1"
11656      ac_need_defaults=false ;;
11657
11658   esac
11659   shift
11660 done
11661
11662 ac_configure_extra_args=
11663
11664 if $ac_cs_silent; then
11665   exec 6>/dev/null
11666   ac_configure_extra_args="$ac_configure_extra_args --silent"
11667 fi
11668
11669 _ACEOF
11670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11671 if \$ac_cs_recheck; then
11672   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11673   shift
11674   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11675   CONFIG_SHELL='$SHELL'
11676   export CONFIG_SHELL
11677   exec "\$@"
11678 fi
11679
11680 _ACEOF
11681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11682 exec 5>>config.log
11683 {
11684   echo
11685   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11686 ## Running $as_me. ##
11687 _ASBOX
11688   $as_echo "$ac_log"
11689 } >&5
11690
11691 _ACEOF
11692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11693 #
11694 # INIT-COMMANDS
11695 #
11696 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11697 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11698     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11699     # from automake < 1.5.
11700     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11701     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11702     LINGUAS="${LINGUAS-%UNSET%}"
11703
11704
11705 _ACEOF
11706
11707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11708
11709 # Handling of arguments.
11710 for ac_config_target in $ac_config_targets
11711 do
11712   case $ac_config_target in
11713     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11714     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
11715     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
11716     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11717     "awklib/Makefile") CONFIG_FILES="$CONFIG_FILES awklib/Makefile" ;;
11718     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11719     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11720     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11721
11722   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11723   esac
11724 done
11725
11726
11727 # If the user did not use the arguments to specify the items to instantiate,
11728 # then the envvar interface is used.  Set only those that are not.
11729 # We use the long form for the default assignment because of an extremely
11730 # bizarre bug on SunOS 4.1.3.
11731 if $ac_need_defaults; then
11732   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11733   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11734   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11735 fi
11736
11737 # Have a temporary directory for convenience.  Make it in the build tree
11738 # simply because there is no reason against having it here, and in addition,
11739 # creating and moving files from /tmp can sometimes cause problems.
11740 # Hook for its removal unless debugging.
11741 # Note that there is a small window in which the directory will not be cleaned:
11742 # after its creation but before its name has been assigned to `$tmp'.
11743 $debug ||
11744 {
11745   tmp= ac_tmp=
11746   trap 'exit_status=$?
11747   : "${ac_tmp:=$tmp}"
11748   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11749 ' 0
11750   trap 'as_fn_exit 1' 1 2 13 15
11751 }
11752 # Create a (secure) tmp directory for tmp files.
11753
11754 {
11755   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11756   test -d "$tmp"
11757 }  ||
11758 {
11759   tmp=./conf$$-$RANDOM
11760   (umask 077 && mkdir "$tmp")
11761 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11762 ac_tmp=$tmp
11763
11764 # Set up the scripts for CONFIG_FILES section.
11765 # No need to generate them if there are no CONFIG_FILES.
11766 # This happens for instance with `./config.status config.h'.
11767 if test -n "$CONFIG_FILES"; then
11768
11769
11770 ac_cr=`echo X | tr X '\015'`
11771 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11772 # But we know of no other shell where ac_cr would be empty at this
11773 # point, so we can use a bashism as a fallback.
11774 if test "x$ac_cr" = x; then
11775   eval ac_cr=\$\'\\r\'
11776 fi
11777 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11778 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11779   ac_cs_awk_cr='\\r'
11780 else
11781   ac_cs_awk_cr=$ac_cr
11782 fi
11783
11784 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11785 _ACEOF
11786
11787
11788 {
11789   echo "cat >conf$$subs.awk <<_ACEOF" &&
11790   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11791   echo "_ACEOF"
11792 } >conf$$subs.sh ||
11793   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11794 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11795 ac_delim='%!_!# '
11796 for ac_last_try in false false false false false :; do
11797   . ./conf$$subs.sh ||
11798     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11799
11800   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11801   if test $ac_delim_n = $ac_delim_num; then
11802     break
11803   elif $ac_last_try; then
11804     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11805   else
11806     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11807   fi
11808 done
11809 rm -f conf$$subs.sh
11810
11811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11812 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11813 _ACEOF
11814 sed -n '
11815 h
11816 s/^/S["/; s/!.*/"]=/
11817 p
11818 g
11819 s/^[^!]*!//
11820 :repl
11821 t repl
11822 s/'"$ac_delim"'$//
11823 t delim
11824 :nl
11825 h
11826 s/\(.\{148\}\)..*/\1/
11827 t more1
11828 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11829 p
11830 n
11831 b repl
11832 :more1
11833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11834 p
11835 g
11836 s/.\{148\}//
11837 t nl
11838 :delim
11839 h
11840 s/\(.\{148\}\)..*/\1/
11841 t more2
11842 s/["\\]/\\&/g; s/^/"/; s/$/"/
11843 p
11844 b
11845 :more2
11846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11847 p
11848 g
11849 s/.\{148\}//
11850 t delim
11851 ' <conf$$subs.awk | sed '
11852 /^[^""]/{
11853   N
11854   s/\n//
11855 }
11856 ' >>$CONFIG_STATUS || ac_write_fail=1
11857 rm -f conf$$subs.awk
11858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11859 _ACAWK
11860 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11861   for (key in S) S_is_set[key] = 1
11862   FS = "\a"
11863
11864 }
11865 {
11866   line = $ 0
11867   nfields = split(line, field, "@")
11868   substed = 0
11869   len = length(field[1])
11870   for (i = 2; i < nfields; i++) {
11871     key = field[i]
11872     keylen = length(key)
11873     if (S_is_set[key]) {
11874       value = S[key]
11875       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11876       len += length(value) + length(field[++i])
11877       substed = 1
11878     } else
11879       len += 1 + keylen
11880   }
11881
11882   print line
11883 }
11884
11885 _ACAWK
11886 _ACEOF
11887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11888 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11889   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11890 else
11891   cat
11892 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11893   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11894 _ACEOF
11895
11896 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11897 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11898 # trailing colons and then remove the whole line if VPATH becomes empty
11899 # (actually we leave an empty line to preserve line numbers).
11900 if test "x$srcdir" = x.; then
11901   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
11902 h
11903 s///
11904 s/^/:/
11905 s/[      ]*$/:/
11906 s/:\$(srcdir):/:/g
11907 s/:\${srcdir}:/:/g
11908 s/:@srcdir@:/:/g
11909 s/^:*//
11910 s/:*$//
11911 x
11912 s/\(=[   ]*\).*/\1/
11913 G
11914 s/\n//
11915 s/^[^=]*=[       ]*$//
11916 }'
11917 fi
11918
11919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11920 fi # test -n "$CONFIG_FILES"
11921
11922 # Set up the scripts for CONFIG_HEADERS section.
11923 # No need to generate them if there are no CONFIG_HEADERS.
11924 # This happens for instance with `./config.status Makefile'.
11925 if test -n "$CONFIG_HEADERS"; then
11926 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11927 BEGIN {
11928 _ACEOF
11929
11930 # Transform confdefs.h into an awk script `defines.awk', embedded as
11931 # here-document in config.status, that substitutes the proper values into
11932 # config.h.in to produce config.h.
11933
11934 # Create a delimiter string that does not exist in confdefs.h, to ease
11935 # handling of long lines.
11936 ac_delim='%!_!# '
11937 for ac_last_try in false false :; do
11938   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11939   if test -z "$ac_tt"; then
11940     break
11941   elif $ac_last_try; then
11942     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11943   else
11944     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11945   fi
11946 done
11947
11948 # For the awk script, D is an array of macro values keyed by name,
11949 # likewise P contains macro parameters if any.  Preserve backslash
11950 # newline sequences.
11951
11952 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11953 sed -n '
11954 s/.\{148\}/&'"$ac_delim"'/g
11955 t rset
11956 :rset
11957 s/^[     ]*#[    ]*define[       ][      ]*/ /
11958 t def
11959 d
11960 :def
11961 s/\\$//
11962 t bsnl
11963 s/["\\]/\\&/g
11964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11965 D["\1"]=" \3"/p
11966 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11967 d
11968 :bsnl
11969 s/["\\]/\\&/g
11970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11971 D["\1"]=" \3\\\\\\n"\\/p
11972 t cont
11973 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11974 t cont
11975 d
11976 :cont
11977 n
11978 s/.\{148\}/&'"$ac_delim"'/g
11979 t clear
11980 :clear
11981 s/\\$//
11982 t bsnlc
11983 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11984 d
11985 :bsnlc
11986 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11987 b cont
11988 ' <confdefs.h | sed '
11989 s/'"$ac_delim"'/"\\\
11990 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11991
11992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11993   for (key in D) D_is_set[key] = 1
11994   FS = "\a"
11995 }
11996 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11997   line = \$ 0
11998   split(line, arg, " ")
11999   if (arg[1] == "#") {
12000     defundef = arg[2]
12001     mac1 = arg[3]
12002   } else {
12003     defundef = substr(arg[1], 2)
12004     mac1 = arg[2]
12005   }
12006   split(mac1, mac2, "(") #)
12007   macro = mac2[1]
12008   prefix = substr(line, 1, index(line, defundef) - 1)
12009   if (D_is_set[macro]) {
12010     # Preserve the white space surrounding the "#".
12011     print prefix "define", macro P[macro] D[macro]
12012     next
12013   } else {
12014     # Replace #undef with comments.  This is necessary, for example,
12015     # in the case of _POSIX_SOURCE, which is predefined and required
12016     # on some systems where configure will not decide to define it.
12017     if (defundef == "undef") {
12018       print "/*", prefix defundef, macro, "*/"
12019       next
12020     }
12021   }
12022 }
12023 { print }
12024 _ACAWK
12025 _ACEOF
12026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12027   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12028 fi # test -n "$CONFIG_HEADERS"
12029
12030
12031 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12032 shift
12033 for ac_tag
12034 do
12035   case $ac_tag in
12036   :[FHLC]) ac_mode=$ac_tag; continue;;
12037   esac
12038   case $ac_mode$ac_tag in
12039   :[FHL]*:*);;
12040   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12041   :[FH]-) ac_tag=-:-;;
12042   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12043   esac
12044   ac_save_IFS=$IFS
12045   IFS=:
12046   set x $ac_tag
12047   IFS=$ac_save_IFS
12048   shift
12049   ac_file=$1
12050   shift
12051
12052   case $ac_mode in
12053   :L) ac_source=$1;;
12054   :[FH])
12055     ac_file_inputs=
12056     for ac_f
12057     do
12058       case $ac_f in
12059       -) ac_f="$ac_tmp/stdin";;
12060       *) # Look for the file first in the build tree, then in the source tree
12061          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12062          # because $ac_f cannot contain `:'.
12063          test -f "$ac_f" ||
12064            case $ac_f in
12065            [\\/$]*) false;;
12066            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12067            esac ||
12068            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12069       esac
12070       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12071       as_fn_append ac_file_inputs " '$ac_f'"
12072     done
12073
12074     # Let's still pretend it is `configure' which instantiates (i.e., don't
12075     # use $as_me), people would be surprised to read:
12076     #    /* config.h.  Generated by config.status.  */
12077     configure_input='Generated from '`
12078           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12079         `' by configure.'
12080     if test x"$ac_file" != x-; then
12081       configure_input="$ac_file.  $configure_input"
12082       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12083 $as_echo "$as_me: creating $ac_file" >&6;}
12084     fi
12085     # Neutralize special characters interpreted by sed in replacement strings.
12086     case $configure_input in #(
12087     *\&* | *\|* | *\\* )
12088        ac_sed_conf_input=`$as_echo "$configure_input" |
12089        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12090     *) ac_sed_conf_input=$configure_input;;
12091     esac
12092
12093     case $ac_tag in
12094     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12095       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12096     esac
12097     ;;
12098   esac
12099
12100   ac_dir=`$as_dirname -- "$ac_file" ||
12101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12102          X"$ac_file" : 'X\(//\)[^/]' \| \
12103          X"$ac_file" : 'X\(//\)$' \| \
12104          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12105 $as_echo X"$ac_file" |
12106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12107             s//\1/
12108             q
12109           }
12110           /^X\(\/\/\)[^/].*/{
12111             s//\1/
12112             q
12113           }
12114           /^X\(\/\/\)$/{
12115             s//\1/
12116             q
12117           }
12118           /^X\(\/\).*/{
12119             s//\1/
12120             q
12121           }
12122           s/.*/./; q'`
12123   as_dir="$ac_dir"; as_fn_mkdir_p
12124   ac_builddir=.
12125
12126 case "$ac_dir" in
12127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12128 *)
12129   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12130   # A ".." for each directory in $ac_dir_suffix.
12131   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12132   case $ac_top_builddir_sub in
12133   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12134   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12135   esac ;;
12136 esac
12137 ac_abs_top_builddir=$ac_pwd
12138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12139 # for backward compatibility:
12140 ac_top_builddir=$ac_top_build_prefix
12141
12142 case $srcdir in
12143   .)  # We are building in place.
12144     ac_srcdir=.
12145     ac_top_srcdir=$ac_top_builddir_sub
12146     ac_abs_top_srcdir=$ac_pwd ;;
12147   [\\/]* | ?:[\\/]* )  # Absolute name.
12148     ac_srcdir=$srcdir$ac_dir_suffix;
12149     ac_top_srcdir=$srcdir
12150     ac_abs_top_srcdir=$srcdir ;;
12151   *) # Relative name.
12152     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12153     ac_top_srcdir=$ac_top_build_prefix$srcdir
12154     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12155 esac
12156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12157
12158
12159   case $ac_mode in
12160   :F)
12161   #
12162   # CONFIG_FILE
12163   #
12164
12165   case $INSTALL in
12166   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12167   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12168   esac
12169   ac_MKDIR_P=$MKDIR_P
12170   case $MKDIR_P in
12171   [\\/$]* | ?:[\\/]* ) ;;
12172   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12173   esac
12174 _ACEOF
12175
12176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12177 # If the template does not know about datarootdir, expand it.
12178 # FIXME: This hack should be removed a few years after 2.60.
12179 ac_datarootdir_hack=; ac_datarootdir_seen=
12180 ac_sed_dataroot='
12181 /datarootdir/ {
12182   p
12183   q
12184 }
12185 /@datadir@/p
12186 /@docdir@/p
12187 /@infodir@/p
12188 /@localedir@/p
12189 /@mandir@/p'
12190 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12191 *datarootdir*) ac_datarootdir_seen=yes;;
12192 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12193   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12194 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12195 _ACEOF
12196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12197   ac_datarootdir_hack='
12198   s&@datadir@&$datadir&g
12199   s&@docdir@&$docdir&g
12200   s&@infodir@&$infodir&g
12201   s&@localedir@&$localedir&g
12202   s&@mandir@&$mandir&g
12203   s&\\\${datarootdir}&$datarootdir&g' ;;
12204 esac
12205 _ACEOF
12206
12207 # Neutralize VPATH when `$srcdir' = `.'.
12208 # Shell code in configure.ac might set extrasub.
12209 # FIXME: do we really want to maintain this feature?
12210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12211 ac_sed_extra="$ac_vpsub
12212 $extrasub
12213 _ACEOF
12214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12215 :t
12216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12217 s|@configure_input@|$ac_sed_conf_input|;t t
12218 s&@top_builddir@&$ac_top_builddir_sub&;t t
12219 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12220 s&@srcdir@&$ac_srcdir&;t t
12221 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12222 s&@top_srcdir@&$ac_top_srcdir&;t t
12223 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12224 s&@builddir@&$ac_builddir&;t t
12225 s&@abs_builddir@&$ac_abs_builddir&;t t
12226 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12227 s&@INSTALL@&$ac_INSTALL&;t t
12228 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12229 $ac_datarootdir_hack
12230 "
12231 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12232   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12233
12234 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12235   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12236   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12237       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12238   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12239 which seems to be undefined.  Please make sure it is defined" >&5
12240 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12241 which seems to be undefined.  Please make sure it is defined" >&2;}
12242
12243   rm -f "$ac_tmp/stdin"
12244   case $ac_file in
12245   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12246   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12247   esac \
12248   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12249  ;;
12250   :H)
12251   #
12252   # CONFIG_HEADER
12253   #
12254   if test x"$ac_file" != x-; then
12255     {
12256       $as_echo "/* $configure_input  */" \
12257       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12258     } >"$ac_tmp/config.h" \
12259       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12260     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12261       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12262 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12263     else
12264       rm -f "$ac_file"
12265       mv "$ac_tmp/config.h" "$ac_file" \
12266         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12267     fi
12268   else
12269     $as_echo "/* $configure_input  */" \
12270       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12271       || as_fn_error $? "could not create -" "$LINENO" 5
12272   fi
12273 # Compute "$ac_file"'s index in $config_headers.
12274 _am_arg="$ac_file"
12275 _am_stamp_count=1
12276 for _am_header in $config_headers :; do
12277   case $_am_header in
12278     $_am_arg | $_am_arg:* )
12279       break ;;
12280     * )
12281       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12282   esac
12283 done
12284 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12285 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12286          X"$_am_arg" : 'X\(//\)[^/]' \| \
12287          X"$_am_arg" : 'X\(//\)$' \| \
12288          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12289 $as_echo X"$_am_arg" |
12290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12291             s//\1/
12292             q
12293           }
12294           /^X\(\/\/\)[^/].*/{
12295             s//\1/
12296             q
12297           }
12298           /^X\(\/\/\)$/{
12299             s//\1/
12300             q
12301           }
12302           /^X\(\/\).*/{
12303             s//\1/
12304             q
12305           }
12306           s/.*/./; q'`/stamp-h$_am_stamp_count
12307  ;;
12308
12309   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12310 $as_echo "$as_me: executing $ac_file commands" >&6;}
12311  ;;
12312   esac
12313
12314
12315   case $ac_file$ac_mode in
12316     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12317   # Older Autoconf quotes --file arguments for eval, but not when files
12318   # are listed without --file.  Let's play safe and only enable the eval
12319   # if we detect the quoting.
12320   case $CONFIG_FILES in
12321   *\'*) eval set x "$CONFIG_FILES" ;;
12322   *)   set x $CONFIG_FILES ;;
12323   esac
12324   shift
12325   for mf
12326   do
12327     # Strip MF so we end up with the name of the file.
12328     mf=`echo "$mf" | sed -e 's/:.*$//'`
12329     # Check whether this is an Automake generated Makefile or not.
12330     # We used to match only the files named 'Makefile.in', but
12331     # some people rename them; so instead we look at the file content.
12332     # Grep'ing the first line is not enough: some people post-process
12333     # each Makefile.in and add a new line on top of each file to say so.
12334     # Grep'ing the whole file is not good either: AIX grep has a line
12335     # limit of 2048, but all sed's we know have understand at least 4000.
12336     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12337       dirpart=`$as_dirname -- "$mf" ||
12338 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12339          X"$mf" : 'X\(//\)[^/]' \| \
12340          X"$mf" : 'X\(//\)$' \| \
12341          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12342 $as_echo X"$mf" |
12343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12344             s//\1/
12345             q
12346           }
12347           /^X\(\/\/\)[^/].*/{
12348             s//\1/
12349             q
12350           }
12351           /^X\(\/\/\)$/{
12352             s//\1/
12353             q
12354           }
12355           /^X\(\/\).*/{
12356             s//\1/
12357             q
12358           }
12359           s/.*/./; q'`
12360     else
12361       continue
12362     fi
12363     # Extract the definition of DEPDIR, am__include, and am__quote
12364     # from the Makefile without running 'make'.
12365     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12366     test -z "$DEPDIR" && continue
12367     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12368     test -z "$am__include" && continue
12369     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12370     # Find all dependency output files, they are included files with
12371     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12372     # simplest approach to changing $(DEPDIR) to its actual value in the
12373     # expansion.
12374     for file in `sed -n "
12375       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12376          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12377       # Make sure the directory exists.
12378       test -f "$dirpart/$file" && continue
12379       fdir=`$as_dirname -- "$file" ||
12380 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12381          X"$file" : 'X\(//\)[^/]' \| \
12382          X"$file" : 'X\(//\)$' \| \
12383          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12384 $as_echo X"$file" |
12385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12386             s//\1/
12387             q
12388           }
12389           /^X\(\/\/\)[^/].*/{
12390             s//\1/
12391             q
12392           }
12393           /^X\(\/\/\)$/{
12394             s//\1/
12395             q
12396           }
12397           /^X\(\/\).*/{
12398             s//\1/
12399             q
12400           }
12401           s/.*/./; q'`
12402       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12403       # echo "creating $dirpart/$file"
12404       echo '# dummy' > "$dirpart/$file"
12405     done
12406   done
12407 }
12408  ;;
12409     "po-directories":C)
12410     for ac_file in $CONFIG_FILES; do
12411       # Support "outfile[:infile[:infile...]]"
12412       case "$ac_file" in
12413         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12414       esac
12415       # PO directories have a Makefile.in generated from Makefile.in.in.
12416       case "$ac_file" in */Makefile.in)
12417         # Adjust a relative srcdir.
12418         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12419         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12420         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12421         # In autoconf-2.13 it is called $ac_given_srcdir.
12422         # In autoconf-2.50 it is called $srcdir.
12423         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12424         case "$ac_given_srcdir" in
12425           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12426           /*) top_srcdir="$ac_given_srcdir" ;;
12427           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12428         esac
12429         # Treat a directory as a PO directory if and only if it has a
12430         # POTFILES.in file. This allows packages to have multiple PO
12431         # directories under different names or in different locations.
12432         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12433           rm -f "$ac_dir/POTFILES"
12434           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12435           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12436           POMAKEFILEDEPS="POTFILES.in"
12437           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12438           # on $ac_dir but don't depend on user-specified configuration
12439           # parameters.
12440           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12441             # The LINGUAS file contains the set of available languages.
12442             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12443               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12444             fi
12445             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12446             # Hide the ALL_LINGUAS assigment from automake < 1.5.
12447             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12448             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12449           else
12450             # The set of available languages was given in configure.in.
12451             # Hide the ALL_LINGUAS assigment from automake < 1.5.
12452             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12453           fi
12454           # Compute POFILES
12455           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12456           # Compute UPDATEPOFILES
12457           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12458           # Compute DUMMYPOFILES
12459           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12460           # Compute GMOFILES
12461           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12462           case "$ac_given_srcdir" in
12463             .) srcdirpre= ;;
12464             *) srcdirpre='$(srcdir)/' ;;
12465           esac
12466           POFILES=
12467           UPDATEPOFILES=
12468           DUMMYPOFILES=
12469           GMOFILES=
12470           for lang in $ALL_LINGUAS; do
12471             POFILES="$POFILES $srcdirpre$lang.po"
12472             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12473             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12474             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12475           done
12476           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12477           # environment variable.
12478           INST_LINGUAS=
12479           if test -n "$ALL_LINGUAS"; then
12480             for presentlang in $ALL_LINGUAS; do
12481               useit=no
12482               if test "%UNSET%" != "$LINGUAS"; then
12483                 desiredlanguages="$LINGUAS"
12484               else
12485                 desiredlanguages="$ALL_LINGUAS"
12486               fi
12487               for desiredlang in $desiredlanguages; do
12488                 # Use the presentlang catalog if desiredlang is
12489                 #   a. equal to presentlang, or
12490                 #   b. a variant of presentlang (because in this case,
12491                 #      presentlang can be used as a fallback for messages
12492                 #      which are not translated in the desiredlang catalog).
12493                 case "$desiredlang" in
12494                   "$presentlang"*) useit=yes;;
12495                 esac
12496               done
12497               if test $useit = yes; then
12498                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12499               fi
12500             done
12501           fi
12502           CATALOGS=
12503           if test -n "$INST_LINGUAS"; then
12504             for lang in $INST_LINGUAS; do
12505               CATALOGS="$CATALOGS $lang.gmo"
12506             done
12507           fi
12508           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12509           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"
12510           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12511             if test -f "$f"; then
12512               case "$f" in
12513                 *.orig | *.bak | *~) ;;
12514                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12515               esac
12516             fi
12517           done
12518         fi
12519         ;;
12520       esac
12521     done ;;
12522
12523   esac
12524 done # for ac_tag
12525
12526
12527 as_fn_exit 0
12528 _ACEOF
12529 ac_clean_files=$ac_clean_files_save
12530
12531 test $ac_write_fail = 0 ||
12532   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12533
12534
12535 # configure is writing to config.log, and then calls config.status.
12536 # config.status does its own redirection, appending to config.log.
12537 # Unfortunately, on DOS this fails, as config.log is still kept open
12538 # by configure, so config.status won't be able to write to it; its
12539 # output is simply discarded.  So we exec the FD to /dev/null,
12540 # effectively closing config.log, so it can be properly (re)opened and
12541 # appended to by config.status.  When coming back to configure, we
12542 # need to make the FD available again.
12543 if test "$no_create" != yes; then
12544   ac_cs_success=:
12545   ac_config_status_args=
12546   test "$silent" = yes &&
12547     ac_config_status_args="$ac_config_status_args --quiet"
12548   exec 5>/dev/null
12549   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12550   exec 5>>config.log
12551   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12552   # would make configure fail if this is the last instruction.
12553   $ac_cs_success || as_fn_exit 1
12554 fi
12555
12556 #
12557 # CONFIG_SUBDIRS section.
12558 #
12559 if test "$no_recursion" != yes; then
12560
12561   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
12562   # so they do not pile up.
12563   ac_sub_configure_args=
12564   ac_prev=
12565   eval "set x $ac_configure_args"
12566   shift
12567   for ac_arg
12568   do
12569     if test -n "$ac_prev"; then
12570       ac_prev=
12571       continue
12572     fi
12573     case $ac_arg in
12574     -cache-file | --cache-file | --cache-fil | --cache-fi \
12575     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12576       ac_prev=cache_file ;;
12577     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12578     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
12579     | --c=*)
12580       ;;
12581     --config-cache | -C)
12582       ;;
12583     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12584       ac_prev=srcdir ;;
12585     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12586       ;;
12587     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12588       ac_prev=prefix ;;
12589     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12590       ;;
12591     --disable-option-checking)
12592       ;;
12593     *)
12594       case $ac_arg in
12595       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12596       esac
12597       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
12598     esac
12599   done
12600
12601   # Always prepend --prefix to ensure using the same prefix
12602   # in subdir configurations.
12603   ac_arg="--prefix=$prefix"
12604   case $ac_arg in
12605   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12606   esac
12607   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
12608
12609   # Pass --silent
12610   if test "$silent" = yes; then
12611     ac_sub_configure_args="--silent $ac_sub_configure_args"
12612   fi
12613
12614   # Always prepend --disable-option-checking to silence warnings, since
12615   # different subdirs can have different --enable and --with options.
12616   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
12617
12618   ac_popdir=`pwd`
12619   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
12620
12621     # Do not complain, so a configure script can configure whichever
12622     # parts of a large source tree are present.
12623     test -d "$srcdir/$ac_dir" || continue
12624
12625     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
12626     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
12627     $as_echo "$ac_msg" >&6
12628     as_dir="$ac_dir"; as_fn_mkdir_p
12629     ac_builddir=.
12630
12631 case "$ac_dir" in
12632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12633 *)
12634   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12635   # A ".." for each directory in $ac_dir_suffix.
12636   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12637   case $ac_top_builddir_sub in
12638   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12639   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12640   esac ;;
12641 esac
12642 ac_abs_top_builddir=$ac_pwd
12643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12644 # for backward compatibility:
12645 ac_top_builddir=$ac_top_build_prefix
12646
12647 case $srcdir in
12648   .)  # We are building in place.
12649     ac_srcdir=.
12650     ac_top_srcdir=$ac_top_builddir_sub
12651     ac_abs_top_srcdir=$ac_pwd ;;
12652   [\\/]* | ?:[\\/]* )  # Absolute name.
12653     ac_srcdir=$srcdir$ac_dir_suffix;
12654     ac_top_srcdir=$srcdir
12655     ac_abs_top_srcdir=$srcdir ;;
12656   *) # Relative name.
12657     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12658     ac_top_srcdir=$ac_top_build_prefix$srcdir
12659     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12660 esac
12661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12662
12663
12664     cd "$ac_dir"
12665
12666     # Check for guested configure; otherwise get Cygnus style configure.
12667     if test -f "$ac_srcdir/configure.gnu"; then
12668       ac_sub_configure=$ac_srcdir/configure.gnu
12669     elif test -f "$ac_srcdir/configure"; then
12670       ac_sub_configure=$ac_srcdir/configure
12671     elif test -f "$ac_srcdir/configure.in"; then
12672       # This should be Cygnus configure.
12673       ac_sub_configure=$ac_aux_dir/configure
12674     else
12675       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
12676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
12677       ac_sub_configure=
12678     fi
12679
12680     # The recursion is here.
12681     if test -n "$ac_sub_configure"; then
12682       # Make the cache file name correct relative to the subdirectory.
12683       case $cache_file in
12684       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
12685       *) # Relative name.
12686         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
12687       esac
12688
12689       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
12690 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
12691       # The eval makes quoting arguments work.
12692       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
12693            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
12694         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
12695     fi
12696
12697     cd "$ac_popdir"
12698   done
12699 fi
12700 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12702 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12703 fi
12704